|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-05-10 15:31:57
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2025-01-23 09:22:36
|
|
5
|
+ * @LastEditTime: 2025-01-23 15:46:04
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -1053,19 +1053,11 @@ export default {
|
1053
|
1053
|
delContractPayment(this.form.contractId)
|
1054
|
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
|
1056
|
for (const work of this.workList) {
|
1061
|
1057
|
work.contractId = this.form.contractId;
|
1062
|
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
|
1061
|
for (const payment of this.paymentList) {
|
1070
|
1062
|
payment.contractId = this.form.contractId;
|
1071
|
1063
|
await addContractPayment(payment);
|
|
@@ -1075,7 +1067,7 @@ export default {
|
1075
|
1067
|
}).then(() => {
|
1076
|
1068
|
// this.$modal.msgSuccess("计划工作量和回款计划添加成功");
|
1077
|
1069
|
}).catch(error => {
|
1078
|
|
- this.$modal.msgError("操作失败: " + error.message);
|
|
1070
|
+ // this.$modal.msgError("操作失败: " + error.message);
|
1079
|
1071
|
});
|
1080
|
1072
|
}).catch(error => {
|
1081
|
1073
|
this.$modal.msgError("合同更新失败: " + error.message);
|