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
0547db2c
authored
May 24, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ho
parent
1fc371ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
25 deletions
pages/tag/print.vue
pages/tag/print.vue
View file @
0547db2c
...
...
@@ -16,12 +16,12 @@
</view>
</navigator>
<view
class=
"print-form"
>
<
!-- <
view class="box row verCenter">
<view
class=
"box row verCenter"
>
<view
class=
"label"
>
订单类型
</view>
<view
class=
"tab row verCenter"
>
<view
class=
"tab-pane row rowCenter verCenter"
v-for=
"(item, index) in items_erp_order_sn_pre"
:key=
"index"
:class=
"{ curr: index_erp_order_sn_pre == index }"
@
click=
"change(index, 'erp_order_sn_pre')"
>
{{ item }}
</view>
</view>
</view>
-->
</view>
<view
class=
"box row verCenter"
>
<view
class=
"label"
>
打印类型
</view>
<view
class=
"tab row verCenter"
>
...
...
@@ -29,11 +29,8 @@
</view>
</view>
<view
class=
"box row verCenter"
>
<view
class=
"row verCenter"
style=
"flex:0 0 93%"
>
<view
class=
"label"
>
入仓号
</view>
<input
type=
"text"
v-model=
"form.erp_order_sn_number"
placeholder-style=
"font-size:24rpx;color:#404547;"
class=
"uni-input"
placeholder=
"请输入"
/>
</view>
<text
class=
"scan iconfont icon-juxing6"
@
click=
"scanChange()"
></text>
<input
type=
"number"
v-model=
"form.erp_order_sn_number"
placeholder-style=
"font-size:24rpx;color:#404547;"
class=
"uni-input"
placeholder=
"请输入"
/>
</view>
<view
class=
"box row verCenter"
>
<view
class=
"label"
>
{{ text }}
</view>
...
...
@@ -71,9 +68,11 @@ export default {
platform
:
''
,
wstyptll_id
:
''
,
form
:
{
print_type
:
1
,
//打印类型
erp_order_sn_number
:
''
,
//入仓号
label_num
:
'1'
//总箱数
erp_order_sn_pre
:
''
,
print_type
:
1
,
erp_order_sn_number
:
''
,
label_num
:
'1'
,
tray_remark
:
''
}
};
},
...
...
@@ -123,18 +122,17 @@ export default {
}
},
methods
:
{
scanChange
()
{
uni
.
scanCode
({
success
:
res
=>
{
if
(
res
.
errMsg
==
'scanCode:ok'
)
{
this
.
form
.
erp_order_sn_number
=
res
.
result
;
getTraySelectOption
()
{
this
.
request
(
API
.
getTraySelectOption
,
'POST'
,
{},
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
traySelectOption
=
res
.
data
;
let
token
=
uni
.
getStorageSync
(
'token'
);
let
tray_sn_index
=
uni
.
getStorageSync
(
'tray_sn_index'
);
let
tray_sn_value
=
uni
.
getStorageSync
(
'tray_sn_value'
);
if
(
token
)
{
this
.
index
=
tray_sn_index
;
this
.
form
.
tray_remark
=
tray_sn_value
;
}
},
fail
:
function
(
res
)
{
uni
.
showToast
({
title
:
'扫码失败'
,
icon
:
'error'
});
}
});
},
...
...
@@ -163,13 +161,13 @@ export default {
});
return
false
;
}
/*
if (!this.form.erp_order_sn_pre) {
if
(
!
this
.
form
.
erp_order_sn_pre
)
{
uni
.
showToast
({
icon
:
'error'
,
title
:
'请选择订单类型'
});
return
false
;
}
*/
}
if
(
!
this
.
form
.
erp_order_sn_number
)
{
uni
.
showToast
({
icon
:
'error'
,
...
...
@@ -239,9 +237,6 @@ export default {
data
.
push
(
'T 8 0 10 180 时间:'
+
this
.
printLabelData
[
this
.
print_number
].
create_time_cn
+
'\r\n'
);
data
.
push
(
'T 8 0 10 220 仓库代码:'
+
this
.
printLabelData
[
this
.
print_number
].
warehouse_code
+
'\r\n'
);
data
.
push
(
'T 8 0 10 260 流水号:'
+
this
.
printLabelData
[
this
.
print_number
].
wstyptll_id_sn
+
'\r\n'
);
data
.
push
(
'SETMAG 4 1'
);
data
.
push
(
'T 8 0 350 30 #1'
);
data
.
push
(
'SETMAG 0 0'
);
data
.
push
(
'B QR 280 110 M 2 U 8\r\n'
);
data
.
push
(
'MA,'
+
this
.
printLabelData
[
this
.
print_number
][
'box_code'
]
+
'|\r\n'
);
data
.
push
(
'ENDQR\r\n'
);
...
...
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