Commit 74ea55c7 by caoyanzhi

update: 会员展示策略

parent 4891ae7a
......@@ -61,6 +61,9 @@ export default {
data() {
const valiStoreType = (rules, value, callback) => {
const data = value.filter(el => !this.selectedTypes.includes(el));
if (this.storeTypes.every(el => this.selectedTypes.includes(el.value))) {
return callback(new Error('一种门店类型仅能包含在一个特殊策略中,当前所有门店类型已被其它特殊策略占用,无法创建'));
}
if (data.length == 0) {
return callback(new Error('请选择门店类型'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment