wangfei 6 years ago
parent
commit
a7ac68c841

+ 2
- 1
src/pages/system/newOrder/newOrderList/index.vue View File

128
     })
128
     })
129
   },
129
   },
130
   beforeDestroyed () {
130
   beforeDestroyed () {
131
+    console.log("离开案场")
131
     this.ws.close()
132
     this.ws.close()
133
+    this.updateList([])
132
   },
134
   },
133
   methods: {
135
   methods: {
134
     init () {
136
     init () {
250
       })
252
       })
251
     },
253
     },
252
     initWebSocket () {
254
     initWebSocket () {
253
-      console.log('initWebSocket')
254
       let caseid = this.CaseId
255
       let caseid = this.CaseId
255
       let id = this.userInfo.UserId
256
       let id = this.userInfo.UserId
256
       const wsPath = this.$api.system.notify.newGoodsOrders.url
257
       const wsPath = this.$api.system.notify.newGoodsOrders.url

+ 0
- 2
src/pages/system/newOrder/newOrderList/print.vue View File

43
   },
43
   },
44
   methods: {
44
   methods: {
45
     print () {
45
     print () {
46
-      console.log('打单')
47
-      console.log(this.printList)
48
       this.lodop = getLodop()
46
       this.lodop = getLodop()
49
       this.lodop.PRINT_INIT('城咖啡订单')
47
       this.lodop.PRINT_INIT('城咖啡订单')
50
       this.lodop.SET_PRINT_PAGESIZE(3, 480, 40, '')
48
       this.lodop.SET_PRINT_PAGESIZE(3, 480, 40, '')