Commit 6f9abed6 by wangzhihui

```

feat(inStoreManage): 统一业务场景字段显示并修复商户信息验证逻辑

- 将"业务场景"统一修改为"适配业务"以保持术语一致性
- 在assignStoreDialog中添加merchantId验证条件,确保商户信息完整时才进行初始化
- 优化editStaff组件中的场景标签显示逻辑,直接使用accountSceneStr字段
- 调整index页面中的按钮显示逻辑,移除不必要的条件渲染包装
```
1 parent 63fe661b
......@@ -23,7 +23,7 @@
</el-select>
</el-form-item>
<el-form-item label="业务场景:" prop="sceneCodeList">
<el-form-item label="适配业务:" prop="sceneCodeList">
<el-checkbox-group v-model="infoForm.sceneCodeList" @change="changeStaffSceneLabel">
<div v-for="item in sceneOptionList" :key="item.baseSceneCode" style="margin-bottom: 8px;">
<el-checkbox :label="item.baseSceneCode">{{ item.baseSceneCodeName }}</el-checkbox>
......@@ -101,7 +101,7 @@ export default {
const initialMerchantName = this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantName : "";
const initialMerchantId = this.detail.staffBeisenBaseInfoDTO ? this.detail.staffBeisenBaseInfoDTO.merchantId : "";
if (initialMerchantName) {
if (initialMerchantName && initialMerchantId) {
this.infoForm.merchantId = initialMerchantId;
this.infoForm.merchantName = initialMerchantName;
this.getSceneList(initialMerchantId);
......
......@@ -10,7 +10,7 @@
<span style="color: #666;">员工姓名:</span><span style="color: #333;">{{ staffName }}</span>
</el-col>
<el-col :span="12">
<span style="color: #666;">业务场景:</span><span style="color: #333;">{{ formattedSceneLabel }}</span>
<span style="color: #666;">适配业务:</span><span style="color: #333;">{{ formattedSceneLabel }}</span>
</el-col>
</el-row>
<el-row style="font-size: 14px; line-height: 28px;">
......
......@@ -683,9 +683,8 @@
<!-- 禁用账号二次确认弹窗 -->
<disable-account-dialog :disable-dialog-visible="disableDialogVisible" :current-row="currentDisableRow"
:staff-name="detail.staffName"
:formatted-scene-label="currentDisableRow ? filterStr(currentDisableRow.staffSceneLabel, staffSceneLabelList) : ''"
v-if="disableDialogVisible" @dialogClose="closeDisableDialog" @refreshDetail="getDetail"
@disableFailed="handleDisableFailed">
:formatted-scene-label="currentDisableRow ? currentDisableRow.accountSceneStr : ''" v-if="disableDialogVisible"
@dialogClose="closeDisableDialog" @refreshDetail="getDetail" @disableFailed="handleDisableFailed">
</disable-account-dialog>
</div>
</template>
......
......@@ -56,9 +56,9 @@
<!-- <auth-button :data="scope.scope" /> -->
<auth-button :data="scope.scope" :show-btn-ids="['9120505']" />
<!-- 待激活 -->
<span style="margin-left:10px;" v-if="scope.scope.workingStatus == 2">
<auth-button :data="scope.scope" :show-btn-ids="['9120516']" />
</span>
<!-- <span style="margin-left:10px;" v-if="scope.scope.workingStatus == 2"> -->
<auth-button :data="scope.scope" :show-btn-ids="['9120516']" />
<!-- </span> -->
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!