|
|
|
@ -276,6 +276,7 @@ |
|
|
|
<script> |
|
|
|
import moment from "moment"; |
|
|
|
import { mapState, mapActions } from "vuex"; |
|
|
|
import { Loading } from "element-ui"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { |
|
|
|
dddw, |
|
|
|
@ -399,6 +400,14 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('toOutShell', toOutShell) |
|
|
|
let loading = Loading.service({ |
|
|
|
lock: true, |
|
|
|
text: "正在加载中,请稍后", |
|
|
|
spinner: "el-icon-loading", |
|
|
|
background: "rgba(0, 0, 0, 0)", |
|
|
|
customClass: "boxStyle" |
|
|
|
}); |
|
|
|
|
|
|
|
if (isPreview) { |
|
|
|
this.$peisAPI.printPre(JSON.stringify(toOutShell)) |
|
|
|
.then(res => { |
|
|
|
@ -409,6 +418,9 @@ export default { |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.error({ showClose: true, message: err }) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
loading.close() |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$peisAPI.print(JSON.stringify(toOutShell)) |
|
|
|
@ -420,6 +432,9 @@ export default { |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
this.$message.error({ showClose: true, message: err }) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
loading.close() |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|