diff --git a/BagStation/pages/components/price-select-tab.vue b/BagStation/pages/components/price-select-tab.vue index 546e26b..44f8592 100644 --- a/BagStation/pages/components/price-select-tab.vue +++ b/BagStation/pages/components/price-select-tab.vue @@ -8,8 +8,9 @@ - + {{item.channelCode|channelCodeFamt}} @@ -19,9 +20,11 @@ - + @@ -40,14 +44,17 @@ 油枪选择 - - - - + + @@ -56,26 +63,32 @@ - + 司机车牌 - - - + + + + 需可识别车牌号 - 油机照片 + 油机照片 - - - + + + + - 需包含加油升数和价格 + 需包含加油升数和价格 - +
@@ -121,20 +134,24 @@ 油机金额 - + - 约{{vlom?vlom :'' | moneyVolm}}L - + 约{{vlom?vlom :'' | moneyVolm}}L + - + @@ -148,7 +165,8 @@ 加油金额 - + @@ -159,9 +177,11 @@ - @@ -204,8 +224,10 @@ - 合计:{{realMoney>0?realMoney:'xxx.x'|moneyForMath}} - {{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyForMath}} + 合计:{{realMoney>0?realMoney:'xxx.x'|moneyForMath}} + {{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyForMath}} 明细 @@ -233,12 +255,13 @@ 油品油枪: - {{oilProductCode?oilProductCode:''}} {{oilBar?(checkBar.filter(item=>oilBar==item.value)[0].name||oilBar)+'号枪':'未选择油枪'}} + {{oilProductCode?oilProductCode:''}} + {{oilBar?(checkBar.filter(item=>oilBar==item.value)[0].name||oilBar)+'号枪':'未选择油枪'}} - 加油升数: - {{vlom?'约' :''}}{{vlom?vlom :'' | moneyVolm}} L + 加油升数: + {{vlom?'约' :''}}{{vlom?vlom :'' | moneyVolm}} L 加油金额: @@ -254,11 +277,12 @@ 加油金额: {{ty.realMoney>0?ty.realMoney:'xxx.x'|moneyForMath}} - 加油升数: {{ tyRes.liter?tyRes.liter+'L':''}} + 加油升数: {{ tyRes.liter?tyRes.liter+'L':''}} 直降金额: - {{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyForMath}} + {{tyRes.depreciateAmount>0?tyRes.depreciateAmount:'xxx.x'|moneyForMath}} @@ -267,15 +291,18 @@ 合计: - {{realMoney>0?realMoney:'xxx.x'|moneyForMath}} + {{realMoney>0?realMoney:'xxx.x'|moneyForMath}} {{ty.realMoney>0?ty.realMoney:'xxx.x' }} - + - 合计:{{realMoney>0?realMoney:'xxx.x'|moneyForMath}}元 - {{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyForMath}}元 + 合计:{{realMoney>0?realMoney:'xxx.x'|moneyForMath}}元 + {{ty.realMoney>0?ty.realMoney-tyRes.depreciateAmount:'xxx.x'|moneyForMath}}元 明细 @@ -288,30 +315,32 @@ - - - - - - - - - - 支付提醒 - - - 当前油站距离您较远,请与加油员确认您选择的油站是否正确。 - - - - 返回油站列表 + + + + - - 确认下单 + + + + + 支付提醒 + + + 当前油站距离您较远,请与加油员确认您选择的油站是否正确。 + + + + 返回油站列表 + + + 确认下单 + - @@ -329,16 +358,16 @@ - + {{item}} - - + + diff --git a/BagStation/pages/components/price-tab.vue b/BagStation/pages/components/price-tab.vue index 76e148c..38566d6 100644 --- a/BagStation/pages/components/price-tab.vue +++ b/BagStation/pages/components/price-tab.vue @@ -73,7 +73,7 @@ }; }, computed: { - + activeChannelCode() { if (this.channelList.length && this.channelList[this.TabCur]) { let channelCode = this.channelList[this.TabCur].channelCode @@ -111,21 +111,23 @@ } }, methods: { - goFinancial(){ + goFinancial() { const user = uni.getStorageSync('user'); - if(user){ - Financial.findHomePageReport({customerId:user.id}).then(res=>{ - if(res.data){ + if (user) { + Financial.findHomePageReport({ + customerId: user.id + }).then(res => { + if (res.data) { uni.navigateTo({ - url:`../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}` + url: `../../../Financial/pages/estimate/index?data=${encodeURIComponent(JSON.stringify(res.data))}` }) - }else{ + } else { uni.navigateTo({ - url:'../../../Financial/pages/index?guide=1' + url: '../../../Financial/pages/index?guide=1' }) } }); - }else{ + } else { uni.showToast({ title: '请先登录!', icon: 'none' @@ -149,7 +151,7 @@ // return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}`)+0.01 :Number(value).toFixed(2); return String(value).split('.')[1] && String(value).split('.')[1].length > 2 ? Number( `${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}${Number(String(value).split('.')[1].substr(2))==0?'':9}` - ).toFixed(2) : Number(value).toFixed(2); + ).toFixed(2) : Number(value).toFixed(2); } else { return Number(value).toFixed(2) } @@ -179,6 +181,7 @@ // 渠道编码 ( XOIL:星油 WJY:万金油 LV:老吕(找油网) TY:团油 YDJY:一点加油(壳牌)) switch (value) { case 'XOIL': + case 'ZDC': return '星油' case 'WJY': return '万金油' @@ -188,6 +191,7 @@ return '团油' case 'YDJY': return '一点加油(壳牌)' + } } }