Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 28b0a08b
authored
Sep 04, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加批次功能
1 parent
34a0f2c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
src/views/batchesResult/batchesResult.vue
src/views/batchesResult/batchesResult.vue
View file @
28b0a08
...
...
@@ -31,10 +31,13 @@
<a-time-picker
format=
"HH:mm:ss"
valueFormat=
"HH:mm:ss"
v-model:value=
"queryForm.endTime"
style=
"width: 140px"
/>
</a-form-item>
<a-form-item
label=
"批次人数:"
style=
"padding: 5px 0"
>
<a-input-number
v-model:value=
"queryForm.minNum"
:min=
"0"
:max=
"100000000"
style=
"width: 140px"
/>
<span
style=
"padding: 0 4px"
>
至
</span>
<a-input-number
v-model:value=
"queryForm.maxNum"
:min=
"queryForm.maxNum||0"
:max=
"100000000"
style=
"width: 140px"
/>
</a-form-item>
<a-input-number
v-model:value=
"queryForm.minNum"
:min=
"0"
:max=
"100000000"
style=
"width: 140px"
/>
<span
style=
"padding: 0 4px"
>
至
</span>
<a-input-number
v-model:value=
"queryForm.maxNum"
:min=
"queryForm.maxNum||0"
:max=
"100000000"
style=
"width: 140px"
/>
</a-form-item>
<a-form-item
label=
"批次ID:"
style=
"padding: 5px 0"
>
<a-input
v-model:value=
"queryForm.batchId"
style=
"width: 240px"
/>
</a-form-item>
<a-form-item
style=
"padding: 5px 0"
>
<a-button
type=
"primary"
@
click=
"clickSearch"
:loading=
"isLoading"
>
查询
</a-button>
</a-form-item>
...
...
@@ -128,6 +131,7 @@
endTime
:
'23:59:59'
,
minNum
:
0
,
maxNum
:
100000
,
batchId
:
''
,
})
const
searchCondition
=
ref
({})
if
(
window
.
localStorage
.
getItem
(
'searchCondition'
))
{
...
...
@@ -137,6 +141,7 @@
queryForm
.
minNum
=
searchCondition
.
value
.
minNum
||
0
;
queryForm
.
maxNum
=
searchCondition
.
value
.
maxNum
||
100000
;
queryForm
.
date
=
searchCondition
.
value
.
date
;
queryForm
.
batchId
=
searchCondition
.
value
.
batchId
||
''
}
const
onPageNumChange
=
function
(
num
)
{
pageNum
.
value
=
num
...
...
@@ -255,6 +260,7 @@
const
confirmSearch
=
function
()
{
isLoading
.
value
=
true
const
rawData
=
toRaw
(
queryForm
)
// 用于请求接口,查询条件
const
data
=
filterEmptyValueInObject
({
mallId
:
rawData
.
plaza_id
,
zoneId
:
rawData
.
zone_id
.
toString
(),
...
...
@@ -265,7 +271,9 @@
maxNum
:
rawData
.
maxNum
,
pageNum
:
pageNum
.
value
,
pageSize
:
pageSize
.
value
,
batchId
:
rawData
.
batchId
,
})
// 用于localStorage存储
const
storageData
=
filterEmptyValueInObject
({
account_id
:
rawData
.
account_id
,
plaza_id
:
[
rawData
.
plaza_id
],
...
...
@@ -275,6 +283,7 @@
maxNum
:
rawData
.
maxNum
,
startTime
:
rawData
.
startTime
,
endTime
:
rawData
.
endTime
,
batchId
:
rawData
.
batchId
,
})
let
searchCondition
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'searchCondition'
));
let
newSearchCondition
=
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment