huang_an 2 anni fa
parent
commit
aaff7d3ebf
2 ha cambiato i file con 19 aggiunte e 13 eliminazioni
  1. 18 12
      src/views/ledgerAssets/equipment/edit.vue
  2. 1 1
      vue.config.js

+ 18 - 12
src/views/ledgerAssets/equipment/edit.vue

@@ -1001,6 +1001,12 @@
       async returnItem(item) {
         const data = await factoryworkstation(item.id);
         console.log(data);
+        if (data.workshopId) {
+          await this.returnItem1({ id: data.workshopId });
+        }
+        if (data.productionLineId) {
+          await this.getCxList(data.productionLineId);
+        }
         this.zcInfo.factoryRoomId1 = data.factoryId;
         this.zcInfo.factoryRoomName1 = data.factoryName;
         this.zcInfo.factoryRoomId2 = data.workshopPlanId;
@@ -1198,18 +1204,18 @@
         if (!this.basicInfo && this.pageType == 'add') {
           return this.$message.error('请选择物品编码');
         }
-        if (!this.zcInfo.factoryRoomId1) {
-          return this.$message.error('请选择工厂');
-        }
-        if (!this.zcInfo.factoryRoomId2) {
-          return this.$message.error('请选择厂房');
-        }
-        if (!this.zcInfo.factoryRoomId3) {
-          return this.$message.error('请选择车间');
-        }
-        if (!this.zcInfo.factoryRoomId4) {
-          return this.$message.error('请选择产线');
-        }
+        // if (!this.zcInfo.factoryRoomId1) {
+        //   return this.$message.error('请选择工厂');
+        // }
+        // if (!this.zcInfo.factoryRoomId2) {
+        //   return this.$message.error('请选择厂房');
+        // }
+        // if (!this.zcInfo.factoryRoomId3) {
+        //   return this.$message.error('请选择车间');
+        // }
+        // if (!this.zcInfo.factoryRoomId4) {
+        //   return this.$message.error('请选择产线');
+        // }
         // if (!this.zcInfo.factoryRoomId5) {
         //   return this.$message.error('请选择工位');
         // }

+ 1 - 1
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
         // target: 'http://124.71.68.31:50001',
         // target: 'http://192.168.1.139:18086', // 粟
         // target: 'http://192.168.1.132:18086', // 徐
-        target: 'http://192.168.1.114:18086', //本
+        target: 'http://192.168.1.108:18086', //本
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''