Commit 692506e6 by 前端

Merge branch 'fearture/585/hy' into 'SAAS+V5.8.5'

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

See merge request !934
2 parents 2bed2756 5c8daa97
......@@ -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!