修改
This commit is contained in:
parent
475c9b426c
commit
1219f19e81
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|||||||
// 查询护理站人员信息列表
|
// 查询护理站人员信息列表
|
||||||
export function listPerson(query) {
|
export function listPerson(query) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/person/getNurseStationPersonList',
|
url: '/system/person/getNurseStationPersonList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@ -11,7 +11,7 @@ export function listPerson(query) {
|
|||||||
// 查询护理站名称
|
// 查询护理站名称
|
||||||
export function stationList(query) {
|
export function stationList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/station/list',
|
url: '/system/station/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@ -20,7 +20,7 @@ export function stationList(query) {
|
|||||||
// 查询所属科室
|
// 查询所属科室
|
||||||
export function StationDepartmentList(query) {
|
export function StationDepartmentList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/StationDepartment/list',
|
url: '/system/StationDepartment/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@ -36,7 +36,7 @@ export function getPerson(id) {
|
|||||||
// 新增护理站人员信息
|
// 新增护理站人员信息
|
||||||
export function addPerson(data) {
|
export function addPerson(data) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/person/add',
|
url: '/system/person/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@ -45,7 +45,7 @@ export function addPerson(data) {
|
|||||||
// 修改护理站人员信息
|
// 修改护理站人员信息
|
||||||
export function updatePerson(data) {
|
export function updatePerson(data) {
|
||||||
return request({
|
return request({
|
||||||
url: 'system/person/edit',
|
url: '/system/person/edit',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@ -58,3 +58,21 @@ export function delPerson(id) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 审核接口根据id查询护理站人员信息以及未审核的证书
|
||||||
|
export function getNurseStationPersonCheck(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/person/getNurseStationPersonCheck/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//审核确定接口
|
||||||
|
export function updateNurseStationPersonChecks(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/person/updateNurseStationPersonChecks',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -123,7 +123,6 @@
|
|||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="护理站名称"
|
label="护理站名称"
|
||||||
align="center"
|
align="center"
|
||||||
@ -146,7 +145,13 @@
|
|||||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" icon="el-icon-s-check">审核</el-button>
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-s-check"
|
||||||
|
@click="handshenhe(scope.row)"
|
||||||
|
v-if="scope.row.modifyInfoFlag==1"
|
||||||
|
>审核</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
@ -470,6 +475,81 @@
|
|||||||
<el-button @click="upload.open = false">取 消</el-button>
|
<el-button @click="upload.open = false">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 审核 -->
|
||||||
|
<el-dialog
|
||||||
|
:title="title"
|
||||||
|
:visible.sync="templeopen"
|
||||||
|
width="1100px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="templeopenfalse"
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form" label-width="100px" :inline="true">
|
||||||
|
<el-form-item label="所属护理站">
|
||||||
|
<div class="text">{{ form.nurseStationName }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属科室">
|
||||||
|
<div class="text">{{ form.departmentName }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="姓名">
|
||||||
|
<div class="text">{{ form.nursePersonName }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="护理人职称">
|
||||||
|
<div class="text">{{ form.nursePersonType }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="性别">
|
||||||
|
<div class="text">
|
||||||
|
{{ form.sex=='MALE'?'男':'' }}
|
||||||
|
{{ form.sex=='FEMALE'?'女':'' }}
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话">
|
||||||
|
<div class="text">{{ form.phone }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="居住地址">
|
||||||
|
<div class="text">{{ form.address }}</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="职称级别">
|
||||||
|
<div class="text">
|
||||||
|
{{ form.positionalTitleLevelCheck=='PRIMARY_LEVEL'?'初级':'' }}
|
||||||
|
{{ form.positionalTitleLevelCheck=='MIDDLE_LEVEL'?'中级':'' }}
|
||||||
|
{{ form.positionalTitleLevelCheck=='HIGH_LEVEL'?'高级':'' }}
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="证书资质">
|
||||||
|
<el-table :data="form.nurseStationPersonCheckList" style="width: 1050px">
|
||||||
|
<el-table-column property="consumableCount" label="证书名称" align="center" width="600px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div
|
||||||
|
style="text-align:left;width:500px"
|
||||||
|
class="text"
|
||||||
|
>{{ scope.row.certificateName }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="certificateUrl" label="证书图片" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<img :src="baseurl+scope.row.certificateUrl" alt style="width:100px;height:100px" />
|
||||||
|
<!-- <stationAcatar
|
||||||
|
@imgUrl="imgUrl"
|
||||||
|
@item="imgclassifyItem"
|
||||||
|
:img="scope.row.certificateUrl"
|
||||||
|
:item="scope.row"
|
||||||
|
:type="'personCertificateUrl'"
|
||||||
|
/>-->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="sort" label="证书排序" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div style="text-align:left;width:200px" class="text">{{ scope.row.sort }}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="templesubmit">确 定</el-button>
|
||||||
|
<el-button @click="templeopen=false">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -477,3 +557,15 @@
|
|||||||
import personjs from "./personjs";
|
import personjs from "./personjs";
|
||||||
export default personjs;
|
export default personjs;
|
||||||
</script>
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.text {
|
||||||
|
width: 400px;
|
||||||
|
height: 40px;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 40px;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding-left: 20px;
|
||||||
|
border: 1px solid #e6ebf5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@ -6,11 +6,13 @@ import {
|
|||||||
updatePerson,
|
updatePerson,
|
||||||
stationList,
|
stationList,
|
||||||
StationDepartmentList,
|
StationDepartmentList,
|
||||||
|
getNurseStationPersonCheck,
|
||||||
|
updateNurseStationPersonChecks
|
||||||
} from "@/api/system/person";
|
} from "@/api/system/person";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import { getListByUser } from "@/api/system/userlist.js";
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
|
import baseurl from '@/api/baseurl'
|
||||||
export default {
|
export default {
|
||||||
components: { stationAcatar },
|
components: { stationAcatar },
|
||||||
name: "Person",
|
name: "Person",
|
||||||
@ -36,6 +38,7 @@ export default {
|
|||||||
cb(new Error("请输入正确的联系电话"));
|
cb(new Error("请输入正确的联系电话"));
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
baseurl: null,
|
||||||
//男女选择
|
//男女选择
|
||||||
positionalTitleLevellist: [{
|
positionalTitleLevellist: [{
|
||||||
label: "初级",
|
label: "初级",
|
||||||
@ -123,8 +126,8 @@ export default {
|
|||||||
title3: "",
|
title3: "",
|
||||||
// 修改弹出层
|
// 修改弹出层
|
||||||
open: false,
|
open: false,
|
||||||
|
templeopen: false,
|
||||||
// 添加弹出层
|
// 添加弹出层
|
||||||
open2: false,
|
|
||||||
//权限查询
|
//权限查询
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
@ -230,6 +233,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.baseurl = baseurl
|
||||||
this.infos();
|
this.infos();
|
||||||
this.info();
|
this.info();
|
||||||
},
|
},
|
||||||
@ -382,7 +386,6 @@ export default {
|
|||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.open2 = false;
|
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择所属护理站";
|
||||||
this.departmentName = "请选择所属科室";
|
this.departmentName = "请选择所属科室";
|
||||||
// this.upload.open=false;
|
// this.upload.open=false;
|
||||||
@ -533,7 +536,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
addPerson(this.form).then((response) => {
|
addPerson(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open2 = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择所属护理站";
|
||||||
this.departmentName = "请选择所属科室";
|
this.departmentName = "请选择所属科室";
|
||||||
@ -542,6 +545,24 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 审核
|
||||||
|
handshenhe(row) {
|
||||||
|
getNurseStationPersonCheck(row.id).then(res => {
|
||||||
|
this.form = res.data;
|
||||||
|
this.templeopen = true;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 审核提交
|
||||||
|
templesubmit() {
|
||||||
|
updateNurseStationPersonChecks(this.form).then(res => {
|
||||||
|
this.$modal.msgSuccess("审核成功");
|
||||||
|
this.getList();
|
||||||
|
this.templeopen = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
templeopenfalse() {
|
||||||
|
this.templeopen = false
|
||||||
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user