bug
This commit is contained in:
parent
51aea52701
commit
940b9580f8
@ -251,23 +251,7 @@ export default {
|
|||||||
label: '北京烤鸭'
|
label: '北京烤鸭'
|
||||||
}],
|
}],
|
||||||
value: '',
|
value: '',
|
||||||
tableData: [{
|
tableData: [],
|
||||||
date: '2016-05-02',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1518 弄'
|
|
||||||
}, {
|
|
||||||
date: '2016-05-04',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1517 弄'
|
|
||||||
}, {
|
|
||||||
date: '2016-05-01',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1519 弄'
|
|
||||||
}, {
|
|
||||||
date: '2016-05-03',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1516 弄'
|
|
||||||
}],
|
|
||||||
form: {
|
form: {
|
||||||
name: '',
|
name: '',
|
||||||
region: '',
|
region: '',
|
||||||
|
@ -33,51 +33,7 @@ export default {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
dutyId:'',
|
dutyId:'',
|
||||||
tableData: [{
|
tableData: [],
|
||||||
id: 1,
|
|
||||||
label: '系统首页',
|
|
||||||
list: [{show: true, name: '选中'},]
|
|
||||||
}, {
|
|
||||||
id: 2,
|
|
||||||
label: '机构管理',
|
|
||||||
childrens: [
|
|
||||||
{
|
|
||||||
id: 3,
|
|
||||||
label: '组织架构',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1519 弄',
|
|
||||||
|
|
||||||
childrens: [{
|
|
||||||
id: 31,
|
|
||||||
label: '用户信息',
|
|
||||||
|
|
||||||
list: [{show: true, name: '新增'}, {show: true, name: '修改'}, {show: true, name: '重置密码'},]
|
|
||||||
}, {
|
|
||||||
id: 32,
|
|
||||||
label: '机构信息',
|
|
||||||
|
|
||||||
list: [{show: true, name: '保存'},]
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
]
|
|
||||||
// list:[{show:true,name:'选项一'},{show:true,name:'选项二'},{show:true,name:'选项三'},]
|
|
||||||
|
|
||||||
}, {
|
|
||||||
id: 4,
|
|
||||||
label: '财务报表',
|
|
||||||
childrens: [{
|
|
||||||
id: 33,
|
|
||||||
label: '交易对账',
|
|
||||||
|
|
||||||
list: [{show: true, name: '导出订单'}]
|
|
||||||
}, {
|
|
||||||
id: 34,
|
|
||||||
label: '流水分析',
|
|
||||||
|
|
||||||
list: [{show: true, name: '导出订单'},]
|
|
||||||
}],
|
|
||||||
|
|
||||||
}],
|
|
||||||
deptListSelect: [],
|
deptListSelect: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,20 @@
|
|||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
||||||
|
<div class="d-s" style="margin-bottom: 15px">
|
||||||
|
<div class="anniu-h" :class="{ 'anniu-act': index == timeIndex }" v-for="(item,index) in timeList"
|
||||||
|
:key="index" @click="editColor(index)">
|
||||||
|
{{ item }}
|
||||||
|
</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="value2"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期" @click="handleQuery">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="margin-left: 15px;margin-top: 15px">
|
||||||
<el-form-item label="" prop="deptId" style="width: 180px">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.deptId"
|
v-model="queryParams.deptId"
|
||||||
@ -13,62 +27,12 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="" style="width: 180px">
|
|
||||||
<el-input placeholder="请输入油号" v-model="queryParams.orderNo"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="" prop="payChannel" style="width: 180px">
|
|
||||||
<el-select
|
|
||||||
v-model="queryParams.payChannel"
|
|
||||||
clearable
|
|
||||||
placeholder="订单类型"
|
|
||||||
>
|
|
||||||
<el-option label="小程序" value="applet"/>
|
|
||||||
<el-option label="收银台" value="cashier"/>
|
|
||||||
<el-option label="POS端" value="POS"/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="" prop="payType" style="width: 180px">
|
|
||||||
<el-select
|
|
||||||
v-model="queryParams.payType"
|
|
||||||
clearable
|
|
||||||
placeholder="支付方式"
|
|
||||||
>
|
|
||||||
<el-option label="现金" value="CASH"/>
|
|
||||||
<el-option label="微信" value="WECHAT"/>
|
|
||||||
<el-option label="支付宝" value="ALIPAY"/>
|
|
||||||
<el-option label="余额" value="balance"/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="" prop="status" style="width: 180px">
|
|
||||||
<el-select
|
|
||||||
v-model="queryParams.status"
|
|
||||||
clearable
|
|
||||||
placeholder="支付状态"
|
|
||||||
>
|
|
||||||
<el-option label="已支付" value="paid"/>
|
|
||||||
<el-option label="未支付" value="unpaid"/>
|
|
||||||
<el-option label="已退款" value="refund"/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="beginTime"
|
|
||||||
style="width: 140px"
|
|
||||||
type="date"
|
|
||||||
placeholder="交易开始日期">
|
|
||||||
</el-date-picker>
|
|
||||||
至
|
|
||||||
<el-date-picker
|
|
||||||
v-model="endTime"
|
|
||||||
style="width: 140px"
|
|
||||||
type="date"
|
|
||||||
placeholder="交易结束日期">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;">
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="wrap-boxs">
|
<div class="wrap-boxs">
|
||||||
<div class="k_" id="k_1">
|
<div class="k_" id="k_1">
|
||||||
@ -88,14 +52,26 @@
|
|||||||
style="width: 100%">
|
style="width: 100%">
|
||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column align="center" prop="storeName" label="机构名称"></el-table-column>
|
<el-table-column align="center" prop="storeName" label="机构名称"></el-table-column>
|
||||||
<el-table-column align="center" prop="deptName" label="所属机构"></el-table-column>
|
<el-table-column align="center" prop="parentName" label="所属机构"></el-table-column>
|
||||||
<el-table-column align="center" prop="payMoney" label="累计交易金额"></el-table-column>
|
<el-table-column align="center" prop="payMoney" label="累计交易金额"></el-table-column>
|
||||||
<el-table-column align="center" prop="count" label="累计交易笔数"></el-table-column>
|
<el-table-column align="center" prop="count" label="累计交易笔数"></el-table-column>
|
||||||
<el-table-column align="center" label="支付通道交易信息:金额(万元),笔数(万笔),占比(%)">
|
<el-table-column align="center" label="支付通道交易信息:金额(万元),笔数(万笔),占比(%)">
|
||||||
<template>
|
<template>
|
||||||
<el-table-column align="center" prop="amount92" label="富友交易金额"></el-table-column>
|
<el-table-column align="center" prop="fuYouAmount" label="富友交易金额">
|
||||||
<el-table-column align="center" prop="count92" label="拉卡拉交易笔数"></el-table-column>
|
<template slot-scope="scope">
|
||||||
<el-table-column align="center" prop="count92" label="拉卡拉交易占比"></el-table-column>
|
<span>{{scope.row.fuYouAmount || 0}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" prop="laKaLaAmount" label="拉卡拉交易笔数">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{scope.row.laKaLaAmount || 0}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" prop="count92" label="拉卡拉交易占比">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{scope.row.laKaLaAmount/(scope.row.fuYouAmount+scope.row.laKaLaAmount) || 0}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="date" label="统计日期">
|
<el-table-column align="center" prop="date" label="统计日期">
|
||||||
@ -127,6 +103,7 @@ import {
|
|||||||
getTradingPageApi
|
getTradingPageApi
|
||||||
} from "@/api/allOrder";
|
} from "@/api/allOrder";
|
||||||
import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialStatement/yunyingfenxi";
|
import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialStatement/yunyingfenxi";
|
||||||
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "dai_yunyingfenxi-paym",
|
name: "dai_yunyingfenxi-paym",
|
||||||
@ -148,6 +125,15 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
orderList: [],
|
orderList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
|
|
||||||
|
|
||||||
|
timeList: [
|
||||||
|
"今日",
|
||||||
|
"近一周",
|
||||||
|
"近一月",
|
||||||
|
"近一年",
|
||||||
|
],
|
||||||
|
timeIndex: 0,
|
||||||
|
value2: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -181,11 +167,41 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
this.beginTime = start
|
this.beginTime = start
|
||||||
this.endTime = new Date()
|
this.endTime = new Date()
|
||||||
this.isSysDate = true
|
this.isSysDate = true
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editColor(index) {
|
||||||
|
this.timeIndex = index
|
||||||
|
if (this.timeList[index] == '今日') {
|
||||||
|
let start = new Date();
|
||||||
|
start.setHours(0)
|
||||||
|
start.setMinutes(0)
|
||||||
|
start.setSeconds(0)
|
||||||
|
start.setMilliseconds(0)
|
||||||
|
this.value2 = [start, new Date()];
|
||||||
|
} else if (this.timeList[index] == '近一周') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index] == '近一月') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index] == '近一年') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
}
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
getDeptList() {
|
getDeptList() {
|
||||||
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
||||||
this.deptList = response.data.records;
|
this.deptList = response.data.records;
|
||||||
@ -210,7 +226,7 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenxiByDailiByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenxiByDailiByDataApi(this.addDateRange(this.queryParams, this.value2)).then(res => {
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111", res.data)
|
console.log("res.data1111", res.data)
|
||||||
})
|
})
|
||||||
@ -224,7 +240,7 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenxiByDailiApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenxiByDailiApi(this.addDateRange(this.queryParams, this.value2)).then(response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
@ -249,6 +265,13 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
}
|
}
|
||||||
this.beginTime = ""
|
this.beginTime = ""
|
||||||
this.endTime = ""
|
this.endTime = ""
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
|
this.timeIndex = 0
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -268,12 +291,14 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
.table-box {
|
.table-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap-boxs {
|
.wrap-boxs {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.k_ {
|
.k_ {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@ -290,45 +315,78 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_ {
|
.title_ {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_1 {
|
#k_1 {
|
||||||
background: url("../imgs/k1.png");
|
background: url("../imgs/k1.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_2 {
|
#k_2 {
|
||||||
background: url("../imgs/k2.png");
|
background: url("../imgs/k2.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_3 {
|
#k_3 {
|
||||||
background: url("../imgs/k3.png");
|
background: url("../imgs/k3.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_4 {
|
#k_4 {
|
||||||
background: url("../imgs/k4.png");
|
background: url("../imgs/k4.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_5 {
|
#k_5 {
|
||||||
background: url("../imgs/k5.png");
|
background: url("../imgs/k5.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_6 {
|
#k_6 {
|
||||||
background: url("../imgs/k6.png");
|
background: url("../imgs/k6.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_7 {
|
#k_7 {
|
||||||
background: url("../imgs/k7.png");
|
background: url("../imgs/k7.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-s {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-h {
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: #FAFAFA;
|
||||||
|
border-radius: 4px 4px 4px 4px;
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #777777;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-act {
|
||||||
|
background: #FF9655 !important;
|
||||||
|
border: 1px solid #FF9655 !important;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,6 +3,20 @@
|
|||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
||||||
|
<div class="d-s">
|
||||||
|
<div class="anniu-h" :class="{ 'anniu-act': index == timeIndex }" v-for="(item,index) in timeList"
|
||||||
|
:key="index" @click="editColor(index)">
|
||||||
|
{{ item }}
|
||||||
|
</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="value2"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期" @click="handleQuery">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="margin-left: 15px;margin-top: 15px">
|
||||||
<el-form-item label="" prop="deptId" style="width: 180px">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.deptId"
|
v-model="queryParams.deptId"
|
||||||
@ -13,11 +27,13 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item class="" style="float: right;">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <el-form-item class="" style="float: right;">-->
|
|
||||||
<!-- <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>-->
|
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<!-- </el-card>-->
|
<!-- </el-card>-->
|
||||||
@ -83,6 +99,7 @@ import {
|
|||||||
getTradingPageApi
|
getTradingPageApi
|
||||||
} from "@/api/allOrder";
|
} from "@/api/allOrder";
|
||||||
import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/financialStatement/yunyingfenxi";
|
import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/financialStatement/yunyingfenxi";
|
||||||
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "dai_yunyingfenxi-payType",
|
name: "dai_yunyingfenxi-payType",
|
||||||
@ -94,6 +111,15 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
// 员工列表
|
// 员工列表
|
||||||
staffList: [],
|
staffList: [],
|
||||||
ordersInfo: {},
|
ordersInfo: {},
|
||||||
|
|
||||||
|
timeList: [
|
||||||
|
"今日",
|
||||||
|
"近一周",
|
||||||
|
"近一月",
|
||||||
|
"近一年",
|
||||||
|
],
|
||||||
|
timeIndex: 0,
|
||||||
|
value2: [],
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
beginTime: "",
|
beginTime: "",
|
||||||
@ -137,11 +163,41 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
this.beginTime = start
|
this.beginTime = start
|
||||||
this.endTime = new Date()
|
this.endTime = new Date()
|
||||||
this.isSysDate = true
|
this.isSysDate = true
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editColor(index) {
|
||||||
|
this.timeIndex = index
|
||||||
|
if (this.timeList[index] == '今日') {
|
||||||
|
let start = new Date();
|
||||||
|
start.setHours(0)
|
||||||
|
start.setMinutes(0)
|
||||||
|
start.setSeconds(0)
|
||||||
|
start.setMilliseconds(0)
|
||||||
|
this.value2 = [start, new Date()];
|
||||||
|
} else if (this.timeList[index] == '近一周') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index] == '近一月') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index] == '近一年') {
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
|
||||||
|
this.value2 = [parseTime(oneWeekAgo), parseTime(nowDate)]
|
||||||
|
}
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
getDeptList() {
|
getDeptList() {
|
||||||
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
||||||
this.deptList = response.data.records;
|
this.deptList = response.data.records;
|
||||||
@ -166,7 +222,7 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiUserbalanceDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenXiUserbalanceDataApi(this.addDateRange(this.queryParams, this.value2)).then(res => {
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111", res.data)
|
console.log("res.data1111", res.data)
|
||||||
})
|
})
|
||||||
@ -179,7 +235,7 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenxiByDailiTypeApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenxiByDailiTypeApi(this.addDateRange(this.queryParams, this.value2)).then(response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
@ -204,6 +260,13 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
}
|
}
|
||||||
this.beginTime = ""
|
this.beginTime = ""
|
||||||
this.endTime = ""
|
this.endTime = ""
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
|
this.timeIndex = 0
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -223,12 +286,14 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
.table-box {
|
.table-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap-boxs {
|
.wrap-boxs {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.k_ {
|
.k_ {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@ -238,50 +303,85 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.size_ {
|
.size_ {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_ {
|
.title_ {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_1 {
|
#k_1 {
|
||||||
background: url("../imgs/k1.png");
|
background: url("../imgs/k1.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_2 {
|
#k_2 {
|
||||||
background: url("../imgs/k2.png");
|
background: url("../imgs/k2.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_3 {
|
#k_3 {
|
||||||
background: url("../imgs/k3.png");
|
background: url("../imgs/k3.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_4 {
|
#k_4 {
|
||||||
background: url("../imgs/k4.png");
|
background: url("../imgs/k4.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_5 {
|
#k_5 {
|
||||||
background: url("../imgs/k5.png");
|
background: url("../imgs/k5.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_6 {
|
#k_6 {
|
||||||
background: url("../imgs/k6.png");
|
background: url("../imgs/k6.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_7 {
|
#k_7 {
|
||||||
background: url("../imgs/k7.png");
|
background: url("../imgs/k7.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-s {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-h {
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: #FAFAFA;
|
||||||
|
border-radius: 4px 4px 4px 4px;
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #777777;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-act {
|
||||||
|
background: #FF9655 !important;
|
||||||
|
border: 1px solid #FF9655 !important;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,6 +3,20 @@
|
|||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
||||||
|
<div class="d-s">
|
||||||
|
<div class="anniu-h" :class="{ 'anniu-act': index == timeIndex }" v-for="(item,index) in timeList"
|
||||||
|
:key="index" @click="editColor(index)">
|
||||||
|
{{ item }}
|
||||||
|
</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="value2"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期" @click="handleQuery">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="margin-left: 15px;margin-top: 15px">
|
||||||
<el-form-item label="" prop="deptId" style="width: 180px">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.deptId"
|
v-model="queryParams.deptId"
|
||||||
@ -17,23 +31,25 @@
|
|||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="wrap-box">
|
<div class="wrap-box">
|
||||||
<div class="k_" id="k_1">
|
<div class="k_" id="k_1">
|
||||||
<div class="size_">累计交易金额(万元)</div>
|
<div class="size_">累计交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.paidInfo}}</div>
|
<div class="title_">{{ orderStatistics.paidInfo || 0 }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_2">
|
<div class="k_" id="k_2">
|
||||||
<div class="size_">累计交易笔数</div>
|
<div class="size_">累计交易笔数</div>
|
||||||
<div class="title_">{{orderStatistics.count}}</div>
|
<div class="title_">{{ orderStatistics.count || 0 }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_3">
|
<div class="k_" id="k_3">
|
||||||
<div class="size_">累计兑换商品数量</div>
|
<div class="size_">累计兑换商品数量</div>
|
||||||
<div class="title_">{{orderStatistics.exchangeQuantity}}</div>
|
<div class="title_">{{ orderStatistics.exchangeQuantity || 0 }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_4">
|
<div class="k_" id="k_4">
|
||||||
<div class="size_">累计消耗积分</div>
|
<div class="size_">累计消耗积分</div>
|
||||||
<div class="title_">{{orderStatistics.integrals}}</div>
|
<div class="title_">{{ orderStatistics.integrals || 0 }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -50,7 +66,8 @@
|
|||||||
<el-table-column prop="integral" label="累计消费积分" width="150" align="center"></el-table-column>
|
<el-table-column prop="integral" label="累计消费积分" width="150" align="center"></el-table-column>
|
||||||
<el-table-column label="热门商品信息" align="center">
|
<el-table-column label="热门商品信息" align="center">
|
||||||
<el-table-column prop="giftName" label="商品名称" width="150" align="center"></el-table-column>
|
<el-table-column prop="giftName" label="商品名称" width="150" align="center"></el-table-column>
|
||||||
<el-table-column prop="exchangeQuantityBy" label="兑换数量 (件)" width="150" align="center"></el-table-column>
|
<el-table-column prop="exchangeQuantityBy" label="兑换数量 (件)" width="150"
|
||||||
|
align="center"></el-table-column>
|
||||||
<el-table-column prop="paidInfo" label="销售金额 (元)" width="150" align="center"></el-table-column>
|
<el-table-column prop="paidInfo" label="销售金额 (元)" width="150" align="center"></el-table-column>
|
||||||
<el-table-column prop="integralBy" label="消费积分" width="150" align="center"></el-table-column>
|
<el-table-column prop="integralBy" label="消费积分" width="150" align="center"></el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -80,6 +97,7 @@ import {
|
|||||||
getTradingPageApi
|
getTradingPageApi
|
||||||
} from "@/api/allOrder";
|
} from "@/api/allOrder";
|
||||||
import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialStatement/yunyingfenxi";
|
import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialStatement/yunyingfenxi";
|
||||||
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "yunyingfenxi-int",
|
name: "yunyingfenxi-int",
|
||||||
@ -91,6 +109,15 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
// 员工列表
|
// 员工列表
|
||||||
staffList: [],
|
staffList: [],
|
||||||
ordersInfo: {},
|
ordersInfo: {},
|
||||||
|
|
||||||
|
timeList: [
|
||||||
|
"今日",
|
||||||
|
"近一周",
|
||||||
|
"近一月",
|
||||||
|
"近一年",
|
||||||
|
],
|
||||||
|
timeIndex: 0,
|
||||||
|
value2: [],
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
beginTime: "",
|
beginTime: "",
|
||||||
@ -134,11 +161,41 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
this.beginTime = start
|
this.beginTime = start
|
||||||
this.endTime = new Date()
|
this.endTime = new Date()
|
||||||
this.isSysDate = true
|
this.isSysDate = true
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editColor(index){
|
||||||
|
this.timeIndex = index
|
||||||
|
if (this.timeList[index]=='今日'){
|
||||||
|
let start = new Date();
|
||||||
|
start.setHours(0)
|
||||||
|
start.setMinutes(0)
|
||||||
|
start.setSeconds(0)
|
||||||
|
start.setMilliseconds(0)
|
||||||
|
this.value2 = [start,new Date()];
|
||||||
|
} else if (this.timeList[index]=='近一周'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一月'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一年'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
}
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
getDeptList() {
|
getDeptList() {
|
||||||
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
||||||
this.deptList = response.data.records;
|
this.deptList = response.data.records;
|
||||||
@ -162,7 +219,7 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiIntegralDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenXiIntegralDataApi(this.addDateRange(this.queryParams, this.value2)).then(res => {
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111", res.data)
|
console.log("res.data1111", res.data)
|
||||||
})
|
})
|
||||||
@ -175,7 +232,7 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiIntegralListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenXiIntegralListApi(this.addDateRange(this.queryParams, this.value2)).then(response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
@ -200,6 +257,13 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
}
|
}
|
||||||
this.beginTime = ""
|
this.beginTime = ""
|
||||||
this.endTime = ""
|
this.endTime = ""
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1), parseTime(new Date())];
|
||||||
|
this.timeIndex = 0
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -219,12 +283,14 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
.table-box {
|
.table-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap-box {
|
.wrap-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.k_ {
|
.k_ {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@ -233,51 +299,85 @@ import {getFenXiIntegralDataApi, getFenXiIntegralListApi} from "@/api/financialS
|
|||||||
padding: 15px 10px;
|
padding: 15px 10px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.size_ {
|
.size_ {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_ {
|
.title_ {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_1 {
|
#k_1 {
|
||||||
background: url("../imgs/k1.png");
|
background: url("../imgs/k1.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_2 {
|
#k_2 {
|
||||||
background: url("../imgs/k2.png");
|
background: url("../imgs/k2.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_3 {
|
#k_3 {
|
||||||
background: url("../imgs/k3.png");
|
background: url("../imgs/k3.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_4 {
|
#k_4 {
|
||||||
background: url("../imgs/k4.png");
|
background: url("../imgs/k4.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_5 {
|
#k_5 {
|
||||||
background: url("../imgs/k5.png");
|
background: url("../imgs/k5.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_6 {
|
#k_6 {
|
||||||
background: url("../imgs/k6.png");
|
background: url("../imgs/k6.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#k_7 {
|
#k_7 {
|
||||||
background: url("../imgs/k7.png");
|
background: url("../imgs/k7.png");
|
||||||
background-size: cover; /* 背景图片铺满盒子 */
|
background-size: cover; /* 背景图片铺满盒子 */
|
||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-s {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-h {
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: #FAFAFA;
|
||||||
|
border-radius: 4px 4px 4px 4px;
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #777777;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anniu-act {
|
||||||
|
background: #FF9655 !important;
|
||||||
|
border: 1px solid #FF9655 !important;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,6 +3,19 @@
|
|||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px">
|
||||||
|
<div class="d-s">
|
||||||
|
<div class="anniu-h" :class="{ 'anniu-act': index == timeIndex }" v-for="(item,index) in timeList" :key="index" @click="editColor(index)">
|
||||||
|
{{item}}
|
||||||
|
</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="value2"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期" @click="handleQuery">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="margin-left: 15px;margin-top: 15px">
|
||||||
<el-form-item label="" prop="deptId" style="width: 180px">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.deptId"
|
v-model="queryParams.deptId"
|
||||||
@ -14,36 +27,38 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;">
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="wrap-box">
|
<div class="wrap-box">
|
||||||
<div class="k_" id="k_1">
|
<div class="k_" id="k_1">
|
||||||
<div class="size_">累计交易金额(万元)</div>
|
<div class="size_">累计交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.amount}}</div>
|
<div class="title_">{{orderStatistics.amount || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_2">
|
<div class="k_" id="k_2">
|
||||||
<div class="size_">累计交易升数</div>
|
<div class="size_">累计交易升数</div>
|
||||||
<div class="title_">{{orderStatistics.num}}</div>
|
<div class="title_">{{orderStatistics.num || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_3">
|
<div class="k_" id="k_3">
|
||||||
<div class="size_">92#汽油交易金额(万元)</div>
|
<div class="size_">92#汽油交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.amount92}}</div>
|
<div class="title_">{{orderStatistics.amount92 || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_4">
|
<div class="k_" id="k_4">
|
||||||
<div class="size_">95#汽油交易金额(万元)</div>
|
<div class="size_">95#汽油交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.amount95}}</div>
|
<div class="title_">{{orderStatistics.amount95 || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_5">
|
<div class="k_" id="k_5">
|
||||||
<div class="size_">98#汽油交易金额(万元)</div>
|
<div class="size_">98#汽油交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.amount98}}</div>
|
<div class="title_">{{orderStatistics.amount98 || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_5">
|
<div class="k_" id="k_5">
|
||||||
<div class="size_">0#柴油交易金额(万元)</div>
|
<div class="size_">0#柴油交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.amount0}}</div>
|
<div class="title_">{{orderStatistics.amount0 || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -108,6 +123,7 @@ import {
|
|||||||
getTradingPageApi
|
getTradingPageApi
|
||||||
} from "@/api/allOrder";
|
} from "@/api/allOrder";
|
||||||
import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialStatement/yunyingfenxi";
|
import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialStatement/yunyingfenxi";
|
||||||
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "yunyingfenxi-oil",
|
name: "yunyingfenxi-oil",
|
||||||
@ -129,6 +145,14 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
orderList:[],
|
orderList:[],
|
||||||
deptList:[],
|
deptList:[],
|
||||||
|
|
||||||
|
timeList:[
|
||||||
|
"今日",
|
||||||
|
"近一周",
|
||||||
|
"近一月",
|
||||||
|
"近一年",
|
||||||
|
],
|
||||||
|
timeIndex:0,
|
||||||
|
value2: [],
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
page: 1,
|
page: 1,
|
||||||
@ -164,11 +188,41 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
this.beginTime = start
|
this.beginTime = start
|
||||||
this.endTime = new Date()
|
this.endTime = new Date()
|
||||||
this.isSysDate = true
|
this.isSysDate = true
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1),parseTime(new Date())];
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
editColor(index){
|
||||||
|
this.timeIndex = index
|
||||||
|
if (this.timeList[index]=='今日'){
|
||||||
|
let start = new Date();
|
||||||
|
start.setHours(0)
|
||||||
|
start.setMinutes(0)
|
||||||
|
start.setSeconds(0)
|
||||||
|
start.setMilliseconds(0)
|
||||||
|
this.value2 = [start,new Date()];
|
||||||
|
} else if (this.timeList[index]=='近一周'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一月'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一年'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
}
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
getDeptList() {
|
getDeptList() {
|
||||||
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
|
||||||
this.deptList = response.data.records;
|
this.deptList = response.data.records;
|
||||||
@ -193,7 +247,7 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiOilOrderDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenXiOilOrderDataApi(this.addDateRange(this.queryParams, this.value2)).then(res=>{
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111",res.data)
|
console.log("res.data1111",res.data)
|
||||||
})
|
})
|
||||||
@ -201,12 +255,12 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
|
|
||||||
// 获取列表信息
|
// 获取列表信息
|
||||||
getList(val){
|
getList(val){
|
||||||
let dateRange = []
|
// let dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
// if (this.beginTime && this.endTime) {
|
||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
// dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
// dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
// }
|
||||||
getFenXiOilOrderListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenXiOilOrderListApi(this.addDateRange(this.queryParams,this.value2)).then( response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
@ -231,6 +285,13 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
}
|
}
|
||||||
this.beginTime = ""
|
this.beginTime = ""
|
||||||
this.endTime = ""
|
this.endTime = ""
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1),parseTime(new Date())];
|
||||||
|
this.timeIndex = 0
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -311,4 +372,26 @@ import {getFenXiOilOrderDataApi, getFenXiOilOrderListApi} from "@/api/financialS
|
|||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-s{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.anniu-h{
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: #FAFAFA;
|
||||||
|
border-radius: 4px 4px 4px 4px;
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #777777;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
.anniu-act{
|
||||||
|
background: #FF9655 !important;
|
||||||
|
border: 1px solid #FF9655 !important;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,7 +3,20 @@
|
|||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px" >
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="120px" >
|
||||||
<el-form-item label="" prop="deptId" style="width: 180px">
|
<div class="d-s">
|
||||||
|
<div class="anniu-h" :class="{ 'anniu-act': index == timeIndex }" v-for="(item,index) in timeList" :key="index" @click="editColor(index)">
|
||||||
|
{{item}}
|
||||||
|
</div>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="value2"
|
||||||
|
type="datetimerange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期" @click="handleQuery">
|
||||||
|
</el-date-picker>
|
||||||
|
<div style="margin-left: 15px;margin-top: 15px">
|
||||||
|
<el-form-item label="" prop="deptId" style="width: 180px;">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.deptId"
|
v-model="queryParams.deptId"
|
||||||
clearable
|
clearable
|
||||||
@ -18,23 +31,26 @@
|
|||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="wrap-box">
|
<div class="wrap-box">
|
||||||
<div class="k_" id="k_1">
|
<div class="k_" id="k_1">
|
||||||
<div class="size_">累计交易金额(万元)</div>
|
<div class="size_">累计交易金额(万元)</div>
|
||||||
<div class="title_">{{orderStatistics.payAmount}}</div>
|
<div class="title_">{{orderStatistics.payAmount || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_2">
|
<div class="k_" id="k_2">
|
||||||
<div class="size_">累计交易笔数</div>
|
<div class="size_">累计交易笔数</div>
|
||||||
<div class="title_">{{orderStatistics.count}}</div>
|
<div class="title_">{{orderStatistics.count || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_3">
|
<div class="k_" id="k_3">
|
||||||
<div class="size_">累计销售商品数量</div>
|
<div class="size_">累计销售商品数量</div>
|
||||||
<div class="title_">{{orderStatistics.goodsNum}}</div>
|
<div class="title_">{{orderStatistics.goodsNum || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="k_" id="k_4">
|
<div class="k_" id="k_4">
|
||||||
<div class="size_">热销品类数量</div>
|
<div class="size_">热销品类数量</div>
|
||||||
<div class="title_">{{orderStatistics.cvg}}</div>
|
<div class="title_">{{orderStatistics.cvg || 0}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@ -93,6 +109,7 @@ import {
|
|||||||
getTradingPageApi
|
getTradingPageApi
|
||||||
} from "@/api/allOrder";
|
} from "@/api/allOrder";
|
||||||
import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStatement/yunyingfenxi";
|
import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStatement/yunyingfenxi";
|
||||||
|
import {parseTime} from "@/utils/fuint";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "yunyingfenxi-store",
|
name: "yunyingfenxi-store",
|
||||||
@ -104,6 +121,15 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
// 员工列表
|
// 员工列表
|
||||||
staffList:[],
|
staffList:[],
|
||||||
ordersInfo:{},
|
ordersInfo:{},
|
||||||
|
|
||||||
|
timeList:[
|
||||||
|
"今日",
|
||||||
|
"近一周",
|
||||||
|
"近一月",
|
||||||
|
"近一年",
|
||||||
|
],
|
||||||
|
timeIndex:0,
|
||||||
|
value2: [],
|
||||||
// 日期范围
|
// 日期范围
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
beginTime:"",
|
beginTime:"",
|
||||||
@ -147,11 +173,41 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
this.beginTime = start
|
this.beginTime = start
|
||||||
this.endTime = new Date()
|
this.endTime = new Date()
|
||||||
this.isSysDate = true
|
this.isSysDate = true
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1),parseTime(new Date())];
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
this.getDeptList();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
editColor(index){
|
||||||
|
this.timeIndex = index
|
||||||
|
if (this.timeList[index]=='今日'){
|
||||||
|
let start = new Date();
|
||||||
|
start.setHours(0)
|
||||||
|
start.setMinutes(0)
|
||||||
|
start.setSeconds(0)
|
||||||
|
start.setMilliseconds(0)
|
||||||
|
this.value2 = [start,new Date()];
|
||||||
|
} else if (this.timeList[index]=='近一周'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一月'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
} else if (this.timeList[index]=='近一年'){
|
||||||
|
let nowDate = new Date();
|
||||||
|
let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
|
||||||
|
this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
|
||||||
|
}
|
||||||
|
this.handleQuery()
|
||||||
|
},
|
||||||
getDeptList() {
|
getDeptList() {
|
||||||
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
|
||||||
this.deptList = response.data.records;
|
this.deptList = response.data.records;
|
||||||
@ -176,7 +232,7 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiStoreDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenXiStoreDataApi(this.addDateRange(this.queryParams, this.value2)).then(res=>{
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111",res.data)
|
console.log("res.data1111",res.data)
|
||||||
})
|
})
|
||||||
@ -189,7 +245,7 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
dateRange.push(this.beginTime.toLocaleDateString())
|
dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
dateRange.push(this.endTime.toLocaleDateString())
|
dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
getFenXiStoreListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenXiStoreListApi(this.addDateRange(this.queryParams,this.value2)).then( response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
this.isSysDate = false
|
this.isSysDate = false
|
||||||
@ -214,6 +270,13 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
}
|
}
|
||||||
this.beginTime = ""
|
this.beginTime = ""
|
||||||
this.endTime = ""
|
this.endTime = ""
|
||||||
|
let start1 = new Date();
|
||||||
|
start1.setHours(0)
|
||||||
|
start1.setMinutes(0)
|
||||||
|
start1.setSeconds(0)
|
||||||
|
start1.setMilliseconds(0)
|
||||||
|
this.value2 = [parseTime(start1),parseTime(new Date())];
|
||||||
|
this.timeIndex = 0
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -294,4 +357,27 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
|
|||||||
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
background-repeat: no-repeat; /* 禁止背景图片重复 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.d-s{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.anniu-h{
|
||||||
|
width: 80px;
|
||||||
|
height: 26px;
|
||||||
|
background: #FAFAFA;
|
||||||
|
border-radius: 4px 4px 4px 4px;
|
||||||
|
border: 1px solid #DDDDDD;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: #777777;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
.anniu-act{
|
||||||
|
background: #FF9655 !important;
|
||||||
|
border: 1px solid #FF9655 !important;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -237,7 +237,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getNoticeList(){
|
getNoticeList(){
|
||||||
getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
|
getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
|
||||||
this.noticeList = res.data.records
|
this.noticeList = res.data.records
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -243,7 +243,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getNoticeList(){
|
getNoticeList(){
|
||||||
getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
|
getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
|
||||||
this.noticeList = res.data.records
|
this.noticeList = res.data.records
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -241,7 +241,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getNoticeList(){
|
getNoticeList(){
|
||||||
getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
|
getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
|
||||||
this.noticeList = res.data.records
|
this.noticeList = res.data.records
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="paymentChannel" label="支付通道"></el-table-column>
|
<el-table-column prop="paymentChannel" label="支付通道"></el-table-column>
|
||||||
<el-table-column prop="appKey" label="密钥">
|
<el-table-column prop="appKey" label="密钥">
|
||||||
|
<el-table-column prop="insCd" label="机构号"> </el-table-column>
|
||||||
<el-table-column prop="publicKey" label="公钥">
|
<el-table-column prop="publicKey" label="公钥">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="single-row">{{scope.row.publicKey}}</div>
|
<div class="single-row">{{scope.row.publicKey}}</div>
|
||||||
@ -158,6 +159,9 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="机构号" prop="insCd">
|
||||||
|
<el-input v-model="deviceInfo.insCd"></el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="公钥" prop="publicKey">
|
<el-form-item label="公钥" prop="publicKey">
|
||||||
<el-input v-model="deviceInfo.publicKey"></el-input>
|
<el-input v-model="deviceInfo.publicKey"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -239,6 +243,9 @@ export default {
|
|||||||
paymentChannel: [
|
paymentChannel: [
|
||||||
{required: true, message: '请选择支付通道', trigger: 'blur'},
|
{required: true, message: '请选择支付通道', trigger: 'blur'},
|
||||||
],
|
],
|
||||||
|
insCd: [
|
||||||
|
{required: true, message: '请填写机构号', trigger: 'blur'},
|
||||||
|
],
|
||||||
publicKey: [
|
publicKey: [
|
||||||
{required: true, message: '请填写公钥信息', trigger: 'blur'},
|
{required: true, message: '请填写公钥信息', trigger: 'blur'},
|
||||||
],
|
],
|
||||||
@ -288,14 +295,15 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
submitDeviceInfo() {
|
submitDeviceInfo() {
|
||||||
// 在这里调用接口提交设备信息数据
|
// 在这里调用接口提交支付参数信息数据
|
||||||
console.log('提交设备信息数据:', this.deviceInfo);
|
|
||||||
if (this.deviceInfo.id) {
|
if (this.deviceInfo.id) {
|
||||||
editPaymentParameter(this.deviceInfo).then(res => {
|
editPaymentParameter(this.deviceInfo).then(res => {
|
||||||
if (res.data === 1) {
|
if (res.data === 1) {
|
||||||
this.$modal.msgSuccess("修改成功")
|
this.$modal.msgSuccess("修改成功")
|
||||||
this.getList()
|
this.getList()
|
||||||
this.open = false
|
this.open = false
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError("修改失败,当前机构的支付通道已存在!")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
@ -304,10 +312,8 @@ export default {
|
|||||||
this.$modal.msgSuccess("添加成功");
|
this.$modal.msgSuccess("添加成功");
|
||||||
this.getList()
|
this.getList()
|
||||||
this.open = false
|
this.open = false
|
||||||
} else if (res.data == 0) {
|
|
||||||
this.$modal.msgError("添加失败,当前通道未配置")
|
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError("商户编号不可重复")
|
this.$modal.msgError("添加失败,当前机构的支付通道已存在!")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -326,17 +332,17 @@ export default {
|
|||||||
handleAdd(e) {
|
handleAdd(e) {
|
||||||
this.clean()
|
this.clean()
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "增加设备"
|
this.title = "增加支付参数"
|
||||||
// this.selectChildByDeptIdApi();
|
// this.selectChildByDeptIdApi();
|
||||||
},
|
},
|
||||||
edit(e) {
|
edit(e) {
|
||||||
this.clean()
|
this.clean()
|
||||||
// this.open = true;
|
// this.open = true;
|
||||||
// this.title = "编辑设备"
|
// this.title = "编辑支付参数"
|
||||||
// this.deviceInfo = e
|
// this.deviceInfo = e
|
||||||
getPaymentParameter(e.id).then(res => {
|
getPaymentParameter(e.id).then(res => {
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "编辑设备"
|
this.title = "编辑支付参数"
|
||||||
this.deviceInfo = res.data
|
this.deviceInfo = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -348,7 +354,7 @@ export default {
|
|||||||
|
|
||||||
del(e) {
|
del(e) {
|
||||||
|
|
||||||
this.$confirm('此操作将永久删除该设备, 是否继续?', '提示', {
|
this.$confirm('此操作将永久删除该支付参数, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
@ -37,6 +37,10 @@ public class PaymentParameterConfig extends BaseEntity implements Serializable {
|
|||||||
* 支付通道:数据字典
|
* 支付通道:数据字典
|
||||||
*/
|
*/
|
||||||
private String paymentChannel;
|
private String paymentChannel;
|
||||||
|
/**
|
||||||
|
* 机构号
|
||||||
|
*/
|
||||||
|
private String insCd;
|
||||||
/**
|
/**
|
||||||
* 公钥
|
* 公钥
|
||||||
*/
|
*/
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
and ppc.status = #{entity.status}
|
and ppc.status = #{entity.status}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
order by ppc.dept_id,ppc.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectInfoById" resultType="com.fuint.api.fuyou.vo.PaymentParameterConfigVo">
|
<select id="selectInfoById" resultType="com.fuint.api.fuyou.vo.PaymentParameterConfigVo">
|
||||||
SELECT ppc.*,sd.dept_name,sd.dept_type,ta.real_name FROM `payment_parameter_config` ppc
|
SELECT ppc.*,sd.dept_name,sd.dept_type,ta.real_name FROM `payment_parameter_config` ppc
|
||||||
|
@ -7,6 +7,8 @@ import com.fuint.api.fuyou.vo.PaymentParameterConfigVo;
|
|||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付参数配置表(PaymentParameterConfig)表服务接口
|
* 支付参数配置表(PaymentParameterConfig)表服务接口
|
||||||
*
|
*
|
||||||
@ -47,8 +49,32 @@ public interface PaymentParameterConfigService {
|
|||||||
*/
|
*/
|
||||||
int deleteById(Integer id);
|
int deleteById(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据条件分页查询
|
||||||
|
* @param page
|
||||||
|
* @param paymentParameterConfigVo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
IPage<PaymentParameterConfigVo> selectListPage(Page page, PaymentParameterConfigVo paymentParameterConfigVo);
|
IPage<PaymentParameterConfigVo> selectListPage(Page page, PaymentParameterConfigVo paymentParameterConfigVo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id查询配置参数信息
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
PaymentParameterConfigVo selectInfoById(Integer id);
|
PaymentParameterConfigVo selectInfoById(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据deptId查询参数配置信息
|
||||||
|
* @param deptId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<PaymentParameterConfig> selectListByDeptID(Integer deptId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据deptId和支付通道查询参数配置信息
|
||||||
|
* @param deptId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
PaymentParameterConfig selectByDeptIDAndChannel(Integer deptId,String paymentChannel);
|
||||||
}
|
}
|
||||||
|
@ -7,10 +7,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.fuint.api.fuyou.entity.FuYouPublicMerchant;
|
import com.fuint.api.fuyou.entity.FuYouPublicMerchant;
|
||||||
import com.fuint.api.fuyou.entity.MerchantConfig;
|
import com.fuint.api.fuyou.entity.MerchantConfig;
|
||||||
|
import com.fuint.api.fuyou.entity.PaymentParameterConfig;
|
||||||
import com.fuint.api.fuyou.entity.PaymentRuleConfig;
|
import com.fuint.api.fuyou.entity.PaymentRuleConfig;
|
||||||
import com.fuint.api.fuyou.mapper.MerchantConfigMapper;
|
import com.fuint.api.fuyou.mapper.MerchantConfigMapper;
|
||||||
import com.fuint.api.fuyou.service.MerchantConfigService;
|
import com.fuint.api.fuyou.service.MerchantConfigService;
|
||||||
import com.fuint.api.fuyou.service.OilConfigService;
|
import com.fuint.api.fuyou.service.OilConfigService;
|
||||||
|
import com.fuint.api.fuyou.service.PaymentParameterConfigService;
|
||||||
import com.fuint.api.fuyou.service.PaymentRuleConfigService;
|
import com.fuint.api.fuyou.service.PaymentRuleConfigService;
|
||||||
import com.fuint.api.fuyou.vo.MerchantConfigVo;
|
import com.fuint.api.fuyou.vo.MerchantConfigVo;
|
||||||
import com.fuint.business.storeInformation.entity.LJStore;
|
import com.fuint.business.storeInformation.entity.LJStore;
|
||||||
@ -42,7 +44,7 @@ public class MerchantConfigServiceImpl extends ServiceImpl<MerchantConfigMapper,
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@Lazy
|
@Lazy
|
||||||
private ILJStoreService storeService;
|
private PaymentParameterConfigService paymentParameterConfigService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MerchantConfig selectMeChByIsUse(String isUse) {
|
public MerchantConfig selectMeChByIsUse(String isUse) {
|
||||||
@ -225,6 +227,12 @@ public class MerchantConfigServiceImpl extends ServiceImpl<MerchantConfigMapper,
|
|||||||
row = 0;
|
row = 0;
|
||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
|
PaymentParameterConfig paymentParameterConfig = paymentParameterConfigService.selectByDeptIDAndChannel(merchantConfig.getDeptId(), merchantConfig.getMerchantName());
|
||||||
|
if (ObjectUtil.isNotEmpty(paymentParameterConfig)){
|
||||||
|
merchantConfig.setInsCd(paymentParameterConfig.getInsCd());
|
||||||
|
merchantConfig.setPublicKey(paymentParameterConfig.getPublicKey());
|
||||||
|
merchantConfig.setPrivateKey(paymentParameterConfig.getPrivateKey());
|
||||||
|
}
|
||||||
merchantConfig.setAppid(FuYouPublicMerchant.appid);
|
merchantConfig.setAppid(FuYouPublicMerchant.appid);
|
||||||
merchantConfig.setAlipayAppid(FuYouPublicMerchant.alipayAppid);
|
merchantConfig.setAlipayAppid(FuYouPublicMerchant.alipayAppid);
|
||||||
MerchantConfig merchantConfig1 = this.selectMeChByIdIsUse1(storeId);
|
MerchantConfig merchantConfig1 = this.selectMeChByIdIsUse1(storeId);
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
package com.fuint.api.fuyou.service.impl;
|
package com.fuint.api.fuyou.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
@ -12,6 +15,7 @@ import org.springframework.data.domain.PageImpl;
|
|||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付参数配置表(PaymentParameterConfig)表服务实现类
|
* 支付参数配置表(PaymentParameterConfig)表服务实现类
|
||||||
@ -41,6 +45,16 @@ public class PaymentParameterConfigServiceImpl extends ServiceImpl<PaymentParame
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int insert(PaymentParameterConfigVo paymentParameterConfig) {
|
public int insert(PaymentParameterConfigVo paymentParameterConfig) {
|
||||||
|
List<PaymentParameterConfig> paymentParameterConfigs = selectListByDeptID(paymentParameterConfig.getDeptId());
|
||||||
|
boolean flag = false;
|
||||||
|
if (CollectionUtil.isNotEmpty(paymentParameterConfigs)){
|
||||||
|
for (PaymentParameterConfig parameterConfig : paymentParameterConfigs) {
|
||||||
|
if (parameterConfig.getPaymentChannel().equals(paymentParameterConfig.getPaymentChannel())){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) return 0;
|
||||||
return baseMapper.insert(paymentParameterConfig);
|
return baseMapper.insert(paymentParameterConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,6 +66,17 @@ public class PaymentParameterConfigServiceImpl extends ServiceImpl<PaymentParame
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int update(PaymentParameterConfig paymentParameterConfig) {
|
public int update(PaymentParameterConfig paymentParameterConfig) {
|
||||||
|
List<PaymentParameterConfig> paymentParameterConfigs = selectListByDeptID(paymentParameterConfig.getDeptId());
|
||||||
|
boolean flag = false;
|
||||||
|
if (CollectionUtil.isNotEmpty(paymentParameterConfigs)){
|
||||||
|
for (PaymentParameterConfig parameterConfig : paymentParameterConfigs) {
|
||||||
|
if (parameterConfig.getPaymentChannel().equals(paymentParameterConfig.getPaymentChannel())
|
||||||
|
&& paymentParameterConfig.getId() != parameterConfig.getId()){
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (flag) return 0;
|
||||||
return baseMapper.updateById(paymentParameterConfig);
|
return baseMapper.updateById(paymentParameterConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,4 +100,19 @@ public class PaymentParameterConfigServiceImpl extends ServiceImpl<PaymentParame
|
|||||||
public PaymentParameterConfigVo selectInfoById(Integer id) {
|
public PaymentParameterConfigVo selectInfoById(Integer id) {
|
||||||
return baseMapper.selectInfoById(id);
|
return baseMapper.selectInfoById(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PaymentParameterConfig> selectListByDeptID(Integer deptId) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("dept_id",deptId);
|
||||||
|
return baseMapper.selectList(queryWrapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PaymentParameterConfig selectByDeptIDAndChannel(Integer deptId, String paymentChannel) {
|
||||||
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("dept_id",deptId);
|
||||||
|
queryWrapper.eq("payment_channel",paymentChannel);
|
||||||
|
return baseMapper.selectOne(queryWrapper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,9 +44,9 @@ public interface IntegralOrdersMapper {
|
|||||||
|
|
||||||
|
|
||||||
IPage<IntegralOrdersVO> queryByPageUni(@Param("page") Page page, @Param("integralOrders") IntegralOrdersDTO integralOrders);
|
IPage<IntegralOrdersVO> queryByPageUni(@Param("page") Page page, @Param("integralOrders") IntegralOrdersDTO integralOrders);
|
||||||
IPage<IntegralOrdersVO> queryByPageFenxiByZtDz(@Param("page") Page page, @Param("integralOrders") IntegralOrdersDTO integralOrders);
|
IPage<IntegralOrdersVO> queryByPageFenxiByZtDz(@Param("page") Page page, @Param("order") IntegralOrdersDTO integralOrders);
|
||||||
IntegralOrdersVO getInfoByStoreId(@Param("integralOrders") IntegralOrdersDTO integralOrders);
|
IntegralOrdersVO getInfoByStoreId(@Param("integralOrders") IntegralOrdersDTO integralOrders);
|
||||||
Map<String, String> getIntFenxiDataByZtDz(IntegralOrdersDTO integralOrders);
|
Map<String, String> getIntFenxiDataByZtDz(@Param("order") IntegralOrdersDTO integralOrders);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 统计总行数
|
* 统计总行数
|
||||||
|
@ -639,6 +639,20 @@
|
|||||||
sum(exchange_quantity) exchangeQuantity,
|
sum(exchange_quantity) exchangeQuantity,
|
||||||
sum(integral) integral
|
sum(integral) integral
|
||||||
from integral_orders
|
from integral_orders
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
group by
|
group by
|
||||||
store_id
|
store_id
|
||||||
|
|
||||||
@ -665,6 +679,20 @@ limit 1
|
|||||||
sum(integral) integrals
|
sum(integral) integrals
|
||||||
from integral_orders
|
from integral_orders
|
||||||
|
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -135,6 +135,14 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<IntegralOrdersVO> queryByPageFenxiByZtDz(Page page, IntegralOrdersDTO integralOrders) {
|
public IPage<IntegralOrdersVO> queryByPageFenxiByZtDz(Page page, IntegralOrdersDTO integralOrders) {
|
||||||
|
if (ObjectUtil.isEmpty(integralOrders.getDeptId())) {
|
||||||
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
|
integralOrders.setDeptId(nowAccountInfo.getDeptId());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(integralOrders.getDeptId());
|
||||||
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
integralOrders.setStoreIds(longs);
|
||||||
IPage<IntegralOrdersVO> integralOrdersVOIPage = integralOrdersDao.queryByPageFenxiByZtDz(page, integralOrders);
|
IPage<IntegralOrdersVO> integralOrdersVOIPage = integralOrdersDao.queryByPageFenxiByZtDz(page, integralOrders);
|
||||||
for (IntegralOrdersVO record : integralOrdersVOIPage.getRecords()) {
|
for (IntegralOrdersVO record : integralOrdersVOIPage.getRecords()) {
|
||||||
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
||||||
@ -157,6 +165,14 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> getIntFenxiDataByZtDz(IntegralOrdersDTO integralOrders) {
|
public Map<String, String> getIntFenxiDataByZtDz(IntegralOrdersDTO integralOrders) {
|
||||||
|
if (ObjectUtil.isEmpty(integralOrders.getDeptId())) {
|
||||||
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
|
integralOrders.setDeptId(nowAccountInfo.getDeptId());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(integralOrders.getDeptId());
|
||||||
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
integralOrders.setStoreIds(longs);
|
||||||
return integralOrdersDao.getIntFenxiDataByZtDz(integralOrders);
|
return integralOrdersDao.getIntFenxiDataByZtDz(integralOrders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,5 +95,9 @@ public class AllOrderInfo extends BaseEntity implements Serializable {
|
|||||||
private String refBy;
|
private String refBy;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
List<allorderVOo> fenxiByDaili2;
|
List<allorderVOo> fenxiByDaili2;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Long deptId;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<Long> storeIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@ import java.util.Map;
|
|||||||
public interface AllOrderInfoMapper extends BaseMapper<AllOrderInfo> {
|
public interface AllOrderInfoMapper extends BaseMapper<AllOrderInfo> {
|
||||||
|
|
||||||
IPage<AllOrderInfoVo> getPageList(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
IPage<AllOrderInfoVo> getPageList(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
||||||
IPage<AllOrderInfoVo> getFenxiByDaili(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
IPage<AllOrderInfoVo> getFenxiByDaili(@Param("page") Page page, @Param("order") AllOrderInfo allOrderInfo);
|
||||||
IPage<AllOrderInfoVo> getFenxiByDailiType(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
IPage<AllOrderInfoVo> getFenxiByDailiType(@Param("page") Page page, @Param("order") AllOrderInfo allOrderInfo);
|
||||||
List<allorderVOo> getFenxiByDaili2(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
List<allorderVOo> getFenxiByDaili2(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
||||||
Map<String, Object> getFenxiByDailiBydata(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
Map<String, Object> getFenxiByDailiBydata(@Param("order") AllOrderInfo allOrderInfo);
|
||||||
List<AllOrderInfoVo> getFenxiByDaili2ByData(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
List<AllOrderInfoVo> getFenxiByDaili2ByData(@Param("order") AllOrderInfo allOrderInfo);
|
||||||
String sumPayMoney(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
String sumPayMoney(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
||||||
|
|
||||||
// 根据storeId List查询总流水
|
// 根据storeId List查询总流水
|
||||||
@ -80,5 +80,5 @@ public interface AllOrderInfoMapper extends BaseMapper<AllOrderInfo> {
|
|||||||
Double selectAllAmount(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
Double selectAllAmount(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
|
||||||
|
|
||||||
Map<String, Object> getLeiJiInfo(UserBalanceVo record);
|
Map<String, Object> getLeiJiInfo(UserBalanceVo record);
|
||||||
Map<String, Object> getShuJuVipInfo(UserBalanceVo record);
|
Map<String, Object> getShuJuVipInfo(@Param("order") UserBalanceVo record);
|
||||||
}
|
}
|
@ -39,8 +39,8 @@ public interface LJOrderMapper extends BaseMapper<LJOrder> {
|
|||||||
|
|
||||||
LJOrder getStatisticsByTime(@Param("time") Date time,@Param("goodsId") Integer goodsId,@Param("payType") String payType);
|
LJOrder getStatisticsByTime(@Param("time") Date time,@Param("goodsId") Integer goodsId,@Param("payType") String payType);
|
||||||
|
|
||||||
IPage<LJOrderVo> selectOrderFenxiListByZtDz(Page page, LJOrderVo order);
|
IPage<LJOrderVo> selectOrderFenxiListByZtDz(Page page, @Param("order") LJOrderVo order);
|
||||||
|
|
||||||
Map<String,Object> selectOrderFenxiDataByZtDz(LJOrderVo order);
|
Map<String,Object> selectOrderFenxiDataByZtDz(@Param("order") LJOrderVo order);
|
||||||
Map<String,Object> selectOrderFenxiDataByZtDz2(LJOrderVo order);
|
Map<String,Object> selectOrderFenxiDataByZtDz2(@Param("order") LJOrderVo order);
|
||||||
}
|
}
|
||||||
|
@ -484,6 +484,20 @@
|
|||||||
SUM(CASE WHEN content = "储值卡充值" THEN pay_money ELSE 0 END) AS tongjMoney, -- 累计充值金额
|
SUM(CASE WHEN content = "储值卡充值" THEN pay_money ELSE 0 END) AS tongjMoney, -- 累计充值金额
|
||||||
SUM(CASE WHEN type = 3 THEN pay_money ELSE 0 END) AS tongjXfMoney -- 累计消费金额
|
SUM(CASE WHEN type = 3 THEN pay_money ELSE 0 END) AS tongjXfMoney -- 累计消费金额
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getFenxiByDaili" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
<select id="getFenxiByDaili" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
||||||
@ -492,6 +506,29 @@
|
|||||||
SUM(pay_money) payMoney,
|
SUM(pay_money) payMoney,
|
||||||
count(*) count
|
count(*) count
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.status != null and order.status != ''">
|
||||||
|
and status = #{order.status}
|
||||||
|
</if>
|
||||||
|
<if test="order.payChannel != null and order.payChannel != ''">
|
||||||
|
and pay_channel = #{order.payChannel}
|
||||||
|
</if>
|
||||||
|
<if test="order.payType != null and order.payType != ''">
|
||||||
|
and pay_type = #{order.payType}
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
group by store_id
|
group by store_id
|
||||||
</select>
|
</select>
|
||||||
<select id="getFenxiByDailiType" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
<select id="getFenxiByDailiType" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
||||||
@ -506,6 +543,20 @@
|
|||||||
sum(CASE WHEN status = 'refund' THEN pay_money ELSE 0 END) refMoney,
|
sum(CASE WHEN status = 'refund' THEN pay_money ELSE 0 END) refMoney,
|
||||||
count(CASE WHEN status = 'refund' THEN pay_money ELSE 0 END) refCount
|
count(CASE WHEN status = 'refund' THEN pay_money ELSE 0 END) refCount
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
group by store_id
|
group by store_id
|
||||||
</select>
|
</select>
|
||||||
<select id="getFenxiByDaili2" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
<select id="getFenxiByDaili2" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
||||||
@ -529,6 +580,20 @@
|
|||||||
SUM(pay_money) payMoneyChannel,
|
SUM(pay_money) payMoneyChannel,
|
||||||
count(*) countChannel
|
count(*) countChannel
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
group by payment_channel
|
group by payment_channel
|
||||||
</select>
|
</select>
|
||||||
<select id="getFenxiByDailiBydata" resultType="java.util.Map">
|
<select id="getFenxiByDailiBydata" resultType="java.util.Map">
|
||||||
@ -536,6 +601,20 @@
|
|||||||
SUM(pay_money) payMoney,
|
SUM(pay_money) payMoney,
|
||||||
count(*) count
|
count(*) count
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getFenxiByDailiTypeDaty" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
<select id="getFenxiByDailiTypeDaty" resultType="com.fuint.business.order.vo.AllOrderInfoVo">
|
||||||
|
@ -260,6 +260,20 @@
|
|||||||
count(*) counts,
|
count(*) counts,
|
||||||
sum(goods_num) goodsNums
|
sum(goods_num) goodsNums
|
||||||
from mt_order
|
from mt_order
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
group by store_id
|
group by store_id
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
@ -269,6 +283,20 @@
|
|||||||
count(*) count,
|
count(*) count,
|
||||||
sum(goods_num) goodsNum
|
sum(goods_num) goodsNum
|
||||||
from mt_order
|
from mt_order
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectOrderFenxiDataByZtDz2" resultType="java.util.Map">
|
<select id="selectOrderFenxiDataByZtDz2" resultType="java.util.Map">
|
||||||
@ -277,6 +305,20 @@
|
|||||||
from mt_order mo
|
from mt_order mo
|
||||||
left join mt_order_goods mog on mog.goods_id = mo.id
|
left join mt_order_goods mog on mog.goods_id = mo.id
|
||||||
left join mt_goods mg on mog.goods_id = mg.id
|
left join mt_goods mg on mog.goods_id = mg.id
|
||||||
|
<where>
|
||||||
|
<if test="order.storeIds != null">
|
||||||
|
mo.store_id in
|
||||||
|
<foreach collection="order.storeIds" item="item" index="index" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(mo.create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(mo.create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
@ -724,6 +724,13 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
group by store_id
|
group by store_id
|
||||||
</select>
|
</select>
|
||||||
@ -744,6 +751,12 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="order.params.beginTime != null and order.params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="order.params.endTime != null and order.params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
@ -144,6 +144,15 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IPage<AllOrderInfoVo> getFenxiByDaili(Page page, AllOrderInfo allOrderInfo) {
|
public IPage<AllOrderInfoVo> getFenxiByDaili(Page page, AllOrderInfo allOrderInfo) {
|
||||||
|
if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
|
||||||
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
|
allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
|
||||||
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
allOrderInfo.setStoreIds(longs);
|
||||||
|
|
||||||
IPage<AllOrderInfoVo> fenxiByDaili = allOrderInfoMapper.getFenxiByDaili(page, allOrderInfo);
|
IPage<AllOrderInfoVo> fenxiByDaili = allOrderInfoMapper.getFenxiByDaili(page, allOrderInfo);
|
||||||
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
|
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
|
||||||
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
||||||
@ -152,6 +161,13 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
|||||||
SysDept byId2 = deptService.getById(byId.getParentId());
|
SysDept byId2 = deptService.getById(byId.getParentId());
|
||||||
record.setStoreName(byId.getDeptName());
|
record.setStoreName(byId.getDeptName());
|
||||||
record.setParentName(byId2.getDeptName());
|
record.setParentName(byId2.getDeptName());
|
||||||
|
|
||||||
|
List<Integer> storeIds = new ArrayList<>();
|
||||||
|
storeIds.add(mtStore.getId());
|
||||||
|
Double fuYouAmount = merchantConfigService.selectAllAmount("富友", storeIds);
|
||||||
|
Double laKaLaAmount = merchantConfigService.selectAllAmount("拉卡拉", storeIds);
|
||||||
|
record.setFuYouAmount(ObjectUtil.isNotEmpty(fuYouAmount) ? fuYouAmount : 0.0);
|
||||||
|
record.setLaKaLaAmount(ObjectUtil.isNotEmpty(laKaLaAmount) ? laKaLaAmount : 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
|
List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
|
||||||
@ -162,6 +178,14 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
|||||||
// getFenxiByDailiBydata
|
// getFenxiByDailiBydata
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getFenxiByDailiBydata(AllOrderInfo allOrderInfo) {
|
public Map<String, Object> getFenxiByDailiBydata(AllOrderInfo allOrderInfo) {
|
||||||
|
if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
|
||||||
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
|
allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
|
||||||
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
allOrderInfo.setStoreIds(longs);
|
||||||
Map<String, Object> fenxiByDailiBydata = allOrderInfoMapper.getFenxiByDailiBydata(allOrderInfo);
|
Map<String, Object> fenxiByDailiBydata = allOrderInfoMapper.getFenxiByDailiBydata(allOrderInfo);
|
||||||
List<AllOrderInfoVo> fenxiByDaili2ByData = allOrderInfoMapper.getFenxiByDaili2ByData(allOrderInfo);
|
List<AllOrderInfoVo> fenxiByDaili2ByData = allOrderInfoMapper.getFenxiByDaili2ByData(allOrderInfo);
|
||||||
fenxiByDailiBydata.put("fenxiByDaili2ByData",fenxiByDaili2ByData);
|
fenxiByDailiBydata.put("fenxiByDaili2ByData",fenxiByDaili2ByData);
|
||||||
@ -169,6 +193,14 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper,AllO
|
|||||||
return fenxiByDailiBydata;
|
return fenxiByDailiBydata;
|
||||||
}
|
}
|
||||||
public IPage<AllOrderInfoVo> getFenxiByDailiType(Page page, AllOrderInfo allOrderInfo) {
|
public IPage<AllOrderInfoVo> getFenxiByDailiType(Page page, AllOrderInfo allOrderInfo) {
|
||||||
|
if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
|
||||||
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
|
allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
|
||||||
|
}
|
||||||
|
|
||||||
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
|
||||||
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
allOrderInfo.setStoreIds(longs);
|
||||||
IPage<AllOrderInfoVo> fenxiByDaili = allOrderInfoMapper.getFenxiByDailiType(page, allOrderInfo);
|
IPage<AllOrderInfoVo> fenxiByDaili = allOrderInfoMapper.getFenxiByDailiType(page, allOrderInfo);
|
||||||
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
|
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
|
||||||
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
|
||||||
|
@ -76,5 +76,9 @@ public class AllOrderInfoVo extends AllOrderInfo {
|
|||||||
private String count;
|
private String count;
|
||||||
private String refCount;
|
private String refCount;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Double fuYouAmount;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private Double laKaLaAmount;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user