Quellcode durchsuchen

承接合同和分包合同列表新增回款、付款金额

余思翰 vor 3 Monaten
Ursprung
Commit
b13589f1aa

+ 6
- 1
oa-ui/src/views/oa/contract/index.vue Datei anzeigen

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-06-21 18:52:00
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-13 09:56:22
5
+ * @LastEditTime: 2025-02-17 15:12:03
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -71,6 +71,9 @@
71 71
         <template slot-scope="scope">
72 72
           <el-progress :text-inside="true" :stroke-width="26" :status="formatStatus(scope.row.percentage)"
73 73
             :percentage="scope.row.percentage" text-color="#fff"></el-progress>
74
+            <div>
75
+              {{scope.row.paidAmount}}
76
+            </div>
74 77
         </template>
75 78
       </el-table-column>
76 79
       <!-- <el-table-column label="签订备注" align="center" prop="signRemark" /> -->
@@ -206,7 +209,9 @@ export default {
206 209
           listContractPaid({ contractId: contract.contractId }).then(res => {
207 210
             if (res.total > 0) {
208 211
               let percentage = res.rows.reduce((sum, item) => sum + Number(item.paidPercentage), 0);
212
+              let paidAmount = res.rows.reduce((sum, item) => sum + Number(item.paidAmount), 0);
209 213
               this.$set(contract, 'percentage', Number(percentage.toFixed(2)))
214
+              this.$set(contract, 'paidAmount', Number(paidAmount.toFixed(2)))
210 215
             } else {
211 216
               this.$set(contract, 'percentage', 0)
212 217
             }

+ 9
- 4
oa-ui/src/views/oa/contract/subContract.vue Datei anzeigen

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-06-21 18:52:00
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-14 15:25:53
5
+ * @LastEditTime: 2025-02-17 15:15:23
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -56,7 +56,7 @@
56 56
             {{ getFileName(scope.row.contractDocument) }}
57 57
           </el-link>
58 58
         </template>
59
-      </el-table-column> -->
59
+</el-table-column> -->
60 60
       <el-table-column label="拟稿日期" align="center" prop="draftTime">
61 61
         <template slot-scope="scope">
62 62
           <span>{{ parseTime(scope.row.draftTime, '{y}-{m}-{d}') }}</span>
@@ -72,6 +72,9 @@
72 72
         <template slot-scope="scope">
73 73
           <el-progress :text-inside="true" :stroke-width="26" :status="formatStatus(scope.row.percentage)"
74 74
             :percentage="scope.row.percentage" text-color="#fff"></el-progress>
75
+          <div>
76
+            {{ scope.row.paidAmount }}
77
+          </div>
75 78
         </template>
76 79
       </el-table-column>
77 80
       <!-- <el-table-column label="签订备注" align="center" prop="signRemark" /> -->
@@ -118,7 +121,7 @@
118 121
     <el-dialog :title="title" :visible.sync="openInfo" append-to-body width="60%">
119 122
       <sub-contract :taskForm="taskForm" :taskName="''" :flowDisabled="false"></sub-contract>
120 123
     </el-dialog>
121
-    
124
+
122 125
     <!-- 回款进度 -->
123 126
     <el-dialog :title="title" :visible.sync="progressOpen" width="50%" append-to-body>
124 127
       <sub-progress :form="progressContract" @cancel="progressOpen = false" @getList="getList"></sub-progress>
@@ -210,7 +213,9 @@ export default {
210 213
           listContractPaid({ contractId: subContract.subContractId }).then(res => {
211 214
             if (res.total > 0) {
212 215
               let percentage = res.rows.reduce((sum, item) => sum + Number(item.paidPercentage), 0);
213
-              this.$set(subContract, 'percentage', Number(percentage.toFixed(2)))
216
+              let paidAmount = res.rows.reduce((sum, item) => sum + Number(item.paidAmount), 0);
217
+              this.$set(subContract, 'percentage', Number(percentage.toFixed(2)));
218
+              this.$set(subContract, 'paidAmount', Number(paidAmount.toFixed(2)));
214 219
             } else {
215 220
               this.$set(subContract, 'percentage', 0)
216 221
             }

Laden…
Abbrechen
Speichern