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
0983f604
authored
Apr 04, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
d06559bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
assets/css/scanInventory/index.scss
pages/scanInventory/index.vue
assets/css/scanInventory/index.scss
View file @
0983f604
...
...
@@ -100,6 +100,16 @@
color
:
#ffffff
;
}
}
.addRow
{
width
:
128rpx
;
height
:
60rpx
;
background
:
#197adb
;
border-radius
:
4rpx
;
font-size
:
28rpx
;
color
:
#ffffff
;
margin-top
:
24rpx
;
margin-bottom
:
24rpx
;
}
.save
{
height
:
88rpx
;
background
:
#197adb
;
...
...
pages/scanInventory/index.vue
View file @
0983f604
...
...
@@ -17,6 +17,7 @@
</view>
</view>
</view>
<view
class=
"addRow row rowCenter verCenter"
>
新增行
</view>
<view
class=
"uni-table-box"
>
<uni-table
type=
"selection"
border
stripe
emptyText=
"暂无更多数据"
@
selection-change=
"selectionChange"
>
<uni-tr>
...
...
@@ -129,11 +130,15 @@ export default {
},
submit
()
{
let
params
=
{};
let
arr
=
[];
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
;
arr
.
push
({
goods_sn
:
this
.
list
[
i
].
goods_sn
,
goods_num
:
this
.
list
[
i
].
goods_num
,
wsbxnmsn_id
:
this
.
list
[
i
].
wsbxnmsn_id
});
}
params
.
list
=
JSON
.
stringify
(
arr
);
params
.
box_sn
=
this
.
box_sn
;
this
.
request
(
API
.
submitBoxSnAndNum
,
'POST'
,
params
,
false
).
then
(
res
=>
{
if
(
res
.
err_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