This commit is contained in:
cun-nan 2024-10-22 10:42:47 +08:00
parent 9741831c8d
commit 9de246a8e5

View File

@ -139,6 +139,7 @@
</div> </div>
</div> </div>
<!-- 油品-->
<div class="cont-box"> <div class="cont-box">
<div class="box-top"> <div class="box-top">
<div class="cont-tab"> <div class="cont-tab">
@ -179,6 +180,8 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 非油商品-->
<div class="right-box"> <div class="right-box">
<div class="box-top"> <div class="box-top">
<div class="r-top">非油商品</div> <div class="r-top">非油商品</div>
@ -751,6 +754,19 @@ export default {
this.disTotal = 0.00; this.disTotal = 0.00;
this.disTotal = (parseFloat(this.disGoods) + parseFloat(this.disOil)).toFixed(2); this.disTotal = (parseFloat(this.disGoods) + parseFloat(this.disOil)).toFixed(2);
}else {
this.disGoods = 0.00;
//
console.log("走了啊", this.goodsList);
this.goodsList.forEach(item => {
const memberPrice = Number(item.retailPrice - item.memberPrice);
const num = Number(item.num);
const product = (memberPrice * num).toFixed(2); //
this.disGoods = (parseFloat(this.disGoods) + parseFloat(product)).toFixed(2);
});
//
this.disTotal = 0.00;
} }
}, },
deep: true, deep: true,
@ -1276,6 +1292,7 @@ export default {
}, },
// //
resetting1() { resetting1() {
console.log("表单重置")
this.realAmount = 0.00 this.realAmount = 0.00
// //
this.disTotal = 0.00 this.disTotal = 0.00
@ -1299,8 +1316,9 @@ export default {
// "234520231228115544f073f4" // "234520231228115544f073f4"
cashierOrderByOrderNo({orderNo: _this.orderNo}).then(response => { cashierOrderByOrderNo({orderNo: _this.orderNo}).then(response => {
if (response.data) { if (response.data) {
console.log(1318,response)
if (response.data.status == "paid") { if (response.data.status == "paid") {
_this.isPay = true; _this.isPay = false;
_this.isPaySuccess = true; _this.isPaySuccess = true;
_this.isQuery = false; _this.isQuery = false;
_this.amount = 0 _this.amount = 0
@ -1460,6 +1478,7 @@ export default {
} }
}) })
this.loading = true; this.loading = true;
console.log(1480,isPaySuccess)
if (!isPaySuccess) { if (!isPaySuccess) {
await _this.queryPayStatus(); await _this.queryPayStatus();
_this.resetting1(); _this.resetting1();