Commit 428ab37b authored by pengyunqian's avatar pengyunqian

Merge branch 'feature/distribution' into test

parents 15743704 003c44be
...@@ -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,19 +550,28 @@ export default { ...@@ -550,19 +550,28 @@ export default {
} }
if (res.code !== 10) { if (res.code !== 10) {
this.$message.error(res.reason); if (res.reason) {
this.$message.error(res.reason);
} else {
this.$message.error("打印失败");
}
return; return;
} }
try { if (res.reason) {
await this.$confirm(res.reason, "打印", { try {
cancelButtonText: "取消", await this.$confirm(res.reason, "打印", {
confirmButtonText: "确定", cancelButtonText: "取消",
}); confirmButtonText: "确定",
} catch (e) { });
// 取消 } catch (e) {
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