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
c0ce2d67
authored
Apr 09, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印标签入仓号第一个字符必须是大写字母
parent
452bf383
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
pages/tag/print.vue
pages/tag/print.vue
View file @
c0ce2d67
...
...
@@ -49,12 +49,10 @@
</picker>
</view>
</view>
<
template
v-for=
"(item, index) in numberList"
:key=
"index"
v-if=
"flag && index_print_type == 0"
>
<view
class=
"box row verCenter"
>
<view
class=
"label"
>
第
{{
index
+
1
}}
卡板数量
</view>
<input
type=
"number"
placeholder-style=
"font-size:24rpx;color:#404547;"
class=
"uni-input"
placeholder=
"请输入数量"
@
input=
"onInput($event, index)"
/>
</view>
</
template
>
<view
class=
"box row verCenter"
v-for=
"(item, index) in numberList"
:key=
"index"
v-if=
"flag && index_print_type == 0"
>
<view
class=
"label"
>
第{{ index + 1 }}卡板数量
</view>
<input
type=
"number"
placeholder-style=
"font-size:24rpx;color:#404547;"
class=
"uni-input"
placeholder=
"请输入数量"
@
input=
"onInput($event, index)"
/>
</view>
</view>
<view
class=
"btn row rowCenter verCenter"
@
click=
"submit()"
>
提交打印
</view>
</view>
...
...
@@ -268,6 +266,16 @@
return
false
;
}
// 判断第一个字符是否为大写字母
var
firstChar
=
this
.
form
.
erp_order_sn
.
charAt
(
0
);
if
(
!
/
[
A-Z
]
/
.
test
(
firstChar
))
{
uni
.
showToast
({
title
:
'入仓号第一个字符必须是大写字母'
,
icon
:
'none'
});
return
false
;
}
if
(
!
this
.
form
.
label_num
)
{
uni
.
showModal
({
title
:
'提示'
,
...
...
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