diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/CashierOrder.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/CashierOrder.java index ced4e1af2..0b1813dab 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/CashierOrder.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/CashierOrder.java @@ -90,6 +90,9 @@ public class CashierOrder extends BaseEntity implements Serializable { * 支付时间 */ private Date payTime; - + /** + * 退款备注 + */ + private String refundRemark; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/LJOrder.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/LJOrder.java index d24f0d1b7..383545f8d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/LJOrder.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/LJOrder.java @@ -81,6 +81,10 @@ public class LJOrder extends BaseEntity implements Serializable { * 用户备注 */ private String remark; + /** + * 退款备注 + */ + private String refundRemark; /** * 订单状态 */ diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/OilOrder.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/OilOrder.java index 4e02d0665..56c0d72ee 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/OilOrder.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/OilOrder.java @@ -118,6 +118,10 @@ public class OilOrder extends BaseEntity implements Serializable { * 订单备注 */ private String remark; + /** + * 退款备注 + */ + private String refundRemark; /** * 油罐id */ diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CardBalanceChangeMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CardBalanceChangeMapper.xml index 978218608..7a73be2e8 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CardBalanceChangeMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CardBalanceChangeMapper.xml @@ -23,6 +23,18 @@ and cbc.store_id = #{cardBalanceChange.storeId} + + and cbc.change_type = #{cardBalanceChange.changeType} + + + and cbc.order_no = like concat('%', #{cardBalanceChange.orderNo}, '%') + + + and date_format(cbc.create_time,'%y%m%d') >= date_format(#{cardBalanceChange.params.beginTime},'%y%m%d') + + + and date_format(cbc.create_time,'%y%m%d') <= date_format(#{cardBalanceChange.params.endTime},'%y%m%d') + order by cbc.id DESC diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java index 87561c63f..ba58cef45 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java @@ -509,7 +509,7 @@ public class OilOrderServiceImpl extends ServiceImpl i if (i == 0) { order.setOrderType("主订单"); order.setOrderAmount(amount); - order.setPayAmount(0.0); + order.setPayAmount(amount); order.setOrderNo(orderNo); } else { order.setOrderType("子订单"); @@ -545,7 +545,7 @@ public class OilOrderServiceImpl extends ServiceImpl i if (i == 0) { order.setOrderType("主订单"); order.setOrderAmount(amount); - order.setPayAmount(0.0); + order.setPayAmount(amount); order.setOrderNo(orderNo); } else { order.setOrderType("子订单"); @@ -581,7 +581,7 @@ public class OilOrderServiceImpl extends ServiceImpl i if (i == 0) { order.setOrderType("主订单"); order.setOrderAmount(amount); - order.setPayAmount(0.0); + order.setPayAmount(amount); order.setOrderNo(orderNo); } else { order.setOrderType("子订单"); @@ -648,7 +648,7 @@ public class OilOrderServiceImpl extends ServiceImpl i if (i == 0) { order.setOrderType("主订单"); order.setOrderAmount(amount); - order.setPayAmount(0.0); + order.setPayAmount(amount); order.setOrderNo(orderNo); } else { order.setOrderType("子订单"); @@ -1297,7 +1297,9 @@ public class OilOrderServiceImpl extends ServiceImpl i oilBalanceChange.setOrderNo(orderNo); oilBalanceChange.setOilBalance(oilBalance); oilBalanceChange.setAfterOilChange(afterOilBalance); - oilBalanceChangeService.save(oilBalanceChange); + if (oilBalance!=0.0){ + oilBalanceChangeService.save(oilBalanceChange); + } } @Resource diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue index 24a9e6068..7a2cd9ade 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue @@ -16,7 +16,7 @@ - +
- ¥{{ cashierOrder.amount }} + ¥{{ cashierOrder.payAmount }}
退款金额
退款单号:{{ cashierOrder.orderNo }}
@@ -245,7 +245,7 @@
- +
退款仅支持全额退款,退款金额将按照支付信息原路退回、优惠券、储值卡等原路退回处理
@@ -270,8 +270,8 @@ import {refundApi} from "@/api/cashier/refund"; name: "order_Cashier", data(){ return{ - // 退款密码 - password:"", + // 退款备注 + refundRemark:"", radio1:"油号选错", // 油号列表 oilNameList:[], diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue index bb93660f9..5eb7d488a 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Goods.vue @@ -180,6 +180,34 @@ + + +
+ ¥{{ goods.payAmount }} +
+
退款金额
+
退款单号:{{ goods.orderNo }}
+
+ 退款原因
+ + + + + +
+
+ +
+ 退款仅支持全额退款,退款金额将按照支付信息原路退回、优惠券、储值卡等原路退回处理 +
+ + 取 消 + 确 定 + +
@@ -236,6 +264,10 @@ export default { }, // 支付列表 payList:[], + dialogRefund: false, + radio1:"油号选错", + goods:{}, + refundRemark:"", orderStatistics: { numberOfProducts:'0', diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue index e12e8b9fc..21c22e746 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Oil.vue @@ -245,7 +245,7 @@
- +
退款仅支持全额退款,退款金额将按照支付信息原路退回、优惠券、储值卡等原路退回处理
@@ -274,7 +274,7 @@ userName:"", oilOrder:{}, // 退款密码 - password:"", + refundRemark:"", radio1:"油号选错", dialogRefund:false, // 员工列表 diff --git a/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue b/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue index 6a58d1bee..7d7a39aba 100644 --- a/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue +++ b/fuintCashierWeb/src/views/cashier/vipComponents/balanceList.vue @@ -6,16 +6,41 @@
-
- - - + + + + + + + + + + + + + + + + 搜索 -
-
- 搜索 -
+ + + +
@@ -31,7 +56,7 @@
余额汇总
-
{{ totalBalance }}
+
{{ totalBalance.toFixed(2) }}
充值笔数
@@ -39,7 +64,7 @@
充值总额
-
{{ totalRecharge }}
+
{{ totalRecharge.toFixed(2) }}
消费笔数
@@ -47,7 +72,7 @@
消费总额
-
{{ totalConsumption }}
+
{{ totalConsumption.toFixed(2) }}
@@ -121,7 +146,7 @@
充值总额
-
{{ totalRecharge1 }}
+
{{ totalRecharge1.toFixed(2) }}
消费笔数
@@ -129,7 +154,7 @@
消费总额
-
{{ totalConsumption1 }}
+
{{ totalConsumption1.toFixed(2) }}
@@ -160,7 +185,6 @@ {{scope.row.type}}{{ getOilName(oilNameList,scope.row.oilType) }} -