护理站人员修改姓名

This commit is contained in:
闫晓茹 2022-11-07 16:22:01 +08:00
parent 99a5c541c5
commit 58b02d91c4

View File

@ -8,10 +8,13 @@
v-show="showSearch" v-show="showSearch"
label-width="68px" label-width="68px"
> >
<el-form-item label="护理站" prop="nurseStationId" v-if="nurseStationlist.find((e) => e.isAdmin == '1')"> <el-form-item
label="护理站"
prop="nurseStationId"
v-if="nurseStationlist.find((e) => e.isAdmin == '1')"
>
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
v-loadmore="loadMore" v-loadmore="loadMore"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
@ -26,7 +29,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="护理站" prop="nurseStationId" v-else> <el-form-item label="护理站" prop="nurseStationId" v-else>
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
@ -41,7 +44,11 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="所属科室" prop="departmentName" style="margin-left:25px"> <el-form-item
label="所属科室"
prop="departmentName"
style="margin-left: 25px"
>
<el-input <el-input
v-model="queryParams.departmentName" v-model="queryParams.departmentName"
placeholder="请输入所属科室" placeholder="请输入所属科室"
@ -159,7 +166,12 @@
</el-table-column> </el-table-column>
<el-table-column label="联系电话" align="center" prop="phone" /> <el-table-column label="联系电话" align="center" prop="phone" />
<el-table-column label="居住地址" align="center" prop="address" :show-overflow-tooltip="true"/> <el-table-column
label="居住地址"
align="center"
prop="address"
:show-overflow-tooltip="true"
/>
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createTime" /> <el-table-column label="创建时间" align="center" prop="createTime" />
@ -223,7 +235,6 @@
:prop="`nurseStationPersonList.${index}.nurseStationId`" :prop="`nurseStationPersonList.${index}.nurseStationId`"
> >
<el-button <el-button
type="" type=""
@click="clickinnerVisible(item, index)" @click="clickinnerVisible(item, index)"
v-if="item.nurseStationName == '请选择护理站名称'" v-if="item.nurseStationName == '请选择护理站名称'"
@ -237,7 +248,6 @@
>{{ item.nurseStationName }}</el-button >{{ item.nurseStationName }}</el-button
> >
<el-button <el-button
type="" type=""
@click="clickinnerVisible(item, index)" @click="clickinnerVisible(item, index)"
v-else v-else
@ -699,14 +709,14 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary"
style="width: 15px; height: 15px;overflow: hidden;" style="width: 15px; height: 15px; overflow: hidden"
v-if="departid == scope.row.departmentCode" v-if="departid == scope.row.departmentCode"
circle circle
@click="StationDepartmentclick(scope.row)" @click="StationDepartmentclick(scope.row)"
></el-button> ></el-button>
<el-button <el-button
v-else v-else
style="width: 15px; height: 15px;overflow: hidden;" style="width: 15px; height: 15px; overflow: hidden"
circle circle
@click="StationDepartmentclick(scope.row)" @click="StationDepartmentclick(scope.row)"
></el-button> ></el-button>
@ -871,7 +881,7 @@
style="margin-left: -20px" style="margin-left: -20px"
> >
<el-button <el-button
disabled disabled
type="" type=""
@click="clickinnerVisible2" @click="clickinnerVisible2"
v-if="nurseStationName == '请选择护理站名称'" v-if="nurseStationName == '请选择护理站名称'"
@ -879,7 +889,7 @@
>{{ nurseStationName }}</el-button >{{ nurseStationName }}</el-button
> >
<el-button <el-button
disabled disabled
type="" type=""
@click="clickinnerVisible2" @click="clickinnerVisible2"
v-else v-else
@ -919,6 +929,13 @@
>{{ departmentName }}</el-button >{{ departmentName }}</el-button
> >
</el-form-item> </el-form-item>
<el-form-item label="姓名" prop="nursePersonName" >
<el-input
maxlength="15"
v-model="form.nursePersonName"
placeholder="请输入姓名"
/>
</el-form-item>
<el-form-item <el-form-item
label="护理人职称" label="护理人职称"
prop="nursePersonType" prop="nursePersonType"
@ -963,7 +980,6 @@
maxlength="11" maxlength="11"
/> />
</el-form-item> </el-form-item>
<el-form-item label="居住地址" prop="address"> <el-form-item label="居住地址" prop="address">
<el-input <el-input
v-model="form.address" v-model="form.address"
@ -1176,21 +1192,9 @@ export default {
index: "", index: "",
// //
rules: { rules: {
nursePersonName: [ nursePersonName: [
{ { required: true, message: "姓名不能为空", trigger: "blur" },
required: true,
message: "护理站人员名称不能为空",
trigger: "blur",
},
],
// departmentName: [
// { required: true, message: "", trigger: "blur" },
// ],
// nurseStationId: [
// { required: true, message: "", trigger: "blur" },
// ],
nursePersonName: [
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
], ],
nursePersonType: [ nursePersonType: [
{ required: true, message: "护理人职称不能为空", trigger: "blur" }, { required: true, message: "护理人职称不能为空", trigger: "blur" },
@ -1261,7 +1265,6 @@ export default {
methods: { methods: {
// // // //
departclick(item, index) { departclick(item, index) {
console.log(item); console.log(item);
this.departid = item.departmentCode; this.departid = item.departmentCode;
this.innerVisible2 = true; this.innerVisible2 = true;
@ -1281,7 +1284,6 @@ export default {
}, },
// //
clickinnerVisible(item, index) { clickinnerVisible(item, index) {
// console.log(item); // console.log(item);
this.stationid = item.nurseStationId; this.stationid = item.nurseStationId;
this.innerVisible = true; this.innerVisible = true;
@ -1415,8 +1417,8 @@ export default {
}, },
getList2() { getList2() {
// //
this.loading = true; this.loading = true;
stationList(this.queryParams2).then((res) => { stationList(this.queryParams2).then((res) => {
this.stationLists = res.rows; this.stationLists = res.rows;
this.total2 = res.total; this.total2 = res.total;
this.loading = false; this.loading = false;
@ -1426,7 +1428,6 @@ export default {
this.total3 = res.total; this.total3 = res.total;
this.loading = false; this.loading = false;
}); });
}, },
// //
cancel() { cancel() {
@ -1439,7 +1440,6 @@ export default {
}, },
// //
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
nurseStationId: null, nurseStationId: null,
@ -1473,7 +1473,6 @@ export default {
], ],
}; };
this.resetForm("form"); this.resetForm("form");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
@ -1543,22 +1542,22 @@ export default {
resetQuery() { resetQuery() {
if (this.nurseStationlist[0].isAdmin == "1") { if (this.nurseStationlist[0].isAdmin == "1") {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
nurseStationId: null, nurseStationId: null,
departmentCode: null, departmentCode: null,
userId: null, userId: null,
nursePersonCode: null, nursePersonCode: null,
nursePersonName: null, nursePersonName: null,
nursePersonType: null, nursePersonType: null,
phone: null, phone: null,
address: null, address: null,
}; };
this.handleQuery(); this.handleQuery();
} else { } else {
console.log(1); console.log(1);
console.log(this.nurseStationlist); console.log(this.nurseStationlist);
this.queryParams.departmentName = null; this.queryParams.departmentName = null;
@ -1596,10 +1595,9 @@ export default {
this.title = "修改护理站人员信息"; this.title = "修改护理站人员信息";
if (this.departmentName == null && this.departmentName == undefined) { if (this.departmentName == null && this.departmentName == undefined) {
this.departmentName = "请选择所属科室"; this.departmentName = "请选择所属科室";
} else{ } else {
this.departmentName = response.data.departmentName; this.departmentName = response.data.departmentName;
} }
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -1632,7 +1630,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm('是否确认删除护理站人员信息的数据项?') .confirm("是否确认删除护理站人员信息的数据项?")
.then(function () { .then(function () {
return delPerson(ids); return delPerson(ids);
}) })
@ -1690,7 +1688,7 @@ export default {
`person_${new Date().getTime()}.xlsx` `person_${new Date().getTime()}.xlsx`
); );
}, },
// //
info() { info() {
getListByUser(this.nurseStationqueryParams).then((res) => { getListByUser(this.nurseStationqueryParams).then((res) => {
console.log(res); console.log(res);