update print dom
This commit is contained in:
parent
807766f83f
commit
7de3355106
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user