|
@@ -186,6 +186,7 @@ import { useAppStore } from '~src/store'
|
|
|
import { isNumberReg } from '~uti/tools'
|
|
|
import mainApi from '~api/debit-pay/material/material'
|
|
|
import { deepClone, formValidate, getArrValue, getObjValue, isNullES, newWindow } from 'js-fast-way'
|
|
|
+import BigNumber from 'bignumber.js'
|
|
|
|
|
|
const props = defineProps({
|
|
|
ids: {
|
|
@@ -524,7 +525,7 @@ const changeTotalBlur = (row) => {
|
|
|
if (!isNumberReg(changeTotal)) {
|
|
|
row.changeTotal = meterTotal
|
|
|
window.$message.warning('请输入正确的可调量')
|
|
|
- } else if (changeTotal > meterTotal) {
|
|
|
+ } else if (new BigNumber(changeTotal).comparedTo(new BigNumber(meterTotal)) === 1) {
|
|
|
row.changeTotal = meterTotal
|
|
|
window.$message.warning('只能小于等于计量数量')
|
|
|
}
|