Commit 38e41e54 by wangzhihui

```

feat(residentManage): 更新商户信息获取逻辑

修改assignStoreDialog组件中初始商户名称和ID的获取方式,
优先使用detail.beisenMerchantName和beisenMerchantId字段,
如果不存在则回退到staffBeisenBaseInfoDTO中的对应字段
```
1 parent 2de41575
......@@ -98,8 +98,8 @@ export default {
},
mounted() {
this.findAllMerchantPage()
const initialMerchantName = this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantName : "";
const initialMerchantId = this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantId : "";
const initialMerchantName = this.detail.beisenMerchantName ? this.detail.beisenMerchantName : this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantName : "";
const initialMerchantId = this.detail.beisenMerchantId ? this.detail.beisenMerchantId : this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantId : "";
if (initialMerchantName && initialMerchantId) {
this.infoForm.merchantId = initialMerchantId;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!