Browse Source

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

hella_online_20240829
niexiting 4 months ago
parent
commit
922bb7898b
  1. 25
      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

25
src/pages.json

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

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