Commit 003c44be authored by your yuchenglong's avatar your yuchenglong

update:打印修改

parent b683ffac
...@@ -540,7 +540,7 @@ export default { ...@@ -540,7 +540,7 @@ export default {
} }
let res = await this.printOrderMet(false); let res = await this.printOrderMet(false);
console.log(res.code);
if (res.code === 0) { if (res.code === 0) {
this.$message({ this.$message({
type: "success", type: "success",
...@@ -550,10 +550,15 @@ export default { ...@@ -550,10 +550,15 @@ export default {
} }
if (res.code !== 10) { if (res.code !== 10) {
if (res.reason) {
this.$message.error(res.reason); this.$message.error(res.reason);
} else {
this.$message.error("打印失败");
}
return; return;
} }
if (res.reason) {
try { try {
await this.$confirm(res.reason, "打印", { await this.$confirm(res.reason, "打印", {
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -563,6 +568,10 @@ export default { ...@@ -563,6 +568,10 @@ export default {
// 取消 // 取消
return; return;
} }
} else {
this.$message.error("打印失败");
}
res = await this.printOrderMet(true); res = await this.printOrderMet(true);
// if (res.code !== 0) { // if (res.code !== 0) {
......
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