Ver Fonte

修复嘉实BOM发布时候没有选择类型也能提交

695593266@qq.com há 6 meses atrás
pai
commit
eff4d97381

+ 4 - 0
src/views/material/BOMmanage/components/detailsPop.vue

@@ -802,6 +802,10 @@
       },
 
       handJsSubmit() {
+        if (!this.radioSubmit) {
+          return this.$message.warning('请选择提交的BOM的类型!');
+        }
+
         let URL = this.radioSubmit == 1 ? jsBomSubmit : deviceBomSubmit;
         this.$alert('确定要发布吗?', '提示', {
           confirmButtonText: '确定',

+ 4 - 0
src/views/material/BOMmanage/index.vue

@@ -569,6 +569,10 @@
         });
       },
       handJsSubmit() {
+        if (!this.radioSubmit) {
+          return this.$message.warning('请选择提交的BOM的类型!');
+        }
+
         this.submit(
           this.radioSubmit == 1 ? 'bom_release' : 'bom_release_device'
         );

+ 2 - 2
vue.config.js

@@ -35,7 +35,7 @@ module.exports = {
         // target: 'http://192.168.1.3:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
-        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:18186',
@@ -45,7 +45,7 @@ module.exports = {
         // target: 'http://192.168.1.116:18086',
         // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.11:18086', // 开发
-        target: 'http://192.168.1.116:18086', // 赵沙金
+        // target: 'http://192.168.1.116:18086', // 赵沙金
         // target: 'http://aiot.zoomwin.com.cn:51001/api',
         // target: 'http://f222326r53.imwork.net',