From 2a3f80675e4ba51e01db6aac60e66e9c585a3bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Sat, 26 Oct 2024 14:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=93=B6=E5=8F=B0=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../printer/controller/printerController.java | 57 +++++++++++++++---- .../printer/service/PrinterService.java | 6 +- .../service/impl/PrinterServiceImpl.java | 21 ++++--- .../template/PrintCardValueReport.java | 15 +++-- .../printer/template/PrintOilOrderReport.java | 19 ++++--- .../template/RePrintOilOrderReport.java | 15 +++-- .../views/cashier/NewComponents/newHome.vue | 13 ++++- .../views/cashier/NewComponents/writeList.vue | 3 +- .../cashier/orderComponents/order_Cashier.vue | 23 +++++--- .../cashier/orderComponents/order_Goods.vue | 15 +++-- .../cashier/orderComponents/order_Oil.vue | 9 ++- .../cashier/orderComponents/order_Vip.vue | 13 ++++- 12 files changed, 140 insertions(+), 69 deletions(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java index 742cf07e4..ebd03e4c5 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/controller/printerController.java @@ -275,22 +275,44 @@ public class printerController extends BaseController { // Integer random6 = (int) ((Math.random() * 9 + 1) * 100000); // String url=m.print("4004872261", PrintOilOrderReport.printOilOrder(), "Z"+System.currentTimeMillis()+random6.toString()); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + MtUser mtUser=null; + UserBalance userBalance=null; + LJUserGrade ljUserGrade=null; + String orderNo=null; + List> o = (List>)oilOrder.get("oilOrder"); + for (Map stringStringMap : o) { + orderNo=stringStringMap.get("orderNo"); + if("散客".equals(stringStringMap.get("payUser"))){ + }else { + mtUser=mtUserMapper.selectByPhone(stringStringMap.get("payUser")); + userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); + ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); + } + } ReceiptPrinting receiptPrinting = receiptPrintingService.queryReceiptPrintingOne(nowAccountInfo.getStoreId()); - MtUser mtUser=mtUserMapper.selectByPhone("13964068390"); - UserBalance userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); - LJUserGrade ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); - printerService.oilOrderReport(oilOrder,TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade); + printerService.oilOrderReport(oilOrder,TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } @PostMapping("rePrintOilOrderReport") public void reOilOrderReport(@RequestBody Map oilOrder) { AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + MtUser mtUser=null; + UserBalance userBalance=null; + LJUserGrade ljUserGrade=null; + String orderNo=null; + List> o = (List>)oilOrder.get("oilOrder"); + for (Map stringStringMap : o) { + orderNo=stringStringMap.get("orderNo"); + if("散客".equals(stringStringMap.get("payUser"))){ + }else { + mtUser=mtUserMapper.selectByPhone(stringStringMap.get("payUser")); + userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); + ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); + } + } ReceiptPrinting receiptPrinting = receiptPrintingService.queryReceiptPrintingOne(nowAccountInfo.getStoreId()); - MtUser mtUser=mtUserMapper.selectByPhone("13964068390"); - UserBalance userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); - LJUserGrade ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); - printerService.reOilOrderReport(oilOrder,TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade); + printerService.reOilOrderReport(oilOrder,TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } /** * 余额充值订单 @@ -307,11 +329,22 @@ public class printerController extends BaseController { // Integer random6 = (int) ((Math.random() * 9 + 1) * 100000); // String url=m.print("4004872261", PrintCardValueReport.printOilOrder(), "Z"+System.currentTimeMillis()+random6.toString()); AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + MtUser mtUser=null; + UserBalance userBalance=null; + LJUserGrade ljUserGrade=null; + String orderNo=null; + List> o = (List>)cardValue.get("oilOrder"); + for (Map stringStringMap : o) { + orderNo=stringStringMap.get("orderNo"); + if("散客".equals(stringStringMap.get("payUser"))){ + }else { + mtUser=mtUserMapper.selectByPhone(stringStringMap.get("payUser")); + userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); + ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); + } + } ReceiptPrinting receiptPrinting = receiptPrintingService.queryReceiptPrintingOne(nowAccountInfo.getStoreId()); - MtUser mtUser=mtUserMapper.selectByPhone("13964068390"); - UserBalance userBalance=userBalanceMapper.getUserBalanceByUserId(mtUser.getId().toString()); - LJUserGrade ljUserGrade= ljUserGradeMapper.getUserGradeByUserId(userBalance.getGradeId().toString()); - printerService.printCardValueReport(cardValue, TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade); + printerService.printCardValueReport(cardValue, TokenUtil.getNowAccountInfo().getStoreId(),receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } /** diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/PrinterService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/PrinterService.java index 297921c64..79209d9e3 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/PrinterService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/PrinterService.java @@ -26,12 +26,12 @@ public interface PrinterService { String printIndex(BigDecimal payAmount,Integer storeId); void getHandover(Map handover,Integer storeId); - void oilOrderReport(Map handover, Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade); - void reOilOrderReport(Map oilOrder, Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade); + void oilOrderReport(Map handover, Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade,String orderNo); + void reOilOrderReport(Map oilOrder, Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade,String orderNo); void printTagReport(Map integral,Integer storeId); - void printCardValueReport(Map printCardValue,Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade); + void printCardValueReport(Map printCardValue,Integer storeId, ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade,String orderNo); void printFuelDieselReport(Map printCardValue,Integer storeId); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/impl/PrinterServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/impl/PrinterServiceImpl.java index d1571a60c..6a8193677 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/impl/PrinterServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/service/impl/PrinterServiceImpl.java @@ -235,9 +235,10 @@ public class PrinterServiceImpl implements PrinterService { } } - public void oilOrderReport(Map oilOrder, Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade) { + public void oilOrderReport(Map oilOrder, Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade + ,String orderNo) { PrintDeviceInfo infoByStoreId = printDeviceInfoMapper.getInfoByStoreId(storeId); - AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo("234520241023114642fc06e4"); + AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo(orderNo); Methods m=Methods.getInstance(); Object accessToken = RedisUtil.get("scancodemodel+" + storeId); if (ObjectUtil.isNotEmpty(accessToken)) { @@ -260,14 +261,15 @@ public class PrinterServiceImpl implements PrinterService { String error = jsonObject.getString("error"); if ("18".equals(error)) { getToken(storeId); - oilOrderReport(oilOrder,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade); + oilOrderReport(oilOrder,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } } } - public void reOilOrderReport(Map oilOrder,Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade) { + public void reOilOrderReport(Map oilOrder,Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade + ,String orderNo) { PrintDeviceInfo infoByStoreId = printDeviceInfoMapper.getInfoByStoreId(storeId); - AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo("234520241023114642fc06e4"); + AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo(orderNo); Methods m=Methods.getInstance(); Object accessToken = RedisUtil.get("scancodemodel+" + storeId); if (ObjectUtil.isNotEmpty(accessToken)) { @@ -291,16 +293,17 @@ public class PrinterServiceImpl implements PrinterService { String error = jsonObject.getString("error"); if ("18".equals(error)) { getToken(storeId); - reOilOrderReport(oilOrder,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade); + reOilOrderReport(oilOrder,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } } } - public void printCardValueReport(Map cardValue,Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade) { + public void printCardValueReport(Map cardValue,Integer storeId,ReceiptPrinting receiptPrinting, MtUser mtUser, UserBalance userBalance, LJUserGrade ljUserGrade + ,String orderNo) { PrintDeviceInfo infoByStoreId = printDeviceInfoMapper.getInfoByStoreId(storeId); - AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo("234520241023114642fc06e4"); + AllOrderInfoVo allOrderInfoVo=allOrderInfoMapper.getOneByOrderNo(orderNo); log.info("handover:{}",cardValue.toString()); Methods m=Methods.getInstance(); Object accessToken = RedisUtil.get("scancodemodel+" + storeId); @@ -325,7 +328,7 @@ public class PrinterServiceImpl implements PrinterService { String error = jsonObject.getString("error"); if ("18".equals(error)) { getToken(storeId); - printCardValueReport(cardValue,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade); + printCardValueReport(cardValue,storeId,receiptPrinting,mtUser,userBalance,ljUserGrade,orderNo); } } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintCardValueReport.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintCardValueReport.java index a9fdcce64..285b2198d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintCardValueReport.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintCardValueReport.java @@ -83,39 +83,38 @@ public class PrintCardValueReport { System.out.println( receiptPrinting.getPrintTemplateTop()); receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("xxxxx","32131566313655")); - if(mtUser.getUserNo()!=null){ + if(mtUser!=null&&mtUser.getUserNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("kkkkk",mtUser.getUserNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("卡号:kkkkk\r\n","")); } - if(mtUser.getCarNo()!=null){ + if(mtUser!=null&&mtUser.getCarNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ccccc",mtUser.getCarNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("车牌号:ccccc\r\n","")); } - if(ljUserGrade.getName()!=null){ + if(ljUserGrade!=null&&ljUserGrade.getName()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ddddd",ljUserGrade.getName())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("等级:ddddd\r\n","")); } - if(mtUser.getMobile()!=null){ + if(mtUser!=null&&mtUser.getMobile()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("sssss",mtUser.getMobile())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("手机号:sssss\r\n","")); } - if(userBalance.getCardBalance().toString()!=null){ + if(userBalance!=null&&userBalance.getCardBalance().toString()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("yyyyy",userBalance.getCardBalance().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("余额:yyyyy\r\n","")); } - if(userBalance.getPoints().toString()!=null){ + if(userBalance!=null&&userBalance.getPoints().toString()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("jjjjj",userBalance.getPoints().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("积分:jjjjj\r\n","")); } - if (ObjectUtil.isNotEmpty(handover.get("oilOrder"))) { - + if (allOrderInfoVo.getType().equals("1")) { sb.append(""); List> o = (List>)handover.get("oilOrder"); for (Map stringStringMap : o) { diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintOilOrderReport.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintOilOrderReport.java index 7e0e505b0..96dcf0c11 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintOilOrderReport.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/PrintOilOrderReport.java @@ -95,6 +95,11 @@ public class PrintOilOrderReport { // sb.append("
谢谢惠顾,欢迎下次光临!
"); // // return sb.toString(); + String orderNo=null; + List> o1 = (List>)handover.get("oilOrder"); + for (Map stringStringMap : o1) { + orderNo=stringStringMap.get("orderNo"); + } StringBuilder sb=new StringBuilder(); LocalDateTime now = LocalDateTime.now(); @@ -114,33 +119,33 @@ public class PrintOilOrderReport { } System.out.println( receiptPrinting.getPrintTemplateTop()); - receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("xxxxx","32131566313655")); - if(mtUser.getUserNo()!=null){ + receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("xxxxx",orderNo)); + if(mtUser!=null&&mtUser.getUserNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("kkkkk",mtUser.getUserNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("卡号:kkkkk\r\n","")); } - if(mtUser.getCarNo()!=null){ + if(mtUser!=null&&mtUser.getCarNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ccccc",mtUser.getCarNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("车牌号:ccccc\r\n","")); } - if(ljUserGrade.getName()!=null){ + if(ljUserGrade!=null &&ljUserGrade.getName()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ddddd",ljUserGrade.getName())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("等级:ddddd\r\n","")); } - if(mtUser.getMobile()!=null){ + if(mtUser!=null&&mtUser.getMobile()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("sssss",mtUser.getMobile())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("手机号:sssss\r\n","")); } - if(userBalance.getCardBalance().toString()!=null){ + if(userBalance!=null&&userBalance.getCardBalance()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("yyyyy",userBalance.getCardBalance().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("余额:yyyyy\r\n","")); } - if(userBalance.getPoints().toString()!=null){ + if(userBalance!=null&&userBalance.getPoints().toString()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("jjjjj",userBalance.getPoints().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("积分:jjjjj\r\n","")); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/RePrintOilOrderReport.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/RePrintOilOrderReport.java index cbe6c7703..4c9fc7bf0 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/RePrintOilOrderReport.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/printer/template/RePrintOilOrderReport.java @@ -124,39 +124,38 @@ public class RePrintOilOrderReport { System.out.println( receiptPrinting.getPrintTemplateTop()); receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("xxxxx","32131566313655")); - if(mtUser.getUserNo()!=null){ + if(mtUser!=null&&mtUser.getUserNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("kkkkk",mtUser.getUserNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("卡号:kkkkk\r\n","")); } - if(mtUser.getCarNo()!=null){ + if( mtUser!=null && mtUser.getCarNo()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ccccc",mtUser.getCarNo())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("车牌号:ccccc\r\n","")); } - if(ljUserGrade.getName()!=null){ + if(ljUserGrade!=null&&ljUserGrade.getName()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("ddddd",ljUserGrade.getName())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("等级:ddddd\r\n","")); } - if(mtUser.getMobile()!=null){ + if(mtUser!=null && mtUser.getMobile()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("sssss",mtUser.getMobile())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("手机号:sssss\r\n","")); } - if(userBalance.getCardBalance().toString()!=null){ + if(userBalance!=null && userBalance.getCardBalance().toString()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("yyyyy",userBalance.getCardBalance().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("余额:yyyyy\r\n","")); } - if(userBalance.getPoints().toString()!=null){ + if(userBalance!=null && userBalance.getPoints().toString()!=null){ receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("jjjjj",userBalance.getPoints().toString())); }else { receiptPrinting.setPrintTemplateTop(receiptPrinting.getPrintTemplateTop().replace("积分:jjjjj\r\n","")); } - if (ObjectUtil.isNotEmpty(handover.get("oilOrder"))) { - + if (allOrderInfoVo.getType().equals("1")) { sb.append("
油品金额
"); List> o = (List>)handover.get("oilOrder"); for (Map stringStringMap : o) { diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue index 9a8138478..9600b6665 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/newHome.vue @@ -720,7 +720,11 @@ export default { flag: 1, jishuqi: 0, continuePolling: true, // 控制轮询的变量 - sendCouponList: [] + sendCouponList: [], + oilOrder: { + orderNo: null, + payUser: null + }, } }, watch: { @@ -1074,6 +1078,8 @@ export default { await getCheckTheStatusOfYourPaymentApi(id).then(async response => { if (response.data != null) { const payStatus = response.data.payStatus + this.oilOrder.orderNo=response.data.paymentNo + this.oilOrder.payUser=response.data.mobile if (payStatus === "unpaid") { this_.isQuery = true; } else if (payStatus === "paid") { @@ -1207,7 +1213,6 @@ export default { let payTypeText = payTypeMap[this.payType] || '小程序码'; let f = { - oilOrder: oilOrderR, goodsOrder: goodsOrderR, payType: payTypeText, unitName: "", // 挂账单位 @@ -1248,8 +1253,10 @@ export default { console.log(1226) let payTypeText = payTypeMap[this.payForm.paymentType] let actualPay = this.payForm.paymentType == 'CASH' ? this.payForm.authCode:this.payForm.realyPayBills - + let oilOrderR = [] + oilOrderR.push(this.oilOrder) let a = { + oilOrder: oilOrderR, // 充值金额 realyPayBills:this.payForm.realyPayBills, //赠送金额 diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue b/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue index 5270aecd4..f19baad62 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/writeList.vue @@ -61,7 +61,8 @@
油品金额