护理站人员修改姓名
This commit is contained in:
parent
99a5c541c5
commit
58b02d91c4
@ -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"
|
||||||
@ -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>
|
||||||
@ -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;
|
||||||
@ -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");
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
@ -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);
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user