Commit c0ce2d67 by LJM

打印标签入仓号第一个字符必须是大写字母

parent 452bf383
Showing with 11 additions and 3 deletions
......@@ -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="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>
</template>
</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: '提示',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment