|
@@ -369,13 +369,13 @@ const changeNodeFinish = (data) => {
|
|
|
|
|
|
//变更清单增减
|
|
|
const currentChangeTotalBlur = (row) => {
|
|
|
- const changeNum = (BigNumber(row.contractTotal).plus(row.currentChangeTotal)).toNumber()
|
|
|
+ const changeNum = (BigNumber(row.contractTotal).plus(row.currentChangeTotal)).toString()
|
|
|
if (changeNum < 0) {
|
|
|
window.$message.warning('变更增减数量不能小于变更前数量')
|
|
|
const contract = '-' + row.contractTotal
|
|
|
nextTick(() => {
|
|
|
//计算金额
|
|
|
- row.currentChangeMoney = (BigNumber(contract).multipliedBy(row.currentPrice)).toNumber()
|
|
|
+ row.currentChangeMoney = (BigNumber(contract).multipliedBy(row.currentPrice)).toString()
|
|
|
row.changeMoney = 0
|
|
|
|
|
|
//设置数量
|
|
@@ -389,8 +389,8 @@ const currentChangeTotalBlur = (row) => {
|
|
|
//设置数量
|
|
|
row.changeTotal = changeNum
|
|
|
//计算金额
|
|
|
- row.currentChangeMoney = (BigNumber(row.currentChangeTotal).multipliedBy(row.currentPrice)).toNumber()
|
|
|
- row.changeMoney = (BigNumber(changeNum).multipliedBy(row.currentPrice)).toNumber()
|
|
|
+ row.currentChangeMoney = (BigNumber(row.currentChangeTotal).multipliedBy(row.currentPrice)).toString()
|
|
|
+ row.changeMoney = (BigNumber(changeNum).multipliedBy(row.currentPrice)).toString()
|
|
|
|
|
|
getFormList()
|
|
|
})
|
|
@@ -408,9 +408,9 @@ const getFormList = () => {
|
|
|
let changeMoney = 0
|
|
|
for (let j = 0; j < item.formList.length; j++) {
|
|
|
const form = item.formList[j]
|
|
|
- total = (BigNumber(total).plus(form.currentChangeMoney)).toNumber()
|
|
|
+ total = (BigNumber(total).plus(form.currentChangeMoney)).toString()
|
|
|
//变更后的金额统计
|
|
|
- changeMoney = (BigNumber(changeMoney).plus(form.changeMoney)).toNumber()
|
|
|
+ changeMoney = (BigNumber(changeMoney).plus(form.changeMoney)).toString()
|
|
|
}
|
|
|
item.changeMoney = changeMoney
|
|
|
}
|