Commit 32fbc40f by huaying

fix: 核销门店导出传值和核销记录新增员工提示信息问题(暂时)

parent 01c8b27e
......@@ -140,6 +140,13 @@ const requests = (url, data = {}, contentTypeIsJSON = false, isSilence = false,
reject(res);
if (res.data.message.indexOf('抱歉') >= 0) {
Vue.prototype.$alert(res.data.message, '提示');
} else if (res.data.errorCode == 170009) {
// return; //在核销记录的新增员工时 校验手机号重复后依然回调保存接口并弹出提示信息,为了去掉信息
if (res.data.message == '核销会员手机号已存在,无法重复添加') {
// return
} else {
handlerErr(res.data.errorCode, res.data.message);
}
} else {
handlerErr(res.data.errorCode, res.data.message);
}
......
......@@ -90,13 +90,12 @@ export default {
await setStraff(param)
.then(res => {
this.$tips({ type: 'success', message: '操作成功' });
this.loading = false;
this.loadings = false;
this.handleClose();
return;
})
.catch(err => {
this.$tips({ type: 'error', message: err.message || '操作失败' });
this.loading = false;
// this.$tips({ type: 'error', message: err.data.message || '操作失败' });
this.loadings = false;
});
} else {
this.loadings = false;
......
......@@ -80,7 +80,7 @@ export default {
exportResult() {
this.dialogVisible = true;
this.excelUrl = 'api-marketing/export-card-write-off-store';
this.params = {
this.paramsex = {
search: this.params.search,
writeOffBeginTime: this.params.writeOffBeginTime,
writeOffEndTime: this.params.writeOffEndTime,
......
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