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
ff1c4200
Commit
ff1c4200
authored
Jan 19, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改pod cn 创建物流方式逻辑
parent
a1a21d52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
src/views/order/podCN/components/CreateLogisticDialog.vue
+12
-5
src/views/order/podCN/index.vue
+4
-4
No files found.
src/views/order/podCN/components/CreateLogisticDialog.vue
View file @
ff1c4200
...
...
@@ -94,12 +94,15 @@ const logisticCompanyList = ref<ILogisticsCompany[]>([])
const
selectedLogisticCompany
=
ref
<
ILogisticsCompany
|
null
>
(
null
)
const
logisticsWayList
=
ref
<
LogisticsWayData
[]
>
([])
const
logisticsWayId
=
ref
<
number
|
null
>
(
null
)
const
orderIdList
=
ref
<
(
string
|
number
)[]
>
([])
const
cancelDialog
=
()
=>
{
logisticsWayList
.
value
=
[]
logisticCompanyList
.
value
=
[]
selectedLogisticCompany
.
value
=
null
logisticsWayId
.
value
=
null
orderIdList
.
value
=
[]
isAutoMatch
.
value
=
false
createLogisticDialogVisible
.
value
=
false
}
...
...
@@ -126,19 +129,23 @@ const selectLogisticCompany = async (item: ILogisticsCompany) => {
}
const
confirmDialog
=
async
()
=>
{
await
createLogisticsOrdersApi
(
[
logisticsWayId
.
value
as
unknown
as
string
],
logisticsWayId
.
value
,
)
await
createLogisticsOrdersApi
(
orderIdList
.
value
,
logisticsWayId
.
value
)
.
then
((
res
)
=>
{
emits
(
'show-result'
,
res
.
data
)
})
.
finally
(()
=>
{
logisticsWayList
.
value
=
[]
logisticCompanyList
.
value
=
[]
selectedLogisticCompany
.
value
=
null
logisticsWayId
.
value
=
null
orderIdList
.
value
=
[]
isAutoMatch
.
value
=
false
createLogisticDialogVisible
.
value
=
false
})
}
const
showDialog
=
async
()
=>
{
const
showDialog
=
async
(
ids
:
(
string
|
number
)[])
=>
{
orderIdList
.
value
=
ids
createLogisticDialogVisible
.
value
=
true
}
...
...
src/views/order/podCN/index.vue
View file @
ff1c4200
...
...
@@ -753,7 +753,7 @@
selection.length === 0 ||
selection.some((item) => item.shipmentType !== 1)
"
@
click=
"handleCreateLogistic(
row
)"
@
click=
"handleCreateLogistic()"
>
创建物流订单
</ElDropdownItem
>
<ElDropdownItem
...
...
@@ -5984,10 +5984,10 @@ const handleStockOut = async (row: PodCnOrderListData) => {
}
// 创建物流订单
const
handleCreateLogistic
=
(
row
:
PodCnOrderListData
)
=>
{
c
urrentItem
.
value
=
row
const
handleCreateLogistic
=
()
=>
{
c
onst
ids
=
selection
.
value
.
map
((
item
)
=>
item
.
id
)
nextTick
(()
=>
{
createLogisticDialogRef
.
value
?.
showDialog
()
createLogisticDialogRef
.
value
?.
showDialog
(
ids
)
}
)
}
...
...
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