Commit e9afa89d authored by wangxl's avatar wangxl

3333

parent e2ab2e47
......@@ -196,7 +196,7 @@
<div v-if="value.isProvincialTalent!=null">
<span v-if="value.isProvincialTalent==1"></span><span v-else></span>
<div v-if="value.isProvincialTalent==1">
<para-check v-model="value.talentType" :typeId="16" :disabled="true" />
<para-check v-model="value.talentType" :typeId="talentTypeId" :disabled="true" />
</div>
</div>
</div>
......@@ -506,6 +506,7 @@ export default {
RTEveryYearFee: null,
},
budgetType: { type: 'HTTalent', trainingYear: 5, EveryYearFee: 10 },
talentTypeId: 16,
};
},
created () {
......@@ -520,7 +521,7 @@ export default {
{ title: '附件', key: '6', isShow: true },
{ title: '项目审核记录', key: '7', isShow: true },
]
if (!!!this.value) {
if (!!this.value) {
this.getTalentTraningInfo()
}
},
......@@ -530,20 +531,39 @@ export default {
this.$api.systemSet.getTalentTraningInfo().then(({ data = {} }) => {
if (data) {
this.talentTraningInfo = data
this.processBudgetType()
this.talentCategoryHolder()
}
})
},
talentCategoryHolder () {
if (this.value.talentCategory === this.talentTraningInfo.HTTalent ||
this.value.talentCategory === this.talentTraningInfo.RTTalent) {
this.talentTypeId = 23
} else if (this.value.talentCategory === this.talentTraningInfo.ALTalent) {
this.talentTypeId = 16
} else {
this.talentTypeId = 16
}
this.processBudgetType()
},
processBudgetType () {
if (this.value.talentCategory === this.talentTraningInfo.HTTalent) {
this.budgetType = { type: 'HTTalent', trainingYear: this.talentTraningInfo.HTTrainingYear, EveryYearFee: this.talentTraningInfo.HTEveryYearFee }
} else if (this.formData.talentCategory === this.talentTraningInfo.ALTalent) {
} else if (this.value.talentCategory === this.talentTraningInfo.ALTalent) {
this.budgetType = { type: 'ALTalent', trainingYear: this.talentTraningInfo.ALTrainingYear, EveryYearFee: this.talentTraningInfo.ALEveryYearFee }
} else {
this.budgetType = { type: 'RTTalent', trainingYear: this.talentTraningInfo.RTTrainingYear, EveryYearFee: this.talentTraningInfo.RTEveryYearFee }
}
if (!!!this.formData.applyFund || this.formData.applyFund == 0)
this.formData.applyFund = this.budgetType.trainingYear * this.budgetType.EveryYearFee
if (!!!this.value.applyFund || this.value.applyFund == 0)
this.value.applyFund = this.budgetType.trainingYear * this.budgetType.EveryYearFee
}
},
watch: {
'value.talentCategory': {
handler: function () {
// console.log(this.value, this.value.talentCategory, this.talentTraningInfo.HTTalent)
this.talentCategoryHolder()
},
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment