Merge remote-tracking branch 'origin/main'

This commit is contained in:
zhaohengkun 2024-10-18 10:43:59 +08:00
commit f516365a5a
6 changed files with 151 additions and 103 deletions

View File

@ -7,19 +7,19 @@
{{ item }}
</div>
</div>
<div v-if="tabindex == 0">
<div style="height: 87.5vh;position: relative;" v-if="tabindex == 0">
<div class="card-box"
style="width: 100%;margin: 10px auto;background: #fff;box-sizing: border-box;padding-top: 15px; margin-bottom: 0px ">
style="width: 98%;margin: 0px auto;background: #fff;box-sizing: border-box;padding-top: 5px; margin-bottom: 0px ">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="100px">
<el-form-item label="" prop="status">
<el-select v-model="queryParams.status" style="width: 150px" placeholder="交班方式" clearable
<el-select v-model="queryParams.status" style="width: 220px" placeholder="交班方式" clearable
@change="onChange">
<el-option label="统一交班" value="统一交班">统一交班</el-option>
<el-option label="个人交班" value="个人交班">个人交班</el-option>
</el-select>
</el-form-item>
<el-form-item label="" prop="staffId">
<el-select v-model="queryParams.staffId" style="width: 150px" placeholder="交班员工" clearable @change="onChange2">
<el-select v-model="queryParams.staffId" style="width: 220px" placeholder="交班员工" clearable @change="onChange2">
<el-option
v-for="option in staffList"
:key="option.id"
@ -29,17 +29,18 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item class="flex-container" style="float: right">
<el-form-item class="flex-container" style="margin-right:0px;float: right">
<el-button type="primary" icon="el-icon-search" :disabled="!isSearch" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
</div>
<div style="margin-top: 20px; padding-top: 0px; scrollbar-width: none; height: 70vh;overflow: auto" class="box-card">
<div style="margin-top: 10px; padding-top: 0px; height: 73vh;" class="box-card">
<div class="title_" style="height: 50px; padding-top: 20px; background-color: white; display: flex;justify-content: space-between">
<div style="width: 80%;margin-left: 50px">门店交接单</div>
<span style="cursor: pointer; color: blue;font-weight: 400;" >打印预览</span>
<div style="width: 5%;"></div>
<div style="width: 80%;">门店交接单</div>
<span style="cursor: pointer; color: blue;font-weight: 400;" >打印</span>
</div>
<div class="d-s-b">
<div>油站名称</div>
@ -102,6 +103,7 @@
<div>{{ orderSummary.sumnum }}</div>
</div>
<div class="xxing"></div>
<div style="width: 100%; height: 29vh;overflow: auto;scrollbar-width: none; ">
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -129,8 +131,6 @@
<div class="r-size">{{ orderSummary.allyingye + orderSummary.allchuzhika }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -148,7 +148,6 @@
<div class="r-size">{{ item.paidAmount }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -166,7 +165,6 @@
<div class="r-size">{{ item.paidAmount }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -184,7 +182,6 @@
<div class="r-size">{{ item.paidAmount }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -202,8 +199,6 @@
<div class="r-size">{{ item.paidAmount }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -221,7 +216,6 @@
<div class="r-size">{{ item.paidAmount ? item.paidAmount : '--' }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -239,7 +233,6 @@
<div class="r-size">{{ item.paidAmount ? item.paidAmount : '--' }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -257,7 +250,6 @@
<div class="r-size">{{ item.paidAmount ? item.paidAmount : '--' }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -305,8 +297,6 @@
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -324,7 +314,6 @@
<div class="r-size">{{ item.paidAmount ? item.paidAmount : '--' }}</div>
</div>
</div>
<div class="for-box">
<div class="for-title">
<div class="x-"></div>
@ -342,10 +331,9 @@
<div class="r-size">{{ item.paidAmount ? item.paidAmount : '--' }}</div>
</div>
</div>
</div>
<div
style="width: 100%; margin: 20px auto;display: flex;align-items: center;justify-content: center; background: #fff;box-sizing: border-box;margin-bottom: 0px ">
</div>
</div>
<div class="bot-a-ds" >
<el-button type="primary" @click="shift()">交班</el-button>
</div>
</div>
@ -383,7 +371,8 @@ export default {
return {
tabs: [
"交接班1",
"交接班",
// "1",
"交班记录"
],
isSearch: true,
@ -643,7 +632,7 @@ export default {
display: flex;
box-sizing: border-box;
padding: 0px 25px;
margin-bottom: 25px;
//margin-bottom: 25px;
}
.box_ {
height: 100%;
@ -702,6 +691,8 @@ export default {
.el-form--inline .el-form-item {
margin-right: 44px;
margin-top: 5px;
margin-bottom: 10px;
}
.tab-box {
@ -711,6 +702,7 @@ export default {
display: flex;
box-sizing: border-box;
margin-bottom: 25px;
margin-bottom: 15px;
}
@ -748,7 +740,7 @@ export default {
font-weight: 400;
font-size: 14px;
color: #333333;
margin: 20px auto;
margin:5px auto;
}
.xxing {
@ -804,13 +796,27 @@ export default {
width: 98%;
}
.table-boxs {
.table-s {
border-radius: 8px;
width: 98%;
background: #fff;
margin: 25px auto;
box-sizing: border-box;
margin-top: 5px;
padding: 15px;
}
.bot-a-ds{
width: 100%;
background: #fff;
position: absolute;
bottom: 0px;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 15px;
}
</style>

View File

@ -1,7 +1,7 @@
<template>
<div class="">
<div style="margin-top: 0px; height: 70vh;overflow: auto" class="box-card">
<div style="margin-top: 0px; height: 70vh;overflow: auto;scrollbar-width: none;" class="box-card">
<div class="title_">门店交接单</div>
<div class="d-s-b">
<div>油站名称</div>
@ -645,7 +645,7 @@ export default {
font-weight: 400;
font-size: 14px;
color: #333333;
margin: 20px auto;
margin: 5px auto;
}
.xxing{
width: 100%;

View File

@ -142,7 +142,7 @@ export default {
<template>
<div class="f-hx">
<div class="table-boxs">
<div class="table-s">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="100px">
<el-form-item label="" prop="status">
<el-select v-model="queryParams.status" style="width: 150px" placeholder="交班方式" clearable>
@ -175,7 +175,7 @@ export default {
placeholder="交易结束日期">
</el-date-picker>
</el-form-item>
<el-form-item class="flex-container" style="float: right">
<el-form-item class="flex-container" style="float: right;margin-right: 0px">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item>
@ -211,9 +211,9 @@ export default {
<el-dialog title="查看详情" :visible.sync="openSeeDetails" width="600px" append-to-body :close-on-click-modal="false">
<HandoverDetailsInfo :recordData="recordData"></HandoverDetailsInfo>
</el-dialog>
<el-dialog title="商品汇总" :visible.sync="openGoodsSum" width="600px" append-to-body :close-on-click-modal="false">
<el-dialog title="商品汇总" :visible.sync="openGoodsSum" width="600px" style="padding-top: 0px" append-to-body :close-on-click-modal="false">
<div>
<div>油品交易信息</div>
<div class="tou_">油品交易信息</div>
<div>
<el-table :data="oilNumberStatistics" style="width: 100%" border>
<el-table-column align="center" prop="oilName" label="油品油号" ></el-table-column>
@ -224,7 +224,7 @@ export default {
</div>
</div>
<div>
<div>便利店交易信息</div>
<div class="tou_">便利店交易信息</div>
<div>
<el-table :data="goodsNumberStatistics" style="width: 100%" border>
<el-table-column align="center" prop="goodsName" label="商品名称" ></el-table-column>
@ -235,7 +235,7 @@ export default {
</div>
</div>
<div>
<div >积分商城兑换信息</div>
<div class="tou_">积分商城兑换信息</div>
<div>
<el-table :data="IntegerNumberStatistics" style="width: 100%" border>
<el-table-column align="center" prop="giftName" label="商品名称" ></el-table-column>
@ -267,13 +267,14 @@ export default {
margin-bottom: 25px;
}
.table-boxs{
.table-s{
border-radius: 8px;
width: 98%;
background: #fff;
margin: 25px auto;
margin-bottom: 0px;
box-sizing: border-box;
margin-top: 5px;
height: 85vh;
padding: 15px;
}
@ -283,4 +284,10 @@ export default {
padding-bottom: 12px;
}
.tou_{
font-size: 14px;
font-weight: bold;
margin-bottom: 10px;
margin-top: 10px;
}
</style>

View File

@ -101,16 +101,16 @@
</div>
<div class="hui-hang"></div>
<div class="d-s">
<div>
<div class="h-tt">数据分析</div>
<div id="ccc" style="width: 300px;height: 200px; "></div>
<div style="position: relative">
<div class="h-tt" style="position: absolute;top: 0px">数据分析</div>
<div id="ccc" style="width: 400px;height: 200px; "></div>
</div>
<div class="h-r-ba"></div>
<!-- <div class="h-r-ba"></div>-->
<div>
<!-- <div class="h-tt" >活跃油站</div>-->
<div class="d-s" style="justify-content: space-between">
<div id="cccc" style="width: 300px;height: 200px;margin-right: 50px"></div>
<div id="ccct" style="width: 300px;height: 200px;"></div>
<div id="cccc" style="width: 400px;height: 200px;"></div>
<div id="ccct" style="width: 400px;height: 200px;"></div>
</div>
</div>
</div>
@ -135,7 +135,6 @@
<div style="font-size: 14px">{{ item.name }}</div>
</div>
</div>
</div>
</div>
<div class="b-bs">
@ -793,14 +792,23 @@ export default {
const option = {
color: [
'#b7f1e2',
'#36b713',
'#fc7150',
'#fea500',
'#5facfe',
'#b7f1e2',
],
tooltip: {
trigger: 'item'
},
legend: {
type:'scroll',
orient: 'vertical',
right: '0%',
bottom: '0%',
left:'right',
size:8
},
series: [
{
name: '',
@ -812,7 +820,14 @@ export default {
},
radius: ['40%', '80%'],
data: this.dataAnalysisOilNumberList,
}
label: {
show: true,
position: "inside",
color:'#fff',
formatter: `{d}%`,
},
},
]
};
const option1 = {
@ -823,7 +838,14 @@ export default {
tooltip: {
trigger: 'item'
},
legend: {
type:'scroll',
orient: 'vertical',
right: '0%',
bottom: '0%',
left:'right',
size:8
},
series: [
{
name: '',
@ -837,8 +859,16 @@ export default {
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
},
label: {
show: true,
position: "inside",
color:'#fff',
formatter: `{d}%`,
},
},
]
};
const option2 = {
@ -851,35 +881,19 @@ export default {
tooltip: {
trigger: 'item'
},
legend: {
type:'scroll',
orient: 'vertical',
right: '0%',
bottom: '0%',
left:'right',
size:8
},
series: [
{
name: '',
type: 'pie',
radius: [50, '80%'],
// data: [
// // { value: 28, name: '' },
// // { value: 72, name: '' },
// // { value: 28, name: '' },
// // { value: 72, name: '便' },
// {
// value: this.countPercentage(Number(this.storeAmount.userNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
// name: ''
// },
// {
// value: this.countPercentage(Number(this.storeAmount.integralNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
// name: ''
// },
// {
// value: this.countPercentage(Number(this.storeAmount.oilNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
// name: ''
// },
// {
// value: this.countPercentage(Number(this.storeAmount.goodNum), Number(this.storeAmount.oilNum) + Number(this.storeAmount.userNum) + Number(this.storeAmount.integralNum) + Number(this.storeAmount.goodNum)),
// name: '便'
// },
//
// ],
data: this.dataAnalysisAllList,
emphasis: {
itemStyle: {
@ -887,7 +901,14 @@ export default {
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
},
label: {
show: true,
position: "inside",
color:'#fff',
formatter: `{d}%`,
},
}
]
};

View File

@ -525,8 +525,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) {
cardValueRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
cardValueRecordDTO.setRealName(nowAccountInfo.getRealName());
LJUserVo ljUserVo1 = ljUserMapper.selectUserById(nowAccountInfo.getId());
cardValueRecordDTO.setStaffMobile(ljUserVo1.getMobile());
LJStaff staff = mtStaffService.getById(nowAccountInfo.getStaffId());
cardValueRecordDTO.setStaffMobile(staff.getMobile());
}else {
LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff());
cardValueRecordDTO.setRealName(staff.getRealName());
@ -575,8 +575,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) {
cardFuelRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
cardFuelRecordDTO.setRealName(nowAccountInfo.getRealName());
LJUserVo ljUserVo1 = ljUserMapper.selectUserById(nowAccountInfo.getId());
cardFuelRecordDTO.setStaffMobile(ljUserVo1.getMobile());
LJStaff staff = mtStaffService.getById(nowAccountInfo.getStaffId());
cardFuelRecordDTO.setStaffMobile(staff.getMobile());
}else {
LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff());
cardFuelRecordDTO.setRealName(staff.getRealName());

View File

@ -16,10 +16,15 @@
trigger="hover">
<div> 储值卡{{ chooseVipUser.cardBalance || 0 }}</div>
<div v-if="chooseVipUser.userFuels">
<div v-for="(item,index) in chooseVipUser.userFuels" :key="index"> 囤油卡{{ item.fuelAmount }}</div>
<div v-for="(item,index) in chooseVipUser.userFuels" :key="index"> 囤油卡{{
item.fuelAmount
}}
</div>
</div>
<div v-if="chooseVipUser.fleetInfoUniVos">
<div v-for="(item,index) in chooseVipUser.fleetInfoUniVos" :key="index"> 车队卡{{ item.totalBalance }}</div>
<div v-for="(item,index) in chooseVipUser.fleetInfoUniVos" :key="index">
车队卡{{ item.totalBalance }}
</div>
</div>
<img slot="reference" src="./imgs/kbao.png" style="width: 24px;height: 24px;margin-right: 10px">
@ -1141,17 +1146,21 @@ export default {
},
//
oilOrderReport() {
console.log(this.goodsOrder,this.goodsList,1095)
//
let oilOrderR = [
{
oilName: this.oilGunClearing.name,
amount: this.oilGunClearing.amount + '',
}
]
let oilOrderR = []
if (this.oilGunClearing && this.oilGunClearing.amount>0){
oilOrderR = [
{
oilName: this.oilGunClearing.oilType + this.oilGunClearing.oilName,
amount: this.oilGunClearing.amount + '',
}
]
}
let goodsOrderR = []
if (this.goodsOrder && this.goodsOrder.length > 0) {
this.goodsOrder.forEach(order => {
if (this.goodsList && this.goodsList.length > 0) {
this.goodsList.forEach(order => {
let o = {
oilName: order.name,
unit: order.num + order.unit,
@ -1168,9 +1177,10 @@ export default {
'WECHAT': '微信',
'ALIPAY': '支付宝',
'UNIONPAY': '银联二维码',
'credit': '挂账',
'oilCard': '囤油卡',
'balance': '储值卡'
'after_pay': '挂账',
'fule_card': '囤油卡',
'card_value': '储值卡',
'car_card_value': '车队卡',
};
let payTypeText = payTypeMap[this.payType] || '小程序码';
@ -1181,26 +1191,28 @@ export default {
unitName: "", //
// consumeAmount:this.consumeAmount,
creditAmount: (this.oilAmount + (+this.goodsAmount)).toFixed(2),//
creditAmount: this.realAmount,//
//
discount: (this.oilDiscount + this.goodsDiscount + this.fullReduction + this.couponAmount).toFixed(2), //
discount: this.disTotal, //
//
consumeAmount: this.consumeAmount,
consumeAmount: this.realAmount,
//
consumeRefuelMoney: this.consumeRefuelMoney ? this.consumeRefuelMoney.toFixed(2) : 0,
consumeRefuelMoney: this.realAmount,
//
actualPay: ((+this.oilActualPay) + (+this.goodsActualPay)).toFixed(2),
actualPay: this.realAmount,
//
seekZero: this.seekZero ? this.seekZero.toFixed(2) : 0,
}
if (this.form1 && this.form1.unitName) f.unitName = this.form1.unitName
if (this.credit && this.credit.unitName) f.unitName = this.credit.unitName
printOilOrderReport(f).then(res => {
console.log(res, 1121)
})
},
//
resetting1() {
this.realAmount = 0.00
//
this.disTotal = 0.00
//
this.userMobile = null
//
@ -1211,6 +1223,8 @@ export default {
this.userInfo = false
//
this.payType = "ALIPAY"
this.loading = false;
},
//
queryPayStatus() {
@ -1393,8 +1407,8 @@ export default {
// id
// id
//
if (this.oilGunClearing) {
console.log(this.oilGunClearing)
if (this.oilGunClearing && this.oilGunClearing.amount>0) {
this.payForm.oilOrder = JSON.stringify({
oilPrice: this.oilGunClearing.oilPrice,
oils: this.oilGunClearing.oilNameId,
@ -1993,8 +2007,8 @@ export default {
}
this.accountPending = true
}
if (value == 'car_card_value'){
if (!this.userInfo){
if (value == 'car_card_value') {
if (!this.userInfo) {
this.$message.error("请先选择会员")
return
}