From acee2ed944e2812f65603780b756aa6ac04533df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 6 Apr 2023 16:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/person.js | 28 +++++++-- src/views/system/person/index.vue | 96 +++++++++++++++++++++++++++++- src/views/system/person/indexjs.js | 24 ++++++++ 3 files changed, 142 insertions(+), 6 deletions(-) diff --git a/src/api/system/person.js b/src/api/system/person.js index c046256..7623f6e 100644 --- a/src/api/system/person.js +++ b/src/api/system/person.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询护理站人员信息列表 export function listPerson(query) { return request({ - url: 'system/person/getNurseStationPersonList', + url: '/system/person/getNurseStationPersonList', method: 'get', params: query }) @@ -11,7 +11,7 @@ export function listPerson(query) { // 查询护理站名称 export function stationList(query) { return request({ - url: 'system/station/list', + url: '/system/station/list', method: 'get', params: query }) @@ -20,7 +20,7 @@ export function stationList(query) { // 查询所属科室 export function StationDepartmentList(query) { return request({ - url: 'system/StationDepartment/list', + url: '/system/StationDepartment/list', method: 'get', params: query }) @@ -36,7 +36,7 @@ export function getPerson(id) { // 新增护理站人员信息 export function addPerson(data) { return request({ - url: 'system/person/add', + url: '/system/person/add', method: 'post', data: data }) @@ -45,7 +45,7 @@ export function addPerson(data) { // 修改护理站人员信息 export function updatePerson(data) { return request({ - url: 'system/person/edit', + url: '/system/person/edit', method: 'post', data: data }) @@ -58,3 +58,21 @@ export function delPerson(id) { 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 + }) +} \ No newline at end of file diff --git a/src/views/system/person/index.vue b/src/views/system/person/index.vue index 31893e9..7b66b79 100644 --- a/src/views/system/person/index.vue +++ b/src/views/system/person/index.vue @@ -133,11 +133,20 @@ + @@ -474,4 +558,14 @@ export default indexjs; overflow: hidden; font-size: 14px; } +.text { + width: 400px; + height: 40px; + overflow: hidden; + font-size: 14px; + line-height: 40px; + border-radius: 4px; + padding-left: 20px; + border: 1px solid #e6ebf5; +} diff --git a/src/views/system/person/indexjs.js b/src/views/system/person/indexjs.js index 2a04157..557fb40 100644 --- a/src/views/system/person/indexjs.js +++ b/src/views/system/person/indexjs.js @@ -6,10 +6,13 @@ import { updatePerson, stationList, StationDepartmentList, + getNurseStationPersonCheck, + updateNurseStationPersonChecks } from "@/api/system/person"; import { getToken } from "@/utils/auth"; import { getListByUser } from "@/api/system/userlist.js"; import stationAcatar from "../stationAvatar/index.vue"; +import baseurl from '@/api/baseurl' export default { components: { stationAcatar }, name: "Person", @@ -43,6 +46,7 @@ export default { cb(new Error("请输入正确的联系电话")); }; return { + baseurl: null, //男女选择 sexs: [{ label: "男", @@ -127,6 +131,7 @@ export default { title3: "", // 添加弹出层修改弹出层 open: false, + templeopen: false, //权限查询 queryParams: { pageNum: 1, @@ -203,6 +208,7 @@ export default { }; }, created() { + this.baseurl = baseurl this.getList(); }, methods: { @@ -481,6 +487,13 @@ export default { } }); }, + // 审核 + handshenhe(row) { + getNurseStationPersonCheck(row.id).then(res => { + this.form = res.data; + this.templeopen = true; + }) + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => { @@ -503,6 +516,17 @@ export default { } }); }, + // 审核提交 + templesubmit() { + updateNurseStationPersonChecks(this.form).then(res => { + this.$modal.msgSuccess("审核成功"); + this.getList(); + this.templeopen = false + }) + }, + templeopenfalse() { + this.templeopen = false + }, /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids;