liujt 1 неделя назад
Родитель
Сommit
f5d679907a
1 измененных файлов с 15 добавлено и 7 удалено
  1. 15 7
      pages/home/wt/components/pricingManage/taskSubmit.vue

+ 15 - 7
pages/home/wt/components/pricingManage/taskSubmit.vue

@@ -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);
 			},