Browse Source

修改计划外入库任务

hella_online_20240829
lijuncheng 4 months ago
parent
commit
e7b25bc2d6
  1. 20
      src/pages/unPlanned/coms/comReceiptDetailCard.vue
  2. 13
      src/pages/unPlanned/job/receiptJobDetail.vue

20
src/pages/unPlanned/coms/comReceiptDetailCard.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<uni-collapse ref="collapse1" @change=""> <uni-collapse ref="collapse1" >
<uni-collapse-item :open="true"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showBalanceQty="false"> <item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" :showBalanceQty="false">
@ -68,9 +68,25 @@
}, },
}, },
watch: { watch: {
dataContent: {
handler(newName, oldName) {
if (this.dataContent.subList.length > 0) {
this.$nextTick(res => {
setTimeout(() => {
if (this.$refs.collapse1) {
this.$refs.collapse1.resize();
}
}, 500)
})
}
},
immediate: true,
deep: true
}
}, },
data() { data() {
return { return {
showItem: {}, showItem: {},

13
src/pages/unPlanned/job/receiptJobDetail.vue

@ -206,6 +206,7 @@
updateData() { updateData() {
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);
this.$forceUpdate()
}, },
@ -220,19 +221,17 @@
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") this.showErrorMessage("物料号【" + itemCode + "】不在列表中")
} else { } else {
var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch && var itemDetail = detail.subList.find(r => r.packingNumber == packingNumber && r.batch == batch
r.fromLocationCode == result.fromLocationCode); );
if (itemDetail == undefined) { if (itemDetail == undefined) {
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" +"不在列表中")
.fromLocationCode + "】不在列表中")
} else { } else {
if (itemDetail.scaned) { if (itemDetail.scaned) {
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】" +"已经扫描")
.fromLocationCode + "】已经扫描")
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode; itemDetail.toLocationCode = this.toLocationCode? this.toLocationCode:itemDetail.toLocationCode ;
itemDetail.packQty = result.package.packQty itemDetail.packQty = result.package.packQty
itemDetail.labelQty = Number(result.label.qty); itemDetail.labelQty = Number(result.label.qty);
calcHandleQty(this.detailSource); calcHandleQty(this.detailSource);

Loading…
Cancel
Save