Commit 76fe6c33 by caoyanzhi

update: 会员卡设置

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