中小
xiaozhiyong 4 months ago
parent 96ed774959
commit 99fb078b91
  1. 42
      BagStation/pages/components/price-select-tab.vue

@ -73,7 +73,7 @@
</view> </view>
</view> </view>
<view class=""> <view class="">
{{plateNumber?plateNumber:(plateNumberSel?plateNumberSel:'非必填')}} {{plateNumber?plateNumber:(plateNumberSel?plateNumberSel:'输入车牌号')}}
</view> </view>
</view> </view>
</view> </view>
@ -294,7 +294,7 @@
<view class="cu-modal bottom-modal " :class="showPlate"> <view class="cu-modal bottom-modal " :class="showPlate">
<view class="cu-dialog bg-white"> <view class="cu-dialog bg-white">
<view class="cu-bar bg-white justify-end"> <view class="cu-bar bg-white justify-end">
<view class="content">车牌号非必填</view> <!-- <view class="content">车牌号非必填</view> -->
<view class="action" @tap="showPlate=''"> <view class="action" @tap="showPlate=''">
<text class="cuIcon-close text-blues"></text> <text class="cuIcon-close text-blues"></text>
</view> </view>
@ -673,14 +673,15 @@
checkInfo() { checkInfo() {
// console.log(this.radio) // console.log(this.radio)
this.tsetPlate(this.plateNumber ? this.plateNumber : this.plateNumberSel) this.tsetPlate(this.plateNumber ? this.plateNumber : this.plateNumberSel)
// if (!this.testPlateResult) { if (!this.testPlateResult) {
// this.plateNumber='' // this.plateNumber=''
// uni.showToast({ uni.showToast({
// title: '', title: '车牌号不可为空或格式错误,请重新输入',
// icon: 'none' icon: 'none',
// }) duration:2000
// // return false })
// } return false
}
if (this.radio == null || !this.oilSitePriceDetailsVo[this.radio].priceId) { if (this.radio == null || !this.oilSitePriceDetailsVo[this.radio].priceId) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -833,14 +834,15 @@
beforeMake() { beforeMake() {
// console.log(this.radio, 'beforeMake') // console.log(this.radio, 'beforeMake')
this.tsetPlate(this.plateNumber ? this.plateNumber : this.plateNumberSel) this.tsetPlate(this.plateNumber ? this.plateNumber : this.plateNumberSel)
// if (!this.testPlateResult) { if (!this.testPlateResult) {
// this.plateNumber='' // this.plateNumber=''
// uni.showToast({ uni.showToast({
// title: '', title: '车牌号不可为空或格式错误,请重新输入',
// icon: 'none' icon: 'none',
// }) duration:2000
// // return false })
// } return false
}
if (this.radio == null || !this.oilSitePriceDetailsVo[this.radio].priceId) { if (this.radio == null || !this.oilSitePriceDetailsVo[this.radio].priceId) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -946,7 +948,7 @@
}, },
tsetPlate(plateNumber) { tsetPlate(plateNumber) {
this.testPlateResult = this.testPlateResult =
/^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})))|([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$/ /(^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$)/
.test(plateNumber) .test(plateNumber)
}, },
// //
@ -1018,7 +1020,7 @@
}) })
this.vlom = '' this.vlom = ''
// // console.log(this.radio) // // console.log(this.radio)
console.log(this.oilSitePriceDetailsVo[this.radio]) // console.log(this.oilSitePriceDetailsVo[this.radio])
}, },
tabSelect(e) { tabSelect(e) {
this.activeChannelCode = e.currentTarget.dataset.channelCode; this.activeChannelCode = e.currentTarget.dataset.channelCode;

Loading…
Cancel
Save