Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
2304a6eb
Commit
2304a6eb
authored
Jul 09, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加日志打印
parent
26a1bab1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
src/store/order.ts
+3
-1
src/views/order/podUs/PodMakeOrder.vue
+13
-0
No files found.
src/store/order.ts
View file @
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
()
{
...
...
src/views/order/podUs/PodMakeOrder.vue
View file @
2304a6eb
...
@@ -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
()
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment