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
b389981e
Commit
b389981e
authored
Jul 10, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 物流分拣规则改造,支持平台+物流公司条件 #1010010
parent
d4726efb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
20 deletions
+66
-20
src/api/logistics.ts
+39
-16
src/types/api/logistics.ts
+27
-4
src/views/logistics/components/CreateSortingRuleDialog.vue
+0
-0
src/views/logistics/sortingConfiguration.vue
+0
-0
No files found.
src/api/logistics.ts
View file @
b389981e
...
@@ -11,7 +11,11 @@ import { AddDeclarationRuleObj } from '@/views/logistics/types/declarationRule'
...
@@ -11,7 +11,11 @@ import { AddDeclarationRuleObj } from '@/views/logistics/types/declarationRule'
import
{
LogisticsQuotation
}
from
'@/views/logistics/types/logisticsQuotation'
import
{
LogisticsQuotation
}
from
'@/views/logistics/types/logisticsQuotation'
import
{
LogisticsPartitionObj
}
from
'@/views/logistics/types/logisticsPartition'
import
{
LogisticsPartitionObj
}
from
'@/views/logistics/types/logisticsPartition'
import
{
ShippingAddressObj
}
from
'@/views/logistics/types/shippingAddress'
import
{
ShippingAddressObj
}
from
'@/views/logistics/types/shippingAddress'
import
{
IsortingInfo
}
from
'@/types/api/logistics'
import
{
IsortingInfo
,
SortingPortAreaItem
,
SortingPortOptionItem
,
}
from
'@/types/api/logistics'
export
interface
ILogisticsList
{
export
interface
ILogisticsList
{
code
:
string
code
:
string
basicsName
:
string
basicsName
:
string
...
@@ -168,9 +172,12 @@ export function getLogisticsWayListByCompanyId(companyId: number) {
...
@@ -168,9 +172,12 @@ export function getLogisticsWayListByCompanyId(companyId: number) {
}
}
// 获取tictok物流承运商
// 获取tictok物流承运商
export
function
getTiktokCarrier
()
{
export
function
getTiktokCarrier
()
{
return
axios
.
get
<
never
,
BaseRespData
<
{
name
:
string
;
id
:
string
,
typeCode
:
string
,
label
:
string
}[]
>>
(
return
axios
.
get
<
'logisticsWay/getTiktokShippingProvider'
,
never
,
)
BaseRespData
<
{
name
:
string
;
id
:
string
;
typeCode
:
string
;
label
:
string
}[]
>
>
(
'logisticsWay/getTiktokShippingProvider'
)
}
}
/**
/**
...
@@ -461,16 +468,14 @@ export function logisticsCompanyAllCodelist() {
...
@@ -461,16 +468,14 @@ export function logisticsCompanyAllCodelist() {
'/logisticsCompany/allCodelist'
,
'/logisticsCompany/allCodelist'
,
)
)
}
}
/**
// 物流 分拣配置
分拣配置
*/
export
function
getsortingConfigListApi
(
export
function
getsortingConfigListApi
(
data
:
IsortingInfo
,
data
:
IsortingInfo
,
currentPage
:
number
,
currentPage
:
number
,
pageSize
:
number
,
pageSize
:
number
,
)
{
)
{
return
axios
.
post
<
never
,
BasePaginationData
<
IsortingInfo
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
IsortingInfo
>>
(
'logistics
/sortingC
onfig/list_page'
,
'logistics
-sort-port-c
onfig/list_page'
,
{
{
...
data
,
...
data
,
currentPage
,
currentPage
,
...
@@ -481,34 +486,52 @@ export function getsortingConfigListApi(
...
@@ -481,34 +486,52 @@ export function getsortingConfigListApi(
// 详情
// 详情
export
function
getSortingConfig
(
params
:
{
id
:
number
|
string
})
{
export
function
getSortingConfig
(
params
:
{
id
:
number
|
string
})
{
return
axios
.
get
<
never
,
BaseRespData
<
IsortingInfo
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
IsortingInfo
>>
(
'logistics
/sortingC
onfig/get'
,
'logistics
-sort-port-c
onfig/get'
,
{
params
},
{
params
},
)
)
}
}
export
function
createSortingApi
(
data
:
IsortingInfo
)
{
export
function
createSortingApi
(
data
:
IsortingInfo
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'logistics
/sortingC
onfig/add'
,
'logistics
-sort-port-c
onfig/add'
,
data
,
data
,
)
)
}
}
export
function
updateSortingApi
(
data
:
IsortingInfo
)
{
export
function
updateSortingApi
(
data
:
IsortingInfo
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'logistics
/sortingC
onfig/update'
,
'logistics
-sort-port-c
onfig/update'
,
data
,
data
,
)
)
}
}
export
function
deleteSortingApi
(
params
:
{
export
function
deleteSortingApi
(
params
:
{
id
:
number
})
{
ids
:
string
type
:
string
|
number
})
{
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
never
>>
(
'logistics
/sortingC
onfig/delete'
,
'logistics
-sort-port-c
onfig/delete'
,
{
{
params
,
params
,
},
},
)
)
}
}
// 分拣配置 查询可用分拣口
export
function
getSortingPortAreaListApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
SortingPortAreaItem
[]
>>
(
'logistics-sort-port-config/area-list'
,
)
}
// 分拣口规则 条件类型
export
function
getSortPortConditionTypeListApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
SortingPortOptionItem
[]
>>
(
'logistics-sort-port-config/condition-type'
,
)
}
// 分拣口规则 操作符
export
function
getSortPortOperatorListApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
SortingPortOptionItem
[]
>>
(
'logistics-sort-port-config/operator-list'
,
)
}
// 物流跟踪 获取菜单树
// 物流跟踪 获取菜单树
export
function
logisticStatusList
()
{
export
function
logisticStatusList
()
{
return
axios
.
get
<
never
,
BaseRespData
<
LogisticsTrackingTree
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
LogisticsTrackingTree
[]
>>
(
...
...
src/types/api/logistics.ts
View file @
b389981e
...
@@ -15,11 +15,34 @@ export interface Ilogistics {
...
@@ -15,11 +15,34 @@ export interface Ilogistics {
createTime
?:
string
createTime
?:
string
updateTime
?:
string
|
null
updateTime
?:
string
|
null
}
}
export
interface
SortingPortCondition
{
id
?:
number
ruleId
?:
number
conditionType
:
string
operator
:
string
conditionValue
?:
string
|
number
|
string
[]
}
export
interface
IsortingInfo
{
export
interface
IsortingInfo
{
id
?:
number
id
?:
number
sorting
Facility
?:
string
|
null
sorting
Remark
?:
string
sortingArea
:
number
|
null
sortingArea
?
:
number
|
null
sortingAreaName
?:
string
|
null
sortingAreaName
?:
string
|
null
serviceCode
:
string
|
null
matchType
?:
1
|
2
type
?:
string
|
number
sortNo
?:
number
conditions
?:
SortingPortCondition
[]
conditionsText
?:
string
}
export
interface
SortingPortAreaItem
{
code
:
number
desc
:
string
used
:
boolean
}
export
interface
SortingPortOptionItem
{
desc
:
string
code
:
string
used
?:
boolean
}
}
src/views/logistics/components/CreateSortingRuleDialog.vue
0 → 100644
View file @
b389981e
This diff is collapsed.
Click to expand it.
src/views/logistics/sortingConfiguration.vue
View file @
b389981e
This diff is collapsed.
Click to expand it.
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