瀏覽代碼

预开票

sangwenwei 1 年之前
父節點
當前提交
563a8fedd2
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/views/cw/invoice/InvoiceFormTask.vue

+ 6 - 4
src/views/cw/invoice/InvoiceFormTask.vue

@@ -300,7 +300,7 @@
             </el-input>
           </el-form-item>
         </el-col >
-		  <el-col :span="12" v-if="(this.commonJS.isNotEmpty(this.bj1)) && status === 'audit'">
+		  <el-col :span="12" v-if="(this.commonJS.isNotEmpty(this.bj1)) && status === 'audit' && isPreInvoice !== '1'">
 			  <el-form-item label="报备类型" prop="reportType"
 							:rules="[]"
 			  >
@@ -314,7 +314,7 @@
 				  </el-select>
 			  </el-form-item>
 		  </el-col>
-		  <el-col :span="12" v-if="(this.commonJS.isNotEmpty(this.bj1)) && status !== 'audit'">
+		  <el-col :span="12" v-if="(this.commonJS.isNotEmpty(this.bj1)) && status !== 'audit' && isPreInvoice !== '1'">
 			  <el-form-item label="报备类型" prop="reportType"
 							:rules="[{required: true, message:'报备类型不能为空', trigger:'blur'}]"
 			  >
@@ -1338,7 +1338,7 @@
 					  throw new Error('开票时间不可以为空')
 				  }
 			  }
-
+			  console.log('this.isPreInvoice',this.isPreInvoice)
 			  if (this.commonJS.isNotEmpty(this.isPreInvoice) && this.isPreInvoice === '1'){
 				  await processService.getByName('会计-预开票申请').then((data) => {
 					  if (!this.commonJS.isEmpty(data.id)) {
@@ -1516,6 +1516,7 @@
 						  r.isPreInvoice = item.isPreInvoice
 						  this.inputForm.financeInvoiceBaseDTOList[this.programRow] = r
 						  this.bj1 = rows.bj1
+						  this.isPreInvoice = item.isPreInvoice
 					  } else {
 						  let r = {
 							  programName: item.projectName,
@@ -1531,7 +1532,7 @@
 						  this.inputForm.financeInvoiceBaseDTOList.push(r)
 						  this.bj1 = rows.bj1
 						  this.baseKey = Math.random()
-
+						  this.isPreInvoice = item.isPreInvoice
 					  }
 				  })
 				  this.$forceUpdate()
@@ -1550,6 +1551,7 @@
 					r.isPreInvoice = rows.isPreInvoice
 					this.inputForm.financeInvoiceBaseDTOList[this.programRow] = r
 					this.bj1 = rows.bj1
+					this.isPreInvoice = rows.isPreInvoice
 					this.$forceUpdate()
 					this.programRow = ''
 				}else{