From 249b30da4df5c4c451fb890eee3e38d2c196a949 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Sat, 27 Jan 2024 09:05:50 +0800
Subject: [PATCH 1/8] bug
---
fuintAdmin/src/api/order/cashierorder.js | 9 +++
fuintAdmin/src/views/order/order_Cashier.vue | 33 +++++++++-
.../src/views/components/Service/staff.vue | 6 +-
.../com/fuint/api/fuyou/entity/Const.java | 4 +-
.../cardValue/dto/CardValueRecordDTO.java | 1 +
.../mapper/xml/CardValueRecordMapper.xml | 11 +++-
.../controller/CashierOrderController.java | 16 +++++
.../order/mapper/CashierOrderMapper.java | 8 +++
.../order/mapper/xml/CashierOrderMapper.xml | 24 +++++++-
.../order/service/CashierOrderService.java | 8 +++
.../service/impl/CashierOrderServiceImpl.java | 8 +++
.../src/api/cashier/cashierorder.js | 9 +++
.../views/cashier/NewComponents/homeindex.vue | 16 +++--
.../cashier/orderComponents/order_Cashier.vue | 38 +++++++++++-
gasStation-uni/pages/index/index.vue | 4 +-
gasStation-uni/pagesMy/VIP/vip.vue | 20 +++++-
.../pagesMy/moneyBalance/moneyBalance.vue | 61 ++++++++++++++++---
.../pagesMy/oilBalance/oilBalance.vue | 46 +++++++++++---
.../pagesRefuel/orderDetail/index.vue | 12 +++-
19 files changed, 292 insertions(+), 42 deletions(-)
diff --git a/fuintAdmin/src/api/order/cashierorder.js b/fuintAdmin/src/api/order/cashierorder.js
index fd4322055..7dbc846a4 100644
--- a/fuintAdmin/src/api/order/cashierorder.js
+++ b/fuintAdmin/src/api/order/cashierorder.js
@@ -9,6 +9,15 @@ export function listCashierOrder(query) {
})
}
+// 查询收银台订单列表
+export function cashierOrderSeekZeroAmount(query) {
+ return request({
+ url: '/business/cashierOrder/seekZeroAmount',
+ method: 'get',
+ params: query
+ })
+}
+
// 根据id查询收银台订单列表
export function cashierOrder(id) {
return request({
diff --git a/fuintAdmin/src/views/order/order_Cashier.vue b/fuintAdmin/src/views/order/order_Cashier.vue
index aa3b848f0..879117606 100644
--- a/fuintAdmin/src/views/order/order_Cashier.vue
+++ b/fuintAdmin/src/views/order/order_Cashier.vue
@@ -65,6 +65,10 @@
商品总金额
{{ orderStatistics.theTotalAmountOfTheItem?orderStatistics.theTotalAmountOfTheItem:0 }}
+
+
找零总金额
+
{{ seekZeroAmount }}
+
@@ -94,6 +98,7 @@
+
@@ -167,17 +172,27 @@
{{ cashierOrder.oilDiscountAmount }}
{{ cashierOrder.goodsDiscountAmount }}
{{ cashierOrder.payAmount }}
+ {{ cashierOrder.seekZero }}
+ 现金
+ 微信
+ 支付宝
+ 银联二维码
+ 小程序码
+
+
未支付
已支付
- 支付失败
+ 支付失败
+ 已退款
+ 退款中
{{ cashierOrder.payTime ? parseTime(cashierOrder.payTime):"--" }}
-
+
@@ -240,6 +280,7 @@
background-color: #ffffff;
box-sizing: border-box;
padding: 10px;
+ margin-top: 10px;
}
.m-b-box {
diff --git a/gasStation-uni/pagesMy/oilBalance/oilBalance.vue b/gasStation-uni/pagesMy/oilBalance/oilBalance.vue
index e6ebbd317..c0c6dc29d 100644
--- a/gasStation-uni/pagesMy/oilBalance/oilBalance.vue
+++ b/gasStation-uni/pagesMy/oilBalance/oilBalance.vue
@@ -17,16 +17,22 @@
已经抵用0.00
-->
-
+
-
+ 全部
+ -->
- 加油站名称
- 充值成功
+
+ {{getStoreName(storeList,item.storeId)}}
+ 已支付
+ 支付失败
+ 已退款
+ 退款中
+ 未支付
油品类型
@@ -48,9 +54,9 @@
订单时间
{{item.createTime}}
-
+
@@ -77,6 +83,8 @@
},
refuelMoney: [],
title: '',
+ // 店铺列表信息
+ storeList: [],
}
@@ -90,8 +98,32 @@
this.list = []
this.getAllOrderList();
this.getUserBalance()
+ this.getStores();
},
methods: {
+ // 查询店铺列表信息
+ getStores() {
+ let _this = this;
+ request({
+ url: "business/storeInformation/store/list",
+ method: 'get',
+ }).then((res) => {
+ _this.storeList = res.data
+ })
+ },
+ getStoreName(list, id) {
+ let name = "";
+ list.forEach(item => {
+ if (item.id == id) {
+ if (item.description != "" && item.description != null) {
+ name = item.name + "(" + item.description + ")"
+ } else {
+ name = item.name
+ }
+ }
+ })
+ return name;
+ },
// 查询全部充值订单
getAllOrderList() {
request({
diff --git a/gasStation-uni/pagesRefuel/orderDetail/index.vue b/gasStation-uni/pagesRefuel/orderDetail/index.vue
index 80c2c0c70..5a0861071 100644
--- a/gasStation-uni/pagesRefuel/orderDetail/index.vue
+++ b/gasStation-uni/pagesRefuel/orderDetail/index.vue
@@ -252,7 +252,7 @@
},
onLoad(e) {
this.orderNo = e.orderNo
- // this.orderNo = "234520240124103747dec173"
+ // this.orderNo = "2345202401261502301206e6"
},
onShow() {
this.getOilOrder();
@@ -469,12 +469,14 @@
}
}
if (falg == false) {
- this.chooseCardBalance(0)
+ // this.chooseCardBalance(0)
// this.chooseGrade(this.user.id,this.user.gradeId)
}
if (this.oilCardRedece==0){
if (!this.isFixingLevel){
this.getPaymentPreferential(this.user.gradeId)
+ }else{
+ this.chooseCardBalance(0)
}
}
},
@@ -491,6 +493,7 @@
this.balanceRedece = this.user.cardBalance
this.deductAmount = (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece-this.balanceRedece).toFixed(2)
this.payAmount = (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece-this.balanceRedece).toFixed(2)
+ console.log(this.oilOrder.orderAmount, this.fullRedece, this.couponRedece, this.gradeRedece,this.balanceRedece,111);
}
}else{
// 使用囤油卡
@@ -511,6 +514,7 @@
}else{
this.deductAmount = (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece).toFixed(2)
this.payAmount = (this.oilOrder.orderAmount - this.fullRedece - this.couponRedece - this.gradeRedece).toFixed(2)
+ console.log(this.oilOrder.orderAmount, this.fullRedece, this.couponRedece, this.gradeRedece,this.balanceRedece,222);
}
},
// 查看是否有可使用的会员等级优惠
@@ -734,9 +738,11 @@
_this.refuelMoneyAfter = JSON.parse(res.data.userVo.refuelMoney)
_this.chooseRefuelMoney()
}else{
- _this.chooseCardBalance(0)
+
if (!this.isFixingLevel){
_this.getPaymentPreferential(this.user.gradeId)
+ }else{
+ _this.chooseCardBalance(0)
}
}
console.log("afterGrade");
From ba1a17ff85e29719979d5ecb3497a3e5cb631be1 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, 27 Jan 2024 10:08:26 +0800
Subject: [PATCH 2/8] =?UTF-8?q?=E9=A2=86=E5=88=B8bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CardFavorableRecordController.java | 12 +++++++
.../dto/CardFavorableAdnUserDTO.java | 13 +++++++
.../service/CardFavorableRecordService.java | 8 +++++
.../impl/CardFavorableRecordServiceImpl.java | 34 +++++++++++++++++++
4 files changed, 67 insertions(+)
create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/dto/CardFavorableAdnUserDTO.java
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java
index fff34649a..ada0f3ec9 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableRecordController.java
@@ -3,6 +3,7 @@ package com.fuint.business.marketingActivity.cardFavorable.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fuint.business.marketingActivity.activeExchange.vo.PaymentActiveVO;
+import com.fuint.business.marketingActivity.cardFavorable.dto.CardFavorableAdnUserDTO;
import com.fuint.business.marketingActivity.cardFavorable.dto.IdListDTO;
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorable;
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
@@ -96,6 +97,17 @@ public class CardFavorableRecordController extends BaseController {
return getSuccessResult(this.cardFavorableRecordService.drawDown(idList));
}
+ /**
+ * pc端一键发券接口
+ *
+ * @param cardFavorableAdnUserDTO
+ * @return 新增结果
+ */
+ @PostMapping("issueCardFavorable")
+ public ResponseObject issueCardFavorable(@RequestBody CardFavorableAdnUserDTO cardFavorableAdnUserDTO) {
+ return getSuccessResult(this.cardFavorableRecordService.issueCardFavorable(cardFavorableAdnUserDTO));
+ }
+
/**
* 小程序端判断是否领取优惠券
* @return 新增结果
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/dto/CardFavorableAdnUserDTO.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/dto/CardFavorableAdnUserDTO.java
new file mode 100644
index 000000000..dd19f0820
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/dto/CardFavorableAdnUserDTO.java
@@ -0,0 +1,13 @@
+package com.fuint.business.marketingActivity.cardFavorable.dto;
+
+import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorable;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class CardFavorableAdnUserDTO extends CardFavorable {
+ //会员列表
+ private List userIds;
+ private List cardFavorableIds;
+}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java
index 1caea10f4..3e860cfa2 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/CardFavorableRecordService.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.business.marketingActivity.activeExchange.vo.PaymentActiveVO;
+import com.fuint.business.marketingActivity.cardFavorable.dto.CardFavorableAdnUserDTO;
import com.fuint.business.marketingActivity.cardFavorable.dto.IdListDTO;
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
import com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableRecordVO;
@@ -63,5 +64,12 @@ public interface CardFavorableRecordService extends IService userIds = cardFavorableAdnUserDTO.getUserIds();
+ //优惠券ids
+ List cardIds = cardFavorableAdnUserDTO.getCardFavorableIds();
+ for (Integer cardId : cardIds) {
+ CardFavorableRecord cardFavorableRecord = new CardFavorableRecord();
+ if (CollectionUtils.isNotEmpty(userIds)){
+ for (Integer userId : userIds) {
+ LJUser userInfo = userService.queryUserByUserId(userId);
+ cardFavorableRecord.setCardFavorableId(cardId);
+ cardFavorableRecord.setStoreId(nowAccountInfo.getStoreId());
+ cardFavorableRecord.setChainStorId(nowAccountInfo.getChainStoreId());
+ cardFavorableRecord.setName(userInfo.getName());
+ cardFavorableRecord.setMobile(userInfo.getMobile());
+ cardFavorableRecord.setStatus("0");
+ cardFavorableRecord.setExchangeFrom("店铺一键送券!");
+ flag = addCardFavorableRecord(cardFavorableRecord);
+ }
+ }
+ }
+ return flag;
+ }
}
From 32cb50848f41b17cc136ce8bd8ffaf73ff3e5868 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Sat, 27 Jan 2024 10:51:32 +0800
Subject: [PATCH 3/8] bug
---
.../views/staffCommission/staffCommission.vue | 18 +++++-----
.../fuyou/service/impl/FyPayServiceImpl.java | 6 +++-
.../impl/StaffCommissionServiceImpl.java | 2 +-
.../mapper/xml/SaleStatisticMapper.xml | 2 +-
.../service/SaleDetailService.java | 2 +-
.../service/impl/SaleDetailServiceImpl.java | 36 ++++++++++++++-----
.../order/service/OilOrderService.java | 9 +++++
.../order/service/OrderGoodsService.java | 4 +--
.../service/impl/OilOrderServiceImpl.java | 19 ++++++++--
.../service/impl/OrderGoodsServiceImpl.java | 17 +++++++--
gasStation-uni/pages/index/index.vue | 16 +++++++--
gasStation-uni/pagesMy/invite/invite.vue | 2 +-
12 files changed, 102 insertions(+), 31 deletions(-)
diff --git a/fuintAdmin/src/views/staffCommission/staffCommission.vue b/fuintAdmin/src/views/staffCommission/staffCommission.vue
index efc1ff946..0d83b2674 100644
--- a/fuintAdmin/src/views/staffCommission/staffCommission.vue
+++ b/fuintAdmin/src/views/staffCommission/staffCommission.vue
@@ -25,9 +25,9 @@
clearable
placeholder="全部"
>
-
-
-
+
+
+
@@ -77,9 +77,9 @@
- 油品订单出售
- 商品订单出售
- 储值卡充值
+ 油品订单提成
+ 商品订单提成
+ 储值卡充值提成
油品退款
商品退款
@@ -205,7 +205,9 @@
- {{ dict.label }}
+
+
+
@@ -357,7 +359,7 @@ export default {
// 表单校验
rules: {
name: [
- { required: true, message: "供应商名称不能为空", trigger: "blur" },
+ { required: true, message: "提成方案名称不能为空", trigger: "blur" },
],
commissionSource: [
{ required: true, message: "请选择提成来源", trigger: "blur" },
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/service/impl/FyPayServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/service/impl/FyPayServiceImpl.java
index 242e6641b..bd88c2538 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/service/impl/FyPayServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/service/impl/FyPayServiceImpl.java
@@ -206,6 +206,10 @@ public class FyPayServiceImpl implements FyPayService {
// 商品订单
goodsOrder.setStatus("paid");
goodsOrder.setPayTime(date);
+ Boolean isMember = false;
+ if (goodsOrder.getUserId()!=null){
+ isMember = true;
+ }
staffCommissionService.countStaffCommission(goodsOrder.getStaffId(),goodsOrder.getStoreId(),goodsOrder.getAmount(),goodsOrder.getPayAmount(),0.0,"2",orderNo);
if (!map1.get("goodsOrder").equals("[]")){
List goods = JSONArray.parseArray(map1.get("goodsOrder"), JSONObject.class);
@@ -214,7 +218,7 @@ public class FyPayServiceImpl implements FyPayService {
orderGoods.setOrderId(goodsOrder.getId());
orderGoods.setGoodsId(Integer.valueOf(good.get("id").toString()));
orderGoods.setNum(Integer.valueOf(good.get("num").toString()));
- orderGoodsService.insertOrderGoods(orderGoods,storeId1);
+ orderGoodsService.insertOrderGoods(orderGoods,storeId1,isMember);
}
}
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/commission/service/impl/StaffCommissionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/commission/service/impl/StaffCommissionServiceImpl.java
index e7a79a6ae..99ee67800 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/commission/service/impl/StaffCommissionServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/commission/service/impl/StaffCommissionServiceImpl.java
@@ -181,7 +181,7 @@ public class StaffCommissionServiceImpl extends ServiceImpl
select sa.*,mg.name,mg.goods_no,mg.pinyin_code,mg.unit from sale_statistic sa
- inner join mt_goods mg on sa.goods_id = mg.id
+ left join mt_goods mg on sa.goods_id = mg.id
- {{this.activeRecommendRecordsList.length}}人
+ {{this.activeRecommendRecordsList.length || 0}}人
邀请人数
From de750590f16b7d69fa588cb19cf65e5ebcd7052f Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Sat, 27 Jan 2024 11:35:35 +0800
Subject: [PATCH 4/8] bug
---
.../service/impl/OilOrderServiceImpl.java | 20 +++++------
gasStation-uni/pagesMy/VIP/vip.vue | 35 ++++++++++++-------
2 files changed, 32 insertions(+), 23 deletions(-)
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 01b2e0d24..38e4f61b5 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
@@ -1339,16 +1339,16 @@ public class OilOrderServiceImpl extends ServiceImpl i
this.insertGrowthValueChange(userid,storeId,addGrowthVal,growthAfter,orderNo);
- CardBalanceChange cardBalanceChange = new CardBalanceChange();
-// 添加余额记录信息
- cardBalanceChange.setUserId(userid);
- cardBalanceChange.setChangeType("0");
- cardBalanceChange.setFromType("油品订单消费");
- cardBalanceChange.setBalance(oilAmount - oilActualPay);
- cardBalanceChange.setOrderNo(orderNo);
- cardBalanceChange.setStoreId(storeId);
-
- cardBalanceChangeService.insertCardBalance(cardBalanceChange);
+// CardBalanceChange cardBalanceChange = new CardBalanceChange();
+//// 添加余额记录信息
+// cardBalanceChange.setUserId(userid);
+// cardBalanceChange.setChangeType("0");
+// cardBalanceChange.setFromType("油品订单消费");
+// cardBalanceChange.setBalance(oilAmount - oilActualPay);
+// cardBalanceChange.setOrderNo(orderNo);
+// cardBalanceChange.setStoreId(storeId);
+//
+// cardBalanceChangeService.insertCardBalance(cardBalanceChange);
}
}
diff --git a/gasStation-uni/pagesMy/VIP/vip.vue b/gasStation-uni/pagesMy/VIP/vip.vue
index a7ca90c9f..65a559424 100644
--- a/gasStation-uni/pagesMy/VIP/vip.vue
+++ b/gasStation-uni/pagesMy/VIP/vip.vue
@@ -214,18 +214,26 @@
methods: {
getPercentage(id){
let grade = {}
- this.userGradeList.forEach(i => {
- if (this.member.gradeId = i.id){
- grade = i
- }
- })
- console.log(this.member);
- this.userGradeList.forEach(item => {
- console.log(item);
- if (item.id == id){
- // this.percentage =
- }
+ request({
+ url: "business/userManager/userGrade/" + this.member.gradeId,
+ method: 'get',
+ }).then((res) => {
+ grade = res.data
+ this.userGradeList.forEach(item => {
+ if (item.id == id){
+ if (grade.grade > item.grade){
+ this.percentage = 100
+ }
+ if (grade.grade < item.grade){
+ this.percentage = 0
+ }
+ if (grade.grade == item.grade){
+ this.percentage = ((this.member.growthValue / item.growthValue) * 100).toFixed(0)
+ }
+ }
+ })
})
+
},
// 获取当前登入用户的等级信息
getMember(){
@@ -234,7 +242,7 @@
method: 'get',
}).then((res) => {
this.member = res.data
- console.log(this.member,1111);
+ this.getPercentage(this.userGrade.id)
})
},
getChainConfig(storeId){
@@ -272,7 +280,7 @@
this.dieselRule = JSON.parse(res.data[0].dieselRule)
this.naturalGasRule = JSON.parse(res.data[0].naturalGasRule)
}
- this.getPercentage(res.data[0].id)
+ // this.getPercentage(res.data[0].id)
}else{
this.isExist = false
}
@@ -286,6 +294,7 @@
this.dieselRule = JSON.parse(this.userGradeList[this.current].dieselRule)
this.naturalGasRule = JSON.parse(this.userGradeList[this.current].naturalGasRule)
}
+ this.getPercentage(this.userGrade.id)
},
goBack() {
uni.navigateBack()
From 39bcd860106b90bfc2792bc70e022554b85add15 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, 27 Jan 2024 13:55:55 +0800
Subject: [PATCH 5/8] =?UTF-8?q?=E9=A2=86=E5=88=B8bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mapper/xml/CardValueRecordMapper.xml | 16 +++++++++++++++-
.../service/impl/CardValueRecordServiceImpl.java | 10 +++++++++-
.../pagesMy/moneyBalance/moneyBalance.vue | 5 +++--
3 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/mapper/xml/CardValueRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/mapper/xml/CardValueRecordMapper.xml
index 29943b5f9..4daead1dc 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/mapper/xml/CardValueRecordMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/mapper/xml/CardValueRecordMapper.xml
@@ -76,7 +76,21 @@
UNION
SELECT '升数卡' AS recordName,payment_type paymentType,mt_user_id mtUserId, recharge_balance rechargeBalance,
income_litres obtain,oil_name oilName,type, create_time createTime, chain_store_id chainStoreId,
- store_id storeId,pay_status payStatus FROM card_fuel_record) AS combined_result
+ store_id storeId,pay_status payStatus FROM card_fuel_record
+ UNION
+ SELECT '储值卡' AS recordName,
+ change_type paymentType,
+ user_id mtUserId,
+ balance rechargeBalance,
+ after_the_change obtain,
+ order_no oilName,
+ from_type type,
+ create_time createTime,
+ chain_store_id chainStoreId,
+ store_id storeId,
+ id payStatus
+ from card_balance_change cbc
+ where change_type = 0) AS combined_result
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
index eb0abd143..79c9a8fb1 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueRecordServiceImpl.java
@@ -676,7 +676,15 @@ public class CardValueRecordServiceImpl extends ServiceImpl selectAllRecord(@Param("page") Page page, CardValueRecordDTO cardValueRecord) {
cardValueRecord.setStoreId(cardValueRecord.getStoreId());
cardValueRecord.setMtUserId(TokenUtil.getNowAccountInfo().getId());
- return this.cardValueRecordMapper.selectAllRecord(page, cardValueRecord);
+ IPage cardValueRecordDTOIPage = this.cardValueRecordMapper.selectAllRecord(page, cardValueRecord);
+ List records = cardValueRecordDTOIPage.getRecords();
+ for (CardValueRecordDTO record : records) {
+ if (record.getPaymentType().equals("0")){
+ record.setPayStatus("paid");
+ record.setPaymentType("xf");
+ }
+ }
+ return cardValueRecordDTOIPage;
}
public void export(HttpServletResponse response, CardValueRecord cardValueRecord) {
diff --git a/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue b/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue
index 545793b48..206b1dc4e 100644
--- a/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue
+++ b/gasStation-uni/pagesMy/moneyBalance/moneyBalance.vue
@@ -40,15 +40,16 @@
微信
支付宝
银联二维码
+ 消费
小程序码
订单金额
- ¥{{item.rechargeBalance}}
+ ¥{{'-'+item.rechargeBalance}}
优惠合计
- ¥{{item.obtain}}
+ ¥{{item.obtain || 0}}
订单时间
From a51ebc2ce33c2056a9769a5265476a23135deac0 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Sat, 27 Jan 2024 14:10:02 +0800
Subject: [PATCH 6/8] bug
---
fuintAdmin/src/api/order/oilorder.js | 8 ++
fuintAdmin/src/views/member/fixingLevel.vue | 10 +-
fuintAdmin/src/views/order/order_Goods.vue | 13 +-
fuintAdmin/src/views/order/order_Oil.vue | 129 ++++++++++++++++-
fuintAdmin/src/views/order/order_Ordinary.vue | 21 +--
fuintAdmin/src/views/order/order_Unpaid.vue | 29 +++-
.../storeInformation/entity/LJStore.java | 3 +
.../service/impl/LJStoreServiceImpl.java | 21 +--
.../views/cashier/NewComponents/homeindex.vue | 7 +-
.../cashier/orderComponents/order_Goods.vue | 13 +-
.../cashier/orderComponents/order_Oil.vue | 130 +++++++++++++++++-
.../orderComponents/order_Ordinary.vue | 21 +--
.../cashier/orderComponents/order_Unpaid.vue | 4 +-
gasStation-uni/pages/index/index.vue | 56 ++++----
gasStation-uni/pagesMy/details/details.vue | 4 +-
.../pagesMy/moneyBalance/moneyBalance.vue | 20 ++-
gasStation-uni/pagesMy/myorder/myorder.vue | 12 +-
17 files changed, 413 insertions(+), 88 deletions(-)
diff --git a/fuintAdmin/src/api/order/oilorder.js b/fuintAdmin/src/api/order/oilorder.js
index 7418e3bdd..63fc72c11 100644
--- a/fuintAdmin/src/api/order/oilorder.js
+++ b/fuintAdmin/src/api/order/oilorder.js
@@ -80,3 +80,11 @@ export function orderStatisticsApi(query) {
}
+// 查询油罐信息
+export function getOilNumberGun() {
+ return request({
+ url: '/business/petrolStationManagement/oilGun/selectByNumberTGUn',
+ method: 'get',
+ })
+}
+
diff --git a/fuintAdmin/src/views/member/fixingLevel.vue b/fuintAdmin/src/views/member/fixingLevel.vue
index 6e98e980d..2c978d993 100644
--- a/fuintAdmin/src/views/member/fixingLevel.vue
+++ b/fuintAdmin/src/views/member/fixingLevel.vue
@@ -2,7 +2,7 @@
-
+
-
+
-
+
@@ -531,7 +531,7 @@
启用
禁用
- 待审核
+
diff --git a/fuintAdmin/src/views/order/order_Goods.vue b/fuintAdmin/src/views/order/order_Goods.vue
index 889dd5454..51e08c789 100644
--- a/fuintAdmin/src/views/order/order_Goods.vue
+++ b/fuintAdmin/src/views/order/order_Goods.vue
@@ -157,6 +157,9 @@
+ 补打
{
+ this.$modal.msgSuccess("打印指令已发送打印机,请查看打印结果");
+ }).catch(() => {});
+ },
// 退款
async handleRefund(id){
diff --git a/fuintAdmin/src/views/order/order_Oil.vue b/fuintAdmin/src/views/order/order_Oil.vue
index fc2239aa8..fd9047e08 100644
--- a/fuintAdmin/src/views/order/order_Oil.vue
+++ b/fuintAdmin/src/views/order/order_Oil.vue
@@ -153,10 +153,13 @@
{{ getVal(terminalList,props.row.terminal) }}
-
+
{{ props.row.remark ? props.row.remark:"--" }}
- 订单备注为系统后台操作备注信息,非用户提交信息
+
+
+
+
@@ -193,7 +196,7 @@
-
+
@@ -201,14 +204,14 @@
-
+
补打
退款
@@ -256,6 +259,42 @@
确 定
+
+
+
+
@@ -326,6 +365,86 @@
this.getUserList();
},
methods:{
+ async printLocally() {
+ //初始化打印函数
+ let LODOP = getLodop(); // 初始化打印
+ LODOP.PRINT_INIT();
+ var bodyStyle = `
+ `
+ var fromHtml = bodyStyle+this.$refs.report.innerHTML
+
+
+ LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", fromHtml);
+
+ LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
+
+ // LODOP.ADD_PRINT_BARCODE(10,40,100,100,'QRCode','123456789');
+ // let preview = LODOP.PREVIEW();
+ // console.log("preview",preview);
+ LODOP.PRINT();
+
+ },
exportExcelOilOrder() {
exportExcelOilOrderApi(this.addDateRange(this.queryParams, this.dateRange)).then(res=>{
const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
diff --git a/fuintAdmin/src/views/order/order_Ordinary.vue b/fuintAdmin/src/views/order/order_Ordinary.vue
index a1aad5242..6e2f45c32 100644
--- a/fuintAdmin/src/views/order/order_Ordinary.vue
+++ b/fuintAdmin/src/views/order/order_Ordinary.vue
@@ -48,24 +48,24 @@
订单总金额
-
{{ orderStatistics.theTotalAmountOfTheOrder }}
+
{{ orderStatistics.theTotalAmountOfTheOrder || 0 }}
实付总金额
-
{{ orderStatistics.theTotalAmountPaid }}
+
{{ orderStatistics.theTotalAmountPaid || 0 }}
油品优惠
-
{{ orderStatistics.oilDiscounts }}
+
{{ orderStatistics.oilDiscounts || 0 }}
油品总金额
-
{{ orderStatistics.theTotalAmountOfOil }}
-
-
-
商品总金额
-
{{ orderStatistics.theTotalAmountOfTheItem?orderStatistics.theTotalAmountOfTheItem:0 }}
+
{{ orderStatistics.theTotalAmountOfOil || 0 }}
+
+
+
+
@@ -90,6 +90,9 @@
{{ getMobile(staffList,props.row.staffId) }}
+
+ {{ props.row.remark ? props.row.remark:"--" }}
+
@@ -126,7 +129,7 @@
-
+
diff --git a/fuintAdmin/src/views/order/order_Unpaid.vue b/fuintAdmin/src/views/order/order_Unpaid.vue
index 81a67a797..85a4a3f01 100644
--- a/fuintAdmin/src/views/order/order_Unpaid.vue
+++ b/fuintAdmin/src/views/order/order_Unpaid.vue
@@ -55,7 +55,7 @@
:label="item.gunName"
:value="item.id">
{{ item.oilName }}
- {{ item.gunName }}号枪
+ {{ item.gunName }}
@@ -144,7 +144,11 @@
-
+
+
+ {{ getVal(terminalList,props.row.terminal) }}
+
+
{{ getName(oilNameList,props.row.oils) }}/{{ getName1(oilGunList,props.row.oilGunNum) }}
@@ -166,10 +170,10 @@
-
+
未支付
- 支付失败
+
@@ -204,7 +208,7 @@