|
@@ -219,25 +219,30 @@
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
} else {
|
|
|
- this.loading = true
|
|
|
- this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
|
|
|
- if (this.commonJS.isNotEmpty(data)) {
|
|
|
- if (data === '欠款回收') {
|
|
|
- this.inputForm.type = '5'
|
|
|
- }
|
|
|
- if (data === '社保账款检查' || data === '欠款校核') {
|
|
|
- this.inputForm.assignee = this.inputForm.assigneeId
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.inputForm.imprestAmountArrears == 0) {
|
|
|
- this.inputForm.type = '5'
|
|
|
+
|
|
|
+ this.$refs['inputForm'].validate(async (valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.loading = true
|
|
|
+ this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
|
|
|
+ if (this.commonJS.isNotEmpty(data)) {
|
|
|
+ if (data === '欠款回收') {
|
|
|
+ this.inputForm.type = '5'
|
|
|
+ }
|
|
|
+ if (data === '社保账款检查' || data === '欠款校核') {
|
|
|
+ this.inputForm.assignee = this.inputForm.assigneeId
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (data === '社保账款检查' & this.inputForm.imprestAmountArrears === 0) {
|
|
|
+ this.inputForm.type = '5'
|
|
|
+ }
|
|
|
+ handoverSocialSecurityService.save(this.inputForm).then((data) => {
|
|
|
+ callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
+ this.loading = false
|
|
|
+ }).catch(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
- handoverSocialSecurityService.save(this.inputForm).then((data) => {
|
|
|
- callback(data.businessTable, data.businessId, this.inputForm)
|
|
|
- this.loading = false
|
|
|
- }).catch(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
}
|