|
@@ -81,8 +81,8 @@
|
|
|
<revenue-expenditure-plan
|
|
|
ref="revenueExpenditurePlan"
|
|
|
:details-info="{
|
|
|
- incomeExpenditurePlanList: ruleForm.incomeExpenditurePlanList || [],
|
|
|
- planIrrStr: ruleForm.planIrrStr
|
|
|
+ incomeExpenditurePlanList: incomeExpenditurePlanList || [],
|
|
|
+ planIrrStr: planIrrStr
|
|
|
}"
|
|
|
:disabled="disabled"
|
|
|
@getTrrData="getTrrData"
|
|
@@ -140,6 +140,8 @@ export default {
|
|
|
},
|
|
|
incomeExpenditurePlanList: []
|
|
|
},
|
|
|
+ incomeExpenditurePlanList: [],
|
|
|
+ planIrrStr: '',
|
|
|
rules: {
|
|
|
approvalConclusion: [
|
|
|
{ required: true, message: '请选择审批结论', trigger: 'change' }
|
|
@@ -160,37 +162,57 @@ export default {
|
|
|
expenditurePlanData: {
|
|
|
incomeExpenditurePlanList: [],
|
|
|
planIrrStr: ''
|
|
|
-
|
|
|
},
|
|
|
formKey: 0
|
|
|
}
|
|
|
},
|
|
|
- // watch: {
|
|
|
- // deatailsInfo: {
|
|
|
- // handler(newV) {
|
|
|
- // const { approvalConclusion, approvalComments } = JSON.parse(JSON.stringify(newV))
|
|
|
- // this.ruleForm.approvalConclusion = approvalConclusion
|
|
|
- // this.ruleForm.approvalComments = approvalComments
|
|
|
- // },
|
|
|
- // immediate: true,
|
|
|
- // deep: true
|
|
|
- // }
|
|
|
- // },
|
|
|
+ watch: {
|
|
|
+ detailsInfo: {
|
|
|
+ handler(newV) {
|
|
|
+ if (newV === undefined) return
|
|
|
+ if (this.$route.query?.type === 'see') {
|
|
|
+ const { incomeExpenditurePlanHisList, reviewFinancingInfoHis, reviewMasterContractHis, rltRepayHisList, 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 || [],
|
|
|
+ rltRepayList: rltRepayHisList || []
|
|
|
+ }
|
|
|
+ this.incomeExpenditurePlanList = incomeExpenditurePlanHisList
|
|
|
+ this.planIrrStr = planIrrStr
|
|
|
+ this.expenditurePlanData = {
|
|
|
+ incomeExpenditurePlanList: incomeExpenditurePlanHisList || [],
|
|
|
+ planIrrStr: planIrrStr
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.getDeatils()
|
|
|
},
|
|
|
methods: {
|
|
|
getDeatils() {
|
|
|
const { id } = this.$route.params
|
|
|
+ if (this.$route.query?.type === 'see') return
|
|
|
if (!id) return
|
|
|
getLimitExpenditureDatails({ id }).then(({ data }) => {
|
|
|
this.ruleForm = {
|
|
|
...this.ruleForm,
|
|
|
...data
|
|
|
}
|
|
|
+ this.incomeExpenditurePlanList = data.incomeExpenditurePlanList
|
|
|
+ this.planIrrStr = data.planIrrStr
|
|
|
this.expenditurePlanData = {
|
|
|
incomeExpenditurePlanList: this.ruleForm.incomeExpenditurePlanList || [],
|
|
|
- planIrrStr: this.ruleForm.planIrrStr
|
|
|
+ planIrrStr: this.ruleForm.planIrrStr
|
|
|
}
|
|
|
this.formKey += 1
|
|
|
})
|
|
@@ -205,7 +227,7 @@ export default {
|
|
|
async automaticGeneration() {
|
|
|
const params = await this.$refs.financingInfo.getParams()
|
|
|
getExpenditurePlan(params).then(({ data }) => {
|
|
|
- this.ruleForm.incomeExpenditurePlanList = data
|
|
|
+ this.incomeExpenditurePlanList = data
|
|
|
this.$nextTick(() => {
|
|
|
this.getTrrData()
|
|
|
})
|
|
@@ -216,7 +238,7 @@ export default {
|
|
|
incomeExpenditurePlanList: this.$refs.revenueExpenditurePlan.getParams()
|
|
|
}
|
|
|
getTrr(params).then(({ data }) => {
|
|
|
- this.ruleForm.planIrrStr = data
|
|
|
+ this.planIrrStr = data
|
|
|
})
|
|
|
},
|
|
|
async getParams(type) {
|
|
@@ -280,12 +302,11 @@ export default {
|
|
|
})
|
|
|
} else {
|
|
|
const data = await this.getParams(type)
|
|
|
- if(data.incomeExpenditurePlanList && data.incomeExpenditurePlanList.length) {
|
|
|
+ if (data.incomeExpenditurePlanList && data.incomeExpenditurePlanList.length) {
|
|
|
await this.automaticGeneration()
|
|
|
}
|
|
|
this.$refs.ruleForm.validate(async(valid) => {
|
|
|
if (valid) {
|
|
|
-
|
|
|
data.visible = type !== 'temp'
|
|
|
setTimeout(() => {
|
|
|
reviewQuotaDisburseSubmit(data).then(() => {
|