zcui/frontend/dist/assets/Qualification-B5Jb4U77.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

import{_ as M,V as A,o as _,c as T,e as t,f as l,j as s,k as C,q as D,h as a,g as b,d as G,a as N,t as m,E as v}from"./index-C1KISTGN.js";const H={class:"expert-qualification"},K={class:"card-header"},L={__name:"Qualification",setup(P){const c=C(!1),f=D({status:""}),o=D({id:null,expertName:"",category:"",title:"",organization:"",education:"",workYears:0,specialty:"",reviewResult:1,reviewComment:""}),k=C([]),S=()=>[{id:1,expertName:"张伟",category:"临床医学",title:"主任医师",organization:"山东省立医院",education:"博士",workYears:15,specialty:"心血管疾病诊疗",status:1,applyDate:"2024-01-15"},{id:2,expertName:"李娜",category:"药学",title:"主任药师",organization:"山东大学齐鲁医院",education:"硕士",workYears:12,specialty:"临床药学",status:1,applyDate:"2024-01-20"},{id:3,expertName:"王强",category:"医疗器械",title:"教授",organization:"山东大学医学院",education:"博士",workYears:18,specialty:"医疗器械质量评价",status:0,applyDate:"2024-03-25"},{id:4,expertName:"刘芳",category:"中医药",title:"副主任医师",organization:"山东中医药大学附属医院",education:"硕士",workYears:10,specialty:"中医内科",status:1,applyDate:"2024-02-10"},{id:5,expertName:"陈明",category:"质量管理",title:"研究员",organization:"山东省药品检验研究院",education:"博士",workYears:20,specialty:"药品质量标准研究",status:0,applyDate:"2024-03-28"}],y=()=>{const r=localStorage.getItem("expertQualifications");let e=r?JSON.parse(r):[];e.length===0&&(e=S(),localStorage.setItem("expertQualifications",JSON.stringify(e)));let n=e;f.status!==""&&(n=n.filter(d=>d.status===Number(f.status))),k.value=n};A(()=>{y()});const z=()=>{y()},R=()=>{f.status="",y()},Y=()=>{v.info("新增准入申请")},I=r=>{v.info("查看详情")},Q=r=>{Object.assign(o,r),o.reviewResult=1,o.reviewComment="",c.value=!0},O=()=>{const r=localStorage.getItem("expertQualifications"),e=r?JSON.parse(r):[],n=e.findIndex(d=>d.id===o.id);n!==-1&&(e[n].status=o.reviewResult,e[n].reviewComment=o.reviewComment,localStorage.setItem("expertQualifications",JSON.stringify(e)),v.success("审核提交成功"),c.value=!1,y())};return(r,e)=>{const n=s("el-button"),d=s("el-option"),B=s("el-select"),g=s("el-form-item"),x=s("el-form"),u=s("el-table-column"),w=s("el-tag"),J=s("el-table"),U=s("el-card"),p=s("el-descriptions-item"),E=s("el-descriptions"),V=s("el-radio"),$=s("el-radio-group"),j=s("el-input"),q=s("el-dialog");return _(),T("div",H,[t(U,null,{header:l(()=>[N("div",K,[e[6]||(e[6]=N("span",null,"资格准入管理",-1)),t(n,{type:"primary",onClick:Y},{default:l(()=>[...e[5]||(e[5]=[a("新增准入申请",-1)])]),_:1})])]),default:l(()=>[t(x,{inline:!0,model:f,class:"search-form"},{default:l(()=>[t(g,{label:"审核状态"},{default:l(()=>[t(B,{modelValue:f.status,"onUpdate:modelValue":e[0]||(e[0]=i=>f.status=i),placeholder:"请选择",clearable:"",style:{width:"120px"}},{default:l(()=>[t(d,{label:"待审核",value:"0"}),t(d,{label:"已通过",value:"1"}),t(d,{label:"已驳回",value:"2"})]),_:1},8,["modelValue"])]),_:1}),t(g,null,{default:l(()=>[t(n,{type:"primary",onClick:z},{default:l(()=>[...e[7]||(e[7]=[a("查询",-1)])]),_:1}),t(n,{onClick:R},{default:l(()=>[...e[8]||(e[8]=[a("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),t(J,{data:k.value,border:""},{default:l(()=>[t(u,{prop:"expertName",label:"专家姓名",width:"100"}),t(u,{prop:"category",label:"专业分类",width:"120"}),t(u,{prop:"title",label:"职称",width:"120"}),t(u,{prop:"organization",label:"所属单位","min-width":"180","show-overflow-tooltip":""}),t(u,{prop:"status",label:"审核状态",width:"100"},{default:l(({row:i})=>[i.status===0?(_(),b(w,{key:0,type:"warning"},{default:l(()=>[...e[9]||(e[9]=[a("待审核",-1)])]),_:1})):i.status===1?(_(),b(w,{key:1,type:"success"},{default:l(()=>[...e[10]||(e[10]=[a("已通过",-1)])]),_:1})):(_(),b(w,{key:2,type:"danger"},{default:l(()=>[...e[11]||(e[11]=[a("已驳回",-1)])]),_:1}))]),_:1}),t(u,{prop:"applyDate",label:"申请日期",width:"110"}),t(u,{label:"操作",width:"180",