diff --git a/fuintAdmin/src/api/handover/handover.js b/fuintAdmin/src/api/handover/handover.js
index 738955ae2..997d08388 100644
--- a/fuintAdmin/src/api/handover/handover.js
+++ b/fuintAdmin/src/api/handover/handover.js
@@ -51,3 +51,11 @@ export function handoverShiftPrintingReceipts(data) {
data: data
})
}
+export function handoverShiftPrintingReceiptss(data) {
+ return request({
+ url: '/business/handoverRecord/handoverShiftPrintingReceiptss',
+ method: 'post',
+ data: data
+ })
+}
+
diff --git a/fuintAdmin/src/views/handover/HandoverDetails.vue b/fuintAdmin/src/views/handover/HandoverDetails.vue
index 0b20d56a3..ec41d974e 100644
--- a/fuintAdmin/src/views/handover/HandoverDetails.vue
+++ b/fuintAdmin/src/views/handover/HandoverDetails.vue
@@ -68,39 +68,39 @@
优惠金额
-
{{ orderSummary.allDis }}
-
-
-
退款金额
{{ orderSummary.oilRefund }}
+
+
退款金额
+
{{ orderSummary.oilPaid }}
+
挂账金额
-
--
+
{{ orderSummary.onAccount }}
会员消费
-
{{ orderSummary.allBalanceP }}
+
{{ orderSummary.consumptionMoney }}
实收金额
-
{{ orderSummary.allMoney }}
+
{{ orderSummary.receiptsMoney }}
充值金额
-
{{ orderSummary.cardPaid }}
+
{{ orderSummary.onAccount }}
充值赠送
-
{{ orderSummary.cardGiftPaid }}
+
{{ orderSummary.giftAccount }}
会员总余额
-
{{ orderSummary.points }}
+
{{ orderSummary.memberBalance }}
会员总积分
-
{{ orderSummary.sumnum }}
+
{{ orderSummary.memberPoints }}
@@ -117,18 +117,18 @@
营业总额
-
{{ orderSummary.allyingye1 }}
-
¥{{ orderSummary.allyingye }}
+
{{ orderSummary.oilOrder }}
+
¥{{ orderSummary.receiptsMoney }}
充值总额
-
{{ orderSummary.allchuzhika1 }}
-
¥{{ orderSummary.allchuzhika }}
+
{{ orderSummary.rechargeAll }}
+
¥{{ orderSummary.onAccount }}
合计
-
{{ orderSummary.allyingye1 + orderSummary.allchuzhika1 }}
-
¥{{ orderSummary.allyingye + orderSummary.allchuzhika }}
+
{{ orderSummary.orderall}}
+
¥{{ orderSummary.orderalls}}
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
{{item.payType}}
+
{{ item.orderNum }}
+
¥{{ item.truePay }}
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.payAmount }}
@@ -176,10 +176,10 @@
笔数
实收金额
-
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.discountAmount }}
-
-
{{ item.oilName }}
-
{{ item.numberOfDeals }}
-
¥{{ item.paidAmount }}
+
+
{{ item.name }}
+
{{ item.orderNum }}
+
¥{{ item.refMoney }}
@@ -210,10 +210,10 @@
笔数
实收金额
-
+
{{ item.name }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
{{ item.orderNum }}
+
¥{{ item.amount}}
@@ -227,10 +227,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType}}
+
{{ item.orderNum}}
+
¥{{ item.rechargeBalance}}
@@ -244,10 +244,10 @@
笔数
实收金额
-
-
合计
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{ item.payType}}
+
{{ item.orderNums }}
+
¥{{item.orderNum}}
@@ -261,10 +261,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType}}
+
{{ item.orderNum }}
+
¥{{ item.payAmount}}
@@ -278,10 +278,10 @@
笔数
实收金额
-
-
{{ calculateThePaymentMethod(item.payType) }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{item.payType }}
+
{{ item.orderNum}}
+
¥{{ item.amount}}
@@ -293,14 +293,14 @@
新增会员数
-
{{ orderSummary.sumnum }}
+
{{ memberStatistics.userNum }}
-
{{ item.name ? item.name : '--' }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
{{ item.status }}
+
{{ item.returnNum }}
+
¥{{ item.amount}}
@@ -325,10 +325,10 @@
笔数
实收金额
-
-
{{ item.name ? item.name : '--' }}
-
{{ item.numberOfDeals ? item.numberOfDeals : '--' }}
-
¥{{ item.paidAmount ? item.paidAmount : '--' }}
+
+
{{ item.name }}
+
{{ item.staffNum }}
+
¥{{ item.monye}}
@@ -353,7 +353,8 @@ import {
getHandoverApi2,
getHandoverListApi,
printLocallyApi,
- handoverShiftPrintingReceipts
+ handoverShiftPrintingReceipts,
+ handoverShiftPrintingReceiptss
} from "@/api/handover/handover";
import {getStatisticsApi} from "@/api/order/order";
@@ -370,7 +371,33 @@ export default {
data() {
return {
-
+ baseInfo : {},
+ //汇总
+ orderSummary : {},
+ //支付
+ paymentAggregation :[],
+ //油号
+ oilNumberStatistics:[],
+ //优惠
+ discountStatistics:[],
+ //退款
+ backMoneyStatistics:[],
+ //挂账
+ billingDetails :[],
+ //会员充值
+ employeeStatistics:[],
+ //会员消费
+ consumptionStatistics:[],
+ //便利店消费
+ goodsNumberStatistics:[],
+ //积分
+ integerNumberStatistics:[],
+ //会员新增统计
+ memberStatistics:{},
+ //挂账归还
+ returnedToTheAccount:[],
+ //员工统计
+ staffStatistics:[],
tabs: [
"交接班",
// "交接班1",
@@ -387,14 +414,7 @@ export default {
shiftHandoverList: '',
handoverList: {},
handoverData: {},
- baseInfo: {},
- billingDetails: [],
- employeeStatistics: [],
greaseGunStatistics: [],
- oilNumberStatistics: [],
- orderSummary: {},
- paymentAggregation: [],
- returnedToTheAccount: [],
// base
queryParams: {
@@ -423,10 +443,10 @@ export default {
},
created() {
this.getList();
- this.getHandover();
- this.getStatistics();
- this.getStatus();
- this.getStaffList();
+ //this.getHandover();
+ // this.getStatistics();
+ // this.getStatus();
+ // this.getStaffList();
},
mounted() {
this.queryParams.status = '统一交班';
@@ -436,8 +456,8 @@ export default {
console.log("getHandover", this.queryParams)
getHandoverApi2(this.queryParams).then(res => {
// this.handoverList = res.data;
- this.handoverData = res.data;
- this.baseInfo = this.handoverData.baseInfo,
+ this.handoverData = res.data;
+ this.baseInfo = this.handoverData.baseInfo,
this.billingDetails = this.handoverData.billingDetails,
this.employeeStatistics = this.handoverData.employeeStatistics,
this.greaseGunStatistics = this.handoverData.greaseGunStatistics,
@@ -469,22 +489,53 @@ export default {
this.tabindex = index
},
getList() {
- this.dateRange = []
- if (this.beginTime && this.endTime) {
- this.dateRange.push(this.beginTime.toLocaleDateString())
- this.dateRange.push(this.endTime.toLocaleDateString())
- }
- getHandoverListApi(this.addDateRange(this.queryParams, this.dateRange)).then(res => {
+ // this.dateRange = []
+ // if (this.beginTime && this.endTime) {
+ // this.dateRange.push(this.beginTime.toLocaleDateString())
+ // this.dateRange.push(this.endTime.toLocaleDateString())
+ // }
+ // getHandoverListApi(this.addDateRange(this.queryParams, this.dateRange)).then(res => {
+ // this.dataList = res.data.records
+ // this.total = res.data.total
+ //
+ // })
+ handoverShiftPrintingReceiptss(this.queryParams).then(res => {
+ this.handoverData = res.data;
+ this.baseInfo = this.handoverData.baseInfo,
+ //汇总
+ this.orderSummary = this.handoverData.orderSummary,
+ //支付
+ this.paymentAggregation = this.handoverData.paymentAggregation,
+ //油号
+ this.oilNumberStatistics = this.handoverData.oilNumberStatistics,
+ //优惠
+ this.discountStatistics = this.handoverData.discountStatistics,
+ //退款
+ this.backMoneyStatistics = this.handoverData.backMoneyStatistics,
+ //挂账
+ this.billingDetails = this.handoverData.billingDetails,
+ //会员充值
+ this.employeeStatistics = this.handoverData.employeeStatistics,
+ //会员消费
+ this.consumptionStatistics = this.handoverData.consumptionStatistics,
+ //便利店消费
+ this.goodsNumberStatistics = this.handoverData.goodsNumberStatistics,
+ //积分
+ this.integerNumberStatistics = this.handoverData.integerNumberStatistics,
+ //会员新增统计
+ this.memberStatistics = this.handoverData.memberStatistics,
+ //挂账归还
+ this.returnedToTheAccount = this.handoverData.returnedToTheAccount,
+ //员工统计
+ this.staffStatistics = this.handoverData.staffStatistics,
this.dataList = res.data.records
this.total = res.data.total
-
})
},
getStatistics() {
getStatisticsApi().then(res => {
this.statisticsForm = res.data
})
- console.log("123123123", this.statisticsForm)
},
// 获取支付方式
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java
index bb89ddf35..c1403624d 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/HandoverRecordController.java
@@ -200,5 +200,13 @@ public class HandoverRecordController extends BaseController {
Map handAll=handoverRecordService.handover3(staffId);
printerService.handoverShiftPrintingReceipt(handAll);
}
-}
+ /**
+ * 交接班打印
+ * @return
+ */
+ @PostMapping("handoverShiftPrintingReceiptss")
+ public ResponseObject handoverShiftPrintingReceiptss(Integer staffId) {
+ return getSuccessResult(handoverRecordService.handover3(staffId));
+ }
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java
index 6664d7b9d..1e1b1a7ac 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/HandoverRecordMapper.java
@@ -129,7 +129,7 @@ public interface HandoverRecordMapper {
List