quwangxin hace 2 años
padre
commit
ee98c11e78

+ 2 - 0
src/views/produceOrder/components/report/Common.vue

@@ -321,6 +321,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 2 - 0
src/views/produceOrder/components/report/Drying.vue

@@ -355,6 +355,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 3 - 1
src/views/produceOrder/components/report/Extrusion.vue

@@ -445,7 +445,7 @@
         this.countMsg = res;
       },
       report (fun) {
-        this.$refs.formRef.validate((value) => {
+        this.$refs.formRef.validate((value, error) => {
           if (value) {
             this.$confirm('是否确定要报工?', '提示').then(() => {
               const workReportDeviceList = [];
@@ -468,6 +468,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 2 - 0
src/views/produceOrder/components/report/Furnace.vue

@@ -197,6 +197,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 2 - 0
src/views/produceOrder/components/report/HalfAdded.vue

@@ -362,6 +362,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 2 - 0
src/views/produceOrder/components/report/Heating.vue

@@ -371,6 +371,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 2 - 0
src/views/produceOrder/components/report/Package.vue

@@ -355,6 +355,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }

+ 3 - 1
src/views/produceOrder/components/report/Warehousing.vue

@@ -21,7 +21,7 @@
       <div class="right">
         <el-form-item
           label="执行人工号"
-          prop="workReport.executorJobNum"
+          prop="workReport.executorId"
           required
           label-width="100px"
           ><personSelectRemote
@@ -201,6 +201,8 @@
                 this.getReportCount();
               });
             });
+          } else {
+            this.$message.error('请输入必填项!');
           }
         });
       }