Explorar el Código

销售管理详情金额调整

pengyh hace 1 año
padre
commit
6bb7fb5864

+ 3 - 3
src/views/auxiliaryFittings/settleAccountManagement/salesWithdraw/index.vue

@@ -215,9 +215,9 @@ export default {
 								certImg: res.data?.certImg ? res.data?.certImg?.split(",").map(item => ({ url: item })) : []
 							})
 							res.data.withdrawalOrderItems.forEach(item => {
-								this.totalAmount += item.totalPrice
-								this.workerAmount += item.workerAmount
-								this.websitAmount += item.websitAmount
+								this.totalAmount += (item.totalPrice * 100 + this.totalAmount * 100) / 100
+								this.workerAmount = (item.workerAmount * 100 + this.workerAmount * 100) / 100
+								this.websitAmount += (item.websitAmount * 100 + this.websitAmount * 100) / 100
 							})
 							this.formDialogType = 1
 							this.openForm()