This commit is contained in:
DESKTOP-369JRHT\12997 2024-07-12 11:52:58 +08:00
commit 35ddcc830a
6 changed files with 38 additions and 25 deletions

View File

@ -550,12 +550,10 @@ export default {
.size-hui{ .size-hui{
display: flex; display: flex;
align-items: center; align-items: center;
//width: 200px;
font-family: Source Han Sans CN, Source Han Sans CN; font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400; font-weight: 400;
font-size: 13px; font-size: 13px;
color: #888888; color: #888888;
//line-height: 0px;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
text-transform: none; text-transform: none;
@ -564,15 +562,12 @@ export default {
} }
} }
.size-bole{ .size-bole{
//font-weight: bold;
//width: 53px; height:31px;
height: 31px;
font-family: YouSheBiaoTiHei; font-family: YouSheBiaoTiHei;
font-weight: 400; font-weight: 400;
font-size: 24px; font-size: 24px;
color: #555555; color: #555555;
//line-height: 0px;
text-align: left; text-align: left;
font-style: normal; font-style: normal;
text-transform: none; text-transform: none;

View File

@ -282,12 +282,13 @@ export default {
}else { }else {
this.checked = false this.checked = false
} }
console.log(this.ruleForm.checkedKeys,22,this.ruleForm.roleCode)
return; return;
} }
let ids = [] let ids = []
let show = false; let show = false;
if (!row.show) show = true
this.tableData.forEach(item => { this.tableData.forEach(item => {
if (!row.show) show = true
item.list.forEach(item1 => { item.list.forEach(item1 => {
if (item1.id == row.id) { if (item1.id == row.id) {
ids.push(item1.id) ids.push(item1.id)
@ -334,6 +335,7 @@ export default {
}else { }else {
this.checked = false this.checked = false
} }
console.log(this.ruleForm.checkedKeys,11,uniqueArr,show)
} }
} }
} }

View File

@ -59,9 +59,9 @@
<el-select v-model="value" clearable placeholder="请选择"> <el-select v-model="value" clearable placeholder="请选择">
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.deptId"
:label="item.label" :label="item.deptName"
:value="item.value"> :value="item.deptId">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
@ -72,35 +72,35 @@
<div class="sian"></div> <div class="sian"></div>
<div>活跃油站数</div> <div>活跃油站数</div>
</div> </div>
<div class="num-size">868</div> <div class="num-size">{{ storeAmount.storeTotal || 0 }}</div>
</div> </div>
<div class="k-box"> <div class="k-box">
<div class="d-s" style="font-size: 12px;color: #999999;"> <div class="d-s" style="font-size: 12px;color: #999999;">
<div class="sian"></div> <div class="sian"></div>
<div>交易金额(万元)/交易笔数</div> <div>交易金额(万元)/交易笔数</div>
</div> </div>
<div class="num-size">1080.50</div> <div class="num-size">{{ storeAmount.tradeAmount || 0 }}/{{ storeAmount.tradeTotal || 0 }}</div>
</div> </div>
<div class="k-box"> <div class="k-box">
<div class="d-s" style="font-size: 12px;color: #999999;"> <div class="d-s" style="font-size: 12px;color: #999999;">
<div class="sian"></div> <div class="sian"></div>
<div>退款金额()/退款笔数</div> <div>退款金额()/退款笔数</div>
</div> </div>
<div class="num-size">1868.20</div> <div class="num-size">{{ storeAmount.refundAmount || 0 }}/{{ storeAmount.refundTotal || 0 }}</div>
</div> </div>
<div class="k-box"> <div class="k-box">
<div class="d-s" style="font-size: 12px;color: #999999;"> <div class="d-s" style="font-size: 12px;color: #999999;">
<div class="sian"></div> <div class="sian"></div>
<div>笔均单价()</div> <div>笔均单价()</div>
</div> </div>
<div class="num-size">508.00</div> <div class="num-size">{{ storeAmount.averagePrice || 0 }}</div>
</div> </div>
<div class="k-box"> <div class="k-box">
<div class="d-s" style="font-size: 12px;color: #999999;"> <div class="d-s" style="font-size: 12px;color: #999999;">
<div class="sian"></div> <div class="sian"></div>
<div>日均交易额(万元)/日均交易笔数</div> <div>日均交易额(万元)/日均交易笔数</div>
</div> </div>
<div class="num-size">5208.60 / 90</div> <div class="num-size">{{ storeAmount.dayTradeAmount || 0 }}/{{ storeAmount.dayTradeTotal || 0 }}</div>
</div> </div>
</div> </div>
<div class="hui-hang"></div> <div class="hui-hang"></div>
@ -153,6 +153,7 @@
<script> <script>
import echarts from "echarts"; import echarts from "echarts";
import {storeAmountIndex, storeTotalIndex} from "@/api/indexBanner"; import {storeAmountIndex, storeTotalIndex} from "@/api/indexBanner";
import {selectChildByDeptId} from "@/api/system/Site/site";
export default { export default {
data(){ data(){
@ -184,6 +185,7 @@ export default {
value: '', value: '',
value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)], value1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
imagePath: process.env.VUE_APP_SERVER_URL, imagePath: process.env.VUE_APP_SERVER_URL,
queryParams:{},
// //
storeTotal:{}, storeTotal:{},
// //
@ -192,20 +194,27 @@ export default {
}, },
created() { created() {
this.getStoreTotal() this.getStoreTotal()
this.selectChildByDeptIdApi()
this.getStoreAmount() this.getStoreAmount()
}, },
mounted() { mounted() {
this.initChart() this.initChart()
}, },
methods:{ methods:{
//
selectChildByDeptIdApi() {
selectChildByDeptId().then(res => {
this.options = res.data
})
},
getStoreTotal(){ getStoreTotal(){
storeTotalIndex().then(res => { storeTotalIndex().then(res => {
this.storeTotal = res.data this.storeTotal = res.data
}) })
}, },
getStoreAmount(){ getStoreAmount(){
storeAmountIndex().then(res => { storeAmountIndex(this.addDateRange(this.queryParams,this.value1)).then(res => {
console.log(res) this.storeAmount = res.data
}) })
}, },
initChart() { initChart() {
@ -459,6 +468,7 @@ export default {
margin-top: 20px; margin-top: 20px;
} }
.left-box{ .left-box{
width: 73%;
background: #FFFFFF; background: #FFFFFF;
border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
@ -470,6 +480,7 @@ export default {
padding: 15px; padding: 15px;
} }
.left-box-t{ .left-box-t{
width: 73%;
box-sizing: border-box; box-sizing: border-box;
padding: 15px; padding: 15px;
border-radius: 8px; border-radius: 8px;
@ -479,7 +490,7 @@ export default {
} }
.right-box{ .right-box{
width: 435px; width: 25%;
border-radius: 8px; border-radius: 8px;
background: #fff; background: #fff;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
@ -488,7 +499,7 @@ export default {
padding: 15px; padding: 15px;
} }
.right-box-t{ .right-box-t{
width: 435px; width: 25%;
border-radius: 8px; border-radius: 8px;
background: #fff; background: #fff;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
@ -537,7 +548,6 @@ export default {
font-size: 14px; font-size: 14px;
color: #777777; color: #777777;
margin: 14px auto; margin: 14px auto;
overflow: auto;
} }
.h-tt{ .h-tt{
font-size: 16px; font-size: 16px;

View File

@ -1026,13 +1026,17 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
map1.put("endTime", allOrderInfoVo.getParams().get("endTime").toString()); map1.put("endTime", allOrderInfoVo.getParams().get("endTime").toString());
} }
Integer storeTotal = selectStoreTotal(map1); Integer storeTotal = selectStoreTotal(map1);
DecimalFormat df = new DecimalFormat("#.00"); // 格式化字符串表示两位小数
// 设置格式化器
df.setRoundingMode(RoundingMode.HALF_UP); // 可选设置四舍五入模式
map.put("tradeTotal",tradeTotal); map.put("tradeTotal",tradeTotal);
map.put("tradeAmount",tradeAmount); map.put("tradeAmount",tradeAmount > 0 ? df.format(tradeAmount) : 0);
map.put("refundTotal",refundTotal); map.put("refundTotal",refundTotal);
map.put("refundAmount",refundAmount); map.put("refundAmount",refundAmount > 0 ? df.format(refundAmount) : 0);
map.put("averagePrice",averagePrice); map.put("averagePrice",averagePrice > 0 ? df.format(averagePrice) : 0);
map.put("dayTradeAmount",dayTradeAmount); map.put("dayTradeAmount",dayTradeAmount > 0 ? df.format(dayTradeAmount) : 0);
map.put("dayTradeTotal",dayTradeTotal); map.put("dayTradeTotal",dayTradeTotal);
map.put("storeTotal",storeTotal); map.put("storeTotal",storeTotal);
return map; return map;

View File

@ -1,3 +1,4 @@
<template> <template>
<div class="app-center"> <div class="app-center">
<!-- 查询--> <!-- 查询-->

View File

@ -4714,8 +4714,9 @@
} }
.of-title{ .of-title{
font-weight: bold; font-weight: bold;
font-size: 22px; font-size: 26px;
text-align: center; text-align: center;
font-family: YouSheBiaoTiHei;
margin: 13px; margin: 13px;
} }
.data-top{ .data-top{