Browse Source

表单提交恢复

user5 1 year ago
parent
commit
e873141ee8
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/cw/invoice/InvoiceFormTask.vue

+ 12 - 0
src/views/cw/invoice/InvoiceFormTask.vue

@@ -963,6 +963,18 @@
           }
           }
         })
         })
       },
       },
+	reapplyForm (callback) {
+		this.loading = true
+		financeInvoiceService.queryById(this.inputForm.id).then((data) => {
+			if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
+				this.loading = false
+				this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+				throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
+			} else {
+				this.doSubmit('reapply', callback)
+			}
+		})
+	},
       // 表单提交
       // 表单提交
       async doSubmit (status, callback) {
       async doSubmit (status, callback) {
 		  console.log('this.inputForm.financeInvoiceDetailDTOList', this.inputForm.financeInvoiceDetailDTOList)
 		  console.log('this.inputForm.financeInvoiceDetailDTOList', this.inputForm.financeInvoiceDetailDTOList)