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
1
Merge Requests
1
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
d2f79600
Commit
d2f79600
authored
Aug 19, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_inventory_sorting' into 'dev'
Dev inventory sorting See merge request
!304
parents
9bf605b9
3753306a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
63 deletions
+38
-63
src/types/api/order.ts
+0
-1
src/views/order/allocationSortingRule/components/addDialog.vue
+1
-19
src/views/order/allocationSortingRule/index.vue
+0
-8
src/views/order/factoryOrderNew/component/InventorySorting.vue
+0
-0
src/views/order/factoryOrderNew/index.vue
+37
-35
No files found.
src/types/api/order.ts
View file @
d2f79600
...
...
@@ -318,7 +318,6 @@ export interface SortingRuleDetail {
warehouseId
:
number
warehouseName
:
string
matchType
:
1
|
2
//匹配类型:1=所有条件(且) 2=任一条件(或)
autoPrint
:
boolean
// 自动打单
defaultFlag
:
boolean
// 默认分拣区
secondScan
:
boolean
// 二次扫码
conditions
:
SortingRuleCondition
[]
// 配货规则
...
...
src/views/order/allocationSortingRule/components/addDialog.vue
View file @
d2f79600
...
...
@@ -199,21 +199,6 @@
</div>
</el-form-item>
<el-form-item
label=
"自动打单"
prop=
"autoPrint"
>
<el-switch
v-model=
"form.autoPrint"
size=
"large"
placeholder=
"请选择是否自动打单"
/>
</el-form-item>
<el-form-item>
<span
v-if=
"form.autoPrint"
class=
"item-info"
>
开启后,配货分拣订单配齐时,自动打单,打单后订单状态转为待发货。
</span>
<span
v-else
class=
"item-info"
>
关闭后,配货分拣订单配齐后仍在待配货状态,经过配货打单后订单状态转为待发货。
</span>
</el-form-item>
<el-form-item
label=
"是否对接二次扫码设备"
prop=
"secondScan"
>
<el-select
v-model=
"form.secondScan"
...
...
@@ -308,7 +293,6 @@ const form = ref<SortingRuleDetail>({
],
secondScan
:
false
,
sortNo
:
1
,
autoPrint
:
false
,
warehouseId
:
0
,
warehouseName
:
''
,
defaultFlag
:
false
,
...
...
@@ -396,9 +380,7 @@ const rules = computed(() => {
{
required
:
true
,
message
:
'请输入配货区说明'
,
trigger
:
'blur'
},
],
areaCode
:
[{
required
:
true
,
message
:
'请选择配货区'
,
trigger
:
'change'
}],
autoPrint
:
[
{
required
:
true
,
message
:
'请选择是否自动打单'
,
trigger
:
'change'
},
],
secondScan
:
[
{
required
:
true
,
...
...
src/views/order/allocationSortingRule/index.vue
View file @
d2f79600
...
...
@@ -214,14 +214,6 @@ const columns: CustomColumn<SortingList>[] = [
align
:
'left'
,
},
{
key
:
'autoPrint'
,
prop
:
'autoPrint'
,
label
:
'自动打单'
,
width
:
100
,
align
:
'center'
,
slot
:
'autoPrint'
,
},
{
key
:
'warehouseName'
,
prop
:
'warehouseName'
,
label
:
'仓库'
,
...
...
src/views/order/factoryOrderNew/component/InventorySorting.vue
0 → 100644
View file @
d2f79600
This diff is collapsed.
Click to expand it.
src/views/order/factoryOrderNew/index.vue
View file @
d2f79600
...
...
@@ -608,9 +608,9 @@
>
<
/span
>
<
span
v
-
if
=
"status === 'IN_PRODUCTION' && isEnableSorting"
class
=
"item"
>
<
ElButton
type
=
"primary"
@
click
=
"handle
SeedingWall('sort')"
>
配货分拣
<
/ElButto
n
>
<
ElButton
type
=
"primary"
@
click
=
"handle
InventorySorting"
>
配货分拣
<
/ElButton
>
<
/span
>
<
span
v
-
if
=
"
...
...
@@ -1111,18 +1111,22 @@
v
-
model
=
"podOrderVisible"
:
print
-
order
=
"printOrder"
:
warehouse
-
list
=
"warehouseList"
:
title
=
"wallType === 'print' ? '配货打单' : '配货分拣'
"
title
=
"配货打单
"
:
is
-
new
-
order
=
"true"
:
wall
-
type
=
"wallType"
:
ws
-
open
-
code
=
"
wallType === 'print' ? 'STARTORDERNEWPOD' : 'STARTORDERNEWPODTOP'
"
:
ws
-
close
-
code
=
"
wallType === 'print' ? 'ENDORDERNEWPOD' : 'ENDORDERNEWPODTOP'
"
wall
-
type
=
"print"
ws
-
open
-
code
=
"STARTORDERNEWPOD"
ws
-
close
-
code
=
"ENDORDERNEWPOD"
init
-
url
=
"factory/podOrderPacking/local/getPodBoxOrderDetails"
@
set
-
printer
=
"handlePrinterChange"
@
set
-
warehouse
-
id
=
"handleWarehouseIdChange"
@
set
-
warehouse
-
id
=
"handlePrintWarehouseIdChange"
@
refresh
=
"() => refreshCurrentView({ isRefreshTree: true
}
)"
/>
<!--
配货分拣
-->
<
InventorySorting
v
-
model
=
"inventorySortingVisible"
:
print
-
order
=
"printOrder"
:
warehouse
-
list
=
"warehouseList"
@
set
-
printer
=
"handlePrinterChange"
@
refresh
=
"() => refreshCurrentView({ isRefreshTree: true
}
)"
/>
<
PodDistributionOrder
...
...
@@ -1347,6 +1351,7 @@ import UpdateCustomDeclarationInfoDialog from '@/views/order/components/UpdateCu
import
WeightDialog
from
'@/views/order/components/WeightDialog.vue'
import
FastProduction
from
'@/views/order/components/FastProduction.vue'
import
PodMakeOrder
from
'@/views/order/podUs/PodMakeOrder.vue'
import
InventorySorting
from
'./component/InventorySorting.vue'
import
PodDistributionOrder
from
'@/views/order/podCN/PodDistributionOrder.vue'
import
PrintWarehouseSkuTag
from
'@/views/order/components/printWarehouseSkuTag.vue'
import
UpdateAddress
from
'@/views/order/podCN/components/updateAddress.vue'
...
...
@@ -1524,9 +1529,9 @@ const getListQueryPayload = () => {
}
const
getCraft
=
async
()
=>
{
const
res
=
await
getPodOrderCraftApi
()
const
res
=
await
getPodOrderCraftApi
()
const
data
:
CraftListData
[]
=
res
.
data
podCraftList
.
value
=
data
.
map
((
item
:
CraftListData
)
=>
({
podCraftList
.
value
=
data
.
map
((
item
:
CraftListData
)
=>
({
id
:
item
.
craftCode
,
name
:
item
.
craftName
,
warehouseName
:
processTypeMap
[
item
.
craftType
]
??
'其他'
,
...
...
@@ -1930,19 +1935,19 @@ const mainColumns = computed(() => [
}
,
{
prop
:
'statusName'
,
label
:
'挂起前状态'
,
label
:
'挂起前状态'
,
minWidth
:
120
,
hidden
:
status
.
value
!==
'SUSPEND'
,
align
:
'center'
hidden
:
status
.
value
!==
'SUSPEND'
,
align
:
'center'
,
}
,
{
prop
:
'statusName'
,
hidden
:
status
.
value
===
'SUSPEND'
,
hidden
:
status
.
value
===
'SUSPEND'
,
label
:
'订单状态'
,
minWidth
:
120
,
align
:
'center'
,
render
:
(
row
:
FactoryOrderNewListData
)
=>
{
return
<
span
>
{
row
.
pause
?
'挂起'
:
row
.
statusName
}
<
/span
>
return
<
span
>
{
row
.
pause
?
'挂起'
:
row
.
statusName
}
<
/span
>
}
,
}
,
{
...
...
@@ -2879,22 +2884,15 @@ const handleSingleConfirmOrder = (row: FactoryOrderNewListData) => {
confirmOrderDialogRef
.
value
?.
open
([
row
.
id
])
}
const
podOrderVisible
=
ref
(
false
)
const
inventorySortingVisible
=
ref
(
false
)
const
podDistributionOrderVisible
=
ref
(
false
)
const
sheetPrinter
=
ref
(
''
)
const
handlePrinterChange
=
(
value
:
string
)
=>
{
sheetPrinter
.
value
=
value
localStorage
.
setItem
(
'sheetPrinter'
,
JSON
.
stringify
(
value
))
}
const
handleWarehouseIdChange
=
(
value
:
|
string
|
{
warehouseId
:
string
|
number
;
sortingAreaId
:
string
|
number
}
,
)
=>
{
if
(
wallType
.
value
===
'print'
)
{
localStorage
.
setItem
(
'localNewWarehouseId'
,
JSON
.
stringify
(
value
))
}
else
if
(
wallType
.
value
===
'sort'
)
{
localStorage
.
setItem
(
'localSortingAreaId'
,
JSON
.
stringify
(
value
))
}
const
handlePrintWarehouseIdChange
=
(
value
:
string
|
number
)
=>
{
localStorage
.
setItem
(
'localNewWarehouseId'
,
JSON
.
stringify
(
value
))
}
const
mapOrderParamListToSubmitItems
=
(
orderParamList
:
{
id
:
number
;
dataVersion
?:
number
}
[],
...
...
@@ -2915,22 +2913,26 @@ const getPrintLogisticLabelFactory = (id?: number) =>
getfaceSimplexFileApi
([
id
??
0
])
const
{
getCLodop
}
=
useLodop
()
const
wallType
=
ref
<
'print'
|
'sort'
>
(
'print'
)
const
handleSeedingWall
=
(
type
:
'print'
|
'sort'
)
=>
{
const
wallType
=
ref
<
'print'
>
(
'print'
)
const
handleSeedingWall
=
(
type
:
'print'
)
=>
{
wallType
.
value
=
type
const
lodop
=
getCLodop
(
null
,
null
)
if
(
!
lodop
)
return
sheetPrinter
.
value
=
lodop
.
GET_PRINTER_NAME
(
0
)
podOrderVisible
.
value
=
true
}
// 点击打开配货分拣弹窗
const
handleInventorySorting
=
()
=>
{
const
lodop
=
getCLodop
(
null
,
null
)
if
(
!
lodop
)
return
sheetPrinter
.
value
=
lodop
.
GET_PRINTER_NAME
(
0
)
inventorySortingVisible
.
value
=
true
}
/** LODOP 单例不可并发,打印串行 */
let
printOrderChain
:
Promise
<
void
>
=
Promise
.
resolve
()
const
printOrder
=
(
data
:
OrderData
,
callback
:
(
status
:
boolean
)
=>
void
,
)
=>
{
const
printOrder
=
(
data
:
OrderData
,
callback
:
(
status
:
boolean
)
=>
void
)
=>
{
const
run
=
async
()
=>
{
const
lodop
=
getCLodop
(
null
,
null
)
if
(
!
lodop
)
{
...
...
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