|
@@ -0,0 +1,478 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="4" :xs="24">
|
|
|
+ <QueryThisLevel :initLevel="queryParams.isBj" :active="1" :inactive="0" @changeLevel="changSwitch">
|
|
|
+ </QueryThisLevel>
|
|
|
+ <span class="sxzd">行政区划</span>
|
|
|
+ <dept-tree :userId="user.userData.dept.parentId" @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="140px">
|
|
|
+
|
|
|
+ <el-form-item label="统一社会信用代码" prop="tyshxydm">
|
|
|
+ <el-input v-model="queryParams.tyshxydm" placeholder="请输入统一社会信用代码" maxlength="18" clearable
|
|
|
+ @keyup.enter.native="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="机构名称[原值]" prop="jgmc">
|
|
|
+ <el-input v-model="queryParams.jgmc" placeholder="请输入机构名称" clearable @keyup.enter.native="handleQuery" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="是否财务确认" prop="iscwqr">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.iscwqr"
|
|
|
+ placeholder="请选择状态"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ035"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="台卡类型" prop="cwbj">
|
|
|
+ <el-select v-model="queryParams.cwbj" placeholder="请选择台卡类型" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="item in optionsTklx"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </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-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
|
|
+ v-hasPermi="['business:jcxx:export']">导出</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-table v-loading="loading" :data="jcxxList">
|
|
|
+ <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="tyshxydm" width="200" />
|
|
|
+ <el-table-column label="统一社会信用代码[财务]" align="center" prop="cwtyshxydm" width="200" />
|
|
|
+ <el-table-column label="机构名称[原值]" align="center" prop="jgmc" width="300" />
|
|
|
+ <el-table-column label="机构名称[财务]" align="center" prop="cwjgmc" width="300" />
|
|
|
+ <el-table-column label="运营状态" align="center" prop="sczt" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.CH026" :value="scope.row.sczt" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="台卡类型[财务]" align="center" prop="cwbj" />
|
|
|
+ <el-table-column label="是否确认" align="center" prop="iscwqr" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.CZ035" :value="scope.row.iscwqr" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">财务确认</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 custom-class="custom" v-dialog-drag :title="title" :visible.sync="openXG" width="1500px" append-to-body>
|
|
|
+ <div>
|
|
|
+ <el-scrollbar wrapClass="scrollbar-wrap">
|
|
|
+ <h3>机构基本信息</h3>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td>统一社会信用代码</td>
|
|
|
+ <td>{{ form.tyshxydm }}</td>
|
|
|
+ <td>单位名称</td>
|
|
|
+ <td>{{ form.jgmc }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>单位通信地址</td>
|
|
|
+ <td colspan="5">{{ form.szxzqhName }} {{ form.txdz }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <h3>法人信息</h3>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td>法人或负责人姓名</td>
|
|
|
+ <td>{{ form.frxm }}</td>
|
|
|
+ <td>法人或负责人证件号码</td>
|
|
|
+ <td>{{ form.frzjhm }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>法人或负责人联系方式</td>
|
|
|
+ <td>{{ form.frlxfs }}</td>
|
|
|
+ <td>法人登记机关</td>
|
|
|
+ <td>{{ form.frdjjg }}</td>
|
|
|
+ <td>法人类型</td>
|
|
|
+ <td>{{ translateDict('CH007', form.frlx) }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <h3>扩展信息</h3>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td>单位性质</td>
|
|
|
+ <td>{{ translateDict('C0038', form.dwxz) }}</td>
|
|
|
+ <td>所处位置</td>
|
|
|
+ <td>{{ translateDict('CH012', form.scwz) }}</td>
|
|
|
+ <td>兴办主体</td>
|
|
|
+ <td>{{ translateDict('CH010', form.xbzt) }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>场所性质</td>
|
|
|
+ <td>{{ translateDict('CH009', form.csxz) }}</td>
|
|
|
+ <td>是否光荣院</td>
|
|
|
+ <td>{{ translateDict('CZ035', form.isGry) }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+ <h3>财务信息修改</h3>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form ref="form" :model="form" label-width="200px" >
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="财务-统一社会信用代码" prop="cwtyshxydm" class="formWidth">
|
|
|
+ <el-input v-model="form.cwtyshxydm" placeholder="请输入统一社会信用代码" maxlength="18"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="财务-机构名称" prop="cwjgmc" class="formWidth">
|
|
|
+ <el-input v-model="form.cwjgmc" style="width: 300px" placeholder="请输入单位名称"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="财务-机构类型" prop="cwbj" class="formWidth">
|
|
|
+ <el-select v-model="form.cwbj" placeholder="请选择机构类型">
|
|
|
+ <el-option label="社会福利院" value="社会福利院"/>
|
|
|
+ <el-option label="农村特困人员救助供养机构" value="农村特困人员救助供养机构"/>
|
|
|
+ <el-option label="养老公寓等其他养老机构" value="养老公寓等其他养老机构"/>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="是否认证" prop="iscwqr">
|
|
|
+ <el-select v-model="form.iscwqr" placeholder="请选择是否认证" clearable>
|
|
|
+ <el-option v-for="dict in dict.type.CZ035" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm" :loading="submitFormLoading">提 交</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {getJcxx, listJcxx, updateJgKyzt, updateJcxxCw, getJcxxCw, listJcxxCw} from '@/api/business/fwjggl/jcxx'
|
|
|
+import { mapState } from 'vuex'
|
|
|
+import { decryptData_ECB, decryptRowData_ECB } from "@/api/tool/sm4";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "cwxxTbXg",
|
|
|
+ dicts: [
|
|
|
+ 'C0038', 'C0015', 'CH026',
|
|
|
+ 'CH007', 'CH009', 'CH010', 'CH012', 'CH013', 'CH014', 'C0015', 'CH052', 'CH059', 'CH060',
|
|
|
+ 'CZ035', 'CZ005', 'CZ026', 'CZ004',
|
|
|
+ 'XZ036', 'XZ065', 'XZ070'],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ optionsTklx: [{
|
|
|
+ value: '社会福利院',
|
|
|
+ label: '社会福利院'
|
|
|
+ }, {
|
|
|
+ value: '农村特困人员救助供养机构',
|
|
|
+ label: '农村特困人员救助供养机构'
|
|
|
+ }, {
|
|
|
+ value: '养老公寓等其他养老机构',
|
|
|
+ label: '养老公寓等其他养老机构'
|
|
|
+ }],
|
|
|
+ jgId: null,
|
|
|
+ openXG: false,
|
|
|
+ isXQ: false,
|
|
|
+ fixation: {},
|
|
|
+ openXQ: false,
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ submitFormLoading: false,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 机构备案表格数据
|
|
|
+ jcxxList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ isBa: null,
|
|
|
+ sczt: '01',
|
|
|
+ tyshxydm: null,
|
|
|
+ iscwqr: null,
|
|
|
+ cwbj: null,
|
|
|
+ jgmc: null,
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ // 是否仅查询本级
|
|
|
+ isBj: '0',
|
|
|
+ },
|
|
|
+ searchXydm: null,
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ cwForm: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ czyy: [
|
|
|
+ { required: true, message: "操作原因不能为空", trigger: "change" },
|
|
|
+ ],
|
|
|
+ czsj: [
|
|
|
+ { required: true, message: "操作时间不能为空", trigger: "change" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ openCz: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ changeOpen() {
|
|
|
+ this.openXG = false;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ changDate(row) {
|
|
|
+ this.reset();
|
|
|
+ this.form.id = row.id;
|
|
|
+ this.form.sczt = row.command;
|
|
|
+ this.openCz = true;
|
|
|
+ },
|
|
|
+ // switch单击事件
|
|
|
+ changSwitch(value) {
|
|
|
+ this.queryParams.isBj = value
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
+ // 节点单击事件
|
|
|
+ handleNodeClick(data) {
|
|
|
+ this.queryParams.xzqhId = data.code
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
+ translateDict(type, value, is) {
|
|
|
+ if (is && value && value.length > 0) {
|
|
|
+ let list = '';
|
|
|
+ this.dict.type[type].forEach(item => {
|
|
|
+ // if (value.indexOf(item.value) !== -1) { // 这里有bug, 字典值为0,01,02,03 但值是02,03 这样就会出 这样0的字典值也会翻译出来
|
|
|
+ // if (item.value == value) {
|
|
|
+ // list = list + item.label + ' '
|
|
|
+ // }
|
|
|
+ const itemArr = value.split(',');
|
|
|
+ if (itemArr.includes(item.value))
|
|
|
+ {
|
|
|
+ list = list + item.label + ' '
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return list
|
|
|
+ }
|
|
|
+ return this.selectDictLabel(this.dict.type[type], value)
|
|
|
+ },
|
|
|
+ /** 查询机构列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ this.queryParams.params = {};
|
|
|
+ listJcxxCw(this.queryParams).then(response => {
|
|
|
+ this.jcxxList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.openXG = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.submitFormLoading = false;
|
|
|
+ this.searchXydm = null
|
|
|
+ // this.form = {
|
|
|
+ // sczt: null,
|
|
|
+ // czyy: null,
|
|
|
+ // czsj: null
|
|
|
+ // };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map(item => item.id)
|
|
|
+ this.single = selection.length !== 1
|
|
|
+ this.multiple = !selection.length
|
|
|
+ },
|
|
|
+ handleXQ(row) {
|
|
|
+ this.handleUpdate(row, true)
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(row, is) {
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids
|
|
|
+ getJcxxCw(id).then(response => {
|
|
|
+ this.form = decryptData_ECB(response.data, ["frxm", "frzjhm", "frlxfs", "txdz"], [1, 2, 3, 4]);
|
|
|
+ Object.keys(this.form).forEach(key => {
|
|
|
+ this.form[key] === null ? this.form[key] = '' : false
|
|
|
+ })
|
|
|
+ this.copyForm = this.deepCopy(response.data)
|
|
|
+ this.openXG = true;
|
|
|
+ this.title = '修改财务信息填报数据项'
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs['form'].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.openXG = true
|
|
|
+ this.cwForm.id = this.form.id;
|
|
|
+ this.cwForm.cwjgmc = this.form.cwjgmc;
|
|
|
+ this.cwForm.cwtyshxydm = this.form.cwtyshxydm;
|
|
|
+ this.cwForm.cwbj = this.form.cwbj;
|
|
|
+ this.cwForm.iscwqr = this.form.iscwqr;
|
|
|
+ updateJcxxCw(this.cwForm)
|
|
|
+ .then((response) => {
|
|
|
+ this.$modal.msgSuccess('修改成功')
|
|
|
+ this.openCz = false
|
|
|
+ this.jcxxList = this.dataReplacement(this.jcxxList, this.form.id, this.cwForm);
|
|
|
+ })
|
|
|
+ .finally(() => (this.openXG = false))
|
|
|
+ this.openXG = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ particulars(row) {
|
|
|
+ this.reset()
|
|
|
+ getJcxx(row.id).then(response => {
|
|
|
+ this.open = true
|
|
|
+ this.form = response.data
|
|
|
+ this.form.szlx = this.form.szlrlx ? this.form.szlrlx.split(',') : []
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download(
|
|
|
+ "business/jcxx/export",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `机构信息_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
+ },
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style ref="stylesheet/scss" lang="scss" scoped>
|
|
|
+table td {
|
|
|
+ width: 10%;
|
|
|
+ height: 2.5rem;
|
|
|
+ padding: 0.5%;
|
|
|
+ font-weight: 500;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+}
|
|
|
+
|
|
|
+table {
|
|
|
+ width: 100%;
|
|
|
+ border-collapse: collapse;
|
|
|
+ border: 1px solid #ddd;
|
|
|
+}
|
|
|
+
|
|
|
+table td:nth-child(odd) {
|
|
|
+ text-align: right;
|
|
|
+ background: #f5f5f5;
|
|
|
+}
|
|
|
+
|
|
|
+.formFlex {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ flex-wrap: wrap;
|
|
|
+}
|
|
|
+
|
|
|
+.formWidth {
|
|
|
+ width: 33.33%;
|
|
|
+ /*display: flex !important;*/
|
|
|
+}
|
|
|
+
|
|
|
+.formWidth2 {
|
|
|
+ width: 50%;
|
|
|
+ /*display: flex !important;*/
|
|
|
+}
|
|
|
+
|
|
|
+.formWidth3 {
|
|
|
+ width: 100%;
|
|
|
+ /*display: flex !important;*/
|
|
|
+}
|
|
|
+
|
|
|
+.el-select {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.el-date-editor.el-input {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+h3 {
|
|
|
+ /*margin: 0;*/
|
|
|
+ width: 100%;
|
|
|
+ padding: 0.5rem !important;
|
|
|
+ background-image: -o-linear-gradient(290deg, #ddd 10%, #fff 90%);
|
|
|
+ background-image: linear-gradient(160deg, #ddd 10%, #fff 90%);
|
|
|
+ color: #000;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 1.1rem;
|
|
|
+ margin-bottom: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.tips {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0.5%;
|
|
|
+ color: #f5222d;
|
|
|
+ display: block;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+
|
|
|
+.el-textarea {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
+.sxzd {
|
|
|
+ font-weight: 600;
|
|
|
+ margin: 10px 15px;
|
|
|
+}
|
|
|
+</style>
|