|
@@ -167,13 +167,14 @@ import { isNumberReg, keepdecimal } from '~uti/tools'
|
|
|
import HcBillBaseModal from './addBillBaseModal.vue'
|
|
|
import qualityRleation from './qualityRleation.vue'
|
|
|
import { arrDelKey, arrToId, arrToKey, deepClone, getArrValue, getObjValue, getRandom, isArrIndex, isNullES } from 'js-fast-way'
|
|
|
+import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import BigNumber from 'bignumber.js'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
+import website from '~src/config'
|
|
|
|
|
|
import unitApi from '~api/project/debit/contract/unit'
|
|
|
import mainApi from '~api/debit-pay/admin/middlepay'
|
|
|
|
|
|
-import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
const props = defineProps({
|
|
|
projectId: {
|
|
|
type: [String, Number],
|
|
@@ -494,8 +495,11 @@ const currentMeterTotalBlur = (row) => {
|
|
|
nextTick(() => {
|
|
|
row.currentMeterTotal = currentMeterTotal
|
|
|
row.allMeterTotal = (BigNumber(currentMeterTotal).plus(row.otherMeterTotal)).toString()
|
|
|
- row.currentMeterMoney = (BigNumber(currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(0).toString()
|
|
|
-
|
|
|
+ if (!website.localModel) {
|
|
|
+ row.currentMeterMoney = (BigNumber(currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(2).toString()
|
|
|
+ } else {
|
|
|
+ row.currentMeterMoney = (BigNumber(currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(0).toString()
|
|
|
+ }
|
|
|
//计算是否相等
|
|
|
const allMeterTotal = new BigNumber(row.allMeterTotal)
|
|
|
const changeTotal = new BigNumber(row.changeTotal)
|
|
@@ -582,7 +586,12 @@ const unPayRatioBlur = (row)=>{
|
|
|
// 本期计量数量=本期支付比例*变更后数量
|
|
|
row.currentMeterTotal = (payRatio.dividedBy(100).multipliedBy(changeTotal)).toFixed(2).toString()
|
|
|
row.allMeterTotal = (BigNumber(row.currentMeterTotal).plus(row.otherMeterTotal)).toFixed(2).toString()
|
|
|
- row.currentMeterMoney = (BigNumber(row.currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(0).toString()//本期计量金额额
|
|
|
+ //本期计量金额额
|
|
|
+ if (!website.localModel) {
|
|
|
+ row.currentMeterMoney = (BigNumber(row.currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(2).toString()
|
|
|
+ } else {
|
|
|
+ row.currentMeterMoney = (BigNumber(row.currentMeterTotal).multipliedBy(row.currentPrice)).toFixed(0).toString()
|
|
|
+ }
|
|
|
|
|
|
//计算是否相等
|
|
|
const allMeterTotal = new BigNumber(row.allMeterTotal)
|
|
@@ -620,13 +629,9 @@ const addTableRowStyle = ({ row }) => {
|
|
|
const isComparedRa = compareRowUnpayRatio(row, 2)
|
|
|
if (isComparedRa === 1 ) {
|
|
|
isCanSave.value = true
|
|
|
-
|
|
|
return '--el-table-tr-bg-color: #fe0000; --el-table-row-hover-bg-color: #fe0000; color: white;'
|
|
|
-
|
|
|
-
|
|
|
} else {
|
|
|
isCanSave.value = false
|
|
|
-
|
|
|
}
|
|
|
// 判断施工图数量是否大于合同数据
|
|
|
// 大于:如果超计= 1并且 划分=1
|