Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f7defc13
authored
Nov 19, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
b275189b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
pages/putaway/record.vue
pages/putaway/record.vue
View file @
f7defc13
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view
class=
"search-params row verCenter"
>
<view
class=
"search-params row verCenter"
>
<view
class=
"sn row rowCenter verCenter"
style=
"width: 100%;"
>
<view
class=
"sn row rowCenter verCenter"
style=
"width: 100%;"
>
<view
class=
"select-box row"
style=
"width: 100%;"
>
<view
class=
"select-box row"
style=
"width: 100%;"
>
<uni-datetime-picker
v-model=
"s
earchParams.s
tock_shelf_time"
type=
"daterange"
rangeSeparator=
"~"
:clear-icon=
"true"
@
change=
"changeDate"
start-placeholder=
"上架开始时间"
end-placeholder=
"上架结束时间"
:border=
"false"
/>
<uni-datetime-picker
v-model=
"stock_shelf_time"
type=
"daterange"
rangeSeparator=
"~"
:clear-icon=
"true"
@
change=
"changeDate"
start-placeholder=
"上架开始时间"
end-placeholder=
"上架结束时间"
:border=
"false"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -278,8 +278,9 @@
...
@@ -278,8 +278,9 @@
detail
:
{},
detail
:
{},
hasMoreData
:
true
,
//是否分页加载
hasMoreData
:
true
,
//是否分页加载
total
:
0
,
total
:
0
,
stock_shelf_time
:
[
start
,
end
],
searchParams
:
{
searchParams
:
{
stock_shelf_time
:
[
start
,
end
],
//上架时间
stock_shelf_time
:
this
.
formatDate
(
start
)
+
' ~ '
+
this
.
formatDate
(
end
),
stock_in_type
:
''
,
stock_in_type
:
''
,
search_type
:
1
,
search_type
:
1
,
search_keyword
:
''
,
search_keyword
:
''
,
...
@@ -327,6 +328,17 @@
...
@@ -327,6 +328,17 @@
this
.
index
=
e
.
detail
.
value
;
this
.
index
=
e
.
detail
.
value
;
this
.
searchParams
.
search_type
=
parseInt
(
this
.
index
)
+
1
;
this
.
searchParams
.
search_type
=
parseInt
(
this
.
index
)
+
1
;
},
},
/**
* 格式化日期
* @param {Object} date
*/
formatDate
(
date
)
{
const
d
=
new
Date
(
date
);
const
year
=
d
.
getFullYear
();
const
month
=
String
(
d
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
);
const
day
=
String
(
d
.
getDate
()).
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
`
;
},
showDrawer
(
id
)
{
showDrawer
(
id
)
{
this
.
onShelfRecordInfo
(
id
);
this
.
onShelfRecordInfo
(
id
);
},
},
...
@@ -397,6 +409,7 @@
...
@@ -397,6 +409,7 @@
* 获取列表数据
* 获取列表数据
*/
*/
getData
()
{
getData
()
{
console
.
log
(
this
.
searchParams
.
stock_shelf_time
)
this
.
request
(
API
.
onShelfRecordList
,
'GET'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
this
.
request
(
API
.
onShelfRecordList
,
'GET'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
total
>
0
)
{
if
(
res
.
data
.
total
>
0
)
{
...
...
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