|
@@ -0,0 +1,130 @@
|
|
|
+<template>
|
|
|
+ <div class="hui-flex hui-content">
|
|
|
+ <div class="hui-flex">
|
|
|
+ <div class="hui-content-title">
|
|
|
+ <div class="hui-title-item active">合同账单</div>
|
|
|
+ </div>
|
|
|
+ <div class="hui-flex-box hui-flex hui-table">
|
|
|
+ <list-filter type="billContract" @filter="filterInit"></list-filter>
|
|
|
+ <div class="hui-flex-box">
|
|
|
+ <el-table :data="tableData" row-key="id" border height="100%">
|
|
|
+ <el-table-column label="序号" width="50">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div style="text-align: center;">{{scope.$index + 1}}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="合同编码" prop="contractCode"></el-table-column>
|
|
|
+ <el-table-column label="账单期数" prop="code" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{'第' + scope.row.phase + '期'}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="账单日期" prop="code" width="200">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.startDate}}至{{scope.row.endDate}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="金额">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.amount + '元'}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="收款方" prop="organizationName"></el-table-column>
|
|
|
+ <el-table-column label="付款方">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span> {{scope.row.payMerchantName || scope.row.payClientName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态"></el-table-column>
|
|
|
+ <el-table-column label="操作" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="hui-table-operation">
|
|
|
+ <span class="table-operation" @click="detailItem(scope.row)">
|
|
|
+ 详情
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <template slot="empty">
|
|
|
+ <empty description="暂无数据"></empty>
|
|
|
+ </template>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <div class="hui-content-pagination">
|
|
|
+ <el-pagination :page-size="pageSize" :pager-count="9" layout="prev, pager, next" :total="totalCount"
|
|
|
+ @current-change="currentChange">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-drawer title="账单详情" :visible.sync="drawer" :size="400" :append-to-body="true">
|
|
|
+ <detail v-if="drawer" :detailId="detailId"></detail>
|
|
|
+ </el-drawer>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import detail from '@/components/work/bill/contract/detail'
|
|
|
+ import listFilter from '@/components/common/listFilter'
|
|
|
+
|
|
|
+ import {
|
|
|
+ getPaymentListByPage
|
|
|
+ } from '@/httpApi/contract'
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ tableData: [],
|
|
|
+ currPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ totalCount: 0,
|
|
|
+ detailId: '',
|
|
|
+ filterOption: {},
|
|
|
+ drawer: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init() {
|
|
|
+ let postData = {
|
|
|
+ currPage: this.currPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ organizationId: this.$store.getters.organization.id,
|
|
|
+ projectId: this.$store.getters.project.id
|
|
|
+ }
|
|
|
+ postData = Object.assign(postData, this.filterOption);
|
|
|
+ getPaymentListByPage(postData).then(res => {
|
|
|
+ if (res.state) {
|
|
|
+ this.tableData = res.data.dataList;
|
|
|
+ this.totalCount = res.data.totalCount;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ filterInit(option) {
|
|
|
+ this.filterOption = option;
|
|
|
+ this.currPage = 1;
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ currentChange(currPage) {
|
|
|
+ this.currPage = currPage;
|
|
|
+ this.init();
|
|
|
+ },
|
|
|
+ detailItem(item) {
|
|
|
+ this.detailId = item.id;
|
|
|
+ this.drawer = true;
|
|
|
+ },
|
|
|
+ callback(type) {
|
|
|
+ if (type === 'init') this.init();
|
|
|
+ this.type = 'list';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ detail,
|
|
|
+ listFilter
|
|
|
+ },
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+</style>
|