2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
import{d as we,o as Ue,a as n,r as Ce,aN as Se,N as k,b as i,c as r,w as a,f as x,l as Le,G as Ie,I as Ne,e as o,m as ze,t as le,A as _,j as y,y as ae,F as oe,z as d,aY as $e,aZ as Te,a_ as je,X as Ae,a4 as Fe,$ as Qe,a0 as Be,a1 as Ke,a2 as De,aJ as Me,U as qe,a$ as Ge,b0 as Je,a3 as Re,aM as Ee}from"./index-7b3f5fdc.js";import{c as Oe}from"./index-a832a56d.js";import{s as Xe}from"./index-ed1abe32.js";import{a as Ye}from"./index-e96dc078.js";import{V as Ze}from"./index-a513db85.js";import{y as He,f as Pe}from"./index-4ab1e1d9.js";/* empty css */import{b as We}from"./index-c31677f3.js";import{d as ne}from"./dayjs.min-bfe09ff2.js";import{j as et}from"./index-d0b57c12.js";const tt={style:{display:"flex"}},lt={style:{flex:"1",padding:"10px","over-flow":"auto"}},at=["onClick"],ot=["onClick"],nt=["onClick"],st={key:2,style:{color:"#999999",cursor:"not-allowed"}},it=["onClick"],ut={key:1,style:{color:"#999999",cursor:"not-allowed"}},xt=we({__name:"examine",setup(rt){Ue(()=>{_e()});const N=n(!1),se=n([{title:"季度",width:"80px",key:"quarter",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"}]),U=n([]),b=n(0),M=n({}),z=n(ne().year()),ie=e=>{M.value=e,N.value=!0,$()},$=()=>{Ge({user_id:M.value.id,evaluation_id:b.value,time:z.value}).then(e=>{console.log(e),e.code==1?U.value=e.data:U.value=[]})},ue=e=>{console.log(e),b.value=e,U.value=[],$()},re=e=>{h.value=2,g.value=!0,console.log(e),e.time=e.quarter,J(e)},de=()=>{$()},ce=e=>{console.log(e),m.value=e,F.value=[],c.current=1,v()},c=Ce({current:1,limit:10,total:1}),me=e=>{console.log(e),c.current=e.current,c.limit=e.limit,v()},h=n(1),g=n(!1),T=n(ne().year()),j=n(1),q=n(),v=()=>{$e({group_id:f.value,time:q.value,evaluation_schedule_id:m.value,page:c.current,size:c.limit}).then(e=>{console.log(e),e.code==1?(F.value=e.data.result,c.total=e.data.count):k.msg(e.msg,{icon:2})})},C=n(),G=(e,t)=>{g.value=!0,h.value=t,console.log(e),C.value=e,J(e)},J=e=>{Je({evaluation_schedule_id:m.value,month:e.time,user_id:e.id}).then(t=>{console.log(t),t.code==1?Q.value=t.data:k.msg(t.msg,{icon:2})})},A=n([]),m=n(0),pe=()=>{Te({group_id:f.value}).then(e=>{console.log(e),e.code==1?(A.value=e.data,m.value=e.data[0].id,b.value=e.data[0].id,v()):k.msg(e.msg,{icon:2})})},f=n(1),_e=()=>{Se({}).then(e=>{console.log(e),e.code==1?(R.value=e.data,f.value=e.data[0].id,pe()):k.msg(e.msg,{icon:2})})},R=n([]),V=n(!1),ye=n({year:"",evaluateTarget:"",status:""});function E(){ye.value={year:"",evaluateTarget:"",status:""}}function ge(e){c.current=1,v()}function ve(){c.current=1,q.value=T.value+"-"+j.value,v()}const fe=n(!1),O=n(),ke=n([{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"}]),F=n(),xe=n([{text:"确认",callback:async()=>{var e=JSON.stringify(Q.value),t=await je({term:C.value.time,json:e,user_id:C.value.id,evaluation_schedule_id:m.value});console.log(t),t.code==1?(k.msg("提交成功!",{icon:1}),C.value={},g.value=!1,v()):k.msg(t.msg
|