护理站人员的修改护理站

This commit is contained in:
闫晓茹 2022-11-10 18:40:08 +08:00
parent c3471bf14d
commit e3cd67cbb7

View File

@ -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,7 +1071,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
StationqueryParams:{ StationqueryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}, },
@ -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);
@ -1272,7 +1268,7 @@ export default {
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;
@ -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") {