|
@@ -284,6 +284,7 @@ import { arrIndex, formValidate, getArrValue } from 'js-fast-way'
|
|
|
import projectApi from '~api/promanage/project'
|
|
|
import { getDictionary } from '~api/dictbiz.js'
|
|
|
import HcInputNumber1 from './input-number.vue'
|
|
|
+import BigNumber from 'bignumber.js'
|
|
|
const props = defineProps({
|
|
|
data: {
|
|
|
type: Object,
|
|
@@ -607,7 +608,8 @@ const selectIndex = ref(0)
|
|
|
watch(
|
|
|
() => [yearFuns.value[selectIndex.value].tollInflow, yearFuns.value[selectIndex.value].otherInflow],
|
|
|
([tollInflow, otherInflow]) => {
|
|
|
- yearFuns.value[selectIndex.value].inflowTotal = (tollInflow || 0) + (otherInflow || 0)
|
|
|
+
|
|
|
+ yearFuns.value[selectIndex.value].inflowTotal = ((parseFloat(tollInflow) || 0) + (parseFloat(otherInflow) || 0)).toFixed(2)
|
|
|
},
|
|
|
{ immediate: true },
|
|
|
)
|
|
@@ -619,11 +621,11 @@ watch([
|
|
|
() => yearFuns.value[selectIndex.value].operateOtherOutflow,
|
|
|
], () => {
|
|
|
yearFuns.value[selectIndex.value].costTotal
|
|
|
- = Number(yearFuns.value[selectIndex.value].operateMaintainOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].operateOverhaulOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].operateCapitalOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].operateOperationOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].operateOtherOutflow || 0)
|
|
|
+ = (parseFloat(yearFuns.value[selectIndex.value].operateMaintainOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].operateOverhaulOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].operateCapitalOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].operateOperationOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].operateOtherOutflow || 0)).toFixed(2)
|
|
|
}, { immediate: true })
|
|
|
|
|
|
watch([
|
|
@@ -635,12 +637,12 @@ watch([
|
|
|
() => yearFuns.value[selectIndex.value].otherOutflow,
|
|
|
], () => {
|
|
|
yearFuns.value[selectIndex.value].outflowTotal
|
|
|
- = Number(yearFuns.value[selectIndex.value].constructInvestOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].borrowPrincipalOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].borrowInterestOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].costTotal || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].operationTaxesOutflow || 0)
|
|
|
- + Number(yearFuns.value[selectIndex.value].otherOutflow || 0)
|
|
|
+ = (parseFloat(yearFuns.value[selectIndex.value].constructInvestOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].borrowPrincipalOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].borrowInterestOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].costTotal || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].operationTaxesOutflow || 0)
|
|
|
+ + parseFloat(yearFuns.value[selectIndex.value].otherOutflow || 0)).toFixed(2)
|
|
|
}, { immediate: true })
|
|
|
const stageYearClick = async (val) => {
|
|
|
if (yearFuns.value[selectIndex]) {
|