<template>
|
<div class="menuPage">
|
<div class="selectMenu">
|
<el-form :inline="true"
|
:model="searchData"
|
class="form-inline">
|
<!-- <el-form-item label="开始日期">
|
<el-date-picker v-model="searchData.beginDate"
|
type="date"
|
placeholder="选择日期"
|
format="yyyy - MM - dd "
|
value-format="yyyy-MM-dd"
|
style="width: 197px;">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="结束日期">
|
<el-date-picker v-model="searchData.endDate"
|
type="date"
|
placeholder="选择日期"
|
format="yyyy - MM - dd "
|
value-format="yyyy-MM-dd"
|
style="width: 197px;">
|
</el-date-picker>
|
</el-form-item> -->
|
|
<el-form-item label="对账日期" prop="checkDate">
|
<el-date-picker
|
v-model="searchData.checkDate"
|
type="daterange"
|
range-separator="至"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期"
|
value-format="yyyy-MM-dd">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="支付公司">
|
<el-select v-model="searchData.companyId"
|
placeholder="请选择"
|
clearable>
|
<el-option v-for="item in companyArr"
|
:key="item.companyId"
|
:label="item.payCompany"
|
:value="item.companyId">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="订单号">
|
<el-input v-model="searchData.transNo"
|
placeholder="请输入订单号"
|
style="width: 197px;"></el-input>
|
</el-form-item>
|
<el-form-item label="客户名称">
|
<el-input v-model="searchData.acctName"
|
placeholder="请输入客户名称"
|
style="width: 197px;"></el-input>
|
</el-form-item>
|
<el-form-item label="调账操作">
|
<el-select v-model="searchData.adjustType"
|
placeholder="请选择"
|
clearable>
|
<el-option v-for="item in adjustTypeArr"
|
:key="item.id"
|
:label="item.value"
|
:value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="差错类型">
|
<el-select v-model="searchData.checkResult"
|
placeholder="请选择"
|
clearable>
|
<el-option v-for="item in accountResultArr"
|
:key="item.id"
|
:label="item.value"
|
:value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="处理状态">
|
<el-select v-model="searchData.handleStatus"
|
placeholder="请选择"
|
clearable>
|
<el-option v-for="item in statusArr"
|
:key="item.id"
|
:label="item.value"
|
:value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="资金类型">
|
<el-select v-model="searchData.fundType"
|
placeholder="请选择"
|
clearable>
|
<el-option v-for="item in fundTypeArr"
|
:key="item.id"
|
:label="item.value"
|
:value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item class="search">
|
<el-button @click="search"
|
type="primary">查询</el-button>
|
<el-button @click="reset">重置</el-button>
|
</el-form-item>
|
</el-form>
|
<div class="channelMenu">
|
<el-table :data="menuItems"
|
v-loading="loading"
|
border
|
class="table">
|
<el-table-column prop="checkDate"
|
align="center"
|
min-width="120"
|
label="对账日期">
|
</el-table-column>
|
<el-table-column prop="payCompany"
|
align="center"
|
min-width="120"
|
label="支付公司">
|
</el-table-column>
|
<el-table-column prop="merId"
|
align="center"
|
min-width="180"
|
label="商户号">
|
</el-table-column>
|
<el-table-column prop="transType"
|
align="center"
|
label="交易类型">
|
<template slot-scope="scope">
|
<span>{{enumerMap(scope.row.transType,'transType')}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="transNo"
|
align="center"
|
min-width="230"
|
label="请求订单号">
|
</el-table-column>
|
<el-table-column prop="transSn"
|
align="center"
|
min-width="250"
|
label="支付订单号">
|
</el-table-column>
|
<el-table-column prop="batchAmount"
|
align="center"
|
min-width="150"
|
label="总订单金额">
|
</el-table-column>
|
<el-table-column prop="amount"
|
align="center"
|
min-width="150"
|
label="子订单金额">
|
</el-table-column>
|
<el-table-column prop="checkResult"
|
align="center"
|
min-width="100"
|
label="差错类型">
|
<template slot-scope="scope">
|
<span>{{enumerMap(scope.row.checkResult,'checkResult')}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="fundType"
|
align="center"
|
min-width="100"
|
label="资金类型">
|
<template slot-scope="scope">
|
<span>{{enumerMap(scope.row.fundType,'fundType')}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="adjustType"
|
align="center"
|
min-width="150"
|
label="调账操作">
|
<template slot-scope="scope">
|
<span>{{enumerMap(scope.row.adjustType,'adjustType')}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="handleStatus"
|
align="center"
|
min-width="100"
|
label="差错状态">
|
<template slot-scope="scope">
|
<span>{{enumerMap(scope.row.handleStatus,'handleStatus')}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="remark"
|
align="center"
|
min-width="200"
|
label="备注">
|
</el-table-column>
|
<el-table-column align="center" fixed="right" width="200" label="操作">
|
<template slot-scope="scope">
|
<el-button size="mini" type="primary" v-if="scope.row.handleStatus != '1' && scope.row.fundType != '4'" @click="edit(scope.row)">差错处理</el-button>
|
<el-button size="mini" @click="detail(scope.row)">查看</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
<el-pagination @current-change="handleCurrentChange"
|
:current-page="searchData.page * 1"
|
layout="total, prev, pager,next, jumper"
|
:total.sync="totalCount"
|
background
|
style="margin-top: 10px;">
|
</el-pagination>
|
</div>
|
</div>
|
<my-mask v-model="showMask"
|
:data="maskData"
|
v-on:isShowMask="hideMask"></my-mask>
|
<my-detail v-model="showDetail"
|
:data="detailData"
|
v-on:isShowMask="hideDetail"></my-detail>
|
</div>
|
</template>
|
|
<script>
|
import { mapGetters, mapMutations } from "vuex";
|
import MyMask from "./Mask";
|
import MyDetail from "./Detail";
|
import { Message } from "element-ui";
|
|
export default {
|
data() {
|
return {
|
isShow: false,
|
showMask: false,
|
showDetail: false,
|
searchData: {
|
beginDate: "",
|
endDate: "",
|
companyId: "",
|
transNo: "",
|
acctName: "",
|
adjustType: "",
|
checkResult: "",
|
handleStatus: "",
|
fundType: "",
|
page: "1",
|
pageSize: "10"
|
},
|
menuItems: [],
|
maskData: {},
|
detailData: {},
|
institutionArr: [],
|
companyArr: [],
|
accountResultArr: [
|
{
|
value: "所有",
|
id: ""
|
},
|
{
|
value: "金额错误",
|
id: "02"
|
},
|
{
|
value: "我有他无",
|
id: "03"
|
},
|
{
|
value: "他有我无",
|
id: "04"
|
}
|
],
|
statusArr: [
|
{
|
value: "所有",
|
id: ""
|
},
|
{
|
value: "已处理",
|
id: 1
|
},
|
{
|
value: "待处理",
|
id: 0
|
}
|
],
|
adjustTypeArr: [
|
{
|
value: "所有",
|
id: ""
|
},
|
{
|
value: "支付机构调账撤销",
|
id: "1"
|
},
|
{
|
value: "商户世联调整填补",
|
id: "2"
|
},
|
{
|
value: "支付机构调账填补",
|
id: "3"
|
},
|
{
|
value: "商户世联调账撤销",
|
id: "4"
|
}
|
],
|
fundTypeArr: [
|
{
|
value: "所有",
|
id: ""
|
},
|
{
|
value: "平账",
|
id: "1"
|
},
|
{
|
value: "长款",
|
id: "2"
|
},
|
{
|
value: "短款",
|
id: "3"
|
},
|
{
|
value: "存疑",
|
id: "4"
|
}
|
],
|
totalCount: 0,
|
currentPage: 1,
|
loading: false
|
};
|
},
|
props: ["Data", "queryChannelRespDto", "selectList"],
|
watch: {
|
showMask: function (n) {
|
if (n) return;
|
this.getMenuData()
|
},
|
showDetail: function (n) {
|
if (n) return;
|
this.getMenuData()
|
}
|
},
|
components: {
|
MyMask,
|
MyDetail
|
},
|
created() {
|
this.getMenuData();
|
this.getAllData();
|
},
|
methods: {
|
// 获取机构数据
|
getInstitutionsData() {
|
return this.$http.get("manage/getInstitutions");
|
},
|
// 获取公司数据
|
getCompanyData() {
|
return this.$http.get("manage/getCompanys");
|
},
|
// axios并发请求
|
getAllData() {
|
const that = this;
|
this.Axios.all([this.getInstitutionsData(), this.getCompanyData()])
|
.then(
|
this.Axios.spread(function (Institutions, Company) {
|
that.institutionArr = Institutions.data;
|
that.companyArr = Company.data;
|
|
})
|
)
|
.catch(err => {
|
console.log(err);
|
});
|
},
|
// 搜索
|
search() {
|
this.getMenuData();
|
},
|
// 重置
|
reset() {
|
this.searchData = {
|
beginDate: "",
|
endDate: "",
|
companyId: "",
|
transNo: "",
|
acctName: "",
|
adjustType: "",
|
checkResult: "",
|
handleStatus: "",
|
fundType: "",
|
page: "1",
|
pageSize: "10"
|
};
|
},
|
// 差错处理
|
edit(row) {
|
this.maskData = row;
|
this.showMask = true;
|
},
|
// 查看明细
|
detail(row) {
|
this.detailData = row;
|
this.showDetail = true;
|
},
|
// 获取表单数据
|
getMenuData() {
|
const that = this;
|
this.loading = true
|
let {searchData} =this
|
|
const checkDate = searchData.checkDate
|
if(Array.isArray(checkDate) && checkDate.length > 1 ) {
|
searchData.beginDate = checkDate[0]
|
searchData.endDate = checkDate[1]
|
} else {
|
searchData.beginDate = ''
|
searchData.endDate = ''
|
}
|
this.$http
|
.post("error/getErrorBill", searchData)
|
.then(response => {
|
that.loading = false
|
|
if (response.data.retHeader.retCode === "0000") {
|
if (response.data.retBody.totalCount) {
|
that.totalCount = response.data.retBody.totalCount;
|
}
|
that.menuItems = response.data.retBody.list;
|
for (let i = 0; i < that.menuItems.length; i++) {
|
if (!that.menuItems[i].seq) {
|
that.menuItems[i].seq = "-";
|
}
|
if (!that.menuItems[i].transNO) {
|
that.menuItems[i].transNO = "-";
|
}
|
}
|
} else {
|
that.totalCount = 0
|
that.menuItems = []
|
this.$message.error(response.data.retHeader.retMessage)
|
}
|
})
|
.catch(err => {
|
console.log(err);
|
});
|
},
|
|
// 隐藏蒙版
|
hideMask() {
|
this.showMask = false;
|
},
|
hideDetail() {
|
this.showDetail = false;
|
},
|
// 点击翻页
|
handleCurrentChange(val) {
|
this.currentPage = val;
|
this.searchData.page = val;
|
this.getMenuData();
|
}
|
}
|
};
|
</script>
|
|
<style>
|
.el-icon-date {
|
display: none;
|
}
|
</style>
|
|
<style lang="less" scoped>
|
table {
|
width: 100%;
|
> tr {
|
width: 100%;
|
&:first-child {
|
> td {
|
background-color: #333333;
|
color: white;
|
}
|
}
|
td {
|
padding: 6px;
|
text-align: center;
|
font-size: 14px;
|
> a {
|
color: blue;
|
font-size: 14px;
|
cursor: pointer;
|
}
|
}
|
}
|
}
|
|
.menuPage {
|
width: 100%;
|
padding: 0px 0px;
|
overflow: hidden;
|
.selectMenu {
|
width: 100%;
|
overflow: hidden;
|
border-radius: 8px;
|
.selectOptions {
|
width: 60%;
|
overflow: hidden;
|
border-bottom: 1px solid #eee;
|
.subMenuItem {
|
width: 50%;
|
float: left;
|
padding: 8px 0px;
|
color: black;
|
> span {
|
display: inline-block;
|
font-size: 14px;
|
width: 26%;
|
height: 100%;
|
text-align: right;
|
}
|
}
|
}
|
.selectBtn {
|
width: 60%;
|
height: 100%;
|
padding: 10px 0px;
|
.center {
|
margin-left: 50%;
|
transform: translateX(-50%);
|
> button {
|
padding: 8px 23px;
|
margin-right: 20px;
|
}
|
}
|
}
|
.channelMenu {
|
width: 100%;
|
margin-top: 20px;
|
.channelMenuTitle {
|
width: 100%;
|
height: 30px;
|
> div {
|
height: 100%;
|
float: left;
|
background-color: #333333;
|
border: 1px solid #999;
|
line-height: 30px;
|
text-align: center;
|
color: white;
|
font-size: 14px;
|
width: 12.5%;
|
margin-right: -1px;
|
}
|
}
|
.add {
|
margin: 10px 0px 5px;
|
}
|
.channelMenuContent {
|
width: 100%;
|
.contentItem {
|
width: 100%;
|
height: 36px;
|
> .contentValue {
|
float: left;
|
width: 12.5%;
|
height: 36px;
|
border: 1px solid #797979;
|
border-top: none;
|
text-align: center;
|
line-height: 36px;
|
background-color: #fff;
|
margin-right: -1px;
|
> a {
|
font-size: 12px;
|
color: blue;
|
outline: none;
|
cursor: default;
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
</style>
|