Commit d6609fe1 by wangzhihui

累计结算金额样式修改

1 parent 15cef4c2
......@@ -149,3 +149,53 @@ export const channelObj = {
'BIRDWORK':'智鸟-银行卡',
'SHENBIANYUN_JX':'身边云(江西)-银行卡'
}
export const statisticsTypeList = [
{
confId: 'yiXuanSettleAmount',
confLabel: '熠轩-银行卡'
},
{
confId: 'zxSettleAmount',
confLabel: '中雄-银行卡'
},
{
confId: 'yunHuoSettleAmount',
confLabel: '云获(嘀加)-银行卡'
},
{
confId: 'yunHuoZYSettleAmount',
confLabel: '云获(中赢)-银行卡'
},
{
confId: 'yunHuoWXSettleAmount',
confLabel: '云获(中赢)-微信'
},
{
confId: 'shenBianYunXHSettleAmount',
confLabel: '身边云(翔禾)-银行卡'
},
{
confId: 'shenBianYunYJSettleAmount',
confLabel: '身边云(雅钧)-银行卡'
},
{
confId: 'shenBianYunBCSettleAmount',
confLabel: '身边云(博晟)-银行卡'
},
{
confId: 'shenBianYunCJSettleAmount',
confLabel: '身边云(晨景)-银行卡'
},
{
confId: 'birdWorkSettleAmount',
confLabel: '智鸟-银行卡'
},
{
confId: 'shenBianYunJXSettleAmount',
confLabel: '身边云(江西)-银行卡'
},
{
confId: 'xinXiangYunSettleAmount',
confLabel: '薪享云-银行卡'
}
]
\ No newline at end of file
......@@ -7,27 +7,22 @@
<el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="searchForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'searchForm')"></el-cascader>
</template>
</GLCombiForm>
<div class="table-header">
<h2>积分提现列表</h2>
<div>
<div class="select-wrap flex">
<el-button size="small" style="margin-right: 10px" @click="handleAllBatch(true)">全部生成批次</el-button>
<el-select v-model="operaForm.batch" placeholder="批量操作" class="selectBtn">
<el-option v-for="(item, index) in batchOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'batch')"></el-option>
</el-select>
<el-select v-model="operaForm.key" placeholder="一键操作" class="selectOneBtn">
<el-option v-for="(item, index) in keyOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'key')"></el-option>
</el-select>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button size="small" @click="handleImport">提现导入</el-button>
<el-button size="small" @click="exportExcel">导出</el-button>
<div class="statistics">
<div class="title">累计结算金额</div>
<div class="content">
<div class="content-item" v-for="(item, index) in statisticsTypeList.slice(0, 4)" :key="index">
<div class="content-item-title">{{ item.confLabel }}</div>
<div class="content-item-price">
{{ settleAmount[item.confId] }}
<span class="unit">元</span>
</div>
</div>
</div>
</div>
<div class="statistics">
<div :class="['content', !isFold ? 'dynamic' : '']">
<div class="fold" @click="isMore=true">
查看更多
<i class="el-icon-arrow-right"></i>
</div>
<!-- <div :class="['content', !isFold ? 'dynamic' : '']">
累计结算金额:熠轩-银行卡
<span class="price">{{ settleAmount.yiXuanSettleAmount }}</span>
元, 中雄-银行卡
......@@ -52,18 +47,29 @@
<span class="price">{{ settleAmount.shenBianYunJXSettleAmount }}</span>
元, 薪享云-银行卡
<span class="price">{{ settleAmount.xinXiangYunSettleAmount }}</span>
</div>
<div @click="handleFold">
<div class="fold" v-if="isFold">
展开
<i class="el-icon-arrow-down"></i>
</div>
<div class="fold" v-else>
收起
<i class="el-icon-arrow-up"></i>
</div> -->
</div>
<div class="table-header">
<h2>积分提现列表</h2>
<div>
<div class="select-wrap flex">
<el-button size="small" style="margin-right: 10px" @click="handleAllBatch(true)">全部生成批次</el-button>
<el-select v-model="operaForm.batch" placeholder="批量操作" class="selectBtn">
<el-option v-for="(item, index) in batchOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'batch')"></el-option>
</el-select>
<el-select v-model="operaForm.key" placeholder="一键操作" class="selectOneBtn">
<el-option v-for="(item, index) in keyOptions" :key="index" :label="item" :value="index" @click.native="handleSelectBtn(index, 'key')"></el-option>
</el-select>
<!-- <el-button size="small" @click="handleCheck()" type="primary" plain>批量审核</el-button>
<el-button size="small" @click="handlePay()">批量付款</el-button> -->
<el-button size="small" @click="handleImport">提现导入</el-button>
<el-button size="small" @click="exportExcel">导出</el-button>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="withdrawRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" @selectionTable="selectionTable">
<div class="flex_sc" slot="colorStatus" slot-scope="scope">
......@@ -188,7 +194,19 @@
<iframe width="100%" height="700px" scrolling="yes" frameborder="0" :src="pdfUrl"></iframe>
</GLDialog>
<!-- 详情 -->
<detail-dialog :detail-visible="detailVisible" :id="id" @dialogClose="dialogClose"></detail-dialog>
<detail-dialog class="" :detail-visible="detailVisible" :id="id" @dialogClose="dialogClose"></detail-dialog>
<!-- 累计结算金额 -->
<GLDialog class="settleAmount-dialog" title="累计结算金额" mode="big" :visible.sync="isMore" :close-on-click-modal="false" :hasFooter="hasFooter">
<div class="content">
<div class="content-item" v-for="(item, index) in statisticsTypeList" :key="index">
<div class="content-item-title">{{ item.confLabel }}</div>
<div class="content-item-price">
{{ settleAmount[item.confId] }}
<span class="unit">元</span>
</div>
</div>
</div>
</GLDialog>
</div>
</template>
......@@ -198,7 +216,7 @@ import DetailDialog from './detail.vue'
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import util from '@/utils/index'
import { modeTypeList, auditStatusStatusList, sourceList, withdrawalTypeList } from '@/utils/constants.js'
import { modeTypeList, auditStatusStatusList, sourceList, withdrawalTypeList, statisticsTypeList } from '@/utils/constants.js'
const tableStatus = ['待审核', '已审核', '第三方处理', '成功', '失败', '驳回', '受理失败', '批次处理中']
const colors = ['#FDB757', '#2CCA74', '#5850FF', '#2CCA74', '#999999', '#EB4E4E', '#2CCA74', '#F59619FF']
const tabelHeaderModel = ['商户名称', '商户号', '客户名称', '客户手机号', '提现金额', '收款人姓名', '收款人身份证', '收款银行卡号', '收款银行', '收款人手机号']
......@@ -208,6 +226,8 @@ export default {
},
data() {
return {
isMore:false,
statisticsTypeList,
props: {
value: 'code',
label: 'name',
......@@ -866,10 +886,9 @@ export default {
},
selectAddAttr(e, formName) {
let [value1, value2, value3] = e
this[formName].channel = value1
if (value3) {
this[formName].levyCode = value3 //代征主体
}
this[formName].channel = value1 ? value1 : ''
this[formName].levyCode = value3 ? value3 : '' //代征主体
if (value2) {
let item = this.findChannelByCode(this.baseData.channelList, value2)
if (item.type == 1) {
......@@ -1492,19 +1511,46 @@ export default {
font-size: 12px;
color: #999999;
line-height: 18px;
margin-bottom: 12px;
display: flex;
align-items: center;
margin-bottom: 16px;
position: relative;
.content {
height: 18px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: flex;
align-items: center;
margin-right:140px;
.content-item {
padding: 20px;
background: #f7f9fa;
flex:1;
margin-right:16px;
&-title {
color: #333333;
font-size: 14px;
margin-bottom: 12px;
}
&-price {
color: #333333;
font-size: 26px;
font-weight: bold;
.unit {
color: #333333;
font-size: 14px;
margin-left: 4px;
font-weight: normal;
}
}
}
}
.dynamic {
height: auto;
overflow: initial;
white-space: wrap;
// .dynamic {
// height: auto;
// overflow: initial;
// white-space: wrap;
// }
.title {
color: #333333;
font-size: 16px;
line-height: 24px;
font-weight: bold;
margin-bottom: 16px;
}
.fold {
cursor: pointer;
......@@ -1514,6 +1560,9 @@ export default {
align-items: center;
white-space: nowrap;
margin-left: 16px;
position:absolute;
bottom:0;
right:58px;
}
}
.price {
......@@ -1689,5 +1738,36 @@ export default {
}
}
}
.settleAmount-dialog{
.content {
display: flex;
align-items: center;
flex-wrap:wrap;
.content-item {
width: calc((100% - 16px * 4) / 4);
padding: 20px;
background: #f7f9fa;
margin-right:16px;
box-sizing: border-box;
margin-bottom:16px;
&-title {
color: #333333;
font-size: 14px;
margin-bottom: 12px;
}
&-price {
color: #333333;
font-size: 26px;
font-weight: bold;
.unit {
color: #333333;
font-size: 14px;
margin-left: 4px;
font-weight: normal;
}
}
}
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!