From 869f6c069e86c2ff90393c1441854a6f05989481 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 15 七月 2022 10:42:46 +0800
Subject: [PATCH] 1.连接自动打印,2.修改bug

---
 src/views/scgl/gd.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/scgl/gd.vue b/src/views/scgl/gd.vue
index f1325f4..4296c2c 100644
--- a/src/views/scgl/gd.vue
+++ b/src/views/scgl/gd.vue
@@ -567,7 +567,7 @@
 import { handleDatetime } from '@/utils/global'
 import { getCookie } from '@/utils/auth'
 import { MesOrderPrintSearch1 } from '@/api/utils'
-import { urlAddRandomNo, webapp_ws_ajax_run } from '@/utils/grwebapp'
+import { urlAddRandomNo, webapp_urlprotocol_startup, webapp_ws_ajax_run, webapp_ws_autoupdate } from '@/utils/grwebapp'
 
 const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
@@ -705,6 +705,8 @@
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
+    // webapp_urlprotocol_startup()
+    webapp_ws_autoupdate(true)
   },
   methods: {
     async getMesOrderSearch() {
@@ -964,7 +966,7 @@
           AddUpdateMesOrder(data).then(res => {
             if (res.code === '200') {
               if (this.operation !== 'add') {
-                // this.sendPrint()
+                this.sendPrint()
               }
               this.$message.success(this.operation === 'add' ? '娣诲姞鎴愬姛锛�' : '娲惧彂鎴愬姛锛�')
               this.dialogVisible = false

--
Gitblit v1.9.3