车牌号必填
This commit is contained in:
parent
1132e835c9
commit
526f0c566e
|
|
@ -92,7 +92,7 @@
|
|||
<span>{{ infoList.outNum }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>车牌号</h4>
|
||||
<h4><span style="color: red;">*</span>车牌号</h4>
|
||||
<!-- <uni-number-box v-model="multiNum" @change="multiNumChange" :min="0" :max="infoList.outNum"/> -->
|
||||
<uni-easyinput
|
||||
placeholder="请输入车牌号"
|
||||
|
|
@ -243,6 +243,14 @@
|
|||
multiOut () {
|
||||
let that = this
|
||||
let posiIntReg = /^\+?[1-9]\d*$/
|
||||
// carCode 车牌号必填
|
||||
if (!that.carCode) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请输入车牌号!'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!posiIntReg.test(that.multiNum)) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
@ -329,6 +337,13 @@
|
|||
},
|
||||
finishOut () {
|
||||
let that = this
|
||||
if (!that.carCode) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '请输入车牌号!'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (that.infoList.outNum > 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
|
|||
Loading…
Reference in New Issue