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
48f06c8d
Commit
48f06c8d
authored
Jun 26, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_pod_make_order' into 'dev'
Fix pod make order See merge request
!241
parents
44208a18
60b886bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
29 deletions
+41
-29
src/api/logistics.ts
+11
-1
src/views/logistics/sortingConfiguration.vue
+30
-28
No files found.
src/api/logistics.ts
View file @
48f06c8d
...
@@ -168,7 +168,7 @@ export function getLogisticsWayListByCompanyId(companyId: number) {
...
@@ -168,7 +168,7 @@ 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
<
never
,
BaseRespData
<
{
name
:
string
;
id
:
string
,
typeCode
:
string
,
label
:
string
}[]
>>
(
'logisticsWay/getTiktokShippingProvider'
,
'logisticsWay/getTiktokShippingProvider'
,
)
)
}
}
...
@@ -461,6 +461,9 @@ export function logisticsCompanyAllCodelist() {
...
@@ -461,6 +461,9 @@ export function logisticsCompanyAllCodelist() {
'/logisticsCompany/allCodelist'
,
'/logisticsCompany/allCodelist'
,
)
)
}
}
/**
分拣配置
*/
export
function
getsortingConfigListApi
(
export
function
getsortingConfigListApi
(
data
:
IsortingInfo
,
data
:
IsortingInfo
,
currentPage
:
number
,
currentPage
:
number
,
...
@@ -475,6 +478,13 @@ export function getsortingConfigListApi(
...
@@ -475,6 +478,13 @@ export function getsortingConfigListApi(
},
},
)
)
}
}
// 详情
export
function
getSortingConfig
(
params
:
{
id
:
number
|
string
})
{
return
axios
.
get
<
never
,
BaseRespData
<
IsortingInfo
>>
(
'logistics/sortingConfig/get'
,
{
params
},
)
}
export
function
createSortingApi
(
data
:
IsortingInfo
)
{
export
function
createSortingApi
(
data
:
IsortingInfo
)
{
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'logistics/sortingConfig/add'
,
'logistics/sortingConfig/add'
,
...
...
src/views/logistics/sortingConfiguration.vue
View file @
48f06c8d
...
@@ -3,7 +3,7 @@ import { Ilogistics, IsortingInfo } from '@/types/api/logistics'
...
@@ -3,7 +3,7 @@ import { Ilogistics, IsortingInfo } from '@/types/api/logistics'
import
{
import
{
Edit
,
Edit
,
Delete
,
Delete
,
CirclePlus
,
//
CirclePlus,
QuestionFilled
,
QuestionFilled
,
}
from
'@element-plus/icons-vue'
}
from
'@element-plus/icons-vue'
import
platformJson
from
'@/json/platform.json'
import
platformJson
from
'@/json/platform.json'
...
@@ -16,6 +16,7 @@ import {
...
@@ -16,6 +16,7 @@ import {
createSortingApi
,
createSortingApi
,
updateSortingApi
,
updateSortingApi
,
deleteSortingApi
,
deleteSortingApi
,
getSortingConfig
,
}
from
'@/api/logistics'
}
from
'@/api/logistics'
import
{
allErpCodeListApi
}
from
'@/api/podCnOrder'
import
{
allErpCodeListApi
}
from
'@/api/podCnOrder'
import
{
nextTick
,
ref
}
from
'vue'
import
{
nextTick
,
ref
}
from
'vue'
...
@@ -211,25 +212,25 @@ const handleBatchDelete = async (row: IsortingInfo | null) => {
...
@@ -211,25 +212,25 @@ const handleBatchDelete = async (row: IsortingInfo | null) => {
ElMessage
.
success
(
'删除成功'
)
ElMessage
.
success
(
'删除成功'
)
search
()
search
()
}
}
const
addLogistics
=
()
=>
{
//
const addLogistics = () => {
ElMessageBox
.
prompt
(
''
,
'物流方式'
,
{
//
ElMessageBox.prompt('', '物流方式', {
confirmButtonText
:
'确定'
,
//
confirmButtonText: '确定',
cancelButtonText
:
'取消'
,
//
cancelButtonText: '取消',
inputErrorMessage
:
'请输入物流方式'
,
//
inputErrorMessage: '请输入物流方式',
inputPlaceholder
:
'请输入物流方式'
,
//
inputPlaceholder: '请输入物流方式',
}).
then
(({
value
}:
{
value
:
string
})
=>
{
//
}).then(({ value }: { value: string }) => {
if
(
!
value
.
trim
())
{
//
if (!value.trim()) {
ElMessage
.
error
(
'物流方式不能为空'
)
//
ElMessage.error('物流方式不能为空')
return
//
return
}
//
}
if
(
form
.
value
.
serviceCode
.
includes
(
value
))
{
//
if (form.value.serviceCode.includes(value)) {
ElMessage
.
warning
(
'物流方式已存在'
)
//
ElMessage.warning('物流方式已存在')
return
//
return
}
//
}
form
.
value
.
serviceCode
.
push
(
value
)
//
form.value.serviceCode.push(value)
ElMessage
.
success
(
'添加成功'
)
//
ElMessage.success('添加成功')
})
//
})
}
//
}
const
createWarehouse
=
()
=>
{
const
createWarehouse
=
()
=>
{
createData
.
value
.
show
=
true
createData
.
value
.
show
=
true
createData
.
value
.
isEdit
=
false
createData
.
value
.
isEdit
=
false
...
@@ -244,16 +245,17 @@ const createWarehouse = () => {
...
@@ -244,16 +245,17 @@ const createWarehouse = () => {
formRef
.
value
?.
clearValidate
()
formRef
.
value
?.
clearValidate
()
})
})
}
}
const
updateSorting
=
(
item
:
IsortingInfo
)
=>
{
const
updateSorting
=
async
(
item
:
IsortingInfo
)
=>
{
if
(
!
item
)
return
createData
.
value
.
show
=
true
createData
.
value
.
show
=
true
createData
.
value
.
isEdit
=
true
createData
.
value
.
isEdit
=
true
createData
.
value
.
title
=
'修改'
createData
.
value
.
title
=
'修改'
const
res
=
await
getSortingConfig
({
id
:
item
.
id
as
number
|
string
})
if
(
res
.
code
!==
200
)
return
const
{
serviceCode
,
...
rest
}
=
res
.
data
form
.
value
=
{
form
.
value
=
{
id
:
item
.
id
,
...
rest
,
sortingFacility
:
item
.
sortingFacility
,
serviceCode
:
serviceCode
?
serviceCode
.
split
(
','
)
:
[],
sortingArea
:
item
.
sortingArea
,
sortingAreaName
:
item
.
sortingAreaName
,
serviceCode
:
item
.
serviceCode
?
item
.
serviceCode
.
split
(
','
)
:
[],
}
}
nextTick
(()
=>
{
nextTick
(()
=>
{
formRef
.
value
?.
clearValidate
()
formRef
.
value
?.
clearValidate
()
...
@@ -640,7 +642,7 @@ useEnterKeyTrigger({
...
@@ -640,7 +642,7 @@ useEnterKeyTrigger({
:value=
"item.code"
:value=
"item.code"
></el-option>
></el-option>
</el-select>
</el-select>
 
<!--
 
<el-icon
<el-icon
color="#409eff"
color="#409eff"
size="30"
size="30"
...
@@ -648,7 +650,7 @@ useEnterKeyTrigger({
...
@@ -648,7 +650,7 @@ useEnterKeyTrigger({
class="add-btn"
class="add-btn"
@click="addLogistics"
@click="addLogistics"
><CirclePlus
><CirclePlus
/></el-icon>
/></el-icon>
-->
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"平台"
v-else
prop=
"serviceCode"
>
<el-form-item
label=
"平台"
v-else
prop=
"serviceCode"
>
...
...
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