Commit 0d769efe by wusiyi

Merge branch 'fix_1001802' into 'dev'

fix: 添加日志打印

See merge request !255
parents ea325cfe 2304a6eb
...@@ -29,7 +29,8 @@ const useOrderStore = defineStore('order', { ...@@ -29,7 +29,8 @@ const useOrderStore = defineStore('order', {
data?: OrderData data?: OrderData
}) { }) {
console.log(content, 'content') console.log(content, 'content')
const { url, factoryNo, warehouseId, boxList, box, data, fromUser } = content const { url, factoryNo, warehouseId, boxList, box, data, fromUser } =
content
if (Array.isArray(boxList)) { if (Array.isArray(boxList)) {
boxList.forEach((item) => { boxList.forEach((item) => {
item.fromUser = fromUser item.fromUser = fromUser
...@@ -78,6 +79,7 @@ const useOrderStore = defineStore('order', { ...@@ -78,6 +79,7 @@ const useOrderStore = defineStore('order', {
this.podBoxIndex = box this.podBoxIndex = box
} }
} }
console.log(this.podBoxList, 'this.podBoxList')
}, },
// 清空所有箱子 // 清空所有箱子
clearPodBoxList() { clearPodBoxList() {
......
...@@ -796,6 +796,7 @@ const messageChange = (data: WebSocketMessage) => { ...@@ -796,6 +796,7 @@ const messageChange = (data: WebSocketMessage) => {
'%conWebSocketMessage', '%conWebSocketMessage',
'font-size: 20px; color: red;', 'font-size: 20px; color: red;',
JSON.parse(more.txt), JSON.parse(more.txt),
more.fromUser,
) )
} }
} catch (e) { } catch (e) {
...@@ -811,6 +812,18 @@ const messageChange = (data: WebSocketMessage) => { ...@@ -811,6 +812,18 @@ const messageChange = (data: WebSocketMessage) => {
code === 'FACTORY_POD_ORDER_BOX_FLUSH' || code === 'FACTORY_POD_ORDER_BOX_FLUSH' ||
code === 'FACTORY_POD_ORDER_TOP_BOX_FLUSH' code === 'FACTORY_POD_ORDER_TOP_BOX_FLUSH'
) { ) {
try {
if (typeof more.txt === 'string') {
console.log(
'%conWebSocketMessage',
'font-size: 20px; color: green;',
JSON.parse(more.txt),
more.fromUser,
)
}
} catch (e) {
console.error(e)
}
initOrderDetailBox() initOrderDetailBox()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment