bug修改
This commit is contained in:
@@ -11,8 +11,16 @@
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-form :form="form">
|
||||
<a-form-item label="收费通知号" :labelCol="remarksLabelCol" :wrapperCol="remarksWrapperCol">
|
||||
<a-radio-group v-decorator="['chargeNoticeNo']" @change="handleChargeNoticeChange"
|
||||
:options="chargeNoticeList"></a-radio-group>
|
||||
<a-radio-group
|
||||
class="charge-notice-no"
|
||||
v-decorator="['charge']"
|
||||
@change="handleChargeNoticeChange">
|
||||
<a-radio v-for="item in chargeNoticeList" :key="item.key" :value="item.key">
|
||||
<a-tooltip :title="item.label">
|
||||
{{ item.label }}
|
||||
</a-tooltip>
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
</a-form-item>
|
||||
<a-row v-if="selectedChargeNotice === 'A'">
|
||||
<a-col :xl="12" :sm="24">
|
||||
@@ -146,25 +154,25 @@ export default {
|
||||
* 收费通知号变化, 回显本年应收款和文件
|
||||
*/
|
||||
handleChargeNoticeChange(e) {
|
||||
let chargeNoticeNo = e.target.value
|
||||
this.pickChargeNoticeType(chargeNoticeNo)
|
||||
let key = e.target.value
|
||||
this.pickChargeNoticeType(key)
|
||||
},
|
||||
/**
|
||||
* 匹配显隐
|
||||
* @param value
|
||||
* @param key
|
||||
*/
|
||||
pickChargeNoticeType(value) {
|
||||
pickChargeNoticeType(key) {
|
||||
this.chargeNoticeList.forEach(item => {
|
||||
if (item.value === value) {
|
||||
if (item.type === 'chargeNoticeA') {
|
||||
this.selectedChargeNotice = 'A'
|
||||
this.model.receivableAmount = item.yearCharge
|
||||
this.model.chargeNoticeId = item.chargeNoticeId
|
||||
} else {
|
||||
this.selectedChargeNotice = 'B'
|
||||
this.model.receivableAmount = item.yearCharge
|
||||
this.model.chargeNoticeId = item.chargeNoticeId
|
||||
}
|
||||
if (item.type === 'chargeNoticeA' && key === 'a') {
|
||||
this.selectedChargeNotice = 'A'
|
||||
this.model.receivableAmount = item.yearCharge
|
||||
this.model.chargeNoticeId = item.chargeNoticeId
|
||||
this.model.chargeNoticeNo = item.value
|
||||
} else if (item.type === 'chargeNoticeB' && key === 'b'){
|
||||
this.selectedChargeNotice = 'B'
|
||||
this.model.receivableAmount = item.yearCharge
|
||||
this.model.chargeNoticeId = item.chargeNoticeId
|
||||
this.model.chargeNoticeNo = item.value
|
||||
}
|
||||
})
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user