【bug】清除联系人 清除表单 提示语修改
This commit is contained in:
@@ -160,7 +160,8 @@ export default {
|
|||||||
this.$refs.contactForm.disableSubmit = false
|
this.$refs.contactForm.disableSubmit = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$message.warn('请先选择来款企业再为该企业新建联系人')
|
// 调用无权限的提示语修改
|
||||||
|
this.$message.warn('请先选择企业再为该企业新建联系人')
|
||||||
},
|
},
|
||||||
addContactsOk(id) {
|
addContactsOk(id) {
|
||||||
this.getContactsList().then(() => {
|
this.getContactsList().then(() => {
|
||||||
|
|||||||
@@ -95,7 +95,8 @@
|
|||||||
<label>签到二维码:</label><img class="qr-code" :src="signInQRCode" alt="签到二维码"/>
|
<label>签到二维码:</label><img class="qr-code" :src="signInQRCode" alt="签到二维码"/>
|
||||||
<!-- <i class="copy primary-color" @click="copy(signUpHerfUrl)">复制</i>-->
|
<!-- <i class="copy primary-color" @click="copy(signUpHerfUrl)">复制</i>-->
|
||||||
</a-col>
|
</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>
|
<label>收款二维码:</label>
|
||||||
<j-image-upload :return-id="true" v-if="currentMeetingInfo.paymentQrCode"
|
<j-image-upload :return-id="true" v-if="currentMeetingInfo.paymentQrCode"
|
||||||
v-model="currentMeetingInfo.paymentQrCode" disabled></j-image-upload>
|
v-model="currentMeetingInfo.paymentQrCode" disabled></j-image-upload>
|
||||||
|
|||||||
@@ -91,8 +91,8 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<!-- 选择嘉宾和内部企业、缴费方式为打包也不显示-->
|
<!-- 选择嘉宾和内部企业、缴费方式为打包也不显示-->
|
||||||
<a-col :xxl="8" :xl="12" :sm="24" v-if="identifyType === 2 && !payModeBool ">
|
<a-col :xxl="8" :xl="12" :sm="24" v-if="identifyType === 2 && !payModeBool ">
|
||||||
<a-form-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="邮寄地址" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入地址"
|
<a-input placeholder="请输入邮寄地址"
|
||||||
:maxLength='50'
|
:maxLength='50'
|
||||||
:disabled="isEditBool"
|
:disabled="isEditBool"
|
||||||
v-decorator="[ 'postContactAddress']"></a-input>
|
v-decorator="[ 'postContactAddress']"></a-input>
|
||||||
@@ -233,7 +233,6 @@ export default {
|
|||||||
* 清空邮寄联系人 地址 邮编
|
* 清空邮寄联系人 地址 邮编
|
||||||
* */
|
* */
|
||||||
clearFormItem(){
|
clearFormItem(){
|
||||||
// 选择企业清空 姓名 手机号
|
|
||||||
this.form.resetFields(['postContactId','postContactAddress','postCode'])
|
this.form.resetFields(['postContactId','postContactAddress','postCode'])
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -250,6 +249,9 @@ export default {
|
|||||||
* 选择联系人之后地址邮编复制
|
* 选择联系人之后地址邮编复制
|
||||||
* */
|
* */
|
||||||
changePost(val){
|
changePost(val){
|
||||||
|
if(val === undefined){
|
||||||
|
this.clearFormItem()
|
||||||
|
}
|
||||||
getContactsById({id:val}).then(res => {
|
getContactsById({id:val}).then(res => {
|
||||||
if(res.success){
|
if(res.success){
|
||||||
this.setAddressVal(res.result)
|
this.setAddressVal(res.result)
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
v-if="currentMeetingInfo.meetingFiles"></preview-file>
|
v-if="currentMeetingInfo.meetingFiles"></preview-file>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row type="flex">
|
<a-row type="flex" v-if="currentMeetingInfo.meetingCosts !== '0.00' ">
|
||||||
<label>收费二维码:</label>
|
<label>收费二维码:</label>
|
||||||
<j-image-upload :return-id="true" v-if="currentMeetingInfo.paymentQrCode"
|
<j-image-upload :return-id="true" v-if="currentMeetingInfo.paymentQrCode"
|
||||||
v-model="currentMeetingInfo.paymentQrCode" disabled></j-image-upload>
|
v-model="currentMeetingInfo.paymentQrCode" disabled></j-image-upload>
|
||||||
@@ -531,7 +531,6 @@ export default {
|
|||||||
* 选择参会企业
|
* 选择参会企业
|
||||||
* */
|
* */
|
||||||
changeCompany(value) {
|
changeCompany(value) {
|
||||||
|
|
||||||
this.selectedCompany = value
|
this.selectedCompany = value
|
||||||
// 通过企业名称判断当前参会人
|
// 通过企业名称判断当前参会人
|
||||||
if (this.currentMeetingInfo.meetingType + '' === '2') {
|
if (this.currentMeetingInfo.meetingType + '' === '2') {
|
||||||
@@ -545,12 +544,19 @@ export default {
|
|||||||
}
|
}
|
||||||
// 选择企业清空 姓名 手机号
|
// 选择企业清空 姓名 手机号
|
||||||
this.form.resetFields(['companyContactId', 'phone'])
|
this.form.resetFields(['companyContactId', 'phone'])
|
||||||
|
if (this.$refs.formother) {
|
||||||
|
this.$refs.formother.clearFormItem()
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
* 选择联系人获取信息
|
* 选择联系人获取信息
|
||||||
* */
|
* */
|
||||||
changeContact(val) {
|
changeContact(val) {
|
||||||
|
// 监听删除联系人的时候 清除对应的表单赋值
|
||||||
|
if(val === undefined){
|
||||||
|
this.form.resetFields(['phone'])
|
||||||
|
}
|
||||||
const that = this
|
const that = this
|
||||||
getContactsById({id: val}).then(res => {
|
getContactsById({id: val}).then(res => {
|
||||||
const model = Object.assign({}, res.result)
|
const model = Object.assign({}, res.result)
|
||||||
|
|||||||
Reference in New Issue
Block a user