Просмотр исходного кода

修复新增销售订单和生产计划的是没有自动带出机型和颜色

695593266@qq.com 6 месяцев назад
Родитель
Сommit
4ef6ee8693

+ 9 - 1
src/views/productionPlan/components/factoryAdd/index.vue

@@ -1091,6 +1091,8 @@
               produceRoutingName: item.produceRoutingName,
               produceVersionName: item.produceVersionName,
               factoriesId: this.factoriesId,
+              colorKey: item.colorKey ? item.colorKey.split(',') : [],
+              modelKey: item.modelKey ? item.modelKey.split(',') : [],
               factoriesName: this.factoryList?.find(
                 (factoryData) => factoryData.id === this.factoriesId
               )?.name
@@ -1191,6 +1193,8 @@
         this.form.productInfoList.push(...result);
         this.changeLineNumber();
 
+        console.log(this.form.productInfoList, 'this.form.productInfoList');
+
         this.$refs.tableRef.setData(this.form.productInfoList);
         // console.log(this.form.productInfoList, 'this.form.productInfoList');
         //重置
@@ -1282,7 +1286,11 @@
             row.routingList = arr;
             if (typeChange) {
               this.$set(this.form.productInfoList[index], 'routingList', arr);
-              this.$set(this.form.productInfoList[index], 'produceRoutingId', arr[0].id);
+              this.$set(
+                this.form.productInfoList[index],
+                'produceRoutingId',
+                arr[0].id
+              );
             } else {
               this.$set(row, 'produceRoutingId', arr[0].id);
               this.$set(row, 'routingList', arr);

+ 3 - 1
src/views/saleOrder/components/create-order.vue

@@ -1235,7 +1235,9 @@
                 model: item.modelType,
                 specification: item.specification,
                 brandNo: item.brandNum,
-                measuringUnit: item.measuringUnit
+                measuringUnit: item.measuringUnit,
+                colorKey: item.colorKey ? item.colorKey.split(',') : [],
+                modelKey: item.modelKey ? item.modelKey.split(',') : []
               };
             }
           })

+ 3 - 2
vue.config.js

@@ -35,15 +35,16 @@ module.exports = {
         // target: 'http://192.168.1.103:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.158:18086',
-        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.144:18086',
+        target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.211:18086',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.102:18086',
         // target: 'http://aiot.zoomwin.com.cn:51001/api',
         // target: 'http://192.168.1.125:18086',
 
-        target: 'http://192.168.1.116:18086',
+        // target: 'http://192.168.1.116:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {