|
|
@@ -113,14 +113,22 @@
|
|
|
},
|
|
|
async handleAudit(status) {
|
|
|
if (!!status) await this.$refs.uForm.validate()
|
|
|
- let res = await this.getTableValue();
|
|
|
+ if (
|
|
|
+ (this.taskDefinitionKey === 'starter' ||
|
|
|
+ this.taskDefinitionKey === 'deptLeaderApprove') &&
|
|
|
+ status === 1
|
|
|
+ ) {
|
|
|
+ let res = await this.getTableValue();
|
|
|
+ if (!res) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ console.log('res~~~~', res)
|
|
|
|
|
|
- console.log('res~~~~', res)
|
|
|
-
|
|
|
- const data = await UpdateInformation(res)
|
|
|
- // if (data.code != '0') {
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ const data = await UpdateInformation(res)
|
|
|
+ // if (data.code != '0') {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ }
|
|
|
this.loading = true
|
|
|
await this._approveTaskWithVariables(status);
|
|
|
},
|