Browse Source

修复自提商场名称丢失consigneeUnit

dev-xx
马远东 4 months ago
parent
commit
1e75ce36c4
  1. 16
      src/views/distribution/inventory/distrilbutionBillLading.vue

16
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; //

Loading…
Cancel
Save