Commit 32fbc40f by huaying

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

parent 01c8b27e
...@@ -140,6 +140,13 @@ const requests = (url, data = {}, contentTypeIsJSON = false, isSilence = false, ...@@ -140,6 +140,13 @@ const requests = (url, data = {}, contentTypeIsJSON = false, isSilence = false,
reject(res); reject(res);
if (res.data.message.indexOf('抱歉') >= 0) { if (res.data.message.indexOf('抱歉') >= 0) {
Vue.prototype.$alert(res.data.message, '提示'); 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 { } else {
handlerErr(res.data.errorCode, res.data.message); handlerErr(res.data.errorCode, res.data.message);
} }
......
...@@ -90,13 +90,12 @@ export default { ...@@ -90,13 +90,12 @@ export default {
await setStraff(param) await setStraff(param)
.then(res => { .then(res => {
this.$tips({ type: 'success', message: '操作成功' }); this.$tips({ type: 'success', message: '操作成功' });
this.loading = false; this.loadings = false;
this.handleClose(); this.handleClose();
return;
}) })
.catch(err => { .catch(err => {
this.$tips({ type: 'error', message: err.message || '操作失败' }); // this.$tips({ type: 'error', message: err.data.message || '操作失败' });
this.loading = false; this.loadings = false;
}); });
} else { } else {
this.loadings = false; this.loadings = false;
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
exportResult() { exportResult() {
this.dialogVisible = true; this.dialogVisible = true;
this.excelUrl = 'api-marketing/export-card-write-off-store'; this.excelUrl = 'api-marketing/export-card-write-off-store';
this.params = { this.paramsex = {
search: this.params.search, search: this.params.search,
writeOffBeginTime: this.params.writeOffBeginTime, writeOffBeginTime: this.params.writeOffBeginTime,
writeOffEndTime: this.params.writeOffEndTime, 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