[update] 修改bug82825

This commit is contained in:
lideqin
2024-03-19 16:35:33 +08:00
parent ea91dd27b5
commit ceddad7c3c
@@ -590,6 +590,23 @@ export default {
this.form.resetFields(['contractNum'])
this.validatorRules.contractNum.rules[0].required = false
this.validatorRules.chargeNoticeNo.rules[0].required = true
// 设置收费通知号和收费通知
const memberNature = this.form.getFieldValue('memberNature')
this.$nextTick(() => {
if (memberNature === MemberNature.viceChairmanUnit.value) {
// 是副理事长单位, 带出会员信息的理事会收费通知号、理事会收费通知作为收费通知号,收费通知
this.form.setFieldsValue({
chargeNoticeId: this.baseInfo.councilChargeNoticeFileId,
chargeNoticeNo: this.baseInfo.councilChargeNoticeNo
})
} else {
// 是历史单位或者会员单位,带出会员信息的收费通知号、收费通知作为收费通知号,收费通知
this.form.setFieldsValue({
chargeNoticeId: this.baseInfo.chargeNoticeFileId,
chargeNoticeNo: this.baseInfo.chargeNoticeNo
})
}
})
} else {
// 是无,清空合同号和收费通知号
this.form.resetFields(['contractNum', 'chargeNoticeNo', 'chargeNoticeId'])