|
@@ -575,6 +575,7 @@ const getDict = () => {
|
|
|
const getList = async (req) => {
|
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
loading.value = true;
|
|
|
+ getTotal()
|
|
|
proxy.post("/contract/page", sourceList.value.pagination).then((res) => {
|
|
|
sourceList.value.data = res.rows;
|
|
|
sourceList.value.pagination.total = res.total;
|
|
@@ -595,9 +596,11 @@ getDict();
|
|
|
if (route.query.code) {
|
|
|
sourceList.value.pagination.keyword = route.query.code;
|
|
|
}
|
|
|
-getList();
|
|
|
+onMounted(() => {
|
|
|
+ getList();
|
|
|
+})
|
|
|
const getTotal = () => {
|
|
|
- proxy.get("/contract/getHeadCustomerStatistics").then((res) => {
|
|
|
+ proxy.get("/contract/getHeadCustomerStatistics",sourceList.value.pagination).then((res) => {
|
|
|
statConfig.value[0].data = [];
|
|
|
statConfig.value[0].data.push({
|
|
|
label: "合计",
|
|
@@ -630,7 +633,7 @@ const getTotal = () => {
|
|
|
},
|
|
|
{
|
|
|
label: "金额",
|
|
|
- num: res.data.list[i].sumClaimMoney,
|
|
|
+ num: res.data.list[i].sumAmount,
|
|
|
color: "blue",
|
|
|
},
|
|
|
{
|
|
@@ -644,7 +647,7 @@ const getTotal = () => {
|
|
|
console.log(res);
|
|
|
});
|
|
|
};
|
|
|
-getTotal();
|
|
|
+
|
|
|
const newContract = () => {
|
|
|
proxy.$router.replace({
|
|
|
path: "/platform_manage/process/processApproval",
|