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
726934e8
authored
Sep 25, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
盘点
parent
d9e7b1c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
pages/stocktake/operate.vue
pages/stocktake/operate.vue
View file @
726934e8
...
...
@@ -273,7 +273,7 @@
</view>
<view
class=
"form-input"
>
<view
class=
"input-title"
><text
class=
"input-title-t2"
>
目标打印机:
</text></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入"
v-model=
"formParams.ip"
/></view>
<view
class=
"input-box"
><input
type=
"text"
class=
"uni-input"
placeholder-style=
"color:#919399"
placeholder=
"请输入
目标打印机IP (比如:192.168.2.1)
"
v-model=
"formParams.ip"
/></view>
</view>
<view
class=
"form-input"
>
<view
class=
"input-title"
>
...
...
@@ -397,9 +397,18 @@ export default {
});
return
false
;
}
var
filteredList
=
this
.
list
.
filter
(
item
=>
this
.
filter_id
.
includes
(
item
.
stocktake_items_id
));
console
.
log
(
filteredList
);
if
(
this
.
filter_id
.
length
>
1
)
{
//如果勾选的是多个,则显示两个单选项:按库存数量、按盘点数据
this
.
formParams
.
label_num
=
this
.
filter_id
.
length
;
}
else
{
//若勾选的是单个,则显示输入框,默认带入库存数量。
this
.
formParams
.
label_num
=
filteredList
[
0
].
stock_qty
;
}
this
.
formParams
.
stocktake_id
=
this
.
searchParams
.
stocktake_id
;
//盘点单id
this
.
formParams
.
stocktake_items_ids
=
filteredList
.
map
(
item
=>
item
.
stocktake_items_id
).
join
(
','
);
//任务id 多个英文逗号隔开
this
.
$refs
.
showRightPrintLabel
.
open
();
}
},
...
...
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