Commit 428ab37b authored by pengyunqian's avatar pengyunqian

Merge branch 'feature/distribution' into test

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