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
ff174216
Commit
ff174216
authored
Sep 29, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podus添加是否代发
parent
8a4496b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
5 deletions
+71
-5
src/types/api/podUsOrder.ts
+2
-1
src/views/order/podUs/index.vue
+69
-4
No files found.
src/types/api/podUsOrder.ts
View file @
ff174216
...
...
@@ -12,7 +12,7 @@ export interface ExportParams extends SearchForm {
export
interface
SearchForm
{
timeType
?:
number
|
null
shopNumber
?:
string
shipmentType
?:
string
shipmentType
?:
string
|
number
|
null
userMark
?:
string
processNumber
?:
string
trackingNumber
?:
string
...
...
@@ -40,6 +40,7 @@ export interface SearchForm {
sizeType
?:
number
|
null
tagsId
?:
string
tagsIdArr
?:
(
number
|
null
)[]
replaceShipment
?:
number
|
null
}
export
interface
PodUsOrderListData
{
id
:
number
...
...
src/views/order/podUs/index.vue
View file @
ff174216
...
...
@@ -247,9 +247,10 @@
clearable
:teleported=
"false"
style=
"width: 150px"
:disabled=
"searchForm.replaceShipment === 0"
>
<ElOption
v-for=
"(item, index) in
['自有物流', '工厂物流']
"
v-for=
"(item, index) in
shipmentList
"
:key=
"index"
:value=
"index"
:label=
"item"
...
...
@@ -276,6 +277,36 @@
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
label=
"是否代发"
>
<ElSelect
v-model=
"searchForm.replaceShipment"
placeholder=
"请选择"
clearable
:teleported=
"false"
style=
"width: 150px"
@
change=
"
(e:number) =>
{
if (e == 0) {
shipmentList=['自提','快递']
searchForm.shipmentType=0
}else{
shipmentList=['自有物流', '工厂物流']
searchForm.shipmentType=''
}
}
"
>
<ElOption
v-for=
"(item, index) in [
{ value: 1, label: '代发' },
{ value: 0, label: '不代发' },
]"
:key="index"
:value="item.value"
:label="item.label"
>
</ElOption>
</ElSelect>
</ElFormItem>
</ElForm>
<template
#
reference
>
<el-button
type=
"warning"
@
click=
"searchVisible = !searchVisible"
>
...
...
@@ -1389,16 +1420,36 @@
</span>
</div>
<div
class=
"order-detail-item"
>
<!-- 是否代发 0.否 1.是 -->
<span
class=
"order-detail-item-label"
>
是否代发:
</span>
<span
style=
"color: red; font-weight: 500"
class=
"order-detail-item-value"
>
{{
[
'否'
,
'是'
][
row
.
replaceShipment
]
}}
</span>
</div>
<div
class=
"order-detail-item"
>
<span
class=
"order-detail-item-label"
>
物流类型:
</span>
<span
style=
"color: red; font-weight: 500"
class=
"order-detail-item-value"
>
{{
[
'自有物流'
,
'工厂物流'
][
row
.
shipmentType
]
}}
{{
row
.
shipmentType
==
0
&&
row
.
replaceShipment
==
0
?
'自提'
:
[
'自有物流'
,
'工厂物流'
][
row
.
shipmentType
]
}}
</span>
</div>
<div
class=
"order-detail-item"
>
<span
class=
"order-detail-item-label"
>
物流跟踪号:
</span>
<span
class=
"order-detail-item-label"
>
{{
row
.
replaceShipment
===
0
&&
row
.
shipmentType
===
0
?
'取货码:'
:
'物流跟踪号:'
}}
</span
>
<span
class=
"order-detail-item-value"
>
<el-button
type=
"primary"
...
...
@@ -1737,7 +1788,14 @@
<
/ElButton
>
<
/span
>
<
span
v
-
if
=
"['WAIT_TRACK'].includes(status)"
class
=
"operate-item"
>
<
span
v
-
if
=
"
['WAIT_TRACK'].includes(status) &&
row.replaceShipment !== 0 &&
row.shipmentType !== 0
"
class
=
"operate-item"
>
<
ElButton
link
type
=
"warning"
@
click
=
"updateTrackingNumber(row)"
>
修改跟踪号
<
/ElButto
n
>
...
...
@@ -1753,6 +1811,7 @@
<
span
v
-
if
=
"
row.shipmentType === 0 &&
row.replaceShipment !== 0 &&
['CREATE_LOGISTICS', 'WAIT_SHIPMENT'].includes(status)
"
class
=
"operate-item"
...
...
@@ -1791,6 +1850,7 @@
<
span
v
-
if
=
"
row.shipmentType === 0 &&
row.replaceShipment !== 0 &&
['CREATE_LOGISTICS', 'WAIT_SHIPMENT'].includes(status)
"
class
=
"operate-item"
...
...
@@ -1805,6 +1865,8 @@
<
/span
>
<
span
v
-
if
=
"
row.shipmentType !== 0 &&
row.replaceShipment !== 0 &&
(status === 'IN_TRANSIT' || status === 'COMPLETE') &&
isPermissionBtn('TRACK')
"
...
...
@@ -3264,6 +3326,9 @@ const handleBatchDelete = async (type: string, id?: string) => {
loading
.
close
()
}
}
const
shipmentList
=
ref
([
'自有物流'
,
'工厂物流'
])
// 批量下载 重新排版
const
handleReComposingDesign
=
async
()
=>
{
const
row
=
{
...(
typesettingRow
.
value
as
PodUsOrderListData
)
}
...
...
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