护理人员
This commit is contained in:
parent
4209e930d5
commit
378b37f4b6
@ -40,7 +40,7 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item label="商品用途" prop="goodsPurpose">
|
||||
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
|
||||
<el-option
|
||||
@ -597,7 +597,7 @@ export default {
|
||||
goodsCategoryId: [
|
||||
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
||||
],
|
||||
|
||||
|
||||
goodsPurpose: [
|
||||
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
||||
],
|
||||
@ -730,7 +730,7 @@ export default {
|
||||
nurseclick(row) {
|
||||
console.log(this.form);
|
||||
console.log(row);
|
||||
this.form.nurseStationId = row.id;
|
||||
this.nurseStationId = row.id;
|
||||
this.StationName = row.nurseStationName;
|
||||
this.innerVisible = false;
|
||||
},
|
||||
|
||||
@ -23,14 +23,14 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户" prop="patientName">
|
||||
<el-form-item label="会员名称" prop="patientName">
|
||||
<el-input
|
||||
v-model="queryParams.patientName"
|
||||
placeholder="请输入客户"
|
||||
placeholder="请输入会员名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单编号" prop="orderNo">
|
||||
<el-input
|
||||
v-model="queryParams.orderNo"
|
||||
@ -192,6 +192,8 @@
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
|
||||
<!-- 查看弹框 -->
|
||||
<el-dialog
|
||||
title="查看订单信息"
|
||||
|
||||
@ -125,6 +125,17 @@
|
||||
>导入</el-button
|
||||
>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:person:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col> -->
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
@ -226,7 +237,7 @@
|
||||
<el-button
|
||||
type=""
|
||||
@click="clickinnerVisible(item, index)"
|
||||
v-if="item.nurseStationName == '请选择所属护理站'"
|
||||
v-if="item.nurseStationName == '请选择护理站名称'"
|
||||
style="
|
||||
width: 200px;
|
||||
text-align: left;
|
||||
@ -254,8 +265,8 @@
|
||||
<el-form-item
|
||||
label="所属科室"
|
||||
label-width="120px"
|
||||
:rules="rules.nurseStationPersonList.departmentCode"
|
||||
:prop="`nurseStationPersonList.${index}.departmentCode`"
|
||||
:rules="rules.nurseStationPersonList.departmentName"
|
||||
:prop="`nurseStationPersonList.${index}.departmentName`"
|
||||
>
|
||||
<el-button
|
||||
type=""
|
||||
@ -386,30 +397,39 @@
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 新增护理站名称弹框 -->
|
||||
<el-dialog
|
||||
:title="title2"
|
||||
:visible.sync="innerVisible"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="addcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="StationqueryParams"
|
||||
:model="queryParams2"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <el-form
|
||||
:model="queryParams2"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="90px"
|
||||
> -->
|
||||
<el-form-item
|
||||
label="护理站编码"
|
||||
prop="nurseStationCode"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="StationqueryParams.nurseStationCode"
|
||||
v-model="queryParams2.nurseStationCode"
|
||||
placeholder="请输入护理站编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@ -418,9 +438,10 @@
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="StationqueryParams.nurseStationName"
|
||||
v-model="queryParams2.nurseStationName"
|
||||
placeholder="请输入护理站名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -436,8 +457,8 @@
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<el-table :data="stationLists" @cell-dblclick="nurseclick">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -457,33 +478,55 @@
|
||||
<el-table-column
|
||||
property="nurseStationCode"
|
||||
label="护理站编码"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="nurseStationName"
|
||||
label="护理站名称"
|
||||
width="150"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="护理站类型"
|
||||
align="center"
|
||||
prop="nurseStationType"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140018" ? "生活护理" : ""
|
||||
}}
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : ""
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="address"
|
||||
label="护理站地址"
|
||||
label="护理地址"
|
||||
width="150"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="nursetotal > 0"
|
||||
:total="nursetotal"
|
||||
:page.sync="StationqueryParams.pageNum"
|
||||
:limit.sync="StationqueryParams.pageSize"
|
||||
@pagination="getList2"
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="queryParams2.pageNum"
|
||||
:limit.sync="queryParams2.pageSize"
|
||||
@pagination="handleQuery2"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 修改护理站名称弹框 -->
|
||||
@ -492,24 +535,32 @@
|
||||
:visible.sync="innerVisiblexg"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="addcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="StationqueryParams"
|
||||
:model="queryParams2"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <el-form
|
||||
:model="queryParams2"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="90px"
|
||||
> -->
|
||||
<el-form-item
|
||||
label="护理站编码"
|
||||
prop="nurseStationCode"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="StationqueryParams.nurseStationCode"
|
||||
v-model="queryParams2.nurseStationCode"
|
||||
placeholder="请输入护理站编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@ -518,9 +569,10 @@
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="StationqueryParams.nurseStationName"
|
||||
v-model="queryParams2.nurseStationName"
|
||||
placeholder="请输入护理站名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -528,16 +580,16 @@
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery4"
|
||||
@click="handleQuery2"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery4"
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick2">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<el-table :data="stationLists" @cell-dblclick="nurseclick2">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -557,26 +609,53 @@
|
||||
<el-table-column
|
||||
property="nurseStationCode"
|
||||
label="护理站编码"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="nurseStationName"
|
||||
label="护理站名称"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
<el-table-column
|
||||
label="护理站类型"
|
||||
align="center"
|
||||
prop="nurseStationType"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140018" ? "生活护理" : ""
|
||||
}}
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : ""
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="address" label="护理站地址" align="center">
|
||||
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="address"
|
||||
label="护理地址"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="nursetotal > 0"
|
||||
:total="nursetotal"
|
||||
:page.sync="StationqueryParams.pageNum"
|
||||
:limit.sync="StationqueryParams.pageSize"
|
||||
@pagination="getList2"
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="queryParams2.pageNum"
|
||||
:limit.sync="queryParams2.pageSize"
|
||||
@pagination="handleQuery2"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 所属科室弹框 -->
|
||||
@ -585,7 +664,6 @@
|
||||
:visible.sync="innerVisible2"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="departcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
@ -599,6 +677,7 @@
|
||||
v-model="queryParams3.departmentCode"
|
||||
placeholder="请输入科室编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="科室名称" prop="" label-width="120">
|
||||
@ -606,6 +685,7 @@
|
||||
v-model="queryParams3.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -625,7 +705,7 @@
|
||||
:data="StationDepartmentLists"
|
||||
@cell-dblclick="StationDepartmentclick"
|
||||
>
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -645,12 +725,14 @@
|
||||
<el-table-column
|
||||
property="departmentCode"
|
||||
label="科室编码"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="departmentName"
|
||||
label="科室名称"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
@ -658,18 +740,24 @@
|
||||
<el-table-column
|
||||
property="departmentPerson"
|
||||
label="科室负责人"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="departtotal > 0"
|
||||
:total="departtotal"
|
||||
v-show="total3 > 0"
|
||||
:total="total3"
|
||||
:page.sync="queryParams3.pageNum"
|
||||
:limit.sync="queryParams3.pageSize"
|
||||
@pagination="getList3"
|
||||
@pagination="handleQuery3"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 修改所属科室弹框 -->
|
||||
@ -678,7 +766,6 @@
|
||||
:visible.sync="innerVisiblexg2"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="departcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
@ -687,11 +774,20 @@
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <el-form
|
||||
:model="queryParams2"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="90px"
|
||||
> -->
|
||||
<el-form-item label="科室编码" prop="departmentCode" label-width="120">
|
||||
<el-input
|
||||
v-model="queryParams3.departmentCode"
|
||||
placeholder="请输入科室编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="科室名称" prop="" label-width="120">
|
||||
@ -699,6 +795,7 @@
|
||||
v-model="queryParams3.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -718,7 +815,7 @@
|
||||
:data="StationDepartmentLists"
|
||||
@cell-dblclick="StationDepartmentclick2"
|
||||
>
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -738,12 +835,14 @@
|
||||
<el-table-column
|
||||
property="departmentCode"
|
||||
label="科室编码"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="departmentName"
|
||||
label="科室名称"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
@ -751,20 +850,27 @@
|
||||
<el-table-column
|
||||
property="departmentPerson"
|
||||
label="科室负责人"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="departtotal > 0"
|
||||
:total="departtotal"
|
||||
v-show="total3 > 0"
|
||||
:total="total3"
|
||||
:page.sync="queryParams3.pageNum"
|
||||
:limit.sync="queryParams3.pageSize"
|
||||
@pagination="getList3"
|
||||
@pagination="handleQuery3"
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 修改 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
@ -775,15 +881,17 @@
|
||||
style="margin-left: -20px"
|
||||
>
|
||||
<el-button
|
||||
disabled
|
||||
type=""
|
||||
@click="departclickxg"
|
||||
v-if="nurseStationName == '请选择所属护理站'"
|
||||
@click="clickinnerVisible2"
|
||||
v-if="nurseStationName == '请选择护理站名称'"
|
||||
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
||||
>{{ nurseStationName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
disabled
|
||||
type=""
|
||||
@click="departclickxg()"
|
||||
@click="clickinnerVisible2"
|
||||
v-else
|
||||
style="
|
||||
width: 362px;
|
||||
@ -821,14 +929,19 @@
|
||||
>{{ departmentName }}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="nursePersonName">
|
||||
<el-form-item label="姓名" prop="nursePersonName" >
|
||||
<el-input
|
||||
maxlength="15"
|
||||
v-model="form.nursePersonName"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="护理人职称" prop="nursePersonType">
|
||||
<el-form-item
|
||||
label="护理人职称"
|
||||
prop="nursePersonType"
|
||||
label-width="120px"
|
||||
style="margin-left: -22px"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.nursePersonType"
|
||||
clearable
|
||||
@ -1011,9 +1124,12 @@ export default {
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
// total:null,
|
||||
total: 0,
|
||||
departtotal: 0,
|
||||
nursetotal: 0,
|
||||
total2: 0,
|
||||
total3: 0,
|
||||
total4: 0,
|
||||
total5: 0,
|
||||
// 护理站人员信息表格数据
|
||||
nurseStationPersonList: [],
|
||||
// 护理站名称
|
||||
@ -1024,15 +1140,14 @@ export default {
|
||||
stationid: "",
|
||||
stationid2: "",
|
||||
departid: "",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
departmentName: "请选择所属科室",
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title2: "",
|
||||
title3: "",
|
||||
// 修改弹出层
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 添加弹出层
|
||||
open2: false,
|
||||
//权限查询
|
||||
// 查询参数
|
||||
@ -1071,25 +1186,15 @@ export default {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
StationqueryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
|
||||
// 表单参数
|
||||
form: {},
|
||||
index: "",
|
||||
// 表单校验
|
||||
rules: {
|
||||
nurseStationId: [
|
||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
||||
],
|
||||
departmentName: [
|
||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||
],
|
||||
|
||||
nursePersonName: [
|
||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||
{ required: true, message: "姓名不能为空", trigger: "blur" },
|
||||
],
|
||||
nursePersonType: [
|
||||
{ required: true, message: "护理人职称不能为空", trigger: "blur" },
|
||||
@ -1110,15 +1215,15 @@ export default {
|
||||
nursePersonName: [
|
||||
{
|
||||
required: true,
|
||||
message: "请选择所属护理站",
|
||||
message: "护理站人员名称不能为空",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
departmentCode: [
|
||||
departmentName: [
|
||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||
],
|
||||
nurseStationId: [
|
||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
||||
{ required: true, message: "所属护理站不能为空", trigger: "blur" },
|
||||
],
|
||||
nursePersonName: [
|
||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||
@ -1138,18 +1243,28 @@ export default {
|
||||
address: [
|
||||
{ required: true, message: "居住地址不能为空", trigger: "blur" },
|
||||
],
|
||||
// nurseStationPersonList: {
|
||||
// nursePersonName: [
|
||||
// {
|
||||
// required: true,
|
||||
// message: "请输入护理站人员名称",
|
||||
// trigger: "blur",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getList2();
|
||||
// this.nurselist();
|
||||
this.info();
|
||||
},
|
||||
methods: {
|
||||
// // 新增所属科室按钮
|
||||
departclick(item, index) {
|
||||
this.getList3();
|
||||
console.log(item);
|
||||
this.departid = item.departmentCode;
|
||||
this.innerVisible2 = true;
|
||||
@ -1157,33 +1272,61 @@ export default {
|
||||
},
|
||||
// // 修改所属科室按钮
|
||||
departclick2() {
|
||||
this.getList3();
|
||||
StationDepartmentList(this.queryParams3).then((res) => {
|
||||
this.StationDepartmentLists = res.rows;
|
||||
this.total3 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
// console.log(item);
|
||||
this.departid2 = this.form.departmentCode;
|
||||
this.innerVisiblexg2 = true;
|
||||
// this.index = index;
|
||||
},
|
||||
//修改护理站按钮
|
||||
departclickxg() {
|
||||
this.getList2();
|
||||
this.stationid2 = this.form.nurseStationId;
|
||||
this.innerVisiblexg = true;
|
||||
this.index = index;
|
||||
},
|
||||
// 新增护理站按钮
|
||||
clickinnerVisible(item, index) {
|
||||
this.getList2();
|
||||
// console.log(item);
|
||||
this.stationid = item.nurseStationId;
|
||||
this.innerVisible = true;
|
||||
this.index = index;
|
||||
},
|
||||
// 修改护理站
|
||||
nurseclick2(row) {
|
||||
console.log(row);
|
||||
this.nurseStationName = row.nurseStationName;
|
||||
this.stationid2 = row.id;
|
||||
this.form.nurseStationId = row.id;
|
||||
this.innerVisiblexg = false;
|
||||
this.form.nursename = row.nurseStationName;
|
||||
// 修改护理站按钮
|
||||
clickinnerVisible2() {
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
// console.log(item);
|
||||
this.stationid2 = this.form.nurseStationId;
|
||||
this.innerVisiblexg = true;
|
||||
// this.index = index;
|
||||
},
|
||||
//xialakuang
|
||||
// loadMore() {
|
||||
// console.log("1");
|
||||
// var a = Math.ceil(this.total4 / 10);
|
||||
// console.log(this.nurseStationlist.length);
|
||||
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||
// } else {
|
||||
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||
// } else {
|
||||
// this.nurseStationqueryParams.pageNum++;
|
||||
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||
// console.log(res);
|
||||
// res.rows.forEach((e) => {
|
||||
// this.nurseStationlist.push(e);
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
nurselist() {
|
||||
stationList(this.nurseStationqueryParams).then((res) => {
|
||||
console.log(res);
|
||||
this.nurseStationlist = res.rows;
|
||||
this.total4 = res.total;
|
||||
console.log(this.nurseStationlist);
|
||||
});
|
||||
},
|
||||
//删除deldisease
|
||||
deldisease(index) {
|
||||
@ -1192,6 +1335,8 @@ export default {
|
||||
},
|
||||
|
||||
adddisease() {
|
||||
// this.nurseStationName = "请选择护理站名称";
|
||||
// this.departmentName=""
|
||||
var obj = {
|
||||
nursePersonCode: "",
|
||||
nursePersonCode: "",
|
||||
@ -1201,6 +1346,7 @@ export default {
|
||||
address: "",
|
||||
sex: "",
|
||||
nurseStationId: "",
|
||||
|
||||
departmentName: "请选择所属科室",
|
||||
// departname: "",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
@ -1224,7 +1370,16 @@ export default {
|
||||
row.nurseStationName;
|
||||
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
|
||||
},
|
||||
|
||||
// 修改护理站
|
||||
nurseclick2(row) {
|
||||
console.log(row);
|
||||
this.nurseStationName = row.nurseStationName;
|
||||
this.stationid2 = row.id;
|
||||
this.form.nurseStationId = row.id;
|
||||
console.log(this.form);
|
||||
this.innerVisiblexg = false;
|
||||
this.form.nursename = row.nurseStationName;
|
||||
},
|
||||
// 所属科室
|
||||
StationDepartmentclick(row) {
|
||||
console.log(row);
|
||||
@ -1261,18 +1416,16 @@ export default {
|
||||
});
|
||||
},
|
||||
getList2() {
|
||||
// 护理站名称
|
||||
this.loading = true;
|
||||
getListByUser(this.StationqueryParams).then((res) => {
|
||||
this.nursetotal = res.total;
|
||||
this.nurseStationlist = res.rows;
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getList3() {
|
||||
this.loading = true;
|
||||
StationDepartmentList(this.queryParams3).then((res) => {
|
||||
this.StationDepartmentLists = res.rows;
|
||||
this.departtotal = res.total;
|
||||
this.total3 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@ -1280,7 +1433,7 @@ export default {
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.open2 = false;
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.nurseStationName = "请选择护理站名称";
|
||||
this.departmentName = "请选择所属科室";
|
||||
// this.upload.open=false;
|
||||
this.reset();
|
||||
@ -1301,7 +1454,7 @@ export default {
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
departmentName: "请选择所属科室",
|
||||
nurseStationPersonList: [
|
||||
{
|
||||
@ -1311,7 +1464,7 @@ export default {
|
||||
nursePersonCode: "",
|
||||
nursePersonName: "",
|
||||
nursePersonType: "",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
phone: "",
|
||||
address: "",
|
||||
sex: "",
|
||||
@ -1321,52 +1474,54 @@ export default {
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery2() {
|
||||
this.StationqueryParams.pageNum = 1;
|
||||
this.getList2();
|
||||
this.queryParams.pageNum = 1;
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.innerVisible = true;
|
||||
},
|
||||
// 修改护理站弹框的搜索
|
||||
handleQuery4() {
|
||||
this.StationqueryParams.pageNum = 1;
|
||||
this.getList2();
|
||||
},
|
||||
//修改所属科室
|
||||
|
||||
handleQuery3() {
|
||||
this.queryParams3.pageNum = 1;
|
||||
this.getList3();
|
||||
},
|
||||
handleQuery() {
|
||||
console.log(this.queryParams3);
|
||||
StationDepartmentList(this.queryParams3).then((response) => {
|
||||
this.StationDepartmentLists = response.rows;
|
||||
this.total3 = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
handleQuery() {
|
||||
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||
// console.log(res);
|
||||
// this.nurseStationlist = res.rows;
|
||||
// this.total4 = res.total;
|
||||
// console.log(this.nurseStationlist);
|
||||
// });
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
// this.nurselist()
|
||||
// this.stationList();
|
||||
// this.nurseStationlist()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
addcancel() {
|
||||
this.innerVisible = false;
|
||||
this.innerVisiblexg = false;
|
||||
this.resetQuery2();
|
||||
},
|
||||
departcancel() {
|
||||
this.innerVisible2 = false;
|
||||
this.innerVisiblexg2 = false;
|
||||
this.resetQuery3();
|
||||
},
|
||||
resetQuery2() {
|
||||
this.resetForm("queryForm");
|
||||
this.StationqueryParams = {
|
||||
this.queryParams2 = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
|
||||
nurseStationName: null,
|
||||
id: null,
|
||||
nurseStationId: null,
|
||||
};
|
||||
this.handleQuery2();
|
||||
},
|
||||
resetQuery4() {
|
||||
this.resetForm("queryForm");
|
||||
this.StationqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
};
|
||||
this.handleQuery4();
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
});
|
||||
},
|
||||
resetQuery3() {
|
||||
this.queryParams3 = {
|
||||
@ -1378,8 +1533,13 @@ export default {
|
||||
departmentName: null,
|
||||
nurseStationId: null,
|
||||
};
|
||||
this.handleQuery3();
|
||||
StationDepartmentList(this.queryParams3).then((response) => {
|
||||
this.StationDepartmentLists = response.rows;
|
||||
this.total3 = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
||||
resetQuery() {
|
||||
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||
this.resetForm("queryForm");
|
||||
@ -1395,6 +1555,7 @@ export default {
|
||||
phone: null,
|
||||
address: null,
|
||||
};
|
||||
|
||||
this.handleQuery();
|
||||
} else {
|
||||
console.log(1);
|
||||
@ -1417,14 +1578,16 @@ export default {
|
||||
this.reset();
|
||||
this.open2 = true;
|
||||
this.title = "添加护理站人员信息";
|
||||
this.title2 = "请选择所属护理站";
|
||||
this.title2 = "请选择护理站";
|
||||
this.title3 = "请选择科室";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
// this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getPerson(id).then((response) => {
|
||||
console.log(response);
|
||||
// this.departmentName="请选择科室"
|
||||
this.departmentName = response.data.departmentName;
|
||||
this.nurseStationName = response.data.nurseStationName;
|
||||
this.form = response.data;
|
||||
@ -1441,6 +1604,9 @@ export default {
|
||||
submitForm() {
|
||||
console.log(this.form);
|
||||
this.$refs["form"].validate((valid) => {
|
||||
// this.form.nursename = null;
|
||||
// this.form.nurseStationId = null;
|
||||
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updatePerson(this.form).then((response) => {
|
||||
@ -1453,7 +1619,7 @@ export default {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open2 = false;
|
||||
this.getList();
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.nurseStationName = "请选择护理站名称";
|
||||
this.departmentName = "请选择所属科室";
|
||||
});
|
||||
}
|
||||
@ -1529,9 +1695,9 @@ export default {
|
||||
if (res.rows[0].isAdmin == "1") {
|
||||
console.log(true);
|
||||
this.nurseStationlist = res.rows;
|
||||
this.nursetotal = res.total;
|
||||
this.total5 = res.total;
|
||||
} else {
|
||||
this.nursetotal = res.total;
|
||||
this.total5 = res.total;
|
||||
this.nurseStationlist = res.rows;
|
||||
this.queryParams.nurseStationId = res.rows[0].id;
|
||||
this.handleQuery();
|
||||
@ -1540,8 +1706,8 @@ export default {
|
||||
},
|
||||
//滑动下拉框
|
||||
loadMore() {
|
||||
var a = Math.ceil(this.nursetotal / 10);
|
||||
if (this.nurseStationlist.length + 1 >= this.nursetotal) {
|
||||
var a = Math.ceil(this.total5 / 10);
|
||||
if (this.nurseStationlist.length + 1 >= this.total5) {
|
||||
} else {
|
||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
||||
} else {
|
||||
@ -1556,6 +1722,24 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
// loadMore() {
|
||||
// console.log("1");
|
||||
// var a = Math.ceil(this.total4 / 10);
|
||||
// console.log(this.nurseStationlist.length);
|
||||
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||
// } else {
|
||||
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||
// } else {
|
||||
// this.nurseStationqueryParams.pageNum++;
|
||||
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||
// console.log(res);
|
||||
// res.rows.forEach((e) => {
|
||||
// this.nurseStationlist.push(e);
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user