gaoluyang
2 天以前 2a8cbb40359eee991487c598f3348ec85172290a
src/views/index.vue
@@ -287,7 +287,7 @@
   formatter: function (params) {
      // 动态生成提示信息,基于数据项的 name 属性
      const description = params.name === '本月回款金额' ? '本月回款金额' : '应收款金额';
      return `${description} ${formatNumber(params.value)}元 ${params.percent}%`;
      return `${description} ${formattedNumber(params.value)}元 ${params.percent}%`;
   },
   position: 'right'
})
@@ -365,6 +365,9 @@
      businessInfo.value = {...res.data}
   })
}
const formattedNumber = (row, column, cellValue) => {
   return parseFloat(cellValue).toFixed(2);
};
// 合同金额
const analysisCustomer = () => {
   analysisCustomerContractAmounts().then((res) => {