Browse Source

区分制品直接上架和装配直接上架 2024/8/3

hella_vue3
王志国 1 month ago
parent
commit
24e9ab2fff
  1. 13
      src/pages.json
  2. 48
      src/pages/productPutaway/record/fgDirectPutaway.vue
  3. 10
      src/pages/productPutaway/record/productPutawayRecord.vue
  4. 48
      src/pages/productPutaway/record/semiDirectPutaway.vue

13
src/pages.json

@ -1145,15 +1145,24 @@
}
},
{
"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" putawayType='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>

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

@ -87,11 +87,11 @@
title: option.title
})
type.value = option.type
if (type.value == 'predict') {
updateTitle('制品上架记录')
} else if (type.value == 'assemble') {
updateTitle('装配上架记录')
}
// if (type.value == 'predict') {
// updateTitle('')
// } else if (type.value == 'assemble') {
// updateTitle('')
// }
getBusinessType(bussinessCode.value, (res) => {
if (res.success) {
businessType.value = res.businessType

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

@ -0,0 +1,48 @@
<template>
<view class="">
<product-putaway-record :title="title" ref="productPutawayRecord" putawayType='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