You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
290 lines
11 KiB
290 lines
11 KiB
<template>
|
|
<div class="app-container">
|
|
<div v-show="viewState == 1">
|
|
<div class="tab-header webtop">
|
|
<div>出纳款项确认管理</div>
|
|
<div>
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
|
|
</div>
|
|
</div>
|
|
<div class="webcon">
|
|
<div class="searchcon">
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
|
|
<div v-show="isSearchShow">
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
|
|
<el-row>
|
|
<el-form-item label="付款方名称:" class="searchlist">
|
|
<el-input v-model="listQuery.params.payerName" placeholder="" clearable/>
|
|
</el-form-item>
|
|
<el-form-item label="收款方式:" class="searchlist">
|
|
<el-select v-model="listQuery.params.collectionTypeKey" placeholder="请选择" filterable clearable>
|
|
<el-option v-for="item in collectionType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="收款银行:" class="searchlist">
|
|
<el-select v-model="listQuery.params.collectionBank" placeholder="请选择" style="width: 300px" filterable clearable>
|
|
<el-option v-for="item in receiptBank_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="认款状态:" class="searchlist">
|
|
<el-select v-model="listQuery.params.subscriptionState" placeholder="请选择" filterable clearable>
|
|
<el-option v-for="item in subscriptionState_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-row>
|
|
<el-row>
|
|
<el-form-item label="盖章日期:" class="searchlist">
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.collectionStartDate" clearable style="width: 160px" type="date" placeholder="开始日期"/>
|
|
<div class="line">至</div>
|
|
<el-date-picker value-format="yyyy-MM-dd" v-model="listQuery.params.collectionEndDate" clearable style="width: 160px" type="date" placeholder="结束日期"/>
|
|
</el-form-item>
|
|
</el-row>
|
|
<div class="searchbtns">
|
|
<el-button type="primary" size="small" @click="handleFilter">查询</el-button>
|
|
<el-button type="primary" size="small" @click="handReset">重置</el-button>
|
|
</div>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="listtop">
|
|
<div class="tit">应收款项列表</div>
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
<div class="">
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%">
|
|
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
|
|
<el-table-column label="操作" align="center" width="180px">
|
|
<template slot-scope="scope">
|
|
<el-button :disabled="scope.row.auditState !== 1" type="primary" size="small" @click="handUpdate(scope.row)">办理</el-button>
|
|
<el-button type="primary" size="small" @click="handLook(scope.row)">查看</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="审核状态" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.auditState == 1 ? '待审核' : scope.row.auditState == 2 ? '已驳回' : scope.row.auditState ==3 ? '已审核' : '其他' }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="认款状态" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.subscriptionState == 1 ? '未认款' : scope.row.subscriptionState == 2 ? '部分认款' : scope.row.subscriptionState == 3 ? '已认款' : '其他' }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="申请人" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.createByName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="申请日期" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.createDate }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="收款日期" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.collectionDate }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="收款银行" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.collectionBank }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="收款银行账号" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.collectionBankNum }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="收款方式" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.collectionTypeValue }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="收款金额" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.collectionMoney }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="付款方名称" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.payerName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="备注" align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.remarks }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<div class="pages">
|
|
<!-- 翻页 -->
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<cashierConfirmationInfo v-show="viewState == 2 || viewState == 3" ref="divInfo" @doback="resetState"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { listPage, dataDictionary } from '@/api/anruifinmanagement/paymentConfirmation.js'
|
|
import Pagination from '@/components/pagination'
|
|
import pageye from '@/components/pagination/pageye'
|
|
import cashierConfirmationInfo from './cashierConfirmationInfo.vue'
|
|
|
|
export default {
|
|
name: 'chunakuanxiangquerenguanli',
|
|
components: {
|
|
Pagination,
|
|
pageye,
|
|
cashierConfirmationInfo
|
|
},
|
|
data() {
|
|
return {
|
|
isSearchShow: false,
|
|
searchxianshitit: '隐藏查询条件',
|
|
viewState: 1,
|
|
tableKey: 0,
|
|
list: [],
|
|
receiptBank_list: [],
|
|
collectionType_list: [],
|
|
subscriptionState_list: [
|
|
{
|
|
dictKey: 1,
|
|
dictValue: '未认款'
|
|
},
|
|
{
|
|
dictKey: 2,
|
|
dictValue: '部分认款'
|
|
},
|
|
{
|
|
dictKey: 3,
|
|
dictValue: '已认款'
|
|
}
|
|
],
|
|
listLoading: false,
|
|
listQuery: {
|
|
current: 1,
|
|
size: 10,
|
|
params: {
|
|
payerName: '',
|
|
collectionStartDate: '',
|
|
collectionEndDate: '',
|
|
collectionBank: '',
|
|
collectionTypeKey: '',
|
|
subscriptionState: '',
|
|
useOrgSid: '',
|
|
createBySid: '',
|
|
state: ''
|
|
},
|
|
total: 0
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
this.getList()
|
|
this.DataDictionary()
|
|
},
|
|
methods: {
|
|
DataDictionary() {
|
|
dataDictionary({ type: 'receiptBank' }).then((res) => {
|
|
if (res.code === '200') {
|
|
this.receiptBank_list = res.data
|
|
}
|
|
})
|
|
dataDictionary({ type: 'receiptType' }).then((res) => {
|
|
if (res.code === '200') {
|
|
this.collectionType_list = res.data
|
|
}
|
|
})
|
|
},
|
|
// 搜索条件效果
|
|
clicksearchShow() {
|
|
this.isSearchShow = !this.isSearchShow
|
|
if (this.isSearchShow) {
|
|
this.searchxianshitit = '隐藏查询条件'
|
|
} else {
|
|
this.searchxianshitit = '显示查询条件'
|
|
}
|
|
},
|
|
// ----------功能打开结束--------
|
|
// 序号
|
|
indexMethod(index) {
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
|
|
var pageindex = index + 1 + pagestart
|
|
return pageindex
|
|
},
|
|
// 查询列表信息
|
|
getList() {
|
|
this.listLoading = true
|
|
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid')
|
|
this.listQuery.params.state = 1
|
|
listPage(this.listQuery).then((response) => {
|
|
this.listLoading = false
|
|
if (response.code === '200') {
|
|
this.listQuery.total = response.data.total
|
|
this.list = response.data.records
|
|
}
|
|
})
|
|
},
|
|
// 查询按钮
|
|
handleFilter() {
|
|
this.getList()
|
|
},
|
|
handReset() {
|
|
this.listQuery = {
|
|
current: 1,
|
|
size: 10,
|
|
params: {
|
|
collectionStartDate: '',
|
|
collectionEndDate: '',
|
|
collectionBank: '',
|
|
collectionTypeKey: '',
|
|
subscriptionState: '',
|
|
useOrgSid: '',
|
|
createBySid: '',
|
|
state: ''
|
|
},
|
|
total: 0
|
|
}
|
|
this.getList()
|
|
},
|
|
handUpdate(row) {
|
|
this.viewState = 2
|
|
this.$refs['divInfo'].showInfo(row, this.viewState)
|
|
},
|
|
handLook(row) {
|
|
this.viewState = 3
|
|
this.$refs['divInfo'].showInfo(row, this.viewState)
|
|
},
|
|
resetState() {
|
|
this.viewState = 1
|
|
this.handReset()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.listtop {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border: 1px solid #dfe4ed;
|
|
height: 40px;
|
|
}
|
|
.tit {
|
|
margin-bottom: -10px;
|
|
}
|
|
.pagination {
|
|
margin-bottom: -10px;
|
|
}
|
|
.line {
|
|
display: inline-block;
|
|
margin: 0px 15px;
|
|
}
|
|
.searchlist{
|
|
margin: 10px 0;
|
|
}
|
|
</style>
|
|
|