Commit ecebdf9e by LJM

打印效果优化

parent 09e4cd70
Showing with 0 additions and 7 deletions
...@@ -802,14 +802,8 @@ ...@@ -802,14 +802,8 @@
}); });
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) {
setTimeout(() => {
uni.hideLoading();
uni.showToast({ uni.showToast({
title: '打印成功', title: '打印成功',
icon: 'success' icon: 'success'
...@@ -819,7 +813,6 @@ ...@@ -819,7 +813,6 @@
this.filter_id = []; this.filter_id = [];
this.getData(); this.getData();
}, 2000) }, 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