更新
This commit is contained in:
@@ -534,7 +534,7 @@
|
|||||||
computed: {
|
computed: {
|
||||||
priceId() {
|
priceId() {
|
||||||
if (this.channelList.length && this.channelList[this.activeCur] && this.oilSitePriceDetailsVo[this
|
if (this.channelList.length && this.channelList[this.activeCur] && this.oilSitePriceDetailsVo[this
|
||||||
.radio]) {
|
.radio]) {
|
||||||
return this.oilSitePriceDetailsVo[this.radio].priceId
|
return this.oilSitePriceDetailsVo[this.radio].priceId
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -669,14 +669,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',
|
||||||
@@ -826,16 +827,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
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',
|
||||||
@@ -903,17 +905,17 @@
|
|||||||
"amountGun": this.activeChannelCode == 'TY' ? this.ty.realMoney : '',
|
"amountGun": this.activeChannelCode == 'TY' ? this.ty.realMoney : '',
|
||||||
"shareCompanyQuota": 0, // 共享标识
|
"shareCompanyQuota": 0, // 共享标识
|
||||||
"priceId": this.oilSitePriceDetailsVo[this.radio]
|
"priceId": this.oilSitePriceDetailsVo[this.radio]
|
||||||
.priceId, //类型:String 必有字段 备注:油价主键
|
.priceId, //类型:String 必有字段 备注:油价主键
|
||||||
"orderType": "REAL_ORDER", //类型:String 必有字段 备注:订单类型(REAL_ORDER:真实订单 VIRTUAL_ORDER:虚拟订单)
|
"orderType": "REAL_ORDER", //类型:String 必有字段 备注:订单类型(REAL_ORDER:真实订单 VIRTUAL_ORDER:虚拟订单)
|
||||||
"orderSource": "WECHAT_MINIAPPS", //类型:String 必有字段 备注:订单来源(WECHAT_MINIAPPS)
|
"orderSource": "WECHAT_MINIAPPS", //类型:String 必有字段 备注:订单来源(WECHAT_MINIAPPS)
|
||||||
"plateNumber": this.plateNumber ? this.plateNumber : this
|
"plateNumber": this.plateNumber ? this.plateNumber : this
|
||||||
.plateNumberSel, //类型:String 必有字段 备注:车牌号
|
.plateNumberSel, //类型:String 必有字段 备注:车牌号
|
||||||
"siteUserName": this.jober, //类型:String 必有字段 备注:加油员
|
"siteUserName": this.jober, //类型:String 必有字段 备注:加油员
|
||||||
"oilsBar": this.oilBar, //类型:Number 必有字段 备注:油枪
|
"oilsBar": this.oilBar, //类型:Number 必有字段 备注:油枪
|
||||||
"volume": this.activeChannelCode == 'TY' ? this.tyRes.liter : this
|
"volume": this.activeChannelCode == 'TY' ? this.tyRes.liter : this
|
||||||
.vol, //类型:Number 必有字段 备注:加油升数
|
.vol, //类型:Number 必有字段 备注:加油升数
|
||||||
"realPrice": this.oilSitePriceDetailsVo[this.radio]
|
"realPrice": this.oilSitePriceDetailsVo[this.radio]
|
||||||
.sitePrice, //类型:Number 必有字段 备注:实际加油价格
|
.sitePrice, //类型:Number 必有字段 备注:实际加油价格
|
||||||
"suppleMark": 0, //类型:Number 必有字段 备注:补录标识(0:实时订单 1:补录订单)
|
"suppleMark": 0, //类型:Number 必有字段 备注:补录标识(0:实时订单 1:补录订单)
|
||||||
"createSource": "XOIL_DRIVER_WECHAT_APPLET", //类型:String 必有字段 备注:创建来源( XOIL_DRIVER_WECHAT_APPLET)
|
"createSource": "XOIL_DRIVER_WECHAT_APPLET", //类型:String 必有字段 备注:创建来源( XOIL_DRIVER_WECHAT_APPLET)
|
||||||
// "deviceImei": "mock", //类型:String 可有字段 备注:设备唯一码
|
// "deviceImei": "mock", //类型:String 可有字段 备注:设备唯一码
|
||||||
@@ -939,7 +941,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)
|
||||||
},
|
},
|
||||||
// 获取渠道下价格等信息
|
// 获取渠道下价格等信息
|
||||||
@@ -1188,4 +1190,4 @@
|
|||||||
.box-panding {
|
.box-panding {
|
||||||
padding: 10 0;
|
padding: 10 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user