优化打印提示

main
chenjf 2 years ago
parent 5c2452ce3e
commit afbdbbfd6d

@ -98,23 +98,23 @@
LODOP.ADD_PRINT_PDF(0, 0, "100mm", "150mm", res.data.result); LODOP.ADD_PRINT_PDF(0, 0, "100mm", "150mm", res.data.result);
LODOP.PRINT(); LODOP.PRINT();
uni.showToast({ uni.showToast({
title: '打印成功', title: '面单下发成功.正在打印,请稍候...',
icon: 'success', icon: 'success',
duration: 2000 duration: 3000
}); });
}else{ }else{
uni.showToast({ uni.showToast({
title: '打印失败', title: '面单获取异常,打印失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 3000
}) })
} }
}, },
fail: () => { fail: () => {
uni.showToast({ uni.showToast({
title: '打印失败', title: '接口访问异常,打印失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 3000
}) })
}, },
}); });
@ -146,23 +146,23 @@
LODOP.ADD_PRINT_PDF(0, 0, "100mm", "150mm", res.data.result); LODOP.ADD_PRINT_PDF(0, 0, "100mm", "150mm", res.data.result);
LODOP.PRINT(); LODOP.PRINT();
uni.showToast({ uni.showToast({
title: '打印成功', title: '下发成功.正在打印,请稍候...',
icon: 'success', icon: 'success',
duration: 2000 duration: 3000
}); });
}else{ }else{
uni.showToast({ uni.showToast({
title: '打印失败', title: '面单获取异常,打印失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 3000
}) })
} }
}, },
fail: () => { fail: () => {
uni.showToast({ uni.showToast({
title: '打印失败', title: '接口访问异常,打印失败',
icon: 'none', icon: 'none',
duration: 2000 duration: 3000
}) })
}, },
}); });

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save