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
be2d7210
Commit
be2d7210
authored
Aug 18, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wusiyi/logistic' into dev
parents
c89da26c
b9ed33d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
19 deletions
+67
-19
src/api/logistics.ts
+6
-0
src/views/logistics/logisticsMethod.vue
+61
-19
No files found.
src/api/logistics.ts
View file @
be2d7210
...
...
@@ -144,6 +144,12 @@ export function getUniuniList() {
},
)
}
// 获取tictok物流承运商
export
function
getTiktokCarrier
()
{
return
axios
.
get
<
never
,
BaseRespData
<
{
name
:
string
;
id
:
number
}[]
>>
(
'logisticsWay/getTiktokShippingProvider'
,
)
}
/**
* @description 发货地址
...
...
src/views/logistics/logisticsMethod.vue
View file @
be2d7210
...
...
@@ -81,6 +81,7 @@ import {
getLogisticsLog
,
getLogisticsCompanyList
,
getUniuniList
,
getTiktokCarrier
,
}
from
'@/api/logistics'
import
{
WarehouseListData
}
from
'@/types/api/podUsOrder'
...
...
@@ -401,25 +402,56 @@ const formConfig = computed<IFormConfig[]>(() => [
))}
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
key
=
{
index
}
class
=
"renderItem"
label
=
"物流名称"
style
=
"display: flex;flex:50%"
prop
=
{
`platformList.
${
index
}
.logisticsName`
}
rules
=
{[
{
required
:
true
,
message
:
'请输入物流名称'
,
trigger
:
'blur'
,
},
]}
>
<
el
-
input
v
-
model
=
{
item
.
logisticsName
}
placeholder
=
"请输入物流名称"
/>
<
/el-form-item
>
{
item
[
'showPlatform'
].
length
===
1
&&
item
[
'showPlatform'
][
0
]
===
'TIKTOK'
?
(
<
el
-
form
-
item
key
=
{
index
}
class
=
"renderItem"
label
=
"物流名称"
style
=
"display: flex;flex:50%"
prop
=
{
`platformList.
${
index
}
.logisticsName`
}
rules
=
{[
{
required
:
true
,
message
:
'请输入物流名称'
,
trigger
:
'blur'
,
},
]}
>
<
el
-
select
v
-
model
=
{
item
.
logisticsName
}
placeholder
=
"请选择物流名称"
>
{
tiktokCarriers
.
value
?.
map
((
el
)
=>
(
<
el
-
option
label
=
{
el
.
name
}
value
=
{
el
.
name
}
key
=
{
el
.
id
}
><
/el-option
>
))}{
' '
}
<
/el-select
>
<
/el-form-item
>
)
:
(
<
el
-
form
-
item
key
=
{
index
}
class
=
"renderItem"
label
=
"物流名称"
style
=
"display: flex;flex:50%"
prop
=
{
`platformList.
${
index
}
.logisticsName`
}
rules
=
{[
{
required
:
true
,
message
:
'请输入物流名称'
,
trigger
:
'blur'
,
},
]}
>
<
el
-
input
v
-
model
=
{
item
.
logisticsName
}
placeholder
=
"请输入物流名称"
/>
<
/el-form-item
>
)}
<
div
style
=
"display: flex;flex:17%"
>
{(
formData
?.
platformList
as
platformObj
[])?.
length
-
1
===
index
&&
(
...
...
@@ -575,6 +607,7 @@ const tableConfig = ref<TableColumn[]>([
onMounted
(()
=>
{
getAllList
()
getTiktokCarriers
()
})
/**
...
...
@@ -835,6 +868,15 @@ async function getAllList() {
}
}
const
tiktokCarriers
=
ref
<
{
name
:
string
;
id
:
number
}[]
>
([])
/**
* @description: 获取tictok物流承运商
*/
async
function
getTiktokCarriers
()
{
const
{
data
}
=
await
getTiktokCarrier
()
tiktokCarriers
.
value
=
data
}
/**
* @description: 日志弹窗
*/
...
...
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