【bug】 打包费用为0 缴费二维码的回显
This commit is contained in:
@@ -525,7 +525,7 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
// 加定时器是因为有可能赋值不成功
|
||||
setTimeout(() => {
|
||||
this.form.setFieldsValue(pick(this.model,'notice','meetingName', 'meetingType', 'convokeTime', 'particularYear', 'estimatedNumber', 'meetingFiles', 'registerDeadline', 'meetingContent', 'convokeLocale', 'address', 'meetingCosts', 'directorId', 'remark', 'directorPhone')), 200
|
||||
this.form.setFieldsValue(pick(this.model,'notice','paymentQrCode','meetingName', 'meetingType', 'convokeTime', 'particularYear', 'estimatedNumber', 'meetingFiles', 'registerDeadline', 'meetingContent', 'convokeLocale', 'address', 'meetingCosts', 'directorId', 'remark', 'directorPhone')), 200
|
||||
})
|
||||
// 如果是标协会议则回显 标协会议的字段
|
||||
if (this.meetingType === '2') {
|
||||
@@ -561,6 +561,10 @@ export default {
|
||||
}
|
||||
let placeName = values.convokeLocale
|
||||
const formData = Object.assign(this.model, values, {venue: this.getPcaText(placeName)})
|
||||
// 如果会议的费用未为0 不能上传缴费凭证
|
||||
if(values.meetingCosts === '0.00' ){
|
||||
delete formData.paymentQrCode
|
||||
}
|
||||
// 添加编辑会议需要增加会议类型
|
||||
formData.meetingType = this.meetingType
|
||||
// 如果是工作会议维护跳转的需要加上会议类型为工作组会议和工作组id
|
||||
@@ -787,6 +791,10 @@ export default {
|
||||
// 会议费用为 0控制二维码显示隐藏
|
||||
if (value === '0.00') {
|
||||
this.QRcodeBool = false
|
||||
// 如果付款二维码有值 需要清空
|
||||
if(this.form.getFieldValue('paymentQrCode')){
|
||||
this.form.resetFields('paymentQrCode')
|
||||
}
|
||||
} else {
|
||||
this.QRcodeBool = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user