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
187b4ed8
Commit
187b4ed8
authored
Oct 18, 2025
by
zhuzhequan
Committed by
qinjianhui
Oct 23, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:tt物流方式接口数据处理
parent
84eb5b2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
23 deletions
+41
-23
src/api/logistics.ts
+1
-1
src/views/logistics/logisticsMethod.vue
+40
-22
No files found.
src/api/logistics.ts
View file @
187b4ed8
...
...
@@ -148,7 +148,7 @@ export function getUniuniList() {
}
// 获取tictok物流承运商
export
function
getTiktokCarrier
()
{
return
axios
.
get
<
never
,
BaseRespData
<
{
name
:
string
;
id
:
number
}[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
{
name
:
string
;
id
:
string
,
typeCode
:
string
,
label
:
string
}[]
>>
(
'logisticsWay/getTiktokShippingProvider'
,
)
}
...
...
src/views/logistics/logisticsMethod.vue
View file @
187b4ed8
...
...
@@ -42,7 +42,7 @@
v-model=
"editForm"
:config=
"formConfig"
form-item-width=
"100%"
label
W
idth=
"110"
label
-w
idth=
"110"
>
</CustomizeForm>
...
...
@@ -70,6 +70,7 @@
defineOptions
({
name
:
'LogisticsMethod'
,
})
import
LogisticsWaySelect
from
'./components/LogisticsWaySelect.tsx'
import
{
getLogisticsWayList
,
addLogisticsWay
,
...
...
@@ -103,6 +104,7 @@ import { showConfirm } from '@/utils/ui'
import
{
Edit
,
Delete
,
List
,
WarningFilled
}
from
'@element-plus/icons-vue'
import
{
debounce
}
from
'lodash-es'
import
UPARCELImage
from
'@/assets/images/UPARCEL物流编码.png'
const
[
searchForm
]
=
useValue
({})
const
[
editForm
,
resetEditForm
]
=
useValue
<
LogisticsMethod
>
({
platformList
:
[
...
...
@@ -140,6 +142,7 @@ const warehouseList = ref<WarehouseListData[]>([])
interface
ImageList
{
[
key
:
string
]:
string
}
const
imgeList
=
ref
<
ImageList
>
({
UPARCEL
:
UPARCELImage
,
})
...
...
@@ -418,18 +421,10 @@ const formConfig = computed<IFormConfig[]>(() => [
},
]}
>
<
el
-
s
elect
<
LogisticsWayS
elect
v
-
model
=
{
item
.
logisticsName
}
placeholder
=
"请选择物流名称"
>
{
tiktokCarriers
.
value
?.
map
((
el
)
=>
(
<
el
-
option
label
=
{
el
.
name
}
value
=
{
el
.
name
}
key
=
{
el
.
id
}
><
/el-option
>
))}{
' '
}
<
/el-select
>
companyList
=
{
tiktokCarriers
.
value
}
><
/LogisticsWaySelect
>
<
/el-form-item
>
)
:
(
<
el
-
form
-
item
...
...
@@ -455,14 +450,14 @@ const formConfig = computed<IFormConfig[]>(() => [
<
div
style
=
"display: flex;flex:17%"
>
{(
formData
?.
platformList
as
platformObj
[])?.
length
-
1
===
index
&&
(
<
el
-
button
style
=
"margin-left: 10px"
type
=
"primary"
onClick
=
{()
=>
addCol
()}
>
新增
<
/el-button
>
)}
<
el
-
button
style
=
"margin-left: 10px"
type
=
"primary"
onClick
=
{()
=>
addCol
()}
>
新增
<
/el-button
>
)}
{
index
>=
1
&&
(
<
el
-
button
style
=
"margin-left: 10px"
...
...
@@ -868,13 +863,32 @@ async function getAllList() {
}
}
const
tiktokCarriers
=
ref
<
{
name
:
string
;
id
:
number
}[]
>
([])
interface
ICompanyList
{
warehouseName
:
string
wayList
:
IwayList
[]
}
interface
IwayList
{
name
:
string
id
:
string
}
const
tiktokCarriers
=
ref
<
ICompanyList
[]
>
([])
/**
* @description: 获取tictok物流承运商
*/
async
function
getTiktokCarriers
()
{
const
{
data
}
=
await
getTiktokCarrier
()
tiktokCarriers
.
value
=
data
const
labelTypeList
=
Array
.
from
(
new
Set
(
data
.
map
(
e
=>
e
.
label
)))
const
result
:
ICompanyList
[]
=
[]
labelTypeList
.
forEach
(
label
=>
{
result
.
push
({
warehouseName
:
label
,
wayList
:
data
.
filter
(
e
=>
e
.
label
===
label
)
})
})
tiktokCarriers
.
value
=
result
}
/**
...
...
@@ -885,7 +899,9 @@ interface LogList {
createTime
?:
string
description
?:
string
}
const
logList
=
ref
<
LogList
[]
>
([])
async
function
showLog
(
row
:
LogisticsMethod
)
{
logDialogVisible
.
value
=
true
try
{
...
...
@@ -909,9 +925,11 @@ async function showLog(row: LogisticsMethod) {
margin-bottom
:
10px
;
}
}
.user-operate-btn
{
margin-bottom
:
10px
;
}
.dialog-footer
{
text-align
:
center
;
}
...
...
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