Browse Source

修改承接合同线上评审报操作失败的错误

余思翰 4 months ago
parent
commit
70144d8205
1 changed files with 2 additions and 10 deletions
  1. 2
    10
      oa-ui/src/views/flowable/form/business/contractForm.vue

+ 2
- 10
oa-ui/src/views/flowable/form/business/contractForm.vue View File

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-05-10 15:31:57
3
  * @Date: 2024-05-10 15:31:57
4
  * @LastEditors: Please set LastEditors
4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-01-23 09:22:36
5
+ * @LastEditTime: 2025-01-23 15:46:04
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
1053
           delContractPayment(this.form.contractId)
1053
           delContractPayment(this.form.contractId)
1054
         ]).then(async ([workRes, paymentRes]) => {
1054
         ]).then(async ([workRes, paymentRes]) => {
1055
           // 添加工作信息
1055
           // 添加工作信息
1056
-          // const workPromises = this.workList.map(async work => {
1057
-          //   work.contractId = this.form.contractId;
1058
-          //   return await addContractWork(work);
1059
-          // });
1060
           for (const work of this.workList) {
1056
           for (const work of this.workList) {
1061
             work.contractId = this.form.contractId;
1057
             work.contractId = this.form.contractId;
1062
             await addContractWork(work);
1058
             await addContractWork(work);
1063
           }
1059
           }
1064
           // 添加支付信息
1060
           // 添加支付信息
1065
-          // const paymentPromises = this.paymentList.map(async payment => {
1066
-          //   payment.contractId = this.form.contractId;
1067
-          //   return await addContractPayment(payment);
1068
-          // });
1069
           for (const payment of this.paymentList) {
1061
           for (const payment of this.paymentList) {
1070
             payment.contractId = this.form.contractId;
1062
             payment.contractId = this.form.contractId;
1071
             await addContractPayment(payment);
1063
             await addContractPayment(payment);
1075
         }).then(() => {
1067
         }).then(() => {
1076
           // this.$modal.msgSuccess("计划工作量和回款计划添加成功");
1068
           // this.$modal.msgSuccess("计划工作量和回款计划添加成功");
1077
         }).catch(error => {
1069
         }).catch(error => {
1078
-          this.$modal.msgError("操作失败: " + error.message);
1070
+          // this.$modal.msgError("操作失败: " + error.message);
1079
         });
1071
         });
1080
       }).catch(error => {
1072
       }).catch(error => {
1081
         this.$modal.msgError("合同更新失败: " + error.message);
1073
         this.$modal.msgError("合同更新失败: " + error.message);

Loading…
Cancel
Save