Commit ecebdf9e by LJM

打印效果优化

parent 09e4cd70
Showing with 8 additions and 15 deletions
...@@ -802,24 +802,17 @@ ...@@ -802,24 +802,17 @@
}); });
return false; return false;
} }
this.request(API.padTallyPrint, 'POST', { tally_ids: this.filter_id.join(','), warehouse_id: warehouse_id.join(',') }, true).then(res => { this.request(API.padTallyPrint, 'POST', { tally_ids: this.filter_id.join(','), warehouse_id: warehouse_id.join(',') }, true).then(res => {
uni.showLoading({
title: '正在打印中...'
});
if (res.code === 0) { if (res.code === 0) {
uni.showToast({
title: '打印成功',
icon: 'success'
});
setTimeout(() => { setTimeout(() => {
uni.hideLoading(); this.resetChange();
uni.showToast({ this.filter_id = [];
title: '打印成功', this.getData();
icon: 'success' }, 2000)
});
setTimeout(() => {
this.resetChange();
this.filter_id = [];
this.getData();
}, 2000)
}, 5000);
} else { } else {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
......
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 sign in to comment