|
@@ -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,37 +162,57 @@ export default {
|
|
expenditurePlanData: {
|
|
expenditurePlanData: {
|
|
incomeExpenditurePlanList: [],
|
|
incomeExpenditurePlanList: [],
|
|
planIrrStr: ''
|
|
planIrrStr: ''
|
|
-
|
|
|
|
},
|
|
},
|
|
formKey: 0
|
|
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() {
|
|
created() {
|
|
this.getDeatils()
|
|
this.getDeatils()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getDeatils() {
|
|
getDeatils() {
|
|
const { id } = this.$route.params
|
|
const { id } = this.$route.params
|
|
|
|
+ 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
|
|
}
|
|
}
|
|
this.formKey += 1
|
|
this.formKey += 1
|
|
})
|
|
})
|
|
@@ -205,7 +227,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()
|
|
})
|
|
})
|
|
@@ -216,7 +238,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) {
|
|
@@ -280,12 +302,11 @@ export default {
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
const data = await this.getParams(type)
|
|
const data = await this.getParams(type)
|
|
- if(data.incomeExpenditurePlanList && data.incomeExpenditurePlanList.length) {
|
|
|
|
|
|
+ if (data.incomeExpenditurePlanList && data.incomeExpenditurePlanList.length) {
|
|
await this.automaticGeneration()
|
|
await this.automaticGeneration()
|
|
}
|
|
}
|
|
this.$refs.ruleForm.validate(async(valid) => {
|
|
this.$refs.ruleForm.validate(async(valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
-
|
|
|
|
data.visible = type !== 'temp'
|
|
data.visible = type !== 'temp'
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
reviewQuotaDisburseSubmit(data).then(() => {
|
|
reviewQuotaDisburseSubmit(data).then(() => {
|