From 1e75ce36c48adf053c4475610986300fb09ffd68 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Thu, 17 Oct 2024 22:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E6=8F=90=E5=95=86?= =?UTF-8?q?=E5=9C=BA=E5=90=8D=E7=A7=B0=E4=B8=A2=E5=A4=B1consigneeUnit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventory/distrilbutionBillLading.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/distribution/inventory/distrilbutionBillLading.vue b/src/views/distribution/inventory/distrilbutionBillLading.vue index 1302183b..e6ca3c50 100644 --- a/src/views/distribution/inventory/distrilbutionBillLading.vue +++ b/src/views/distribution/inventory/distrilbutionBillLading.vue @@ -3110,17 +3110,17 @@ export default { submitFormData.billPackageEntityList = _billPackageEntityList; // SM24010411 - // console.log(this.dataOwn,'库存品'); + // console.log(this.data,'库存品'); // console.log(this.dataList,'定制品'); // 商场名称 - if (this.dataOwn?.length) { - submitFormData.consigneeUnit = this.dataOwn[0].consigneeUnit; + if (this.data?.length) { + submitFormData.consigneeUnit = this.data[0].marketName; } else if (this.dataList?.length) { submitFormData.consigneeUnit = this.dataList[0].consigneeUnit; } console.log(submitFormData, '最后要提交的参数'); this.Selfpickuploading = true; //开启加载效果 - submitFormData.consigneeUnit = submitFormData.stockDTOList[0].marketName + add(submitFormData) .then(res => { this.Selfpickuploading = false; //开启加载效果 @@ -3273,14 +3273,16 @@ export default { console.log(_unBillPackageEntityList, '删除的'); up.billPackageEntityList = _billPackageEntityList; up.unBillPackageEntityList = _unBillPackageEntityList; - if (this.dataOwn?.length) { - up.consigneeUnit = this.dataOwn[0].consigneeUnit; + console.log(this.data,'data===>>>'); + + if (this.data?.length) { + up.consigneeUnit = this.data[0].marketName; } else if (this.dataList?.length) { up.consigneeUnit = this.dataList[0].consigneeUnit; } this.Selfpickuploading = true; //开启加载效果 - up.consigneeUnit = up.stockDTOList[0].marketName + // up.consigneeUnit = up.stockDTOList[0].marketName update(up) .then(() => { this.Selfpickuploading = false; //开启加载效果