Commit ffa3b636 by caoyanzhi

update: 特殊积分策略

parent 10760c8e
...@@ -19,15 +19,15 @@ ...@@ -19,15 +19,15 @@
<el-switch v-model="item.openStatus"> </el-switch> <el-switch v-model="item.openStatus"> </el-switch>
<span class="setting-tips">客户在线下门店产生的订单</span> <span class="setting-tips">客户在线下门店产生的订单</span>
<div class="form-child" v-if="item.openStatus" :key="index"> <div class="form-child" v-if="item.openStatus" :key="index">
<el-form-item label="选择商户:" label-width="85px" style="margin-bottom: 20px"> <!-- <el-form-item label="选择商户:" label-width="85px" style="margin-bottom: 20px">
<el-select size="small" v-model="item.enterpriseRelationIdArr" placeholder="请选择" multiple @change="onStoreChange(item)"> <el-select size="small" v-model="item.enterpriseRelationIdArr" placeholder="请选择" multiple @change="onStoreChange(item)">
<el-option v-for="(item, ind) in mechantOption" :key="ind" :label="item.label" :value="item.value"> </el-option> <el-option v-for="(item, ind) in mechantOption" :key="ind" :label="item.label" :value="item.value"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item> -->
<el-form-item v-if="Array.isArray(item.enterpriseRelationIdArr) && item.enterpriseRelationIdArr.length > 0" label="消费门店:" prop="region" label-width="85px" style="margin-bottom: 20px"> <el-form-item label="消费门店:" prop="region" label-width="85px" style="margin-bottom: 20px">
<dm-store-selector :isClique="true" :scenesVal="scencs" :options="options" :isAdd="isAdd" :uuid.sync="uuid" ref="storeGroup"></dm-store-selector> <dm-store-selector :isClique="true" :scenesVal="scencs" :options="options" :isAdd="isAdd" :uuid.sync="uuid" ref="storeGroup"></dm-store-selector>
</el-form-item> </el-form-item>
<el-form-item v-if="Array.isArray(item.enterpriseRelationIdArr) && item.enterpriseRelationIdArr.length > 0" label="适用商品:" prop="name" class="padding-0" label-width="85px" style="margin-bottom: 20px"> <el-form-item label="适用商品:" prop="name" class="padding-0" label-width="85px" style="margin-bottom: 20px">
<el-select v-model="item.channelRelationProType" placeholder="请选择" @change="changeGood($event)"> <el-select v-model="item.channelRelationProType" placeholder="请选择" @change="changeGood($event)">
<el-option v-for="item in applyGoods" :key="item.value" :label="item.label" :value="item.value"> </el-option> <el-option v-for="item in applyGoods" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> </el-select>
...@@ -721,17 +721,35 @@ export default { ...@@ -721,17 +721,35 @@ export default {
} }
if (data.channelList[i].channelType == 3 && !data.channelList[i].enterpriseRelationIdArr.length) { if (data.channelList[i].channelType == 3 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false; obj.flag = false;
obj.text = '请选择商户'; obj.text = '请选择线下渠道的商户';
return obj;
} }
if (data.channelList[i].channelType == 1 && !data.channelList[i].enterpriseRelationIdArr.length) { if (data.channelList[i].channelType == 1 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false; obj.flag = false;
obj.text = '请选择商户'; obj.text = '请选择达摩微商城的商户';
return obj;
} }
if (data.channelList[i].channelType == 9 && !data.channelList[i].enterpriseRelationIdArr.length) { if (data.channelList[i].channelType == 9 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false; obj.flag = false;
obj.text = '请选择商户'; obj.text = '请选择微盟渠道的商户';
return obj;
}
if (data.channelList[i].channelType == 8 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false;
obj.text = '请选择天猫渠道的商户';
return obj;
}
if (data.channelList[i].channelType == 11 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false;
obj.text = '请选择抖音渠道的商户';
return obj;
}
if (data.channelList[i].channelType == 10 && !data.channelList[i].enterpriseRelationIdArr.length) {
obj.flag = false;
obj.text = '请选择其他渠道的商户';
return obj;
} }
if (data.channelList[i].channelType == 3) { if (data.channelList[i].channelType == 3 && data.channelList[i].enterpriseRelationIdArr.length > 0) {
const storeGroupDom = this.$refs.storeGroup; const storeGroupDom = this.$refs.storeGroup;
let flag = null; let flag = null;
if (storeGroupDom instanceof Array) { if (storeGroupDom instanceof Array) {
......
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