|
@@ -81,8 +81,8 @@
|
|
<revenue-expenditure-plan
|
|
<revenue-expenditure-plan
|
|
ref="revenueExpenditurePlan"
|
|
ref="revenueExpenditurePlan"
|
|
:details-info="{
|
|
:details-info="{
|
|
- incomeExpenditurePlanList: ruleForm.incomeExpenditurePlanList || [],
|
|
|
|
- planIrrStr: ruleForm.planIrrStr
|
|
|
|
|
|
+ incomeExpenditurePlanList: incomeExpenditurePlanList || [],
|
|
|
|
+ planIrrStr: planIrrStr
|
|
}"
|
|
}"
|
|
:disabled="disabled"
|
|
:disabled="disabled"
|
|
@getTrrData="getTrrData"
|
|
@getTrrData="getTrrData"
|
|
@@ -140,6 +140,8 @@ export default {
|
|
},
|
|
},
|
|
incomeExpenditurePlanList: []
|
|
incomeExpenditurePlanList: []
|
|
},
|
|
},
|
|
|
|
+ incomeExpenditurePlanList: [],
|
|
|
|
+ planIrrStr: '',
|
|
rules: {
|
|
rules: {
|
|
approvalConclusion: [
|
|
approvalConclusion: [
|
|
{ required: true, message: '请选择审批结论', trigger: 'change' }
|
|
{ required: true, message: '请选择审批结论', trigger: 'change' }
|
|
@@ -160,7 +162,6 @@ export default {
|
|
expenditurePlanData: {
|
|
expenditurePlanData: {
|
|
incomeExpenditurePlanList: [],
|
|
incomeExpenditurePlanList: [],
|
|
planIrrStr: ''
|
|
planIrrStr: ''
|
|
-
|
|
|
|
},
|
|
},
|
|
formKey: 0
|
|
formKey: 0
|
|
}
|
|
}
|
|
@@ -169,23 +170,25 @@ export default {
|
|
detailsInfo: {
|
|
detailsInfo: {
|
|
handler(newV) {
|
|
handler(newV) {
|
|
if (newV === undefined) return
|
|
if (newV === undefined) return
|
|
- // if (this.$route.query?.type === 'see') {
|
|
|
|
- // const { incomeExpenditurePlanHisList, reviewFinancingInfoHis, reviewMasterContractHis, reviewTransferReceivableHis, mortgageBasicInfoHisList, reviewBasicContractHisList } = JSON.parse(JSON.stringify(newV))
|
|
|
|
- // this.ruleForm = {
|
|
|
|
- // ...this.ruleForm,
|
|
|
|
- // ...JSON.parse(JSON.stringify(newV)),
|
|
|
|
- // incomeExpenditurePlanList: incomeExpenditurePlanHisList,
|
|
|
|
- // mortgageBasicInfoList: mortgageBasicInfoHisList || [],
|
|
|
|
- // reviewBasicContractList: reviewBasicContractHisList || [],
|
|
|
|
- // reviewMasterContract: reviewMasterContractHis || [],
|
|
|
|
- // reviewFinancingInfo: reviewFinancingInfoHis || [],
|
|
|
|
- // reviewTransferReceivable: reviewTransferReceivableHis || []
|
|
|
|
- // }
|
|
|
|
- // this.expenditurePlanData = {
|
|
|
|
- // incomeExpenditurePlanList: this.ruleForm.incomeExpenditurePlanList || [],
|
|
|
|
- // planIrrStr: this.ruleForm.planIrrStr
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ if (this.$route.query?.type === 'see') {
|
|
|
|
+ const { incomeExpenditurePlanHisList, reviewFinancingInfoHis, reviewMasterContractHis, reviewTransferReceivableHis, mortgageBasicInfoHisList, reviewBasicContractHisList, planIrrStr } = JSON.parse(JSON.stringify(newV))
|
|
|
|
+ this.ruleForm = {
|
|
|
|
+ ...this.ruleForm,
|
|
|
|
+ ...JSON.parse(JSON.stringify(newV)),
|
|
|
|
+ incomeExpenditurePlanList: incomeExpenditurePlanHisList,
|
|
|
|
+ mortgageBasicInfoList: mortgageBasicInfoHisList || [],
|
|
|
|
+ reviewBasicContractList: reviewBasicContractHisList || [],
|
|
|
|
+ reviewMasterContract: reviewMasterContractHis || [],
|
|
|
|
+ reviewFinancingInfo: reviewFinancingInfoHis || [],
|
|
|
|
+ reviewTransferReceivable: reviewTransferReceivableHis || []
|
|
|
|
+ }
|
|
|
|
+ this.incomeExpenditurePlanList = incomeExpenditurePlanHisList
|
|
|
|
+ this.planIrrStr = planIrrStr
|
|
|
|
+ this.expenditurePlanData = {
|
|
|
|
+ incomeExpenditurePlanList: incomeExpenditurePlanHisList || [],
|
|
|
|
+ planIrrStr: planIrrStr
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
deep: true
|
|
deep: true
|
|
@@ -197,13 +200,15 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
getDeatils() {
|
|
getDeatils() {
|
|
const { id } = this.$route.params
|
|
const { id } = this.$route.params
|
|
- // if (this.$route.query?.type === 'see') return
|
|
|
|
|
|
+ if (this.$route.query?.type === 'see') return
|
|
if (!id) return
|
|
if (!id) return
|
|
getLimitExpenditureDatails({ id }).then(({ data }) => {
|
|
getLimitExpenditureDatails({ id }).then(({ data }) => {
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
...this.ruleForm,
|
|
...this.ruleForm,
|
|
...data
|
|
...data
|
|
}
|
|
}
|
|
|
|
+ this.incomeExpenditurePlanList = data.incomeExpenditurePlanList
|
|
|
|
+ this.planIrrStr = data.planIrrStr
|
|
this.expenditurePlanData = {
|
|
this.expenditurePlanData = {
|
|
incomeExpenditurePlanList: this.ruleForm.incomeExpenditurePlanList || [],
|
|
incomeExpenditurePlanList: this.ruleForm.incomeExpenditurePlanList || [],
|
|
planIrrStr: this.ruleForm.planIrrStr
|
|
planIrrStr: this.ruleForm.planIrrStr
|
|
@@ -221,7 +226,7 @@ export default {
|
|
async automaticGeneration() {
|
|
async automaticGeneration() {
|
|
const params = await this.$refs.financingInfo.getParams()
|
|
const params = await this.$refs.financingInfo.getParams()
|
|
getExpenditurePlan(params).then(({ data }) => {
|
|
getExpenditurePlan(params).then(({ data }) => {
|
|
- this.ruleForm.incomeExpenditurePlanList = data
|
|
|
|
|
|
+ this.incomeExpenditurePlanList = data
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.getTrrData()
|
|
this.getTrrData()
|
|
})
|
|
})
|
|
@@ -232,7 +237,7 @@ export default {
|
|
incomeExpenditurePlanList: this.$refs.revenueExpenditurePlan.getParams()
|
|
incomeExpenditurePlanList: this.$refs.revenueExpenditurePlan.getParams()
|
|
}
|
|
}
|
|
getTrr(params).then(({ data }) => {
|
|
getTrr(params).then(({ data }) => {
|
|
- this.ruleForm.planIrrStr = data
|
|
|
|
|
|
+ this.planIrrStr = data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
async getParams(type) {
|
|
async getParams(type) {
|