Commit 25428085 by 前端

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

1 parent 9e30a45e
...@@ -378,13 +378,13 @@ export default { ...@@ -378,13 +378,13 @@ export default {
label: '福利群群码', label: '福利群群码',
name: 'welfareGroupQRCode', name: 'welfareGroupQRCode',
addHtml: 'welfareGroupQRCodeSlot', addHtml: 'welfareGroupQRCodeSlot',
isHide:this.isWuyeFlag // isHide:this.isWuyeFlag
}, },
{ {
label: '福利官二维码', label: '福利官二维码',
name: 'welfareOfficerQRCode', name: 'welfareOfficerQRCode',
addHtml: 'welfareOfficerQRCodeSlot', addHtml: 'welfareOfficerQRCodeSlot',
isHide:this.isWuyeFlag // isHide:this.isWuyeFlag
}, },
] ]
}, },
...@@ -528,9 +528,10 @@ export default { ...@@ -528,9 +528,10 @@ export default {
}, },
mounted() { mounted() {
this.userInfo = this.$globalState.session this.userInfo = this.$globalState.session
// 判断当前的门店是不是物业门店
// 判断是否是物业 this.isWuyeFlag = this.$wuye_merchantLists.some(item => item == this.userInfo.merchantId);
this.isWuyeFlag = this.$wuye_merchantLists.find(item => item == this.userInfo.merchantId) // 如果不是物业门店 隐藏福利二维码
this.updateExternalFormList();
this.getInfo() this.getInfo()
this.getConsultant() this.getConsultant()
...@@ -548,6 +549,17 @@ export default { ...@@ -548,6 +549,17 @@ export default {
if (this.showGh) this.suggestSize = '686*300px' if (this.showGh) this.suggestSize = '686*300px'
}, },
methods: { 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) { handleServerUrlChange(value) {
this.editForm.customerServerType = value ? 2 : '' this.editForm.customerServerType = value ? 2 : ''
this.freshFlag = new Date() 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!