护理站人员修改姓名

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