From d3ecd8699a5e7c2305497835866b89141b81f71c Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 24 Jul 2024 14:49:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=8A=A5=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fg/coms/comReceiptPopup.vue | 37 +++++++++++++++++++++++---- src/pages/fg/receiptByPlan.vue | 7 +++++ 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue index 6a018045..e575b476 100644 --- a/src/pages/fg/coms/comReceiptPopup.vue +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -171,7 +171,9 @@ workStationCode: "", planDate: '', showDateSelect:false, - planDateList:[] + planDateList:[], + fgLocationCode:"", + rawLocationCode:"" } }, props: { @@ -216,6 +218,8 @@ this.planDate="" this.showDateSelect =false this.planDateList=[] + this.fgLocationCode="" + this.rawLocationCode="" }, @@ -269,8 +273,9 @@ planQty: this.planQty, goodQty: this.goodQty, planNumber: this.planNumber, - workStationCode: this.workStationCode - + workStationCode: this.workStationCode, + fgLocationCode:this.fgLocationCode, + rawLocationCode:this.rawLocationCode }; this.closeRequestPopup(); this.$emit("confirm", item); @@ -289,6 +294,9 @@ this.productionLineName = data[0].label + "—" + data[1].label this.productionLineCode = data[0].value this.workStationCode = data[1].value + var parent =this.productLineList.filter(res=>res.value==this.productionLineCode) + var fgLocation =parent[0].children.filter(children=>children.value==this.workStationCode) + this.fgLocationCode= fgLocation[0].fgLocationCode; this.clearItemCode() this.clearPackUnit() @@ -360,8 +368,7 @@ uni.hideLoading() if (res.data && res.data.length > 0) { res.data.forEach(item => { - item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" + "(" + - dateFormatData(item.planDate) + ")" + item.label = item.itemCode + "(" + item.planQty + this.getUomInfo(item.uom) + ")" item.value = item }) this.itemCodeList = res.data @@ -385,6 +392,26 @@ //清除其他数据 this.clearPackUnit(); + uni.showLoading({ + title: "加载中", + mask: true + }) + getPackUnitByItemCode(this.itemCode).then(res => { + uni.hideLoading() + if (res.data && res.data.list.length > 0) { + res.data.list.forEach(item => { + item.value = item.packUnit + item.label = getPackUnitName(item.packUnit) + "(" + item.packQty + this + .getUomInfo(item.uom) + ")"; + }) + this.packUnitList = res.data.list + var defaultData =res.data.list.filter(item=>item.defaultPackageunit=="TRUE") + this.confirmSelectPackUnit(defaultData) + } + + }).catch(error => { + uni.hideLoading() + }) }, clearPackUnit(){ diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 3433fa4a..f7938f02 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -12,6 +12,12 @@ + + 成品库位 + {{dataContent.fgLocationCode}} + + + 计划数 {{dataContent.planQty}}{{dataContent.uom}} @@ -202,6 +208,7 @@ batch: result.batch, packUnit: result.packUnit, workStationCode: result.workStationCode, + fgLocationCode:result.fgLocationCode, subList: [] } },