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
f0f765f4
authored
Apr 04, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
扫描盘点
parent
e2e530aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
pages/scanInventory/index.vue
pages/scanInventory/index.vue
View file @
f0f765f4
...
...
@@ -110,7 +110,7 @@ export default {
});
},
identifyQrCodeNumAndSn
()
{
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
this
.
code_str
,
code_type
:
this
.
code_type
},
fals
e
).
then
(
res
=>
{
this
.
request
(
API
.
identifyQrCodeNumAndSn
,
'POST'
,
{
code_str
:
this
.
code_str
,
code_type
:
this
.
code_type
},
tru
e
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
list
.
unshift
({
goods_num
:
res
.
data
.
num
||
''
,
...
...
@@ -160,6 +160,7 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
selectedIndexs
.
length
;
i
++
)
{
this
.
list
.
splice
(
this
.
selectedIndexs
[
i
],
1
);
}
this
.
$forceUpdate
();
},
exportChange
()
{
this
.
request
(
API
.
getBoxSnAndNum
,
'POST'
,
{
box_sn
:
this
.
box_sn
,
export
:
1
},
true
).
then
(
res
=>
{
...
...
@@ -205,6 +206,22 @@ export default {
submit
()
{
let
params
=
{};
let
arr
=
[];
if
(
this
.
list
.
length
<=
0
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'请扫描或者添加行数据'
,
showCancel
:
false
});
return
false
;
}
if
(
!
this
.
box_sn
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'请输入箱号'
,
showCancel
:
false
});
return
false
;
}
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
arr
.
push
({
goods_sn
:
this
.
list
[
i
].
goods_sn
,
...
...
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