Commit 25428085 by 前端

福利官二维码针对物业门店处理

1 parent 9e30a45e
......@@ -378,13 +378,13 @@ export default {
label: '福利群群码',
name: 'welfareGroupQRCode',
addHtml: 'welfareGroupQRCodeSlot',
isHide:this.isWuyeFlag
// isHide:this.isWuyeFlag
},
{
label: '福利官二维码',
name: 'welfareOfficerQRCode',
addHtml: 'welfareOfficerQRCodeSlot',
isHide:this.isWuyeFlag
// isHide:this.isWuyeFlag
},
]
},
......@@ -528,9 +528,10 @@ export default {
},
mounted() {
this.userInfo = this.$globalState.session
// 判断是否是物业
this.isWuyeFlag = this.$wuye_merchantLists.find(item => item == this.userInfo.merchantId)
// 判断当前的门店是不是物业门店
this.isWuyeFlag = this.$wuye_merchantLists.some(item => item == this.userInfo.merchantId);
// 如果不是物业门店 隐藏福利二维码
this.updateExternalFormList();
this.getInfo()
this.getConsultant()
......@@ -548,6 +549,17 @@ export default {
if (this.showGh) this.suggestSize = '686*300px'
},
methods: {
updateExternalFormList() {
this.externalFormList.forEach(item => {
if (item.title == '门店小程序码'){
item.editFormData.forEach(formItem => {
if (formItem.name === 'welfareGroupQRCode' || formItem.name === 'welfareOfficerQRCode') {
formItem.isHide = !this.isWuyeFlag;
}
});
}
});
},
handleServerUrlChange(value) {
this.editForm.customerServerType = value ? 2 : ''
this.freshFlag = new Date()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!