bug
This commit is contained in:
parent
3646bc94b9
commit
15ca62967e
@ -446,7 +446,7 @@
|
|||||||
¥{{ +oilActualPay + (+goodsActualPay) }}
|
¥{{ +oilActualPay + (+goodsActualPay) }}
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center;margin-bottom: 10px">
|
<div style="text-align: center;margin-bottom: 10px">
|
||||||
合计金额:{{ oilAmount + goodsAmount }}元、优惠合计{{ oilDiscount + goodsDiscount + fullReduction + couponAmount }}元
|
合计金额:{{ (oilAmount + goodsAmount).toFixed(2) }}元、优惠合计{{ (oilDiscount + goodsDiscount + fullReduction + couponAmount).toFixed(2) }}元
|
||||||
</div>
|
</div>
|
||||||
<div v-if="map.payType != 'CASH'">
|
<div v-if="map.payType != 'CASH'">
|
||||||
<div>
|
<div>
|
||||||
@ -751,6 +751,37 @@
|
|||||||
<el-button type="primary" @click="addCredit">确 定</el-button>
|
<el-button type="primary" @click="addCredit">确 定</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<div id="reportSuccess" ref="report" class="box-center" v-show="false">
|
||||||
|
<div class="box-title">订单统计</div>
|
||||||
|
<div class="box-ge">
|
||||||
|
<div class="input-box" v-for="(item,index) in oilOrder" :key="index">
|
||||||
|
<div>{{ getName(oilNameList,item.oilName) }}_{{getName1(gunList,item.gunName)}}</div>
|
||||||
|
<div>¥{{ item.amount }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="input-box" v-for="(item,index) in goodsOrder" :key="index">
|
||||||
|
<div>{{ item.name }}</div>
|
||||||
|
<div v-if="isMember == false">{{ item.retailPrice }}</div>
|
||||||
|
<div v-else>{{ item.memberPrice }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<div>合计</div>
|
||||||
|
<div>¥{{ oilAmount+(+goodsAmount) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="input-box" v-if="(oilDiscount + goodsDiscount + fullReduction + couponAmount)>0">
|
||||||
|
<div>优惠合计</div>
|
||||||
|
<div>¥{{ oilDiscount + goodsDiscount + fullReduction + couponAmount }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="input-box">
|
||||||
|
<div>实付款</div>
|
||||||
|
<div>¥{{ (+oilActualPay)+(+goodsActualPay) }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="input-box" v-if="seekZero>0">
|
||||||
|
<div>找零</div>
|
||||||
|
<div>¥{{ seekZero }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -1085,6 +1116,14 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
async printLocally() {
|
||||||
|
const printHTML = document.querySelector('#reportSuccess').innerHTML
|
||||||
|
// 将打印的区域赋值,进行打印
|
||||||
|
window.document.body.innerHTML = printHTML
|
||||||
|
window.print() // 调用window打印方法
|
||||||
|
window.location.reload() // 打印完成后重新加载页面
|
||||||
|
|
||||||
|
},
|
||||||
clear(){
|
clear(){
|
||||||
this.dialogVisiblej = false
|
this.dialogVisiblej = false
|
||||||
this.seekZero = 0
|
this.seekZero = 0
|
||||||
@ -2672,6 +2711,7 @@
|
|||||||
_this.oilPreferentialData[i].oilPreferential.cardFavorableId = _this.cardFavorableId
|
_this.oilPreferentialData[i].oilPreferential.cardFavorableId = _this.cardFavorableId
|
||||||
usePaymentActive(_this.oilPreferentialData[i].oilPreferential).then(res => {})
|
usePaymentActive(_this.oilPreferentialData[i].oilPreferential).then(res => {})
|
||||||
}
|
}
|
||||||
|
_this.printLocally()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2682,6 +2722,7 @@
|
|||||||
_this.seekZero = 0
|
_this.seekZero = 0
|
||||||
_this.amount = 0
|
_this.amount = 0
|
||||||
_this.resetting1()
|
_this.resetting1()
|
||||||
|
_this.printLocally()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2801,6 +2842,7 @@
|
|||||||
_this.isQuery = false;
|
_this.isQuery = false;
|
||||||
_this.amount = 0
|
_this.amount = 0
|
||||||
|
|
||||||
|
_this.printLocally()
|
||||||
_this.loading = false;
|
_this.loading = false;
|
||||||
if (response.data.oilOrderAmount>0){
|
if (response.data.oilOrderAmount>0){
|
||||||
for (let i =0;i<_this.oilPreferentialData.length;i++){
|
for (let i =0;i<_this.oilPreferentialData.length;i++){
|
||||||
@ -3276,6 +3318,14 @@
|
|||||||
/*color: white;*/
|
/*color: white;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box-center{
|
||||||
|
width: 100%;
|
||||||
|
//height: 10px;
|
||||||
|
background-color: white;
|
||||||
|
margin: 10px auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
.center-left-bottom{
|
.center-left-bottom{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
@ -3315,6 +3365,20 @@
|
|||||||
margin: 15px 10px ;
|
margin: 15px 10px ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-box{
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 5px 0px;
|
||||||
|
}
|
||||||
|
.box-title{
|
||||||
|
font-size: 18px;
|
||||||
|
text-align: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
.bottom-price{
|
.bottom-price{
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -86,9 +86,9 @@
|
|||||||
|
|
||||||
<view class="station-title" style="display: flex;justify-content: space-between;">
|
<view class="station-title" style="display: flex;justify-content: space-between;">
|
||||||
{{store.name}}{{store.description ? "("+store.description+")" : ""}}
|
{{store.name}}{{store.description ? "("+store.description+")" : ""}}
|
||||||
<!-- <view class="" @click="goChooseAddress" style="width: 22%;font-size: 14px;font-weight: 400;">
|
<view class="" @click="goChooseAddress" style="width: 22%;font-size: 14px;font-weight: 400;">
|
||||||
<view>切换位置 <uni-icons type="right" color="#304fff" size="16"></uni-icons> </view>
|
<view>切换位置 <uni-icons type="right" color="#304fff" size="16"></uni-icons> </view>
|
||||||
</view> -->
|
</view>
|
||||||
</view><!--顺通石化加油站(工业南路站)-->
|
</view><!--顺通石化加油站(工业南路站)-->
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
<view class="bule-icon" v-if="welfare.length!=0" v-for="(item,index) in welfare" :key="index">
|
<view class="bule-icon" v-if="welfare.length!=0" v-for="(item,index) in welfare" :key="index">
|
||||||
@ -216,9 +216,6 @@ import { callWithErrorHandling } from "vue"
|
|||||||
uni.setStorageSync("inviteStaffId", staffId)
|
uni.setStorageSync("inviteStaffId", staffId)
|
||||||
this.storeId = uni.getStorageSync("storeId")
|
this.storeId = uni.getStorageSync("storeId")
|
||||||
this.staffId = uni.getStorageSync("inviteStaffId")
|
this.staffId = uni.getStorageSync("inviteStaffId")
|
||||||
uni.showLoading({
|
|
||||||
title: uni.getStorageSync("storeId") + "++" + uni.getStorageSync("inviteStaffId") + q
|
|
||||||
})
|
|
||||||
this.getUserAuthority();
|
this.getUserAuthority();
|
||||||
this.getOilType();
|
this.getOilType();
|
||||||
} else {
|
} else {
|
||||||
@ -404,9 +401,7 @@ import { callWithErrorHandling } from "vue"
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}).catch((res) => {
|
}).catch((res) => {
|
||||||
uni.showLoading({
|
|
||||||
title: res + "---" + 1
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取当前位置
|
// 获取当前位置
|
||||||
|
Loading…
Reference in New Issue
Block a user