提交 b5705237 authored 作者: 何忠建's avatar 何忠建

提现流水联调

上级 57e191af
...@@ -6,6 +6,7 @@ import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types" ...@@ -6,6 +6,7 @@ import {UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"
const partnersShopByDepId = (params)=>getAction("/property-central/partners/partnersShop/queryById",params); const partnersShopByDepId = (params)=>getAction("/property-central/partners/partnersShop/queryById",params);
const partnersShopAudit = (params)=>postAction("/property-central/partners/partnersShop/audit",params); const partnersShopAudit = (params)=>postAction("/property-central/partners/partnersShop/audit",params);
const partnersShopOperateApi = (params)=>getAction(`/property-central/partners/partnersShop/operate/${params.id}/${params.status}`,{}); const partnersShopOperateApi = (params)=>getAction(`/property-central/partners/partnersShop/operate/${params.id}/${params.status}`,{});
const getQrCode = (params)=>getAction("/property-central/shop/shopInfo/getQrCode",params);
//对账 //对账
const shareBenefitShopByDepId = (params)=>getAction("/property-central/partners/shareBenefit/queryById",params); const shareBenefitShopByDepId = (params)=>getAction("/property-central/partners/shareBenefit/queryById",params);
...@@ -117,6 +118,7 @@ export { ...@@ -117,6 +118,7 @@ export {
partnersShopByDepId, partnersShopByDepId,
partnersShopAudit, partnersShopAudit,
partnersShopOperateApi, partnersShopOperateApi,
getQrCode,
getDataStatisticsApi, getDataStatisticsApi,
shareBenefitShopByDepId, shareBenefitShopByDepId,
shareBenefitList, shareBenefitList,
......
...@@ -224,6 +224,7 @@ export default { ...@@ -224,6 +224,7 @@ export default {
model: {}, model: {},
info: {}, info: {},
detailInfo: {}, detailInfo: {},
loading:false,
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 6 }, sm: { span: 6 },
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="5" :sm="8"> <a-col :md="5" :sm="8">
<a-form-item label="订单编号"> <a-form-item label="结算单号">
<j-input placeholder="请输入订单编号" v-model="queryParam.balanceNum"></j-input> <j-input placeholder="请输入结算单号" v-model="queryParam.balanceNum"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="5" :sm="8"> <a-col :md="5" :sm="8">
...@@ -133,116 +133,7 @@ export default { ...@@ -133,116 +133,7 @@ export default {
url: { url: {
list: '/property-central/partners/shareBalance/list', list: '/property-central/partners/shareBalance/list',
}, },
dataSource: [ dataSource: [],
{
id: 'JD239423',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '5',
reconciliationAmount: '345.23',
updateTime: '2023-04-05',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'JD453454',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-04-06',
reconciliationEndDate: '10',
reconciliationAmount: '1345.45',
updateTime: '2023-05-05',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'JD567454',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-02-05',
reconciliationEndDate: '2',
reconciliationAmount: '34234',
updateTime: '2023-02-06',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'KF343455',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-11-01',
reconciliationEndDate: '3',
reconciliationAmount: '34',
updateTime: '2023-06-07',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'KD435345',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-01-21',
reconciliationEndDate: '3',
reconciliationAmount: '654',
updateTime: '2023-05-06',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LG345352',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-01-10',
reconciliationEndDate: '20',
reconciliationAmount: '897.98',
updateTime: '2023-05-08',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'MG345354',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-04',
reconciliationEndDate: '20',
reconciliationAmount: '234',
updateTime: '2023-05-05',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LB345353',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-02-01',
reconciliationEndDate: '2',
reconciliationAmount: '1000',
updateTime: '2023-04-04',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LC234234',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-23',
reconciliationEndDate: '5',
reconciliationAmount: '3443',
updateTime: '2023-01-02',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '转账',
},
],
confirmLoading: false, confirmLoading: false,
chargeList: [ chargeList: [
{ type: 2, name: '结算待审核' }, { type: 2, name: '结算待审核' },
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
{ {
title: '商铺数量', title: '商铺数量',
align: 'center', align: 'center',
dataIndex: 'num3', dataIndex: 'shopNum',
}, },
{ {
title: '联系人', title: '联系人',
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</a-col> </a-col>
</a-row> </a-row>
</a-card> </a-card>
<a-card title="合同附件"> <a-card title="合同附件" style="margin-top: 10px;">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="合同附件" :labelCol="{ xs:{ span: 24 }, sm:{ span: 3 } }" :wrapperCol="wrapperCol"> <a-form-model-item label="合同附件" :labelCol="{ xs:{ span: 24 }, sm:{ span: 3 } }" :wrapperCol="wrapperCol">
...@@ -89,14 +89,14 @@ ...@@ -89,14 +89,14 @@
</a-card> </a-card>
</a-form-model> </a-form-model>
</j-form-container> </j-form-container>
<a-card title="商铺收款二维码"> <a-card title="商铺收款二维码" v-if="codeImg" style="margin-top: 10px;">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<img style="width: 300px; height: auto;" src="../../assets/logo.png"> <img style="width: 300px; height: auto;" :src="codeImg">
</a-col> </a-col>
</a-row> </a-row>
</a-card> </a-card>
<a-card title="审核记录" v-if="recordList.length > 0"> <a-card title="操作信息" v-if="recordList.length > 0" style="margin-top: 10px;">
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns" <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="recordList" :pagination="false" :loading="loading" class="j-table-force-nowrap"> :dataSource="recordList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
</a-table> </a-table>
...@@ -110,14 +110,14 @@ ...@@ -110,14 +110,14 @@
<script> <script>
const mapZoom = [5, 8, 10, 12] const mapZoom = [5, 8, 10, 12]
let timer = null let timer = null
import { partnersShopByDepId, partnersShopAudit } from '@/api/api' import { partnersShopByDepId, partnersShopAudit,getQrCode } from '@/api/api'
import { httpAction, getAction } from '@/api/manage' import { httpAction, getAction } from '@/api/manage'
import SelectCommunityModal from './modules/SelectCommunityModal' import SelectCommunityModal from './modules/SelectCommunityModal'
import SelectShopsModal from './modules/SelectShopsModal' import SelectShopsModal from './modules/SelectShopsModal'
export default { export default {
name: 'ShopsDetails', name: 'ShopsDetails',
inject: [], inject: ['closeCurrent'],
components: { components: {
SelectCommunityModal, SelectCommunityModal,
SelectShopsModal, SelectShopsModal,
...@@ -134,6 +134,7 @@ export default { ...@@ -134,6 +134,7 @@ export default {
shopCode: '', shopCode: '',
}, },
shopsInfo: {}, shopsInfo: {},
codeImg:'',
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 6 }, sm: { span: 6 },
...@@ -217,6 +218,9 @@ export default { ...@@ -217,6 +218,9 @@ export default {
this.recordList = result.recordList this.recordList = result.recordList
this.model = Object.assign({}, result.partnersShop) this.model = Object.assign({}, result.partnersShop)
this.shopsInfo = Object.assign({}, result.shopInfo) this.shopsInfo = Object.assign({}, result.shopInfo)
if(this.shopsInfo && this.shopsInfo.shopCode){
this.getQrCode(this.shopsInfo.shopCode)
}
this.shopsInfo.registAdress = result.shopInfo.provinceName + result.shopInfo.cityName + result.shopInfo.countyName this.shopsInfo.registAdress = result.shopInfo.provinceName + result.shopInfo.cityName + result.shopInfo.countyName
if (this.shopsInfo.provinceName) { if (this.shopsInfo.provinceName) {
this.getLongitude( this.getLongitude(
...@@ -229,7 +233,19 @@ export default { ...@@ -229,7 +233,19 @@ export default {
) )
} }
}, },
async getQrCode(shopCode) {
let params = {
shopCode:shopCode,
platformType:'partner'
}
let { res } = await getQrCode(params)
console.log(res)
if(res && res!=undefined){
this.codeImg = window.URL.createObjectURL(new Blob([res]));
}
},
toReturn() { toReturn() {
this.closeCurrent()
this.$router.go(-1) this.$router.go(-1)
}, },
//选择小区 //选择小区
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
:dataSource="dataSource1" :dataSource="dataSource1"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:scroll="{ y: 240 }"
:rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange,type:'radio'}" :rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange,type:'radio'}"
@change="handleTableChange"> @change="handleTableChange">
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<a-table size="small" bordered rowKey="id" :columns="columns" :dataSource="dataSource1" <a-table size="small" bordered rowKey="id" :columns="columns" :dataSource="dataSource1"
:pagination="ipagination" :loading="loading" :scroll="{ y: 240 }" :pagination="ipagination" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange,type:'radio'}" :rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange,type:'radio'}"
@change="handleTableChange"> @change="handleTableChange">
...@@ -74,24 +74,24 @@ export default { ...@@ -74,24 +74,24 @@ export default {
return text.creditCode return text.creditCode
}, },
}, },
{ // {
title: '联系人', // title: '联系人',
dataIndex: 'shopInfo', // dataIndex: 'shopInfo',
key: 'shopInfo', // key: 'shopInfo',
align: 'center', // align: 'center',
customRender: function (text) { // customRender: function (text) {
return text.contactName // return text.contactName
}, // },
}, // },
{ // {
title: '电话', // title: '电话',
dataIndex: 'shopInfo', // dataIndex: 'shopInfo',
key: 'shopInfo', // key: 'shopInfo',
align: 'center', // align: 'center',
customRender: function (text) { // customRender: function (text) {
return text.contactPhone // return text.contactPhone
}, // },
}, // },
], ],
//数据集 //数据集
......
<template>
<a-spin :spinning="confirmLoading">
<div class="title-top">
<h3>{{title}}</h3>
<div class="button">
<a-button @click="toReturn">返回</a-button>
<a-button type="primary" @click="toReconciliation()" v-if="pageType == 'add'">申请结算</a-button>
</div>
</div>
<j-form-container :disabled="true" v-if="pageType == 'detail'">
<a-form-model ref="form" :model="model" slot="detail">
<a-card title="基本信息">
<a-row>
<a-col :span="12">
<a-form-model-item label="结算单号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.balanceNum" placeholder="结算单号"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="提交时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.createTime" placeholder="提交时间"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="提交人" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.createBy" placeholder="提交人" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="结算总金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.balanceMoney" placeholder="结算总金额" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="账单数量" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.balanceCount" placeholder="账单数量" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="结算方式" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.balanceWay" placeholder="结算方式" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="银行卡" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.bankCard" placeholder="银行卡" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="结算日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="detailInfo.balanceDate" placeholder="结算日期" />
</a-form-model-item>
</a-col>
</a-row>
</a-card>
</a-form-model>
</j-form-container>
<a-card title="对账信息" style="margin: 10px 0;">
<!-- <a-button slot="extra" type="primary" @click="onStatements()" v-if="pageType == 'add'">选择对账单</a-button> -->
<div>
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="shareBenefitsList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
<span slot="orderSource" slot-scope="text, record">
<template v-if="record.orderSource === 'miniapp'">小程序</template>
</span>
<span slot="reconciliationStatus" slot-scope="text, record">
<a-tag color="orange" v-if="record.reconciliationStatus === 1">未对账</a-tag>
<a-tag color="blue" v-else-if="record.reconciliationStatus === 2">对账待审核</a-tag>
<a-tag color="green" v-else-if="record.reconciliationStatus === 3">已对账</a-tag>
<a-tag color="red" v-else-if="record.reconciliationStatus === 4">对账驳回</a-tag>
</span>
</a-table>
</div>
</a-card>
<a-card title="操作信息" v-if="recordList.length > 0">
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="recordColumns"
:dataSource="recordList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
<span slot="payStatus" slot-scope="text, record">
<template v-if="record"></template>已付款
</span>
<span slot="reconciliationStatus" slot-scope="text, record">
<a-tag v-if="record.reconciliationStatus === 2">结算待审核</a-tag>
<a-tag v-else-if="record.reconciliationStatus === 3">已结算</a-tag>
<a-tag v-else-if="record.reconciliationStatus === 4">结算驳回</a-tag>
</span>
</a-table>
</a-card>
</a-spin>
</template>
<script>
const mapZoom = [5, 8, 10, 12]
let timer = null
import { shareBalanceByDepId } from '@/api/api'
import { httpAction } from '@/api/manage'
//import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [
{
title: '订单编号',
dataIndex: 'orderNum',
key: 'orderNum',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
title: '买家名称',
dataIndex: 'buyerName',
key: 'buyerName',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'shareMoney',
key: 'shareMoney',
align: 'center',
},
{
title: '订单金额',
dataIndex: 'totalMoney',
key: 'totalMoney',
align: 'center',
},
// {
// title: '支付方式',
// dataIndex: 'payWay',
// key: 'payWay',
// align: 'center',
// },
{
title: '订单来源',
dataIndex: 'orderSource',
scopedSlots: { customRender: 'orderSource' },
key: 'orderSource',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
title: '所属平台',
dataIndex: 'propertyName',
key: 'propertyName',
align: 'center',
},
{
title: '所属小区',
dataIndex: 'communityName',
key: 'communityName',
align: 'center',
},
]
export default {
name: 'SettlementDetails',
inject: ['closeCurrent'],
data() {
return {
title: '详情',
pageType: '',
pcaa: this.$Jpcaa,
model: {},
info: {},
detailInfo: {},
loading:false,
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
visibleStatements: false,
confirmLoading: false,
shareBenefitsList: [],
selectionRows: [],
selectedRowKeys: [],
visibleReconciliation: false,
url: {
queryById: '/property-central/partners/shareBalance/queryById',
add: '/property-central/partners/shareBalance/add',
//list: '/property-central/partners/shareBenefit/listBalance',
},
columns: columns,
dataStatements: [],
recordList:[],
recordColumns: [
{
title: '操作人',
dataIndex: 'createBy',
key: 'createBy',
align: 'center',
},
{
title: '操作时间',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
title: '付款状态',
dataIndex: 'payStatus',
scopedSlots: { customRender: 'payStatus' },
key: 'payStatus',
align: 'center',
},
{
title: '备注',
dataIndex: 'remarks',
key: 'remarks',
align: 'center',
},
],
}
},
created() {
this.pageType = this.$route.query.type
if (this.$route.query.type == 'add') {
this.title = '新增'
} else if (this.$route.query.type == 'detail') {
this.title = '详情'
}
if (this.$route.query.id) {
this.getPageDetail()
}
},
methods: {
async getPageDetail() {
let { result } = await shareBalanceByDepId({ id: this.$route.query.id })
this.recordList = result.list
this.detailInfo = result.shareBalance
this.shareBenefitsList = result.shareBenefitsList
},
toReturn() {
this.closeCurrent()
this.$router.go(-1)
},
handleCancel(e) {
this.visibleReconciliation = false
},
},
mounted() {},
}
</script>
<style lang="less" scoped>
.title-top {
background: #fff;
padding: 0 25px;
line-height: 50px;
height: 50px;
margin-bottom: 5px;
h3 {
font-weight: bold;
display: inline-block;
}
.button {
float: right;
.ant-btn {
margin-left: 15px;
}
}
}
</style>
<style>
.area-select {
width: 100% !important;
}
</style>
\ No newline at end of file
...@@ -6,12 +6,21 @@ ...@@ -6,12 +6,21 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="5" :sm="8"> <a-col :md="5" :sm="8">
<a-form-item label="结算单号"> <a-form-item label="结算单号">
<j-input placeholder="请输入结算单号" v-model="queryParam.propertyName"></j-input> <j-input placeholder="请输入结算单号" v-model="queryParam.balanceNum"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- <a-col :md="5" :sm="8">
<a-form-item label="状态">
<a-select style="width: 100%" v-model="queryParam.balanceStatus" placeholder="请选择状态">
<a-select-option v-for="item in chargeList" :key="item.type"
:value="item.type">{{item.name}}</a-select-option>
</a-select>
</a-form-item>
</a-col> -->
<a-col :md="7" :sm="10"> <a-col :md="7" :sm="10">
<a-form-item label="时间"> <a-form-item label="订单时间">
<a-range-picker @change="onChangeData" /> <a-date-picker placeholder="订单时间" format="YYYY-MM-DD HH:mm:ss" v-model="queryParam.createTime"
:show-time="{ format: 'HH:mm:ss' }" @change="onChange"></a-date-picker>
</a-form-item> </a-form-item>
</a-col> </a-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
...@@ -23,203 +32,130 @@ ...@@ -23,203 +32,130 @@
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<!-- 操作按钮区域 -->
<!-- <div class="table-operator">
<a-button @click="propertyDetails(1)" type="primary">申请结算</a-button>
</div> -->
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns" <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource1" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap" :dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange"> @change="handleTableChange">
<span slot="balanceStatus" slot-scope="text, record">
<a-tag color="blue" v-if="record.balanceStatus === 2">结算待审核</a-tag>
<a-tag color="green" v-else-if="record.balanceStatus === 3">已结算</a-tag>
<a-tag color="red" v-else-if="record.balanceStatus === 4">结算驳回</a-tag>
</span>
<span slot="action" slot-scope="text, record">
<a type="primary" @click="propertyDetails(2,record.id)">详情</a>
</span>
</a-table> </a-table>
</div> </div>
<!-- table区域-end -->
</a-card> </a-card>
</template> </template>
<script> <script>
import { auditPropertyApi, freezeOrPropertyApi } from '@/api/api' //import { auditPropertyApi, freezeOrPropertyApi } from '@/api/api'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [ const columns = [
{ {
title: '结算单号', title: '结算单号',
dataIndex: 'id', dataIndex: 'balanceNum',
key: 'id', key: 'balanceNum',
align: 'center', align: 'center',
}, },
{ {
title: '提交时间', title: '提交时间',
dataIndex: 'reconciliationBeginDate', dataIndex: 'createTime',
key: 'reconciliationBeginDate', key: 'createTime',
align: 'center', align: 'center',
}, },
{ {
title: '提交人', title: '提交人',
dataIndex: 'creditCode', dataIndex: 'createBy',
key: 'creditCode', key: 'createBy',
align: 'center', align: 'center',
}, },
{ {
title: '结算总金额', title: '结算总金额',
dataIndex: 'propertyName', dataIndex: 'balanceMoney',
key: 'propertyName', key: 'balanceMoney',
align: 'center', align: 'center',
}, },
// {
// title: '账单数量',
// dataIndex: 'balanceCount',
// key: 'balanceCount',
// align: 'center',
// },
{ {
title: '结算方式', title: '结算方式',
dataIndex: 'companyAuditStatus', dataIndex: 'balanceWay',
key: 'companyAuditStatus', key: 'balanceWay',
align: 'center', align: 'center',
}, },
{ {
title: '结算状态', title: '结算状态',
dataIndex: 'auditStatus', dataIndex: 'balanceStatus',
key: 'auditStatus', scopedSlots: { customRender: 'balanceStatus' },
key: 'balanceStatus',
align: 'center', align: 'center',
}, },
{ {
title: '备注', title: '操作',
dataIndex: 'empowerCommunityNum', dataIndex: 'action',
key: 'empowerCommunityNum', scopedSlots: { customRender: 'action' },
align: 'center', align: 'center',
fixed: 'right',
width: 150,
}, },
] ]
export default { export default {
components: { }, components: {},
name: 'WithdrawalList', name: 'SettlementList',
mixins: [JeecgListMixin], mixins: [JeecgListMixin],
data() { data() {
return { return {
// 表头 model: {},
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
columns: columns, columns: columns,
loading: false, loading: false,
url: { url: {
list: '/property-central/property/propertyAdv/list', list: '/property-central/partners/shareBalance/list',
}, },
dataSource1: [ dataSource: [
{
id: 'JD239423',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '5',
reconciliationAmount: '345.23',
updateTime: '2023-04-05',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'JD453454',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-04-06',
reconciliationEndDate: '10',
reconciliationAmount: '1345.45',
updateTime: '2023-05-05',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'JD567454',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-02-05',
reconciliationEndDate: '2',
reconciliationAmount: '34234',
updateTime: '2023-02-06',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'KF343455',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-11-01',
reconciliationEndDate: '3',
reconciliationAmount: '34',
updateTime: '2023-06-07',
empowerCommunityNum: 'admin',
auditStatus: '已结算',
companyAuditStatus: '微信',
},
{
id: 'KD435345',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-01-21',
reconciliationEndDate: '3',
reconciliationAmount: '654',
updateTime: '2023-05-06',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LG345352',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2022-01-10',
reconciliationEndDate: '20',
reconciliationAmount: '897.98',
updateTime: '2023-05-08',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'MG345354',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-04',
reconciliationEndDate: '20',
reconciliationAmount: '234',
updateTime: '2023-05-05',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LB345353',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-02-01',
reconciliationEndDate: '2',
reconciliationAmount: '1000',
updateTime: '2023-04-04',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '微信',
},
{
id: 'LC234234',
creditCode: '张三',
propertyName: '2000',
reconciliationBeginDate: '2023-01-23',
reconciliationEndDate: '5',
reconciliationAmount: '3443',
updateTime: '2023-01-02',
empowerCommunityNum: 'admin',
auditStatus: '未结算',
companyAuditStatus: '转账',
},
], ],
visibleReconciliation: false,
confirmLoading: false, confirmLoading: false,
chargeList: [
{ type: 2, name: '结算待审核' },
{ type: 3, name: '已结算' },
{ type: 4, name: '结算驳回' },
],
} }
}, },
methods: { methods: {
onChangeData(date, dateString) { onChange(date, dateString) {
if (dateString.length > 0) { this.queryParam.createTime = dateString
this.queryParam.createTime_begin = dateString[0] },
this.queryParam.createTime_end = dateString[1] initPageParams(params) {
} else { params['platformType'] = 'partner',
this.queryParam.createTime_begin = '' params['balanceStatus'] = 3
this.queryParam.createTime_end = '' },
propertyDetails(type, id) {
if (type == 2) {
this.$router.push({
path: '/withdrawal/WithdrawalDetails?type=detail&id=' + id,
})
} }
}, },
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论