From 3bf7dc3b7039db22333fa3c34e0bcdf75330415a Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Thu, 1 Feb 2024 17:52:17 +0800 Subject: [PATCH] bug --- .../convenienceStore/purchase/details.vue | 6 +- fuintAdmin/src/views/member/userInfo.vue | 225 ++++++++++-------- fuintAdmin/src/views/staff/list.vue | 8 +- .../src/views/components/Service/staff.vue | 8 +- .../order/mapper/xml/CashierOrderMapper.xml | 4 +- .../order/mapper/xml/OilOrderMapper.xml | 4 +- .../views/cashier/NewComponents/credit.vue | 24 +- .../cashier/orderComponents/order_Cashier.vue | 96 ++++++-- fuintCashierWeb/src/views/details/index.vue | 34 ++- 9 files changed, 260 insertions(+), 149 deletions(-) diff --git a/fuintAdmin/src/views/convenienceStore/purchase/details.vue b/fuintAdmin/src/views/convenienceStore/purchase/details.vue index d3ab80dbb..2e6b8322d 100644 --- a/fuintAdmin/src/views/convenienceStore/purchase/details.vue +++ b/fuintAdmin/src/views/convenienceStore/purchase/details.vue @@ -239,7 +239,7 @@ import { export default { - name: "details", + name: "details1", props:[ 'PpurchaseId', 'PorderNumber', @@ -317,7 +317,6 @@ export default { }, async created() { - this.purchaseForm.purchaseId = this.$props.PpurchaseId this.purchaseId = this.$props.PpurchaseId this.queryParams.purchaseId = this.$props.PpurchaseId @@ -350,6 +349,7 @@ export default { this.getQueryList(); this.JudgmentButton(); }, + methods: { getDetailsList() { let this_ = this @@ -363,7 +363,7 @@ export default { let this_ = this listLJGoods(this_.commodityForm).then(res=>{ this_.commodityList = res.data.records; - this.commodityForm.total = response.data.total; + this.commodityForm.total = res.data.total; // this_.sumMethod(res.data.records); }) }, diff --git a/fuintAdmin/src/views/member/userInfo.vue b/fuintAdmin/src/views/member/userInfo.vue index 84aa9871d..c8e7599d6 100644 --- a/fuintAdmin/src/views/member/userInfo.vue +++ b/fuintAdmin/src/views/member/userInfo.vue @@ -101,16 +101,24 @@ - + + + 囤油卡余额 + + {{ item.oilName ? item.type + item.oilName : item.type }} + {{ item.refuelMoney || 0.00 }} + + @@ -956,7 +964,7 @@ export default { id: '', // 会员信息 form: {}, - refuelMoney:0, + refuelMoney:[], form1: {}, cardChildPhones: "", // 加油总金额 @@ -1402,7 +1410,8 @@ export default { this.form = response.data; if (response.data.refuelMoney){ let refuelMoney = JSON.parse(response.data.refuelMoney) - _this.refuelMoney = parseFloat(refuelMoney[0].refuelMoney) + _this.refuelMoney = refuelMoney + // _this.refuelMoney = parseFloat(refuelMoney[0].refuelMoney) } this.getGrade(response.data.gradeId); }); @@ -1806,114 +1815,132 @@ export default { diff --git a/fuintAdmin/src/views/staff/list.vue b/fuintAdmin/src/views/staff/list.vue index bf211041b..bba0f0443 100644 --- a/fuintAdmin/src/views/staff/list.vue +++ b/fuintAdmin/src/views/staff/list.vue @@ -89,7 +89,7 @@ - + @@ -242,7 +242,7 @@ - + - 状态禁用后,当前账户则无法进行登录和操作 - 状态禁用后,当前账户... + 状态禁用后,当前账号则无法进行登录和操作 + 状态禁用后,当前账号... diff --git a/fuintAdmin_zt/src/views/components/Service/staff.vue b/fuintAdmin_zt/src/views/components/Service/staff.vue index 070fb5b07..ee7c38b69 100644 --- a/fuintAdmin_zt/src/views/components/Service/staff.vue +++ b/fuintAdmin_zt/src/views/components/Service/staff.vue @@ -82,7 +82,7 @@ - + @@ -156,7 +156,7 @@ - + - 状态禁用后,当前账户则无法进行登录和操作 - 状态禁用后,当前账户则无法进行登... + 状态禁用后,当前账号则无法进行登录和操作 + 状态禁用后,当前账号则无法进行登... diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml index 6851a89de..04a6fee07 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/CashierOrderMapper.xml @@ -19,10 +19,10 @@ and terminal like concat('%', #{order.terminal}, '%') - and date_format(pay_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d') + and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d') - and date_format(pay_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d') + and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d') order by create_time desc diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml index 6534dd6ad..02a73bb5d 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml @@ -34,10 +34,10 @@ and pay_user like concat('%', #{order.payUser}, '%') - and date_format(pay_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d') + and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d') - and date_format(pay_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d') + and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d') order by create_time desc diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/credit.vue b/fuintCashierWeb/src/views/cashier/NewComponents/credit.vue index 6cfb03b5f..ad02e5344 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/credit.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/credit.vue @@ -154,31 +154,31 @@ - - - - - + + + + + - - + + 挂账 归还 - - + + 未归还 已归还 部分归还 - + - - + + {{ parseTime(scope.row.createTime) }} diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue index 8ef23072d..5630a3b3e 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue @@ -19,16 +19,27 @@ + + + + + + + + + + + v-model="beginTime" + type="datetime" + placeholder="开始日期"> + + 至 + + 搜索 @@ -95,25 +106,37 @@ - - - - - - + + + + + + {{scope.row.oilOrderAmount ? scope.row.oilOrderAmount : '0'}} - + + + {{scope.row.goodsOrderAmount ? scope.row.goodsOrderAmount : '0'}} + + + + + + + {{scope.row.oilOrderAmount ? scope.row.oilOrderAmount : '0'}} + + + {{scope.row.goodsOrderAmount ? scope.row.goodsOrderAmount : '0'}} - - + + 未支付 已支付 @@ -126,6 +149,11 @@ {{ scope.row.payTime ? parseTime(scope.row.payTime):"--" }} + + + {{ getRealName(staffList,scope.row.staffId) }} + + {{ cashierOrder.goodsDiscountAmount }} {{ cashierOrder.payAmount }} - {{ (cashierOrder.oilOrderAmount - cashierOrder.oilDiscountAmount - cashierOrder.payAmount).toFixed(2) || 0 }} + + {{ (cashierOrder.oilOrderAmount - cashierOrder.oilDiscountAmount - (cashierOrder.payAmount-cashierOrder.goodsOrderAmount-cashierOrder.seekZero)).toFixed(2) || 0 }} + 0 {{ cashierOrder.seekZero }} @@ -352,6 +384,7 @@ import {exportExcelCashierApi} from "@/api/order/exportExcel"; import {refundApi} from "@/api/cashier/refund"; import {getLodop} from "@/api/LodopFuncs"; import {getOilNumberGun} from "@/api/cashier/oilGuns"; +import {formatDate} from "@/utils"; export default { name: "order_Cashier", @@ -376,6 +409,8 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; staffList:[], // 日期范围 dateRange: [], + beginTime:"", + endTime:"", // 收银台订单列表 orderList:[], // 查询参数 @@ -404,6 +439,8 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; methods:{ exportExcelCashier() { + this.dateRange.push(this.beginTime) + this.dateRange.push(this.endTime) exportExcelCashierApi(this.addDateRange(this.queryParams, this.dateRange)).then(res=>{ const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); this.$download.saveAs(blob,'收银台订单统计.xLsx') @@ -412,6 +449,8 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; // 获取订单统计信息 getOrderStatistics() { + this.dateRange.push(this.beginTime) + this.dateRange.push(this.endTime) orderStatisticsApi(this.addDateRange(this.queryParams, this.dateRange)).then(res=>{ this.orderStatistics = res.data }) @@ -647,6 +686,21 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; if (val!=undefined){ this.queryParams.page = val } + + let time1 = "" + let time2 = "" + if (this.beginTime && this.endTime){ + let beginTime = this.beginTime.getTime() + let endTime = this.endTime.getTime() + // time1 = formatDate(beginTime, 'yyyy-MM-dd') + // time2 = formatDate(endTime, 'yyyy-MM-dd') + time1 = new Date(beginTime) + time2 = new Date(endTime) + this.$modal.msgError(time1) + } + // this.$modal.msgError() + this.dateRange.push(time1) + this.dateRange.push(time2) listCashierOrder(this.addDateRange(this.queryParams, this.dateRange)).then( response => { this.orderList = response.data.records; this.total = response.data.total; @@ -657,6 +711,8 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; if (val!=undefined){ this.queryParams.page = val } + this.dateRange.push(this.beginTime) + this.dateRange.push(this.endTime) cashierOrderSeekZeroAmount(this.addDateRange(this.queryParams, this.dateRange)).then( response => { if (response.data) { this.seekZeroAmount = response.data @@ -684,6 +740,8 @@ import {getOilNumberGun} from "@/api/cashier/oilGuns"; page: 1, pageSize: 10, } + this.beginTime = "" + this.endTime = "" // this.resetForm("queryForm"); this.handleQuery(); }, diff --git a/fuintCashierWeb/src/views/details/index.vue b/fuintCashierWeb/src/views/details/index.vue index 6b4d0afcd..6df97a480 100644 --- a/fuintCashierWeb/src/views/details/index.vue +++ b/fuintCashierWeb/src/views/details/index.vue @@ -102,16 +102,23 @@ - + - + + 囤油卡余额 + + {{ item.oilName ? item.type + item.oilName : item.type }} + {{ item.refuelMoney || 0.00 }} + + @@ -1403,7 +1410,8 @@ export default { this.form = response.data; if (response.data.refuelMoney){ let refuelMoney = JSON.parse(response.data.refuelMoney) - _this.refuelMoney = parseFloat(refuelMoney[0].refuelMoney) + _this.refuelMoney = refuelMoney + // _this.refuelMoney = parseFloat(refuelMoney[0].refuelMoney) } this.getGrade(response.data.gradeId); }); @@ -1921,4 +1929,22 @@ export default { margin: 0 10px; margin-bottom: 20px; } +.box{ + width: 200px; + box-sizing: border-box; + padding: 10px; + background: #f9f9f9; + height: 86px; + margin-right: 10px; +} +.size-hui{ + font-size: 14px; + margin-bottom: 10px; + margin-top: 10px; + color: grey; +} +.size-bole{ + font-weight: 400; + font-size: 20px; +}