|
@@ -0,0 +1,90 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent v-show="showSearch">
|
|
|
+ <el-form-item label="结算单号" prop="batchName">
|
|
|
+ <el-input v-model="queryParams.batchName" placeholder="请输入结算批次" @keyup.enter.native="handleQuery" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table :data="response.rows" border height="calc(100vh - 235px)">
|
|
|
+ <el-table-column type="index" label="序号" align="center" width="70" />
|
|
|
+ <el-table-column label="结算单号" align="center" prop="num" />
|
|
|
+ <el-table-column label="结算企业" align="center" width="200">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="omit" :title="scope.row.companyName">{{ scope.row.companyName }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="结算人数" align="center" prop="peoples" width="110" />
|
|
|
+ <el-table-column label="结算金额(元)" align="center" prop="money" width="125" />
|
|
|
+ <el-table-column label="发放业务费(元)" align="center" prop="realMoney" width="125" />
|
|
|
+ <el-table-column label="综合服务费(元)" align="center" prop="serviceMoney" width="125" />
|
|
|
+ <el-table-column label="发放状态" align="center" width="110">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.give == 1">待发放</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.give == 2">已发放</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="创建日期" align="center" prop="giveTime" width="160" />
|
|
|
+ <el-table-column label="操作" align="center" width="160">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)">详情</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-s-promotion" @click="op('ok', scope.row)" v-hasPermi="['work:statement:ok']" v-if="scope.row.give === 1">发放</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <template slot="empty">
|
|
|
+ <el-empty></el-empty>
|
|
|
+ </template>
|
|
|
+ </el-table>
|
|
|
+ <pagination v-if="response.total > 0" :total="response.total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import edit from './edit';
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ showSearch: true,
|
|
|
+ response: {},
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ batchName: null,
|
|
|
+ projectId: null,
|
|
|
+ orderByColumn: 's.id',
|
|
|
+ isAsc: 'desc'
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getList() {
|
|
|
+ this.ajax({ url: '/work/statement/pay', data: this.queryParams }).then((response) => {
|
|
|
+ this.response = response;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm('queryForm');
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ op(tag, row) {
|
|
|
+ const id = row.id;
|
|
|
+ if (tag == 'detail') {
|
|
|
+ this.iframe({ obj: edit, param: { id: id, detail: true }, title: '查看详情', width: '75%', height: '65%' });
|
|
|
+ }
|
|
|
+ if (tag == 'ok') {
|
|
|
+ this.iframe({ obj: edit, param: { form: row, detail: true }, title: '发放业务费', width: '75%', height: '65%' });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|