【bug】清除联系人 清除表单 提示语修改

This commit is contained in:
fengachen
2021-10-28 11:20:39 +08:00
parent 627a6ef454
commit f8fdade998
4 changed files with 22 additions and 12 deletions
+13 -7
View File
@@ -74,7 +74,7 @@
v-if="currentMeetingInfo.meetingFiles"></preview-file>
</a-col>
</a-row>
<a-row type="flex">
<a-row type="flex" v-if="currentMeetingInfo.meetingCosts !== '0.00' ">
<label>收费二维码:</label>
<j-image-upload :return-id="true" v-if="currentMeetingInfo.paymentQrCode"
v-model="currentMeetingInfo.paymentQrCode" disabled></j-image-upload>
@@ -223,7 +223,7 @@
</template>
<script>
import {getMeetInfoById,validateStandard} from '@api/incomeMeetingApi'
import {getMeetInfoById, validateStandard} from '@api/incomeMeetingApi'
import SelectContacts from '@comp/company/SelectContacts'
import OtherMeetingForm from '@views/incomePayments/meetManage/OtherMeetingForm'
import SeminarVipForm from '@views/incomePayments/meetManage/modules/SeminarVipForm'
@@ -332,7 +332,7 @@ export default {
// 国际研讨会身份的控制
identityBool: false,
// 是否是标协成员
isStandardBool:false,
isStandardBool: false,
// url是否有id字段 默认没有
urlHaveIdBool: false,
url: {
@@ -531,26 +531,32 @@ export default {
* 选择参会企业
* */
changeCompany(value) {
this.selectedCompany = value
// 通过企业名称判断当前参会人
if(this.currentMeetingInfo.meetingType +'' === '2' ){
if (this.currentMeetingInfo.meetingType + '' === '2') {
console.log('标协会议')
validateStandard({companyName:this.selectedCompany.companyName}).then(res => {
validateStandard({companyName: this.selectedCompany.companyName}).then(res => {
this.isStandardBool = res.result
if(this.isStandardBool){
if (this.isStandardBool) {
this.meetingCostSum = this.currentMeetingInfo.meetingCostsVip
}
})
}
// 选择企业清空 姓名 手机号
this.form.resetFields(['companyContactId', 'phone'])
if (this.$refs.formother) {
this.$refs.formother.clearFormItem()
}
},
/*
* 选择联系人获取信息
* */
changeContact(val) {
// 监听删除联系人的时候 清除对应的表单赋值
if(val === undefined){
this.form.resetFields(['phone'])
}
const that = this
getContactsById({id: val}).then(res => {
const model = Object.assign({}, res.result)