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
580073d4
Commit
580073d4
authored
Oct 28, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://47.122.114.111:9999/qinjianhui/factory_front
into dev
parents
b9d7b2a2
68d7c71b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
174 additions
and
53 deletions
+174
-53
src/api/logistics.ts
+1
-1
src/types/api/podCnOrder.ts
+7
-7
src/views/logistics/components/LogisticsWaySelect.tsx
+0
-0
src/views/logistics/logisticsMethod.vue
+94
-21
src/views/order/podCN/PodDistributionOrder.vue
+2
-2
src/views/order/podCN/index.vue
+40
-0
src/views/order/podUs/index.vue
+29
-21
tsconfig.json
+1
-1
No files found.
src/api/logistics.ts
View file @
580073d4
...
...
@@ -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/types/api/podCnOrder.ts
View file @
580073d4
...
...
@@ -44,6 +44,7 @@ export interface SearchForm {
interceptStatus
?:
number
|
string
sizeType
?:
number
|
null
tagsId
?:
string
source
?:
string
tagsIdArr
?:
(
number
|
null
)[]
}
export
interface
PodCnOrderListData
{
...
...
@@ -222,9 +223,9 @@ export interface CraftListData {
craftCode
:
string
}
export
interface
PackingData
{
podProductionNo
?:
string
;
// 生产单号(PSCD 开头)
jomallCustomNo
?:
string
;
// 一件定制号(16 位数字 或 S- 开头)
jomallPsdCustomNo
?:
string
;
// 满印定制号(JMSC/GCSC 开头)
podJomallNo
?:
string
;
// POD 平台号(JMPSC/GCPS 经过正则提取)
sku
?:
string
;
// 普通 SKU(兜底)
}
\ No newline at end of file
podProductionNo
?:
string
// 生产单号(PSCD 开头)
jomallCustomNo
?:
string
// 一件定制号(16 位数字 或 S- 开头)
jomallPsdCustomNo
?:
string
// 满印定制号(JMSC/GCSC 开头)
podJomallNo
?:
string
// POD 平台号(JMPSC/GCPS 经过正则提取)
sku
?:
string
// 普通 SKU(兜底)
}
src/views/logistics/components/LogisticsWaySelect.tsx
View file @
580073d4
This diff is collapsed.
Click to expand it.
src/views/logistics/logisticsMethod.vue
View file @
580073d4
...
...
@@ -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
,
...
...
@@ -83,7 +84,7 @@ import {
getUniuniList
,
getTiktokCarrier
,
}
from
'@/api/logistics'
import
type
{
FormItemRule
}
from
'element-plus'
import
{
WarehouseListData
}
from
'@/types/api/podUsOrder'
import
{
ISeachFormConfig
}
from
'@/types/searchType'
import
{
TableColumn
}
from
'@/components/VxeTable'
...
...
@@ -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
,
})
...
...
@@ -182,6 +185,45 @@ const platformList = ref([])
const
ruleNameList
=
ref
([])
const
uniuniList
=
ref
([])
const
logisticsCompanyList
=
ref
([])
watch
(
()
=>
JSON
.
parse
(
JSON
.
stringify
(
editForm
.
value
.
platformList
)),
(
newValue
,
oldValue
)
=>
{
if
(
oldValue
.
length
&&
newValue
.
length
)
{
// 遍历旧值数组
oldValue
.
forEach
(
(
oldItem
:
{
logisticsName
:
string
;
showPlatform
:
string
[]
},
index
:
number
,
)
=>
{
// 检查旧值项是否符合条件
if
(
Array
.
isArray
(
oldItem
.
showPlatform
)
&&
oldItem
.
showPlatform
.
length
===
1
&&
oldItem
.
showPlatform
[
0
]
===
'TIKTOK'
&&
oldItem
.
logisticsName
)
{
// 获取对应的新值项
const
newItem
=
newValue
[
index
]
// 检查新值项是否不再满足条件
if
(
newItem
&&
(
!
Array
.
isArray
(
newItem
.
showPlatform
)
||
newItem
.
showPlatform
.
length
===
0
||
!
newItem
.
showPlatform
.
includes
(
'TIKTOK'
)
||
newItem
.
showPlatform
.
length
>
1
)
)
{
// 清除 logisticsName
editForm
.
value
.
platformList
[
index
].
logisticsName
=
''
}
}
},
)
}
},
{
deep
:
true
},
)
const
formConfig
=
computed
<
IFormConfig
[]
>
(()
=>
[
{
title
:
'物流基础信息'
},
{
...
...
@@ -370,9 +412,7 @@ const formConfig = computed<IFormConfig[]>(() => [
{
title
:
'平台物流名称'
,
fixed
:
'last'
,
render
:
(
item
,
formData
)
=>
{
console
.
log
(
283
,
item
,
formData
)
render
:
(
_
,
formData
)
=>
{
return
(
formData
?.
platformList
as
platformObj
[])?.
map
(
(
item
:
platformObj
,
index
:
number
)
=>
(
<
div
style
=
"display: flex; width:100%"
>
...
...
@@ -415,21 +455,21 @@ const formConfig = computed<IFormConfig[]>(() => [
required
:
true
,
message
:
'请输入物流名称'
,
trigger
:
'blur'
,
validator
:
(
_
:
FormItemRule
,
value
:
string
,
callback
:
(
error
?:
string
)
=>
void
,
)
=>
{
if
(
value
)
callback
()
},
},
]}
>
<
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
>
<
LogisticsWaySelect
v
-
model
=
{
item
.
logisticsName
as
string
|
number
}
isRadio
=
{
true
}
companyList
=
{
tiktokCarriers
.
value
as
ICompanyList
[]}
><
/LogisticsWaySelect
>
<
/el-form-item
>
)
:
(
<
el
-
form
-
item
...
...
@@ -466,7 +506,7 @@ const formConfig = computed<IFormConfig[]>(() => [
{
index
>=
1
&&
(
<
el
-
button
style
=
"margin-left: 10px"
type
=
"
primary
"
type
=
"
danger
"
onClick
=
{()
=>
deleteCol
(
index
)}
>
删除
...
...
@@ -534,7 +574,16 @@ const tableConfig = ref<TableColumn[]>([
<
/span
>
<
span
>
<
span
>
{
'物流名称:'
}
<
/span
>
<
span
class
=
"logistics-name"
>
{
el
.
logisticsName
}
<
/span
>
{
el
.
platform
===
'TIKTOK'
?
(
<
span
class
=
"logistics-name"
>
{
tiktokCarriers
.
value
?.
flatMap
((
company
)
=>
company
.
wayList
)
?.
find
((
item
)
=>
el
.
logisticsName
===
item
.
id
)?.
name
||
el
.
logisticsName
}
<
/span
>
)
:
(
<
span
class
=
"logistics-name"
>
{
el
.
logisticsName
}
<
/span
>
)}
<
/span
>
<
/div
>
)),
...
...
@@ -868,13 +917,33 @@ 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
console
.
log
(
893
,
tiktokCarriers
.
value
)
}
/**
...
...
@@ -885,7 +954,9 @@ interface LogList {
createTime
?:
string
description
?:
string
}
const
logList
=
ref
<
LogList
[]
>
([])
async
function
showLog
(
row
:
LogisticsMethod
)
{
logDialogVisible
.
value
=
true
try
{
...
...
@@ -909,9 +980,11 @@ async function showLog(row: LogisticsMethod) {
margin-bottom
:
10px
;
}
}
.user-operate-btn
{
margin-bottom
:
10px
;
}
.dialog-footer
{
text-align
:
center
;
}
...
...
src/views/order/podCN/PodDistributionOrder.vue
View file @
580073d4
...
...
@@ -72,10 +72,10 @@
</el-form-item>
<el-form-item>
<el-input
ref=
"testingInput"
ref=
"testingInput
Ref
"
v-model=
"barcode"
style=
"width: 400px"
placeholder=
"
'请输入生产单号/ 主SKU'
"
placeholder=
"
请输入生产单号/ 主SKU
"
@
keyup
.
enter=
"barcodeInput"
></el-input>
</el-form-item>
...
...
src/views/order/podCN/index.vue
View file @
580073d4
...
...
@@ -353,6 +353,22 @@
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
label=
"订单来源"
>
<ElSelect
v-model=
"searchForm.source"
placeholder=
"请选择"
clearable
:teleported=
"false"
style=
"width: 150px"
>
<ElOption
v-for=
"(item, index) in sourceList"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
></ElOption>
</ElSelect>
</ElFormItem>
</ElForm>
<template
#
reference
>
<el-button
type=
"warning"
@
click=
"searchVisible = !searchVisible"
>
...
...
@@ -1327,6 +1343,19 @@
</el-icon>
</div>
<div
class=
"order-detail-item"
>
<span
class=
"order-detail-item-label"
>
订单来源:
</span>
<span
class=
"order-detail-item-value"
>
{{
row
.
source
?
{
'jomall-erp'
:
'erp推送'
,
'third-party'
:
'第三方推送'
,
}
[
row
.
source
as
'jomall-erp'
|
'third-party'
]
:
''
}}
<
/span
>
<
/div
>
<
div
class
=
"order-detail-item"
>
<
span
class
=
"order-detail-item-label"
>
总克重
:
<
/span
>
<
span
v
-
if
=
"row.weight"
class
=
"order-detail-item-value"
>
{{
row
.
weight
}}
g
...
...
@@ -2620,6 +2649,17 @@ const exportForm = ref({
resource
:
''
,
}
)
const
sourceList
=
[
{
name
:
'erp推送'
,
id
:
'jomall-erp'
,
}
,
{
name
:
'第三方推送'
,
id
:
'third-party'
,
}
,
]
const
exportData
=
()
=>
{
exportVisible
.
value
=
true
}
...
...
src/views/order/podUs/index.vue
View file @
580073d4
<
template
>
<div
class=
"card flex-column h-100 overflow-hidden"
>
<div
class=
"header-filter-form"
>
<ElForm
class=
"search-form"
label-position=
"right"
label-width=
"70px"
:model=
"searchForm"
size=
"default"
inline
>
<ElForm
class=
"search-form"
label-position=
"right"
label-width=
"70px"
:model=
"searchForm"
size=
"default"
inline
>
<!--
<div>
-->
<ElFormItem
label=
"仓库"
>
<ElSelect
...
...
@@ -126,8 +133,8 @@
v-model=
"searchForm.customizedQuantity"
@
click
.
stop=
"(e: Event) => handleRadioGroupClick(e)"
>
<el-radio-button
label=
"single"
>
单面
</el-radio-button>
<el-radio-button
label=
"multiple"
>
多面
</el-radio-button>
<el-radio-button
label=
"single"
>
单面
</el-radio-button>
<el-radio-button
label=
"multiple"
>
多面
</el-radio-button>
</el-radio-group>
</ElFormItem>
<ElFormItem
label=
"数量"
>
...
...
@@ -322,7 +329,7 @@
style=
"width: 150px"
>
<ElOption
v-for=
"(item, index) in logisticsWayList
"
v-for=
"(item, index) in logisticsWayList"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
...
...
@@ -338,7 +345,7 @@
style=
"width: 150px"
>
<ElOption
v-for=
"(item, index) in sourceList
"
v-for=
"(item, index) in sourceList"
:key=
"index"
:value=
"item.id"
:label=
"item.name"
...
...
@@ -1508,9 +1515,10 @@
<span
class=
"order-detail-item-value"
>
{{
row
.
source
?
{
'jomall-erp'
:
'erp'
,
'third-party'
:
'第三方推送'
}
[
row
.
source
as
'jomall-erp'
|
'third-party'
]
?
{
'jomall-erp'
:
'erp推送'
,
'third-party'
:
'第三方推送'
,
}
[
row
.
source
as
'jomall-erp'
|
'third-party'
]
:
''
}}
<
/span
>
...
...
@@ -2899,7 +2907,8 @@ import {
changeToFinished
,
updateTrackingNumberAndRegister
,
countTrackRegisterApi
,
getCustomTagListApi
,
getLogisticsWayApi
,
getCustomTagListApi
,
getLogisticsWayApi
,
}
from
'@/api/podUsOrder'
import
{
BaseRespData
}
from
'@/types/api'
...
...
@@ -2971,18 +2980,18 @@ declare global {
}
const
sourceList
=
[
{
name
:
'erp推送'
,
id
:
'jomall-erp'
name
:
'erp推送'
,
id
:
'jomall-erp'
,
}
,
{
name
:
'第三方推送'
,
id
:
'third-party'
}
name
:
'第三方推送'
,
id
:
'third-party'
,
}
,
]
const
tabsNav
=
ref
<
Tab
[]
>
()
const
isAuto
=
ref
(
true
)
const
countryList
=
ref
([])
const
logisticsWayList
=
ref
<
{
name
:
string
,
id
:
number
}
[]
>
([])
const
logisticsWayList
=
ref
<
{
name
:
string
;
id
:
number
}
[]
>
([])
const
currentRow
=
ref
<
AddressInfo
>
({
receiverName
:
''
,
receiverPhone
:
''
,
...
...
@@ -6169,8 +6178,8 @@ const getTagName = (row: ProductList) => {
:
''
}
const
getLogisticsWay
=
async
()
=>
{
const
{
data
}
=
await
getLogisticsWayApi
()
const
getLogisticsWay
=
async
()
=>
{
const
{
data
}
=
await
getLogisticsWayApi
()
logisticsWayList
.
value
=
data
}
...
...
@@ -6525,15 +6534,14 @@ useRouter().beforeEach((to, from, next) => {
color
:
white
;
font
-
weight
:
bold
;
}
.
search
-
form
{
::
v
-
deep
.
el
-
radio
-
button
{
.
search
-
form
{
::
v
-
deep
.
el
-
radio
-
button
{
width
:
75
px
;
.
el
-
radio
-
button__inner
{
.
el
-
radio
-
button__inner
{
width
:
100
%
;
}
}
}
<
/style
>
<
style
lang
=
"scss"
>
.
customize
-
select
-
style
{
...
...
tsconfig.json
View file @
580073d4
...
...
@@ -6,7 +6,7 @@
"module"
:
"ESNext"
,
"lib"
:
[
"ES2020"
,
"DOM"
,
"DOM.Iterable"
],
"skipLibCheck"
:
true
,
"types"
:[],
/*
Bundler
mode
*/
"moduleResolution"
:
"bundler"
,
"allowImportingTsExtensions"
:
true
,
...
...
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