You need to sign in or sign up before continuing.
Commit fa7ac74c by caoyanzhi

update: 通用策略保存

parent 45c75373
......@@ -61,6 +61,9 @@ export default {
data() {
const valiStoreType = (rules, value, callback) => {
const data = value.filter(el => !this.selectedTypes.includes(el));
if (this.myCustomData.storeType.includes('-1')) {
return callback();
}
if (this.storeTypes.every(el => this.selectedTypes.includes(el.value))) {
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