xg
This commit is contained in:
parent
98f753c22d
commit
332b0ee587
@ -1,12 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
>
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
||||
<el-form-item label="所属医院" prop="hospitalId">
|
||||
<el-button type class="stationbtn" @click="clickinnerVisible(true)">{{
|
||||
queryParams.hospitalName
|
||||
@ -18,90 +12,38 @@
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="人员名称" prop="personName">
|
||||
<el-input
|
||||
v-model="queryParams.personName"
|
||||
placeholder="请输入科室人员名称"
|
||||
clearable
|
||||
maxlength="7"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.personName" placeholder="请输入科室人员名称" clearable maxlength="7"
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话" prop="personPhone">
|
||||
<el-input
|
||||
v-model="queryParams.personPhone"
|
||||
placeholder="请输入联系电话"
|
||||
clearable
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
<el-input v-model="queryParams.personPhone" placeholder="请输入联系电话" clearable
|
||||
oninput="value=value.replace(/[^\d]/g,'')" @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户类型" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
placeholder="请选择用户类型"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
|
||||
>
|
||||
<el-option
|
||||
v-for="item in statuslist"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-select v-model="queryParams.status" placeholder="请选择用户类型" clearable style="width: 200px">
|
||||
<el-option v-for="item in statuslist" :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="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-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:hospitalPerson:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['system:hospitalPerson:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:hospitalPerson:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['system:hospitalPerson:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:hospitalPerson:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['system:hospitalPerson:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
@ -117,11 +59,7 @@
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="hospitalPersonList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table v-loading="loading" :data="hospitalPersonList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
|
||||
<el-table-column label="所属医院" align="center" prop="hospitalName" />
|
||||
@ -139,8 +77,8 @@
|
||||
{{ scope.row.academicTitle == "CHIEF_PHYSICIAN" ? "主任医师" : "" }}
|
||||
{{
|
||||
scope.row.academicTitle == "DEPUTY_CHIEF_PHYSICIAN"
|
||||
? "副主任医师"
|
||||
: ""
|
||||
? "副主任医师"
|
||||
: ""
|
||||
}}
|
||||
{{ scope.row.academicTitle == "ATTENDING_DOCTOR" ? "主治医师" : "" }}
|
||||
{{ scope.row.academicTitle == "PHYSICIAN" ? "医师" : "" }}
|
||||
@ -150,286 +88,129 @@
|
||||
<el-table-column label="用户类型" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.status == "1" ? "家医医生" : "" }}
|
||||
{{ scope.row.status == "2" ? "泉医医生" : "" }}
|
||||
{{ scope.row.status == "2" ? "专病管理医生" : "" }}
|
||||
{{ scope.row.status == "3" ? "专病医生" : "" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="咨询费用" align="center" prop="consultingFee" />
|
||||
<!-- <el-table-column label="显示顺序" align="center" prop="personSort" /> -->
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<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)"
|
||||
v-hasPermi="['system:hospitalPerson:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:hospitalPerson:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:hospitalPerson:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:hospitalPerson:remove']">删除</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"
|
||||
/>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
|
||||
<!-- 添加健康咨询-科室人员信息对话框 -->
|
||||
<el-dialog
|
||||
:title="title"
|
||||
:visible.sync="addopen"
|
||||
width="1200px"
|
||||
:before-close="cancel"
|
||||
append-to-body
|
||||
v-if="addopen"
|
||||
>
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-width="140px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-dialog :title="title" :visible.sync="addopen" width="1200px" :before-close="cancel" append-to-body v-if="addopen">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
|
||||
<el-form-item label="所属医院" prop="hospitalId">
|
||||
<el-button
|
||||
type
|
||||
v-if="form.hospitalName == '请选择所属医院'"
|
||||
@click="clickinnerVisible(false)"
|
||||
style="
|
||||
<el-button type v-if="form.hospitalName == '请选择所属医院'" @click="clickinnerVisible(false)" style="
|
||||
width: 210px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
|
||||
color: #c0c4cc;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.hospitalName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="clickinnerVisible(false)"
|
||||
type
|
||||
v-else
|
||||
style="
|
||||
">{{ form.hospitalName }}</el-button>
|
||||
<el-button @click="clickinnerVisible(false)" type v-else style="
|
||||
width: 210px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.hospitalName }}</el-button
|
||||
>
|
||||
">{{ form.hospitalName }}</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属科室" :prop="departmentIdtype ?'departmentId' : 'empty'">
|
||||
<el-button
|
||||
type
|
||||
v-if="form.departmentName == '请选择所属科室'"
|
||||
@click="clicklist(false)"
|
||||
style="
|
||||
<el-form-item label="所属科室" :prop="departmentIdtype ? 'departmentId' : 'empty'">
|
||||
<el-button type v-if="form.departmentName == '请选择所属科室'" @click="clicklist(false)" style="
|
||||
width: 210px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
color: #c0c4cc;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.departmentName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="clicklist(false)"
|
||||
type
|
||||
v-else
|
||||
style="
|
||||
">{{ form.departmentName }}</el-button>
|
||||
<el-button @click="clicklist(false)" type v-else style="
|
||||
width: 210px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
"
|
||||
>{{ form.departmentName }}</el-button
|
||||
>
|
||||
">{{ form.departmentName }}</el-button>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="人员名称" prop="personName">
|
||||
<el-input
|
||||
v-model="form.personName"
|
||||
maxlength="7"
|
||||
placeholder="请输入人员名称"
|
||||
/>
|
||||
<el-input v-model="form.personName" maxlength="7" placeholder="请输入人员名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="联系电话" prop="personPhone">
|
||||
<el-input
|
||||
maxlength="11"
|
||||
v-model="form.personPhone"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
placeholder="请输入联系电话"
|
||||
/>
|
||||
<el-input maxlength="11" v-model="form.personPhone" oninput="value=value.replace(/[^\d]/g,'')"
|
||||
placeholder="请输入联系电话" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="人员地址" prop="personAddress">
|
||||
<el-input
|
||||
v-model="form.personAddress"
|
||||
style="width: 210px"
|
||||
maxlength="300"
|
||||
placeholder="请输入人员地址"
|
||||
/>
|
||||
<el-input v-model="form.personAddress" style="width: 210px" maxlength="300" placeholder="请输入人员地址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证号">
|
||||
<el-input
|
||||
maxlength="18"
|
||||
v-model="form.cardNo"
|
||||
placeholder="请输入身份证号"
|
||||
/>
|
||||
<el-input maxlength="18" v-model="form.cardNo" placeholder="请输入身份证号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="人员职称" prop="academicTitle">
|
||||
<el-select
|
||||
v-model="form.academicTitle"
|
||||
placeholder="请选择"
|
||||
style="width: 210px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
<el-select v-model="form.academicTitle" placeholder="请选择" style="width: 210px">
|
||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="显示顺序" prop="personSort">
|
||||
<el-input
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxlength="5"
|
||||
v-model.number="form.personSort"
|
||||
placeholder="值越小,排名越靠前"
|
||||
/>
|
||||
<el-input oninput="value=value.replace(/[^\d]/g,'')" maxlength="5" v-model.number="form.personSort"
|
||||
placeholder="值越小,排名越靠前" />
|
||||
</el-form-item>
|
||||
<el-form-item label="账号" prop="personAccount">
|
||||
<el-input
|
||||
:disabled="singlepersonAccount"
|
||||
maxlength="20"
|
||||
style="width: 210px"
|
||||
v-model.number="form.personAccount"
|
||||
placeholder="请输入账号"
|
||||
/>
|
||||
<el-input :disabled="singlepersonAccount" maxlength="20" style="width: 210px"
|
||||
v-model.number="form.personAccount" placeholder="请输入账号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="密码" prop="personPassword">
|
||||
<el-input
|
||||
show-password
|
||||
style="width: 210px"
|
||||
maxlength="20"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="form.personPassword"
|
||||
placeholder="请输入密码"
|
||||
/>
|
||||
<el-input show-password style="width: 210px" maxlength="20" oninput="value=value.replace(/[^\d]/g,'')"
|
||||
v-model.number="form.personPassword" placeholder="请输入密码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户类型" prop="status">
|
||||
<el-select
|
||||
v-model="form.status"
|
||||
style="width: 210px"
|
||||
placeholder="请选择用户类型"
|
||||
clearable
|
||||
@change="changetype"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in statuslist"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
<el-select v-model="form.status" style="width: 210px" placeholder="请选择用户类型" clearable @change="changetype">
|
||||
<el-option v-for="item in statuslist" :key="item.value" :label="item.label" :value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="咨询费用"
|
||||
prop="consultingFee"
|
||||
v-if="form.status == 2"
|
||||
>
|
||||
<el-input
|
||||
maxlength="8"
|
||||
:change="checkPrice()"
|
||||
v-model="form.consultingFee"
|
||||
placeholder="请输入咨询费用"
|
||||
/>
|
||||
<el-form-item label="咨询费用" prop="consultingFee" v-if="form.status == 2">
|
||||
<el-input maxlength="8" :change="checkPrice()" v-model="form.consultingFee" placeholder="请输入咨询费用" />
|
||||
</el-form-item>
|
||||
<el-form-item label="人员头像" prop="personPictureUrl">
|
||||
<stationAcatar
|
||||
@imgUrl="imgUrl2"
|
||||
:img="form.personPictureUrl"
|
||||
:type="'personPictureUrl'"
|
||||
/>
|
||||
<stationAcatar @imgUrl="imgUrl2" :img="form.personPictureUrl" :type="'personPictureUrl'" />
|
||||
</el-form-item>
|
||||
<el-form-item label="个人简介" prop="personIntroduce">
|
||||
<el-input
|
||||
type="textarea"
|
||||
:rows="5"
|
||||
maxlength="200"
|
||||
style="width: 540px"
|
||||
placeholder="请输入个人简介"
|
||||
v-model="form.personIntroduce"
|
||||
></el-input>
|
||||
<el-input type="textarea" :rows="5" maxlength="200" style="width: 540px" placeholder="请输入个人简介"
|
||||
v-model="form.personIntroduce"></el-input>
|
||||
</el-form-item>
|
||||
<div
|
||||
v-for="(item, index) in form.hospitalPersonCertificateList"
|
||||
:key="index"
|
||||
style="margin-top: 20px; border-bottom: 1px solid #f3f3f3"
|
||||
>
|
||||
<div v-for="(item, index) in form.hospitalPersonCertificateList" :key="index"
|
||||
style="margin-top: 20px; border-bottom: 1px solid #f3f3f3">
|
||||
<el-form-item label="证书名称">
|
||||
<el-input
|
||||
maxlength="50"
|
||||
v-model="item.certificateName"
|
||||
placeholder="请输入证书名称"
|
||||
/>
|
||||
<el-input maxlength="50" v-model="item.certificateName" placeholder="请输入证书名称" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="证书图片">
|
||||
<stationAcatar
|
||||
@imgUrl="imgUrl"
|
||||
@item="imgclassifyItem"
|
||||
:img="item.certificateUrl"
|
||||
:item="item"
|
||||
:type="'certificateUrl'"
|
||||
/>
|
||||
<stationAcatar @imgUrl="imgUrl" @item="imgclassifyItem" :img="item.certificateUrl" :item="item"
|
||||
:type="'certificateUrl'" />
|
||||
</el-form-item>
|
||||
<el-form-item label="证书显示顺序">
|
||||
<el-input
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxlength="5"
|
||||
v-model.number="item.certificateSort"
|
||||
placeholder="请输入证书显示顺序"
|
||||
/>
|
||||
<el-input oninput="value=value.replace(/[^\d]/g,'')" maxlength="5" v-model.number="item.certificateSort"
|
||||
placeholder="请输入证书显示顺序" />
|
||||
</el-form-item>
|
||||
|
||||
<el-button
|
||||
type="primary"
|
||||
circle
|
||||
plain
|
||||
icon="el-icon-circle-plus-outline"
|
||||
@click="adddisease"
|
||||
v-if="index == 0"
|
||||
></el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
circle
|
||||
plain
|
||||
@click="deldisease(index)"
|
||||
v-if="index != 0"
|
||||
></el-button>
|
||||
<el-button type="primary" circle plain icon="el-icon-circle-plus-outline" @click="adddisease"
|
||||
v-if="index == 0"></el-button>
|
||||
<el-button type="danger" icon="el-icon-delete" circle plain @click="deldisease(index)"
|
||||
v-if="index != 0"></el-button>
|
||||
</div>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -438,198 +219,69 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!--新增 选择医院 -->
|
||||
<el-dialog
|
||||
title="选择医院"
|
||||
:visible.sync="innerVisible"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="innerVisiblecancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="hospitalqueryParams"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-dialog title="选择医院" :visible.sync="innerVisible" width="1000px" append-to-body :before-close="innerVisiblecancel">
|
||||
<el-form ref="queryForm" :model="hospitalqueryParams" :rules="rules" label-width="80px" :inline="true">
|
||||
<el-form-item label="医院编码" prop="hospitalCode" label-width="120">
|
||||
<el-input
|
||||
v-model="hospitalqueryParams.hospitalCode"
|
||||
placeholder="请输入科室编码"
|
||||
clearable
|
||||
/>
|
||||
<el-input v-model="hospitalqueryParams.hospitalCode" placeholder="请输入科室编码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="医院名称" prop="hospitalName" label-width="120">
|
||||
<el-input
|
||||
v-model="hospitalqueryParams.hospitalName"
|
||||
placeholder="请输入医院名称"
|
||||
clearable
|
||||
/>
|
||||
<el-input v-model="hospitalqueryParams.hospitalName" placeholder="请输入医院名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="info"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="info">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
:data="infolist"
|
||||
@cell-dblclick="nurseclick"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="hospitalId == scope.row.id"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
v-else
|
||||
style="width: 15px; height: 15px"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="hospitalId == scope.row.id" circle
|
||||
@click="nurseclick(scope.row)"></el-button>
|
||||
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclick(scope.row)"></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="hospitalCode"
|
||||
label="医院编码"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="hospitalName"
|
||||
label="医院名称"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="hospitalAddress"
|
||||
label="医院地址"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
></el-table-column>
|
||||
<el-table-column property="hospitalCode" label="医院编码" align="center"></el-table-column>
|
||||
<el-table-column property="hospitalName" label="医院名称" align="center"
|
||||
:show-overflow-tooltip="true"></el-table-column>
|
||||
<el-table-column property="hospitalAddress" label="医院地址" align="center"></el-table-column>
|
||||
<el-table-column property="phone" label="联系电话" align="center" :show-overflow-tooltip="true"></el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="hospitalqueryParams.pageNum"
|
||||
:limit.sync="hospitalqueryParams.pageSize"
|
||||
@pagination="info"
|
||||
/>
|
||||
<pagination v-show="total2 > 0" :total="total2" :page.sync="hospitalqueryParams.pageNum"
|
||||
:limit.sync="hospitalqueryParams.pageSize" @pagination="info" />
|
||||
</el-dialog>
|
||||
<!-- 选择科室 -->
|
||||
<el-dialog
|
||||
title="选择科室"
|
||||
:visible.sync="innerVisibledepartment"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="innerVisiblecanceldepart"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="departmentqueryParams"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-dialog title="选择科室" :visible.sync="innerVisibledepartment" width="1000px" append-to-body
|
||||
:before-close="innerVisiblecanceldepart">
|
||||
<el-form ref="queryForm" :model="departmentqueryParams" :rules="rules" label-width="80px" :inline="true">
|
||||
<el-form-item label="科室编码" prop="departmentCode" label-width="120">
|
||||
<el-input
|
||||
v-model="departmentqueryParams.departmentCode"
|
||||
placeholder="请输入科室编码"
|
||||
clearable
|
||||
/>
|
||||
<el-input v-model="departmentqueryParams.departmentCode" placeholder="请输入科室编码" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item label="科室名称" prop="departmentName" label-width="120">
|
||||
<el-input
|
||||
v-model="departmentqueryParams.departmentName"
|
||||
placeholder="请输入医院名称"
|
||||
clearable
|
||||
/>
|
||||
<el-input v-model="departmentqueryParams.departmentName" placeholder="请输入医院名称" clearable />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="departmentList"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="departresetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="departmentList">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="departresetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
:data="hospitalDepartmentList"
|
||||
@cell-dblclick="departmentclick"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table :data="hospitalDepartmentList" @cell-dblclick="departmentclick" v-loading="loading">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="departmentId == scope.row.id"
|
||||
circle
|
||||
@click="departmentclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
v-else
|
||||
style="width: 15px; height: 15px"
|
||||
circle
|
||||
@click="departmentclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="departmentId == scope.row.id" circle
|
||||
@click="departmentclick(scope.row)"></el-button>
|
||||
<el-button v-else style="width: 15px; height: 15px" circle @click="departmentclick(scope.row)"></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="departmentCode"
|
||||
label="科室编码"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="departmentName"
|
||||
label="科室名称"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
></el-table-column>
|
||||
<el-table-column property="departmentCode" label="科室编码" align="center"></el-table-column>
|
||||
<el-table-column property="departmentName" label="科室名称" align="center"
|
||||
:show-overflow-tooltip="true"></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
property="departmentPhone"
|
||||
label="科室联系电话"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="departmentAddress"
|
||||
label="科室地址"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
></el-table-column>
|
||||
<el-table-column property="departmentPhone" label="科室联系电话" align="center"></el-table-column>
|
||||
<el-table-column property="departmentAddress" label="科室地址" align="center"
|
||||
:show-overflow-tooltip="true"></el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total3 > 0"
|
||||
:total="total3"
|
||||
:page.sync="departmentqueryParams.pageNum"
|
||||
:limit.sync="departmentqueryParams.pageSize"
|
||||
@pagination="departmentList"
|
||||
/>
|
||||
<pagination v-show="total3 > 0" :total="total3" :page.sync="departmentqueryParams.pageNum"
|
||||
:limit.sync="departmentqueryParams.pageSize" @pagination="departmentList" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@ -665,20 +317,20 @@ export default {
|
||||
cb(new Error("请输入正确的联系电话"));
|
||||
};
|
||||
return {
|
||||
singlepersonAccount:false,
|
||||
departmentIdtype:false,
|
||||
singlepersonAccount: false,
|
||||
departmentIdtype: false,
|
||||
statuslist: [
|
||||
{
|
||||
value: "1",
|
||||
label: "家医医生 ",
|
||||
label: "家医医生",
|
||||
},
|
||||
{
|
||||
value: "2",
|
||||
label: "泉医医生 ",
|
||||
label: "专病管理医生",
|
||||
},
|
||||
{
|
||||
value: "3",
|
||||
label: "专病医生 ",
|
||||
label: "专病医生",
|
||||
},
|
||||
],
|
||||
// 遮罩层
|
||||
@ -922,13 +574,13 @@ export default {
|
||||
this.form.certificateUrl = items.certificateUrl;
|
||||
}
|
||||
},
|
||||
changetype(e){
|
||||
if(e==2){
|
||||
this.departmentIdtype=true
|
||||
changetype(e) {
|
||||
if (e == 2) {
|
||||
this.departmentIdtype = true
|
||||
|
||||
|
||||
}else{
|
||||
this.departmentIdtype=false
|
||||
} else {
|
||||
this.departmentIdtype = false
|
||||
|
||||
|
||||
}
|
||||
@ -945,7 +597,7 @@ export default {
|
||||
},
|
||||
|
||||
nurseclick(row) {
|
||||
this.form.departmentId='';
|
||||
this.form.departmentId = '';
|
||||
if (this.homenumber) {
|
||||
this.queryParams.hospitalName = row.hospitalName;
|
||||
this.queryParams.hospitalId = row.id;
|
||||
@ -1086,10 +738,10 @@ export default {
|
||||
if (this.deletUploadImages.length > 0) {
|
||||
updatePicture({
|
||||
pictureUrlList: this.deletUploadImages,
|
||||
}).then((res) => {});
|
||||
}).then((res) => { });
|
||||
}
|
||||
if (this.deletupdata.length > 0) {
|
||||
updatePicture({ pictureUrlList: this.deletupdata }).then((res) => {});
|
||||
updatePicture({ pictureUrlList: this.deletupdata }).then((res) => { });
|
||||
}
|
||||
this.form.hospitalId = null;
|
||||
this.departmentId = null;
|
||||
@ -1160,7 +812,7 @@ export default {
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.singlepersonAccount=false
|
||||
this.singlepersonAccount = false
|
||||
this.form = {
|
||||
hospitalPersonCertificateList: [
|
||||
{
|
||||
@ -1172,14 +824,14 @@ export default {
|
||||
],
|
||||
};
|
||||
this.departmentId = "";
|
||||
this.departmentIdtype=null;
|
||||
this.departmentIdtype = null;
|
||||
this.reset();
|
||||
this.addopen = true;
|
||||
this.title = "添加科室人员信息";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.singlepersonAccount=true
|
||||
this.singlepersonAccount = true
|
||||
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
@ -1187,13 +839,13 @@ export default {
|
||||
this.form = response.data;
|
||||
this.departmentId = response.data.departmentId;
|
||||
this.hospitalId = response.data.hospitalId;
|
||||
if(response.data.status==2){
|
||||
this.departmentIdtype=true
|
||||
}else{
|
||||
this.departmentIdtype=false
|
||||
if (response.data.status == 2) {
|
||||
this.departmentIdtype = true
|
||||
} else {
|
||||
this.departmentIdtype = false
|
||||
}
|
||||
|
||||
if(response.data.departmentId==null){
|
||||
if (response.data.departmentId == null) {
|
||||
this.form.departmentName = '请选择所属科室'
|
||||
}
|
||||
this.imgone = this.form.certificateUrl;
|
||||
@ -1227,8 +879,8 @@ export default {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
if(this.form.departmentName == '请选择所属科室'){
|
||||
this.form.departmentName=''
|
||||
if (this.form.departmentName == '请选择所属科室') {
|
||||
this.form.departmentName = ''
|
||||
}
|
||||
updateHospitalPerson(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
@ -1238,8 +890,8 @@ export default {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if(this.form.departmentName == '请选择所属科室'){
|
||||
this.form.departmentName=''
|
||||
if (this.form.departmentName == '请选择所属科室') {
|
||||
this.form.departmentName = ''
|
||||
}
|
||||
addHospitalPerson(this.form).then((response) => {
|
||||
if (response.code == 200) {
|
||||
@ -1264,7 +916,7 @@ export default {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user