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

对账联调

上级 f03a22f3
......@@ -7,6 +7,11 @@ const partnersShopByDepId = (params)=>getAction("/property-central/partners/part
const partnersShopAudit = (params)=>postAction("/property-central/partners/partnersShop/audit",params);
const partnersShopOperateApi = (params)=>getAction(`/property-central/partners/partnersShop/operate/${params.id}/${params.status}`,{});
//对账
const shareBenefitShopByDepId = (params)=>getAction("/property-central/partners/shareBenefit/queryById",params);
const shareBenefitList = (params)=>getAction("/property-central/partners/shareBenefit/list",params);
const shareBalanceByDepId = (params)=>getAction("/property-central/partners/shareBalance/queryById",params);
// 首页统计数据
const getDataStatisticsApi = (params)=>getAction("/property-central/partners/partnersInfo/statistics",params);
......@@ -113,6 +118,9 @@ export {
partnersShopAudit,
partnersShopOperateApi,
getDataStatisticsApi,
shareBenefitShopByDepId,
shareBenefitList,
shareBalanceByDepId,
addRole,
editRole,
checkRoleCode,
......
......@@ -54,6 +54,7 @@ export const JeecgListMixin = {
created() {
if(!this.disableMixinCreated){
console.log(' -- mixin created -- ')
this.initPageParams(this.queryParam);
this.loadData();
}
},
......@@ -69,6 +70,9 @@ export const JeecgListMixin = {
}
},
methods:{
initPageParams() {
console.log("--预先加载参数!")
},
loadData(arg) {
if(!this.url.list){
this.$message.error("请设置url.list属性!")
......@@ -152,6 +156,7 @@ export const JeecgListMixin = {
},
searchReset() {
this.queryParam = {}
this.initPageParams(this.queryParam);
this.loadData(1);
},
batchDel: function () {
......
......@@ -4,9 +4,6 @@
<h3>{{title}}</h3>
<div class="button">
<a-button @click="toReturn">返回</a-button>
<a-button type="danger" @click="onExamine(2)" v-if="pageType == '2'">审核驳回</a-button>
<a-button type="primary" @click="onExamine(1)" v-if="pageType == '2'">审核通过</a-button>
<a-button type="primary" @click="onExamine(3)" v-if="pageType == '3'">确认</a-button>
</div>
</div>
......@@ -15,139 +12,96 @@
<a-card title="基本信息">
<a-row>
<a-col :span="12">
<a-form-model-item label="订单编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName">
<a-input v-model="model.propertyName" placeholder="订单编号"></a-input>
<a-form-model-item label="订单编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.orderNum" placeholder="订单编号"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="提交时间" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="creditCode">
<a-input v-model="model.creditCode" placeholder="提交时间"></a-input>
<a-form-model-item label="提交时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.createTime" placeholder="提交时间"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="提交人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="提交人" style="width: 100%" />
<a-form-model-item label="买家名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.buyerName" placeholder="买家名称" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="结算金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="结算金额" style="width: 100%" />
<a-form-model-item label="分利金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.shareMoney" placeholder="分利金额" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="结算方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="结算方式" style="width: 100%" />
<a-form-model-item label="订单金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.totalMoney" placeholder="订单金额" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="contactName">
<a-input v-model="model.contactName" placeholder="备注"></a-input>
<a-form-model-item label="支付方式" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.payWay" placeholder="支付方式" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="订单来源" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.orderSourceName" placeholder="订单来源" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="订单状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.reconciliationStatusName" placeholder="订单状态" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="所属平台" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.propertyName" placeholder="所属平台" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="所属小区" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.communityName" placeholder="所属小区" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="商铺名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.shopName" placeholder="商铺名称" />
</a-form-model-item>
</a-col>
<a-col :span="12">
<a-form-model-item label="合作伙伴名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input v-model="model.partnersName" placeholder="合作伙伴名称" />
</a-form-model-item>
</a-col>
</a-row>
</a-card>
</a-form-model>
</j-form-container>
<a-card title="对账信息" style="margin-top: 10px;">
<div>
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange">
</a-table>
</div>
<a-card title="操作信息" v-if="recordList.length > 0">
<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">
<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 === 1">未对账</a-tag>
<a-tag v-else-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 { auditPropertyApi } from '@/api/api'
import { httpAction, getAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { shareBenefitShopByDepId } from '@/api/api'
const columns = [
{
title: '订单编号',
dataIndex: 'id',
key: 'id',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'reconciliationBeginDate',
key: 'reconciliationBeginDate',
align: 'center',
},
{
title: '用户账号',
dataIndex: 'creditCode',
key: 'creditCode',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'propertyName',
key: 'propertyName',
align: 'center',
},
{
title: '支付方式',
dataIndex: 'reconciliationEndDate',
key: 'reconciliationEndDate',
align: 'center',
},
{
title: '订单来源',
dataIndex: 'reconciliationAmount',
key: 'reconciliationAmount',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'empowerCommunityNum',
key: 'empowerCommunityNum',
align: 'center',
},
{
title: '所属平台',
dataIndex: 'auditStatus',
key: 'auditStatus',
align: 'center',
},
{
title: '所属小区',
dataIndex: 'companyAuditStatus',
key: 'companyAuditStatus',
// customRender: function (text) {
// return filterDictTextByCache('companyAuditStatus', text)
// },
},
]
export default {
name: 'SettlementDetails',
inject: [],
mixins: [JeecgListMixin],
name: 'ReconciliationDetails',
inject: ['closeCurrent'],
data() {
return {
title: '详情',
pageType: '',
pcaa: this.$Jpcaa,
model: {
propertyName: '234234234',
creditCode: '2023-03-22',
legalName: '2023-06-22',
registCapital: 'ADMIN',
contactName: '2023-06-23',
image: '',
},
model: {},
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
......@@ -157,258 +111,74 @@ export default {
sm: { span: 16 },
},
confirmLoading: false,
url: {
queryById: '/property-central/property/propertySettled/queryById',
list: '/property-central/property/communityReconciliation/communityAccountPage',
},
costList: [],
mapRef: null,
columns: columns,
loading: false,
dataSource: [
recordList: [],
columns: [
{
title: '操作人',
dataIndex: 'createBy',
key: 'createBy',
align: 'center',
},
{
id: 'JD2394231',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '操作时间',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
id: 'JD2394232',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '订单状态',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
id: 'JD2394233',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '付款状态',
dataIndex: 'payStatus',
scopedSlots: { customRender: 'payStatus' },
key: 'payStatus',
align: 'center',
},
{
id: 'JD2394234',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '备注',
dataIndex: 'remarks',
key: 'remarks',
align: 'center',
},
],
}
},
methods: {
async onLoadCostList() {
//let data = await getPropertyChargruleListApi()
this.costList = data.result
},
async getPageDetail() {
//let { result } = await getPropertyDetailApi({ id: this.$route.query.id })
this.edit(result)
if (result.provinceName) {
this.getLongitude(
result.provinceName,
result.provinceName + result.cityName + result.countyName + result.addressInfo,
mapZoom[3]
)
let { result } = await shareBenefitShopByDepId({ id: this.$route.query.id })
this.recordList = result.list
this.model = result.shareBenefit
if (this.model.orderSource == 'miniapp') {
this.model.orderSourceName = '小程序'
}
if (this.model.reconciliationStatus == 1) {
this.model.reconciliationStatusName = '未对账'
} else if (this.model.reconciliationStatus == 2) {
this.model.reconciliationStatusName = '对账待审核'
} else if (this.model.reconciliationStatus == 3) {
this.model.reconciliationStatusName = '已对账'
} else if (this.model.reconciliationStatus == 4) {
this.model.reconciliationStatusName = '对账驳回'
}
},
toReturn() {
this.closeCurrent()
this.$router.go(-1)
},
contactPhoneChange(e) {
if (!this.model.adminLoginName) {
this.model.adminLoginName = e.target.value
}
},
edit(record) {
this.model = Object.assign({}, record)
this.model.registAdress = [record.provinceCode, record.cityCode, record.countyCode]
this.visible = true
},
onExamine(type) {
// const that = this
// if (type == 1) {
// return auditPropertyApi({
// id: this.$route.query.id,
// auditStatus: 'auditPass',
// }).then((res) => {
// that.$message.success('审核通过成功')
// that.$emit('ok')
// this.toReturn()
// })
// } else if (type == 2) {
// return auditPropertyApi({
// id: this.$route.query.id,
// auditStatus: 'refuse',
// }).then((res) => {
// that.$message.success('审核驳回成功')
// this.toReturn()
// })
// }
},
addressChange(val) {
const province = Object.keys(val[0])[0]
const city = Object.keys(val[1])[0]
const county = Object.keys(val[2])[0]
this.model.provinceName = val[0][province]
this.model.provinceCode = province
this.model.cityName = val[1][city]
this.model.cityCode = city
this.model.countyName = val[2][county]
this.model.countyCode = county
if (this.model.addressInfo) {
this.getLongitude(
this.model.provinceName,
this.model.provinceName + this.model.cityName + this.model.countyName + this.model.addressInfo,
mapZoom[3]
)
}
},
addressBlur(val) {
if (this.model.provinceName) {
this.getLongitude(
this.model.provinceName,
this.model.provinceName + this.model.cityName + this.model.countyName + val.target.value,
mapZoom[3]
)
}
},
getAddress(e) {
let _this = this
// 创建地理编码实例
var myGeo = new BMapGL.Geocoder()
// 根据坐标得到地址描述
myGeo.getLocation(new BMapGL.Point(e.latlng.lng, e.latlng.lat), function (result) {
if (result) {
_this.mapRef.clearOverlays()
_this.model.registAdress = [
result.addressComponents.province,
result.addressComponents.city,
result.addressComponents.district,
]
_this.model.addressInfo = result.addressComponents.street + result.addressComponents.streetNumber
_this.model.longitude = result.point.lng
_this.model.latitude = result.point.lat
_this.positionMap(e.latlng.lng, e.latlng.lat, mapZoom[3], result.address)
console.log(result)
}
})
},
positionMap(mapCenterLng, mapCenterLat, mapzoom, address) {
var point = new BMapGL.Point(mapCenterLng, mapCenterLat) // 创建点坐标
this.mapRef.centerAndZoom(point, mapzoom)
var marker = new BMapGL.Marker(point, { title: address }) // 创建标注
this.mapRef.addOverlay(marker) // 将标注添加到地图中
let _this = this
// marker.addEventListener("click", function(){
var label = new BMapGL.Label(address, {
// 创建文本标注
position: point, // 设置标注的地理位置
offset: new BMapGL.Size(0, -55), // 设置标注的偏移量
})
_this.mapRef.addOverlay(label) // 将标注添加到地图中
label.setStyle({
// 设置label的样式
color: '#333',
fontSize: '14px',
padding: '4px 10px',
border: '1px solid #1E90FF',
borderRadius: '4px',
transform: 'translateX(-40%)',
})
// });
},
getLongitude(city, address, zoom) {
let _this = this
var myGeo = new BMapGL.Geocoder()
myGeo.getPoint(
address,
function (point) {
if (point) {
_this.mapRef.clearOverlays()
_this.model.longitude = point.lng
_this.model.latitude = point.lat
_this.positionMap(point.lng, point.lat, zoom, address)
} else {
console.log('您选择的地址没有解析到结果!')
}
},
city
)
},
submitForm() {
const that = this
// 触发表单验证
this.$refs.form.validate((valid) => {
if (valid) {
that.confirmLoading = true
let httpurl = ''
let method = ''
if (!this.model.id) {
httpurl += this.url.add
method = 'post'
} else {
httpurl += this.url.edit
method = 'put'
}
//this.model.registAdress = undefined
httpAction(httpurl, this.model, method)
.then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')
this.toReturn()
} else {
that.$message.warning(res.message)
}
})
.finally(() => {
that.confirmLoading = false
})
}
})
},
},
mounted() {
//备份model原始值
//this.modelDefault = JSON.parse(JSON.stringify(this.model))
// this.onLoadCostList()
this.pageType = this.$route.query.type
if (this.$route.query.type == '1') {
this.title = '详情'
} else if (this.$route.query.type == '2') {
this.title = '审核'
} else if (this.$route.query.type == '3') {
this.title = '拨款'
if (this.$route.query.id) {
this.getPageDetail()
}
console.log(this.title)
console.log(this.pageType)
// if (this.$route.query.id) {
// this.getPageDetail()
// }
},
}
</script>
......
......@@ -4,22 +4,28 @@
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :md="5" :sm="8" style="display: none;">
<a-form-item label="">
<j-input placeholder="" v-model="queryParam.platformType"></j-input>
</a-form-item>
</a-col>
<a-col :md="5" :sm="8">
<a-form-item label="订单编号">
<j-input placeholder="请输入订单编号" v-model="queryParam.propertyName"></j-input>
<j-input placeholder="请输入订单编号" v-model="queryParam.orderNum"></j-input>
</a-form-item>
</a-col>
<a-col :md="5" :sm="8">
<a-form-item label="状态">
<a-select style="width: 100%" v-model="queryParam.chargeTypeId" placeholder="请选择状态">
<a-select-option v-for="item in chargeList" :key="item.id"
:value="item.id">{{item.typeName}}</a-select-option>
<a-select style="width: 100%" v-model="queryParam.reconciliationStatus" 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-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-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
......@@ -31,19 +37,24 @@
</a-row>
</a-form>
</div>
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="toReconciliation(1,'')" type="primary">批量对账</a-button>
</div>
<!-- table区域-begin -->
<div>
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange"
:rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange}">
@change="handleTableChange">
<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>
<span slot="action" slot-scope="text, record">
<a type="primary" @click="toReconciliation(2,record)">申请对账</a>
<a type="primary" @click="toDetails(record.id)">详情</a>
<a type="primary" @click="toReconciliation(record)" v-if="record.reconciliationStatus === 1"
style="margin-left: 15px;">申请对账</a>
</span>
</a-table>
......@@ -54,106 +65,93 @@
<a-form>
<a-row>
<a-col :span="24">
<a-form-model-item label="对账总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name1"
style="width: 100%;">
<a-input v-model="model.name1" placeholder="对账总金额"></a-input>
<a-form-model-item label="对账总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
<a-input v-model="info.amount" placeholder="对账总金额" disabled></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="对账日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name2"
style="width: 100%;">
<a-input v-model="model.name2" placeholder="对账日期"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="对账明细" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
<a @click="checkDetails()">查看明细</a>
<a-form-model-item label="对账日期" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
<a-input v-model="info.data" placeholder="对账日期" disabled></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
<a-textarea v-model="model.name3" :auto-size="{ minRows: 4, maxRows: 6 }" />
<a-textarea v-model="model.remarks" :auto-size="{ minRows: 4, maxRows: 6 }" />
</a-form-model-item>
</a-col>
</a-row>
</a-form>
</a-modal>
<a-modal centered title="对账明细" :visible="visibleReconciliationDetail" :confirm-loading="confirmLoading"
:footer="null" width="60%" @cancel="handleCancelDetail">
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns1"
:dataSource="selectedList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
</a-table>
</a-modal>
</a-card>
</template>
<script>
//import { getChargeListApi } from '@/api/api'
import { httpAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [
{
title: '订单编号',
dataIndex: 'id',
key: 'id',
dataIndex: 'orderNum',
key: 'orderNum',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'reconciliationBeginDate',
key: 'reconciliationBeginDate',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
title: '用户账号',
dataIndex: 'creditCode',
key: 'creditCode',
title: '买家名称',
dataIndex: 'buyerName',
key: 'buyerName',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'propertyName',
key: 'propertyName',
dataIndex: 'shareMoney',
key: 'shareMoney',
align: 'center',
},
{
title: '订单金额',
dataIndex: 'totalMoney',
key: 'totalMoney',
align: 'center',
},
{
title: '支付方式',
dataIndex: 'reconciliationEndDate',
key: 'reconciliationEndDate',
dataIndex: 'payWay',
key: 'payWay',
align: 'center',
},
{
title: '订单来源',
dataIndex: 'reconciliationAmount',
key: 'reconciliationAmount',
dataIndex: 'orderSource',
scopedSlots: { customRender: 'orderSource' },
key: 'orderSource',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'empowerCommunityNum',
key: 'empowerCommunityNum',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
title: '所属平台',
dataIndex: 'auditStatus',
key: 'auditStatus',
dataIndex: 'propertyName',
key: 'propertyName',
align: 'center',
},
{
title: '所属小区',
dataIndex: 'companyAuditStatus',
key: 'companyAuditStatus',
// customRender: function (text) {
// return filterDictTextByCache('companyAuditStatus', text)
// },
dataIndex: 'communityName',
key: 'communityName',
align: 'center',
},
{
title: '操作',
......@@ -164,71 +162,6 @@ const columns = [
width: 150,
},
]
const columns1 = [
{
title: '订单编号',
dataIndex: 'id',
key: 'id',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'reconciliationBeginDate',
key: 'reconciliationBeginDate',
align: 'center',
},
{
title: '用户账号',
dataIndex: 'creditCode',
key: 'creditCode',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'propertyName',
key: 'propertyName',
align: 'center',
},
{
title: '支付方式',
dataIndex: 'reconciliationEndDate',
key: 'reconciliationEndDate',
align: 'center',
},
{
title: '订单来源',
dataIndex: 'reconciliationAmount',
key: 'reconciliationAmount',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'empowerCommunityNum',
key: 'empowerCommunityNum',
align: 'center',
},
{
title: '所属平台',
dataIndex: 'auditStatus',
key: 'auditStatus',
align: 'center',
},
{
title: '所属小区',
dataIndex: 'companyAuditStatus',
key: 'companyAuditStatus',
// customRender: function (text) {
// return filterDictTextByCache('companyAuditStatus', text)
// },
},
]
export default {
components: {},
......@@ -236,6 +169,10 @@ export default {
mixins: [JeecgListMixin],
data() {
return {
queryParam:{
platformType:'partner'
},
info: {},
model: {},
labelCol: {
xs: { span: 24 },
......@@ -245,141 +182,69 @@ export default {
xs: { span: 24 },
sm: { span: 16 },
},
chargeList: [],
chargeList: [
{ type: 1, name: '未对账' },
{ type: 2, name: '对账待审核' },
{ type: 3, name: '已对账' },
{ type: 4, name: '对账驳回' },
],
columns: columns,
columns1: columns1,
loading: false,
url: {
list: '/property-central/property/communityReconciliation/list',
list: '/property-central/partners/shareBenefit/list',
reconciliation: '/property-central/partners/shareBenefit/reconciliation',
},
dataSource: [
{
id: 'JD2394231',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
},
{
id: 'JD2394232',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
},
{
id: 'JD2394233',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
},
{
id: 'JD2394234',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
},
],
dataSource: [],
visibleReconciliation: false,
confirmLoading: false,
selectedList: [],
selectedRowKeys: [],
visibleReconciliationDetail: false,
}
},
created() {
//this.getChargeList()
let data = new Date().toLocaleString();
console.log(data)
//let data = new Date().toLocaleString()
},
methods: {
// async getChargeList() {
// let { result } = await getChargeListApi()
// this.chargeList = result
// },
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
} else {
this.queryParam.createTime_begin = ''
this.queryParam.createTime_end = ''
}
onChange(date, dateString) {
this.queryParam.createTime = dateString
},
initPageParams(params) {
params['platformType'] = 'partner'
},
toDetails(id) {
this.$router.push({
path: '/benefiting/ReconciliationDetails?type=detail&id=' + id,
})
},
//申请对账
toReconciliation(type, record) {
this.selectedList = []
this.model.name1 = 0;
if (type == 1) {
if (this.selectionRows.length > 0) {
this.visibleReconciliation = true
this.selectedList = this.selectionRows
let list = this.selectedList
let sum = 0
for (var i = 0; i < list.length; i++) {
sum += list[i].propertyName
}
this.model.name1 = sum
console.log(this.selectedList)
console.log(333)
} else {
this.$message.warning('请选择订单')
}
} else if (type == 2) {
this.visibleReconciliation = true
this.selectedList.push(record)
this.selectedRowKeys = []
this.model.name1 = record.propertyName;
}
toReconciliation(record) {
this.visibleReconciliation = true
this.info.amount = record.totalMoney
this.info.data = record.createTime
this.model.id = record.id
},
handleOk(e) {
const that = this
this.confirmLoading = true
setTimeout(() => {
this.visibleReconciliation = false
this.confirmLoading = false
}, 2000)
let method = 'post'
httpAction(this.url.reconciliation, this.model, method)
.then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')
} else {
that.$message.warning(res.message)
}
that.searchQuery()
this.visibleReconciliation = false
this.confirmLoading = false
this.model = {}
})
.finally(() => {
that.confirmLoading = false
})
},
handleCancel(e) {
this.visibleReconciliation = false
},
onSelect(record, selected) {
if (selected === true) {
this.selectedCurrently = record
}
},
onSelectChange(selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
this.selectionRows = selectedRows
},
checkDetails() {
this.visibleReconciliationDetail = true
},
handleCancelDetail() {
this.visibleReconciliationDetail = false
},
},
}
</script>
......
......@@ -4,7 +4,7 @@
<h3>{{title}}</h3>
<div class="button">
<a-button @click="toReturn">返回</a-button>
<a-button type="primary" @click="toReconciliation()" v-if="pageType == 'add'">确认结算</a-button>
<a-button type="primary" @click="toReconciliation()" v-if="pageType == 'add'">申请结算</a-button>
</div>
</div>
......@@ -13,53 +13,94 @@
<a-card title="基本信息">
<a-row>
<a-col :span="12">
<a-form-model-item label="订单编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName">
<a-input v-model="model.propertyName" placeholder="订单编号"></a-input>
<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" prop="creditCode">
<a-input v-model="model.creditCode" placeholder="提交时间"></a-input>
<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" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="提交人" style="width: 100%" />
<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" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="结算金额" style="width: 100%" />
<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" prop="registCapital">
<a-input-number v-model="model.registCapital" :min="1" placeholder="结算方式" style="width: 100%" />
<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" prop="contactName">
<a-input v-model="model.contactName" placeholder="备注"></a-input>
<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-top: 10px;">
<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="selectedList" :pagination="false" :loading="loading" class="j-table-force-nowrap">
: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-modal centered title="选择对账单" :visible="visibleStatements" @ok="statementsOk" @cancel="statementsCancel"
width="60%">
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataStatements" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
:dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@change="handleTableChange"
:rowSelection="{selectedRowKeys: selectedRowKeys,onSelect:onSelect,onChange: onSelectChange}">
<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>
</a-modal>
<a-modal centered title="申请结算" :visible="visibleReconciliation" :confirm-loading="confirmLoading" @ok="handleOk"
......@@ -67,32 +108,31 @@
<a-form>
<a-row>
<a-col :span="24">
<a-form-model-item label="结算总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
<a-form-model-item label="结算总金额" :labelCol="labelCol" :wrapperCol="wrapperCol"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.name1" placeholder="结算总金额"></a-input>
<a-input v-model="info.balanceMoney" placeholder="结算总金额" disabled></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="结算日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
<a-form-model-item label="结算方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="balanceWay"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="结算日期"></a-input>
<a-input v-model="model.balanceWay" placeholder="结算方式" disabled></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="结算方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
</a-col> <a-col :span="24">
<a-form-model-item label="选择银行卡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankCard"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="结算方式"></a-input>
<a-input v-model="model.bankCard" placeholder="银行卡" disabled></a-input>
</a-form-model-item>
</a-col> <a-col :span="24">
<a-form-model-item label="选择银行卡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
</a-col>
<a-col :span="24">
<a-form-model-item label="结算日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="balanceDate"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="选择银行卡"></a-input>
<a-date-picker placeholder="选择日期" format="YYYY-MM-DD HH:mm:ss" :show-time="{ format: 'HH:mm:ss' }" @change="onChangeTime" v-model="model.balanceDate"></a-date-picker>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;">
<a-textarea v-model="model.propertyName" :auto-size="{ minRows: 4, maxRows: 6 }" />
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" style="width: 100%;">
<a-textarea v-model="model.remarks" :auto-size="{ minRows: 4, maxRows: 6 }" />
</a-form-model-item>
</a-col>
</a-row>
......@@ -104,90 +144,86 @@
<script>
const mapZoom = [5, 8, 10, 12]
let timer = null
import { auditPropertyApi } from '@/api/api'
import { httpAction, getAction } from '@/api/manage'
import { shareBalanceByDepId } from '@/api/api'
import { httpAction } from '@/api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [
{
title: '订单编号',
dataIndex: 'id',
key: 'id',
dataIndex: 'orderNum',
key: 'orderNum',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'reconciliationBeginDate',
key: 'reconciliationBeginDate',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
title: '用户账号',
dataIndex: 'creditCode',
key: 'creditCode',
title: '买家名称',
dataIndex: 'buyerName',
key: 'buyerName',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'propertyName',
key: 'propertyName',
dataIndex: 'shareMoney',
key: 'shareMoney',
align: 'center',
},
{
title: '支付方式',
dataIndex: 'reconciliationEndDate',
key: 'reconciliationEndDate',
title: '订单金额',
dataIndex: 'totalMoney',
key: 'totalMoney',
align: 'center',
},
// {
// title: '支付方式',
// dataIndex: 'payWay',
// key: 'payWay',
// align: 'center',
// },
{
title: '订单来源',
dataIndex: 'reconciliationAmount',
key: 'reconciliationAmount',
dataIndex: 'orderSource',
scopedSlots: { customRender: 'orderSource' },
key: 'orderSource',
align: 'center',
},
{
title: '订单状态',
dataIndex: 'updateTime',
key: 'updateTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'empowerCommunityNum',
key: 'empowerCommunityNum',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
title: '所属平台',
dataIndex: 'auditStatus',
key: 'auditStatus',
dataIndex: 'propertyName',
key: 'propertyName',
align: 'center',
},
{
title: '所属小区',
dataIndex: 'companyAuditStatus',
key: 'companyAuditStatus',
dataIndex: 'communityName',
key: 'communityName',
align: 'center',
},
]
export default {
name: 'SettlementDetails',
inject: [],
inject: ['closeCurrent'],
mixins: [JeecgListMixin],
data() {
return {
title: '详情',
pageType: '',
pcaa: this.$Jpcaa,
model: {
propertyName: '234234234',
creditCode: '2023-03-22',
legalName: '2023-06-22',
registCapital: 'ADMIN',
contactName: '2023-06-23',
image: '',
},
model: {},
info: {},
detailInfo: {},
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
......@@ -198,65 +234,50 @@ export default {
},
visibleStatements: false,
confirmLoading: false,
selectedList: [],
shareBenefitsList: [],
selectionRows: [],
selectedRowKeys: [],
visibleReconciliation: false,
url: {
queryById: '/property-central/property/propertySettled/queryById',
list: '/property-central/property/communityReconciliation/communityAccountPage',
queryById: '/property-central/partners/shareBalance/queryById',
add: '/property-central/partners/shareBalance/add',
list: '/property-central/partners/shareBenefit/listBalance',
},
costList: [],
columns: columns,
dataStatements: [
dataStatements: [],
recordList:[],
recordColumns: [
{
title: '操作人',
dataIndex: 'createBy',
key: 'createBy',
align: 'center',
},
{
id: 'JD2394231',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '操作时间',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
id: 'JD2394232',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '订单状态',
dataIndex: 'reconciliationStatus',
scopedSlots: { customRender: 'reconciliationStatus' },
key: 'reconciliationStatus',
align: 'center',
},
{
id: 'JD2394233',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '付款状态',
dataIndex: 'payStatus',
scopedSlots: { customRender: 'payStatus' },
key: 'payStatus',
align: 'center',
},
{
id: 'JD2394234',
creditCode: '18000000000',
propertyName: 20000,
reconciliationBeginDate: '2023-01-01',
reconciliationEndDate: '微信',
reconciliationAmount: '小程序',
updateTime: '未对账',
empowerCommunityNum: '备注',
auditStatus: 'XXX物业集团',
companyAuditStatus: '花园小区',
title: '备注',
dataIndex: 'remarks',
key: 'remarks',
align: 'center',
},
],
}
......@@ -273,22 +294,17 @@ export default {
}
},
methods: {
async onLoadCostList() {
//let data = await getPropertyChargruleListApi()
this.costList = data.result
initPageParams(params) {
params['platformType'] = 'partner'
},
async getPageDetail() {
//let { result } = await getPropertyDetailApi({ id: this.$route.query.id })
this.edit(result)
if (result.provinceName) {
this.getLongitude(
result.provinceName,
result.provinceName + result.cityName + result.countyName + result.addressInfo,
mapZoom[3]
)
}
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)
},
//选择对账单
......@@ -305,7 +321,7 @@ export default {
this.selectionRows = selectedRows
},
statementsOk() {
this.selectedList = this.selectionRows
this.shareBenefitsList = this.selectionRows
this.visibleStatements = false
this.confirmLoading = false
},
......@@ -316,58 +332,51 @@ export default {
toReconciliation(record) {
if (this.selectionRows.length > 0) {
this.visibleReconciliation = true
let list = this.selectedList
let list = this.shareBenefitsList
let sum = 0
for (var i = 0; i < list.length; i++) {
sum += list[i].propertyName
sum += list[i].shareMoney
}
this.model.name1 = sum
this.info.balanceMoney = sum
this.model.balanceWay = '转账'
this.model.bankCard = '123456789'
} else {
this.$message.warning('选择对账单')
}
},
onChangeTime(date, dateString) {
this.model.balanceDate = dateString
},
handleOk(e) {
const that = this
this.confirmLoading = true
setTimeout(() => {
this.visibleReconciliation = false
let method = 'post'
if (!this.model.balanceDate) {
this.$message.warning('请选择结算日期')
this.confirmLoading = false
}, 2000)
},
handleCancel(e) {
this.visibleReconciliation = false
},
return false
}
submitForm() {
const that = this
// 触发表单验证
this.$refs.form.validate((valid) => {
if (valid) {
that.confirmLoading = true
let httpurl = ''
let method = ''
if (!this.model.id) {
httpurl += this.url.add
method = 'post'
this.model.shareBenefitIds = this.selectedRowKeys.toString()
httpAction(this.url.add, this.model, method)
.then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')
this.toReturn()
} else {
httpurl += this.url.edit
method = 'put'
that.$message.warning(res.message)
}
//this.model.registAdress = undefined
httpAction(httpurl, this.model, method)
.then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')
this.toReturn()
} else {
that.$message.warning(res.message)
}
})
.finally(() => {
that.confirmLoading = false
})
}
})
this.visibleReconciliation = false
this.confirmLoading = false
this.model = {}
})
.finally(() => {
that.confirmLoading = false
})
},
handleCancel(e) {
this.visibleReconciliation = false
},
},
mounted() {},
......
......@@ -6,17 +6,21 @@
<a-row :gutter="24">
<a-col :md="5" :sm="8">
<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-col>
<a-col :md="5" :sm="8">
<a-form-item label="状态">
<j-input placeholder="请选择状态" v-model="queryParam.propertyName"></j-input>
<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-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-col>
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
......@@ -37,55 +41,17 @@
<a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns"
:dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap"
@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)">详情</a>
<a type="primary" @click="propertyDetails(2,record.id)">详情</a>
</span>
</a-table>
</div>
<!-- table区域-end -->
<a-modal centered title="申请结算" :visible="visibleReconciliation" :confirm-loading="confirmLoading" @ok="handleOk"
@cancel="handleCancel">
<a-form>
<a-row>
<a-col :span="24">
<a-form-model-item label="结算总金额" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="结算总金额"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="结算日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="结算日期"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="结算方式" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="结算方式"></a-input>
</a-form-model-item>
</a-col> <a-col :span="24">
<a-form-model-item label="选择银行卡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;margin-bottom: 10px;">
<a-input v-model="model.propertyName" placeholder="选择银行卡"></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="结算明细" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;margin-bottom: 10px;">
<a>查看明细</a>
</a-form-model-item>
</a-col>
<a-col :span="24">
<a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="propertyName"
style="width: 100%;">
<a-textarea v-model="model.propertyName" :auto-size="{ minRows: 4, maxRows: 6 }" />
</a-form-model-item>
</a-col>
</a-row>
</a-form>
</a-modal>
</a-card>
</template>
......@@ -96,51 +62,45 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [
{
title: '结算单号',
dataIndex: 'id',
key: 'id',
dataIndex: 'balanceNum',
key: 'balanceNum',
align: 'center',
},
{
title: '提交时间',
dataIndex: 'reconciliationBeginDate',
key: 'reconciliationBeginDate',
dataIndex: 'createTime',
key: 'createTime',
align: 'center',
},
{
title: '提交人',
dataIndex: 'creditCode',
key: 'creditCode',
dataIndex: 'createBy',
key: 'createBy',
align: 'center',
},
{
title: '结算总金额',
dataIndex: 'reconciliationAmount',
key: 'reconciliationAmount',
dataIndex: 'balanceMoney',
key: 'balanceMoney',
align: 'center',
},
{
title: '账单数量',
dataIndex: 'reconciliationEndDate',
key: 'reconciliationEndDate',
dataIndex: 'balanceCount',
key: 'balanceCount',
align: 'center',
},
{
title: '结算方式',
dataIndex: 'companyAuditStatus',
key: 'companyAuditStatus',
dataIndex: 'balanceWay',
key: 'balanceWay',
align: 'center',
},
{
title: '结算状态',
dataIndex: 'auditStatus',
key: 'auditStatus',
align: 'center',
},
{
title: '备注',
dataIndex: 'empowerCommunityNum',
key: 'empowerCommunityNum',
dataIndex: 'balanceStatus',
scopedSlots: { customRender: 'balanceStatus' },
key: 'balanceStatus',
align: 'center',
},
{
......@@ -171,7 +131,7 @@ export default {
columns: columns,
loading: false,
url: {
list: '/property-central/property/communityReconciliation/list',
list: '/property-central/partners/shareBalance/list',
},
dataSource: [
{
......@@ -283,11 +243,21 @@ export default {
companyAuditStatus: '转账',
},
],
visibleReconciliation: false,
confirmLoading: false,
chargeList: [
{ type: 2, name: '结算待审核' },
{ type: 3, name: '已结算' },
{ type: 4, name: '结算驳回' },
],
}
},
methods: {
onChange(date, dateString) {
this.queryParam.createTime = dateString
},
initPageParams(params) {
params['platformType'] = 'partner'
},
propertyDetails(type, id) {
if (type == 1) {
this.$router.push({
......@@ -300,29 +270,7 @@ export default {
}
},
onChangeData(date, dateString) {
if (dateString.length > 0) {
this.queryParam.createTime_begin = dateString[0]
this.queryParam.createTime_end = dateString[1]
} else {
this.queryParam.createTime_begin = ''
this.queryParam.createTime_end = ''
}
},
//申请对账
toReconciliation(record) {
this.visibleReconciliation = true
},
handleOk(e) {
this.confirmLoading = true
setTimeout(() => {
this.visibleReconciliation = false
this.confirmLoading = false
}, 2000)
},
handleCancel(e) {
this.visibleReconciliation = false
},
},
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论