Commit 76fe6c33 by caoyanzhi

update: 会员卡设置

parent b0cdd9a9
......@@ -73,7 +73,7 @@
</div>
</template>
<script>
import { postRequest, postJson } from '@/api/api';
import { postRequest, postJson, getRequest } from '@/api/api';
import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
import Sortable from 'sortablejs';
......@@ -98,10 +98,6 @@ export default {
enterpriseId: {
type: String,
default: ''
},
isExist: {
type: Boolean,
default: false
}
},
watch: {
......@@ -135,6 +131,7 @@ export default {
mounted() {
if (this.type==1) {
this.rowDrop();//行拖拽排序
this.getOpenThird();
}
},
data() {
......@@ -143,21 +140,30 @@ export default {
loading: false,
isEditSort: false,
sortTable: null,
isExist: false,
};
},
methods: {
getOpenThird() {
getRequest('/api-admin/judge-enterprise-third-channel', {}).then(res => {
res.data.result.isExist = true
const { result } = res.data || {};
this.isExist = result.isExist;
});
},
checkOpenThird() {
// 未开通的商户,不提示
// 开通的商户才提示
// 点击已完成才进行下一步操作
return new Promise((resolve, reject) => {
if (!this.isExist || this.type != 1) {
return resolve();
if (this.isExist && this.type == 1) {
this.$confirm('您已对接「天猫」、「抖音」渠道的会员等级,为确保每个渠道的会员等级对应关系一致,在调整会员等级顺序或者新增会员等级前请联系运营经理确认是否对应渠道的会员等级关系已维护完成!', '提示', {
cancelButtonText: '未完成',
confirmButtonText: '已完成'
}).then(resolve);
return;
}
this.$confirm('您已对接「天猫」、「抖音」渠道的会员等级,为确保每个渠道的会员等级对应关系一致,在调整会员等级顺序或者新增会员等级前请联系运营经理确认是否对应渠道的会员等级关系已维护完成!', '提示', {
cancelButtonText: '未完成',
confirmButtonText: '已完成'
}).then(resolve);
resolve();
});
},
// 编辑集团
......
......@@ -276,8 +276,8 @@
</el-form-item>
</el-form>
<!-- type 1 常规卡 2 特殊卡 3 付费卡(集团不展示) -->
<member-card-table :isExist="isExist" :tableData="generalCardList" type="1" :logoImg="logoImg" @add="onAdd" @edit="onEdit"/>
<member-card-table :isExist="isExist" :tableData="specialCardList" type="2" :logoImg="logoImg" @add="onAdd" @edit="onEdit"/>
<member-card-table :tableData="generalCardList" type="1" :logoImg="logoImg" @add="onAdd" @edit="onEdit"/>
<member-card-table :tableData="specialCardList" type="2" :logoImg="logoImg" @add="onAdd" @edit="onEdit"/>
</div>
</div>
<!-- end -->
......@@ -314,8 +314,6 @@ export default {
}
],
projectName: 'gic-clique', //当前项目名
// 是否开通天猫、抖音等渠道
isExist: false,
firstRadio: 0,
......@@ -381,12 +379,6 @@ export default {
// this.selectReplayStyle()
},
methods: {
getOpenThird() {
getRequest('/api-admin/judge-enterprise-third-channel', {}).then(res => {
const { result } = res.data || {};
this.isExist = result.isExist;
});
},
// 服务门店变更逻辑
changeServiceSwitch(val) {
let typeValue = val ? 1 : 0;
......
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