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
42c55000
authored
Dec 18, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印优化
parent
be37c05c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
pages/tag/print.vue
pages/tallyGoods/exception.vue
pages/tag/print.vue
View file @
42c55000
...
...
@@ -116,6 +116,16 @@
//从理货确认页面过来的
if
(
this
.
from
==
'tallyGoods'
)
{
//一直保持连接
this
.
form
.
erp_order_sn
=
this
.
printParams
.
erp_order_sn
;
//赋值入仓号
//检查是否存在 "-"
if
(
this
.
form
.
erp_order_sn
.
includes
(
'-'
))
{
//分割字符串
var
parts
=
this
.
form
.
erp_order_sn
.
split
(
'-'
);
var
firstPart
=
parts
[
0
];
var
secondPart
=
parts
[
1
];
this
.
form
.
erp_order_sn
=
firstPart
;
//赋值切割后的入仓号
this
.
form
.
batch
=
findIndexOrZero
(
this
.
numberArr
,
Number
(
secondPart
));
//匹配批次号就选中,否则就是默认0
}
}
else
{
//停止搜索,节省系统资源
uni
.
stopBluetoothDevicesDiscovery
({
...
...
@@ -135,7 +145,6 @@
//如果【理货确认-板/箱 均不为0】,则【打印标签】打印类型只继承入仓号,打印类型默认为【散箱】标签数量1 批次为0(保持原默认值)
if
(
this
.
printParams
.
box_num
&&
this
.
printParams
.
board_num
)
{
this
.
index_print_type
=
0
;
this
.
form
.
erp_order_sn
=
this
.
printParams
.
erp_order_sn
;
this
.
form
.
label_num
=
this
.
printParams
.
box_num
;
this
.
numberIndex
=
findIndexOrZero
(
this
.
numberArr
,
Number
(
this
.
printParams
.
board_num
));
//匹配到卡板数就选中,否则就是默认0
return
false
;
...
...
@@ -145,13 +154,11 @@
if
(
this
.
printParams
.
box_num
)
{
this
.
index_print_type
=
1
;
this
.
form
.
label_num
=
this
.
printParams
.
box_num
;
this
.
form
.
erp_order_sn
=
this
.
printParams
.
erp_order_sn
;
}
//如果【理货确认-板】有数值,则【打印标签】打印类型为【卡板】并继承卡板数
if
(
this
.
printParams
.
board_num
)
{
this
.
index_print_type
=
0
;
this
.
form
.
erp_order_sn
=
this
.
printParams
.
erp_order_sn
;
this
.
numberIndex
=
findIndexOrZero
(
this
.
numberArr
,
Number
(
this
.
printParams
.
board_num
));
//匹配到卡板数就选中,否则就是默认0
}
...
...
pages/tallyGoods/exception.vue
View file @
42c55000
...
...
@@ -143,6 +143,7 @@
this
.
searchParams
.
ask_customer_sw_confirm_time
=
''
;
this
.
searchParams
.
store_execute_time
=
this
.
date_format
;
}
this
.
getAskNum
();
this
.
getData
();
},
/**
...
...
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