|
@@ -601,54 +601,54 @@ onMounted(() => {
|
|
|
getList()
|
|
|
})
|
|
|
const getTotal = () => {
|
|
|
- proxy.get("/contract/getHeadCustomerStatistics",sourceList.value.pagination).then((res) => {
|
|
|
- statConfig.value[0].data = [];
|
|
|
+ proxy.post("/contract/getHeadCustomerStatistics",sourceList.value.pagination).then((res) => {
|
|
|
+
|
|
|
statConfig.value[0].data.push({
|
|
|
- label:'合计',
|
|
|
- data:[
|
|
|
+ label: "合计",
|
|
|
+ data: [
|
|
|
{
|
|
|
- label:'数量',
|
|
|
- num:res.data.sumQuantity,
|
|
|
- color:'rgb(171 0 255)',
|
|
|
+ label: "数量",
|
|
|
+ num: res.sumQuantity,
|
|
|
+ color: "rgb(171 0 255)",
|
|
|
},
|
|
|
{
|
|
|
- label:'金额',
|
|
|
- num:res.data.sumArrivalAmount,
|
|
|
- color:'rgb(171 0 255)',
|
|
|
+ label: "金额",
|
|
|
+ num: res.sumArrivalAmount.toFixed(2),
|
|
|
+ color: "rgb(171 0 255)",
|
|
|
},
|
|
|
{
|
|
|
- label:'到账金额',
|
|
|
- num:res.data.sumAmount,
|
|
|
- color:'rgb(171 0 255)',
|
|
|
+ label: "到账金额",
|
|
|
+ num: res.sumAmount.toFixed(2),
|
|
|
+ color: "rgb(171 0 255)",
|
|
|
},
|
|
|
- ]
|
|
|
- })
|
|
|
- for (let i = 0; i < res.data.list.length; i++) {
|
|
|
+ ],
|
|
|
+ });
|
|
|
+ for (let i = 0; i < res.list.length; i++) {
|
|
|
statConfig.value[0].data.push({
|
|
|
- label:res.data.list[i].sellCorporationName,
|
|
|
- data:[
|
|
|
+ label: res.list[i].sellCorporationName,
|
|
|
+ data: [
|
|
|
{
|
|
|
- label:'数量',
|
|
|
- num:res.data.list[i].sumQuantity,
|
|
|
- color:'blue',
|
|
|
+ label: "数量",
|
|
|
+ num: res.list[i].sumQuantity,
|
|
|
+ color: "blue",
|
|
|
},
|
|
|
{
|
|
|
- label:'金额',
|
|
|
- num:res.data.list[i].sumClaimMoney,
|
|
|
- color:'blue',
|
|
|
+ label: "金额",
|
|
|
+ num: res.list[i].sumAmount.toFixed(2),
|
|
|
+ color: "blue",
|
|
|
},
|
|
|
{
|
|
|
- label:'到账金额',
|
|
|
- num:res.data.list[i].sumClaimMoney,
|
|
|
- color:'blue',
|
|
|
+ label: "到账金额",
|
|
|
+ num: res.list[i].sumClaimMoney.toFixed(2),
|
|
|
+ color: "blue",
|
|
|
},
|
|
|
- ]
|
|
|
- })
|
|
|
+ ],
|
|
|
+ });
|
|
|
}
|
|
|
console.log(res);
|
|
|
});
|
|
|
};
|
|
|
-getTotal();
|
|
|
+
|
|
|
const newContract = () => {
|
|
|
proxy.$router.replace({
|
|
|
path: "/platform_manage/process/processApproval",
|