浏览代码

口岸监管服务信息系统(一企一册)-企业台账管理,备案单价不为整数时,备案总价计算不准确

CzRger 10 月之前
父节点
当前提交
042367aed4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      snowy-admin-web/src/views/yqyc/zero/enterprise-ledger/detail.vue

+ 1 - 1
snowy-admin-web/src/views/yqyc/zero/enterprise-ledger/detail.vue

@@ -1265,7 +1265,7 @@ const onChangeRecordQuantity = () => {
 const onChangeRecordPrice = () => {
 	setTimeout(() => {
 		if (proxy.$util.isValue(bodyData.value.recordQuantity) && proxy.$util.isValue(bodyData.value.recordPrice)) {
-			bodyData.value.recordTotalPrice = Number(bodyData.value.recordQuantity) * Number(bodyData.value.recordPrice)
+			bodyData.value.recordTotalPrice = proxy.$util.multiplication(bodyData.value.recordQuantity, bodyData.value.recordPrice)
 		} else {
 			bodyData.value.recordTotalPrice = ''
 		}