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; //开启加载效果