2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
import{d as ke,o as xe,a as s,r as he,aN as be,N as x,b as i,c as d,w as o,f as h,l as Ve,j as p,z as u,G as we,I as Ce,e as a,m as Ue,t as Z,A as _,y as ee,F as te,b7 as Se,b8 as Le,b9 as Ie,X as Ne,a4 as Ae,$ as $e,a2 as ze,aJ as Te,U as je,ba as Fe,bb as Be,a3 as Ke,aM as De}from"./index-7b3f5fdc.js";import{c as Me}from"./index-a832a56d.js";import{s as Ye}from"./index-ed1abe32.js";import{a as Ge}from"./index-e96dc078.js";import{V as Je}from"./index-a513db85.js";import{y as Re,f as Ee}from"./index-4ab1e1d9.js";/* empty css */import{b as Oe}from"./index-c31677f3.js";import{d as Qe}from"./dayjs.min-bfe09ff2.js";import{j as Xe}from"./index-d0b57c12.js";const qe={style:{display:"flex"}},He={key:0},Pe={style:{flex:"1",padding:"10px","over-flow":"auto"}},We=["onClick"],Ze=["onClick"],et=["onClick"],tt=["onClick"],lt={key:3,style:{color:"#999999",cursor:"not-allowed"}},ot=["onClick"],at={key:1,style:{color:"#999999",cursor:"not-allowed"}},yt=ke({__name:"examine",setup(nt){xe(()=>{de()});const I=s(!1),le=s([{title:"年度",width:"80px",key:"year",align:"center"},{title:"考评对象",width:"100px",key:"user",align:"center"},{title:"参评时间",width:"100px",key:"createtime",align:"center"},{title:"自评总分",width:"100px",key:"self_score",align:"center"},{title:"科室评分",width:"100px",key:"department_score",align:"center"},{title:"医院评分",width:"100px",key:"hospital_score",align:"center"},{title:"操作",width:"100px",key:"operator",customSlot:"operator",align:"center"}]),w=s([]),b=s(0),M=s({}),N=s(Qe().year()),oe=e=>{M.value=e,I.value=!0,A()},A=()=>{Fe({user_id:M.value.id,evaluation_id:b.value,time:N.value}).then(e=>{console.log(e),e.code==1?w.value=e.data:w.value=[]})},ae=e=>{console.log(e),b.value=e,w.value=[],A()},ne=e=>{V.value=2,g.value=!0,console.log(e),e.time=e.year,Y(e)},se=()=>{A()},ie=e=>{console.log(e),m.value=e,j.value=[],c.current=1,y()},c=he({current:1,limit:10,total:1}),ue=e=>{console.log(e),c.current=e.current,c.limit=e.limit,y()},V=s(1),g=s(!1),$=s(),y=()=>{Se({group_id:v.value,time:$.value,evaluation_schedule_id:m.value,page:c.current,size:c.limit}).then(e=>{console.log(e),e.code==1?(j.value=e.data.result,c.total=e.data.count):x.msg(e.msg,{icon:2})})},C=s(),z=(e,t)=>{g.value=!0,V.value=t,console.log(e),C.value=e,Y(e)},Y=e=>{Be({evaluation_schedule_id:m.value,month:e.time,user_id:e.id}).then(t=>{console.log(t),t.code==1?F.value=t.data:x.msg(t.msg,{icon:2})})},T=s([]),m=s(0),re=()=>{Le({group_id:v.value}).then(e=>{console.log(e),e.code==1?(T.value=e.data,m.value=e.data[0].id,b.value=e.data[0].id,y()):x.msg(e.msg,{icon:2})})},v=s(1),de=()=>{be({}).then(e=>{console.log(e),e.code==1?(G.value=e.data,v.value=e.data[0].id,re()):x.msg(e.msg,{icon:2})})},G=s([]),f=s(!1),ce=s({year:"",evaluateTarget:"",status:""});function J(){ce.value={year:"",evaluateTarget:"",status:""}}function pe(e){c.current=1,y()}function me(){c.current=1,y()}const _e=s(!1),R=s(),ge=s([{title:"选项",width:"55px",type:"checkbox",align:"center"},{title:"序号",width:"60px",key:"id",align:"center"},{title:"年度",width:"80px",key:"time",align:"center"},{title:"考评对象",width:"100px",key:"nickname",customSlot:"nickname",align:"center"},{title:"工号",width:"100px",key:"work_number",align:"center"},{title:"部门",width:"120px",key:"group_name",align:"center"},{title:"医院评分",width:"100px",key:"hospital_score",align:"center"},{title:"科室评分",width:"100px",key:"department_score_scoringrecord",align:"center"},{title:"自评总分",width:"100px",key:"user_scoringrecord",align:"center"},{title:"自评状态",width:"100px",key:"scoringrecord_status",customSlot:"scoringrecord_status",align:"center"},{title:"操作",width:"180px",customSlot:"operator",key:"operator",fixed:"right",align:"center"}]),j=s(),ye=s([{text:"确认",callback:async()=>{var e=JSON.stringify(F.value),t=await Ie({term:C.value.time,json:e,user_id:C.value.id,evaluation_schedule_id:m.value});console.log(t),t.code==1?(x.msg("提交成功!",{icon:1}),C.value={},g.value=!1,y()):x.msg(t.msg,{icon:2})}},{text:"取消",callback:()=>{g.value=!
|