Procházet zdrojové kódy

栏舍生产值班记录TMR生效日期必填

duanxiaoduan před 2 roky
rodič
revize
3c2791cc7c
2 změnil soubory, kde provedl 8 přidání a 3 odebrání
  1. binární
      dist.zip
  2. 8 3
      src/views/shedProduction/dutyRecord/index.vue

binární
dist.zip


+ 8 - 3
src/views/shedProduction/dutyRecord/index.vue

@@ -534,8 +534,13 @@ export default {
           i = 0
         }
       }
-
-      console.log('点击了新增保存', this.create.list)
+      for(let i=0;i<this.create.list.length;i++){
+        if(this.create.list[i].operatetime == '' || this.create.list[i].operatetime == undefined){
+          this.$message({ type: 'error', message: '生效日期不可为空', duration: 2000 })
+          return
+        }
+      }
+      console.log('点击了新增保存11', this.create.list)
       this.requestParam.common = { 'returnmap': '0' }
       this.requestParam.data = []
       this.requestParam.data[0] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.create.list }}
@@ -575,7 +580,7 @@ export default {
       }, 1000)
 
       for (var i = 0; i < this.create.list2.length; i++) {
-        if (this.create.lis2t[i].driverid == '') {
+        if (this.create.list2[i].driverid == '') {
           this.create.list2.splice(i, 1)
           i = 0
         }