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
2f701631
Commit
2f701631
authored
Sep 03, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增超级播种墙配货
parent
b86669c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
4 deletions
+98
-4
src/api/podCnOrder.ts
+1
-1
src/store/cnSuperOrder.ts
+94
-0
src/views/order/podCN/SuperPodMakeOrder.vue
+3
-3
No files found.
src/api/podCnOrder.ts
View file @
2f701631
...
@@ -274,7 +274,7 @@ export function getPodBoxListApi(
...
@@ -274,7 +274,7 @@ export function getPodBoxListApi(
// 超级播种墙配货 获取pod订单拣货箱子详情
// 超级播种墙配货 获取pod订单拣货箱子详情
export
function
getSuperPodBoxListApi
(
factoryNo
:
number
|
string
)
{
export
function
getSuperPodBoxListApi
(
factoryNo
:
number
|
string
)
{
return
axios
.
get
<
never
,
BaseRespData
<
PodMakeOrderData
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
PodMakeOrderData
[]
>>
(
'super/factory/podJomallOrderCn/get
Super
PodBoxOrderDetails'
,
'super/factory/podJomallOrderCn/getPodBoxOrderDetails'
,
{
params
:
{
factoryNo
}
},
{
params
:
{
factoryNo
}
},
)
)
}
}
...
...
src/store/cnSuperOrder.ts
0 → 100644
View file @
2f701631
import
{
defineStore
}
from
'pinia'
import
{
OrderData
,
PodMakeOrderData
,
ProductList
,
}
from
'@/types/api/podMakeOrder'
import
{
getSuperPodBoxListApi
}
from
'@/api/podCnOrder'
export
interface
OrderStoreState
{
podBoxList
?:
PodMakeOrderData
[]
podBoxIndex
?:
number
|
null
socketConnect
?:
string
}
const
useOrderStore
=
defineStore
(
'cnSuperOrder'
,
{
state
:
()
=>
{
return
{
podBoxList
:
[],
podBoxIndex
:
null
,
socketConnect
:
''
,
}
as
OrderStoreState
},
actions
:
{
async
setPodBoxList
(
content
:
{
boxList
:
PodMakeOrderData
[]
|
OrderData
|
null
factoryNo
:
number
|
string
box
?:
number
data
?:
OrderData
})
{
console
.
log
(
'???????????????????'
)
const
{
factoryNo
,
boxList
,
box
,
data
}
=
content
if
(
Array
.
isArray
(
boxList
))
{
this
.
podBoxList
=
boxList
}
else
{
const
index
=
this
.
podBoxList
?.
findIndex
((
item
)
=>
item
.
box
===
box
)
if
(
index
===
-
1
)
{
try
{
const
res
=
await
getSuperPodBoxListApi
(
factoryNo
)
const
boxList
=
res
.
data
.
map
((
item
)
=>
{
if
(
res
.
data
)
{
const
productList
=
item
?.
data
?.
productList
||
[]
const
pickingNumber
=
productList
.
reduce
(
(
prev
:
number
,
item1
:
ProductList
)
=>
{
if
(
item1
.
count
)
{
return
prev
+
item1
.
count
}
return
prev
},
0
,
)
if
(
item
.
data
)
{
item
.
data
.
pickingNumber
=
pickingNumber
}
}
return
item
})
this
.
podBoxList
=
boxList
this
.
podBoxIndex
=
box
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
else
if
(
box
!==
0
&&
box
!==
undefined
)
{
const
arr
=
this
.
podBoxList
if
(
arr
)
{
arr
[
box
-
1
]
=
{
box
,
data
:
data
||
boxList
||
null
,
}
}
this
.
podBoxList
=
arr
this
.
podBoxIndex
=
box
}
}
},
// 清空所有箱子
clearPodBoxList
()
{
this
.
podBoxList
=
[]
},
// 设置当前箱子
setPodBox
(
box
:
number
)
{
this
.
podBoxIndex
=
box
},
// 清空当前箱子
clearPodBox
()
{
this
.
podBoxIndex
=
null
},
setSocketConnect
(
connect
:
string
)
{
this
.
socketConnect
=
connect
},
},
})
export
default
useOrderStore
src/views/order/podCN/SuperPodMakeOrder.vue
View file @
2f701631
...
@@ -212,12 +212,12 @@ import {
...
@@ -212,12 +212,12 @@ import {
PodMakeOrderData
,
PodMakeOrderData
,
ProductList
,
ProductList
,
}
from
'@/types/api/podMakeOrder'
}
from
'@/types/api/podMakeOrder'
import
useOrderStore
from
'@/store/cnOrder'
import
useOrderStore
from
'@/store/cn
Super
Order'
import
{
import
{
getSuperPackingCnDataApi
,
getSuperPackingCnDataApi
,
clearSuperBoxApi
,
clearSuperBoxApi
,
clearAllBoxApi
,
clear
Super
AllBoxApi
,
getSuperPodBoxListApi
,
getSuperPodBoxListApi
,
submitSuperInspectionApi
,
submitSuperInspectionApi
,
}
from
'@/api/podCnOrder'
}
from
'@/api/podCnOrder'
...
@@ -851,7 +851,7 @@ const clearAllBox = async () => {
...
@@ -851,7 +851,7 @@ const clearAllBox = async () => {
return
return
}
}
try
{
try
{
const
res
=
await
clearAllBoxApi
()
const
res
=
await
clear
Super
AllBoxApi
()
if
(
res
.
code
!==
200
)
return
if
(
res
.
code
!==
200
)
return
orderStore
.
setPodBoxList
({
orderStore
.
setPodBoxList
({
boxList
:
res
.
data
,
boxList
:
res
.
data
,
...
...
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