web100 2 anni fa
parent
commit
b705072fc9

+ 1 - 1
src/views/businessManagement/salesOrder/configuration/customerContact.json

@@ -142,7 +142,7 @@
     },
     {
       "label": "库区",
-      "prop": "storageName",
+      "prop": "storageId",
       "index": 5,
       "width": 150,
       "cell": false,

+ 5 - 7
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -2965,16 +2965,14 @@ export default {
           // 如果有id解锁,没有跳过
           // this.form.id && this.unLock({moduleName: 'xs',tableName: 'business_order', billId: this.form.id})
           this.saveLoading = true
-          this.form.orderItemsList.forEach((item) => {
-            console.log(this.storageIdOption);
-            this.storageIdOption.forEach((itm)=>{
-              console.log(itm.id);
+          this.surplusRouteQuantityOption.forEach((itm)=>{
+              // console.log(itm.storageId);
             })
-            item.storageId = this.storageIdOption
-            console.log(item.storageQuantity);
+          console.log(this.form.contactsForm);
+          this.form.orderItemsList.forEach((item) => {
             item.storageQuantity = item.storageQuantity.surplusRouteQuantity;
+            item.storageId = this.contactsForm.storageName
           });
-
           await this.computedCost()
           typeSave(this.form).then(res => {
             // this.$set(this.detailData, 'seeDisabled', true);