diff --git a/fuintAdmin/src/api/order/cardvaluerecord.js b/fuintAdmin/src/api/order/cardvaluerecord.js index 4ee3177e3..52041040e 100644 --- a/fuintAdmin/src/api/order/cardvaluerecord.js +++ b/fuintAdmin/src/api/order/cardvaluerecord.js @@ -9,6 +9,14 @@ export function listCardValueRecord(cardValueRecord) { }) } +// 查询挂账信息列表 +export function listCardValueRecords(cardValueRecord) { + return request({ + url: '/business/marketingActivity/cardValueRecord/list', + method: 'get', + params: cardValueRecord + }) +} // 查询挂账信息列表 export function cardValueRecordInfo(id) { return request({ diff --git a/fuintAdmin/src/views/order/order_Added.vue b/fuintAdmin/src/views/order/order_Added.vue index 8cc335577..be6c96130 100644 --- a/fuintAdmin/src/views/order/order_Added.vue +++ b/fuintAdmin/src/views/order/order_Added.vue @@ -330,6 +330,8 @@ export default { drawer:false, // 挂账信息 record:{}, + // 是否为当天时间 + isSysDate:false, } }, created() { @@ -339,6 +341,7 @@ export default { start.setSeconds(0) start.setMilliseconds(0) this.dateRange = [start,new Date()]; + this.isSysDate = true this.getList() this.getPayList() }, @@ -390,9 +393,20 @@ export default { if (val!=undefined){ this.queryParams.page = val } - listHangBill(this.addDateRange(this.queryParams, this.dateRange)).then( response => { + + let dateRange1 = this.dateRange + let dateRange = [] + if (this.isSysDate){ + dateRange.push(dateRange1[0].toLocaleDateString()) + dateRange.push(dateRange1[1].toLocaleDateString()) + }else { + dateRange = this.dateRange + } + + listHangBill(this.addDateRange(this.queryParams, dateRange)).then( response => { this.hangBillList = response.data.records this.total = response.data.total; + this.isSysDate = false }) this.getStatistic(); }, diff --git a/fuintAdmin/src/views/order/order_Cashier.vue b/fuintAdmin/src/views/order/order_Cashier.vue index 7e1e982e2..6050fc213 100644 --- a/fuintAdmin/src/views/order/order_Cashier.vue +++ b/fuintAdmin/src/views/order/order_Cashier.vue @@ -27,7 +27,7 @@ type="datetimerange" range-separator="至" start-placeholder="开始日期" - end-placeholder="结束日期" + end-placeholder="结束日期" @change="lookTime" > @@ -95,7 +95,7 @@ - + @@ -187,14 +187,27 @@ {{ cashierOrder.amount }} {{ cashierOrder.oilOrderAmount }} {{ cashierOrder.goodsOrderAmount }} + + {{ oilInfo[0].couponAmount || 0 }} + + + {{ oilInfo[0].deductionAmount || 0 }} + + + {{ cashierOrder.oilDiscountAmount - oilInfo[0].deductionAmount - oilInfo[0].couponAmount || 0 }} + {{ cashierOrder.oilDiscountAmount }} {{ cashierOrder.goodsDiscountAmount }} + {{ cashierOrder.oilPayAmount }} + {{ cashierOrder.goodsPayAmount }} {{ cashierOrder.payAmount }} - - {{ cashierOrder.balanceAmount || 0 }} + + {{ oilInfo[0].balanceAmount }} + 0 - - {{ cashierOrder.oilCardAmount || 0 }} + + {{ oilInfo[0].oilCardAmount }} + 0 {{ cashierOrder.seekZero }} @@ -220,34 +233,46 @@
- - --> + + - :data="oilInfo" - style="width: 100%"> - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + @@ -331,6 +365,8 @@ import {refundApi} from "@/api/order/refund"; loading:false, dialogVisible:false, dialogRefund:false, + // 是否为当天时间 + isSysDate:false, // 员工列表 staffList:[], // 日期范围 @@ -361,12 +397,12 @@ import {refundApi} from "@/api/order/refund"; start.setSeconds(0) start.setMilliseconds(0) this.dateRange = [start,new Date()]; + this.isSysDate = true this.getList(); this.getOrderStatistics(); this.getStaffList(); }, methods:{ - exportExcelCashier() { exportExcelCashierApi(this.addDateRange(this.queryParams, this.dateRange)).then(res=>{ const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' }); @@ -475,11 +511,11 @@ import {refundApi} from "@/api/order/refund"; }, // 获取订单详情 getOrdersInfo(id){ - this.dialogVisible = true; cashierOrder(id).then( response => { this.cashierOrder = response.data this.getOilList(this.cashierOrder.orderNo) this.getGoodsLists(this.cashierOrder.goodsOrderId) + this.dialogVisible = true; }) }, getOilList(orderNo){ @@ -497,9 +533,20 @@ import {refundApi} from "@/api/order/refund"; if (val!=undefined){ this.queryParams.page = val } - listCashierOrder(this.addDateRange(this.queryParams, this.dateRange)).then( response => { + + let dateRange1 = this.dateRange + let dateRange = [] + if (this.isSysDate){ + dateRange.push(dateRange1[0].toLocaleDateString()) + dateRange.push(dateRange1[1].toLocaleDateString()) + }else { + dateRange = this.dateRange + } + + listCashierOrder(this.addDateRange(this.queryParams, dateRange)).then( response => { this.orderList = response.data.records; this.total = response.data.total; + this.isSysDate = false }) this.getSeekZero(val) }, diff --git a/fuintAdmin/src/views/order/order_Goods.vue b/fuintAdmin/src/views/order/order_Goods.vue index 2d59d894a..bb8b22dda 100644 --- a/fuintAdmin/src/views/order/order_Goods.vue +++ b/fuintAdmin/src/views/order/order_Goods.vue @@ -112,19 +112,20 @@ - - - + + + + + + + + + + + + + @@ -284,6 +285,8 @@ export default { alipay:'0', cash:'0', }, + // 是否为当天时间 + isSysDate:false, } }, created() { @@ -293,6 +296,7 @@ export default { start.setSeconds(0) start.setMilliseconds(0) this.dateRange = [start,new Date()]; + this.isSysDate = true this.getList(); this.getOrderStatistics(); this.getStaffList(); @@ -415,10 +419,10 @@ export default { }, // 获取商品详情 getGoods(id){ - this.open = true; - this.title = "商品详情" getOrderGoods({orderId:id}).then( response => { this.goodsList = response.data + this.open = true; + this.title = "商品详情" }) }, // 获取员工姓名 @@ -442,11 +446,22 @@ export default { if (val!=undefined){ this.queryParams.page = val } + + let dateRange1 = this.dateRange + let dateRange = [] + if (this.isSysDate){ + dateRange.push(dateRange1[0].toLocaleDateString()) + dateRange.push(dateRange1[1].toLocaleDateString()) + }else { + dateRange = this.dateRange + } + this.loading = true; - listOrder(this.addDateRange(this.queryParams, this.dateRange)).then( response => { + listOrder(this.addDateRange(this.queryParams, dateRange)).then( response => { this.list = response.data.records; this.total = response.data.total; this.loading = false; + this.isSysDate = false }) // const app = this; // app.loading = true; diff --git a/fuintAdmin/src/views/order/order_Oil.vue b/fuintAdmin/src/views/order/order_Oil.vue index 27e5a1479..ea4b59967 100644 --- a/fuintAdmin/src/views/order/order_Oil.vue +++ b/fuintAdmin/src/views/order/order_Oil.vue @@ -366,7 +366,9 @@ wechat:'0', alipay:'0', cash:'0', - } + }, + // 是否为当天时间 + isSysDate:false, } }, created() { @@ -376,6 +378,7 @@ start.setSeconds(0) start.setMilliseconds(0) this.dateRange = [start,new Date()]; + this.isSysDate = true this.getStaffList(); this.getOrderStatistics(); this.getList(); @@ -610,9 +613,20 @@ if (val!=undefined){ this.queryParams.page = val } - listOilOrder(this.addDateRange(this.queryParams, this.dateRange)).then( response => { + + let dateRange1 = this.dateRange + let dateRange = [] + if (this.isSysDate){ + dateRange.push(dateRange1[0].toLocaleDateString()) + dateRange.push(dateRange1[1].toLocaleDateString()) + }else { + dateRange = this.dateRange + } + + listOilOrder(this.addDateRange(this.queryParams, dateRange)).then( response => { this.oilOrderList = response.data.records; this.total = response.data.total; + this.isSysDate = false }) }, // 搜索按钮操作 diff --git a/fuintAdmin/src/views/order/order_Vip.vue b/fuintAdmin/src/views/order/order_Vip.vue index a054e42fd..46dbe6317 100644 --- a/fuintAdmin/src/views/order/order_Vip.vue +++ b/fuintAdmin/src/views/order/order_Vip.vue @@ -44,18 +44,18 @@ - - - - - - - - - - - - + + + 搜索 重置 @@ -112,54 +112,60 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + + + - - - - - + + + @@ -247,7 +253,12 @@