update print dom

This commit is contained in:
lb 2023-08-25 11:04:27 +08:00
parent 807766f83f
commit 7de3355106

View File

@ -64,11 +64,12 @@
</h2>
<!-- 销售订单发货时间 -->
<h2 class="delivery-time" style="font-size: 18px; margin: 10px 0">
{{
{{ new Date(dataForm.deliveryTime).toLocaleDateString() }}
<!-- {{
new Date(dataForm.deliveryTime).toLocaleDateString() +
" " +
new Date(dataForm.deliveryTime).toLocaleTimeString()
}}
}} -->
</h2>
<!-- 托盘类型 满托 尾托 余托 -->
<h2
@ -254,9 +255,9 @@ export default {
this.lodop.On_Return = (TaskID, Value) => {
this.jobId = Value;
// this.$nextTick(() => {
// this.getPrintStatus(resolve, reject);
// });
console.log('this.lodop.On_Return', this.lodop.On_Return, this.jobId)
// this.getPrintStatus(resolve, reject);
// });
console.log("this.lodop.On_Return", this.lodop.On_Return, this.jobId);
resolve();
};
}
@ -266,14 +267,14 @@ export default {
this.lodop.PRINT();
});
},
getPrintStatus(id) {
return new Promise((resolve, reject) => {
if (!this.jobId || !this.lodop) reject(-1);
this.lodop.SET_PRINT_MODE("CATCH_PRINT_STATUS", true);
if (this.lodop.CVERSION) {
this.lodop.On_Return = (TaskID, Value) => {
console.log('this.lodop.On_Return', this.lodop.On_Return, this.jobId, Value)
console.log("this.lodop.On_Return", this.lodop.On_Return, this.jobId, Value);
if (Value.toString() == "1") {
//
this.sendSuccess()