jiangbiao 3 years ago
parent
commit
d51cd6bf6c
1 changed files with 9 additions and 9 deletions
  1. 9 9
      ui/src/views/invoice/bookingworkticket/index.vue

+ 9 - 9
ui/src/views/invoice/bookingworkticket/index.vue

@@ -644,7 +644,7 @@ export default {
               this.approveForm.isToday = 1;
         }
          //判断是否涉及 动火 和当日
-          if (row.workType===1||row.workType===2||row.workType===3||row.workType===15){
+          if (row.workType===1||row.workType===15){
             this.approveForm.isSpecial = 1
           }
         this.approveForm.userSupId=row.bookingworkticket.userMg;
@@ -956,14 +956,14 @@ export default {
             }else{
                    this.approveForm.isToday = 0;
             }
-            for(let i=0;i<this.ruleForm.length;i++){
-               if( this.ruleForm[i].workType===1||this.ruleForm[i].workType===2||
-               this.ruleForm[i].workType===3||this.ruleForm[i].workType===15){
-              this.approveForm.isSpecial = 1
-            }else{
-                this.approveForm.isSpecial = 0
-            }
-            }
+              for (let i = 0; i < this.ruleForm.length; i++) {
+                if (this.ruleForm[i].workType === 1 || this.ruleForm[i].workType === 15) {
+                  this.approveForm.isSpecial = 1
+                  break;
+                } else {
+                  this.approveForm.isSpecial = 0
+                }
+              }
              this.approveForm.userSupId=this.form.userMg
 
              addInvoice(this.approveForm).then(response => {