|
|
|
@ -135,7 +135,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="text-center" style="width: 60%;margin: 0 2%;"> |
|
|
|
|
<input v-model="vol" @input="checkeNumber" @blur="getMoneyVol" type="digit" class="block" |
|
|
|
|
placeholder="请输入油机金额" value="" style="border-bottom: 1px solid #efefef;" /> |
|
|
|
|
placeholder="请输入油机金额" value="" style="border-bottom: 1px solid #efefef;" :disabled="readonlyRealMoney" /> |
|
|
|
|
</view> |
|
|
|
|
<view class=""> |
|
|
|
|
<text class=" padding-right-sm"> |
|
|
|
@ -195,8 +195,8 @@ |
|
|
|
|
车牌识别 |
|
|
|
|
</view> |
|
|
|
|
<view @tap="srcPhoto" class="text-center" style="width: 60%;margin: 0 2%;"> |
|
|
|
|
<input v-model="plateNumberOcr" type="digit" class="block" |
|
|
|
|
placeholder="请点击拍照识别车牌" value="" style="border-bottom: 1px solid #efefef;" /> |
|
|
|
|
<input v-model="plateNumberOcr" type="digit" class="block" placeholder="请点击拍照识别车牌" value="" |
|
|
|
|
style="border-bottom: 1px solid #efefef;" /> |
|
|
|
|
</view> |
|
|
|
|
<view @tap="srcPhoto"> |
|
|
|
|
<uni-icons type="camera-filled" size="30"></uni-icons> |
|
|
|
@ -405,17 +405,19 @@ |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
<view style="margin: 60rpx 0;"> |
|
|
|
|
<button @tap="srcPhoto" style="width: 60%;background-color: #409EFF;color: #ffffff;">重新拍照</button> |
|
|
|
|
<button @tap="srcPhoto" |
|
|
|
|
style="width: 60%;background-color: #409EFF;color: #ffffff;">重新拍照</button> |
|
|
|
|
</view> |
|
|
|
|
<view style="margin: 60rpx 0;"> |
|
|
|
|
<button style="width: 60%;background-color: #F59A23;color: #ffffff;" @click="manualInput">手动输入车牌号</button> |
|
|
|
|
<button style="width: 60%;background-color: #F59A23;color: #ffffff;" |
|
|
|
|
@click="manualInput">手动输入车牌号</button> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<uni-popup ref="inputDialog" type="dialog"> |
|
|
|
|
<uni-popup-dialog mode="input" title="请输入车牌号" value="" :before-close="true" |
|
|
|
|
placeholder="请输入" @close="inputClose" @confirm="inputConfirm"></uni-popup-dialog> |
|
|
|
|
<uni-popup-dialog mode="input" title="请输入车牌号" value="" :before-close="true" placeholder="请输入" |
|
|
|
|
@close="inputClose" @confirm="inputConfirm"></uni-popup-dialog> |
|
|
|
|
</uni-popup> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -459,6 +461,7 @@ |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
readonlyRealMoney: false, |
|
|
|
|
thirdPartyDynamicData: ['LAIYOU'], |
|
|
|
|
vlom: '', |
|
|
|
|
discount: '', |
|
|
|
@ -557,10 +560,10 @@ |
|
|
|
|
checkBar: [], |
|
|
|
|
realMoney: '', |
|
|
|
|
xoilAmountGun: '', |
|
|
|
|
plateNumberOcr:'', |
|
|
|
|
plateNumberOcrShow:false, |
|
|
|
|
showPlicePhoto:'', |
|
|
|
|
plateNumberImages:'' |
|
|
|
|
plateNumberOcr: '', |
|
|
|
|
plateNumberOcrShow: false, |
|
|
|
|
showPlicePhoto: '', |
|
|
|
|
plateNumberImages: '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
@ -570,8 +573,7 @@ |
|
|
|
|
companyId = JSON.parse(uni.getStorageSync('companyCard')).companyId |
|
|
|
|
if (otherUser) { |
|
|
|
|
this.isOtherUser = true |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
} else {} |
|
|
|
|
this.showtitles = oilItem.listTag; |
|
|
|
|
this.init() |
|
|
|
|
this.getCompanyConfig(companyId) |
|
|
|
@ -645,18 +647,18 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
manualInput(){ |
|
|
|
|
this.showPlicePhoto='' |
|
|
|
|
manualInput() { |
|
|
|
|
this.showPlicePhoto = '' |
|
|
|
|
this.$refs.inputDialog.open() |
|
|
|
|
}, |
|
|
|
|
inputClose(){ |
|
|
|
|
inputClose() { |
|
|
|
|
this.$refs.inputDialog.close() |
|
|
|
|
}, |
|
|
|
|
inputConfirm(val){ |
|
|
|
|
if(val){ |
|
|
|
|
inputConfirm(val) { |
|
|
|
|
if (val) { |
|
|
|
|
this.plateNumberOcr = val |
|
|
|
|
this.$refs.inputDialog.close() |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请输入车牌号', |
|
|
|
|
icon: 'none' |
|
|
|
@ -664,20 +666,20 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
getCompanyConfig(companyId){ |
|
|
|
|
if(companyId){ |
|
|
|
|
user.getCompanyConfigByCompanyId(companyId).then(res=>{ |
|
|
|
|
if(res.data.plateNumberOcr==1){ |
|
|
|
|
getCompanyConfig(companyId) { |
|
|
|
|
if (companyId) { |
|
|
|
|
user.getCompanyConfigByCompanyId(companyId).then(res => { |
|
|
|
|
if (res.data.plateNumberOcr == 1) { |
|
|
|
|
this.plateNumberOcrShow = true |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.plateNumberOcrShow = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
srcPhoto(){ |
|
|
|
|
this.showPlicePhoto='' |
|
|
|
|
srcPhoto() { |
|
|
|
|
this.showPlicePhoto = '' |
|
|
|
|
let _that = this |
|
|
|
|
uni.chooseImage({ |
|
|
|
|
count: 1, //默认9 |
|
|
|
@ -706,14 +708,15 @@ |
|
|
|
|
success(e) { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
let obj = JSON.parse(e.data) |
|
|
|
|
if(obj.data&&obj.data.carNo){ |
|
|
|
|
if (obj.data && obj.data.carNo) { |
|
|
|
|
_that.plateNumberOcr = obj.data.carNo |
|
|
|
|
_that.plateNumberImages = obj.data.imgUrl |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
_that.plateNumberOcr = '' |
|
|
|
|
_that.showPlicePhoto = 'show' |
|
|
|
|
} |
|
|
|
|
},fail(res){ |
|
|
|
|
}, |
|
|
|
|
fail(res) { |
|
|
|
|
uni.hideLoading() |
|
|
|
|
_that.showPlicePhoto = 'show' |
|
|
|
|
} |
|
|
|
@ -1247,8 +1250,8 @@ |
|
|
|
|
'xoilAmountGun': this.vol |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if(this.plateNumberOcrShow == true){ |
|
|
|
|
if(!this.plateNumberOcr){ |
|
|
|
|
if (this.plateNumberOcrShow == true) { |
|
|
|
|
if (!this.plateNumberOcr) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '请上传车牌照片' |
|
|
|
@ -1276,7 +1279,7 @@ |
|
|
|
|
'version': 1, |
|
|
|
|
'xoilAmountGun': this.vol |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
var orderData = { |
|
|
|
|
amountGun: this.activeChannelCode == 'TY' ? this.ty.realMoney : '', |
|
|
|
|
shareCompanyQuota: 0, // 共享标识 |
|
|
|
@ -1344,11 +1347,31 @@ |
|
|
|
|
this.radio = 0 |
|
|
|
|
this.plateNumbers = res.data.plateNumbers |
|
|
|
|
this.oilSitePriceDetailsVo = res.data.oilSitePriceDetailsVo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.couponFaceValueListHandle(this.radio) |
|
|
|
|
|
|
|
|
|
this.activeSitePrice = res.data.oilSitePriceDetailsVo[0].priceId |
|
|
|
|
|
|
|
|
|
this.siteUserNames = res.data.siteUserNames |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
couponFaceValueListHandle(index) { |
|
|
|
|
if (this.oilSitePriceDetailsVo[index].couponFaceValueList) { |
|
|
|
|
this.readonlyRealMoney = true |
|
|
|
|
this.checkMoney = this.oilSitePriceDetailsVo[index].couponFaceValueList.reduce((prev, item) => { |
|
|
|
|
prev.push({ |
|
|
|
|
value: +item, |
|
|
|
|
name: (+item).toFixed(0), |
|
|
|
|
checked: false, |
|
|
|
|
hot: false, |
|
|
|
|
}) |
|
|
|
|
return prev |
|
|
|
|
}, []) |
|
|
|
|
console.log('this.checkMoney', this.checkMoney) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
pickJober(e) { |
|
|
|
|
this.joberIndex = e.detail.value |
|
|
|
|
}, |
|
|
|
@ -1391,6 +1414,8 @@ |
|
|
|
|
this.activeSitePrice = this.oilSitePriceDetailsVo[this.radio].priceId |
|
|
|
|
this.realMoney = '--' |
|
|
|
|
this.xoilAmountGun = '' |
|
|
|
|
|
|
|
|
|
this.couponFaceValueListHandle(this.radio) |
|
|
|
|
}, |
|
|
|
|
tabSelect(e) { |
|
|
|
|
this.activeChannelCode = e.currentTarget.dataset.channelCode; |
|
|
|
|