Browse Source

报备类型

sangwenwei 1 year atrás
parent
commit
0d9bf64101
1 changed files with 7 additions and 16 deletions
  1. 7 16
      src/views/cw/invoice/InvoiceFormTask.vue

+ 7 - 16
src/views/cw/invoice/InvoiceFormTask.vue

@@ -286,12 +286,10 @@
 
             </el-input>
           </el-form-item>
-        </el-col>
+        </el-col >
 		  <el-col :span="12" v-if="this.inputForm.programId==null || this.inputForm.programId == ''?!isShow:isShow">
 			  <el-form-item label="报备类型" prop="reportType"
-							:rules="[
-                                 {required: true, message:'报备类型不能为空', trigger:'blur'}
-                  ]">
+							:rules="[]">
 				  <el-select v-model="inputForm.reportType" placeholder="请选择报备类型" clearable style="width: 100%;">
 					  <el-option
 						  v-for="item in $dictUtils.getDictList('cw_work_client_report_type')"
@@ -752,7 +750,7 @@
           isMultiple: '',
           billingId: '',
 			reportType:'',
-			recordType:''
+
         },
         programRow: '',
         bankList: [],
@@ -764,7 +762,7 @@
         detailKey: '',
         receivablesKey: '',
 	    isShow:false,
-
+	    recordType:''
       }
     },
     created () {
@@ -864,7 +862,6 @@
 				isMultiple: '',
 				billingId: '',
 				reportType: '',
-				recordType:''
 			}
 			// if (method === 'add') {
 			//   this.title = `新建发票`
@@ -933,9 +930,7 @@
 					if (this.status === 'audit' || this.status === 'taskFormDetail') {
 						method = 'view'
 					}
-					if (this.commonJS.isEmpty(this.inputForm.programId)){
-						this.inputForm.recordType='0'
-					}
+
 					// if (this.status === 'audit') {
 					//   if (this.commonJS.isEmpty(this.inputForm.billingDate)) {
 					//     this.inputForm.billingDate = this.moment(new Date()).format('YYYY-MM-DD')
@@ -1013,8 +1008,6 @@
 		},
 		// 表单提交
 		async doSubmit(status, callback) {
-			console.log(this.inputForm.programId)
-			console.log(this.inputForm.financeInvoiceBaseDTOList)
 			this.loading = true
 			if (await this.$refs.uploadComponent.checkProgress()) {
 				this.loading = false
@@ -1036,7 +1029,7 @@
 				if (this.commonJS.isEmpty(this.inputForm.programId)) {
 					if (this.commonJS.isEmpty(this.inputForm.reportType)) {
 						this.$message.error('请选择报备类型')
-						return;
+
 					}
 				}
 				return
@@ -1044,12 +1037,10 @@
 				if (this.commonJS.isEmpty(this.inputForm.programId)) {
 					if (this.commonJS.isEmpty(this.inputForm.reportType)) {
 						this.$message.error('请选择报备类型')
-						return;
 					}
-
 				}
 				if (this.inputForm.programId==null){
-					this.inputForm.recordType='0'
+					this.recordType='0'
 				}
 				// 送审  待审核
 				this.inputForm.status = '2'