【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
+2 -1
View File
@@ -160,7 +160,8 @@ export default {
this.$refs.contactForm.disableSubmit = false
return
}
this.$message.warn('请先选择来款企业再为该企业新建联系人')
// 调用无权限的提示语修改
this.$message.warn('请先选择企业再为该企业新建联系人')
},
addContactsOk(id) {
this.getContactsList().then(() => {
@@ -95,7 +95,8 @@
<label>签到二维码</label><img class="qr-code" :src="signInQRCode" alt="签到二维码"/>
<!-- <i class="copy primary-color" @click="copy(signUpHerfUrl)">复制</i>-->
</a-col>
<a-col :xxl="8" :xl="12" :sm="24" style="display:flex;">
<!-- 会议费用为0 不显示 -->
<a-col :xxl="8" :xl="12" :sm="24" style="display: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>
@@ -91,8 +91,8 @@
</a-col>
<!-- 选择嘉宾和内部企业缴费方式为打包也不显示-->
<a-col :xxl="8" :xl="12" :sm="24" v-if="identifyType === 2 && !payModeBool ">
<a-form-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入地址"
<a-form-item label="邮寄地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入邮寄地址"
:maxLength='50'
:disabled="isEditBool"
v-decorator="[ 'postContactAddress']"></a-input>
@@ -233,7 +233,6 @@ export default {
* 清空邮寄联系人 地址 邮编
* */
clearFormItem(){
// 选择企业清空 姓名 手机号
this.form.resetFields(['postContactId','postContactAddress','postCode'])
},
@@ -250,6 +249,9 @@ export default {
* 选择联系人之后地址邮编复制
* */
changePost(val){
if(val === undefined){
this.clearFormItem()
}
getContactsById({id:val}).then(res => {
if(res.success){
this.setAddressVal(res.result)
+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)