护理站人员的修改护理站
This commit is contained in:
parent
c3471bf14d
commit
e3cd67cbb7
@ -496,7 +496,7 @@
|
|||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
:model="StationqueryParams"
|
:model="StationqueryParams"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
@ -528,15 +528,15 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleQuery2"
|
@click="handleQuery4"
|
||||||
>搜索</el-button
|
>搜索</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-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="stationLists" @cell-dblclick="nurseclick2">
|
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick2">
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<el-table-column label="请选择" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -692,7 +692,6 @@
|
|||||||
v-model="queryParams3.departmentCode"
|
v-model="queryParams3.departmentCode"
|
||||||
placeholder="请输入科室编码"
|
placeholder="请输入科室编码"
|
||||||
clearable
|
clearable
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室名称" prop="" label-width="120">
|
<el-form-item label="科室名称" prop="" label-width="120">
|
||||||
@ -700,7 +699,6 @@
|
|||||||
v-model="queryParams3.departmentName"
|
v-model="queryParams3.departmentName"
|
||||||
placeholder="请输入科室名称"
|
placeholder="请输入科室名称"
|
||||||
clearable
|
clearable
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -777,15 +775,15 @@
|
|||||||
style="margin-left: -20px"
|
style="margin-left: -20px"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
disabled
|
|
||||||
type=""
|
type=""
|
||||||
|
@click="departclickxg"
|
||||||
v-if="nurseStationName == '请选择所属护理站'"
|
v-if="nurseStationName == '请选择所属护理站'"
|
||||||
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
style="width: 362px; text-align: left; height: 36px; color: #c0c4cc"
|
||||||
>{{ nurseStationName }}</el-button
|
>{{ nurseStationName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
disabled
|
|
||||||
type=""
|
type=""
|
||||||
|
@click="departclickxg()"
|
||||||
v-else
|
v-else
|
||||||
style="
|
style="
|
||||||
width: 362px;
|
width: 362px;
|
||||||
@ -823,17 +821,14 @@
|
|||||||
>{{ departmentName }}</el-button
|
>{{ departmentName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="姓名" prop="nursePersonName" >
|
<el-form-item label="姓名" prop="nursePersonName">
|
||||||
<el-input
|
<el-input
|
||||||
maxlength="15"
|
maxlength="15"
|
||||||
v-model="form.nursePersonName"
|
v-model="form.nursePersonName"
|
||||||
placeholder="请输入姓名"
|
placeholder="请输入姓名"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="护理人职称" prop="nursePersonType">
|
||||||
label="护理人职称"
|
|
||||||
prop="nursePersonType"
|
|
||||||
>
|
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.nursePersonType"
|
v-model="form.nursePersonType"
|
||||||
clearable
|
clearable
|
||||||
@ -1076,8 +1071,8 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
StationqueryParams:{
|
StationqueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1086,9 +1081,9 @@ export default {
|
|||||||
index: "",
|
index: "",
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
nurseStationId: [
|
nurseStationId: [
|
||||||
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
{ required: true, message: "请选择所属护理站", trigger: "blur" },
|
||||||
],
|
],
|
||||||
departmentName: [
|
departmentName: [
|
||||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -1163,15 +1158,17 @@ export default {
|
|||||||
// // 修改所属科室按钮
|
// // 修改所属科室按钮
|
||||||
departclick2() {
|
departclick2() {
|
||||||
this.getList3();
|
this.getList3();
|
||||||
// StationDepartmentList(this.queryParams3).then((res) => {
|
|
||||||
// this.StationDepartmentLists = res.rows;
|
|
||||||
// this.departtotal = res.total;
|
|
||||||
// this.loading = false;
|
|
||||||
// });
|
|
||||||
this.departid2 = this.form.departmentCode;
|
this.departid2 = this.form.departmentCode;
|
||||||
this.innerVisiblexg2 = true;
|
this.innerVisiblexg2 = true;
|
||||||
// this.index = index;
|
// this.index = index;
|
||||||
},
|
},
|
||||||
|
//修改护理站按钮
|
||||||
|
departclickxg() {
|
||||||
|
this.getList2();
|
||||||
|
this.stationid2 = this.form.nurseStationId;
|
||||||
|
this.innerVisiblexg = true;
|
||||||
|
this.index = index;
|
||||||
|
},
|
||||||
// 新增护理站按钮
|
// 新增护理站按钮
|
||||||
clickinnerVisible(item, index) {
|
clickinnerVisible(item, index) {
|
||||||
this.getList2();
|
this.getList2();
|
||||||
@ -1179,6 +1176,15 @@ export default {
|
|||||||
this.innerVisible = true;
|
this.innerVisible = true;
|
||||||
this.index = index;
|
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;
|
||||||
|
},
|
||||||
//删除deldisease
|
//删除deldisease
|
||||||
deldisease(index) {
|
deldisease(index) {
|
||||||
this.form.nurseStationPersonList.splice(index, 1);
|
this.form.nurseStationPersonList.splice(index, 1);
|
||||||
@ -1186,8 +1192,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
adddisease() {
|
adddisease() {
|
||||||
// this.nurseStationName = "请选择护理站名称";
|
|
||||||
// this.departmentName=""
|
|
||||||
var obj = {
|
var obj = {
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
nursePersonCode: "",
|
nursePersonCode: "",
|
||||||
@ -1220,15 +1224,7 @@ export default {
|
|||||||
row.nurseStationName;
|
row.nurseStationName;
|
||||||
this.form.nurseStationPersonList[this.index].nurseStationId = row.id;
|
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;
|
|
||||||
this.innerVisiblexg = false;
|
|
||||||
this.form.nursename = row.nurseStationName;
|
|
||||||
},
|
|
||||||
// 所属科室
|
// 所属科室
|
||||||
StationDepartmentclick(row) {
|
StationDepartmentclick(row) {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
@ -1266,15 +1262,15 @@ export default {
|
|||||||
},
|
},
|
||||||
getList2() {
|
getList2() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getListByUser(this.StationqueryParams).then((res) => {
|
getListByUser(this.StationqueryParams).then((res) => {
|
||||||
this.nursetotal = res.total;
|
this.nursetotal = res.total;
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist = res.rows;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getList3(){
|
getList3() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
StationDepartmentList(this.queryParams3).then((res) => {
|
StationDepartmentList(this.queryParams3).then((res) => {
|
||||||
this.StationDepartmentLists = res.rows;
|
this.StationDepartmentLists = res.rows;
|
||||||
this.departtotal = res.total;
|
this.departtotal = res.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -1327,12 +1323,16 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery2() {
|
handleQuery2() {
|
||||||
this.nurseStationqueryParams.pageNum = 1;
|
this.getList2();
|
||||||
this.getList2()
|
|
||||||
},
|
},
|
||||||
|
// 修改护理站弹框的搜索
|
||||||
|
handleQuery4() {
|
||||||
|
this.getList2();
|
||||||
|
},
|
||||||
|
//修改所属科室
|
||||||
handleQuery3() {
|
handleQuery3() {
|
||||||
this.queryParams3.pageNum = 1;
|
this.nurseStationqueryParams.pageNum = 1;
|
||||||
this.getList3()
|
this.getList3();
|
||||||
},
|
},
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
@ -1343,24 +1343,30 @@ export default {
|
|||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
this.innerVisiblexg = false;
|
this.innerVisiblexg = false;
|
||||||
this.resetQuery2();
|
this.resetQuery2();
|
||||||
|
|
||||||
},
|
},
|
||||||
departcancel(){
|
departcancel() {
|
||||||
this.innerVisible2 = false;
|
this.innerVisible2 = false;
|
||||||
this.innerVisiblexg2=false;
|
this.innerVisiblexg2 = false;
|
||||||
this.resetQuery3();
|
this.resetQuery3();
|
||||||
},
|
},
|
||||||
|
|
||||||
resetQuery2() {
|
resetQuery2() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
this.nurseStationqueryParams = {
|
this.nurseStationqueryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
nurseStationName: null,
|
|
||||||
id: null,
|
|
||||||
nurseStationId: null,
|
|
||||||
};
|
};
|
||||||
this.handleQuery2();
|
this.handleQuery2();
|
||||||
},
|
},
|
||||||
|
resetQuery4() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.nurseStationqueryParams = {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
};
|
||||||
|
this.handleQuery4();
|
||||||
|
},
|
||||||
resetQuery3() {
|
resetQuery3() {
|
||||||
this.queryParams3 = {
|
this.queryParams3 = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -1371,7 +1377,7 @@ export default {
|
|||||||
departmentName: null,
|
departmentName: null,
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
};
|
};
|
||||||
this.handleQuery3()
|
this.handleQuery3();
|
||||||
},
|
},
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
if (this.nurseStationlist[0].isAdmin == "1") {
|
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user