|
@@ -216,8 +216,12 @@ func (s *treeService) GetAllContract(projectId int, account *models.CmProjectAcc
|
|
|
folder.BidsectionId = bidsectionId
|
|
|
// 合同数据
|
|
|
folder.Contracts = data.Contracts
|
|
|
- folder.ContractsIncome = data.ContractsIncome
|
|
|
- folder.ContractsReturned = data.ContractsReturned
|
|
|
+
|
|
|
+ contractsIncome, _ := strconv.ParseFloat(data.ContractsIncome, 64)
|
|
|
+ contractsReturned, _ := strconv.ParseFloat(data.ContractsReturned, 64)
|
|
|
+
|
|
|
+ folder.ContractsIncome = fmt.Sprintf("%G", contractsIncome)
|
|
|
+ folder.ContractsReturned = fmt.Sprintf("%G", contractsReturned)
|
|
|
// 汇款进度
|
|
|
ContractsIncome, err := strconv.ParseFloat(data.ContractsIncome, 64)
|
|
|
if err != nil {
|
|
@@ -231,8 +235,11 @@ func (s *treeService) GetAllContract(projectId int, account *models.CmProjectAcc
|
|
|
folder.ContractsIncomeProgress = fmt.Sprintf("%.0f", (ContractsReturned/ContractsIncome)*100) + "%"
|
|
|
}
|
|
|
|
|
|
- folder.ContractsPay = data.ContractsPay
|
|
|
- folder.ContractsPaid = data.ContractsPaid
|
|
|
+ contractsPay, _ := strconv.ParseFloat(data.ContractsPay, 64)
|
|
|
+ contractsPaid, _ := strconv.ParseFloat(data.ContractsPaid, 64)
|
|
|
+
|
|
|
+ folder.ContractsPay = fmt.Sprintf("%G", contractsPay)
|
|
|
+ folder.ContractsPaid = fmt.Sprintf("%G", contractsPaid)
|
|
|
// 支付进度
|
|
|
ContractsPay, err := strconv.ParseFloat(data.ContractsPay, 64)
|
|
|
if err != nil {
|