no message
This commit is contained in:
parent
a3ccc2ba87
commit
261bbd510d
@ -14,15 +14,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
dialogVisible2:false,
|
dialogVisible2:false,
|
||||||
tableData: [{
|
tableData: [ ],
|
||||||
price:2000,
|
|
||||||
yprice:2500,
|
|
||||||
date: '2016-05-02',
|
|
||||||
name: '王小虎',
|
|
||||||
address: '上海市普陀区金沙江路 1518 弄',
|
|
||||||
status:'进行中',
|
|
||||||
upadate: '2016-05-02',
|
|
||||||
}, ],
|
|
||||||
form: {
|
form: {
|
||||||
deductionRate: '', // 扣点费率
|
deductionRate: '', // 扣点费率
|
||||||
likelyTransactionVolume: '0', // 已发生交易流量
|
likelyTransactionVolume: '0', // 已发生交易流量
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
|||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
border
|
border
|
||||||
style="width: 90%;margin-left: 55px ">
|
style="width: 95%;margin-left: 55px ">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="prepaidAmount"
|
prop="prepaidAmount"
|
||||||
align="center"
|
align="center"
|
||||||
@ -175,6 +175,7 @@ export default {
|
|||||||
<template slot="header" slot-scope="scope">
|
<template slot="header" slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
type="success" plain
|
||||||
@click="handleUpdate1(scope.row)"
|
@click="handleUpdate1(scope.row)"
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -92,7 +92,7 @@ export default {
|
|||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
border
|
border
|
||||||
style="width: 80%;margin-left: 55px ">
|
style="width: 95%;margin-left: 55px ">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="price"
|
prop="price"
|
||||||
align="center"
|
align="center"
|
||||||
@ -137,6 +137,7 @@ export default {
|
|||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="dialogVisible=true"
|
@click="dialogVisible=true"
|
||||||
|
type="success" plain
|
||||||
>新增</el-button>
|
>新增</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
width="160"
|
width="200px"
|
||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
>
|
>
|
||||||
<!-- v-hasPermi="['system:account:edit']" -->
|
<!-- v-hasPermi="['system:account:edit']" -->
|
||||||
@ -172,15 +172,22 @@
|
|||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['user:delete']"
|
v-hasPermi="['user:delete']"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" >
|
<el-button
|
||||||
<span class="el-dropdown-link" v-hasPermi="['user:password']">
|
size="mini"
|
||||||
<i class="el-icon-d-arrow-right el-icon--right"></i>更多
|
type="text"
|
||||||
</span>
|
icon="el-icon-refresh"
|
||||||
<el-dropdown-menu slot="dropdown">
|
@click="handleResetPwd(scope.row)"
|
||||||
<el-dropdown-item command="handleResetPwd" icon="el-icon-key" v-hasPermi="['user:password']"
|
v-hasPermi="['user:delete']"
|
||||||
>重置密码</el-dropdown-item>
|
>重置密码</el-button>
|
||||||
</el-dropdown-menu>
|
<!-- <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" >-->
|
||||||
</el-dropdown>
|
<!-- <span class="el-dropdown-link" v-hasPermi="['user:password']">-->
|
||||||
|
<!-- <i class="el-icon-d-arrow-right el-icon--right"></i>更多-->
|
||||||
|
<!-- </span>-->
|
||||||
|
<!-- <el-dropdown-menu slot="dropdown">-->
|
||||||
|
<!-- <el-dropdown-item command="handleResetPwd" icon="el-icon-key" v-hasPermi="['user:password']"-->
|
||||||
|
<!-- >重置密码</el-dropdown-item>-->
|
||||||
|
<!-- </el-dropdown-menu>-->
|
||||||
|
<!-- </el-dropdown>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -292,7 +299,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<template v-if="ruleForm.deptType !== '3'">
|
<!-- <template v-if="ruleForm.deptType !== '3'">-->
|
||||||
|
<template v-if="is2Store">
|
||||||
<el-row >
|
<el-row >
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<el-form-item label="计费方式" prop="turnoverType">
|
<el-form-item label="计费方式" prop="turnoverType">
|
||||||
@ -541,6 +549,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item style="float: right">
|
<el-form-item style="float: right">
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery1">查询</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery1">查询</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" @click="reset2">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -842,6 +851,9 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
// 判断是否是二级门店
|
||||||
|
is2Store:false,
|
||||||
maxNumber:1,
|
maxNumber:1,
|
||||||
storeNum: false,
|
storeNum: false,
|
||||||
isEditDept:true,
|
isEditDept:true,
|
||||||
@ -1295,6 +1307,18 @@ export default {
|
|||||||
this.queryParams1.page = 1;
|
this.queryParams1.page = 1;
|
||||||
this.getDutyList();
|
this.getDutyList();
|
||||||
},
|
},
|
||||||
|
//重置校色信息
|
||||||
|
reset2(){
|
||||||
|
this.queryParams1 = {
|
||||||
|
page:1,
|
||||||
|
pageSize:10,
|
||||||
|
// 当做机构id使用
|
||||||
|
storeId:"",
|
||||||
|
deptId:''
|
||||||
|
}
|
||||||
|
|
||||||
|
this.getDutyList();
|
||||||
|
},
|
||||||
getDutyList(){
|
getDutyList(){
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
dutyList(this.queryParams1).then(res => {
|
dutyList(this.queryParams1).then(res => {
|
||||||
@ -1370,7 +1394,7 @@ export default {
|
|||||||
let evenNumbers = typeList
|
let evenNumbers = typeList
|
||||||
// isClick
|
// isClick
|
||||||
if (this.deptType == 3 || (this.deptType == 2 && !this.isClick)) {
|
if (this.deptType == 3 || (this.deptType == 2 && !this.isClick)) {
|
||||||
evenNumbers = typeList.filter(number => number.label === "基本门店");
|
evenNumbers = typeList.filter(number => number.label === "单油站");
|
||||||
this.ruleForm.deptType = "3"
|
this.ruleForm.deptType = "3"
|
||||||
}
|
}
|
||||||
return evenNumbers
|
return evenNumbers
|
||||||
@ -1556,6 +1580,11 @@ export default {
|
|||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.isAdd = true
|
this.isAdd = true
|
||||||
// 新增树
|
// 新增树
|
||||||
|
if (data.id == 100) {
|
||||||
|
this.is2Store = true
|
||||||
|
}else {
|
||||||
|
this.is2Store = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cleanRuleForm() {
|
cleanRuleForm() {
|
||||||
this.ruleForm= {
|
this.ruleForm= {
|
||||||
@ -1621,9 +1650,15 @@ export default {
|
|||||||
Userlist(id).then(res=>{
|
Userlist(id).then(res=>{
|
||||||
let ancestors = res.data.ancestors.slice(2).toString();
|
let ancestors = res.data.ancestors.slice(2).toString();
|
||||||
this.parentName = res.data.parentName
|
this.parentName = res.data.parentName
|
||||||
|
|
||||||
this.ruleForm = res.data
|
this.ruleForm = res.data
|
||||||
|
|
||||||
|
if (this.ruleForm.parentId == 100) {
|
||||||
|
this.is2Store = true
|
||||||
|
}else {
|
||||||
|
this.is2Store = false
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// this.ruleForm.parentId = res.data.parentId
|
// this.ruleForm.parentId = res.data.parentId
|
||||||
// this.ruleForm.status = res.data.status
|
// this.ruleForm.status = res.data.status
|
||||||
@ -1954,6 +1989,14 @@ export default {
|
|||||||
password:'',
|
password:'',
|
||||||
accountStatus:1
|
accountStatus:1
|
||||||
}
|
}
|
||||||
|
this.queryParams= {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
userName: '',
|
||||||
|
phonenumber: '',
|
||||||
|
status: '',
|
||||||
|
deptId: ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="nbox" :class="pointerClass" @click="updateRedio('积分兑换订单')">
|
<div class="nbox" :class="pointerClass" @click="updateRedio('积分兑换订单')">
|
||||||
<div class="fount-box" :style="{ color: radio1 === '积分兑换订单' ? '#FF770F' : '#999999' }">积分兑换订单</div>
|
<div class="fount-box" :style="{ color: radio1 === '积分兑换订单' ? '#FF770F' : '#999999' }">积分商城订单</div>
|
||||||
<div class="heng-box" v-if="radio1 == '积分兑换订单'"></div>
|
<div class="heng-box" v-if="radio1 == '积分兑换订单'"></div>
|
||||||
<div class="heng-box" style="background-color: #FFFFFF" v-else></div>
|
<div class="heng-box" style="background-color: #FFFFFF" v-else></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- 收银台订单-->
|
<!-- 收银台订单-->
|
||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px;margin-right: 40px">
|
||||||
<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">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
@ -43,11 +43,11 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.status"
|
v-model="queryParams.status"
|
||||||
clearable
|
clearable
|
||||||
placeholder="支付状态"
|
placeholder="订单状态"
|
||||||
>
|
>
|
||||||
<el-option label="已支付" value="paid"/>
|
<el-option label="支付成功" value="paid"/>
|
||||||
<el-option label="未支付" value="unpaid"/>
|
<el-option label="待支付" value="unpaid"/>
|
||||||
<el-option label="已退款" value="refund"/>
|
<el-option label="退款成功" value="refund"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;margin-right:0px">
|
||||||
<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>
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
||||||
<el-table-column prop="orderNumber" align="center" label="订单号" > </el-table-column>
|
<el-table-column prop="orderNumber" align="center" label="订单号" > </el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="订单金额(万元)">
|
<el-table-column prop="amount" align="center" label="订单金额(元)">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.amount">{{scope.row.amount}}</span>
|
<span v-if="scope.row.amount">{{scope.row.amount}}</span>
|
||||||
<span v-else>--</span>
|
<span v-else>--</span>
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
<span v-else-if="scope.row.payChannel=='PC'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
<span v-else>其他</span>
|
<span v-else>其他</span>
|
||||||
</template>
|
</template>
|
||||||
@ -108,9 +108,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" align="center" label="支付状态">
|
<el-table-column prop="status" align="center" label="支付状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status == 'unpaid'">未支付</el-tag>
|
<el-tag v-if="scope.row.status == 'unpaid'">待支付</el-tag>
|
||||||
<el-tag type="success" v-else-if="scope.row.status == 'paid'">已支付</el-tag>
|
<el-tag type="success" v-else-if="scope.row.status == 'paid'">支付成功</el-tag>
|
||||||
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">已退款</el-tag>
|
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">退款成功</el-tag>
|
||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- 收银台订单-->
|
<!-- 收银台订单-->
|
||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px;margin-right: 40px">
|
||||||
<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">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
@ -43,11 +43,11 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.orderStatus"
|
v-model="queryParams.orderStatus"
|
||||||
clearable
|
clearable
|
||||||
placeholder="支付状态"
|
placeholder="订单状态"
|
||||||
>
|
>
|
||||||
<el-option label="已支付" value="paid"/>
|
<el-option label="支付成功" value="paid"/>
|
||||||
<el-option label="未支付" value="unpaid"/>
|
<el-option label="待支付" value="unpaid"/>
|
||||||
<el-option label="已退款" value="refund"/>
|
<el-option label="退款成功" value="refund"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;margin-right:0px">
|
||||||
<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>
|
||||||
@ -85,12 +85,12 @@
|
|||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
||||||
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
||||||
<el-table-column prop="payAmount" align="center" label="订单金额(万元)"></el-table-column>
|
<el-table-column prop="payAmount" align="center" label="订单金额(元)"></el-table-column>
|
||||||
<el-table-column prop="terminal" align="center" label="订单类型">
|
<el-table-column prop="terminal" align="center" label="订单类型">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.terminal=='cashier'">收银台</span>
|
<span v-if="scope.row.terminal=='cashier'">收银台</span>
|
||||||
<span v-else-if="scope.row.terminal=='POS'">POS机</span>
|
<span v-else-if="scope.row.terminal=='POS'">POS机</span>
|
||||||
<span v-else-if="scope.row.terminal=='PC'">平台</span>
|
<span v-else-if="scope.row.terminal=='PC'">收银台</span>
|
||||||
<span v-else-if="scope.row.terminal=='applet'">小程序</span>
|
<span v-else-if="scope.row.terminal=='applet'">小程序</span>
|
||||||
<span v-else>其他</span>
|
<span v-else>其他</span>
|
||||||
</template>
|
</template>
|
||||||
@ -105,9 +105,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="orderStatus" align="center" label="支付状态">
|
<el-table-column prop="orderStatus" align="center" label="支付状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.orderStatus == 'unpaid'">未支付</el-tag>
|
<el-tag v-if="scope.row.orderStatus == 'unpaid'">待支付</el-tag>
|
||||||
<el-tag type="success" v-else-if="scope.row.orderStatus == 'paid'">已支付</el-tag>
|
<el-tag type="success" v-else-if="scope.row.orderStatus == 'paid'">支付成功</el-tag>
|
||||||
<el-tag type="danger" v-else-if="scope.row.orderStatus == 'refund'">已退款</el-tag>
|
<el-tag type="danger" v-else-if="scope.row.orderStatus == 'refund'">退款成功</el-tag>
|
||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- 收银台订单-->
|
<!-- 收银台订单-->
|
||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px;margin-right: 40px">
|
||||||
<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">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
@ -43,11 +43,11 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.status"
|
v-model="queryParams.status"
|
||||||
clearable
|
clearable
|
||||||
placeholder="支付状态"
|
placeholder="订单状态"
|
||||||
>
|
>
|
||||||
<el-option label="已支付" value="paid"/>
|
<el-option label="支付成功" value="paid"/>
|
||||||
<el-option label="未支付" value="unpaid"/>
|
<el-option label="待支付" value="unpaid"/>
|
||||||
<el-option label="已退款" value="refund"/>
|
<el-option label="退款成功" value="refund"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;;margin-right:0px">
|
||||||
<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>
|
||||||
@ -83,12 +83,12 @@
|
|||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
||||||
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
||||||
<el-table-column prop="payAmount" align="center" label="订单金额(万元)"></el-table-column>
|
<el-table-column prop="payAmount" align="center" label="订单金额(元)"></el-table-column>
|
||||||
<el-table-column prop="payChannel" align="center" label="订单类型">
|
<el-table-column prop="payChannel" align="center" label="订单类型">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
<span v-else-if="scope.row.payChannel=='PC'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
<span v-else>其他</span>
|
<span v-else>其他</span>
|
||||||
</template>
|
</template>
|
||||||
@ -103,9 +103,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" align="center" label="支付状态">
|
<el-table-column prop="status" align="center" label="支付状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status == 'unpaid'">未支付</el-tag>
|
<el-tag v-if="scope.row.status == 'unpaid'">待支付</el-tag>
|
||||||
<el-tag type="success" v-else-if="scope.row.status == 'paid'">已支付</el-tag>
|
<el-tag type="success" v-else-if="scope.row.status == 'paid'">支付成功</el-tag>
|
||||||
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">已退款</el-tag>
|
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">退款成功</el-tag>
|
||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- 收银台订单-->
|
<!-- 收银台订单-->
|
||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 0px">
|
<div style="margin-top: 0px;margin-right: 40px">
|
||||||
<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">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
@ -45,11 +45,11 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.status"
|
v-model="queryParams.status"
|
||||||
clearable
|
clearable
|
||||||
placeholder="支付状态"
|
placeholder="订单状态"
|
||||||
>
|
>
|
||||||
<el-option label="已支付" value="paid"/>
|
<el-option label="支付成功" value="paid"/>
|
||||||
<el-option label="未支付" value="unpaid"/>
|
<el-option label="待支付" value="unpaid"/>
|
||||||
<el-option label="已退款" value="refund"/>
|
<el-option label="退款失败" value="refund"/>
|
||||||
<el-option label="支付失败" value="payFail"/>
|
<el-option label="支付失败" value="payFail"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form-item class="" style="float: right;">
|
<el-form-item class="" style="float: right;margin-right:0px">
|
||||||
<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>
|
||||||
@ -83,28 +83,15 @@
|
|||||||
<el-table
|
<el-table
|
||||||
:data="orderList"
|
:data="orderList"
|
||||||
style="width: 100%">
|
style="width: 100%">
|
||||||
"storeId": "",
|
|
||||||
"orderNo": "",
|
|
||||||
"payChannel": "",
|
|
||||||
"payAmount": "",
|
|
||||||
"payType": "",
|
|
||||||
"status": "",
|
|
||||||
"name": "",
|
|
||||||
"mobile": "",
|
|
||||||
"rechargeType": "",
|
|
||||||
"mchntCd": "",
|
|
||||||
"paymentChannel": "",
|
|
||||||
"createTime": "",
|
|
||||||
"payTime": ""
|
|
||||||
<el-table-column type="index" width="50" align="center" label="序号"/>
|
<el-table-column type="index" width="50" align="center" label="序号"/>
|
||||||
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="机构名称"> </el-table-column>
|
||||||
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
<el-table-column prop="orderNo" align="center" label="订单号" > </el-table-column>
|
||||||
<el-table-column prop="payAmount" align="center" label="订单金额(万元)"></el-table-column>
|
<el-table-column prop="payAmount" align="center" label="订单金额(元)"></el-table-column>
|
||||||
<el-table-column prop="payChannel" align="center" label="订单类型">
|
<el-table-column prop="payChannel" align="center" label="订单类型">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
<span v-if="scope.row.payChannel=='cashier'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
<span v-else-if="scope.row.payChannel=='POS'">POS机</span>
|
||||||
<span v-else-if="scope.row.payChannel=='PC'">平台</span>
|
<span v-else-if="scope.row.payChannel=='PC'">收银台</span>
|
||||||
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
<span v-else-if="scope.row.payChannel=='applet'">小程序</span>
|
||||||
<span v-else>其他</span>
|
<span v-else>其他</span>
|
||||||
</template>
|
</template>
|
||||||
@ -119,9 +106,9 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="status" align="center" label="支付状态">
|
<el-table-column prop="status" align="center" label="支付状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status == 'unpaid'">未支付</el-tag>
|
<el-tag v-if="scope.row.status == 'unpaid'">待支付</el-tag>
|
||||||
<el-tag type="success" v-else-if="scope.row.status == 'paid'">已支付</el-tag>
|
<el-tag type="success" v-else-if="scope.row.status == 'paid'">支付成功</el-tag>
|
||||||
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">已退款</el-tag>
|
<el-tag type="danger" v-else-if="scope.row.status == 'refund'">退款成功</el-tag>
|
||||||
<el-tag type="danger" v-else>支付失败</el-tag>
|
<el-tag type="danger" v-else>支付失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -136,8 +123,16 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="mchntCd" align="center" label="支付通道">
|
<el-table-column prop="mchntCd" align="center" label="支付通道">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{scope.row.mchntCd?scope.row.mchntCd:'--'}}
|
||||||
|
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="paymentChannel" align="center" label="商户号编码" width="150"> </el-table-column>
|
<el-table-column prop="paymentChannel" align="center" label="商户号编码" width="150">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{scope.row.mchntCd?scope.row.paymentChannel:'--'}}
|
||||||
|
|
||||||
|
</template></el-table-column>
|
||||||
<el-table-column prop="createTime" align="center" label="订单创建时间" > </el-table-column>
|
<el-table-column prop="createTime" align="center" label="订单创建时间" > </el-table-column>
|
||||||
<el-table-column prop="payTime" align="center" label="订单完成时间" >
|
<el-table-column prop="payTime" align="center" label="订单完成时间" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -61,7 +61,11 @@
|
|||||||
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 prop="storeName" label="机构名称" width="150" align="center"></el-table-column>
|
<el-table-column prop="storeName" 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">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.paidInfo/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="count" label="累计交易笔数" width="150" align="center"></el-table-column>
|
<el-table-column prop="count" label="累计交易笔数" width="150" align="center"></el-table-column>
|
||||||
<el-table-column prop="exchangeQuantity" label="兑换商品数量" width="150" align="center"></el-table-column>
|
<el-table-column prop="exchangeQuantity" label="兑换商品数量" width="150" align="center"></el-table-column>
|
||||||
<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>
|
||||||
@ -72,7 +76,11 @@
|
|||||||
<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>
|
||||||
<el-table-column prop="statDate" label="统计日期" width="200" align="center"></el-table-column>
|
<el-table-column prop="statDate" label="统计日期" align="center">
|
||||||
|
<template>
|
||||||
|
{{this.value2[0]}} 至{{this.value2[1]}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,32 +73,53 @@
|
|||||||
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="payAmount" label="累计交易金额(万元)"></el-table-column>
|
<el-table-column align="center" prop="payAmount" label="累计交易金额(万元)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.payAmount/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="sum" label="累计交易笔数"></el-table-column>
|
<el-table-column align="center" prop="sum" label="累计交易笔数"></el-table-column>
|
||||||
<el-table-column align="center" prop="oilNum" label="累计交易升数"></el-table-column>
|
<el-table-column align="center" prop="oilNum" label="累计交易升数"></el-table-column>
|
||||||
<el-table-column align="center" label="92#汽油">
|
<el-table-column align="center" label="92#汽油">
|
||||||
<el-table-column align="center" prop="amount92" label="交易金额(万元)"></el-table-column>
|
<el-table-column align="center" prop="amount92" label="交易金额(万元)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.amount92/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="count92" label="交易笔数"></el-table-column>
|
<el-table-column align="center" prop="count92" label="交易笔数"></el-table-column>
|
||||||
<el-table-column align="center" prop="num92" label="交易升数"></el-table-column>
|
<el-table-column align="center" prop="num92" label="交易升数"></el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="95#汽油">
|
<el-table-column align="center" label="95#汽油">
|
||||||
<el-table-column align="center" prop="amount95" label="交易金额(万元)"></el-table-column>
|
<el-table-column align="center" prop="amount95" label="交易金额(万元)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.amount95/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="count95" label="交易笔数"></el-table-column>
|
<el-table-column align="center" prop="count95" label="交易笔数"></el-table-column>
|
||||||
<el-table-column prop="num95" label="交易升数"></el-table-column>
|
<el-table-column align="center" prop="num95" label="交易升数"></el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="98#汽油">
|
<el-table-column align="center" label="98#汽油">
|
||||||
<el-table-column align="center" prop="amount98" label="交易金额(万元)"></el-table-column>
|
<el-table-column align="center" prop="amount98" label="交易金额(万元)">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.amount98/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="count98" label="交易笔数" ></el-table-column>
|
<el-table-column align="center" prop="count98" label="交易笔数" ></el-table-column>
|
||||||
<el-table-column align="center" prop="num98" label="交易升数" ></el-table-column>
|
<el-table-column align="center" prop="num98" label="交易升数" ></el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="0#柴油">
|
<el-table-column align="center" label="0#柴油">
|
||||||
<el-table-column align="center" prop="amount0" label="交易金额(万元)" ></el-table-column>
|
<el-table-column align="center" prop="amount0" label="交易金额(万元)" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.amount0/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="count0" label="交易笔数" ></el-table-column>
|
<el-table-column align="center" prop="count0" label="交易笔数" ></el-table-column>
|
||||||
<el-table-column align="center" prop="num0" label="交易升数" ></el-table-column>
|
<el-table-column align="center" prop="num0" label="交易升数" ></el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" prop="date" label="统计日期" >
|
<el-table-column align="center" prop="date" label="统计日期" >
|
||||||
<template>
|
<template>
|
||||||
<!-- {{this.beginTime}} -{{this.endTime}}-->
|
{{this.value2[0]}} 至{{this.value2[1]}}
|
||||||
|
<!-- this.value2 = [parseTime(start1),parseTime(new Date())];-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -62,13 +62,21 @@
|
|||||||
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 prop="storeName" label="机构名称" width="150" align="center"></el-table-column>
|
<el-table-column prop="storeName" label="机构名称" width="150" align="center"></el-table-column>
|
||||||
<el-table-column prop="payAmounts" label="累计交易金额 (万元)" align="center"></el-table-column>
|
<el-table-column prop="payAmounts" label="累计交易金额 (万元)" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.payAmounts/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="counts" label="累计交易笔数" align="center"></el-table-column>
|
<el-table-column prop="counts" label="累计交易笔数" align="center"></el-table-column>
|
||||||
<el-table-column prop="goodsNums" label="累计销售商品数量" align="center"></el-table-column>
|
<el-table-column prop="goodsNums" label="累计销售商品数量" align="center"></el-table-column>
|
||||||
<el-table-column label="商品信息" align="center">
|
<el-table-column label="商品信息" align="center">
|
||||||
<el-table-column prop="cvgNum" label="品类数量" width="100" align="center"></el-table-column>
|
<el-table-column prop="cvgNum" label="品类数量" width="100" align="center"></el-table-column>
|
||||||
<el-table-column prop="goodsNum" label="商品数量" width="100" align="center"></el-table-column>
|
<el-table-column prop="goodsNum" label="商品数量" width="100" align="center"></el-table-column>
|
||||||
<el-table-column prop="payAmounts" label="累计交易金额 (万元)" width="150" align="center"></el-table-column>
|
<el-table-column prop="payAmounts" label="累计交易金额 (万元)" width="150" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{(scope.row.payAmounts/10000).toFixed(6)}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="热销品类信息" align="center">
|
<el-table-column label="热销品类信息" align="center">
|
||||||
@ -84,7 +92,11 @@
|
|||||||
<el-table-column prop="goodsAmount" label="销售金额 (元)" width="150" align="center"></el-table-column>
|
<el-table-column prop="goodsAmount" label="销售金额 (元)" width="150" align="center"></el-table-column>
|
||||||
<!-- <el-table-column prop="supplierName" label="供应商名称" width="100" align="center"></el-table-column>-->
|
<!-- <el-table-column prop="supplierName" label="供应商名称" width="100" align="center"></el-table-column>-->
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="statDate" label="统计日期" width="200" align="center"></el-table-column>
|
<el-table-column prop="statDate" label="统计日期" width="200" align="center">
|
||||||
|
<template>
|
||||||
|
{{this.value2[0]}} 至{{this.value2[1]}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- 收银台订单-->
|
<!-- 收银台订单-->
|
||||||
<template>
|
<template>
|
||||||
<div style="margin-top: 0px;margin-right: 20px">
|
<div style="margin-top: 0px;margin-right: 40px">
|
||||||
<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">
|
<el-form-item label="" prop="deptId" style="width: 180px">
|
||||||
@ -57,6 +57,7 @@
|
|||||||
<div class="table-box">
|
<div class="table-box">
|
||||||
<el-table
|
<el-table
|
||||||
:data="orderList"
|
:data="orderList"
|
||||||
|
border
|
||||||
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 prop="userName" align="center" label="会员名称"> </el-table-column>
|
<el-table-column prop="userName" align="center" label="会员名称"> </el-table-column>
|
||||||
@ -64,8 +65,8 @@
|
|||||||
<el-table-column prop="physicalCard" align="center" label="会员卡号"></el-table-column>
|
<el-table-column prop="physicalCard" align="center" label="会员卡号"></el-table-column>
|
||||||
<el-table-column prop="storeName" align="center" label="所属机构"> </el-table-column>
|
<el-table-column prop="storeName" align="center" label="所属机构"> </el-table-column>
|
||||||
<el-table-column prop="gradeName" align="center" label="会员等级" > </el-table-column>
|
<el-table-column prop="gradeName" align="center" label="会员等级" > </el-table-column>
|
||||||
<el-table-column prop="consumeNum" align="center" label="累计充值金额(元)" > </el-table-column>
|
<el-table-column prop="amount" align="center" label="累计充值金额(元)" > </el-table-column>
|
||||||
<el-table-column prop="amount" align="center" label="累计充值次数" > </el-table-column>
|
<el-table-column prop="countNum" align="center" label="累计充值次数" > </el-table-column>
|
||||||
<el-table-column prop="leijiMoney" align="center" label="累计消费金额(元)" > </el-table-column>
|
<el-table-column prop="leijiMoney" align="center" label="累计消费金额(元)" > </el-table-column>
|
||||||
<el-table-column prop="leijiNum" align="center" label="累计消费笔数" > </el-table-column>
|
<el-table-column prop="leijiNum" align="center" label="累计消费笔数" > </el-table-column>
|
||||||
<!-- <el-table-column prop="createTime" align="center" label="囤油卡余额" > </el-table-column>-->
|
<!-- <el-table-column prop="createTime" align="center" label="囤油卡余额" > </el-table-column>-->
|
||||||
@ -164,10 +165,10 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
},
|
},
|
||||||
exportExcelCashier() {
|
exportExcelCashier() {
|
||||||
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())
|
||||||
}
|
// }
|
||||||
exportExcelTradingApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
exportExcelTradingApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
||||||
const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
const blob = new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
||||||
this.$download.saveAs(blob,'交易明细统计.xLsx')
|
this.$download.saveAs(blob,'交易明细统计.xLsx')
|
||||||
@ -177,10 +178,10 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
|
|
||||||
getOrderStatistics() {
|
getOrderStatistics() {
|
||||||
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())
|
||||||
}
|
// }
|
||||||
getFenXiUserbalanceDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
getFenXiUserbalanceDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
|
||||||
this.orderStatistics = res.data
|
this.orderStatistics = res.data
|
||||||
console.log("res.data1111",res.data)
|
console.log("res.data1111",res.data)
|
||||||
@ -190,10 +191,10 @@ import {getFenXiUserbalanceDataApi, getFenXiUserbalanceListApi} from "@/api/fina
|
|||||||
// 获取列表信息
|
// 获取列表信息
|
||||||
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())
|
||||||
}
|
// }
|
||||||
getFenXiUserbalanceListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
getFenXiUserbalanceListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
|
||||||
this.orderList = response.data.records;
|
this.orderList = response.data.records;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
|
@ -2,15 +2,19 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card >
|
<el-card >
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
|
||||||
<el-form-item label="" prop="orgName">
|
<el-form-item label="" prop="legalRepresentativeContact">
|
||||||
<el-input
|
|
||||||
v-model="queryParams.orgName"
|
<el-select
|
||||||
placeholder="请输入机构名称"
|
v-model="queryParams.orgId"
|
||||||
clearable
|
clearable
|
||||||
style="width: 240px;"
|
placeholder="所属机构"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
>
|
||||||
|
<el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName" :value="item.deptId">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="" prop="legalRepresentativeContact">
|
<el-form-item label="" prop="legalRepresentativeContact">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.legalRepresentativeContact"
|
v-model="queryParams.legalRepresentativeContact"
|
||||||
@ -20,11 +24,14 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="" prop="legalRepresentativeContact">
|
||||||
|
|
||||||
<el-select v-model="queryParams.appStatus" placeholder="请选择小程序状态">
|
<el-select v-model="queryParams.appStatus" placeholder="请选择小程序状态">
|
||||||
<el-option label="停用" value="0" ></el-option>
|
<el-option label="停用" value="0" ></el-option>
|
||||||
<el-option label="启用" value="1" ></el-option>
|
<el-option label="启用" value="1" ></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-form-item style="float: right">
|
</el-form-item>
|
||||||
|
<el-form-item style="float: right;margin-right: 0px">
|
||||||
<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-button
|
<el-button
|
||||||
@ -34,11 +41,11 @@
|
|||||||
>新增小程序配置</el-button>
|
>新增小程序配置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
<!-- </el-card>-->
|
||||||
|
|
||||||
<!-- 列表信息-->
|
<!-- <!– 列表信息–>-->
|
||||||
<el-card style="margin-top: 20px" >
|
<!-- <el-card style="margin-top: 20px" >-->
|
||||||
<el-table :data="tableData" style="width: 100%">
|
<el-table :data="tableData" style="width: 100%" border>
|
||||||
<el-table-column type="index" label="序号"></el-table-column>
|
<el-table-column type="index" label="序号"></el-table-column>
|
||||||
<el-table-column prop="orgName" label="机构名称"></el-table-column>
|
<el-table-column prop="orgName" label="机构名称"></el-table-column>
|
||||||
<el-table-column prop="unifiedSocialCreditCode" label="统一社会信用代码"></el-table-column>
|
<el-table-column prop="unifiedSocialCreditCode" label="统一社会信用代码"></el-table-column>
|
||||||
@ -88,36 +95,46 @@
|
|||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="50%" append-to-body>
|
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="30%" append-to-body>
|
||||||
<el-form ref="form" :model="deviceInfo" label-width="80px">
|
<!-- <el-form ref="form" :model="deviceInfo" label-width="80px">-->
|
||||||
<el-form :model="deviceInfo" ref="deviceForm" label-width="120px">
|
<el-form :model="deviceInfo" ref="deviceForm" label-width="140px" :rules="rule">
|
||||||
<el-form-item label="机构名称" prop="orgName">
|
<!-- <el-form-item label="机构名称" prop="orgName">-->
|
||||||
<el-input v-model="deviceInfo.orgName" style="width: 300px"></el-input>
|
<!-- <el-input v-model="deviceInfo.orgName" style="width: 300px"></el-input>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
|
|
||||||
<!-- <el-form-item label="机构名称" prop="orgName">-->
|
<!-- <el-form-item label="机构名称" prop="orgName">-->
|
||||||
<!-- <el-input v-model="deviceInfo.orgName" style="width: 300px"></el-input>-->
|
<!-- <el-input v-model="deviceInfo.orgName" style="width: 300px"></el-input>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
|
<el-form-item label="机构名称" prop="orgId">
|
||||||
|
<el-select
|
||||||
|
v-model="deviceInfo.orgId"
|
||||||
|
clearable
|
||||||
|
placeholder="机构名称"
|
||||||
|
style="width: 300px;"
|
||||||
|
>
|
||||||
|
<el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName" :value="item.deptId">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
|
<el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
|
||||||
<el-input v-model="deviceInfo.unifiedSocialCreditCode"></el-input>
|
<el-input v-model="deviceInfo.unifiedSocialCreditCode" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="小程序appID" prop="appId">
|
<el-form-item label="小程序appID" prop="appId">
|
||||||
<el-input v-model="deviceInfo.appId"></el-input>
|
<el-input v-model="deviceInfo.appId" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="密钥" prop="appKey">
|
<el-form-item label="密钥" prop="appKey">
|
||||||
<el-input v-model="deviceInfo.appKey"></el-input>
|
<el-input v-model="deviceInfo.appKey" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="法人姓名" prop="legalRepresentativeName">
|
<el-form-item label="法人姓名" prop="legalRepresentativeName">
|
||||||
<el-input v-model="deviceInfo.legalRepresentativeName"></el-input>
|
<el-input v-model="deviceInfo.legalRepresentativeName" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="法人微信号" prop="legalRepresentativeWechat">
|
<el-form-item label="法人微信号" prop="legalRepresentativeWechat">
|
||||||
<el-input v-model="deviceInfo.legalRepresentativeWechat"></el-input>
|
<el-input v-model="deviceInfo.legalRepresentativeWechat" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="法人联系方式" prop="legalRepresentativeContact">
|
<el-form-item label="法人联系方式" prop="legalRepresentativeContact">
|
||||||
<el-input v-model="deviceInfo.legalRepresentativeContact"></el-input>
|
<el-input v-model="deviceInfo.legalRepresentativeContact" style="width: 300px;"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="小程序状态" prop="appStatus">
|
<el-form-item label="小程序状态" prop="appStatus">
|
||||||
<el-switch
|
<el-switch
|
||||||
@ -130,7 +147,7 @@
|
|||||||
<el-button type="primary" @click="submitForm('deviceForm')">提交</el-button>
|
<el-button type="primary" @click="submitForm('deviceForm')">提交</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-form>
|
<!-- </el-form>-->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -141,6 +158,7 @@
|
|||||||
|
|
||||||
import {deleteAppApi, getAppListApi, saveAppApi, updateAppApi} from "@/api/sys/app";
|
import {deleteAppApi, getAppListApi, saveAppApi, updateAppApi} from "@/api/sys/app";
|
||||||
import {updateBannerApi} from "@/api/sys/banner";
|
import {updateBannerApi} from "@/api/sys/banner";
|
||||||
|
import {getRunningWaterByTissueApi} from "@/api/allOrder";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "printIndex",
|
name: "printIndex",
|
||||||
@ -148,9 +166,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
deptList: [],
|
||||||
|
|
||||||
deviceInfo: {
|
deviceInfo: {
|
||||||
id: null, // 自增id
|
id: null, // 自增id
|
||||||
orgName: '', // 机构名称
|
orgName: '', // 机构名称
|
||||||
|
orgId: '', // 机构名称
|
||||||
unifiedSocialCreditCode: '', // 统一社会信用代码
|
unifiedSocialCreditCode: '', // 统一社会信用代码
|
||||||
appId: '', // 小程序appID
|
appId: '', // 小程序appID
|
||||||
appKey: '', // 密钥
|
appKey: '', // 密钥
|
||||||
@ -160,6 +181,15 @@ export default {
|
|||||||
appStatus: false, // 小程序状态
|
appStatus: false, // 小程序状态
|
||||||
createByName: '',
|
createByName: '',
|
||||||
},
|
},
|
||||||
|
rule: {
|
||||||
|
orgId: [{required: true, message: '请选择机构名称', trigger: 'blur'},],
|
||||||
|
unifiedSocialCreditCode: [{required: true, message: '请填写统一社会信用代码', trigger: 'blur'},],
|
||||||
|
appId: [{required: true, message: '请填写小程序appID', trigger: 'blur'},],
|
||||||
|
appKey: [{required: true, message: '请填写密钥', trigger: 'blur'},],
|
||||||
|
legalRepresentativeName: [{required: true, message: '请填写法人姓名', trigger: 'blur'},],
|
||||||
|
legalRepresentativeWechat: [{required: true, message: '请填写法人微信号', trigger: 'blur'},],
|
||||||
|
legalRepresentativeContact: [{required: true, message: '请填写法人联系方式', trigger: 'blur'},],
|
||||||
|
},
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
title:"",
|
title:"",
|
||||||
@ -169,6 +199,7 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
orgName:'',
|
orgName:'',
|
||||||
|
orgId:'',
|
||||||
legalRepresentativeContact:'',
|
legalRepresentativeContact:'',
|
||||||
appStatus:'',
|
appStatus:'',
|
||||||
},
|
},
|
||||||
@ -176,8 +207,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getDeptList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getDeptList() {
|
||||||
|
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then(response => {
|
||||||
|
this.deptList = response.data.records;
|
||||||
|
})
|
||||||
|
},
|
||||||
getList(){
|
getList(){
|
||||||
getAppListApi(this.queryParams).then(res=>{
|
getAppListApi(this.queryParams).then(res=>{
|
||||||
this.tableData = res.data.records;
|
this.tableData = res.data.records;
|
||||||
@ -200,7 +237,11 @@ export default {
|
|||||||
},
|
},
|
||||||
submitDeviceInfo() {
|
submitDeviceInfo() {
|
||||||
// 在这里调用接口提交设备信息数据
|
// 在这里调用接口提交设备信息数据
|
||||||
console.log('提交设备信息数据:', this.deviceInfo);
|
|
||||||
|
let filter = this.deptList.filter(item => item.deptId == this.deviceInfo.orgId);
|
||||||
|
|
||||||
|
this.deviceInfo.orgName = filter[0].deptName
|
||||||
|
|
||||||
if (this.deviceInfo.id) {
|
if (this.deviceInfo.id) {
|
||||||
updateAppApi(this.deviceInfo).then(res=>{
|
updateAppApi(this.deviceInfo).then(res=>{
|
||||||
if(res.code === 200) {
|
if(res.code === 200) {
|
||||||
@ -245,12 +286,12 @@ export default {
|
|||||||
handleAdd(e) {
|
handleAdd(e) {
|
||||||
this.clean()
|
this.clean()
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "增加设备"
|
this.title = "新增小程序配置"
|
||||||
},
|
},
|
||||||
edit(e) {
|
edit(e) {
|
||||||
this.clean()
|
this.clean()
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "编辑设备"
|
this.title = "编辑小程序配置"
|
||||||
this.deviceInfo = e
|
this.deviceInfo = e
|
||||||
console.log('提交设备信息数据:', this.deviceInfo);
|
console.log('提交设备信息数据:', this.deviceInfo);
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item style="float: right">
|
<el-form-item style="float: right ;margin-right: 0px">
|
||||||
<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-button
|
<el-button
|
||||||
@ -54,7 +54,7 @@
|
|||||||
<!-- <el-card style="margin-top: 20px" >-->
|
<!-- <el-card style="margin-top: 20px" >-->
|
||||||
|
|
||||||
|
|
||||||
<el-table :data="tableData" style="width: 100%">
|
<el-table :data="tableData" style="width: 100%" border>
|
||||||
<el-table-column type="index" label="序号"></el-table-column>
|
<el-table-column type="index" label="序号"></el-table-column>
|
||||||
<el-table-column prop="bannerName" label="banner名称"></el-table-column>
|
<el-table-column prop="bannerName" label="banner名称"></el-table-column>
|
||||||
<el-table-column prop="productImage" label="图片">
|
<el-table-column prop="productImage" label="图片">
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item style="float: right">
|
<el-form-item style="float: right;margin-right: 0px">
|
||||||
<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-button
|
<el-button
|
||||||
@ -46,7 +46,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="tableData" style="width: 100%">
|
<el-table :data="tableData" style="width: 100%" border>
|
||||||
<el-table-column type="index" label="序号"></el-table-column>
|
<el-table-column type="index" label="序号"></el-table-column>
|
||||||
<el-table-column prop="name" label="商品名称"></el-table-column>
|
<el-table-column prop="name" label="商品名称"></el-table-column>
|
||||||
<el-table-column prop="categoryName" label="商品分类"></el-table-column>
|
<el-table-column prop="categoryName" label="商品分类"></el-table-column>
|
||||||
|
@ -6,6 +6,13 @@
|
|||||||
<el-tab-pane label="中台系统" name="first"></el-tab-pane>
|
<el-tab-pane label="中台系统" name="first"></el-tab-pane>
|
||||||
<el-tab-pane label="油站系统" name="second"></el-tab-pane>
|
<el-tab-pane label="油站系统" name="second"></el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="90px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="90px">
|
||||||
<el-form-item label="" prop="createName">
|
<el-form-item label="" prop="createName">
|
||||||
<el-input
|
<el-input
|
||||||
@ -70,7 +77,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="tableData" style="width: 100%">
|
<el-table :data="tableData" style="width: 100%" border>
|
||||||
<el-table-column type="index" label="序号"></el-table-column>
|
<el-table-column type="index" label="序号"></el-table-column>
|
||||||
<el-table-column prop="createAccount" label="登录账号"></el-table-column>
|
<el-table-column prop="createAccount" label="登录账号"></el-table-column>
|
||||||
<el-table-column prop="createName" label="操作用户"></el-table-column>
|
<el-table-column prop="createName" label="操作用户"></el-table-column>
|
||||||
@ -86,7 +93,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="moudle" label="操作模块"></el-table-column>
|
<el-table-column prop="moudle" label="操作模块"></el-table-column>
|
||||||
<el-table-column prop="content" label="操作内容"></el-table-column>
|
<el-table-column prop="content" label="操作内容" width="500"></el-table-column>
|
||||||
<el-table-column prop="ipAddr" label="IP地址"></el-table-column>
|
<el-table-column prop="ipAddr" label="IP地址"></el-table-column>
|
||||||
<el-table-column prop="createTime" label="操作时间"></el-table-column>
|
<el-table-column prop="createTime" label="操作时间"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -41,7 +41,7 @@ public class DeptPriceInfoController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("queryByPage")
|
@GetMapping("queryByPage")
|
||||||
public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
||||||
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
|
@RequestParam(value = "pageSize",defaultValue = "10000") Integer pageSize,
|
||||||
@Param("deptPriceInfo") DeptPriceInfo deptPriceInfo) {
|
@Param("deptPriceInfo") DeptPriceInfo deptPriceInfo) {
|
||||||
Page page = new Page(pageNo, pageSize);
|
Page page = new Page(pageNo, pageSize);
|
||||||
IPage< DeptPriceInfo> iPageList = this.deptPriceInfoService.queryByPage(page, deptPriceInfo);
|
IPage< DeptPriceInfo> iPageList = this.deptPriceInfoService.queryByPage(page, deptPriceInfo);
|
||||||
|
@ -41,7 +41,7 @@ public class DeptServiceFeeInfoController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("queryByPage")
|
@GetMapping("queryByPage")
|
||||||
public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
public ResponseObject queryByPage(@RequestParam(value = "pageNo",defaultValue = "1") Integer pageNo,
|
||||||
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
|
@RequestParam(value = "pageSize",defaultValue = "1000") Integer pageSize,
|
||||||
@Param("deptServiceFeeInfo") DeptServiceFeeInfo deptServiceFeeInfo) {
|
@Param("deptServiceFeeInfo") DeptServiceFeeInfo deptServiceFeeInfo) {
|
||||||
Page page = new Page(pageNo, pageSize);
|
Page page = new Page(pageNo, pageSize);
|
||||||
IPage< DeptServiceFeeInfo> iPageList = this.deptServiceFeeInfoService.queryByPage(page, deptServiceFeeInfo);
|
IPage< DeptServiceFeeInfo> iPageList = this.deptServiceFeeInfoService.queryByPage(page, deptServiceFeeInfo);
|
||||||
|
@ -86,7 +86,7 @@ service_fee_statistics,service_fee_limit,status,create_name
|
|||||||
select
|
select
|
||||||
id,deduction_rate,payment_amount,likely_transaction_volume,service_fee_statistics,service_fee_limit,status
|
id,deduction_rate,payment_amount,likely_transaction_volume,service_fee_statistics,service_fee_limit,status
|
||||||
from dept_service_fee_info
|
from dept_service_fee_info
|
||||||
where deptId = #{deptId}
|
where dept_id = #{deptId}
|
||||||
and status = 1
|
and status = 1
|
||||||
</select>
|
</select>
|
||||||
<select id="getAllYue" resultType="java.util.HashMap">
|
<select id="getAllYue" resultType="java.util.HashMap">
|
||||||
@ -94,7 +94,7 @@ service_fee_statistics,service_fee_limit,status,create_name
|
|||||||
sum(likely_transaction_volume) as lto
|
sum(likely_transaction_volume) as lto
|
||||||
from dept_service_fee_info
|
from dept_service_fee_info
|
||||||
where
|
where
|
||||||
dept_id = #{deptId}
|
dept_id = #{dept_id}
|
||||||
and status = 2
|
and status = 2
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -52,10 +52,10 @@ public class DeptPriceInfoServiceImpl implements DeptPriceInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IPage<DeptPriceInfo> queryByPage(@Param("page") Page page, DeptPriceInfo deptPriceInfo) {
|
public IPage<DeptPriceInfo> queryByPage(@Param("page") Page page, DeptPriceInfo deptPriceInfo) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
// AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
deptPriceInfo.setDeptId(nowAccountInfo.getDeptId());
|
// deptPriceInfo.setDeptId(nowAccountInfo.getDeptId());
|
||||||
// 判断以进行中的数据进行判断并修改状态
|
// 判断以进行中的数据进行判断并修改状态
|
||||||
DeptPriceInfo deptPriceInfo1 = deptPriceInfoMapper.queryByDeptId(nowAccountInfo.getDeptId());
|
DeptPriceInfo deptPriceInfo1 = deptPriceInfoMapper.queryByDeptId(deptPriceInfo.getDeptId());
|
||||||
if (ObjectUtil.isNotEmpty(deptPriceInfo1)) {
|
if (ObjectUtil.isNotEmpty(deptPriceInfo1)) {
|
||||||
boolean isValid = isDateInRange(deptPriceInfo1.getSystemValidityPeriodStart(),deptPriceInfo1.getSystemValidityPeriodEnd());
|
boolean isValid = isDateInRange(deptPriceInfo1.getSystemValidityPeriodStart(),deptPriceInfo1.getSystemValidityPeriodEnd());
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
@ -144,6 +144,9 @@ public class DeptPriceInfoServiceImpl implements DeptPriceInfoService {
|
|||||||
public Map<String,Object> getALlInfoBydeptId(Long deptId) {
|
public Map<String,Object> getALlInfoBydeptId(Long deptId) {
|
||||||
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(deptId);
|
List<Long> strings = sysDeptMapper.selectChildByDeptIdR(deptId);
|
||||||
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
List<Long> longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
|
||||||
|
if (longs.size()==0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return deptPriceInfoMapper.getALlInfoBydeptId(longs);
|
return deptPriceInfoMapper.getALlInfoBydeptId(longs);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -52,14 +52,14 @@ public class DeptServiceFeeInfoServiceImpl implements DeptServiceFeeInfoService
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IPage<DeptServiceFeeInfo> queryByPage(@Param("page") Page page, DeptServiceFeeInfo deptServiceFeeInfo) {
|
public IPage<DeptServiceFeeInfo> queryByPage(@Param("page") Page page, DeptServiceFeeInfo deptServiceFeeInfo) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
// AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
// deptServiceFeeInfo.setStoreId(nowAccountInfo.getStoreId());
|
// deptServiceFeeInfo.setStoreId(nowAccountInfo.getStoreId());
|
||||||
// 首先查询进行中的是否已缴费 查询当前进行中的
|
// 首先查询进行中的是否已缴费 查询当前进行中的
|
||||||
DeptServiceFeeInfo deptServiceFeeInfo1 = deptServiceFeeInfoMapper.queryByDeptId(nowAccountInfo.getDeptId());
|
DeptServiceFeeInfo deptServiceFeeInfo1 = deptServiceFeeInfoMapper.queryByDeptId(deptServiceFeeInfo.getDeptId());
|
||||||
// 查询总的交易数据
|
// 查询总的交易数据
|
||||||
Map<String, Object> aLlInfoBydeptId = deptPriceInfoService.getALlInfoBydeptId(nowAccountInfo.getDeptId());
|
Map<String, Object> aLlInfoBydeptId = deptPriceInfoService.getALlInfoBydeptId(deptServiceFeeInfo.getDeptId());
|
||||||
// 查询已发生的交易
|
// 查询已发生的交易
|
||||||
Map<String, Object> allyue = deptServiceFeeInfoMapper.getAllYue(nowAccountInfo.getDeptId());
|
Map<String, Object> allyue = deptServiceFeeInfoMapper.getAllYue(deptServiceFeeInfo.getDeptId());
|
||||||
String payMoney = ObjectUtil.isNotEmpty(aLlInfoBydeptId.get("payMoney"))?aLlInfoBydeptId.get("payMoney").toString():"0";
|
String payMoney = ObjectUtil.isNotEmpty(aLlInfoBydeptId.get("payMoney"))?aLlInfoBydeptId.get("payMoney").toString():"0";
|
||||||
String lto = ObjectUtil.isNotEmpty(allyue.get("lto"))?allyue.get("lto").toString():"0";
|
String lto = ObjectUtil.isNotEmpty(allyue.get("lto"))?allyue.get("lto").toString():"0";
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ public class DeptServiceFeeInfoServiceImpl implements DeptServiceFeeInfoService
|
|||||||
//剩余交易减去 v
|
//剩余交易减去 v
|
||||||
|
|
||||||
|
|
||||||
deptServiceFeeInfo.setDeptId(nowAccountInfo.getDeptId());
|
deptServiceFeeInfo.setDeptId(deptServiceFeeInfo.getDeptId());
|
||||||
return this.deptServiceFeeInfoMapper.queryAllByLimit(page, deptServiceFeeInfo);
|
return this.deptServiceFeeInfoMapper.queryAllByLimit(page, deptServiceFeeInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,26 +53,26 @@ public class DeptTransactionInfoServiceImpl implements DeptTransactionInfoServic
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IPage<DeptTransactionInfo> queryByPage(@Param("page") Page page, DeptTransactionInfo deptTransactionInfo) {
|
public IPage<DeptTransactionInfo> queryByPage(@Param("page") Page page, DeptTransactionInfo deptTransactionInfo) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
// AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
// deptTransactionInfo.setStoreId(nowAccountInfo.getStoreId());
|
// deptTransactionInfo.setStoreId(nowAccountInfo.getStoreId());
|
||||||
deptTransactionInfo.setDeptId(nowAccountInfo.getDeptId());
|
deptTransactionInfo.setDeptId(deptTransactionInfo.getDeptId());
|
||||||
// 修改进行中的数据 remainingTransactionVolume
|
// 修改进行中的数据 remainingTransactionVolume
|
||||||
// 查询正在进行中的数据
|
// 查询正在进行中的数据
|
||||||
DeptTransactionInfo deptTransactionInfo1 = deptTransactionInfoMapper.queryByDeptId(nowAccountInfo.getDeptId());
|
DeptTransactionInfo deptTransactionInfo1 = deptTransactionInfoMapper.queryByDeptId(deptTransactionInfo.getDeptId());
|
||||||
|
|
||||||
// 查询已跑流量
|
// 查询已跑流量
|
||||||
Map<String, Object> aLlInfoBydeptId = deptPriceInfoService.getALlInfoBydeptId(nowAccountInfo.getDeptId());
|
Map<String, Object> aLlInfoBydeptId = deptPriceInfoService.getALlInfoBydeptId(deptTransactionInfo.getDeptId());
|
||||||
String payMoney = aLlInfoBydeptId.get("payMoney").toString();
|
String payMoney = aLlInfoBydeptId.get("payMoney").toString();
|
||||||
// 根据deptId查询所有流量
|
// 根据deptId查询所有流量
|
||||||
// 流量折合
|
// 流量折合
|
||||||
Map<String, Object> etv = deptTransactionInfoMapper.getSumETV(nowAccountInfo.getDeptId());
|
Map<String, Object> etv = deptTransactionInfoMapper.getSumETV(deptTransactionInfo.getDeptId());
|
||||||
BigDecimal etv1 = new BigDecimal(etv.get("etv").toString()).subtract(new BigDecimal(payMoney));
|
BigDecimal etv1 = new BigDecimal(etv.get("etv").toString()).subtract(new BigDecimal(payMoney));
|
||||||
|
|
||||||
if (ObjectUtil.isEmpty(deptTransactionInfo1) || deptTransactionInfo1.getRemainingTransactionVolume()<=0 ) {
|
if (ObjectUtil.isEmpty(deptTransactionInfo1) || deptTransactionInfo1.getRemainingTransactionVolume()<=0 ) {
|
||||||
// 将所有进行中的设置为已完成
|
// 将所有进行中的设置为已完成
|
||||||
deptTransactionInfoMapper.editStatus(nowAccountInfo.getDeptId());
|
deptTransactionInfoMapper.editStatus(deptTransactionInfo.getDeptId());
|
||||||
// 查询未开始的最旧一个
|
// 查询未开始的最旧一个
|
||||||
DeptTransactionInfo deptTransactionInfo2 = deptTransactionInfoMapper.queryByDeptIdLimit(nowAccountInfo.getDeptId());
|
DeptTransactionInfo deptTransactionInfo2 = deptTransactionInfoMapper.queryByDeptIdLimit(deptTransactionInfo.getDeptId());
|
||||||
deptTransactionInfo2.setStatus(1);
|
deptTransactionInfo2.setStatus(1);
|
||||||
deptTransactionInfo2.setRemainingTransactionVolume(deptTransactionInfo2.getRemainingTransactionVolume() -Double.parseDouble(etv1.toString()) );
|
deptTransactionInfo2.setRemainingTransactionVolume(deptTransactionInfo2.getRemainingTransactionVolume() -Double.parseDouble(etv1.toString()) );
|
||||||
|
|
||||||
|
@ -311,7 +311,9 @@
|
|||||||
count(*) as consumeNum,
|
count(*) as consumeNum,
|
||||||
sum(amount) as amount
|
sum(amount) as amount
|
||||||
from card_value_record
|
from card_value_record
|
||||||
|
<where>
|
||||||
|
mt_user_id = #{mtUserId}
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<!-- where store_id = #{storeId} and mt_user_id = #{userId}-->
|
<!-- where store_id = #{storeId} and mt_user_id = #{userId}-->
|
||||||
<!-- group by chain_store_id
|
<!-- group by chain_store_id
|
||||||
|
@ -79,6 +79,6 @@ 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(@Param("order") UserBalanceVo record);
|
||||||
Map<String, Object> getShuJuVipInfo(@Param("order") UserBalanceVo record);
|
Map<String, Object> getShuJuVipInfo(@Param("order") UserBalanceVo record);
|
||||||
}
|
}
|
@ -476,6 +476,7 @@
|
|||||||
COUNT(CASE WHEN type = 3 and status = 'refund' THEN 0 END) AS leijiNum
|
COUNT(CASE WHEN type = 3 and status = 'refund' THEN 0 END) AS leijiNum
|
||||||
|
|
||||||
from all_order_info
|
from all_order_info
|
||||||
|
where user_id = #{order.mtUserId}
|
||||||
</select>
|
</select>
|
||||||
<!-- group by user_id-->
|
<!-- group by user_id-->
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ public class SysApp extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 机构名称,字符长度最多50,不能为空,且唯一
|
* 机构名称,字符长度最多50,不能为空,且唯一
|
||||||
*/
|
*/
|
||||||
|
private Integer orgId;
|
||||||
|
|
||||||
private String orgName;
|
private String orgName;
|
||||||
private String deptId; // 机构id
|
private String deptId; // 机构id
|
||||||
private String appKey; // 密钥
|
private String appKey; // 密钥
|
||||||
|
@ -101,6 +101,7 @@ legal_representative_id,legal_representative_contact,app_status,create_time,crea
|
|||||||
legal_representative_contact,
|
legal_representative_contact,
|
||||||
legal_representative_wechat,
|
legal_representative_wechat,
|
||||||
app_key,
|
app_key,
|
||||||
|
org_id,
|
||||||
app_status)
|
app_status)
|
||||||
values (#{sysApp.orgName},
|
values (#{sysApp.orgName},
|
||||||
#{sysApp.unifiedSocialCreditCode},
|
#{sysApp.unifiedSocialCreditCode},
|
||||||
@ -110,6 +111,7 @@ legal_representative_id,legal_representative_contact,app_status,create_time,crea
|
|||||||
#{sysApp.legalRepresentativeContact},
|
#{sysApp.legalRepresentativeContact},
|
||||||
#{sysApp.legalRepresentativeWechat},
|
#{sysApp.legalRepresentativeWechat},
|
||||||
#{sysApp.appKey},
|
#{sysApp.appKey},
|
||||||
|
#{sysApp.orgId},
|
||||||
#{sysApp.appStatus})
|
#{sysApp.appStatus})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@ -164,6 +166,9 @@ org_name = values(org_name)unified_social_credit_code = values(unified_social_cr
|
|||||||
<if test="appStatus != null">
|
<if test="appStatus != null">
|
||||||
app_status = #{appStatus},
|
app_status = #{appStatus},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="orgId != null">
|
||||||
|
org_id = #{orgId},
|
||||||
|
</if>
|
||||||
</set>
|
</set>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
@ -17,7 +17,7 @@ public interface UserBalanceMapper extends BaseMapper<UserBalance> {
|
|||||||
|
|
||||||
int addUserBalance(@Param("id") Integer id, @Param("changeCardBalance") Double changeCardBalance);
|
int addUserBalance(@Param("id") Integer id, @Param("changeCardBalance") Double changeCardBalance);
|
||||||
|
|
||||||
IPage<UserBalanceVo> listByZt(Page page, UserBalanceVo user);
|
IPage<UserBalanceVo> listByZt(Page page,@Param("user") UserBalanceVo user);
|
||||||
|
|
||||||
Map<String,Object> getDataByZt(UserBalanceVo user);
|
Map<String,Object> getDataByZt(UserBalanceVo user);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,13 @@
|
|||||||
mu.id mtUserId
|
mu.id mtUserId
|
||||||
from mt_user_balance mub
|
from mt_user_balance mub
|
||||||
left join mt_user mu on mub.mt_user_id = mu.id
|
left join mt_user mu on mub.mt_user_id = mu.id
|
||||||
|
<where>
|
||||||
|
mub.store_id in
|
||||||
|
<foreach collection="user.storeIds" item="item" open="(" close=")" separator=",">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
|
||||||
order by mub.create_time desc
|
order by mub.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="getDataByZt" resultType="java.util.Map">
|
<select id="getDataByZt" resultType="java.util.Map">
|
||||||
|
@ -89,7 +89,7 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
Map<String, Object> amountAndConsume = cardValueRecordMapper.getAmountAndConsume(record);
|
Map<String, Object> amountAndConsume = cardValueRecordMapper.getAmountAndConsume(record);
|
||||||
if (ObjectUtil.isNotEmpty(amountAndConsume)) {
|
if (ObjectUtil.isNotEmpty(amountAndConsume)) {
|
||||||
record.setCountNum(amountAndConsume.get("consumeNum").toString()); // 累计重置次数
|
record.setCountNum(amountAndConsume.get("consumeNum").toString()); // 累计重置次数
|
||||||
record.setAmount(amountAndConsume.get("amount").toString());
|
record.setAmount(ObjectUtil.isNotEmpty(amountAndConsume.get("amount"))?amountAndConsume.get("amount").toString():"0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user