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
71aa133b
authored
Jun 27, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
ee24350a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
pages/container/index.vue
pages/container/index.vue
View file @
71aa133b
...
...
@@ -222,6 +222,10 @@ export default {
this
.
getData
();
},
methods
:
{
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
/**
* 日期
*/
...
...
@@ -251,6 +255,11 @@ export default {
// 连接两个格式化后的日期,用 '~' 分隔
return
`
${
formatDate
(
oneMonthAgoDate
)}
~
${
formatDate
(
currentDate
)}
`
;
},
/**
* 时间切换
* @param {Object} e
* @param {Object} type
*/
radioChange
(
e
,
type
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
...
...
@@ -262,10 +271,6 @@ export default {
}
this
.
getData
();
},
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
/**
* 导出
*/
...
...
@@ -365,8 +370,11 @@ export default {
}
this
.
getData
();
},
500
),
/**
* 打开弹窗
* @param {Object} data
*/
showDrawer
(
data
)
{
this
.
$refs
.
showRight
.
open
();
this
.
detail
=
data
;
this
.
foramParams
.
id
=
data
.
id
;
this
.
foramParams
.
container_name
=
data
.
container_name
;
...
...
@@ -376,7 +384,11 @@ export default {
this
.
foramParams
.
actual_weight
=
data
.
actual_weight
;
this
.
foramParams
.
rough_weight
=
data
.
rough_weight
;
this
.
foramParams
.
remark
=
data
.
remark
;
this
.
$refs
.
showRight
.
open
();
},
/**
* 关闭弹窗
*/
closeDrawer
()
{
this
.
$refs
.
showRight
.
close
();
},
...
...
@@ -386,7 +398,7 @@ export default {
getData
()
{
this
.
request
(
API
.
getContainerList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
.
total
>
0
)
{
if
(
res
.
data
.
list
.
length
>
0
)
{
this
.
hasMoreData
=
true
;
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
this
.
filter_list
=
createArray
(
this
.
list
.
length
,
false
);
...
...
@@ -401,6 +413,9 @@ export default {
}
});
},
/**
* 更新
*/
update
()
{
this
.
request
(
API
.
containerUpdate
,
'POST'
,
this
.
foramParams
,
true
).
then
(
res
=>
{
if
(
res
.
code
===
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