Browse Source

修改发料申请可以移除

wms3.0_pda
lijuncheng 1 year ago
parent
commit
f1010266e1
  1. 35
      pages/issue/coms/comIssueRequestCreator.vue

35
pages/issue/coms/comIssueRequestCreator.vue

@ -8,7 +8,7 @@
<uni-swipe-action ref="swipeAction">
<view v-for="(item, index) in dataContent.subList" :key="index">
<uni-swipe-action-item @click="swipeClick($event,item)" :right-options="detailOptions">
<uni-swipe-action-item @click="swipeClick($event,item,index)" :right-options="options">
<item-qty :dataContent="item" :isShowStdPack="false">
</item-qty>
<u-line />
@ -76,13 +76,6 @@
},
},
watch: {
dataContent: {
handler(newval, oldval) {
this.requestItem = this.dataContent.subList[0];
},
immediate: true,
deep: true
}
},
data() {
@ -94,9 +87,9 @@
}
},
requestItem: {},
detailOptions: [],
scanOptions: []
scanOptions: [],
options:[]
}
},
@ -105,26 +98,27 @@
this.detailOptions = getDetailOption();
}
if (this.scanOptions.length == 0) {
this.scanOptions = getDetailEditRemoveOption();
this.scanOptions = getDetailRemoveOption();
// if (this.dataContent.allowModifyQty == 1) {
// this.scanOptions = getDetailEditRemoveOption();
// } else {
// this.scanOptions = getDetailRemoveOption();
// }
}
if(!this.isSwipe){
this.detailOptions=[]
}
this.options =this.scanOptions
// if(!this.isSwipe){
// this.detailOptions=[]
// }
},
methods: {
swipeClick(e, item) {
swipeClick(e, item,index) {
if (e.content.text == "详情") {
this.detail(item)
} else if (e.content.text == "编辑") {
this.edit(item)
} else if (e.content.text == "移除") {
this.remove(item)
this.remove(item,index)
}
},
edit(item) {
@ -138,17 +132,12 @@
// // this.showItem = item;
// // this.$refs.jobDetailPopup.openPopup(item)
},
remove(item) {
remove(item,index) {
this.$refs.message.showQuestionMessage("确定移除扫描信息?",
res => {
if (res) {
item.scaned = false
item.record = {}
item.balance = {}
item.inventoryStatus = item.RecommendInventoryStatus
// item.record.qty = 0;
this.dataContent.subList.splice(index, 1)
this.$forceUpdate()
this.$emit('remove', item)
}
});
},

Loading…
Cancel
Save