|
@@ -1,23 +1,34 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="发放年月" prop="ffyf">
|
|
|
- <el-date-picker clearable v-model="queryParams.ffyf" type="month" value-format="yyyyMM" placeholder="请输入发放月份"
|
|
|
- @keyup.enter.native="handleQuery">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="发放地区" prop="xzqh">
|
|
|
- <RegionCascaderSelect v-model="xzqh" style="width: 100%" valueProp="code" :isDataRoot="true">
|
|
|
- </RegionCascaderSelect>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <!--部门数据-->
|
|
|
+ <el-col :span="4" :xs="24">
|
|
|
+ <QueryThisLevel :initLevel="queryParams.isPresent" :active="0" :inactive="1" @changeLevel="changSwitch">
|
|
|
+ </QueryThisLevel>
|
|
|
+ <span class="sxzd">发放地区</span>
|
|
|
+ <dept-tree :userId="user.userData.dept.parentId" :isFive="true" @handleNodeClick="handleNodeClick">
|
|
|
+ </dept-tree>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="20" :xs="24">
|
|
|
+ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
|
|
+ label-width="68px">
|
|
|
+ <el-form-item label="发放年月" prop="ffyf">
|
|
|
+ <el-date-picker clearable v-model="queryParams.ffyf" type="month" value-format="yyyyMM"
|
|
|
+ placeholder="请输入发放月份" @keyup.enter.native="handleQuery">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="发放地区" prop="xzqh">-->
|
|
|
+ <!-- <RegionCascaderSelect v-model="xzqh" style="width: 100%" valueProp="code" :isDataRoot="true">-->
|
|
|
+ <!-- </RegionCascaderSelect>-->
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <!-- <el-col :span="1.5">
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
plain
|
|
@@ -27,36 +38,55 @@
|
|
|
v-hasPermi="['business:glbtqd:export']"
|
|
|
>导出</el-button>
|
|
|
</el-col> -->
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
- </el-row>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="glbtqdList">
|
|
|
- <el-table-column label="序号" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{
|
|
|
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
- }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="发放月份" align="center" prop="ffyf">
|
|
|
- <template slot-scope="scope">
|
|
|
- {{ scope.row.ffyf | ffyfFilter }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="发放地区" align="center" prop="ffdq" />
|
|
|
- <el-table-column label="总人数" align="center" prop="zrs" />
|
|
|
- <el-table-column label="总金额" align="center" prop="zje" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="handleMx(scope.row)"
|
|
|
- v-hasPermi="['business:glbtqd:edit']">明细</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList" />
|
|
|
- <el-dialog v-dialog-drag :title="title" :visible.sync="openQd" width="1000px" append-to-body>
|
|
|
- <mx :qdId="qdId" :ffyf="ffyf" />
|
|
|
+ <el-table v-loading="loading" :data="glbtqdList">
|
|
|
+ <el-table-column label="序号" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize +
|
|
|
+ scope.$index +
|
|
|
+ 1
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发放月份" align="center" prop="ffyf">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.ffyf | ffyfFilter }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发放地区" align="center" prop="ffdqName" />
|
|
|
+ <el-table-column label="总人数" align="center" prop="zrs" />
|
|
|
+ <el-table-column label="区县发放金额" align="center" prop="qzje">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.qzje ? scope.row.qzje : "0.00" }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="市发放金额" align="center" prop="czje">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.czje ? scope.row.czje : "0.00" }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="省发放金额" align="center" prop="szje">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.szje ? scope.row.szje : "0.00" }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="总金额" align="center" prop="zje" />
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleMx(scope.row)"
|
|
|
+ v-hasPermi="['business:glbtqd:edit']">明细</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-dialog v-dialog-drag :title="title" :visible.sync="openQd" width="1500px" append-to-body>
|
|
|
+ <mx :ffyf="ffyf" :ffdq="ffdq" />
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="cancelQd">确 定</el-button>
|
|
@@ -75,12 +105,20 @@ import {
|
|
|
} from "@/api/business/btgl/glbtqd";
|
|
|
import { chineseOne, idCard, Regular } from "@/utils/regular";
|
|
|
import mx from "../glbtmx/index";
|
|
|
+import { mapGetters, mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: "Glbtqd",
|
|
|
components: {
|
|
|
mx: mx,
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapState(["user"]),
|
|
|
+ ...mapGetters(["level"]),
|
|
|
+ currentLevels() {
|
|
|
+ return this.levels.filter((item, index) => index >= this.level);
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
@@ -88,7 +126,7 @@ export default {
|
|
|
submitFormLoading: false,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
|
- xzqh: [],
|
|
|
+ // xzqh: [],
|
|
|
// 非单个禁用
|
|
|
single: true,
|
|
|
// 非多个禁用
|
|
@@ -100,6 +138,7 @@ export default {
|
|
|
total: 0,
|
|
|
qdId: null,
|
|
|
ffyf: null,
|
|
|
+ ffdq: null,
|
|
|
// 补贴管理高龄补贴清单信息表格数据
|
|
|
glbtqdList: [],
|
|
|
// 弹出层标题
|
|
@@ -110,6 +149,9 @@ export default {
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
+ isPresent: "1",
|
|
|
+ ffyf: this.$moment().subtract(1, "month").format("yyyyMM"),
|
|
|
+ ffdq: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -139,9 +181,23 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleNodeClick(data) {
|
|
|
+ this.queryParams.ffdq = data.code;
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ //查询本级
|
|
|
+ changSwitch(value) {
|
|
|
+ this.queryParams.isPresent = value;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
/** 查询补贴管理高龄补贴清单信息列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
+ if (!this.queryParams.ffyf) {
|
|
|
+ this.queryParams.ffyf = this.$moment()
|
|
|
+ .subtract(1, "month")
|
|
|
+ .format("yyyyMM");
|
|
|
+ }
|
|
|
listGlbtqd(this.queryParams).then((response) => {
|
|
|
this.glbtqdList = response.rows;
|
|
|
this.total = response.total;
|
|
@@ -169,17 +225,17 @@ export default {
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
|
- if (this.xzqh) {
|
|
|
- this.queryParams.ffdq = this.xzqh[this.xzqh.length - 1];
|
|
|
- } else {
|
|
|
- this.queryParams.ffdq = null;
|
|
|
- }
|
|
|
+ // if (this.xzqh) {
|
|
|
+ // this.queryParams.ffdq = this.xzqh[this.xzqh.length - 1];
|
|
|
+ // } else {
|
|
|
+ // this.queryParams.ffdq = null;
|
|
|
+ // }
|
|
|
this.getList();
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
this.resetForm("queryForm");
|
|
|
- this.xzqh = [];
|
|
|
+ // this.xzqh = [];
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
@@ -191,6 +247,7 @@ export default {
|
|
|
handleMx(row) {
|
|
|
this.qdId = row.id;
|
|
|
this.ffyf = row.ffyf;
|
|
|
+ this.ffdq = row.ffdq;
|
|
|
this.openQd = true;
|
|
|
},
|
|
|
cancelQd() {
|
|
@@ -222,3 +279,18 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
+<style ref="stylesheet/scss" lang="scss" scoped>
|
|
|
+@import "@/assets/styles/common/common.scss";
|
|
|
+
|
|
|
+.switch {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.sxzd {
|
|
|
+ font-weight: 600;
|
|
|
+ margin: 10px 15px;
|
|
|
+}
|
|
|
+</style>
|