Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
d06559bf
authored
Apr 04, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
9394c104
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
pages/scanInventory/index.vue
pages/scanInventory/index.vue
View file @
d06559bf
...
...
@@ -45,9 +45,9 @@
</
template
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
export
default
{
export
default
{
data
()
{
return
{
box_sn
:
''
,
...
...
@@ -126,13 +126,35 @@
for
(
let
i
=
0
;
i
<
this
.
selectedIndexs
.
length
;
i
++
)
{
this
.
list
.
splice
(
this
.
selectedIndexs
[
i
],
1
);
}
},
submit
()
{}
submit
()
{
let
params
=
{};
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
params
[
'goods_sn['
+
i
+
']'
]
=
this
.
list
[
i
].
goods_sn
;
params
[
'goods_num['
+
i
+
']'
]
=
this
.
list
[
i
].
goods_num
;
params
[
'wsbxnmsn_id['
+
i
+
']'
]
=
this
.
list
[
i
].
wsbxnmsn_id
;
}
};
params
.
box_sn
=
this
.
box_sn
;
this
.
request
(
API
.
submitBoxSnAndNum
,
'POST'
,
params
,
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'保存成功'
,
showCancel
:
false
});
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
err_msg
,
showCancel
:
false
});
}
});
}
}
};
</
script
>
<
style
lang=
"scss"
>
@import
'../../assets/css/scanInventory/index.scss'
;
@import
'../../assets/css/scanInventory/index.scss'
;
</
style
>
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