bug
This commit is contained in:
parent
846ce4c33f
commit
d0c8769c5d
@ -9,9 +9,15 @@
|
|||||||
<include refid="selectOrders"></include>
|
<include refid="selectOrders"></include>
|
||||||
<where>
|
<where>
|
||||||
store_id = #{order.storeId}
|
store_id = #{order.storeId}
|
||||||
|
<if test="order.payUser != null and order.payUser != ''">
|
||||||
|
and pay_user like concat('%', #{order.payUser}, '%')
|
||||||
|
</if>
|
||||||
<if test="order.staffId != null and order.staffId != ''">
|
<if test="order.staffId != null and order.staffId != ''">
|
||||||
and staff_id = #{order.staffId}
|
and staff_id = #{order.staffId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="order.payType != null and order.payType != ''">
|
||||||
|
and pay_type = #{order.payType}
|
||||||
|
</if>
|
||||||
<if test="order.orderNo != null and order.orderNo != ''">
|
<if test="order.orderNo != null and order.orderNo != ''">
|
||||||
and order_no like concat('%', #{order.orderNo}, '%')
|
and order_no like concat('%', #{order.orderNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
@ -206,13 +206,16 @@
|
|||||||
</select>
|
</select>
|
||||||
<select id="orderStatistics" resultType="java.util.Map">
|
<select id="orderStatistics" resultType="java.util.Map">
|
||||||
|
|
||||||
select count(*) numberOfProducts, -- 商品笔数
|
SELECT
|
||||||
sum(pay_amount) theTotalAmount, -- 总金额
|
count(*) numberOfProducts,-- 商品笔数
|
||||||
sum(goods_num) theTotalNumberOfUnits, -- 商品总数量
|
sum( pay_amount ) theTotalAmount,-- 总金额
|
||||||
sum(discount) discountAmount, -- 优惠金额
|
sum( goods_num ) theTotalNumberOfUnits,-- 商品总数量
|
||||||
COUNT(CASE WHEN pay_type = 'WECHAT' THEN 0 END) AS wechat, -- 微信
|
sum( discount ) discountAmount,-- 优惠金额
|
||||||
COUNT(CASE WHEN pay_type = 'ALIPAY' THEN 0 END) AS alipay, -- 支付宝
|
sum( CASE WHEN pay_type = 'WECHAT' THEN pay_amount END ) AS wechat,-- 微信
|
||||||
COUNT(CASE WHEN pay_type = 'CASH' THEN 0 END) AS cash -- 现金
|
sum( CASE WHEN pay_type = 'ALIPAY' THEN pay_amount END ) AS alipay,-- 支付宝
|
||||||
|
sum( CASE WHEN pay_type = 'CASH' THEN pay_amount END ) AS cash, -- 现金
|
||||||
|
sum( CASE WHEN pay_type = 'UNIONPAY' THEN pay_amount END ) AS UNIONPAY -- 银联二维码
|
||||||
|
|
||||||
from mt_order
|
from mt_order
|
||||||
<where>
|
<where>
|
||||||
store_id = #{order.storeId}
|
store_id = #{order.storeId}
|
||||||
|
@ -540,9 +540,10 @@
|
|||||||
sum(discount_amount) theTotalAmountOfTheOffer,
|
sum(discount_amount) theTotalAmountOfTheOffer,
|
||||||
sum(oil_num) numberOfTransactions,
|
sum(oil_num) numberOfTransactions,
|
||||||
sum(pay_amount) totalAmountReceived,
|
sum(pay_amount) totalAmountReceived,
|
||||||
COUNT(CASE WHEN pay_type = 'WECHAT' THEN 0 END) AS wechat,
|
sum(CASE WHEN pay_type = 'WECHAT' THEN pay_amount END) AS wechat,
|
||||||
COUNT(CASE WHEN pay_type = 'ALIPAY' THEN 0 END) AS alipay,
|
sum(CASE WHEN pay_type = 'ALIPAY' THEN pay_amount END) AS alipay,
|
||||||
COUNT(CASE WHEN pay_type = 'CASH' THEN 0 END) AS cash
|
sum(CASE WHEN pay_type = 'CASH' THEN pay_amount END) AS cash,
|
||||||
|
sum( CASE WHEN pay_type = 'UNIONPAY' THEN pay_amount END ) AS UNIONPAY
|
||||||
from oil_order
|
from oil_order
|
||||||
<where>
|
<where>
|
||||||
store_id = #{order.storeId}
|
store_id = #{order.storeId}
|
||||||
|
@ -490,7 +490,7 @@
|
|||||||
<el-form-item label="归还方式" prop="payType">
|
<el-form-item label="归还方式" prop="payType">
|
||||||
<el-radio style="margin-left: 0px;margin-bottom: 10px" v-model="payType" v-for="item in payList"
|
<el-radio style="margin-left: 0px;margin-bottom: 10px" v-model="payType" v-for="item in payList"
|
||||||
:key="item.dictValue" :value="item.dictValue"
|
:key="item.dictValue" :value="item.dictValue"
|
||||||
v-if="item.dictValue!='APPLET_CODE'"
|
v-if="item.dictValue=='ALIPAY' || item.dictValue=='WECHAT' || item.dictValue=='UNIONPAY' || item.dictValue=='CASH'"
|
||||||
:label="item.dictValue"
|
:label="item.dictValue"
|
||||||
@input="returnMethod"
|
@input="returnMethod"
|
||||||
border>{{ item.dictLabel }}</el-radio>
|
border>{{ item.dictLabel }}</el-radio>
|
||||||
@ -672,7 +672,7 @@
|
|||||||
@input="changePayType">
|
@input="changePayType">
|
||||||
<el-radio v-for="item in payList"
|
<el-radio v-for="item in payList"
|
||||||
:key="item.dictValue"
|
:key="item.dictValue"
|
||||||
v-if="item.dictValue!='APPLET_CODE'"
|
v-if="item.dictValue=='ALIPAY' || item.dictValue=='WECHAT' || item.dictValue=='UNIONPAY' || item.dictValue=='CASH'"
|
||||||
:value="item.dictValue"
|
:value="item.dictValue"
|
||||||
:label="item.dictValue" border>{{ item.dictLabel }}</el-radio>
|
:label="item.dictValue" border>{{ item.dictLabel }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -928,83 +928,83 @@ import {getLodop} from "@/api/LodopFuncs";
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
async printLocally() {
|
async printLocally() {
|
||||||
//初始化打印函数
|
// //初始化打印函数
|
||||||
let LODOP = getLodop(); // 初始化打印
|
// let LODOP = getLodop(); // 初始化打印
|
||||||
LODOP.PRINT_INIT();
|
// LODOP.PRINT_INIT();
|
||||||
var bodyStyle = `<style>
|
// var bodyStyle = `<style>
|
||||||
.input-box{
|
// .input-box{
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
font-size: 14px;
|
// font-size: 14px;
|
||||||
margin: 5px 0px;
|
// margin: 5px 0px;
|
||||||
}
|
// }
|
||||||
.box-ge{
|
// .box-ge{
|
||||||
border-bottom: 1px solid #000000 ;
|
// border-bottom: 1px solid #000000 ;
|
||||||
box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
padding: 10px;
|
// padding: 10px;
|
||||||
}
|
// }
|
||||||
.box-title{
|
// .box-title{
|
||||||
font-size: 18px;
|
// font-size: 18px;
|
||||||
text-align: center;
|
// text-align: center;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
margin-top: 15px;
|
// margin-top: 15px;
|
||||||
}
|
// }
|
||||||
.input-hui{
|
// .input-hui{
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
font-size: 14px;
|
// font-size: 14px;
|
||||||
margin: 15px 0px;
|
// margin: 15px 0px;
|
||||||
background: #b2b2b2;
|
// background: #b2b2b2;
|
||||||
box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
padding: 5px 0px;
|
// padding: 5px 0px;
|
||||||
}
|
// }
|
||||||
.input-hui-frou{
|
// .input-hui-frou{
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
font-size: 14px;
|
// font-size: 14px;
|
||||||
margin: 15px 0px;
|
// margin: 15px 0px;
|
||||||
background: #b2b2b2;
|
// background: #b2b2b2;
|
||||||
box-sizing: border-box;
|
// box-sizing: border-box;
|
||||||
padding: 5px 0px;
|
// padding: 5px 0px;
|
||||||
div{
|
// div{
|
||||||
width: 25%;
|
// width: 25%;
|
||||||
text-align: left;
|
// text-align: left;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
.input-box-frou{
|
// .input-box-frou{
|
||||||
width: 100%;
|
// width: 100%;
|
||||||
display: flex;
|
// display: flex;
|
||||||
align-items: center;
|
// align-items: center;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
font-size: 14px;
|
// font-size: 14px;
|
||||||
margin: 5px 0px;
|
// margin: 5px 0px;
|
||||||
div{
|
// div{
|
||||||
width: 25%;
|
// width: 25%;
|
||||||
text-align: left;
|
// text-align: left;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
.box-center{
|
// .box-center{
|
||||||
height: 500px;
|
// height: 500px;
|
||||||
}
|
// }
|
||||||
</style>
|
// </style>
|
||||||
`
|
// `
|
||||||
var fromHtml = bodyStyle+this.$refs.report.innerHTML
|
// var fromHtml = bodyStyle+this.$refs.report.innerHTML
|
||||||
|
//
|
||||||
|
//
|
||||||
LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", fromHtml);
|
// LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", fromHtml);
|
||||||
|
//
|
||||||
LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
|
// LODOP.SET_PRINT_MODE("FULL_WIDTH_FOR_OVERFLOW",true);
|
||||||
|
//
|
||||||
// LODOP.ADD_PRINT_BARCODE(10,40,100,100,'QRCode','123456789');
|
// // LODOP.ADD_PRINT_BARCODE(10,40,100,100,'QRCode','123456789');
|
||||||
// let preview = LODOP.PREVIEW();
|
// // let preview = LODOP.PREVIEW();
|
||||||
// console.log("preview",preview);
|
// // console.log("preview",preview);
|
||||||
LODOP.PRINT();
|
// LODOP.PRINT();
|
||||||
|
|
||||||
},
|
},
|
||||||
getStaffList(){
|
getStaffList(){
|
||||||
@ -1242,7 +1242,7 @@ import {getLodop} from "@/api/LodopFuncs";
|
|||||||
this.open4 = false;
|
this.open4 = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
// 收款
|
// 确定收款
|
||||||
async collection(){
|
async collection(){
|
||||||
if (this.payType=="CASH"){
|
if (this.payType=="CASH"){
|
||||||
if (this.authCode==undefined || this.authCode=="" || this.seekZero<0){
|
if (this.authCode==undefined || this.authCode=="" || this.seekZero<0){
|
||||||
@ -1374,6 +1374,7 @@ import {getLodop} from "@/api/LodopFuncs";
|
|||||||
getPayList() {
|
getPayList() {
|
||||||
getDicts("payment_type").then(response => {
|
getDicts("payment_type").then(response => {
|
||||||
this.payList = response.data;
|
this.payList = response.data;
|
||||||
|
console.log(this.payList)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 归还
|
// 归还
|
||||||
|
@ -322,30 +322,8 @@
|
|||||||
<el-button type="primary" @click="ScanCodePayment = false">关闭</el-button>
|
<el-button type="primary" @click="ScanCodePayment = false">关闭</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- <el-dialog-->
|
|
||||||
<!-- title="现金支付"-->
|
<el-dialog
|
||||||
<!-- :visible.sync="cashPayment"-->
|
|
||||||
<!-- width="439px"-->
|
|
||||||
<!-- center-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- <div class="tc-box">-->
|
|
||||||
<!-- <div class="title_">应收款: <span style="color: #F44522">¥{{realAmount}}</span></div>-->
|
|
||||||
<!-- <el-form :model="ruleForm2" :rules="rules2" ref="ruleForm2" label-width="100px" class="demo-ruleForm">-->
|
|
||||||
<!-- <el-form-item label="收款金额" prop="number">-->
|
|
||||||
<!-- <el-input v-model="ruleForm2.number">-->
|
|
||||||
<!-- <template slot="append">元</template>-->
|
|
||||||
<!-- </el-input>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- <div class="t-size">-->
|
|
||||||
<!-- 应找零:<span style="color: #F44522">¥{{getChangeShould}}</span>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- </el-form>-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<!-- <span slot="footer" class="dialog-footer">-->
|
|
||||||
<!-- <el-button type="primary" @click="cashPaymentClick()">确定收款</el-button>-->
|
|
||||||
<!-- </span>-->
|
|
||||||
<!-- </el-dialog>-->
|
|
||||||
<el-dialog :close-on-click-modal="false"
|
|
||||||
title="挂单"
|
title="挂单"
|
||||||
:visible.sync="hangingAnOrder"
|
:visible.sync="hangingAnOrder"
|
||||||
width="542px"
|
width="542px"
|
||||||
@ -1404,6 +1382,10 @@ export default {
|
|||||||
this.$modal.msgError("请先扫码");
|
this.$modal.msgError("请先扫码");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//找零金额
|
||||||
|
this.payForm.seekZero = this.getChangeShould
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
let _this = this;
|
let _this = this;
|
||||||
//小程序码付款
|
//小程序码付款
|
||||||
@ -1521,7 +1503,7 @@ export default {
|
|||||||
//商品订单金额
|
//商品订单金额
|
||||||
this.payForm.goodsAmount = this.getGoodsNum || 0
|
this.payForm.goodsAmount = this.getGoodsNum || 0
|
||||||
//油品实付金额
|
//油品实付金额
|
||||||
this.payForm.oilActualPay = (this.oilGunClearing.getAmount || 0)-(this.disOil || 0)
|
this.payForm.oilActualPay = (this.oilGunClearing.amount || 0)-(this.disOil || 0)
|
||||||
//商品实付金额
|
//商品实付金额
|
||||||
this.payForm.goodsActualPay = (this.getGoodsNum || 0) - (this.disGoods || 0)
|
this.payForm.goodsActualPay = (this.getGoodsNum || 0) - (this.disGoods || 0)
|
||||||
//油枪id
|
//油枪id
|
||||||
@ -1542,7 +1524,13 @@ export default {
|
|||||||
this.payForm.goodsDiscount = this.disGoods;
|
this.payForm.goodsDiscount = this.disGoods;
|
||||||
|
|
||||||
//会员消费金额 (储值卡需要减少的金额)
|
//会员消费金额 (储值卡需要减少的金额)
|
||||||
|
if (this.payForm.payType == "card_value"){
|
||||||
this.payForm.consumeAmount = this.realAmount;
|
this.payForm.consumeAmount = this.realAmount;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.payForm.consumeAmount = 0
|
||||||
|
}
|
||||||
|
|
||||||
//会员id
|
//会员id
|
||||||
this.payForm.userId = this.chooseVipUser.id
|
this.payForm.userId = this.chooseVipUser.id
|
||||||
//终端 默认传PC
|
//终端 默认传PC
|
||||||
@ -1555,10 +1543,8 @@ export default {
|
|||||||
//油品 + 商品 的实付总额
|
//油品 + 商品 的实付总额
|
||||||
this.payForm.allAmount = this.realAmount
|
this.payForm.allAmount = this.realAmount
|
||||||
|
|
||||||
|
|
||||||
this.payForm.paymentType = this.payType
|
this.payForm.paymentType = this.payType
|
||||||
|
|
||||||
console.log('支付类型', this.payForm.paymentType)
|
|
||||||
|
|
||||||
//支付弹窗 相关
|
//支付弹窗 相关
|
||||||
this.payForm.realyPayBills = this.realAmount
|
this.payForm.realyPayBills = this.realAmount
|
||||||
|
@ -120,7 +120,11 @@
|
|||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column prop="orderNo" align="center" label="订单号" ></el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" ></el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="订单金额(元)"></el-table-column>
|
<el-table-column prop="amount" align="center" label="订单金额(元)"></el-table-column>
|
||||||
<el-table-column prop="afterDiscountAmount" align="center" label="优惠金额(元)"></el-table-column>
|
<el-table-column prop="afterDiscountAmount" align="center" label="优惠金额(元)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.oilDiscountAmount + scope.row.goodsDiscountAmount }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="afterDiscountAmount" align="center" label="应收金额(元)"></el-table-column>
|
<el-table-column prop="afterDiscountAmount" align="center" label="应收金额(元)"></el-table-column>
|
||||||
<el-table-column prop="payAmount" align="center" label="实付金额(元)"></el-table-column>
|
<el-table-column prop="payAmount" align="center" label="实付金额(元)"></el-table-column>
|
||||||
<el-table-column prop="payAmount" align="center" label="已收金额(元)"></el-table-column>
|
<el-table-column prop="payAmount" align="center" label="已收金额(元)"></el-table-column>
|
||||||
@ -151,12 +155,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="payUser" align="center" label="付款用户" ></el-table-column>
|
<el-table-column prop="payUser" align="center" label="付款用户" ></el-table-column>
|
||||||
<el-table-column prop="status" align="center" label="支付方式">
|
<el-table-column prop="payType" align="center" label="支付方式">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status === 'unpaid'">未支付</el-tag>
|
{{getPayTypeStr(scope.row.payType)}}
|
||||||
<el-tag type="success" v-else-if="scope.row.status === 'paid'">已支付</el-tag>
|
|
||||||
<el-tag type="danger" v-else-if="scope.row.status === 'refund'">已退款</el-tag>
|
|
||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" align="center" label="订单状态">
|
<el-table-column prop="status" align="center" label="订单状态">
|
||||||
@ -167,7 +168,7 @@
|
|||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="payUser" align="center" label="关联员工" ></el-table-column>
|
<!-- <el-table-column prop="payUser" align="center" label="关联员工" ></el-table-column>-->
|
||||||
<el-table-column label="操作人" align="center" prop="staffId">
|
<el-table-column label="操作人" align="center" prop="staffId">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ getRealName(staffList, scope.row.staffId) || '--' }}</span>
|
<span>{{ getRealName(staffList, scope.row.staffId) || '--' }}</span>
|
||||||
@ -209,7 +210,7 @@
|
|||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.page"
|
:page.sync="queryParams.page"
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="pageList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1059,6 +1060,12 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//数据字典转义
|
||||||
|
getPayTypeStr(payType){
|
||||||
|
const item = this.payList.find(item => item.dictValue === payType);
|
||||||
|
return item ? item.dictLabel : '';
|
||||||
|
},
|
||||||
|
|
||||||
// 打印商品支付后的订单
|
// 打印商品支付后的订单
|
||||||
reoilOrderReport() {
|
reoilOrderReport() {
|
||||||
let oilOrderR = []
|
let oilOrderR = []
|
||||||
@ -1107,7 +1114,6 @@ export default {
|
|||||||
};
|
};
|
||||||
let payTypeText = payTypeMap[this.cashierOrder.payType] || '小程序码';
|
let payTypeText = payTypeMap[this.cashierOrder.payType] || '小程序码';
|
||||||
|
|
||||||
|
|
||||||
let f = {
|
let f = {
|
||||||
oilOrder: oilOrderR,
|
oilOrder: oilOrderR,
|
||||||
goodsOrder: goodsOrderR,
|
goodsOrder: goodsOrderR,
|
||||||
@ -1356,11 +1362,8 @@ export default {
|
|||||||
// return new Date(y , mon , d , h , m , s);
|
// return new Date(y , mon , d , h , m , s);
|
||||||
return y + mon + d + h + m + s;
|
return y + mon + d + h + m + s;
|
||||||
},
|
},
|
||||||
// 获取列表信息
|
//分页专用
|
||||||
getList(val) {
|
pageList(val) {
|
||||||
if (val != undefined) {
|
|
||||||
this.queryParams.page = val
|
|
||||||
}
|
|
||||||
|
|
||||||
let dateRange1 = this.dateRange
|
let dateRange1 = this.dateRange
|
||||||
let dateRange = []
|
let dateRange = []
|
||||||
@ -1380,13 +1383,38 @@ export default {
|
|||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
})
|
})
|
||||||
this.getSeekZero(val)
|
this.getSeekZero()
|
||||||
this.getOrderStatistics()
|
this.getOrderStatistics()
|
||||||
},
|
},
|
||||||
getSeekZero(val) {
|
// 获取列表信息
|
||||||
if (val != undefined) {
|
getList() {
|
||||||
this.queryParams.page = val
|
|
||||||
|
// 以防监听不到 重新赋值属性
|
||||||
|
this.queryParams.page = 1
|
||||||
|
|
||||||
|
|
||||||
|
let dateRange1 = this.dateRange
|
||||||
|
let dateRange = []
|
||||||
|
if (this.beginTime && this.endTime) {
|
||||||
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
|
// 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()
|
||||||
|
this.getOrderStatistics()
|
||||||
|
},
|
||||||
|
getSeekZero() {
|
||||||
let dateRange = []
|
let dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
if (this.beginTime && this.endTime) {
|
||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<el-form-item label="" prop="payType">
|
<el-form-item label="" prop="payType">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.payType"
|
v-model="queryParams.payType"
|
||||||
placeholder="请选择订单类型"
|
placeholder="请选择支付方式"
|
||||||
clearable
|
clearable
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
>
|
>
|
||||||
@ -113,11 +113,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="box2">
|
<div class="box2">
|
||||||
<div class="x_size" style="font-size: 26px;color: #2B63F4;font-weight: bold;margin-top: 5px">
|
<div class="x_size" style="font-size: 26px;color: #2B63F4;font-weight: bold;margin-top: 5px">
|
||||||
{{ orderStatistics.wechat || 0 }}/{{ orderStatistics.alipay || 0 }}
|
{{ orderStatistics.UNIONPAY || 0 }}
|
||||||
</div>
|
</div>
|
||||||
<div class="size-hui">
|
<div class="size-hui">
|
||||||
<div style="width: 8px;height: 8px;border-radius: 4px;background: #2B63F4"></div>
|
<div style="width: 8px;height: 8px;border-radius: 4px;background: #2B63F4"></div>
|
||||||
<div style="font-weight: bold;font-size: 13px;margin-left: 5px">云闪付/pos刷卡(元)</div>
|
<div style="font-weight: bold;font-size: 13px;margin-left: 5px">银联二维码(元)</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box2">
|
<div class="box2">
|
||||||
@ -169,16 +169,16 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="订单类型" align="center" prop="type"/>-->
|
<!-- <el-table-column label="订单类型" align="center" prop="type"/>-->
|
||||||
<el-table-column label="关联员工" align="center" prop="staffId">
|
<!-- <el-table-column label="关联员工" align="center" prop="staffId">-->
|
||||||
|
<!-- <template slot-scope="scope">-->
|
||||||
|
<!-- <span>{{ getRealName(staffList, scope.row.staffId) }}</span>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- </el-table-column>-->
|
||||||
|
<el-table-column label="操作人" align="center" width="150" prop="staffId">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ getRealName(staffList, scope.row.staffId) }}</span>
|
<span>{{ getRealName(staffList, scope.row.staffId) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作人" align="center" width="150" prop="payTime">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ parseTime(scope.row.payTime) }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="订单完成时间" align="center" width="150" prop="payTime">
|
<el-table-column label="订单完成时间" align="center" width="150" prop="payTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.payTime) }}</span>
|
<span>{{ parseTime(scope.row.payTime) }}</span>
|
||||||
|
@ -151,11 +151,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="box2">
|
<div class="box2">
|
||||||
<div style="font-size: 26px;color: #2B63F4;font-weight: bold;margin-top: 5px">
|
<div style="font-size: 26px;color: #2B63F4;font-weight: bold;margin-top: 5px">
|
||||||
{{ orderStatistics.wechat || 0 }}/{{ orderStatistics.alipay || 0 }}
|
{{ orderStatistics.UNIONPAY || 0 }}
|
||||||
</div>
|
</div>
|
||||||
<div class="size-hui">
|
<div class="size-hui">
|
||||||
<div style="width: 8px;height: 8px;border-radius: 4px;background: #2B63F4"></div>
|
<div style="width: 8px;height: 8px;border-radius: 4px;background: #2B63F4"></div>
|
||||||
<div style="font-weight: bold;font-size: 13px;margin-left: 5px">云闪付/pos刷卡(元)</div>
|
<div style="font-weight: bold;font-size: 13px;margin-left: 5px">银联二维码(元)</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box2">
|
<div class="box2">
|
||||||
@ -231,8 +231,12 @@
|
|||||||
<span>{{ scope.row.remark || "--" }}</span>
|
<span>{{ scope.row.remark || "--" }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="orderType" label="关联员工" align="center"></el-table-column>
|
<!-- <el-table-column prop="orderType" label="关联员工" align="center"></el-table-column>-->
|
||||||
<el-table-column prop="orderType" label="操作人" align="center"></el-table-column>
|
<el-table-column label="操作人" align="center" width="150" prop="staffId">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ getRealName(staffList, scope.row.staffId) }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="订单完成时间" align="center" prop="payTime">
|
<el-table-column label="订单完成时间" align="center" prop="payTime">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.payTime ? parseTime(scope.row.payTime) : "--" }}</span>
|
<span>{{ scope.row.payTime ? parseTime(scope.row.payTime) : "--" }}</span>
|
||||||
@ -753,7 +757,16 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 获取员工姓名
|
||||||
|
getRealName(list, id) {
|
||||||
|
var name = "";
|
||||||
|
list.forEach(item => {
|
||||||
|
if (item.id == id) {
|
||||||
|
name = item.realName;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return name;
|
||||||
|
},
|
||||||
// 获取优惠券信息
|
// 获取优惠券信息
|
||||||
getInfoById() {
|
getInfoById() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user