Browse Source

预开票功能调整

徐滕 23 hours ago
parent
commit
59265ede31
1 changed files with 11 additions and 14 deletions
  1. 11 14
      src/views/cw/projectRecords/ProjectRecordsAddForm.vue

+ 11 - 14
src/views/cw/projectRecords/ProjectRecordsAddForm.vue

@@ -1140,20 +1140,17 @@ export default {
         }
       })
     },
-    // preInvoice(){
-    // console.log('this.inputForm.reportType',this.inputForm.reportType)
-    // console.log('this.inputForm.projectClassification',this.inputForm.projectClassification)
-    // console.log('this.inputForm.isHaveReport',this.inputForm.isHaveReport)
-    // 	if (this.commonJS.isNotEmpty(this.inputForm.isHaveReport) && this.commonJS.isNotEmpty(this.inputForm.projectClassification) && this.commonJS.isNotEmpty(this.inputForm.reportType)){
-    // 		if (this.inputForm.isHaveReport === '1' && this.inputForm.projectClassification === '16' && this.inputForm.reportType === '10'){
-    // 			this.ifCheck = false
-    // 		}else {
-    // 			this.ifCheck = true
-    // 		}
-    // 	}else {
-    // 		this.ifCheck = true
-    // 	}
-    // },
+    preInvoice(){
+    	if (this.commonJS.isNotEmpty(this.inputForm.isHaveReport) && this.commonJS.isNotEmpty(this.inputForm.projectClassification) && this.commonJS.isNotEmpty(this.inputForm.reportType)){
+    		if (this.inputForm.isHaveReport === '1' && (this.inputForm.projectClassification === '16' || this.inputForm.projectClassification === '17') && this.inputForm.reportType === '10'){
+    			this.ifCheck = false
+    		}else {
+    			this.ifCheck = true
+    		}
+    	}else {
+    		this.ifCheck = true
+    	}
+    },
     openUserDia1() {
       this.$refs.userSelect1.init()
     },