更改护理站人员
This commit is contained in:
parent
9f6d7cfcd6
commit
65cecc8426
@ -125,17 +125,6 @@
|
||||
>导入</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"
|
||||
@ -237,7 +226,7 @@
|
||||
<el-button
|
||||
type=""
|
||||
@click="clickinnerVisible(item, index)"
|
||||
v-if="item.nurseStationName == '请选择护理站名称'"
|
||||
v-if="item.nurseStationName == '请选择所属护理站'"
|
||||
style="
|
||||
width: 200px;
|
||||
text-align: left;
|
||||
@ -265,8 +254,8 @@
|
||||
<el-form-item
|
||||
label="所属科室"
|
||||
label-width="120px"
|
||||
:rules="rules.nurseStationPersonList.departmentName"
|
||||
:prop="`nurseStationPersonList.${index}.departmentName`"
|
||||
:rules="rules.nurseStationPersonList.departmentCode"
|
||||
:prop="`nurseStationPersonList.${index}.departmentCode`"
|
||||
>
|
||||
<el-button
|
||||
type=""
|
||||
@ -397,39 +386,30 @@
|
||||
<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="queryParams2"
|
||||
:model="nurseStationqueryParams"
|
||||
: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="queryParams2.nurseStationCode"
|
||||
v-model="nurseStationqueryParams.nurseStationCode"
|
||||
placeholder="请输入护理站编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@ -438,10 +418,9 @@
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="queryParams2.nurseStationName"
|
||||
v-model="nurseStationqueryParams.nurseStationName"
|
||||
placeholder="请输入护理站名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -457,8 +436,8 @@
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="stationLists" @cell-dblclick="nurseclick">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -478,55 +457,33 @@
|
||||
<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="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="address"
|
||||
label="护理地址"
|
||||
width="150"
|
||||
label="护理站地址"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="queryParams2.pageNum"
|
||||
:limit.sync="queryParams2.pageSize"
|
||||
@pagination="handleQuery2"
|
||||
v-show="nursetotal > 0"
|
||||
:total="nursetotal"
|
||||
:page.sync="nurseStationqueryParams.pageNum"
|
||||
:limit.sync="nurseStationqueryParams.pageSize"
|
||||
@pagination="info"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 修改护理站名称弹框 -->
|
||||
@ -535,32 +492,24 @@
|
||||
:visible.sync="innerVisiblexg"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="addcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="queryParams2"
|
||||
:model="nurseStationqueryParams"
|
||||
: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="queryParams2.nurseStationCode"
|
||||
v-model="nurseStationqueryParams.nurseStationCode"
|
||||
placeholder="请输入护理站编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@ -569,10 +518,9 @@
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="queryParams2.nurseStationName"
|
||||
v-model="nurseStationqueryParams.nurseStationName"
|
||||
placeholder="请输入护理站名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -580,16 +528,16 @@
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery2"
|
||||
@click="handleQuery4"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2"
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery4"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="stationLists" @cell-dblclick="nurseclick2">
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick2">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -609,53 +557,26 @@
|
||||
<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
|
||||
label="护理站类型"
|
||||
align="center"
|
||||
prop="nurseStationType"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140018" ? "生活护理" : ""
|
||||
}}
|
||||
{{
|
||||
scope.row.nurseStationType == "LX202209140019" ? "医疗护理" : ""
|
||||
}}
|
||||
</template>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
</el-table-column>
|
||||
|
||||
<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 property="address" label="护理站地址" align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total2 > 0"
|
||||
:total="total2"
|
||||
:page.sync="queryParams2.pageNum"
|
||||
:limit.sync="queryParams2.pageSize"
|
||||
@pagination="handleQuery2"
|
||||
v-show="nursetotal > 0"
|
||||
:total="nursetotal"
|
||||
:page.sync="nurseStationqueryParams.pageNum"
|
||||
:limit.sync="nurseStationqueryParams.pageSize"
|
||||
@pagination="info"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 所属科室弹框 -->
|
||||
@ -664,6 +585,7 @@
|
||||
:visible.sync="innerVisible2"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="departcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
@ -677,7 +599,6 @@
|
||||
v-model="queryParams3.departmentCode"
|
||||
placeholder="请输入科室编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="科室名称" prop="" label-width="120">
|
||||
@ -685,7 +606,6 @@
|
||||
v-model="queryParams3.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -705,7 +625,7 @@
|
||||
:data="StationDepartmentLists"
|
||||
@cell-dblclick="StationDepartmentclick"
|
||||
>
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -721,18 +641,22 @@
|
||||
@click="StationDepartmentclick(scope.row)"
|
||||
></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="nurseStationName"
|
||||
label="护理站名称"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<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>
|
||||
@ -740,24 +664,18 @@
|
||||
<el-table-column
|
||||
property="departmentPerson"
|
||||
label="科室负责人"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total3 > 0"
|
||||
:total="total3"
|
||||
v-show="departtotal > 0"
|
||||
:total="departtotal"
|
||||
:page.sync="queryParams3.pageNum"
|
||||
:limit.sync="queryParams3.pageSize"
|
||||
@pagination="handleQuery3"
|
||||
@pagination="getList3"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!-- 修改所属科室弹框 -->
|
||||
@ -766,6 +684,7 @@
|
||||
:visible.sync="innerVisiblexg2"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="departcancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
@ -774,20 +693,11 @@
|
||||
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">
|
||||
@ -795,7 +705,6 @@
|
||||
v-model="queryParams3.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -815,7 +724,7 @@
|
||||
:data="StationDepartmentLists"
|
||||
@cell-dblclick="StationDepartmentclick2"
|
||||
>
|
||||
<el-table-column label="请选择" width="70" align="center">
|
||||
<el-table-column label="请选择" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -835,14 +744,12 @@
|
||||
<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>
|
||||
@ -850,27 +757,20 @@
|
||||
<el-table-column
|
||||
property="departmentPerson"
|
||||
label="科室负责人"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
property="phone"
|
||||
label="联系电话"
|
||||
width="150"
|
||||
align="center"
|
||||
>
|
||||
<el-table-column property="phone" label="联系电话" align="center">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total3 > 0"
|
||||
:total="total3"
|
||||
v-show="departtotal > 0"
|
||||
:total="departtotal"
|
||||
:page.sync="queryParams3.pageNum"
|
||||
:limit.sync="queryParams3.pageSize"
|
||||
@pagination="handleQuery3"
|
||||
@pagination="getList3"
|
||||
/>
|
||||
</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">
|
||||
@ -881,17 +781,15 @@
|
||||
style="margin-left: -20px"
|
||||
>
|
||||
<el-button
|
||||
disabled
|
||||
type=""
|
||||
@click="clickinnerVisible2"
|
||||
v-if="nurseStationName == '请选择护理站名称'"
|
||||
@click="departclickxg"
|
||||
v-if="nurseStationName == '请选择所属护理站'"
|
||||
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
||||
>{{ nurseStationName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
disabled
|
||||
type=""
|
||||
@click="clickinnerVisible2"
|
||||
@click="departclickxg()"
|
||||
v-else
|
||||
style="
|
||||
width: 362px;
|
||||
@ -929,19 +827,14 @@
|
||||
>{{ 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"
|
||||
label-width="120px"
|
||||
style="margin-left: -22px"
|
||||
>
|
||||
<el-form-item label="护理人职称" prop="nursePersonType">
|
||||
<el-select
|
||||
v-model="form.nursePersonType"
|
||||
clearable
|
||||
@ -1124,12 +1017,9 @@ export default {
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
// total:null,
|
||||
total: 0,
|
||||
total2: 0,
|
||||
total3: 0,
|
||||
total4: 0,
|
||||
total5: 0,
|
||||
departtotal: 0,
|
||||
nursetotal: 0,
|
||||
// 护理站人员信息表格数据
|
||||
nurseStationPersonList: [],
|
||||
// 护理站名称
|
||||
@ -1140,14 +1030,15 @@ export default {
|
||||
stationid: "",
|
||||
stationid2: "",
|
||||
departid: "",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
departmentName: "请选择所属科室",
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title2: "",
|
||||
title3: "",
|
||||
// 是否显示弹出层
|
||||
// 修改弹出层
|
||||
open: false,
|
||||
// 添加弹出层
|
||||
open2: false,
|
||||
//权限查询
|
||||
// 查询参数
|
||||
@ -1186,15 +1077,25 @@ 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" },
|
||||
@ -1215,15 +1116,15 @@ export default {
|
||||
nursePersonName: [
|
||||
{
|
||||
required: true,
|
||||
message: "护理站人员名称不能为空",
|
||||
message: "请选择所属护理站",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
departmentName: [
|
||||
departmentCode: [
|
||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||
],
|
||||
nurseStationId: [
|
||||
{ required: true, message: "所属护理站不能为空", trigger: "blur" },
|
||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
||||
],
|
||||
nursePersonName: [
|
||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||
@ -1243,90 +1144,61 @@ 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.form.nurseStationId
|
||||
if(this.form.nurseStationId == null){
|
||||
this.innerVisible2 = false;
|
||||
this.$message.error('请先选择所属护理站');
|
||||
|
||||
}else{
|
||||
|
||||
this.getList3();
|
||||
console.log(item);
|
||||
this.departid = item.departmentCode;
|
||||
this.innerVisible2 = true;
|
||||
this.index = index;
|
||||
}
|
||||
|
||||
},
|
||||
// // 修改所属科室按钮
|
||||
departclick2() {
|
||||
StationDepartmentList(this.queryParams3).then((res) => {
|
||||
this.StationDepartmentLists = res.rows;
|
||||
this.total3 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
// console.log(item);
|
||||
this.getList3();
|
||||
this.departid2 = this.form.departmentCode;
|
||||
this.innerVisiblexg2 = true;
|
||||
// this.index = index;
|
||||
},
|
||||
//修改护理站按钮
|
||||
departclickxg() {
|
||||
this.info();
|
||||
this.stationid2 = this.form.nurseStationId;
|
||||
this.innerVisiblexg = true;
|
||||
this.index = index;
|
||||
},
|
||||
// 新增护理站按钮
|
||||
clickinnerVisible(item, index) {
|
||||
// console.log(item);
|
||||
this.info();
|
||||
this.stationid = item.nurseStationId;
|
||||
this.innerVisible = true;
|
||||
this.index = index;
|
||||
},
|
||||
// 修改护理站按钮
|
||||
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);
|
||||
});
|
||||
// 修改护理站
|
||||
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;
|
||||
},
|
||||
//删除deldisease
|
||||
deldisease(index) {
|
||||
@ -1335,8 +1207,6 @@ export default {
|
||||
},
|
||||
|
||||
adddisease() {
|
||||
// this.nurseStationName = "请选择护理站名称";
|
||||
// this.departmentName=""
|
||||
var obj = {
|
||||
nursePersonCode: "",
|
||||
nursePersonCode: "",
|
||||
@ -1346,7 +1216,6 @@ export default {
|
||||
address: "",
|
||||
sex: "",
|
||||
nurseStationId: "",
|
||||
|
||||
departmentName: "请选择所属科室",
|
||||
// departname: "",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
@ -1363,6 +1232,7 @@ export default {
|
||||
this.nursename = row.nurseStationName;
|
||||
this.stationid = row.id;
|
||||
this.form.nurseStationId = row.id;
|
||||
console.log(this.form.nurseStationId);
|
||||
console.log(this.form);
|
||||
this.innerVisible = false;
|
||||
this.form.nursename = row.nurseStationName;
|
||||
@ -1370,16 +1240,7 @@ 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);
|
||||
@ -1415,17 +1276,19 @@ export default {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getList2() {
|
||||
// 护理站名称
|
||||
// getList2() {
|
||||
// this.loading = true;
|
||||
// getListByUser(this.StationqueryParams).then((res) => {
|
||||
// this.nursetotal = res.total;
|
||||
// this.nurseStationlist = res.rows;
|
||||
// this.loading = false;
|
||||
// });
|
||||
// },
|
||||
getList3() {
|
||||
this.loading = true;
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
StationDepartmentList(this.queryParams3).then((res) => {
|
||||
this.StationDepartmentLists = res.rows;
|
||||
this.total3 = res.total;
|
||||
this.departtotal = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@ -1433,7 +1296,7 @@ export default {
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.open2 = false;
|
||||
this.nurseStationName = "请选择护理站名称";
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.departmentName = "请选择所属科室";
|
||||
// this.upload.open=false;
|
||||
this.reset();
|
||||
@ -1454,7 +1317,7 @@ export default {
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
nurseStationName: "请选择护理站名称",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
departmentName: "请选择所属科室",
|
||||
nurseStationPersonList: [
|
||||
{
|
||||
@ -1464,7 +1327,7 @@ export default {
|
||||
nursePersonCode: "",
|
||||
nursePersonName: "",
|
||||
nursePersonType: "",
|
||||
nurseStationName: "请选择护理站名称",
|
||||
nurseStationName: "请选择所属护理站",
|
||||
phone: "",
|
||||
address: "",
|
||||
sex: "",
|
||||
@ -1474,54 +1337,51 @@ export default {
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery2() {
|
||||
this.queryParams.pageNum = 1;
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.innerVisible = true;
|
||||
this.nurseStationqueryParams.pageNum = 1;
|
||||
this.info();
|
||||
},
|
||||
|
||||
// 修改护理站弹框的搜索
|
||||
handleQuery4() {
|
||||
this.nurseStationqueryParams.pageNum = 1;
|
||||
this.info();
|
||||
},
|
||||
//修改所属科室
|
||||
handleQuery3() {
|
||||
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();
|
||||
this.queryParams3.pageNum = 1;
|
||||
this.getList3();
|
||||
},
|
||||
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.queryParams2 = {
|
||||
this.resetForm("queryForm");
|
||||
this.nurseStationqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
nurseStationName: null,
|
||||
id: null,
|
||||
nurseStationId: null,
|
||||
};
|
||||
stationList(this.queryParams2).then((res) => {
|
||||
this.stationLists = res.rows;
|
||||
this.total2 = res.total;
|
||||
});
|
||||
this.handleQuery2();
|
||||
},
|
||||
resetQuery4() {
|
||||
this.resetForm("queryForm");
|
||||
this.nurseStationqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
};
|
||||
this.handleQuery4();
|
||||
},
|
||||
resetQuery3() {
|
||||
this.queryParams3 = {
|
||||
@ -1533,13 +1393,8 @@ export default {
|
||||
departmentName: null,
|
||||
nurseStationId: null,
|
||||
};
|
||||
StationDepartmentList(this.queryParams3).then((response) => {
|
||||
this.StationDepartmentLists = response.rows;
|
||||
this.total3 = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.handleQuery3();
|
||||
},
|
||||
|
||||
resetQuery() {
|
||||
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||
this.resetForm("queryForm");
|
||||
@ -1555,7 +1410,6 @@ export default {
|
||||
phone: null,
|
||||
address: null,
|
||||
};
|
||||
|
||||
this.handleQuery();
|
||||
} else {
|
||||
console.log(1);
|
||||
@ -1578,16 +1432,14 @@ 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;
|
||||
@ -1604,9 +1456,6 @@ 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) => {
|
||||
@ -1619,7 +1468,7 @@ export default {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open2 = false;
|
||||
this.getList();
|
||||
this.nurseStationName = "请选择护理站名称";
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
this.departmentName = "请选择所属科室";
|
||||
});
|
||||
}
|
||||
@ -1695,19 +1544,20 @@ export default {
|
||||
if (res.rows[0].isAdmin == "1") {
|
||||
console.log(true);
|
||||
this.nurseStationlist = res.rows;
|
||||
this.total5 = res.total;
|
||||
this.nursetotal = res.total;
|
||||
} else {
|
||||
this.total5 = res.total;
|
||||
this.nursetotal = res.total;
|
||||
this.nurseStationlist = res.rows;
|
||||
this.queryParams.nurseStationId = res.rows[0].id;
|
||||
this.queryParams3.nurseStationId = res.rows[0].id;
|
||||
this.handleQuery();
|
||||
}
|
||||
});
|
||||
},
|
||||
//滑动下拉框
|
||||
loadMore() {
|
||||
var a = Math.ceil(this.total5 / 10);
|
||||
if (this.nurseStationlist.length + 1 >= this.total5) {
|
||||
var a = Math.ceil(this.nursetotal / 10);
|
||||
if (this.nurseStationlist.length + 1 >= this.nursetotal) {
|
||||
} else {
|
||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
||||
} else {
|
||||
@ -1722,24 +1572,6 @@ 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