695593266@qq.com 3 месяцев назад
Родитель
Сommit
1884e87832
3 измененных файлов с 18 добавлено и 5 удалено
  1. 1 1
      src/views/produce/components/picking/details.vue
  2. 15 2
      src/views/produce/index.vue
  3. 2 2
      vue.config.js

+ 1 - 1
src/views/produce/components/picking/details.vue

@@ -203,7 +203,7 @@
       rowClick(row) {},
 
       handleAdd() {
-        this.$emit('pickAdd', 'pick');
+        this.$emit('pickAdd', 'pick', this.dataList);
       },
 
       refresh() {

+ 15 - 2
src/views/produce/index.vue

@@ -2235,14 +2235,27 @@
         });
       },
 
-      pickAdd() {
+      async pickAdd(type, dataList) {
         if (this.workListIds.length > 1) {
           return this.$message.warning('领料只能选择一个工单!');
         } else if (this.workListIds.length < 1) {
           return this.$message.warning('请选择工单!');
         }
 
-        this.checkPick();
+        if (dataList.length == 0) {
+          this.pickingShow = true;
+        } else {
+          const res = await parameterGetByCode({
+            code: 'only_one_picking_order'
+          });
+          if (res.value == '1') {
+            return this.$message.warning('已有领料,不能重复领料!');
+          } else {
+            this.checkPick();
+          }
+        }
+
+        // this.checkPick();
 
         // this.pickingShow = true;
       },

+ 2 - 2
vue.config.js

@@ -32,10 +32,10 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
         // target: 'http://124.71.68.31:50001',
-        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.251:18186',
-        target: 'http://192.168.1.251:18086', // 开发环境
+        // target: 'http://192.168.1.251:18086', // 开发环境
         // target: 'http://192.168.1.103:18086',192.168.1.116
         // target: 'http://192.168.1.144:18086',
         // target: 'http://192.168.1.30:18086',