Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vanke
h5
Commits
4ceba86b
Commit
4ceba86b
authored
Jul 02, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存统计,领用记录,库存统计,领用详情
parent
40355709
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
inventory.vue
src/views/Admin/inventory.vue
+4
-1
receiveAdmin.vue
src/views/Admin/receiveAdmin.vue
+4
-1
No files found.
src/views/Admin/inventory.vue
View file @
4ceba86b
...
@@ -127,11 +127,14 @@ export default {
...
@@ -127,11 +127,14 @@ export default {
// 数据
// 数据
getHomeData
()
{
getHomeData
()
{
const
d
=
new
Date
()
const
d
=
new
Date
()
const
queryTime
=
d
.
getFullYear
()
+
'-'
+
(
d
.
getMonth
()
+
1
)
+
'-'
+
d
.
getDate
(
)
const
queryTime
=
d
.
getFullYear
()
+
'-'
+
this
.
completion
((
d
.
getMonth
()
+
1
))
+
'-'
+
this
.
completion
(
d
.
getDate
()
)
getHomeData
({
queryTime
:
queryTime
}).
then
(
res
=>
{
getHomeData
({
queryTime
:
queryTime
}).
then
(
res
=>
{
this
.
homeData
=
res
.
data
this
.
homeData
=
res
.
data
})
})
},
},
completion
(
s
)
{
return
s
<
10
?
'0'
+
s
:
s
},
// 类别
// 类别
getCategoryList
()
{
getCategoryList
()
{
getCategoryList
().
then
(
res
=>
{
getCategoryList
().
then
(
res
=>
{
...
...
src/views/Admin/receiveAdmin.vue
View file @
4ceba86b
...
@@ -155,13 +155,16 @@ export default {
...
@@ -155,13 +155,16 @@ export default {
// 日期
// 日期
confirmDate
(
data
)
{
confirmDate
(
data
)
{
const
d
=
new
Date
(
data
)
const
d
=
new
Date
(
data
)
this
.
params
.
queryTime
=
d
.
getFullYear
()
+
'-'
+
(
d
.
getMonth
()
+
1
)
+
'-'
+
d
.
getDate
(
)
this
.
params
.
queryTime
=
d
.
getFullYear
()
+
'-'
+
this
.
completion
((
d
.
getMonth
()
+
1
))
+
'-'
+
this
.
completion
(
d
.
getDate
()
)
this
.
timeTitle
=
this
.
params
.
queryTime
this
.
timeTitle
=
this
.
params
.
queryTime
this
.
$refs
.
myPicker
.
toggle
()
this
.
$refs
.
myPicker
.
toggle
()
this
.
list
=
[]
this
.
list
=
[]
this
.
params
.
pageNum
=
1
this
.
params
.
pageNum
=
1
this
.
getList
()
this
.
getList
()
},
},
completion
(
s
)
{
return
s
<
10
?
'0'
+
s
:
s
},
// 全部记录
// 全部记录
queryAll
()
{
queryAll
()
{
this
.
params
.
queryTime
=
null
this
.
params
.
queryTime
=
null
...
...
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