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
8bcbc948
Commit
8bcbc948
authored
Apr 08, 2026
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 查询条件修改
parent
b57023bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
47 deletions
+35
-47
src/api/factoryOrderNew.ts
+24
-5
src/types/api/order/factoryOrderNew.ts
+1
-0
src/views/order/factoryOrderNew/index.vue
+10
-42
No files found.
src/api/factoryOrderNew.ts
View file @
8bcbc948
...
@@ -14,6 +14,21 @@ import type {
...
@@ -14,6 +14,21 @@ import type {
}
from
'@/types/api/factoryOrderNew'
}
from
'@/types/api/factoryOrderNew'
import
{
ResultInfoDataItem
}
from
'@/types/api/order/common'
import
{
ResultInfoDataItem
}
from
'@/types/api/order/common'
import
type
{
OrderData
}
from
'@/types/api/podMakeOrder'
import
type
{
OrderData
}
from
'@/types/api/podMakeOrder'
function
normalizePodOrderQueryPayload
(
data
:
Record
<
string
,
unknown
>
,
):
Record
<
string
,
unknown
>
{
const
{
receiverCountry
,
...
rest
}
=
data
if
(
!
Array
.
isArray
(
receiverCountry
))
{
return
data
}
return
{
...
rest
,
...(
receiverCountry
.
length
?
{
receiverCountry
:
receiverCountry
.
join
(
','
)
}
:
{}),
}
}
export
function
getPodOrderStateGroupListApi
()
{
export
function
getPodOrderStateGroupListApi
()
{
return
axios
.
get
<
never
,
BaseRespData
<
StatusTreeNode
[]
>>
(
return
axios
.
get
<
never
,
BaseRespData
<
StatusTreeNode
[]
>>
(
'factory/podOrder/findStateGroupList'
,
'factory/podOrder/findStateGroupList'
,
...
@@ -27,10 +42,11 @@ export function getFactoryOrderNewListApi(
...
@@ -27,10 +42,11 @@ export function getFactoryOrderNewListApi(
status
?:
string
,
status
?:
string
,
subStatus
?:
number
,
subStatus
?:
number
,
)
{
)
{
const
body
=
normalizePodOrderQueryPayload
({
...
data
}
as
Record
<
string
,
unknown
>
)
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
'factory/podOrder/list_page'
,
'factory/podOrder/list_page'
,
{
{
...
data
,
...
body
,
currentPage
,
currentPage
,
pageSize
,
pageSize
,
status
,
status
,
...
@@ -55,7 +71,7 @@ export function getPodOrderAcceptedStatisticsApi(
...
@@ -55,7 +71,7 @@ export function getPodOrderAcceptedStatisticsApi(
totalCount
?:
number
totalCount
?:
number
}
>
}
>
>
(
'factory/podOrder/acceptedStatistics'
,
{
>
(
'factory/podOrder/acceptedStatistics'
,
{
...
data
,
...
normalizePodOrderQueryPayload
({
...
data
}
as
Record
<
string
,
unknown
>
)
,
currentPage
,
currentPage
,
pageSize
,
pageSize
,
status
,
status
,
...
@@ -246,9 +262,10 @@ export function getCardLayoutListApi(
...
@@ -246,9 +262,10 @@ export function getCardLayoutListApi(
currentPage
:
number
,
currentPage
:
number
,
pageSize
:
number
,
pageSize
:
number
,
)
{
)
{
const
body
=
normalizePodOrderQueryPayload
({
...
data
})
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
'factory/podOrderOperation/list_page'
,
'factory/podOrderOperation/list_page'
,
{
...
data
,
currentPage
,
pageSize
},
{
...
body
,
currentPage
,
pageSize
},
)
)
}
}
...
@@ -258,9 +275,10 @@ export function getSuspendListApi(
...
@@ -258,9 +275,10 @@ export function getSuspendListApi(
pageSize
:
number
,
pageSize
:
number
,
pauseReason
?:
number
,
pauseReason
?:
number
,
)
{
)
{
const
body
=
normalizePodOrderQueryPayload
({
...
data
}
as
Record
<
string
,
unknown
>
)
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
return
axios
.
post
<
never
,
BasePaginationData
<
FactoryOrderNewListData
>>
(
'factory/podOrderPauseControl/list_page'
,
'factory/podOrderPauseControl/list_page'
,
{
...
data
,
currentPage
,
pageSize
,
pauseReason
},
{
...
body
,
currentPage
,
pageSize
,
pauseReason
},
)
)
}
}
...
@@ -270,9 +288,10 @@ export function getSuspendStatisticsApi(
...
@@ -270,9 +288,10 @@ export function getSuspendStatisticsApi(
pageSize
:
number
,
pageSize
:
number
,
pauseReason
?:
number
,
pauseReason
?:
number
,
)
{
)
{
const
body
=
normalizePodOrderQueryPayload
({
...
data
}
as
Record
<
string
,
unknown
>
)
return
axios
.
post
<
never
,
BaseRespData
<
Record
<
string
,
number
>>>
(
return
axios
.
post
<
never
,
BaseRespData
<
Record
<
string
,
number
>>>
(
'factory/podOrderPauseControl/suspendStatistics'
,
'factory/podOrderPauseControl/suspendStatistics'
,
{
...
data
,
currentPage
,
pageSize
,
pauseReason
},
{
...
body
,
currentPage
,
pageSize
,
pauseReason
},
)
)
}
}
...
...
src/types/api/order/factoryOrderNew.ts
View file @
8bcbc948
...
@@ -34,6 +34,7 @@ export interface SearchForm {
...
@@ -34,6 +34,7 @@ export interface SearchForm {
interceptStatus
?:
boolean
interceptStatus
?:
boolean
standardDesignImage
?:
number
standardDesignImage
?:
number
productMarkList
?:
string
[]
productMarkList
?:
string
[]
operationNo
?:
string
}
}
export
interface
FactoryOrderNewListData
{
export
interface
FactoryOrderNewListData
{
...
...
src/views/order/factoryOrderNew/index.vue
View file @
8bcbc948
...
@@ -102,7 +102,10 @@
...
@@ -102,7 +102,10 @@
/>
/>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"批次号"
>
<
ElFormItem
v
-
if
=
"cardLayoutStatuses.includes(status)"
label
=
"批次号"
>
<
ElInput
<
ElInput
v
-
model
.
trim
=
"searchForm.batchArrangeNumber"
v
-
model
.
trim
=
"searchForm.batchArrangeNumber"
placeholder
=
"批次号"
placeholder
=
"批次号"
...
@@ -111,9 +114,12 @@
...
@@ -111,9 +114,12 @@
/>
/>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"操作单号"
>
<
ElFormItem
v
-
if
=
"cardLayoutStatuses.includes(status)"
label
=
"操作单号"
>
<
ElInput
<
ElInput
v
-
model
.
trim
=
"searchForm.o
rderNumber
"
v
-
model
.
trim
=
"searchForm.o
perationNo
"
placeholder
=
"操作单号"
placeholder
=
"操作单号"
clearable
clearable
style
=
"width: 140px"
style
=
"width: 140px"
...
@@ -272,7 +278,7 @@
...
@@ -272,7 +278,7 @@
style
=
"width: 150px"
style
=
"width: 150px"
>
>
<
ElOption
<
ElOption
v
-
for
=
"(item, index) in ['自
提', '快递
']"
v
-
for
=
"(item, index) in ['自
有物流', '工厂物流','自提
']"
:
key
=
"index"
:
key
=
"index"
:
value
=
"index"
:
value
=
"index"
:
label
=
"item"
:
label
=
"item"
...
@@ -298,26 +304,6 @@
...
@@ -298,26 +304,6 @@
><
/ElOption
>
><
/ElOption
>
<
/ElSelect
>
<
/ElSelect
>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
label
=
"ERP标签"
>
<
ElSelect
v
-
model
=
"searchForm.tagsIdArr"
placeholder
=
"请选择ERP标签"
clearable
filterable
multiple
collapse
-
tags
collapse
-
tags
-
tooltip
:
teleported
=
"false"
style
=
"width: 150px"
>
<
ElOption
v
-
for
=
"(item, index) in customTagList"
:
key
=
"index"
:
value
=
"item.id"
:
label
=
"item.name"
><
/ElOption
>
<
/ElSelect
>
<
/ElFormItem
>
<
ElFormItem
label
=
"订单来源"
>
<
ElFormItem
label
=
"订单来源"
>
<
ElSelect
<
ElSelect
v
-
model
=
"searchForm.source"
v
-
model
=
"searchForm.source"
...
@@ -368,23 +354,6 @@
...
@@ -368,23 +354,6 @@
><
/ElOption
>
><
/ElOption
>
<
/ElSelect
>
<
/ElSelect
>
<
/ElFormItem
>
<
/ElFormItem
>
<
ElFormItem
v
-
if
=
"status !== 'CANCELLED'"
label
=
"拦截订单"
>
<
ElSelect
v
-
model
=
"searchForm.interceptStatus"
placeholder
=
"请选择"
clearable
filterable
:
teleported
=
"false"
style
=
"width: 150px"
>
<
ElOption
v
-
for
=
"(_, index) in ['否', '是']"
:
key
=
"index"
:
value
=
"!!index"
:
label
=
"index === 0 ? '否' : '是'"
><
/ElOption
>
<
/ElSelect
>
<
/ElFormItem
>
<
ElFormItem
label
=
"规范素材"
>
<
ElFormItem
label
=
"规范素材"
>
<
ElSelect
<
ElSelect
v
-
model
=
"searchForm.standardDesignImage"
v
-
model
=
"searchForm.standardDesignImage"
...
@@ -965,7 +934,6 @@ const cardLayoutRef = ref<InstanceType<typeof CardLayout>>()
...
@@ -965,7 +934,6 @@ const cardLayoutRef = ref<InstanceType<typeof CardLayout>>()
const
{
const
{
userMarkList
,
userMarkList
,
receiverCountryList
,
receiverCountryList
,
customTagList
,
allCodelist
,
allCodelist
,
craftList
,
craftList
,
warehouseList
,
warehouseList
,
...
...
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