huang_an 2 lat temu
rodzic
commit
1b12331dd1

+ 11 - 6
src/views/warehouseManagement/warehouseDefinition/add.vue

@@ -991,7 +991,6 @@
             ]
           });
         }
-        console.log('货架', allocationReqList);
         return { kq: kqArr, hj: hjArr, hw: hwArr };
       },
       async getDetail(id) {
@@ -1579,7 +1578,11 @@
                     // ...this.areaForm.allocationReqList, //货位
                     //   ...this.areaForm.areaGoodsshelvesList, //货架
                     //   ...this.areaForm.warehouseAreasSaveList //库区
-
+                    // console.log('没有处理过的===', newObj);
+                    // console.log(
+                    //   '处理过的数据===',
+                    //   this.handleNewSource(newObj)
+                    // );
                     this.loading = true;
                     try {
                       let res = await warehouseDefinition.warehouseareaSave(
@@ -1632,7 +1635,7 @@
             attribute: item.attribute,
             address: item.address,
             areaLength: item.areaLength,
-            areaWidth: item.areaWidth,
+            areaWide: item.areaWidth,
             areaHigh: item.areaHigh,
             num: item.subCount,
             areaRemark: item.remark
@@ -1650,20 +1653,22 @@
               goodsshelvesHigh: item.areaHigh,
               inUseAllocationNumber: item.subCount,
               isRegular: item.isRegular,
-              goodsshelvesRemark: item.remark
+              goodsshelvesRemark: item.remark,
+              warehouseAreaGoodsCode: item.code
             };
           }
         );
         let allocationListArr = this.objExit(allocationList).map((item) => {
           return {
             warehouseAreaCode: item.reservoirAreaCode,
-            goodsAllocationCode: item.goodsShelvesCode,
+            goodsAllocationCode: item.code,
             goodsAllocationLength: item.goodsAllocationLength,
             goodsAllocationWide: item.goodsAllocationWide,
             goodsAllocationHigh: item.goodsAllocationHigh,
             weightLimit: item.goodsAllocationHigh,
             inUseAllocationNumber: item.weightLimit,
-            volumeUnit: item.volumeUnit
+            volumeUnit: item.volumeUnit,
+            warehouseAreaGoodsCode: item.goodsShelvesCode
           };
         });
         let params = {

+ 2 - 6
vue.config.js

@@ -1,11 +1,7 @@
 const CompressionWebpackPlugin = require('compression-webpack-plugin');
-const {
-  transformElementScss
-} = require('ele-admin/lib/utils/dynamic-theme');
+const { transformElementScss } = require('ele-admin/lib/utils/dynamic-theme');
 const path = require('path');
-const {
-  name
-} = require('./package.json');
+const { name } = require('./package.json');
 
 function resolve(dir) {
   return path.join(__dirname, dir);