瀏覽代碼

修改bug

695593266@qq.com 3 天之前
父節點
當前提交
2fbd1afbfb
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 3 1
      src/views/productionPlan/components/newFactoryProductionScheduling.vue
  2. 2 2
      vue.config.js

+ 3 - 1
src/views/productionPlan/components/newFactoryProductionScheduling.vue

@@ -991,7 +991,9 @@
         };
       },
       handlePublish(row) {
-        if (!row.bomCategoryId) {
+        const skipBomCheck =
+          this.isOrderScheduling && String(row?.workOrderType ?? '') === '3';
+        if (!skipBomCheck && !row.bomCategoryId) {
           this.$message.warning('该计划没有配置BOM请先配置BOM');
           return;
         }

+ 2 - 2
vue.config.js

@@ -35,14 +35,14 @@ 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.125:18086',
 
         // target: 'http://192.168.1.116:18086',