Commit 5c8daa97 by 胡悦

fix(inStoreManage): 新增门店岗位选择校验逻辑

为分配门店弹窗和编辑门店权限弹窗添加校验逻辑,当已选择门店驻店场景但未选择对应岗位时,弹出警告提示用户选择门店岗位
1 parent 07cd1ae9
......@@ -415,6 +415,13 @@ export default {
return this.$message.warning("请选择门店驻店类型");
}
const hasEmptyPositionType = this.tableData.some(row => row.checkedScenes
&& row.checkedScenes.length > 0
&& (!row.positionTypeList || row.positionTypeList.length === 0));
if (hasEmptyPositionType) {
return this.$message.warning("请选择门店岗位");
}
// 构建提交参数
const shopItemMap = new Map();
......
......@@ -270,6 +270,13 @@ export default {
return this.$message.warning("请选择门店驻店类型");
}
const hasEmptyPositionType = this.tableData.some(row => row.checkedScenes
&& row.checkedScenes.length > 0
&& (!row.positionTypeList || row.positionTypeList.length === 0));
if (hasEmptyPositionType) {
return this.$message.warning("请选择门店岗位");
}
const fourSShopList = [];
this.tableData.forEach((row) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!