|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-12-16 10:25:17
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-12-19 16:16:51
|
|
5
|
+ * @LastEditTime: 2024-12-20 10:37:08
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -124,7 +124,7 @@
|
124
|
124
|
</div>
|
125
|
125
|
</template>
|
126
|
126
|
<script>
|
127
|
|
-import { listContract, getContractStatisticSortByField, getContractStatistic } from "@/api/oa/contract/contract";
|
|
127
|
+import { listContract, getContractStatisticSortByField, getContractStatisticById } from "@/api/oa/contract/contract";
|
128
|
128
|
import { listProjectContract } from "@/api/oa/contract/projectContract";
|
129
|
129
|
import SubStatistic from './components/subStatistic.vue';
|
130
|
130
|
import BorrowStatistic from "./components/borrowStatistic.vue";
|
|
@@ -179,6 +179,7 @@ export default {
|
179
|
179
|
if (res.total != 0) {
|
180
|
180
|
this.contract = this.contractList[0];
|
181
|
181
|
this.getContractProject(this.contract.contractId);
|
|
182
|
+ this.getStatistic(this.contract.contractId);
|
182
|
183
|
}
|
183
|
184
|
})
|
184
|
185
|
},
|
|
@@ -189,8 +190,11 @@ export default {
|
189
|
190
|
this.loading = true
|
190
|
191
|
this.status = 'sort'
|
191
|
192
|
this.field = field
|
|
193
|
+ this.queryParams.pageNum = 1
|
|
194
|
+ this.queryInput = ''
|
192
|
195
|
getContractStatisticSortByField({ field }).then(res => {
|
193
|
196
|
let list = res.data.sort;
|
|
197
|
+ this.total = list.length;
|
194
|
198
|
let a = list.slice((this.queryParams.pageNum - 1) * this.queryParams.pageSize, this.queryParams.pageNum * this.queryParams.pageSize);
|
195
|
199
|
this.contractList = a;
|
196
|
200
|
this.loading = false;
|
|
@@ -240,7 +244,7 @@ export default {
|
240
|
244
|
}
|
241
|
245
|
},
|
242
|
246
|
getStatistic(contractId) {
|
243
|
|
- getContractStatistic(contractId).then(res => {
|
|
247
|
+ getContractStatisticById(contractId).then(res => {
|
244
|
248
|
this.subContractAmount = res.data.subAmount
|
245
|
249
|
this.budgetSumAmount = res.data.budgetAmount
|
246
|
250
|
this.borrowSumAmount = res.data.borrowAmount
|