|
@@ -0,0 +1,770 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="4" :xs="24">
|
|
|
+ <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="100px">
|
|
|
+ <el-form-item label="员工姓名" prop="xm">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.xm"
|
|
|
+ placeholder="请输入姓名"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证件号码" prop="sfzhm">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.sfzhm"
|
|
|
+ placeholder="请输入公民身份证件号码"
|
|
|
+ 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="zzzt" v-show="!isJg">
|
|
|
+ <el-select v-model="queryParams.zzzt" placeholder="请选择在职状态">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ001"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="岗位类型" prop="gwlx" v-show="!isJg">
|
|
|
+ <el-select v-model="queryParams.gwlx" placeholder="请选择岗位类型">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CH062"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="职业类型" prop="zylx">
|
|
|
+ <el-select v-model="queryParams.zylx" placeholder="请选择职业类型" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CH061"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </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-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+
|
|
|
+ <el-col :span="10" style="color: rgb(247, 132, 119);">
|
|
|
+ 从业人员查询数据范围为:正常营业{{isJg?'养老机构':'社区养老服务机构和设施'}}的在职员工
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ v-hasPermi="['business:ygJbxx:export']"
|
|
|
+ @click="handleExport"
|
|
|
+ >导出
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-table v-loading="loading" :data="ygJbxxList">
|
|
|
+ <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="xm"/>
|
|
|
+ <el-table-column label="证件号码" align="center" prop="sfzhm" width="180"/>
|
|
|
+ <el-table-column label="性别" align="center" prop="xb">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.C0007" :value="scope.row.xb"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="电话" align="center" prop="lxdh"/>
|
|
|
+ <el-table-column label="学历" align="center" prop="whcd">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.C0008" :value="scope.row.whcd"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="岗位类型" align="center" prop="gwlx">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.CH062" :value="scope.row.gwlx"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="职业类型" align="center" prop="zylx">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.CH061" :value="scope.row.zylx"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="在职状态" align="center" prop="zzzt">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.CZ001" :value="scope.row.zzzt"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="入职单位所在区划" align="center" prop="szxzqhName"/>
|
|
|
+ <el-table-column label="入职单位名称" align="center" prop="jgmc"/>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="is_Component">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleDetails(scope.row)"
|
|
|
+ >详情
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="!is_Component">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <slot name='one' :value="scope.row">
|
|
|
+
|
|
|
+ </slot>
|
|
|
+ </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="open" width="1400px" append-to-body v-if="open">
|
|
|
+ <el-form ref="form" :inline="true" :model="form" :rules="rules" label-width="170px">
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="员工姓名" prop="xm" class="formWidth">
|
|
|
+ <el-input v-model="form.xm" placeholder="请输入姓名"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证件类型" prop="sfzlx" class="formWidth">
|
|
|
+ <el-select v-model="form.sfzlx" placeholder="请选择身份证件类型" @change="changeZjlx(form.sfzlx)">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.C0015"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="证件号码" prop="sfzhm" class="formWidth">
|
|
|
+ <el-input v-model="form.sfzhm" placeholder="请输入公民身份证件号码" @input="changeSfzhm(form.sfzhm)"/>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="性别" prop="xb" class="formWidth">
|
|
|
+ <el-select v-model="form.xb" placeholder="请选择性别">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.C0007"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="出生日期" prop="csrq" class="formWidth">
|
|
|
+ <el-date-picker clearable
|
|
|
+ v-model="form.csrq"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyyMMdd"
|
|
|
+ placeholder="请选择出生日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="学历" prop="whcd" class="formWidth">
|
|
|
+ <el-select v-model="form.whcd" placeholder="请选择文化程度">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.C0008"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="部门" prop="shbn" class="formWidth">
|
|
|
+ <BizDict :value="form.shbn" :parmar="parmarBmxx" @changeData="changeBmxx"
|
|
|
+ :para1="this.user.userData.jgId"></BizDict>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="职务" prop="zw" class="formWidth">
|
|
|
+ <el-input v-model="form.zw" placeholder="请输入职务"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="手机号码" prop="lxdh" class="formWidth">
|
|
|
+ <el-input v-model="form.lxdh" placeholder="请输入手机号码"/>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="岗位类型" prop="gwlx" class="formWidth">
|
|
|
+ <el-select v-model="form.gwlx" placeholder="请选择岗位类型">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CH062"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="职业类型" prop="zylx" class="formWidth">
|
|
|
+ <el-select v-model="form.zylx" placeholder="请选择职业类型" @change="changeZylx(form.zylx)">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CH061"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="职业类型其他" prop="zylxQt" class="formWidth">
|
|
|
+ <el-input v-model="form.zylxQt" :disabled="isOther" placeholder="请输入其它职业类型"/>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="是否有护理人员等级证书" class="formWidth">
|
|
|
+ <el-radio-group v-model="form.isHlyyzs" :disabled="isYH" @change="changeIsHlyyzs(form.isHlyyzs)">
|
|
|
+ <el-radio
|
|
|
+ v-for="dict in dict.type.CZ035"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.value"
|
|
|
+ >{{dict.label}}
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="护理员等级" prop="hlydj" class="formWidth">
|
|
|
+ <el-select v-model="form.hlydj" placeholder="请选择护理员等级" :disabled="isYH||isYHZ">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CH020"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="是否缴纳社保" prop="isJnsb" class="formWidth">
|
|
|
+ <el-select v-model="form.isJnsb" placeholder="请选择是否缴纳社保">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ035"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div class="formFlex">
|
|
|
+ <el-form-item label="在职状态" prop="zzzt" class="formWidth">
|
|
|
+ <el-select v-model="form.zzzt" placeholder="请选择在职状态" @change="changeZzzt(form.zzzt)">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ001"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="离职/退休日期" prop="lzsj" class="formWidth">
|
|
|
+ <el-date-picker
|
|
|
+ :disabled="isZZ"
|
|
|
+ v-model="form.lzsj"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyyMMdd"
|
|
|
+ placeholder="请选择离职/退休日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <!--详细-->
|
|
|
+ <el-dialog v-dialog-drag title="从业人员详细信息" :visible.sync="openXQ" width="1200px" :append-to-body="true"
|
|
|
+ custom-class="custom">
|
|
|
+ <el-tabs v-model="activeName" type="card">
|
|
|
+ <el-tab-pane label="基本信息" name="first">
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td>从业人员姓名:</td>
|
|
|
+ <td>{{dataDetails.xm}}</td>
|
|
|
+ <td>性别:</td>
|
|
|
+ <td>{{translateDict('C0007',dataDetails.xb)}}</td>
|
|
|
+ <td>出生日期:</td>
|
|
|
+ <td>{{dataDetails.csrq?special(dataDetails.csrq):''}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>手机号码:</td>
|
|
|
+ <td>{{dataDetails.lxdh}}</td>
|
|
|
+ <td>证件类型:</td>
|
|
|
+ <td>{{translateDict('C0015',dataDetails.sfzlx)}}</td>
|
|
|
+ <td>证件号码:</td>
|
|
|
+ <td>{{dataDetails.sfzhm}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>岗位类型:</td>
|
|
|
+ <td>{{translateDict('CH062',dataDetails.gwlx)}}</td>
|
|
|
+ <td>职务:</td>
|
|
|
+ <td>{{dataDetails.zw}}</td>
|
|
|
+ <td>学历:</td>
|
|
|
+ <td>{{translateDict('C0008',dataDetails.whcd)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>是否有护理员等级证书:</td>
|
|
|
+ <td>{{translateDict('CZ035',dataDetails.isHlyyzs)}}</td>
|
|
|
+ <td>护理员等级:</td>
|
|
|
+ <td>{{translateDict('CH020',dataDetails.hlydj)}}</td>
|
|
|
+ <td>职业类型:</td>
|
|
|
+ <td>{{translateDict('CH061',dataDetails.zylx)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>职业类型其他:</td>
|
|
|
+ <td>{{dataDetails.zylxQt}}</td>
|
|
|
+ <td>所属部门:</td>
|
|
|
+ <td>{{dataDetails.zzmc}}</td>
|
|
|
+ <td>在职状态:</td>
|
|
|
+ <td>{{translateDict('CZ001',dataDetails.zzzt)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>离职/退休日期:</td>
|
|
|
+ <td>{{dataDetails.lzsj?special(dataDetails.lzsj):''}}</td>
|
|
|
+ <td>是否缴纳社保:</td>
|
|
|
+ <td>{{translateDict('CZ035',dataDetails.isJnsb)}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="补贴信息" name="second">
|
|
|
+ <ygjbxxtable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+
|
|
|
+ </ygjbxxtable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="处罚信息" name="three">
|
|
|
+ <ygcfxxtable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+
|
|
|
+ </ygcfxxtable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="奖励信息" name="four">
|
|
|
+ <ygjlxxtable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+
|
|
|
+ </ygjlxxtable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="资质信息" name="five">
|
|
|
+ <ygzzxxtable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+ </ygzzxxtable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="从业经历" name="six">
|
|
|
+ <ygcyjltable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+
|
|
|
+ </ygcyjltable>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="培训经历" name="seven">
|
|
|
+ <ygpxjltable :oldId="dataDetails.id" :isComponent="false">
|
|
|
+
|
|
|
+ </ygpxjltable>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import { listYgJbxx, getYgJbxx } from '@/api/business/fwjggl/yggl/ygJbxx'
|
|
|
+ import { Regular, chineseOne, idCard } from '@/utils/regular'
|
|
|
+ import { Constant } from '@/utils/constant'
|
|
|
+ import { mapState } from 'vuex'
|
|
|
+ import ygjbxxtable from './tableBtxx'
|
|
|
+ import ygzzxxtable from './tableZzxx'
|
|
|
+ import ygcfxxtable from './tableCfxx'
|
|
|
+ import ygjlxxtable from './tableJlxx'
|
|
|
+ import ygcyjltable from './tableCyjl'
|
|
|
+ import ygpxjltable from './tablePxjl'
|
|
|
+
|
|
|
+ export default {
|
|
|
+ name: 'YgJbxx',
|
|
|
+ dicts: ['C0008', 'CZ035', 'CH062', 'C0015', 'C0007', 'CZ001', 'CH061', 'CH020'],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 楼宇
|
|
|
+ parmarBmxx: {
|
|
|
+ dictType: 'bmxx'
|
|
|
+ },
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ items: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 基本信息表格数据
|
|
|
+ ygJbxxList: [],
|
|
|
+ dataDetails: {},
|
|
|
+ // 弹出层标题
|
|
|
+ title: '',
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ openXQ: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ xm: null,
|
|
|
+ sjbmid: null,
|
|
|
+ sfzlx: null,
|
|
|
+ sfzhm: null,
|
|
|
+ xb: null,
|
|
|
+ lxdh: null,
|
|
|
+ shbn: null,
|
|
|
+ zzmc: null,
|
|
|
+ zzzt: null,
|
|
|
+ zylx: null,
|
|
|
+ gwlx: null,
|
|
|
+ isHlyyzs: null,
|
|
|
+ hlydj: null,
|
|
|
+ gqHlydj: null,
|
|
|
+ zw: null,
|
|
|
+ jgId: null
|
|
|
+ },
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ xm: [
|
|
|
+ { required: true, message: '姓名不能为空', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ sfzlx: [
|
|
|
+ { required: true, message: '证件类型不能为空', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ sfzhm: [
|
|
|
+ { required: true, message: '证件号码不能为空', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ csrq: [
|
|
|
+ { required: true, message: '出生日期不能为空', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ xb: [
|
|
|
+ { required: true, message: '性别不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ lxdh: [
|
|
|
+ { required: true, message: '手机号码不能为空', trigger: 'blur' },
|
|
|
+ { pattern: Regular.Mobile, message: '手机号码格式不对', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ whcd: [
|
|
|
+ { required: true, message: '文化程度不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ shbn: [
|
|
|
+ { required: true, message: '所属部门不能为空', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ zw: [
|
|
|
+ { required: true, message: '职务不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ zzzt: [
|
|
|
+ { required: true, message: '在职状态不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ zylx: [
|
|
|
+ { required: true, message: '职业类型不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ zzmc: [
|
|
|
+ { required: true, message: '职业类型不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ zylxQt: [
|
|
|
+ // {required: true, message: "职业类型其他不能为空", trigger: "change"}
|
|
|
+ ],
|
|
|
+ hlydj: [
|
|
|
+ // {required: true, message: "护理员等级不能为空", trigger: "change"}
|
|
|
+ ],
|
|
|
+ gwlx: [
|
|
|
+ { required: true, message: '所属部门不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ isJnsb: [
|
|
|
+ { required: true, message: '是否缴纳社保不能为空', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ lzsj: [
|
|
|
+ // {required: true, message: "离职/退休日期不能为空", trigger: "change"}
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ isOther: true,
|
|
|
+ isYH: true,
|
|
|
+ isYHZ: true,
|
|
|
+ isZZ: true,
|
|
|
+ activeName: 'first'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ if(this.isJg)
|
|
|
+ {
|
|
|
+ this.queryParams.createUserType='01'
|
|
|
+ }else
|
|
|
+ {
|
|
|
+ this.queryParams.createUserType='02'
|
|
|
+ }
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ ygjbxxtable: ygjbxxtable,
|
|
|
+ ygzzxxtable: ygzzxxtable,
|
|
|
+ ygcfxxtable: ygcfxxtable,
|
|
|
+ ygjlxxtable: ygjlxxtable,
|
|
|
+ ygcyjltable: ygcyjltable,
|
|
|
+ ygpxjltable: ygpxjltable
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ isComponent: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
+ //是否是机构,false是社区养老机构,true是养老机构
|
|
|
+ isJg:{
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user']),
|
|
|
+ is_Component() {
|
|
|
+ return this.isComponent
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 节点单击事件
|
|
|
+ handleNodeClick(data) {
|
|
|
+ this.queryParams.xzqhId = data.code
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs['form'].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ this.submitFormLoading = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeSfzhm(value) {
|
|
|
+ if (this.form.sfzlx == Constant.IDTYPE) {
|
|
|
+ if (value.length == 18) {
|
|
|
+ this.form.csrq = value.substr(6, 8)
|
|
|
+ this.form.xb = Number(value.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ checkJbxxForm() {
|
|
|
+ if (this.form.sfzlx == Constant.IDTYPE) {
|
|
|
+ if (this.form.csrq !== this.form.sfzhm.substr(6, 8)) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ const xb = Number(this.form.sfzhm.substr(16, 1)) % 2 == 0 ? Constant.woman : Constant.man
|
|
|
+ if (this.form.xb !== xb) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+ },
|
|
|
+ translateDict(type, value) {
|
|
|
+ return this.selectDictLabel(this.dict.type[type], value)
|
|
|
+ },
|
|
|
+ changeZzzt(value) {
|
|
|
+ if (value == Constant.IS) {
|
|
|
+ this.isZZ = true
|
|
|
+ this.form.lzsj = null
|
|
|
+ this.rules.lzsj = []
|
|
|
+ } else {
|
|
|
+ this.isZZ = false
|
|
|
+ this.rules.lzsj = [
|
|
|
+ { required: true, message: '离职/退休日期不能为空', trigger: 'change' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeZjlx(value) {
|
|
|
+ if (value == Constant.IDTYPE) {
|
|
|
+ this.rules.sfzhm = [
|
|
|
+ { required: true, message: '证件号码不能为空', trigger: 'blur' },
|
|
|
+ { validator: idCard, trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.rules.sfzhm = [
|
|
|
+ { required: true, message: '证件号码不能为空', trigger: 'blur' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeZylx(value) {
|
|
|
+ if (value == Constant.OLDTYPEOther) {
|
|
|
+ this.isOther = false
|
|
|
+ this.rules.zylxQt = [
|
|
|
+ { required: true, message: '职业类型其他不能为空', trigger: 'change' }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.isOther = true
|
|
|
+ this.form.zylxQt = null
|
|
|
+ this.rules.zylxQt = []
|
|
|
+ }
|
|
|
+ if (value == Constant.IDTYPE) {
|
|
|
+ this.form.isHlyyzs = '1'
|
|
|
+ this.isYH = false
|
|
|
+ this.isYHZ = false
|
|
|
+ this.rules.hlydj = [
|
|
|
+ { required: true, message: '护理员等级不能为空', trigger: 'change' }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.isYH = true
|
|
|
+ this.form.isHlyyzs = '0'
|
|
|
+ this.form.hlydj = null
|
|
|
+ this.rules.hlydj = []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeIsHlyyzs(value) {
|
|
|
+ if (value == '1') {
|
|
|
+ this.isYHZ = false
|
|
|
+ this.rules.hlydj = [
|
|
|
+ { required: true, message: '护理员等级不能为空', trigger: 'change' }
|
|
|
+ ]
|
|
|
+ } else {
|
|
|
+ this.isYHZ = true
|
|
|
+ this.form.hlydj = null
|
|
|
+ this.rules.hlydj = []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 这是部门信息
|
|
|
+ changeBmxx(bmData, list) {
|
|
|
+ this.form.shbn = bmData
|
|
|
+ if (list) {
|
|
|
+ this.form.zzmc = list.label
|
|
|
+ }
|
|
|
+ // this.queryParams.shbn = bmData;
|
|
|
+ },
|
|
|
+ /** 查询基本信息列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true
|
|
|
+ listYgJbxx(this.queryParams).then(response => {
|
|
|
+ this.ygJbxxList = response.rows
|
|
|
+ this.total = response.total
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false
|
|
|
+ this.reset()
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ sjbmid: null,
|
|
|
+ id: null,
|
|
|
+ xm: null,
|
|
|
+ sfzlx: null,
|
|
|
+ sfzhm: null,
|
|
|
+ csrq: null,
|
|
|
+ xb: null,
|
|
|
+ lxdh: null,
|
|
|
+ whcd: null,
|
|
|
+ shbn: null,
|
|
|
+ zzmc: null,
|
|
|
+ zzzt: null,
|
|
|
+ lzsj: null,
|
|
|
+ zylx: null,
|
|
|
+ zylxQt: null,
|
|
|
+ gwlx: null,
|
|
|
+ isHlyyzs: '0',
|
|
|
+ isJnsb: null,
|
|
|
+ hlydj: null,
|
|
|
+ gqHlydj: null,
|
|
|
+ jgId: null,
|
|
|
+ zw: null,
|
|
|
+ state: null
|
|
|
+ }
|
|
|
+ this.isOther = true
|
|
|
+ this.isYH = true
|
|
|
+ this.isYHZ = true
|
|
|
+ this.isZZ = true
|
|
|
+ this.resetForm('form')
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm('queryForm')
|
|
|
+ this.handleQuery()
|
|
|
+ },
|
|
|
+ handleDetails(row) {
|
|
|
+ this.activeName = 'first'
|
|
|
+ getYgJbxx(row.id).then(response => {
|
|
|
+ this.dataDetails = response.data
|
|
|
+ this.openXQ = true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download('business/fwjggl/ygJbxx/export', {
|
|
|
+ ...this.queryParams
|
|
|
+ }, `ygJbxx_${new Date().getTime()}.xlsx`)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
+ table td {
|
|
|
+ width: 10%;
|
|
|
+ height: 2.5rem;
|
|
|
+ padding: .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%;
|
|
|
+ }
|
|
|
+
|
|
|
+ .formWidth {
|
|
|
+ width: 32%;
|
|
|
+ display: flex !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .formFlex ::v-deep .el-form-item__content {
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .custom > .el-dialog__body {
|
|
|
+ height: 850px;
|
|
|
+ }
|
|
|
+</style>
|