Browse Source

区分制品直接上架和装配直接上架

hella_online_20240829
niexiting 2 months ago
parent
commit
922bb7898b
  1. 23
      src/pages.json
  2. 48
      src/pages/productPutaway/record/fgDirectPutaway.vue
  3. 11
      src/pages/productPutaway/record/productPutawayRecord.vue
  4. 48
      src/pages/productPutaway/record/semiDirectPutaway.vue

23
src/pages.json

@ -1141,15 +1141,34 @@
}
},
// {
// "path": "pages/productPutaway/record/productPutawayRecord",
// "style": {
// "navigationBarTitleText": "制品上架记录",
// "enablePullDownRefresh": false
// }
// },
{
"path": "pages/productPutaway/record/productPutawayRecord",
"path": "pages/productPutaway/record/fgDirectPutaway",
"style": {
"navigationBarTitleText": "制品上架记录",
"navigationBarTitleText": "装配直接上架",
"enablePullDownRefresh": false
}
},
{
"path": "pages/productPutaway/record/semiDirectPutaway",
"style": {
"navigationBarTitleText": "预生产直接上架",
"enablePullDownRefresh": false
}
},
{
"path": "pages/productPutaway/request/putawayRequest",
"style": {

48
src/pages/productPutaway/record/fgDirectPutaway.vue

@ -0,0 +1,48 @@
<template>
<view class="">
<product-putaway-record :title="title" ref="productPutawayRecord" type='assemble'></product-putaway-record>
</view>
</template>
<script>
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue'
export default {
components: {
productPutawayRecord
},
data() {
return {
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
if(this.$refs.productPutawayRecord!=undefined){
this.$refs.productPutawayRecord.refresh();
}
},
onPullDownRefresh() {
this.$refs.productPutawayRecord.refresh();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.productPutawayRecord.toHome();
} else if (e.index == 1) {
this.$refs.productPutawayRecord.openFilter();
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>

11
src/pages/productPutaway/record/productPutawayRecord.vue

@ -115,11 +115,11 @@
title: option.title
})
this.type = option.type
if (this.type == 'predict') {
updateTitle('制品上架记录')
} else if (this.type == 'assemble') {
updateTitle('装配上架记录')
}
// if (this.type == 'predict') {
// updateTitle('')
// } else if (this.type == 'assemble') {
// updateTitle('')
// }
getBusinessType(this.bussinessCode, res => {
if (res.success) {
@ -264,7 +264,6 @@
setTimeout(r => {
this.$refs.scanPopup.openScanPopupByBusinessType(this.businessType);
})
},
closeScanPopup() {

48
src/pages/productPutaway/record/semiDirectPutaway.vue

@ -0,0 +1,48 @@
<template>
<view class="">
<product-putaway-record :title="title" ref="productPutawayRecord" type='predict'></product-putaway-record>
</view>
</template>
<script>
import productPutawayRecord from '@/pages/productPutaway/record/productPutawayRecord.vue'
export default {
components: {
productPutawayRecord
},
data() {
return {
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
if(this.$refs.productPutawayRecord!=undefined){
this.$refs.productPutawayRecord.refresh();
}
},
onPullDownRefresh() {
this.$refs.productPutawayRecord.refresh();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.productPutawayRecord.toHome();
} else if (e.index == 1) {
this.$refs.productPutawayRecord.openFilter();
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
Loading…
Cancel
Save