diff --git a/Laravel/public/admin/assets/PlanList-14cf0d27.js b/Laravel/public/admin/assets/PlanList-14cf0d27.js deleted file mode 100644 index 5439363..0000000 --- a/Laravel/public/admin/assets/PlanList-14cf0d27.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as $e,o as Me,r as x,c as Ue,d as s,e as _,k as u,f as o,w as a,F as I,t as S,i as l,h as Z,$ as F,j as C,x as g,l as q,g as v,I as Ne,E as w,aP as Re,O as Te,q as c,v as f,b1 as ie,b2 as Ae,b3 as qe,p as Ge,b4 as Ye,b5 as de,b6 as Fe,N as We,b7 as Oe,b8 as Xe,b9 as Ze}from"./index-af171713.js";const je={class:"head"},Qe={style:{display:"flex"},class:"planInfo"},He={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Je=["onClick"],Ke={style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto"}},et={key:0,class:"planTable"},tt={style:{"background-color":"#f1f1f1",position:"relative"}},lt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},nt={style:{"min-width":"120px","font-size":"14px"}},ot=["onMouseover","onMouseleave"],at={key:0},st={key:0,class:"hoverTools"},ut=["onClick"],it=["onClick"],dt=["onClick"],rt=["onClick"],_t={class:"zong_row"},ct={class:"qudao_title_zong"},ft={class:"qudao_count_row"},pt={key:0},vt={key:0,class:"yellow bold-text"},mt={key:1},gt={class:"font_color"},yt={class:"patient_type_row"},kt={class:"tps"},bt={key:1,style:{width:"100%","background-color":"#fff"}},xt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},ht={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},wt={style:{"font-weight":"700"}},Dt={style:{"margin-right":"16px"}},It={class:"qudao_k_input"},Vt={style:{width:"50px"}},Ct={class:"qudao_k_input"},Lt={class:"dialog-footer"},St={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Pt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Et={style:{"font-weight":"700"}},zt={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},Bt={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},$t={style:{width:"80px"}},Mt={style:{flex:"1"}},Ut={style:{color:"#999","font-size":"12px"}},Nt={key:1,style:{color:"#999"}},Rt={class:"dialog-footer"},Tt={__name:"PlanList",setup(At){let R=v([]),m=v(!1),re=v(1),_e=v(9999),L=v([]),j=v([]),$=v(0),M=v({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),z=v(!1);const T=()=>{M.value.resources_id=U.value,j.value=Le(M.value.dateRange),m.value=!0,Ye({page:re.value,pageSize:_e.value,searchInfo:M.value}).then(t=>{if(m.value=!1,t.status){R.value=[],L.value=[];let e=t.data.list;if(e.length>0){const i=new Set;e.forEach(h=>{if(h.resources_id==U.value){const V=`${h.begin_time.substring(0,5)}-${h.end_time.substring(0,5)}`;i.add(V)}}),Array.from(i).sort().forEach(h=>{const V={time_range:h};j.value.forEach(D=>{const P=e.find(E=>`${E.begin_time.substring(0,5)}-${E.end_time.substring(0,5)}`===h&&E.date===D&&E.resources_id==U.value);P?V[D]={countsInfo:P.countsInfo,patient_type_label:P.patient_type_label,status:P.status,id:P.id,resources_id:P.resources_id}:V[D]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),R.value.push(V)})}}else w.error(t.msg)})},ce=()=>{$.value=$.value===0?1:0,$.value===0&&(L.value=[]),$.value===1&&R.value.forEach((t,e)=>{console.log(t);for(let i in t)i!="time_range"&&L.value.push(t[i].id)})},fe=t=>{L.value.indexOf(t)===-1?L.value.push(t):L.value=L.value.filter(i=>i!==t)};let Q=v(null);const pe=t=>{Q.value=t},ve=t=>{Q.value=null},me=t=>{U.value=t,$.value=0,L.value=[],T()},H=t=>L.value.includes(t);let ge=v([]);const ye=()=>{m.value=!0,Ne().then(t=>{m.value=!1,t.status?ge.value=t.data:w.error(t.msg)})};let ke=v([]);const be=()=>{m.value=!0,Re({}).then(t=>{m.value=!1,t.status?ke.value=t.data.list:w.error(t.msg)})};let W=v([]),U=v(0);const xe=()=>{m.value=!0,Te().then(t=>{m.value=!1,t.status?(W.value=t.data,W.value.length>0&&U.value==""&&(U.value=W.value[0].id,T())):w.error(t.msg)})};let r=v("");const he=t=>{z.value=!0,m.value=!0,de({id:t}).then(e=>{m.value=!1,e.status?r.value=e.data:w.error(e.msg)})},we=t=>{console.log(t),(t===""||t==null||t===0)&&(r.value.max_total=0);let e=0,i=r.value.coutsInfo.length;for(let d=0;d{let t=0;if(r.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(r.value.max_total))return w.error("各个渠道数量之和与当日总量不符"),!1;m.value=!0,Fe({PlanDetaiInfo:r.value}).then(e=>{m.value=!1,e.status?(z.value=!1,T()):w.error(e.msg)})},Ie=()=>{if(L.value.length==0)return w.error("请至少勾选1条记录"),!1;We.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,Oe({ids:L.value}).then(t=>{m.value=!1,t.status?(w({message:t.msg,type:"success"}),T()):w.error(t.msg)})})};let G=v(!1),J=v(!1),te=v(null),Y=v(null),A=v(null);const le=(t,e)=>{A.value=e,Y.value=t,G.value=!0,J.value=!0,Xe({planid:t.id,qudaoid:e}).then(i=>{J.value=!1,i.status?te.value=i.data:w.error(i.msg)})};let B=v(!1),k=v(null);const Ve=t=>{B.value=!0,m.value=!0,de({id:t.id}).then(e=>{m.value=!1,e.status?(k.value=e.data,k.value.coutsInfo.forEach(i=>{i.locked_count===null&&(i.locked_count=0)})):w.error(e.msg)})},Ce=()=>{let t=[],e=!1;k.value.coutsInfo.forEach(i=>{if(e)return;const d=i.count-i.used_count;if(Number(i.locked_count)>d){w.error(`${i.name} 的占位数量不能大于剩余可用数量,最多${d}个`),e=!0;return}if(Number(i.locked_count)<0){w.error(`${i.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}),!e&&(m.value=!0,Ze({roster_detail_id:k.value.id,locked_counts:t}).then(i=>{m.value=!1,i.status?(B.value=!1,T(),w.success("占位设置保存成功")):w.error(i.msg)}))};function ne(t){const e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),d=String(t.getDate()).padStart(2,"0");return`${e}-${i}-${d}`}function Le(t){const e=t.map(D=>new Date(D)).sort((D,P)=>D-P),i=e[0],d=e[e.length-1],h=[];let V=new Date(i);for(;V<=d;)h.push(V.toISOString().split("T")[0]),V.setDate(V.getDate()+1);return h}function Se(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return Me(()=>{const t=new Date,e=ne(t),i=new Date(t);i.setDate(t.getDate()+14);const d=ne(i);M.value.dateRange=[e,d],be(),xe(),ye()}),(t,e)=>{const i=x("el-date-picker"),d=x("el-form-item"),h=x("el-button"),V=x("el-row"),D=x("el-icon"),P=x("el-empty"),E=x("el-tag"),O=x("el-checkbox"),Pe=x("el-checkbox-group"),K=x("el-input"),Ee=x("el-switch"),oe=x("el-form"),ee=x("el-dialog"),ae=x("el-option"),ze=x("el-select"),N=x("el-table-column"),Be=x("el-table"),X=Ue("loading");return s(),_("div",null,[u("div",je,[o(V,null,{default:a(()=>[o(d,null,{default:a(()=>[o(i,{style:{"margin-left":"8px",width:"150px"},modelValue:l(M).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=n=>l(M).dateRange[0]=n),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[15]||(e[15]=u("span",{style:{margin:"0 4px"}},"至",-1)),o(i,{style:{width:"150px"},modelValue:l(M).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=n=>l(M).dateRange[1]=n),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),o(h,{onClick:e[2]||(e[2]=n=>T()),style:{"margin-left":"10px"}},{default:a(()=>[...e[16]||(e[16]=[c("搜索",-1)])]),_:1}),o(h,{type:"danger",onClick:e[3]||(e[3]=n=>Ie()),style:{"margin-left":"10px"}},{default:a(()=>[...e[17]||(e[17]=[c("删除",-1)])]),_:1})]),_:1})]),u("div",Qe,[u("div",He,[(s(!0),_(I,null,S(l(W),(n,y)=>(s(),_("div",{key:y,onClick:p=>me(n.id),class:F({"zhenshiButton zhenshiButtonActive":n.id===l(U),zhenshiButton:n.id!==l(U)})},f(n.department_resources_name),11,Je))),128))]),Z((s(),_("div",Ke,[e[20]||(e[20]=u("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),l(R).length>0?(s(),_("table",et,[u("tr",tt,[u("td",null,[u("div",lt,[e[18]||(e[18]=u("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),u("div",{class:F({"plan_checkAllbox plan_checkAllbox_active":l($)===1,"plan_checkAllbox ":l($)===0}),onClick:e[4]||(e[4]=n=>ce())},[l($)===1?(s(),C(D,{key:0,color:"#ffffff"},{default:a(()=>[o(l(ie))]),_:1})):g("",!0)],2)])]),(s(!0),_(I,null,S(l(j),(n,y)=>(s(),_("td",nt,f(n.substring(5,10))+" "+f(Se(n)),1))),256))]),(s(!0),_(I,null,S(l(R),(n,y)=>(s(),_("tr",{key:y},[(s(!0),_(I,null,S(n,(p,se)=>(s(),_("td",{key:se,onMouseover:b=>pe(p.id),onMouseleave:b=>ve(p.id)},[u("div",null,[se=="time_range"?(s(),_("span",at,f(p),1)):g("",!0),p.countsInfo&&p.countsInfo.length>0?(s(),_("div",{key:1,class:F({planInfo_k:p.status==1,"planInfo_k planInfo_k_disabled":p.status==0})},[l(Q)==p.id?(s(),_("div",st,[u("div",{class:"icon_k",onClick:b=>he(p.id)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(Ae))]),_:1})],8,ut),u("div",{class:"icon_k",onClick:b=>le(p,0)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(qe))]),_:1})],8,it),u("div",{class:"icon_k",onClick:b=>Ve(p)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(Ge))]),_:1})],8,dt)])):g("",!0),u("div",{class:F({"plan_checkbox plan_checkbox_active":H(p.id),plan_checkbox:!H(p.id)}),onClick:b=>fe(p.id)},[H(p.id)?(s(),C(D,{key:0,color:"#ffffff"},{default:a(()=>[o(l(ie))]),_:1})):g("",!0)],10,rt),u("div",_t,[u("div",ct,[e[19]||(e[19]=u("span",null,"总数:",-1)),c(f(p.countsInfo[0].max_total),1)])]),u("div",ft,[(s(!0),_(I,null,S(p.countsInfo,(b,ue)=>(s(),_(I,{key:ue},[b&&!(b.count===0&&b.used_count===0)?(s(),_("div",pt,[u("span",null,f(b.jiancheng),1),u("span",null,[b.locked_count?(s(),_("span",vt,f(b.locked_count),1)):g("",!0),b.locked_count?(s(),_("span",mt,"/")):g("",!0),u("span",gt,f(b.used_count),1),c("/"+f(b.count),1)])])):g("",!0)],64))),128))]),u("div",yt,[(s(!0),_(I,null,S(p.patient_type_label,(b,ue)=>(s(),_("div",kt,f(b),1))),256))])],2)):g("",!0)])],40,ot))),128))]))),128))])):g("",!0),l(R).length==0?(s(),_("div",bt,[o(P,{description:"暂无号源"})])):g("",!0)])),[[X,l(m)]])]),o(ee,{modelValue:l(z),"onUpdate:modelValue":e[9]||(e[9]=n=>q(z)?z.value=n:z=n),title:"修改",width:"40%"},{footer:a(()=>[u("span",Lt,[o(h,{onClick:e[8]||(e[8]=n=>q(z)?z.value=!1:z=!1)},{default:a(()=>[...e[30]||(e[30]=[c("取消",-1)])]),_:1}),o(h,{type:"primary",onClick:De},{default:a(()=>[...e[31]||(e[31]=[c(" 确定 ",-1)])]),_:1})])]),default:a(()=>[Z((s(),_("div",null,[l(r)?(s(),C(oe,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[o(d,{label:"日期:"},{default:a(()=>[c(f(l(r).date),1)]),_:1}),o(d,{label:"星期:"},{default:a(()=>[c(f(l(r).weekname),1)]),_:1}),o(d,{label:"科室:"},{default:a(()=>[c(f(l(r).department_name),1)]),_:1}),g("",!0),g("",!0),o(d,{label:"病人类型:"},{default:a(()=>[o(Pe,{disabled:"",modelValue:l(r).patientType,"onUpdate:modelValue":e[5]||(e[5]=n=>l(r).patientType=n)},{default:a(()=>[o(O,{label:"0"},{default:a(()=>[...e[21]||(e[21]=[c("住院",-1)])]),_:1}),o(O,{label:"1"},{default:a(()=>[...e[22]||(e[22]=[c("门诊",-1)])]),_:1}),o(O,{label:"2"},{default:a(()=>[...e[23]||(e[23]=[c("急诊",-1)])]),_:1}),o(O,{label:"3"},{default:a(()=>[...e[24]||(e[24]=[c("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(d,{label:"时间段:"},{default:a(()=>[e[25]||(e[25]=c(" 开始时间:",-1)),u("span",xt,f(l(r).begin_time),1),e[26]||(e[26]=c(" 结束时间:",-1)),u("span",ht,f(l(r).end_time),1),e[27]||(e[27]=c(" 停止预约时间:",-1)),u("span",wt,f(l(r).end_reservation_time),1)]),_:1}),l(r).coutsInfo?(s(),C(d,{key:2,label:"渠道名额:"},{default:a(()=>[u("div",Dt,[e[28]||(e[28]=u("div",null,"当日总量",-1)),u("div",It,[o(K,{onInput:we,type:"number",modelValue:l(r).max_total,"onUpdate:modelValue":e[6]||(e[6]=n=>l(r).max_total=n),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[29]||(e[29]=u("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),u("div",null,[(s(!0),_(I,null,S(l(r).coutsInfo,(n,y)=>(s(),_("div",{class:"qudao_k",key:y},[u("div",Vt,f(n.name),1),u("div",Ct,[o(K,{type:"number",modelValue:l(r).coutsInfo[y].count,"onUpdate:modelValue":p=>l(r).coutsInfo[y].count=p,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):g("",!0),o(d,{label:"状态:"},{default:a(()=>[o(Ee,{modelValue:l(r).status,"onUpdate:modelValue":e[7]||(e[7]=n=>l(r).status=n),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(d,{label:"添加时间:"},{default:a(()=>[c(f(l(r).created_at),1)]),_:1})]),_:1})):g("",!0)])),[[X,l(m)]])]),_:1},8,["modelValue"]),o(ee,{modelValue:l(G),"onUpdate:modelValue":e[12]||(e[12]=n=>q(G)?G.value=n:G=n),title:"预约明细",width:"60%"},{default:a(()=>[u("div",null,[u("div",St,[c(f(l(Y).department_resources_name)+" ",1),(s(!0),_(I,null,S(l(Y).devices,(n,y)=>(s(),_("span",{key:y,class:F(n.status==1&&n.is_del==0?"":"hongzi")},f(n.device_name),3))),128))]),o(d,{label:"渠道"},{default:a(()=>[o(ze,{filterable:!0,clearable:"",modelValue:l(A),"onUpdate:modelValue":e[10]||(e[10]=n=>q(A)?A.value=n:A=n),onChange:e[11]||(e[11]=n=>le(l(Y),l(A))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[o(ae,{label:"全部",value:0}),(s(!0),_(I,null,S(l(Y).countsInfo,(n,y)=>(s(),C(ae,{key:y,label:n.name,value:n.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Z((s(),C(Be,{data:l(te),style:{width:"100%"},"row-key":"id"},{default:a(()=>[o(N,{prop:"list_status",label:"状态",width:"100"},{default:a(n=>[n.row.list_status===0?(s(),C(E,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[32]||(e[32]=[c("申请中",-1)])]),_:1})):g("",!0),n.row.list_status===1?(s(),C(E,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[33]||(e[33]=[c("已预约",-1)])]),_:1})):g("",!0),n.row.list_status===2?(s(),C(E,{key:2,class:"ml-2"},{default:a(()=>[...e[34]||(e[34]=[c("登记",-1)])]),_:1})):g("",!0),n.row.list_status===3?(s(),C(E,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...e[35]||(e[35]=[c("完成",-1)])]),_:1})):g("",!0)]),_:1}),o(N,{prop:"user_name",label:"姓名"}),o(N,{prop:"user_phone",label:"电话"}),o(N,{prop:"reg_num",label:"登记号"}),o(N,{prop:"reservation_department",label:"申请科室"}),o(N,{prop:"entrust",label:"项目"}),o(N,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[X,l(J)]])])]),_:1},8,["modelValue"]),o(ee,{modelValue:l(B),"onUpdate:modelValue":e[14]||(e[14]=n=>q(B)?B.value=n:B=n),title:"占位设置",width:"40%"},{footer:a(()=>[u("span",Rt,[o(h,{onClick:e[13]||(e[13]=n=>q(B)?B.value=!1:B=!1)},{default:a(()=>[...e[38]||(e[38]=[c("取消",-1)])]),_:1}),o(h,{type:"primary",onClick:Ce},{default:a(()=>[...e[39]||(e[39]=[c(" 确定 ",-1)])]),_:1})])]),default:a(()=>[Z((s(),_("div",null,[l(k)?(s(),C(oe,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:a(()=>[o(d,{label:"日期:"},{default:a(()=>[c(f(l(k).date),1)]),_:1}),o(d,{label:"星期:"},{default:a(()=>[c(f(l(k).weekname),1)]),_:1}),o(d,{label:"科室:"},{default:a(()=>[c(f(l(k).department_name),1)]),_:1}),o(d,{label:"资源:"},{default:a(()=>[c(f(l(k).resources_name),1)]),_:1}),o(d,{label:"服务组:"},{default:a(()=>[(s(!0),_(I,null,S(l(k).devices,(n,y)=>(s(),C(E,{key:y,type:n.status===1&&n.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:a(()=>[c(f(n.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),o(d,{label:"时间段:"},{default:a(()=>[e[36]||(e[36]=c(" 开始时间:",-1)),u("span",Pt,f(l(k).begin_time),1),e[37]||(e[37]=c(" 结束时间:",-1)),u("span",Et,f(l(k).end_time),1)]),_:1}),o(d,{label:"渠道占位:"},{default:a(()=>[u("div",zt,[l(k).coutsInfo&&l(k).coutsInfo.length>0?(s(!0),_(I,{key:0},S(l(k).coutsInfo,(n,y)=>(s(),_(I,{key:y},[n&&!(n.count===0&&n.used_count===0)?(s(),_("div",Bt,[u("div",$t,f(n.name),1),u("div",Mt,[o(K,{type:"number",modelValue:l(k).coutsInfo[y].locked_count,"onUpdate:modelValue":p=>l(k).coutsInfo[y].locked_count=p,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),u("div",Ut," 剩余可用: "+f(n.count-n.used_count),1)])):g("",!0)],64))),128)):(s(),_("div",Nt," 暂无渠道数据 "))])]),_:1})]),_:1})):g("",!0)])),[[X,l(m)]])]),_:1},8,["modelValue"])])}}},Gt=$e(Tt,[["__scopeId","data-v-71879d30"]]);export{Gt as default}; diff --git a/Laravel/public/admin/assets/PlanList-e66542f7.css b/Laravel/public/admin/assets/PlanList-e66542f7.css deleted file mode 100644 index de66e02..0000000 --- a/Laravel/public/admin/assets/PlanList-e66542f7.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-71879d30]{display:flex}.type_count div[data-v-71879d30]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-71879d30]{display:flex}.qudao_k_input[data-v-71879d30]{width:150px}.hongzi[data-v-71879d30]{color:#b25252}.yiyong[data-v-71879d30]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-71879d30]:hover{color:#666}.zhenshiButton[data-v-71879d30]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-71879d30]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-71879d30]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-71879d30]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-71879d30]{background-color:#ffd6d2}.planInfo_k[data-v-71879d30]{font-size:14px;color:#333;position:relative;padding-top:6px;padding-bottom:10px;padding-right:8px}.planInfo_k .zong_row[data-v-71879d30]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-71879d30]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-71879d30]{font-weight:500}.planInfo_k .plan_checkbox[data-v-71879d30]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-71879d30]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-71879d30]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-71879d30]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff;margin-left:6px}.planInfo_k .qudao_count_row[data-v-71879d30]{display:flex}.planInfo_k .qudao_count_row div[data-v-71879d30]{margin-left:6px}.planInfo .planTable[data-v-71879d30]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-71879d30]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-71879d30]:first-child,.planInfo .planTable th[data-v-71879d30]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-71879d30]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-71879d30]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-71879d30]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-71879d30]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-71879d30]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-71879d30]{width:100px}.yellow[data-v-71879d30]{color:#ffaa7f}.red[data-v-71879d30]{color:#c81e00}.bold-text[data-v-71879d30]{font-weight:700} diff --git a/Laravel/public/admin/assets/PlanListAdmin-29270508.css b/Laravel/public/admin/assets/PlanListAdmin-29270508.css deleted file mode 100644 index a1a5ca7..0000000 --- a/Laravel/public/admin/assets/PlanListAdmin-29270508.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-4f905d7b]{display:flex}.type_count div[data-v-4f905d7b]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-4f905d7b]{display:flex}.qudao_k_input[data-v-4f905d7b]{width:150px}.hongzi[data-v-4f905d7b]{color:#b25252}.yiyong[data-v-4f905d7b]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-4f905d7b]:hover{color:#666}.zhenshiButton[data-v-4f905d7b]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-4f905d7b]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-4f905d7b]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-4f905d7b]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-4f905d7b]{background-color:#ffd6d2}.planInfo_k[data-v-4f905d7b]{font-size:14px;color:#333;position:relative;padding-top:6px;padding-bottom:10px;padding-right:8px}.planInfo_k .zong_row[data-v-4f905d7b]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-4f905d7b]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-4f905d7b]{font-weight:500}.planInfo_k .plan_checkbox[data-v-4f905d7b]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-4f905d7b]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-4f905d7b]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-4f905d7b]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-4f905d7b]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-4f905d7b]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap;line-height:1.4}.planInfo_k .qudao_count_row[data-v-4f905d7b]{display:flex}.planInfo_k .qudao_count_row div[data-v-4f905d7b]{margin-left:6px}.planInfo .planTable[data-v-4f905d7b]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-4f905d7b]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-4f905d7b]:first-child,.planInfo .planTable th[data-v-4f905d7b]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-4f905d7b]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-4f905d7b]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-4f905d7b]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-4f905d7b]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-4f905d7b]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-4f905d7b]{width:100px}.yellow[data-v-4f905d7b]{color:#ffaa7f}.red[data-v-4f905d7b]{color:#c81e00}.bold-text[data-v-4f905d7b]{font-weight:700} diff --git a/Laravel/public/admin/assets/PlanListAdmin-5d2e5b71.js b/Laravel/public/admin/assets/PlanListAdmin-5d2e5b71.js deleted file mode 100644 index 401e336..0000000 --- a/Laravel/public/admin/assets/PlanListAdmin-5d2e5b71.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Me,o as Ae,r as h,c as Ue,d as s,e as r,k as u,f as a,w as o,F as I,t as S,i as l,h as Q,$ as W,j as L,x as k,l as q,g as m,I as Ne,E as w,X as Re,O as Te,q as _,v as c,b1 as re,b2 as qe,b3 as Ge,p as Ye,b4 as Fe,b5 as _e,bf as We,N as Xe,bg as Oe,b8 as Ze,b9 as je}from"./index-af171713.js";const Qe={class:"head"},He={style:{display:"flex"},class:"planInfo"},Je={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ke=["onClick"],et={style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto"}},tt={key:0,class:"planTable"},lt={style:{"background-color":"#f1f1f1",position:"relative"}},nt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},at={style:{"min-width":"120px","font-size":"14px"}},ot=["onMouseover","onMouseleave"],st={key:0},ut={key:0,class:"hoverTools"},it=["onClick"],dt=["onClick"],rt=["onClick"],_t=["onClick"],ct={class:"zong_row"},ft={class:"qudao_title_zong"},pt={class:"qudao_count_row"},vt={key:0},mt={key:0,class:"yellow bold-text"},gt={key:1},yt={class:"font_color"},kt={class:"patient_type_row"},bt={class:"tps"},xt={key:1,style:{width:"100%","background-color":"#fff"}},ht={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},wt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Dt={style:{"font-weight":"700"}},Vt={style:{"margin-right":"16px"}},It={class:"qudao_k_input"},Ct={style:{width:"50px"}},Lt={class:"qudao_k_input"},St={class:"dialog-footer"},Pt={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},zt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Bt={style:{"font-weight":"700"}},Et={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},$t={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},Mt={style:{width:"80px"}},At={style:{flex:"1"}},Ut={style:{color:"#999","font-size":"12px"}},Nt={key:1,style:{color:"#999"}},Rt={class:"dialog-footer"},Tt={__name:"PlanListAdmin",setup(qt){let N=m([]),g=m(!1),ce=m(1),fe=m(9999),P=m([]),H=m([]),A=m(0),D=m({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),E=m(!1);const R=()=>{D.value.resources_id=$.value,H.value=Se(D.value.dateRange),g.value=!0,Fe({page:ce.value,pageSize:fe.value,searchInfo:D.value}).then(n=>{if(g.value=!1,n.status){N.value=[],P.value=[];let e=n.data.list;if(e.length>0){const i=new Set;e.forEach(f=>{if(f.resources_id==$.value){const C=`${f.begin_time.substring(0,5)}-${f.end_time.substring(0,5)}`;i.add(C)}}),Array.from(i).sort().forEach(f=>{const C={time_range:f};H.value.forEach(V=>{const z=e.find(B=>`${B.begin_time.substring(0,5)}-${B.end_time.substring(0,5)}`===f&&B.date===V&&B.resources_id==$.value);z?C[V]={countsInfo:z.countsInfo,patient_type_label:z.patient_type_label,status:z.status,id:z.id,resources_id:z.resources_id}:C[V]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),N.value.push(C)})}}else w.error(n.msg)})},pe=()=>{A.value=A.value===0?1:0,A.value===0&&(P.value=[]),A.value===1&&N.value.forEach((n,e)=>{console.log(n);for(let i in n)i!="time_range"&&P.value.push(n[i].id)})},ve=n=>{P.value.indexOf(n)===-1?P.value.push(n):P.value=P.value.filter(i=>i!==n)};let J=m(null);const me=n=>{J.value=n},ge=n=>{J.value=null},ye=n=>{$.value=n,A.value=0,P.value=[],R()},K=n=>P.value.includes(n);let ke=m([]);const be=()=>{g.value=!0,Ne().then(n=>{g.value=!1,n.status?ke.value=n.data:w.error(n.msg)})};let X=m([]);const xe=()=>{g.value=!0,Re({}).then(n=>{g.value=!1,n.status?(X.value=n.data.list,X.value.length>0&&(D.value.department_id=X.value[0].id,ne())):w.error(n.msg)})},he=()=>{D.value.resources_id=null,$.value=0,ne()};let O=m([]),$=m(0);const ne=()=>{g.value=!0,Te({department_id:D.value.department_id}).then(n=>{g.value=!1,n.status?(O.value=n.data,O.value.length>0&&$.value==""&&($.value=O.value[0].id,R())):w.error(n.msg)})};let d=m("");const we=n=>{E.value=!0,g.value=!0,_e({id:n}).then(e=>{g.value=!1,e.status?d.value=e.data:w.error(e.msg)})},De=n=>{console.log(n),(n===""||n==null||n===0)&&(d.value.max_total=0);let e=0,i=d.value.coutsInfo.length;for(let p=0;p{let n=0;if(d.value.coutsInfo.forEach(e=>{n=n+Number(e.count)}),n!==Number(d.value.max_total))return w.error("各个渠道数量之和与当日总量不符"),!1;g.value=!0,We({PlanDetaiInfo:d.value,department_id:D.value.department_id}).then(e=>{g.value=!1,e.status?(E.value=!1,R()):w.error(e.msg)})},Ie=()=>{if(P.value.length==0)return w.error("请至少勾选1条记录"),!1;Xe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{g.value=!0,Oe({ids:P.value,department_id:D.value.department_id}).then(n=>{g.value=!1,n.status?(w({message:n.msg,type:"success"}),R()):w.error(n.msg)})})};let G=m(!1),ee=m(!1),ae=m(null),Y=m(null),T=m(null);const oe=(n,e)=>{T.value=e,Y.value=n,G.value=!0,ee.value=!0,Ze({planid:n.id,qudaoid:e}).then(i=>{ee.value=!1,i.status?ae.value=i.data:w.error(i.msg)})};let M=m(!1),b=m(null);const Ce=n=>{M.value=!0,g.value=!0,_e({id:n.id}).then(e=>{g.value=!1,e.status?(b.value=e.data,b.value.coutsInfo.forEach(i=>{i.locked_count===null&&(i.locked_count=0)})):w.error(e.msg)})},Le=()=>{let n=[],e=!1;b.value.coutsInfo.forEach(i=>{if(e)return;const p=i.count-i.used_count;if(Number(i.locked_count)>p){w.error(`${i.name} 的占位数量不能大于剩余可用数量,最多${p}个`),e=!0;return}if(Number(i.locked_count)<0){w.error(`${i.name} 的占位数量不能为负数`),e=!0;return}n.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}),!e&&(g.value=!0,je({roster_detail_id:b.value.id,locked_counts:n}).then(i=>{g.value=!1,i.status?(M.value=!1,R(),w.success("占位设置保存成功")):w.error(i.msg)}))};function se(n){const e=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),p=String(n.getDate()).padStart(2,"0");return`${e}-${i}-${p}`}function Se(n){const e=n.map(V=>new Date(V)).sort((V,z)=>V-z),i=e[0],p=e[e.length-1],f=[];let C=new Date(i);for(;C<=p;)f.push(C.toISOString().split("T")[0]),C.setDate(C.getDate()+1);return f}function Pe(n){const e=new Date(n);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return Ae(()=>{const n=new Date,e=se(n),i=new Date(n);i.setDate(n.getDate()+14);const p=se(i);D.value.dateRange=[e,p],xe(),be()}),(n,e)=>{const i=h("el-option"),p=h("el-select"),f=h("el-form-item"),C=h("el-date-picker"),V=h("el-button"),z=h("el-row"),B=h("el-icon"),ze=h("el-empty"),F=h("el-tag"),Z=h("el-checkbox"),Be=h("el-checkbox-group"),te=h("el-input"),Ee=h("el-switch"),ue=h("el-form"),le=h("el-dialog"),U=h("el-table-column"),$e=h("el-table"),j=Ue("loading");return s(),r("div",null,[u("div",Qe,[a(z,null,{default:o(()=>[a(f,null,{default:o(()=>[a(p,{filterable:!0,clearable:"",modelValue:l(D).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(D).department_id=t),placeholder:"选择科室",onChange:he,style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[(s(!0),r(I,null,S(l(X),(t,y)=>(s(),L(i,{key:y,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(f,null,{default:o(()=>[a(C,{style:{"margin-left":"8px",width:"150px"},modelValue:l(D).dateRange[0],"onUpdate:modelValue":e[1]||(e[1]=t=>l(D).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[16]||(e[16]=u("span",{style:{margin:"0 4px"}},"至",-1)),a(C,{style:{width:"150px"},modelValue:l(D).dateRange[1],"onUpdate:modelValue":e[2]||(e[2]=t=>l(D).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(V,{onClick:e[3]||(e[3]=t=>R()),style:{"margin-left":"10px"}},{default:o(()=>[...e[17]||(e[17]=[_("搜索",-1)])]),_:1}),a(V,{type:"danger",onClick:e[4]||(e[4]=t=>Ie()),style:{"margin-left":"10px"}},{default:o(()=>[...e[18]||(e[18]=[_("删除",-1)])]),_:1})]),_:1})]),u("div",He,[u("div",Je,[(s(!0),r(I,null,S(l(O),(t,y)=>(s(),r("div",{key:y,onClick:v=>ye(t.id),class:W({"zhenshiButton zhenshiButtonActive":t.id===l($),zhenshiButton:t.id!==l($)})},c(t.department_resources_name),11,Ke))),128))]),Q((s(),r("div",et,[e[24]||(e[24]=u("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),l(N).length>0?(s(),r("table",tt,[u("tr",lt,[u("td",null,[u("div",nt,[e[19]||(e[19]=u("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),u("div",{class:W({"plan_checkAllbox plan_checkAllbox_active":l(A)===1,"plan_checkAllbox ":l(A)===0}),onClick:e[5]||(e[5]=t=>pe())},[l(A)===1?(s(),L(B,{key:0,color:"#ffffff"},{default:o(()=>[a(l(re))]),_:1})):k("",!0)],2)])]),(s(!0),r(I,null,S(l(H),(t,y)=>(s(),r("td",at,c(t.substring(5,10))+" "+c(Pe(t)),1))),256))]),(s(!0),r(I,null,S(l(N),(t,y)=>(s(),r("tr",{key:y},[(s(!0),r(I,null,S(t,(v,ie)=>(s(),r("td",{key:ie,onMouseover:x=>me(v.id),onMouseleave:x=>ge(v.id)},[u("div",null,[ie=="time_range"?(s(),r("span",st,c(v),1)):k("",!0),v.countsInfo&&v.countsInfo.length>0?(s(),r("div",{key:1,class:W({planInfo_k:v.status==1,"planInfo_k planInfo_k_disabled":v.status==0})},[l(J)==v.id?(s(),r("div",ut,[u("div",{class:"icon_k",onClick:x=>we(v.id)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(qe))]),_:1}),e[20]||(e[20]=u("span",{class:"icon_text"},"编辑",-1))],8,it),u("div",{class:"icon_k",onClick:x=>oe(v,0)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(Ge))]),_:1}),e[21]||(e[21]=u("span",{class:"icon_text"},"明细",-1))],8,dt),u("div",{class:"icon_k",onClick:x=>Ce(v)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(Ye))]),_:1}),e[22]||(e[22]=u("span",{class:"icon_text"},"占位",-1))],8,rt)])):k("",!0),u("div",{class:W({"plan_checkbox plan_checkbox_active":K(v.id),plan_checkbox:!K(v.id)}),onClick:x=>ve(v.id)},[K(v.id)?(s(),L(B,{key:0,color:"#ffffff"},{default:o(()=>[a(l(re))]),_:1})):k("",!0)],10,_t),u("div",ct,[u("div",ft,[e[23]||(e[23]=u("span",null,"总数:",-1)),_(c(v.countsInfo[0].max_total),1)])]),u("div",pt,[(s(!0),r(I,null,S(v.countsInfo,(x,de)=>(s(),r(I,{key:de},[x&&!(x.count===0&&x.used_count===0)?(s(),r("div",vt,[u("span",null,c(x.jiancheng),1),u("span",null,[x.locked_count?(s(),r("span",mt,c(x.locked_count),1)):k("",!0),x.locked_count?(s(),r("span",gt,"/")):k("",!0),u("span",yt,c(x.used_count),1),_("/"+c(x.count),1)])])):k("",!0)],64))),128))]),u("div",kt,[(s(!0),r(I,null,S(v.patient_type_label,(x,de)=>(s(),r("div",bt,c(x),1))),256))])],2)):k("",!0)])],40,ot))),128))]))),128))])):k("",!0),l(N).length==0?(s(),r("div",xt,[a(ze,{description:"暂无号源"})])):k("",!0)])),[[j,l(g)]])]),a(le,{modelValue:l(E),"onUpdate:modelValue":e[10]||(e[10]=t=>q(E)?E.value=t:E=t),title:"修改",width:"40%"},{footer:o(()=>[u("span",St,[a(V,{onClick:e[9]||(e[9]=t=>q(E)?E.value=!1:E=!1)},{default:o(()=>[...e[34]||(e[34]=[_("取消",-1)])]),_:1}),a(V,{type:"primary",onClick:Ve},{default:o(()=>[...e[35]||(e[35]=[_(" 确定 ",-1)])]),_:1})])]),default:o(()=>[Q((s(),r("div",null,[l(d)?(s(),L(ue,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[a(f,{label:"日期:"},{default:o(()=>[_(c(l(d).date),1)]),_:1}),a(f,{label:"星期:"},{default:o(()=>[_(c(l(d).weekname),1)]),_:1}),a(f,{label:"科室:"},{default:o(()=>[_(c(l(d).department_name),1)]),_:1}),k("",!0),k("",!0),a(f,{label:"病人类型:"},{default:o(()=>[a(Be,{disabled:"",modelValue:l(d).patientType,"onUpdate:modelValue":e[6]||(e[6]=t=>l(d).patientType=t)},{default:o(()=>[a(Z,{label:"0"},{default:o(()=>[...e[25]||(e[25]=[_("住院",-1)])]),_:1}),a(Z,{label:"1"},{default:o(()=>[...e[26]||(e[26]=[_("门诊",-1)])]),_:1}),a(Z,{label:"2"},{default:o(()=>[...e[27]||(e[27]=[_("急诊",-1)])]),_:1}),a(Z,{label:"3"},{default:o(()=>[...e[28]||(e[28]=[_("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"时间段:"},{default:o(()=>[e[29]||(e[29]=_(" 开始时间:",-1)),u("span",ht,c(l(d).begin_time),1),e[30]||(e[30]=_(" 结束时间:",-1)),u("span",wt,c(l(d).end_time),1),e[31]||(e[31]=_(" 停止预约时间:",-1)),u("span",Dt,c(l(d).end_reservation_time),1)]),_:1}),l(d).coutsInfo?(s(),L(f,{key:2,label:"渠道名额:"},{default:o(()=>[u("div",Vt,[e[32]||(e[32]=u("div",null,"当日总量",-1)),u("div",It,[a(te,{onInput:De,type:"number",modelValue:l(d).max_total,"onUpdate:modelValue":e[7]||(e[7]=t=>l(d).max_total=t),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[33]||(e[33]=u("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),u("div",null,[(s(!0),r(I,null,S(l(d).coutsInfo,(t,y)=>(s(),r("div",{class:"qudao_k",key:y},[u("div",Ct,c(t.name),1),u("div",Lt,[a(te,{type:"number",modelValue:l(d).coutsInfo[y].count,"onUpdate:modelValue":v=>l(d).coutsInfo[y].count=v,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):k("",!0),a(f,{label:"状态:"},{default:o(()=>[a(Ee,{modelValue:l(d).status,"onUpdate:modelValue":e[8]||(e[8]=t=>l(d).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),a(f,{label:"添加时间:"},{default:o(()=>[_(c(l(d).created_at),1)]),_:1})]),_:1})):k("",!0)])),[[j,l(g)]])]),_:1},8,["modelValue"]),a(le,{modelValue:l(G),"onUpdate:modelValue":e[13]||(e[13]=t=>q(G)?G.value=t:G=t),title:"预约明细",width:"60%"},{default:o(()=>[u("div",null,[u("div",Pt,[_(c(l(Y).department_resources_name)+" ",1),(s(!0),r(I,null,S(l(Y).devices,(t,y)=>(s(),r("span",{key:y,class:W(t.status==1&&t.is_del==0?"":"hongzi")},c(t.device_name),3))),128))]),a(f,{label:"渠道"},{default:o(()=>[a(p,{filterable:!0,clearable:"",modelValue:l(T),"onUpdate:modelValue":e[11]||(e[11]=t=>q(T)?T.value=t:T=t),onChange:e[12]||(e[12]=t=>oe(l(Y),l(T))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[a(i,{label:"全部",value:0}),(s(!0),r(I,null,S(l(Y).countsInfo,(t,y)=>(s(),L(i,{key:y,label:t.name,value:t.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Q((s(),L($e,{data:l(ae),style:{width:"100%"},"row-key":"id"},{default:o(()=>[a(U,{prop:"list_status",label:"状态",width:"100"},{default:o(t=>[t.row.list_status===0?(s(),L(F,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[36]||(e[36]=[_("申请中",-1)])]),_:1})):k("",!0),t.row.list_status===1?(s(),L(F,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[37]||(e[37]=[_("已预约",-1)])]),_:1})):k("",!0),t.row.list_status===2?(s(),L(F,{key:2,class:"ml-2"},{default:o(()=>[...e[38]||(e[38]=[_("登记",-1)])]),_:1})):k("",!0),t.row.list_status===3?(s(),L(F,{key:3,class:"ml-2",type:"warning"},{default:o(()=>[...e[39]||(e[39]=[_("完成",-1)])]),_:1})):k("",!0)]),_:1}),a(U,{prop:"user_name",label:"姓名"}),a(U,{prop:"user_phone",label:"电话"}),a(U,{prop:"reg_num",label:"登记号"}),a(U,{prop:"reservation_department",label:"申请科室"}),a(U,{prop:"entrust",label:"项目"}),a(U,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[j,l(ee)]])])]),_:1},8,["modelValue"]),a(le,{modelValue:l(M),"onUpdate:modelValue":e[15]||(e[15]=t=>q(M)?M.value=t:M=t),title:"占位设置",width:"40%"},{footer:o(()=>[u("span",Rt,[a(V,{onClick:e[14]||(e[14]=t=>q(M)?M.value=!1:M=!1)},{default:o(()=>[...e[42]||(e[42]=[_("取消",-1)])]),_:1}),a(V,{type:"primary",onClick:Le},{default:o(()=>[...e[43]||(e[43]=[_(" 确定 ",-1)])]),_:1})])]),default:o(()=>[Q((s(),r("div",null,[l(b)?(s(),L(ue,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:o(()=>[a(f,{label:"日期:"},{default:o(()=>[_(c(l(b).date),1)]),_:1}),a(f,{label:"星期:"},{default:o(()=>[_(c(l(b).weekname),1)]),_:1}),a(f,{label:"科室:"},{default:o(()=>[_(c(l(b).department_name),1)]),_:1}),a(f,{label:"资源:"},{default:o(()=>[_(c(l(b).resources_name),1)]),_:1}),a(f,{label:"服务组:"},{default:o(()=>[(s(!0),r(I,null,S(l(b).devices,(t,y)=>(s(),L(F,{key:y,type:t.status===1&&t.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:o(()=>[_(c(t.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),a(f,{label:"时间段:"},{default:o(()=>[e[40]||(e[40]=_(" 开始时间:",-1)),u("span",zt,c(l(b).begin_time),1),e[41]||(e[41]=_(" 结束时间:",-1)),u("span",Bt,c(l(b).end_time),1)]),_:1}),a(f,{label:"渠道占位:"},{default:o(()=>[u("div",Et,[l(b).coutsInfo&&l(b).coutsInfo.length>0?(s(!0),r(I,{key:0},S(l(b).coutsInfo,(t,y)=>(s(),r(I,{key:y},[t&&!(t.count===0&&t.used_count===0)?(s(),r("div",$t,[u("div",Mt,c(t.name),1),u("div",At,[a(te,{type:"number",modelValue:l(b).coutsInfo[y].locked_count,"onUpdate:modelValue":v=>l(b).coutsInfo[y].locked_count=v,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),u("div",Ut," 剩余可用: "+c(t.count-t.used_count),1)])):k("",!0)],64))),128)):(s(),r("div",Nt," 暂无渠道数据 "))])]),_:1})]),_:1})):k("",!0)])),[[j,l(g)]])]),_:1},8,["modelValue"])])}}},Yt=Me(Tt,[["__scopeId","data-v-4f905d7b"]]);export{Yt as default}; diff --git a/Laravel/public/admin/assets/PlanModel-e04a150a.css b/Laravel/public/admin/assets/PlanModel-e04a150a.css deleted file mode 100644 index 9e18266..0000000 --- a/Laravel/public/admin/assets/PlanModel-e04a150a.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-04dd4e4d]{display:flex}.type_count div[data-v-04dd4e4d]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-04dd4e4d]{display:flex}.qudao_k_input[data-v-04dd4e4d]{width:150px}.hongzi[data-v-04dd4e4d]{color:#b25252}.planInfo .planTable[data-v-04dd4e4d]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-04dd4e4d]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-04dd4e4d]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-04dd4e4d]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-04dd4e4d]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-04dd4e4d]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-04dd4e4d]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-04dd4e4d]{width:100px}.zhenshiButton[data-v-04dd4e4d]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-04dd4e4d]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-04dd4e4d]{background-color:#ffd6d2}.planInfo_k[data-v-04dd4e4d]{font-size:14px;color:#333;position:relative;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-04dd4e4d]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-04dd4e4d]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-04dd4e4d]{display:flex}.planInfo_k .qudao_count_row div[data-v-04dd4e4d]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-04dd4e4d],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-04dd4e4d]{font-weight:700}.planInfo_k .patient_type_row[data-v-04dd4e4d]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-04dd4e4d]{background-color:#ebfff4;border:1px solid #9fdebc;color:#83b69a;font-size:12px;padding:1px 2px;border-radius:4px;margin-left:4px}.planInfo_k .locked_count_row[data-v-04dd4e4d]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-04dd4e4d]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-04dd4e4d]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.plan_checkAllbox[data-v-04dd4e4d]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-04dd4e4d]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/admin/assets/PlanModelAdmin-2b8dd32a.js b/Laravel/public/admin/assets/PlanModelAdmin-2b8dd32a.js deleted file mode 100644 index 45170e8..0000000 --- a/Laravel/public/admin/assets/PlanModelAdmin-2b8dd32a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as dt,o as it,r as h,c as rt,d as s,e as _,k as d,f as n,w as u,i as a,F as B,t as D,h as K,$ as Q,j as E,x as y,l as L,g as v,I as _t,E as V,X as pt,O as mt,J as vt,q as f,v as w,ba as ft,N as me,aU as ct,bb as gt,bc as yt,bd as bt,be as kt,aZ as xt,a_ as Ie,a$ as ht,b0 as Vt}from"./index-af171713.js";const wt={class:"head"},Ct={key:0,style:{display:"flex"},class:"planInfo"},qt={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},It=["onClick"],Et={style:{border:"1px solid #efefef",width:"100%"}},Tt={key:0,class:"planTable"},Bt={style:{"background-color":"#f1f1f1",position:"relative"}},Dt={style:{width:"120px",display:"flex","font-size":"12px"}},Pt={style:{"font-weight":"700"}},Ut=["onMouseover","onMouseleave"],Lt={key:0},At={key:0,class:"hoverTools"},St=["onClick"],Mt=["onClick"],zt=["onClick"],$t={class:"qudao_count_row"},Gt={class:"qudao_title_zong"},Rt={class:"patient_type_row"},Nt={class:"tps"},Ft={key:1,class:"locked_count_row"},Zt={key:1,style:{width:"100%","background-color":"#fff"}},Ot={key:0,class:"type_count"},Wt={key:0,class:"type_count"},Yt={style:{"font-weight":"700"}},jt={style:{"margin-right":"26px"}},Ht={class:"qudao_k_input"},Jt={style:{width:"50px"}},Xt={class:"qudao_k_input",style:{display:"flex"}},Kt={style:{"margin-left":"4px",color:"#ccc"}},Qt={style:{display:"flex"}},el={style:{display:"flex"}},tl={class:"qudao_k_input"},ll={style:{display:"flex"}},al={class:"qudao_k_input"},ol={style:{"margin-left":"8px"}},nl={style:{display:"flex"}},ul={class:"qudao_k_input"},sl={style:{display:"flex"}},dl={class:"qudao_k_input"};const il={class:"dialog-footer"},rl={class:"dialog-footer"},_l={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},pl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},ml={style:{width:"80px"}},vl={style:{flex:"1"}},fl={style:{color:"#999","font-size":"12px"}},cl={key:1,style:{color:"#999"}},gl={class:"dialog-footer"},yl={__name:"PlanModelAdmin",setup(bl){let G=v("1"),m=v(!1),Ee=v(1),Te=v(15),A=v([]),U=v({}),Z=v([]),T=v([]),R=v(0),ve=v([]),F=v([]),S=v(!1),M=v(!1),q=v(null);const Be=()=>{if(T.value.length===0)return V.error("请至少勾选1条记录"),!1;S.value=!0},oe=(l,e)=>{p.value.type=0,W.value.forEach((i,x)=>{i.id===e&&(U.value=i,i.time_mode==1&&(p.value.type=1))}),R.value=0,T.value=[],p.value.resources_id=e,O()},De=()=>{R.value=R.value===0?1:0,R.value===0&&(T.value=[]),R.value===1&&Z.value.forEach((l,e)=>{console.log(l);for(let i in l)i!="time_range"&&T.value.push(l[i].id)})};let ne=v(null);const Pe=l=>{ne.value=l},Ue=l=>{ne.value=null},ue=l=>T.value.includes(l),Le=l=>{T.value.indexOf(l)===-1?T.value.push(l):T.value=T.value.filter(i=>i!==l)},Ae=()=>{if(F.value.length===0)return V.error("请选择日期范围"),!1;ft({dateRange:F.value,ids:T.value,HolidayEnable:H.value,date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{l.status?(S.value=!1,V({message:l.msg,type:"success"})):me.alert(l.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let p=v({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),H=v(1),se=v("工作日"),z=v(!1);const O=()=>{m.value=!0,ct({page:Ee.value,pageSize:Te.value,searchInfo:p.value}).then(l=>{if(m.value=!1,l.status){Z.value=[],T.value=[];let e=l.data.list;if(ve.value=e,e.length>0){const i=new Set;e.forEach((r,C)=>{if(r.department_resources_name==U.value.department_resources_name){const b=`${r.begin_time.substring(0,5)}-${r.end_time.substring(0,5)}`;i.add(b)}r.resources_id}),Array.from(i).sort().forEach(r=>{const C={time_range:r};de.value.forEach(b=>{const k=e.find(I=>`${I.begin_time.substring(0,5)}-${I.end_time.substring(0,5)}`===r&&I.weekname===b.label&&I.department_resources_name==U.value.department_resources_name);k?C[b.label]={countsInfo:k.countsInfo,patient_type_label:k.patient_type_label,status:k.status,id:k.id,resources_id:k.resources_id}:C[b.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),Z.value.push(C)})}}})};let de=v([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),Se=v(null);const fe=()=>({id:0,type:0,xingqi:[],max_total:0,qudao_total:[],period_id:null,begin_time:"",end_time:"",end_reservation_time:"",time_unit:0,resources_id:null,devices:[],patientType:[],status:1});let o=v(fe()),ee=v(0);const ie=(l=null)=>{ye.value=[],J.value=!1,z.value=!0,o.value=fe(),ee.value=0,Oe(),We(),l?(o.value.resources_id=l.resources_id,be(),setTimeout(()=>{console.log("编辑"),je(l.id)},500)):U.value.id&&(o.value.resources_id=U.value.id,be())},Me=()=>{p.value.date_type==1&&(se.value="工作日",A.value.length>0&&oe(A.value[0].resources_name,A.value[0].resources_id)),p.value.date_type==2&&(se.value="节假日",p.value.type=0,p.value.resources_id=null,O())},ze=()=>{O()},$e=()=>{let l=0;if(o.value.qudao_total.forEach(e=>{l=l+Number(e.count)}),l!==Number(o.value.max_total))return V.error("各个渠道数量之和与当日总量不符"),!1;me.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,gt({date_type:p.value.date_type,planInfo:o.value,department_id:p.value.department_id}).then(e=>{m.value=!1,e.status?(z.value=!1,O()):V.error(e.msg)})})},Ge=()=>{if(T.value.length==0)return V.error("请至少勾选1条记录"),!1;me.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,yt({ids:T.value,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(V({message:l.msg,type:"success"}),O()):V.error(l.msg)})})};let Re=v([]);const Ne=()=>{m.value=!0,_t().then(l=>{m.value=!1,l.status?Re.value=l.data:V.error(l.msg)})};let te=v([]);const Fe=()=>{m.value=!0,pt({}).then(l=>{m.value=!1,l.status?(te.value=l.data.list,te.value.length>0&&(p.value.department_id=te.value[0].id,ge())):V.error(l.msg)})},Ze=()=>{p.value.resources_id=null,U.value={},ge()},Oe=()=>{m.value=!0,bt({department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(o.value.qudao_total=l.data,o.value.qudao_total.forEach((e,i)=>{o.value.qudao_total[i].count=0})):V.error(l.msg)})},re=l=>{(l===""||l==null||l===0)&&(o.value.max_total=0);let e=0,i=o.value.qudao_total.length;console.log(o.value.qudao_total);for(let x=0;xk.ratio-I.ratio);let C=null;for(let k=0;k0&&(o.value.qudao_total[b].count=o.value.qudao_total[b].count-r),r<0&&b>0&&(o.value.qudao_total[b-1].count=o.value.qudao_total[b-1].count-r),r<0&&b==0&&(o.value.qudao_total[b].count=o.value.qudao_total[b].count-r),o.value.qudao_total.sort((k,I)=>I.ratio-k.ratio)}};let ce=v([]);const We=()=>{m.value=!0,kt({date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?ce.value=l.data:V.error(l.msg)})},Ye=()=>{m.value=!0,xt({id:o.value.period_id}).then(l=>{m.value=!1,l.status?(o.value.begin_time=l.data.period_begin_time,o.value.end_time=l.data.period_end_time,o.value.end_reservation_time=l.data.period_deadline):V.error(l.msg)})},je=l=>{m.value=!0,Ie({id:l}).then(e=>{if(m.value=!1,e.status){o.value=e.data,o.value.max_total=e.data.qudao_total[0].max_total,o.value.xingqi=[e.data.weekname],o.value.devices=e.data.devices;const i=W.value.find(x=>x.id===o.value.resources_id);ee.value=i&&i.time_mode||0}else V.error(e.msg)})};let W=v([]);const ge=()=>{A.value=[],p.value.department_id&&(m.value=!0,mt({department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(W.value=l.data,W.value.forEach((e,i)=>{A.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),U.value.department_resources_name==null&&A.value.length>0&&oe(A.value[0].resources_name,A.value[0].resources_id)):V.error(l.msg)}))};let ye=v([]);const be=()=>{o.value.devices=[];const l=W.value.find(e=>e.id===o.value.resources_id);ee.value=l&&l.time_mode||0,m.value=!0,ht({resource_id:o.value.resources_id}).then(e=>{m.value=!1,e.status?(ye.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):V.error(e.msg)})},He=()=>{vt().then(l=>{if(l.status){let k=l.data.datetime.substring(0,10);var e=new Date(k),i=e.getMonth(),x=(i+1)%12,r=e.getFullYear()+((i+1)/12|0),C=e.getDate(),b=new Date(r,x,C);b.getMonth()!==x&&(b=new Date(r,x,0));let I=b.toISOString().split("T")[0];F.value=[k,I]}})};let J=v(!1);const Je=l=>{l?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},Xe=l=>{G.value=l,re(0),ke(0)},Ke=l=>{T.value=[],l.forEach((e,i)=>{T.value.push(e.id)}),console.log(T.value)},ke=l=>{if(G.value==2){if(o.value.begin_time==""||o.value.end_time=="")return V.error("请先设置时段"),o.value.max_total=0,!1;Qe(l)}},Qe=l=>{let e=et(o.value.begin_time,o.value.end_time,l);o.value.max_total=e,re(e)};function et(l,e,i){function x(I){const[le,Y]=I.split(":").map(Number);return le*60+Y}const r=x(l),b=x(e)-r;return Math.floor(b/i)}const xe=l=>!l||!Array.isArray(l)?0:l.reduce((e,i)=>e+(Number(i.locked_count)||0),0),tt=l=>{M.value=!0,m.value=!0,Ie({id:l.id}).then(e=>{if(m.value=!1,e.status){q.value=e.data;const i=W.value.find(r=>r.id===l.resources_id);q.value.resources_name=i?i.department_resources_name:"";const x=l.time_range||"";q.value.time_range=x,q.value.qudao_total&&q.value.qudao_total.forEach(r=>{r.locked_count===null&&(r.locked_count=0)})}else V.error(e.msg)})},lt=()=>{let l=[],e=!1;q.value.qudao_total.forEach(i=>{if(!e){if(Number(i.locked_count)<0){V.error(`${i.name} 的占位数量不能为负数`),e=!0;return}if(Number(i.locked_count)>i.count){V.error(`${i.name} 的占位数量不能超过可用数量,最多${i.count}个`),e=!0;return}l.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}}),!e&&(m.value=!0,Vt({roster_id:q.value.id,locked_counts:l}).then(i=>{m.value=!1,i.status?(M.value=!1,V.success("占位设置保存成功"),O()):V.error(i.msg)}))};return it(()=>{p.value.date_type=1,Fe(),Ne(),He()}),(l,e)=>{const i=h("el-option"),x=h("el-select"),r=h("el-form-item"),C=h("el-button"),b=h("el-row"),k=h("el-radio-button"),I=h("el-radio-group"),le=h("Select"),Y=h("el-icon"),at=h("Edit"),ot=h("Lock"),nt=h("el-empty"),P=h("el-table-column"),he=h("el-tag"),ut=h("el-table"),j=h("el-checkbox"),Ve=h("el-checkbox-group"),ae=h("el-radio"),N=h("el-input"),we=h("el-switch"),_e=h("el-form"),pe=h("el-dialog"),st=h("el-date-picker"),X=rt("loading");return s(),_("div",null,[d("div",wt,[n(b,{style:{display:"flex","justify-content":"end"}},{default:u(()=>[n(r,null,{default:u(()=>[n(x,{filterable:!0,clearable:"",modelValue:a(p).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>a(p).department_id=t),placeholder:"选择科室",onChange:Ze,style:{"margin-left":"8px",width:"150px"}},{default:u(()=>[(s(!0),_(B,null,D(a(te),(t,c)=>(s(),E(i,{key:c,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(C,{type:"primary",onClick:e[1]||(e[1]=t=>ie()),style:{"margin-left":"10px"}},{default:u(()=>[...e[32]||(e[32]=[f("添加",-1)])]),_:1}),n(C,{type:"danger",onClick:e[2]||(e[2]=t=>Ge()),style:{"margin-left":"10px"}},{default:u(()=>[...e[33]||(e[33]=[f("删除",-1)])]),_:1}),n(C,{type:"success",onClick:e[3]||(e[3]=t=>Be()),style:{"margin-left":"20px"}},{default:u(()=>[...e[34]||(e[34]=[f("生成选中的计划",-1)])]),_:1})]),_:1})]),n(b,null,{default:u(()=>[n(I,{style:{"margin-bottom":"8px"},modelValue:a(p).date_type,"onUpdate:modelValue":e[4]||(e[4]=t=>a(p).date_type=t),onChange:e[5]||(e[5]=t=>Me())},{default:u(()=>[n(k,{label:1},{default:u(()=>[...e[35]||(e[35]=[f("工作日",-1)])]),_:1}),n(k,{label:2},{default:u(()=>[...e[36]||(e[36]=[f("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),a(U).time_mode==1&&a(p).date_type==1?(s(),E(I,{key:0,style:{"margin-bottom":"8px","margin-left":"20px"},"text-color":"#fff",fill:"#62bf68",size:"small",modelValue:a(p).type,"onUpdate:modelValue":e[6]||(e[6]=t=>a(p).type=t),onChange:e[7]||(e[7]=t=>ze())},{default:u(()=>[n(k,{label:1},{default:u(()=>[...e[37]||(e[37]=[f("夏令时",-1)])]),_:1}),n(k,{label:2},{default:u(()=>[...e[38]||(e[38]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):y("",!0)]),_:1}),a(p).date_type==1?(s(),_("div",Ct,[d("div",qt,[(s(!0),_(B,null,D(a(A),(t,c)=>(s(),_("div",{key:c,onClick:g=>oe(t.resources_name,t.resources_id),class:Q({"zhenshiButton zhenshiButtonActive":t.resources_name===a(U).department_resources_name,zhenshiButton:t.resources_name!==a(U).department_resources_name})},w(t.resources_name),11,It))),128))]),K((s(),_("div",Et,[a(Z).length>0?(s(),_("table",Tt,[d("tr",Bt,[d("td",Dt,[e[39]||(e[39]=d("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),d("div",{class:Q({"plan_checkAllbox plan_checkAllbox_active":a(R)===1,"plan_checkAllbox ":a(R)===0}),onClick:e[8]||(e[8]=t=>De())},[a(R)===1?(s(),E(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(le)]),_:1})):y("",!0)],2)]),(s(!0),_(B,null,D(a(de),(t,c)=>(s(),_("td",Pt,w(t.label),1))),256))]),(s(!0),_(B,null,D(a(Z),(t,c)=>(s(),_("tr",{key:c},[(s(!0),_(B,null,D(t,(g,Ce)=>(s(),_("td",{key:Ce,onMouseover:$=>Pe(g.id),onMouseleave:$=>Ue(g.id)},[Ce=="time_range"?(s(),_("span",Lt,w(g),1)):y("",!0),g.countsInfo&&g.countsInfo.length>0?(s(),_("div",{key:1,class:Q({planInfo_k:g.status==1,"planInfo_k planInfo_k_disabled":g.status==0})},[a(ne)==g.id?(s(),_("div",At,[d("div",{class:"icon_k",onClick:$=>ie(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(at)]),_:1}),e[40]||(e[40]=d("span",{class:"icon_text"},"编辑",-1))],8,St),d("div",{class:"icon_k",onClick:$=>tt(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(ot)]),_:1}),e[41]||(e[41]=d("span",{class:"icon_text"},"占位",-1))],8,Mt)])):y("",!0),d("div",{class:Q({"plan_checkbox plan_checkbox_active":ue(g.id),plan_checkbox:!ue(g.id)}),onClick:$=>Le(g.id)},[ue(g.id)?(s(),E(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(le)]),_:1})):y("",!0)],10,zt),d("div",$t,[d("div",Gt,[e[42]||(e[42]=d("span",null,"总",-1)),f(w(g.countsInfo[0].max_total),1)]),(s(!0),_(B,null,D(g.countsInfo,($,qe)=>(s(),_("div",{key:qe},[d("span",null,w($.jiancheng),1),d("span",null,w($.count),1)]))),128))]),d("div",Rt,[(s(!0),_(B,null,D(g.patient_type_label,($,qe)=>(s(),_("div",Nt,w($),1))),256))]),xe(g.countsInfo)>0?(s(),_("div",Ft," 占:"+w(xe(g.countsInfo)),1)):y("",!0)],2)):y("",!0)],40,Ut))),128))]))),128))])):y("",!0),a(Z).length==0?(s(),_("div",Zt,[n(nt,{description:"暂无"})])):y("",!0)])),[[X,a(m)]])])):y("",!0),a(p).date_type==2?K((s(),E(ut,{key:1,data:a(ve),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Ke},{default:u(()=>[n(P,{type:"selection",width:"55"}),n(P,{prop:"id",label:"Id",width:"70"}),a(p).date_type==1?(s(),E(P,{key:0,prop:"weekname",label:"星期",width:"80"})):y("",!0),y("",!0),n(P,{prop:"department_resources_name",label:"资源",width:"150"}),n(P,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(t=>[t.row.devices.length>0?(s(),_("div",Ot,[(s(!0),_(B,null,D(t.row.devices,(c,g)=>(s(),_("div",{key:g,class:Q(c.status==1&&c.is_del==0?"":"hongzi")},w(c.device_name),3))),128))])):y("",!0)]),_:1}),n(P,{prop:"period_name",label:"时段",width:"100"}),n(P,{prop:"begin_time",label:"开始时间",width:"100"}),n(P,{prop:"end_time",label:"结束时间",width:"100"}),n(P,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(t=>[t.row.countsInfo.length>0?(s(),_("div",Wt,[d("div",Yt,"最大数量:"+w(t.row.countsInfo[0].max_total),1),(s(!0),_(B,null,D(t.row.countsInfo,(c,g)=>(s(),_("div",{key:g},w(c.name)+":"+w(c.count),1))),128))])):y("",!0)]),_:1}),n(P,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(P,{prop:"roster_status",label:"状态",width:"80"},{default:u(t=>[t.row.status===1?(s(),E(he,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[43]||(e[43]=[f("正常",-1)])]),_:1})):y("",!0),t.row.status===0?(s(),E(he,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[44]||(e[44]=[f("关闭",-1)])]),_:1})):y("",!0)]),_:1}),n(P,{prop:"",label:"操作",width:"80"},{default:u(t=>[n(C,{type:"primary",onClick:c=>ie(t.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[45]||(e[45]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,a(m)]]):y("",!0),n(pe,{modelValue:a(z),"onUpdate:modelValue":e[25]||(e[25]=t=>L(z)?z.value=t:z=t),title:"时间段("+a(se)+")",width:"45%"},{footer:u(()=>[d("span",il,[n(C,{onClick:e[24]||(e[24]=t=>L(z)?z.value=!1:z=!1)},{default:u(()=>[...e[61]||(e[61]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:$e},{default:u(()=>[...e[62]||(e[62]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((s(),E(_e,{ref_key:"PlanInfoForm",ref:Se,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(p).date_type==1?(s(),E(r,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(j,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(J),"onUpdate:modelValue":e[9]||(e[9]=t=>L(J)?J.value=t:J=t),onChange:Je,label:"全选"},{default:u(()=>[...e[46]||(e[46]=[d("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(Ve,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[10]||(e[10]=t=>a(o).xingqi=t)},{default:u(()=>[(s(!0),_(B,null,D(a(de),(t,c)=>(s(),E(j,{disabled:a(o).id!=0,key:c,label:t.label},{default:u(()=>[f(w(t.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):y("",!0),n(r,{label:"渠道名额:"},{default:u(()=>[d("div",jt,[d("div",null,[n(I,{modelValue:a(G),"onUpdate:modelValue":e[11]||(e[11]=t=>L(G)?G.value=t:G=t),onChange:Xe},{default:u(()=>[n(ae,{label:"1"},{default:u(()=>[...e[47]||(e[47]=[f("根据总量",-1)])]),_:1}),n(ae,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[48]||(e[48]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),d("div",Ht,[a(G)==1?(s(),E(N,{key:0,style:{width:"220px"},onInput:re,type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[12]||(e[12]=t=>a(o).max_total=t),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):y("",!0),a(G)==2?(s(),E(N,{key:1,style:{width:"220px"},onInput:ke,type:"number",modelValue:a(o).time_long,"onUpdate:modelValue":e[13]||(e[13]=t=>a(o).time_long=t),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):y("",!0)]),e[49]||(e[49]=d("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),d("div",null,[(s(!0),_(B,null,D(a(o).qudao_total,(t,c)=>(s(),_("div",{class:"qudao_k",key:c},[d("div",Jt,w(t.name),1),d("div",Xt,[n(N,{type:"number",modelValue:a(o).qudao_total[c].count,"onUpdate:modelValue":g=>a(o).qudao_total[c].count=g,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"]),d("div",Kt,w(t.ratio)+"%",1)])]))),128))])]),_:1}),n(r,{label:"时间设置:"},{default:u(()=>[d("div",null,[e[54]||(e[54]=f("选择时段: ",-1)),n(x,{filterable:!0,clearable:"",modelValue:a(o).period_id,"onUpdate:modelValue":e[14]||(e[14]=t=>a(o).period_id=t),onChange:Ye,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(s(!0),_(B,null,D(a(ce),(t,c)=>(s(),E(i,{key:c,label:t.period_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),d("div",Qt,[d("div",null,[d("div",el,[e[50]||(e[50]=d("div",{style:{width:"70px"}},"开始时间:",-1)),d("div",tl,[n(N,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[15]||(e[15]=t=>a(o).begin_time=t),placeholder:"开始时间"},null,8,["modelValue"])])]),d("div",ll,[e[51]||(e[51]=d("div",{style:{width:"70px"}},"结束时间:",-1)),d("div",al,[n(N,{modelValue:a(o).end_time,"onUpdate:modelValue":e[16]||(e[16]=t=>a(o).end_time=t),placeholder:"结束时间"},null,8,["modelValue"])])])]),d("div",ol,[d("div",nl,[e[52]||(e[52]=d("div",{style:{width:"90px"}},"停止预约时间:",-1)),d("div",ul,[n(N,{modelValue:a(o).end_reservation_time,"onUpdate:modelValue":e[17]||(e[17]=t=>a(o).end_reservation_time=t),placeholder:"停止预约时间"},null,8,["modelValue"])])]),d("div",sl,[e[53]||(e[53]=d("div",{style:{width:"90px"}},"可用时间长度:",-1)),d("div",dl,[n(N,{modelValue:a(o).time_unit,"onUpdate:modelValue":e[18]||(e[18]=t=>a(o).time_unit=t),placeholder:"可用时间长度"},null,8,["modelValue"])])])])])])]),_:1}),y("",!0),a(ee)===1&&a(p).date_type===1?(s(),E(r,{key:2,label:"时令:"},{default:u(()=>[n(I,{modelValue:a(o).type,"onUpdate:modelValue":e[20]||(e[20]=t=>a(o).type=t)},{default:u(()=>[n(ae,{label:1},{default:u(()=>[...e[55]||(e[55]=[d("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(ae,{label:2},{default:u(()=>[...e[56]||(e[56]=[d("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):y("",!0),y("",!0),n(r,{label:"病人类型:"},{default:u(()=>[n(Ve,{modelValue:a(o).patientType,"onUpdate:modelValue":e[22]||(e[22]=t=>a(o).patientType=t)},{default:u(()=>[n(j,{label:"0"},{default:u(()=>[...e[57]||(e[57]=[f("住院",-1)])]),_:1}),n(j,{label:"1"},{default:u(()=>[...e[58]||(e[58]=[f("门诊",-1)])]),_:1}),n(j,{label:"2"},{default:u(()=>[...e[59]||(e[59]=[f("急诊",-1)])]),_:1}),n(j,{label:"3"},{default:u(()=>[...e[60]||(e[60]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(r,{label:"状态:"},{default:u(()=>[n(we,{modelValue:a(o).status,"onUpdate:modelValue":e[23]||(e[23]=t=>a(o).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[X,a(m)]])]),_:1},8,["modelValue","title"]),n(pe,{modelValue:a(S),"onUpdate:modelValue":e[29]||(e[29]=t=>L(S)?S.value=t:S=t),title:"生成计划",width:"50%"},{footer:u(()=>[d("span",rl,[n(C,{onClick:e[28]||(e[28]=t=>L(S)?S.value=!1:S=!1)},{default:u(()=>[...e[63]||(e[63]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:Ae},{default:u(()=>[...e[64]||(e[64]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((s(),E(_e,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"选择时间范围:"},{default:u(()=>[n(st,{modelValue:a(F),"onUpdate:modelValue":e[26]||(e[26]=t=>L(F)?F.value=t:F=t),type:"daterange","range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(r,{label:"节假日生成:"},{default:u(()=>[n(we,{modelValue:a(H),"onUpdate:modelValue":e[27]||(e[27]=t=>L(H)?H.value=t:H=t),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[X,a(m)]])]),_:1},8,["modelValue"]),n(pe,{modelValue:a(M),"onUpdate:modelValue":e[31]||(e[31]=t=>L(M)?M.value=t:M=t),title:"占位设置",width:"40%"},{footer:u(()=>[d("span",gl,[n(C,{onClick:e[30]||(e[30]=t=>L(M)?M.value=!1:M=!1)},{default:u(()=>[...e[65]||(e[65]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:lt},{default:u(()=>[...e[66]||(e[66]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((s(),_("div",null,[a(q)?(s(),E(_e,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"模板ID:"},{default:u(()=>[f(w(a(q).id),1)]),_:1}),n(r,{label:"资源:"},{default:u(()=>[f(w(a(q).resources_name),1)]),_:1}),n(r,{label:"时间段:"},{default:u(()=>[f(w(a(q).begin_time?a(q).begin_time.substring(0,5):"")+" - "+w(a(q).end_time?a(q).end_time.substring(0,5):""),1)]),_:1}),n(r,{label:"星期:"},{default:u(()=>[f(w(a(q).weekname),1)]),_:1}),n(r,{label:"渠道占位:"},{default:u(()=>[d("div",_l,[a(q).qudao_total&&a(q).qudao_total.length>0?(s(!0),_(B,{key:0},D(a(q).qudao_total,(t,c)=>(s(),_(B,{key:c},[t&&t.count!==0?(s(),_("div",pl,[d("div",ml,w(t.name),1),d("div",vl,[n(N,{type:"number",modelValue:a(q).qudao_total[c].locked_count,"onUpdate:modelValue":g=>a(q).qudao_total[c].locked_count=g,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),d("div",fl," 可用: "+w(t.count),1)])):y("",!0)],64))),128)):(s(),_("div",cl," 暂无渠道数据 "))])]),_:1})]),_:1})):y("",!0)])),[[X,a(m)]])]),_:1},8,["modelValue"])])}}},xl=dt(yl,[["__scopeId","data-v-45f111b2"]]);export{xl as default}; diff --git a/Laravel/public/admin/assets/PlanModelAdmin-a6f849b8.css b/Laravel/public/admin/assets/PlanModelAdmin-a6f849b8.css deleted file mode 100644 index 9fa940e..0000000 --- a/Laravel/public/admin/assets/PlanModelAdmin-a6f849b8.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-45f111b2]{display:flex}.type_count div[data-v-45f111b2]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-45f111b2]{display:flex}.qudao_k_input[data-v-45f111b2]{width:150px}.hongzi[data-v-45f111b2]{color:#b25252}.planInfo .planTable[data-v-45f111b2]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-45f111b2]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-45f111b2]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-45f111b2]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-45f111b2]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-45f111b2]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-45f111b2]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-45f111b2]{width:100px}.zhenshiButton[data-v-45f111b2]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-45f111b2]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-45f111b2]{background-color:#ffd6d2}.planInfo_k[data-v-45f111b2]{font-size:14px;color:#333;position:relative;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-45f111b2]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-45f111b2]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-45f111b2]{display:flex}.planInfo_k .qudao_count_row div[data-v-45f111b2]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-45f111b2],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-45f111b2]{font-weight:700}.planInfo_k .patient_type_row[data-v-45f111b2]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-45f111b2]{background-color:#ebfff4;border:1px solid #9fdebc;color:#83b69a;font-size:12px;padding:1px 2px;border-radius:4px;margin-left:4px}.planInfo_k .locked_count_row[data-v-45f111b2]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-45f111b2]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-45f111b2]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-45f111b2]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-45f111b2]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap;line-height:1.4}.plan_checkAllbox[data-v-45f111b2]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-45f111b2]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/admin/assets/YuYue202506-7c6b81a3.css b/Laravel/public/admin/assets/YuYue202506-7c6b81a3.css deleted file mode 100644 index 553039d..0000000 --- a/Laravel/public/admin/assets/YuYue202506-7c6b81a3.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.YuYue202506[data-v-bfe57275]{display:flex;flex-direction:column;height:100%}.patientInfo[data-v-bfe57275]{display:flex;align-items:center;flex-shrink:0}.patientInfo .item[data-v-bfe57275]{margin-right:18px}.patientInfo .name[data-v-bfe57275]{font-size:20px;font-weight:700}.patientInfo .value[data-v-bfe57275]{font-size:18px;font-weight:700}.entrustList[data-v-bfe57275]{flex:1;min-height:0;overflow:auto}.entrustList .errMsg[data-v-bfe57275]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo[data-v-bfe57275]{max-height:600px;overflow:auto;flex-shrink:0}.planInfo .planTable[data-v-bfe57275]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-bfe57275]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-bfe57275]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-bfe57275]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-bfe57275]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-bfe57275]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-bfe57275]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button_recommend[data-v-bfe57275]{width:180px}.planInfo .do_button[data-v-bfe57275]{width:100px}.ZhenShiButton[data-v-bfe57275]{text-align:center;font-size:14px;background-color:#fff;border:1px solid #e8e8e8;width:120px;cursor:default;display:flex;justify-content:center;align-items:center;padding:4px}.zhenshiButton_active[data-v-bfe57275]{background-color:#5bc0de;color:#fff}[data-v-bfe57275] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-bfe57275] .el-table .selected-row{background-color:#9cd0de}.tip-pre-line{white-space:pre-line;font-size:16px} diff --git a/Laravel/public/admin/assets/AppointmentTj-80d105dd.css b/Laravel/public/dist/assets/AppointmentTj-80d105dd.css similarity index 100% rename from Laravel/public/admin/assets/AppointmentTj-80d105dd.css rename to Laravel/public/dist/assets/AppointmentTj-80d105dd.css diff --git a/Laravel/public/admin/assets/AppointmentTj-8d405e12.js b/Laravel/public/dist/assets/AppointmentTj-fe3dcebe.js similarity index 97% rename from Laravel/public/admin/assets/AppointmentTj-8d405e12.js rename to Laravel/public/dist/assets/AppointmentTj-fe3dcebe.js index b799f26..e85d9a1 100644 --- a/Laravel/public/admin/assets/AppointmentTj-8d405e12.js +++ b/Laravel/public/dist/assets/AppointmentTj-fe3dcebe.js @@ -1 +1 @@ -import{_ as L,Z as B,o as E,r as d,c as N,d as r,e as c,k as a,f as s,w as p,i as l,v as g,x as D,h as S,j,F as I,J as F,br as G,D as U,E as q,q as z,g as n,bs as J}from"./index-af171713.js";const O={class:"head"},Z={style:{display:"flex"}},$={key:0,style:{"margin-right":"10px"}},H={class:"shuangyue_table",style:{width:"200px"}},K={key:1,id:"MonthCount",class:"MonthCount"},P={__name:"AppointmentTj",setup(Q){B(()=>groupList.value.filter(e=>e.id==2));let m=n(!1),o=n({name:"",dateRange:[]}),f=n([]),h=n(),y=n(0),x=n(0),b=n("");const w=()=>{F().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);o.value.dateRange=[t,t],Y()}})};let u=n([]),_=n([]);const Y=()=>{m.value=!0,G({searchInfo:o.value}).then(e=>{m.value=!1,e.status?(f.value=e.data.list,h.value=e.data.monthList,y.value=e.data.yuYueAllCount,x.value=e.data.shuangYueCount,b.value=e.data.shuangYueLv,u.value=[],_.value=[],h.value.forEach((t,v)=>{u.value.push(t.month),_.value.push(t.count)}),u.value.length>0&&U(()=>{k()})):q.error(e.msg)})},k=()=>{var e=J(document.getElementById("MonthCount"));e.setOption({title:{text:o.value.dateRange[0]+"~"+o.value.dateRange[1]+"预约量统计(月)"},tooltip:{},xAxis:{data:u.value},yAxis:{},series:[{name:"数量",type:"bar",data:_.value}]})};return E(()=>{w()}),(e,t)=>{const v=d("el-date-picker"),M=d("el-form-item"),V=d("el-button"),A=d("el-row"),C=d("el-table-column"),R=d("el-table"),T=N("loading");return r(),c(I,null,[a("div",O,[s(A,null,{default:p(()=>[s(M,null,{default:p(()=>[s(v,{style:{"margin-left":"8px",width:"150px"},modelValue:l(o).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=i=>l(o).dateRange[0]=i),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[3]||(t[3]=a("span",{style:{margin:"0 4px"}},"至",-1)),s(v,{style:{width:"150px"},modelValue:l(o).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=i=>l(o).dateRange[1]=i),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),s(V,{onClick:t[2]||(t[2]=i=>Y()),style:{"margin-left":"10px"}},{default:p(()=>[...t[4]||(t[4]=[z("搜索",-1)])]),_:1})]),_:1})]),a("div",Z,[l(u).length>0?(r(),c("div",$,[t[8]||(t[8]=a("div",{style:{"font-size":"18px","font-weight":"900",color:"#666"}},"爽约率(时间范围内)",-1)),a("table",H,[a("tr",null,[t[5]||(t[5]=a("td",null,"预约人数",-1)),a("td",null,g(l(y)),1)]),a("tr",null,[t[6]||(t[6]=a("td",null,"爽约人数",-1)),a("td",null,g(l(x)),1)]),a("tr",null,[t[7]||(t[7]=a("td",null,"爽约率",-1)),a("td",null,g(l(b)),1)])])])):D("",!0),l(u).length>0?(r(),c("div",K)):D("",!0)]),S((r(),j(R,{data:l(f),style:{width:"100%"},"row-key":"id"},{default:p(()=>[s(C,{prop:"name",label:"方式"}),s(C,{prop:"count",label:"数量"})]),_:1},8,["data"])),[[T,l(m)]])],64)}}},X=L(P,[["__scopeId","data-v-81c62635"]]);export{X as default}; +import{_ as L,Z as B,o as E,r as d,c as N,d as r,e as c,k as a,f as s,w as p,i as l,v as g,x as D,h as S,j,F as I,J as F,br as G,D as U,E as q,q as z,g as n,bs as J}from"./index-e65958bd.js";const O={class:"head"},Z={style:{display:"flex"}},$={key:0,style:{"margin-right":"10px"}},H={class:"shuangyue_table",style:{width:"200px"}},K={key:1,id:"MonthCount",class:"MonthCount"},P={__name:"AppointmentTj",setup(Q){B(()=>groupList.value.filter(e=>e.id==2));let m=n(!1),o=n({name:"",dateRange:[]}),f=n([]),h=n(),y=n(0),x=n(0),b=n("");const w=()=>{F().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);o.value.dateRange=[t,t],Y()}})};let u=n([]),_=n([]);const Y=()=>{m.value=!0,G({searchInfo:o.value}).then(e=>{m.value=!1,e.status?(f.value=e.data.list,h.value=e.data.monthList,y.value=e.data.yuYueAllCount,x.value=e.data.shuangYueCount,b.value=e.data.shuangYueLv,u.value=[],_.value=[],h.value.forEach((t,v)=>{u.value.push(t.month),_.value.push(t.count)}),u.value.length>0&&U(()=>{k()})):q.error(e.msg)})},k=()=>{var e=J(document.getElementById("MonthCount"));e.setOption({title:{text:o.value.dateRange[0]+"~"+o.value.dateRange[1]+"预约量统计(月)"},tooltip:{},xAxis:{data:u.value},yAxis:{},series:[{name:"数量",type:"bar",data:_.value}]})};return E(()=>{w()}),(e,t)=>{const v=d("el-date-picker"),M=d("el-form-item"),V=d("el-button"),A=d("el-row"),C=d("el-table-column"),R=d("el-table"),T=N("loading");return r(),c(I,null,[a("div",O,[s(A,null,{default:p(()=>[s(M,null,{default:p(()=>[s(v,{style:{"margin-left":"8px",width:"150px"},modelValue:l(o).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=i=>l(o).dateRange[0]=i),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[3]||(t[3]=a("span",{style:{margin:"0 4px"}},"至",-1)),s(v,{style:{width:"150px"},modelValue:l(o).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=i=>l(o).dateRange[1]=i),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),s(V,{onClick:t[2]||(t[2]=i=>Y()),style:{"margin-left":"10px"}},{default:p(()=>[...t[4]||(t[4]=[z("搜索",-1)])]),_:1})]),_:1})]),a("div",Z,[l(u).length>0?(r(),c("div",$,[t[8]||(t[8]=a("div",{style:{"font-size":"18px","font-weight":"900",color:"#666"}},"爽约率(时间范围内)",-1)),a("table",H,[a("tr",null,[t[5]||(t[5]=a("td",null,"预约人数",-1)),a("td",null,g(l(y)),1)]),a("tr",null,[t[6]||(t[6]=a("td",null,"爽约人数",-1)),a("td",null,g(l(x)),1)]),a("tr",null,[t[7]||(t[7]=a("td",null,"爽约率",-1)),a("td",null,g(l(b)),1)])])])):D("",!0),l(u).length>0?(r(),c("div",K)):D("",!0)]),S((r(),j(R,{data:l(f),style:{width:"100%"},"row-key":"id"},{default:p(()=>[s(C,{prop:"name",label:"方式"}),s(C,{prop:"count",label:"数量"})]),_:1},8,["data"])),[[T,l(m)]])],64)}}},X=L(P,[["__scopeId","data-v-81c62635"]]);export{X as default}; diff --git a/Laravel/public/admin/assets/AutoLogin-7dee6c11.css b/Laravel/public/dist/assets/AutoLogin-7dee6c11.css similarity index 100% rename from Laravel/public/admin/assets/AutoLogin-7dee6c11.css rename to Laravel/public/dist/assets/AutoLogin-7dee6c11.css diff --git a/Laravel/public/admin/assets/AutoLogin-91956a67.js b/Laravel/public/dist/assets/AutoLogin-81392f4b.js similarity index 96% rename from Laravel/public/admin/assets/AutoLogin-91956a67.js rename to Laravel/public/dist/assets/AutoLogin-81392f4b.js index 0739edd..43c38e0 100644 --- a/Laravel/public/admin/assets/AutoLogin-91956a67.js +++ b/Laravel/public/dist/assets/AutoLogin-81392f4b.js @@ -1 +1 @@ -import{_ as D,u as M,a as N,b as U,o as E,r as i,c as T,d as S,e as $,f as o,w as n,g as p,E as b,L as q,h as A,i as u,j as F,k as m,l as x,m as h,n as K,p as P,q as G,s as H}from"./index-af171713.js";const J={class:"right_top"},O={__name:"AutoLogin",setup(Q){M(),N();const c=U(),j=()=>H(c);let g=p(!1),a=p(""),s=p(""),w=()=>{if(a.value==""||s.value=="")return b.error("用户名和密码不能为空");let l={username:k(a.value),password:k(s.value)};g.value=!0,q(l).then(e=>{if(g.value=!1,e.data.status=="ok"){sessionStorage.setItem("token",e.data.token),sessionStorage.setItem("refreshToken",e.data.refresh_token);var r=sessionStorage.getItem("token");r==e.data.token&&(window.location.href="./#/yewu/mainList")}else b.error(e.data.msg)})};const k=l=>{let e=l;var r={a:"z",b:"y",c:"x",d:"w",e:"v",f:"u",g:"t",h:"s",i:"r",j:"q",k:"p",l:"o",m:"n",n:"m",o:"l",p:"k",q:"j",r:"i",s:"h",t:"g",u:"f",v:"e",w:"d",x:"c",y:"b",z:"a",0:"@",1:"!",2:"#",3:"$",4:"%",5:"^",6:"&",7:"*",8:"(",9:")"},d=e.split("").map(v=>r[v]||v).join(""),f=d.split("").reverse().join(""),_="a5331_"+f+"_a454d",y=btoa(_);return y};let z=p(null),R=p(null);const C=()=>{R.value.focus()};E(()=>{a.value=V("u"),s.value=V("p"),console.log(a.value),console.log(s.value),w()});function V(l,e){e||(e=decodeURIComponent(window.location.href)),l=l.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+l+"(=([^&#]*)|&|#|$)"),d=r.exec(e);return d?d[2]?decodeURIComponent(d[2].replace(/\+/g," ")):"":null}return(l,e)=>{const r=i("el-col"),d=i("el-switch"),f=i("el-form-item"),_=i("el-input"),y=i("el-button"),v=i("el-form"),I=i("el-row"),L=i("el-container"),B=T("loading");return S(),$("div",null,[o(L,{class:"common-layout"},{default:n(()=>[o(I,{style:{width:"100%",display:"flex","justify-content":"center"}},{default:n(()=>[o(r,{span:9,class:"left"}),A((S(),F(r,{span:15,class:"right"},{default:n(()=>[m("div",J,[m("div",null,[o(d,{modelValue:u(c),"onUpdate:modelValue":e[0]||(e[0]=t=>x(c)?c.value=t:null),"inline-prompt":"","active-color":"var(--el-fill-color-dark)","inactive-color":"var(--el-color-primary)","active-action-icon":"Moon","inactive-action-icon":"Sunny",onChange:j},null,8,["modelValue"])])]),o(v,{style:{width:"400px"},ref:"ruleFormRef","status-icon":"",class:"demo-ruleForm"},{default:n(()=>[o(f,null,{default:n(()=>[...e[6]||(e[6]=[m("span",{style:{"font-size":"22px"}},"登录您的账户",-1)])]),_:1}),o(f,null,{default:n(()=>[o(_,{modelValue:u(a),"onUpdate:modelValue":e[1]||(e[1]=t=>x(a)?a.value=t:a=t),modelModifiers:{number:!0},ref_key:"usernameRef",ref:z,onKeyup:e[2]||(e[2]=h(t=>C(),["enter"])),"prefix-icon":u(K),placeholder:"用户名",size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),o(f,null,{default:n(()=>[o(_,{modelValue:u(s),"onUpdate:modelValue":e[3]||(e[3]=t=>x(s)?s.value=t:s=t),type:"password",ref_key:"passwordRef",ref:R,onKeyup:e[4]||(e[4]=h(t=>u(w)(),["enter"])),autocomplete:"off",placeholder:"密码",size:"large","prefix-icon":u(P)},null,8,["modelValue","prefix-icon"])]),_:1}),o(f,null,{default:n(()=>[o(y,{style:{width:"100%"},type:"primary",onClick:e[5]||(e[5]=t=>u(w)(l.ruleFormRef)),size:"large"},{default:n(()=>[...e[7]||(e[7]=[G("登录",-1)])]),_:1})]),_:1}),e[8]||(e[8]=m("div",{style:{height:"160px"}},null,-1))]),_:1},512),e[9]||(e[9]=m("div",{class:"right_bottom"},null,-1))]),_:1})),[[B,u(g)]])]),_:1})]),_:1})])}}},X=D(O,[["__scopeId","data-v-af1c144e"]]);export{X as default}; +import{_ as D,u as M,a as N,b as U,o as E,r as i,c as T,d as S,e as $,f as o,w as n,g as p,E as b,L as q,h as A,i as u,j as F,k as m,l as x,m as h,n as K,p as P,q as G,s as H}from"./index-e65958bd.js";const J={class:"right_top"},O={__name:"AutoLogin",setup(Q){M(),N();const c=U(),j=()=>H(c);let g=p(!1),a=p(""),s=p(""),w=()=>{if(a.value==""||s.value=="")return b.error("用户名和密码不能为空");let l={username:k(a.value),password:k(s.value)};g.value=!0,q(l).then(e=>{if(g.value=!1,e.data.status=="ok"){sessionStorage.setItem("token",e.data.token),sessionStorage.setItem("refreshToken",e.data.refresh_token);var r=sessionStorage.getItem("token");r==e.data.token&&(window.location.href="./#/yewu/mainList")}else b.error(e.data.msg)})};const k=l=>{let e=l;var r={a:"z",b:"y",c:"x",d:"w",e:"v",f:"u",g:"t",h:"s",i:"r",j:"q",k:"p",l:"o",m:"n",n:"m",o:"l",p:"k",q:"j",r:"i",s:"h",t:"g",u:"f",v:"e",w:"d",x:"c",y:"b",z:"a",0:"@",1:"!",2:"#",3:"$",4:"%",5:"^",6:"&",7:"*",8:"(",9:")"},d=e.split("").map(v=>r[v]||v).join(""),f=d.split("").reverse().join(""),_="a5331_"+f+"_a454d",y=btoa(_);return y};let z=p(null),R=p(null);const C=()=>{R.value.focus()};E(()=>{a.value=V("u"),s.value=V("p"),console.log(a.value),console.log(s.value),w()});function V(l,e){e||(e=decodeURIComponent(window.location.href)),l=l.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+l+"(=([^&#]*)|&|#|$)"),d=r.exec(e);return d?d[2]?decodeURIComponent(d[2].replace(/\+/g," ")):"":null}return(l,e)=>{const r=i("el-col"),d=i("el-switch"),f=i("el-form-item"),_=i("el-input"),y=i("el-button"),v=i("el-form"),I=i("el-row"),L=i("el-container"),B=T("loading");return S(),$("div",null,[o(L,{class:"common-layout"},{default:n(()=>[o(I,{style:{width:"100%",display:"flex","justify-content":"center"}},{default:n(()=>[o(r,{span:9,class:"left"}),A((S(),F(r,{span:15,class:"right"},{default:n(()=>[m("div",J,[m("div",null,[o(d,{modelValue:u(c),"onUpdate:modelValue":e[0]||(e[0]=t=>x(c)?c.value=t:null),"inline-prompt":"","active-color":"var(--el-fill-color-dark)","inactive-color":"var(--el-color-primary)","active-action-icon":"Moon","inactive-action-icon":"Sunny",onChange:j},null,8,["modelValue"])])]),o(v,{style:{width:"400px"},ref:"ruleFormRef","status-icon":"",class:"demo-ruleForm"},{default:n(()=>[o(f,null,{default:n(()=>[...e[6]||(e[6]=[m("span",{style:{"font-size":"22px"}},"登录您的账户",-1)])]),_:1}),o(f,null,{default:n(()=>[o(_,{modelValue:u(a),"onUpdate:modelValue":e[1]||(e[1]=t=>x(a)?a.value=t:a=t),modelModifiers:{number:!0},ref_key:"usernameRef",ref:z,onKeyup:e[2]||(e[2]=h(t=>C(),["enter"])),"prefix-icon":u(K),placeholder:"用户名",size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),o(f,null,{default:n(()=>[o(_,{modelValue:u(s),"onUpdate:modelValue":e[3]||(e[3]=t=>x(s)?s.value=t:s=t),type:"password",ref_key:"passwordRef",ref:R,onKeyup:e[4]||(e[4]=h(t=>u(w)(),["enter"])),autocomplete:"off",placeholder:"密码",size:"large","prefix-icon":u(P)},null,8,["modelValue","prefix-icon"])]),_:1}),o(f,null,{default:n(()=>[o(y,{style:{width:"100%"},type:"primary",onClick:e[5]||(e[5]=t=>u(w)(l.ruleFormRef)),size:"large"},{default:n(()=>[...e[7]||(e[7]=[G("登录",-1)])]),_:1})]),_:1}),e[8]||(e[8]=m("div",{style:{height:"160px"}},null,-1))]),_:1},512),e[9]||(e[9]=m("div",{class:"right_bottom"},null,-1))]),_:1})),[[B,u(g)]])]),_:1})]),_:1})])}}},X=D(O,[["__scopeId","data-v-af1c144e"]]);export{X as default}; diff --git a/Laravel/public/admin/assets/CasLogin-0f3b1ae1.js b/Laravel/public/dist/assets/CasLogin-d886fe66.js similarity index 96% rename from Laravel/public/admin/assets/CasLogin-0f3b1ae1.js rename to Laravel/public/dist/assets/CasLogin-d886fe66.js index 79bb79d..634868d 100644 --- a/Laravel/public/admin/assets/CasLogin-0f3b1ae1.js +++ b/Laravel/public/dist/assets/CasLogin-d886fe66.js @@ -1 +1 @@ -import{o as b,r as p,c as x,d as c,e as m,q as _,f as v,w as n,i as f,l as I,g as i,E as k,k as N,h as B,F as L,t as R,j as T,v as U,C as E}from"./index-af171713.js";const F={style:{"word-break":"break-all"}},j={class:"dialog-footer"},O={__name:"CasLogin",setup(J){let d=i([]),l=i(!1),w=i(!1),a=i(""),s=i("");const h=()=>{if(a.value=="")return k.error("请选择科室"),!1;w.value=!0,E({deptid:a.value}).then(t=>{t.status?(s.value=t.data.token,sessionStorage.setItem("token",s.value),sessionStorage.setItem("refreshToken",t.data.refresh_token),setTimeout(()=>{S()},300)):k.error(t.msg)})},S=()=>{var t=sessionStorage.getItem("token");console.log(t),t!=null&&t==s.value?(sessionStorage.setItem("LoginType","CasLogin"),window.location.href="./#/dashboard"):k.error("登录失败")};b(()=>{s.value=g("access_token");let t=g("refresh_token"),e=g("dept_arr");if(sessionStorage.setItem("token",s.value),sessionStorage.setItem("refreshToken",t),e)try{d.value=JSON.parse(decodeURIComponent(e)),console.log(d.value)}catch{console.error("JSON 解析失败")}d.value.length>1?l.value=!0:S()});function g(t,e){e||(e=decodeURIComponent(window.location.href)),t=t.replace(/[\[\]]/g,"\\$&");var u=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),r=u.exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}return(t,e)=>{const u=p("el-radio"),r=p("el-radio-group"),C=p("el-button"),V=p("el-dialog"),y=x("loading");return c(),m("view",null,[e[4]||(e[4]=_(" cas登录 ",-1)),v(V,{modelValue:f(l),"onUpdate:modelValue":e[2]||(e[2]=o=>I(l)?l.value=o:l=o),title:"请选择要登录的科室",width:"40%"},{footer:n(()=>[N("div",j,[v(C,{type:"primary",onClick:e[1]||(e[1]=o=>h())},{default:n(()=>[...e[3]||(e[3]=[_(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((c(),m("div",F,[v(r,{modelValue:f(a),"onUpdate:modelValue":e[0]||(e[0]=o=>I(a)?a.value=o:a=o)},{default:n(()=>[(c(!0),m(L,null,R(f(d),(o,D)=>(c(),T(u,{key:D,label:o.deptId},{default:n(()=>[_(U(o.deptName),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])),[[y,f(w)]])]),_:1},8,["modelValue"])])}}};export{O as default}; +import{o as b,r as p,c as x,d as c,e as m,q as _,f as v,w as n,i as f,l as I,g as i,E as k,k as N,h as B,F as L,t as R,j as T,v as U,C as E}from"./index-e65958bd.js";const F={style:{"word-break":"break-all"}},j={class:"dialog-footer"},O={__name:"CasLogin",setup(J){let d=i([]),l=i(!1),w=i(!1),a=i(""),s=i("");const h=()=>{if(a.value=="")return k.error("请选择科室"),!1;w.value=!0,E({deptid:a.value}).then(t=>{t.status?(s.value=t.data.token,sessionStorage.setItem("token",s.value),sessionStorage.setItem("refreshToken",t.data.refresh_token),setTimeout(()=>{S()},300)):k.error(t.msg)})},S=()=>{var t=sessionStorage.getItem("token");console.log(t),t!=null&&t==s.value?(sessionStorage.setItem("LoginType","CasLogin"),window.location.href="./#/dashboard"):k.error("登录失败")};b(()=>{s.value=g("access_token");let t=g("refresh_token"),e=g("dept_arr");if(sessionStorage.setItem("token",s.value),sessionStorage.setItem("refreshToken",t),e)try{d.value=JSON.parse(decodeURIComponent(e)),console.log(d.value)}catch{console.error("JSON 解析失败")}d.value.length>1?l.value=!0:S()});function g(t,e){e||(e=decodeURIComponent(window.location.href)),t=t.replace(/[\[\]]/g,"\\$&");var u=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),r=u.exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}return(t,e)=>{const u=p("el-radio"),r=p("el-radio-group"),C=p("el-button"),V=p("el-dialog"),y=x("loading");return c(),m("view",null,[e[4]||(e[4]=_(" cas登录 ",-1)),v(V,{modelValue:f(l),"onUpdate:modelValue":e[2]||(e[2]=o=>I(l)?l.value=o:l=o),title:"请选择要登录的科室",width:"40%"},{footer:n(()=>[N("div",j,[v(C,{type:"primary",onClick:e[1]||(e[1]=o=>h())},{default:n(()=>[...e[3]||(e[3]=[_(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((c(),m("div",F,[v(r,{modelValue:f(a),"onUpdate:modelValue":e[0]||(e[0]=o=>I(a)?a.value=o:a=o)},{default:n(()=>[(c(!0),m(L,null,R(f(d),(o,D)=>(c(),T(u,{key:D,label:o.deptId},{default:n(()=>[_(U(o.deptName),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])),[[y,f(w)]])]),_:1},8,["modelValue"])])}}};export{O as default}; diff --git a/Laravel/public/admin/assets/CheckItemConfig-e77282ab.css b/Laravel/public/dist/assets/CheckItemConfig-e77282ab.css similarity index 100% rename from Laravel/public/admin/assets/CheckItemConfig-e77282ab.css rename to Laravel/public/dist/assets/CheckItemConfig-e77282ab.css diff --git a/Laravel/public/admin/assets/CheckItemConfig-90e2a305.js b/Laravel/public/dist/assets/CheckItemConfig-e910acc9.js similarity index 99% rename from Laravel/public/admin/assets/CheckItemConfig-90e2a305.js rename to Laravel/public/dist/assets/CheckItemConfig-e910acc9.js index c286a61..d071b8b 100644 --- a/Laravel/public/admin/assets/CheckItemConfig-90e2a305.js +++ b/Laravel/public/dist/assets/CheckItemConfig-e910acc9.js @@ -1 +1 @@ -import{_ as dl,Z as rl,o as ml,r as x,c as pl,h as oe,i as s,d as u,e as c,k as i,f as a,w as o,l as k,j as w,a7 as vl,E as f,g as d,a8 as Le,I as ve,a9 as fl,q as p,F as D,t as U,v as S,x as M,aa as gl,ab as yl,ac as _l,ad as cl,ae as bl,af as xl,N as fe,ag as kl,ah as Cl,ai as Vl,aj as hl,ak as wl,al as Il,am as Dl}from"./index-af171713.js";const Ul={class:"head"},Ll={style:{display:"inline-flex","align-items":"center"}},Sl={class:"page"},Rl={class:"chuansuokuang"},El={key:0,style:{padding:"0 20px 12px","margin-top":"10px"}},Hl={class:"dialog-footer"},Bl={class:"row"},zl={class:"row"},Tl={class:"row"},$l={class:"row"},Gl={class:"row"},Nl={class:"row"},Ol={class:"row"},Al={class:"row"},Fl={class:"dialog-footer"},Ml={style:{"font-weight":"900","font-size":"16px"}},Pl={style:{display:"flex","margin-top":"20px"}},jl={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},Yl={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},ql={style:{display:"flex","margin-bottom":"8px"}},Zl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Jl={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Kl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},Ql={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},Wl={key:0,id:"huchi_table"},Xl={key:0,style:{display:"flex"}},et={key:1,style:{display:"flex"}},lt={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},tt={style:{"margin-right":"12px"}},at={style:{"margin-left":"12px",width:"250px"}},st={style:{"margin-bottom":"12px"}},ot={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},it={style:{"font-weight":"700","margin-right":"12px"}},nt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},ut={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},dt={style:{display:"flex","align-items":"center"}},rt={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},mt={__name:"CheckItemConfig",setup(pt){let h=d(!1),C=d({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:"",appointmentDeptOnly:!1}),y=d({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1}),ge=d([]),ye=d([]),_e=d([]),ce=d([]);const P=(t="")=>{let e={};e={...C.value},t=="Dialog"&&(e.bigClass=J.value),h.value=!0,vl({searchInfo:e}).then(n=>{h.value=!1,n.status?(t=="Dialog"?(_e.value=n.data.bigClass,ce.value=n.data.smallClass):(ge.value=n.data.bigClass,ye.value=n.data.smallClass),T()):f.error(n.msg)})};let be=d([]),j=d(1),Y=d(15),xe=0;const T=()=>{ie.value&&ie.value.clearSelection(),I.value=[],h.value=!0,Le({searchInfo:C.value,page:j.value,pageSize:Y.value}).then(t=>{if(h.value=!1,t.status){let e=t.data.list;be.value=e,xe=t.data.count}else f.error(t.msg)})},Se=({prop:t,order:e})=>{C.value.orderField=t||"",C.value.orderDirection=e||"",T()},Re=t=>{Y.value=t,T()},Ee=t=>{j.value=t,T()};let R=d(!1),$=d(!1),Q=d(!1),G=d(!1),ke=d(""),Ce=d(""),q=d(""),I=d([]),ie=d(null);const He=rl(()=>Q.value?"批量关联排班":"关联排班"),Be=t=>{I.value=t},ze=()=>{h.value=!0,yl({searchInfo:C.value}).then(t=>{h.value=!1;const e=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.download="检查项目列表.xls",n.click(),URL.revokeObjectURL(n.href)}).catch(()=>{h.value=!1})},Te=t=>{Q.value=!1,H.value=[],R.value=!0,y.value.id=t.id,ve({hisExecDepts:t.hisExecDepts}).then(e=>{e.status&&(W.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){W.value.find(function(r){return r.id==n.id})&&H.value.push(n.id)})})},$e=()=>{if(I.value.length===0){f.error("请先勾选要批量关联的检查项目");return}Q.value=!0;const t=I.value[0].hisExecDepts;ve({hisExecDepts:t}).then(e=>{e.status&&(W.value=e.data);let n=[];if(I.value.length>0){n=I.value[0].devicesInfo.map(r=>r.id);for(let r=1;rb.id);n=n.filter(b=>_.includes(b))}}H.value=n,R.value=!0})};let H=d([]),ne=d(0),ue=d(!1);const Ge=async()=>{const t=e=>Dl({item_id:e,device_ids:H.value});if(Q.value){ue.value=!0,ne.value=0;const e=I.value.length;let n=0,r=0;for(let _=0;_{ue.value=!1},1500),r===0?f.success(`批量关联成功,共${e}项`):f.warning(`完成${n}项,失败${r}项`),R.value=!1,H.value=[],P()}else t(y.value.id).then(e=>{e.status?(R.value=!1,H.value=[],P()):f.error(e.msg)})},Ve=t=>{if(I.value.length===0){f.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};I.value.forEach(_=>{const b=(_[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,r="";Object.entries(e).forEach(([_,b])=>{b>n&&(n=b,r=_)}),q.value=r,G.value=!0},Ne=()=>{const t=I.value.map(e=>e.id);h.value=!0,_l({item_ids:t,field:ke.value,value:q.value}).then(e=>{h.value=!1,e.status?(G.value=!1,f.success(e.msg),T()):f.error(e.msg)})};let W=d([]);const Oe=()=>{ve({}).then(t=>{t.status?W.value=t.data:f.error(t.msg)})},Ae=t=>{$.value=!0,y.value.id=t.id,y.value.item_name=t.item_name,y.value.limosis=t.limosis,y.value.reservation_method=t.reservation_method,y.value.check_time=t.check_time,y.value.use_seats=t.use_seats||1,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),y.value.check_begin_time=t.check_begin_time,y.value.check_notice=t.check_notice,y.value.warm_tips=t.warm_tips};let de=d("");const Fe=()=>{fl({}).then(t=>{t.status?de.value=t.data:f.error(t.msg)})},Me=()=>{cl({Info:y.value}).then(t=>{t.status?($.value=!1,T()):f.error(t.msg)})};let X=d(!1),Z=d(""),ee=d(null),J=d(null),O=d(null),te=d(!1),ae=d([]),B=d(!1),A=d([]),z=d({code:"",name:""});const Pe=t=>{X.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,O.value=[],Z.value="",P("Dialog"),we()},he=()=>{B.value=!0,ae.value=[],Le({searchInfo:{name:Z.value,bigClass:J.value,smallClass:ee.value},page:1,pageSize:100}).then(t=>{B.value=!1,t.status?t.data.list.length>0?O.value=t.data.list:f.error("未找到相关项目"):f.error(t.msg)})},je=()=>{console.log(A.value);let t=[],e=[],n=!0;if(V.value.forEach(function(r,_){A.value.forEach(function(b,L){r.code2==b&&(f.error(r.code2_item_name+" 已经存在于右侧,不能重复添加"),n=!1)})}),!n)return!1;O.value.forEach(r=>{A.value.includes(r.item_code)?V.value.push({code2:r.item_code,code2_item_name:r.item_name}):t.push(r)}),O.value=t,console.log(e),console.log(V.value),A.value=[]},Ye=t=>{V.value=V.value.filter(e=>e.code2!=t.code2),O.value.find(e=>e.item_code==t.code2)||O.value.push({item_code:t.code2,item_name:t.code2_item_name})},re=(t,e,n,r=0)=>{B.value=!0,bl({id:r,code1:t,code2:e,time:n}).then(_=>{B.value=!1,_.status?(f({message:_.msg,type:"success"}),V.value.forEach(function(b,L){b.code2==_.data.code2&&(console.log(333),V.value[L].id=_.data.id)})):f.error(_.msg)})};let V=d([]);const we=()=>{B.value=!0,xl({code:z.value.code}).then(t=>{B.value=!1,t.status?V.value=t.data:f.error(t.msg)})},qe=t=>{fe.confirm("确定解除此项互斥关系吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{B.value=!0,kl({id:t}).then(e=>{B.value=!1,e.status?(f({message:e.msg,type:"success"}),we()):f.error(e.msg)})})},Ze=()=>{fe.confirm("确定从his同步分类吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Cl().then(t=>{h.value=!1,t.status?(f({message:t.msg,type:"success"}),P()):f.error(t.msg)})})},Je=()=>{fe.confirm("确定从his同步检查项目吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Vl({termClassId:155}).then(t=>{h.value=!1,t.status?(f({message:t.msg,type:"success"}),T()):f.error(t.msg)})})};let N=d(!1),le=d(!1),me=d({id:null,item_name:""}),F=d([]),Ie=d([]);const Ke=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],Qe=t=>{me.value={id:t.id,item_name:t.item_name},N.value=!0,le.value=!0,hl({item_id:t.id}).then(e=>{e.status&&(Ie.value=e.data)}),wl({item_id:t.id}).then(e=>{le.value=!1,e.status?F.value=(e.data||[]).map(n=>({days:n.rule_value.days||[],start_time:n.rule_value.start_time||"",end_time:n.rule_value.end_time||"",resources_id:n.rule_value.resources_id||""})):f.error(e.msg)})},We=()=>{F.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Xe=t=>{F.value.splice(t,1)},el=()=>{for(let e=0;e({rule_type:"TIME_RESTRICTION",rule_value:{days:e.days,start_time:e.start_time,end_time:e.end_time,resources_id:e.resources_id||""}}));le.value=!0,Il({item_id:me.value.id,rules:t}).then(e=>{le.value=!1,e.status?(f.success("保存成功"),N.value=!1):f.error(e.msg)})};return ml(()=>{P(),Oe(),Fe()}),(t,e)=>{const n=x("el-tag"),r=x("el-option"),_=x("el-select"),b=x("el-checkbox"),L=x("el-input"),g=x("el-button"),ll=x("el-row"),E=x("el-table-column"),tl=x("el-table"),al=x("el-pagination"),sl=x("el-transfer"),ol=x("el-progress"),K=x("el-dialog"),pe=x("el-checkbox-group"),il=x("el-input-number"),nl=x("DArrowLeft"),De=x("el-icon"),ul=x("DArrowRight"),Ue=x("el-time-select"),se=pl("loading");return oe((u(),c("div",null,[i("div",Ul,[a(ll,null,{default:o(()=>[i("div",Ll,[a(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[45]||(e[45]=[p("医嘱类别",-1)])]),_:1}),a(_,{clearable:"",filterable:!0,modelValue:s(C).bigClass,"onUpdate:modelValue":e[0]||(e[0]=l=>s(C).bigClass=l),onChange:e[1]||(e[1]=l=>P()),placeholder:"所有医嘱大类"},{default:o(()=>[(u(!0),c(D,null,U(s(ge),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{filterable:!0,clearable:"",modelValue:s(C).smallClass,"onUpdate:modelValue":e[2]||(e[2]=l=>s(C).smallClass=l),placeholder:"所有医嘱小类",style:{"margin-left":"10px"}},{default:o(()=>[(u(!0),c(D,null,U(s(ye),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{clearable:"",modelValue:s(C).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>s(C).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[a(r,{label:"全部",value:""}),a(r,{label:"已关联排班",value:1}),a(r,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),a(_,{clearable:"",modelValue:s(C).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>s(C).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[a(r,{label:"全部",value:""}),a(r,{label:"有执行科室",value:"1"}),a(r,{label:"无执行科室",value:"0"})]),_:1},8,["modelValue"]),a(b,{modelValue:s(C).appointmentDeptOnly,"onUpdate:modelValue":e[5]||(e[5]=l=>s(C).appointmentDeptOnly=l),onChange:T,style:{"margin-left":"15px"}},{default:o(()=>[...e[46]||(e[46]=[p("只显示参与预约科室的项目",-1)])]),_:1},8,["modelValue"]),a(L,{modelValue:s(C).name,"onUpdate:modelValue":e[6]||(e[6]=l=>s(C).name=l),placeholder:"请输入项目编号/名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),a(g,{type:"primary",onClick:e[7]||(e[7]=l=>T()),style:{"margin-left":"10px"}},{default:o(()=>[...e[47]||(e[47]=[p("查询",-1)])]),_:1}),a(g,{type:"warning",onClick:e[8]||(e[8]=l=>Ze()),style:{"margin-left":"40px"}},{default:o(()=>[...e[48]||(e[48]=[p("同步分类",-1)])]),_:1}),a(g,{type:"warning",onClick:e[9]||(e[9]=l=>Je()),style:{"margin-left":"10px"}},{default:o(()=>[...e[49]||(e[49]=[p("同步检查项目",-1)])]),_:1}),a(g,{type:"primary",onClick:e[10]||(e[10]=l=>$e()),style:{"margin-left":"10px"}},{default:o(()=>[...e[50]||(e[50]=[p("批量关联排班",-1)])]),_:1}),a(g,{type:"primary",onClick:e[11]||(e[11]=l=>Ve("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[51]||(e[51]=[p("批量设置检查须知",-1)])]),_:1}),a(g,{type:"primary",onClick:e[12]||(e[12]=l=>Ve("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[52]||(e[52]=[p("批量设置温馨提示",-1)])]),_:1}),a(g,{type:"success",onClick:e[13]||(e[13]=l=>ze()),style:{"margin-left":"10px"}},{default:o(()=>[...e[53]||(e[53]=[p("导出",-1)])]),_:1})]),_:1})]),a(tl,{ref_key:"checkItemTableRef",ref:ie,data:s(be),style:{width:"100%","margin-top":"10px"},"row-key":"id",onSortChange:Se,onSelectionChange:Be},{default:o(()=>[a(E,{type:"selection",width:"50"}),a(E,{prop:"item_code",label:"检查项目编号",width:"160",sortable:"custom"}),a(E,{prop:"item_name",label:"检查项目名称",sortable:"custom"}),a(E,{prop:"his_exec_dept_names",label:"HIS绑定科室",width:"200"},{default:o(l=>[(u(!0),c(D,null,U(l.row.his_exec_dept_names,(m,v)=>(u(),w(n,{key:v,class:"ml-2",style:{"margin-bottom":"2px","margin-right":"4px"}},{default:o(()=>[p(S(m),1)]),_:2},1024))),128))]),_:1}),a(E,{prop:"reservation_method_name",label:"预约方式"}),a(E,{prop:"limosis",label:"要求空腹",width:"100"},{default:o(l=>[l.row.limosis==1?(u(),w(n,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[54]||(e[54]=[p("是",-1)])]),_:1})):M("",!0),l.row.limosis==0?(u(),w(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[55]||(e[55]=[p("否",-1)])]),_:1})):M("",!0)]),_:1}),M("",!0),a(E,{prop:"check_time",label:"检查时间",width:"100"}),a(E,{prop:"check_begin_time",label:"开始预约时间",width:"120"}),a(E,{prop:"devicesInfo",label:"关联排班"},{default:o(l=>[(u(!0),c(D,null,U(l.row.devicesInfo,(m,v)=>(u(),c("span",{key:v},[m.status==1&&m.is_del==0?(u(),w(n,{key:0,class:"ml-2",type:"success"},{default:o(()=>[p(S(m.device_name),1)]),_:2},1024)):M("",!0),m.status==0||m.is_del==1?(u(),w(n,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[p(S(m.device_name),1)]),_:2},1024)):M("",!0)]))),128))]),_:1}),a(E,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[a(g,{size:"small",onClick:m=>Te(l.row)},{default:o(()=>[...e[56]||(e[56]=[p("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),a(E,{prop:"",label:"操作",width:"220"},{default:o(l=>[a(g,{type:"primary",onClick:m=>Ae(l.row),size:"small"},{default:o(()=>[...e[57]||(e[57]=[p("修改",-1)])]),_:1},8,["onClick"]),a(g,{type:"warning",onClick:m=>Pe(l.row),size:"small"},{default:o(()=>[...e[58]||(e[58]=[p("互斥",-1)])]),_:1},8,["onClick"]),a(g,{type:"success",onClick:m=>Qe(l.row),size:"small"},{default:o(()=>[...e[59]||(e[59]=[p("规则",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),i("div",Sl,[a(al,{"current-page":s(j),"onUpdate:currentPage":e[14]||(e[14]=l=>k(j)?j.value=l:j=l),"page-size":s(Y),"onUpdate:pageSize":e[15]||(e[15]=l=>k(Y)?Y.value=l:Y=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(xe),onSizeChange:Re,onCurrentChange:Ee},null,8,["current-page","page-size","total"])]),a(K,{modelValue:s(R),"onUpdate:modelValue":e[19]||(e[19]=l=>k(R)?R.value=l:R=l),title:He.value,width:"40%"},{footer:o(()=>[i("span",Hl,[a(g,{onClick:e[17]||(e[17]=l=>k(R)?R.value=!1:R=!1)},{default:o(()=>[...e[60]||(e[60]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:e[18]||(e[18]=l=>Ge())},{default:o(()=>[...e[61]||(e[61]=[p(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Rl,[a(sl,{modelValue:s(H),"onUpdate:modelValue":e[16]||(e[16]=l=>k(H)?H.value=l:H=l),titles:["可选排班","已关联排班"],props:{key:"id",label:"device_name"},data:s(W)},null,8,["modelValue","data"])]),s(Q)&&s(ue)?(u(),c("div",El,[a(ol,{percentage:s(ne),"stroke-width":14},null,8,["percentage"])])):M("",!0)]),_:1},8,["modelValue","title"]),a(K,{modelValue:s($),"onUpdate:modelValue":e[29]||(e[29]=l=>k($)?$.value=l:$=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",Fl,[a(g,{onClick:e[27]||(e[27]=l=>k($)?$.value=!1:$=!1)},{default:o(()=>[...e[72]||(e[72]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:e[28]||(e[28]=l=>Me())},{default:o(()=>[...e[73]||(e[73]=[p(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Bl,[e[62]||(e[62]=i("span",{class:"title"},"医嘱名称:",-1)),p(S(s(y).item_name),1)]),i("div",zl,[e[63]||(e[63]=i("span",{class:"title"},"预约方式:",-1)),s(de)?(u(),w(pe,{key:0,modelValue:s(y).reservation_method,"onUpdate:modelValue":e[20]||(e[20]=l=>s(y).reservation_method=l)},{default:o(()=>[(u(!0),c(D,null,U(s(de),(l,m)=>(u(),w(b,{label:l.id,value:l.id,key:m},{default:o(()=>[p(S(l.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):M("",!0)]),i("div",Tl,[e[64]||(e[64]=i("span",{class:"title"},"空腹:",-1)),a(_,{filterable:!0,clearable:"",modelValue:s(y).limosis,"onUpdate:modelValue":e[21]||(e[21]=l=>s(y).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[a(r,{label:"否",value:0}),a(r,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",$l,[e[65]||(e[65]=i("span",{class:"title"},"检查时间:",-1)),a(L,{modelValue:s(y).check_time,"onUpdate:modelValue":e[22]||(e[22]=l=>s(y).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Gl,[e[66]||(e[66]=i("span",{class:"title"},"占用号源:",-1)),a(il,{modelValue:s(y).use_seats,"onUpdate:modelValue":e[23]||(e[23]=l=>s(y).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[67]||(e[67]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Nl,[e[68]||(e[68]=i("span",{class:"title"},"等待时间:",-1)),a(L,{modelValue:s(y).check_begin_time,"onUpdate:modelValue":e[24]||(e[24]=l=>s(y).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[69]||(e[69]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",Ol,[e[70]||(e[70]=i("span",{class:"title"},"检查须知:",-1)),a(L,{modelValue:s(y).check_notice,"onUpdate:modelValue":e[25]||(e[25]=l=>s(y).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",Al,[e[71]||(e[71]=i("span",{class:"title"},"温馨提示:",-1)),a(L,{modelValue:s(y).warm_tips,"onUpdate:modelValue":e[26]||(e[26]=l=>s(y).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),a(K,{modelValue:s(G),"onUpdate:modelValue":e[32]||(e[32]=l=>k(G)?G.value=l:G=l),title:s(Ce),width:"40%"},{footer:o(()=>[a(g,{onClick:e[31]||(e[31]=l=>k(G)?G.value=!1:G=!1)},{default:o(()=>[...e[74]||(e[74]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:Ne},{default:o(()=>[...e[75]||(e[75]=[p("确定",-1)])]),_:1})]),default:o(()=>[a(L,{modelValue:s(q),"onUpdate:modelValue":e[30]||(e[30]=l=>k(q)?q.value=l:q=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"]),a(K,{modelValue:s(X),"onUpdate:modelValue":e[41]||(e[41]=l=>k(X)?X.value=l:X=l),title:"为 "+s(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[82]||(e[82]=p(" 请输入想要与 ",-1)),i("span",Ml,S(s(z).name),1),e[83]||(e[83]=p(" 互斥的项目名称 ",-1)),i("div",Pl,[i("div",jl,[oe((u(),c("div",Yl,[i("div",ql,[a(_,{clearable:"",filterable:!0,modelValue:s(J),"onUpdate:modelValue":e[33]||(e[33]=l=>k(J)?J.value=l:J=l),onChange:e[34]||(e[34]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(u(!0),c(D,null,U(s(_e),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{filterable:!0,clearable:"",modelValue:s(ee),"onUpdate:modelValue":e[35]||(e[35]=l=>k(ee)?ee.value=l:ee=l),placeholder:"所有医嘱小类",onChange:e[36]||(e[36]=l=>he()),style:{"margin-left":"10px"}},{default:o(()=>[(u(!0),c(D,null,U(s(ce),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[a(L,{modelValue:s(Z),"onUpdate:modelValue":e[37]||(e[37]=l=>k(Z)?Z.value=l:Z=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),a(g,{type:"success",style:{"margin-left":"8px"},onClick:e[38]||(e[38]=l=>he())},{default:o(()=>[...e[76]||(e[76]=[p("查询",-1)])]),_:1})])])),[[se,s(B)]]),i("div",Zl,[a(pe,{modelValue:s(A),"onUpdate:modelValue":e[39]||(e[39]=l=>k(A)?A.value=l:A=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(u(!0),c(D,null,U(s(O),(l,m)=>(u(),w(b,{key:m,label:l.item_code},{default:o(()=>[p(S(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Jl,[a(g,{type:"primary",icon:s(gl),circle:"",onClick:e[40]||(e[40]=l=>je())},null,8,["icon"])]),i("div",Kl,[i("div",Ql,"已经存在互斥项("+S(s(V).length)+")",1),s(V).length>0?(u(),c("table",Wl,[(u(!0),c(D,null,U(s(V),(l,m)=>(u(),c("tr",{key:m},[i("td",null,S(l.code2_item_name),1),i("td",null,[a(L,{modelValue:s(V)[m].time,"onUpdate:modelValue":v=>s(V)[m].time=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[77]||(e[77]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(u(),c("span",Xl,[a(g,{type:"danger",style:{"margin-left":"8px"},onClick:v=>qe(l.id)},{default:o(()=>[...e[78]||(e[78]=[p("解除",-1)])]),_:1},8,["onClick"]),a(g,{type:"primary",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[m].time,l.id)},{default:o(()=>[...e[79]||(e[79]=[p("更新",-1)])]),_:1},8,["onClick"])])):(u(),c("span",et,[a(g,{type:"success",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[m].time)},{default:o(()=>[...e[80]||(e[80]=[p("保存",-1)])]),_:1},8,["onClick"]),a(g,{style:{"margin-left":"8px"},onClick:v=>Ye(l)},{default:o(()=>[...e[81]||(e[81]=[p("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(u(),c("div",lt," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(K,{modelValue:s(te),"onUpdate:modelValue":e[42]||(e[42]=l=>k(te)?te.value=l:te=l),title:"为 "+s(z).name+" 设置互斥",width:"50%"},{default:o(()=>[oe((u(),c("div",null,[e[85]||(e[85]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(u(!0),c(D,null,U(s(O),(l,m)=>(u(),c("div",{class:"row",key:m},[i("div",tt,S(s(z).name),1),a(De,null,{default:o(()=>[a(nl)]),_:1}),a(De,null,{default:o(()=>[a(ul)]),_:1}),i("div",at,S(l.item_name),1),a(L,{modelValue:s(ae)[m],"onUpdate:modelValue":v=>s(ae)[m]=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),a(g,{type:"danger",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.item_code,s(ae)[m])},{default:o(()=>[...e[84]||(e[84]=[p("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[se,s(B)]])]),_:1},8,["modelValue","title"]),oe((u(),w(K,{modelValue:s(N),"onUpdate:modelValue":e[44]||(e[44]=l=>k(N)?N.value=l:N=l),title:"时段规则 - "+s(me).item_name,width:"700px"},{footer:o(()=>[a(g,{onClick:e[43]||(e[43]=l=>k(N)?N.value=!1:N=!1)},{default:o(()=>[...e[94]||(e[94]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:el},{default:o(()=>[...e[95]||(e[95]=[p("保存",-1)])]),_:1})]),default:o(()=>[i("div",st,[a(g,{type:"primary",size:"small",onClick:We},{default:o(()=>[...e[86]||(e[86]=[p("添加规则",-1)])]),_:1}),e[87]||(e[87]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(u(!0),c(D,null,U(s(F),(l,m)=>(u(),c("div",{key:m,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",ot,[i("span",it,"规则 "+S(m+1),1),a(g,{type:"danger",size:"small",onClick:v=>Xe(m)},{default:o(()=>[...e[88]||(e[88]=[p("删除",-1)])]),_:1},8,["onClick"])]),i("div",nt,[e[89]||(e[89]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),a(pe,{modelValue:l.days,"onUpdate:modelValue":v=>l.days=v},{default:o(()=>[(u(),c(D,null,U(Ke,v=>a(b,{key:v,label:v,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",ut,[e[90]||(e[90]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),a(_,{modelValue:l.resources_id,"onUpdate:modelValue":v=>l.resources_id=v,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(u(!0),c(D,null,U(s(Ie),v=>(u(),w(r,{key:v.id,label:v.department_resources_name+(v.department_name?"("+v.department_name+")":""),value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),e[91]||(e[91]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",dt,[e[92]||(e[92]=i("span",{style:{width:"80px","font-weight":"500"}},"允许时段",-1)),a(Ue,{modelValue:l.start_time,"onUpdate:modelValue":v=>l.start_time=v,"max-time":l.end_time,placeholder:"开始时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","max-time"]),e[93]||(e[93]=i("span",{style:{margin:"0 8px"}},"~",-1)),a(Ue,{modelValue:l.end_time,"onUpdate:modelValue":v=>l.end_time=v,"min-time":l.start_time,placeholder:"结束时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","min-time"])])]))),128)),s(F).length===0?(u(),c("div",rt," 暂未设置时段限制 ")):M("",!0)]),_:1},8,["modelValue","title"])),[[se,s(le)]])])),[[se,s(h)]])}}},ft=dl(mt,[["__scopeId","data-v-d46f9281"]]);export{ft as default}; +import{_ as dl,Z as rl,o as ml,r as x,c as pl,h as oe,i as s,d as u,e as c,k as i,f as a,w as o,l as k,j as w,a7 as vl,E as f,g as d,a8 as Le,I as ve,a9 as fl,q as p,F as D,t as U,v as S,x as M,aa as gl,ab as yl,ac as _l,ad as cl,ae as bl,af as xl,N as fe,ag as kl,ah as Cl,ai as Vl,aj as hl,ak as wl,al as Il,am as Dl}from"./index-e65958bd.js";const Ul={class:"head"},Ll={style:{display:"inline-flex","align-items":"center"}},Sl={class:"page"},Rl={class:"chuansuokuang"},El={key:0,style:{padding:"0 20px 12px","margin-top":"10px"}},Hl={class:"dialog-footer"},Bl={class:"row"},zl={class:"row"},Tl={class:"row"},$l={class:"row"},Gl={class:"row"},Nl={class:"row"},Ol={class:"row"},Al={class:"row"},Fl={class:"dialog-footer"},Ml={style:{"font-weight":"900","font-size":"16px"}},Pl={style:{display:"flex","margin-top":"20px"}},jl={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},Yl={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},ql={style:{display:"flex","margin-bottom":"8px"}},Zl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Jl={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Kl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},Ql={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},Wl={key:0,id:"huchi_table"},Xl={key:0,style:{display:"flex"}},et={key:1,style:{display:"flex"}},lt={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},tt={style:{"margin-right":"12px"}},at={style:{"margin-left":"12px",width:"250px"}},st={style:{"margin-bottom":"12px"}},ot={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},it={style:{"font-weight":"700","margin-right":"12px"}},nt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},ut={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},dt={style:{display:"flex","align-items":"center"}},rt={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},mt={__name:"CheckItemConfig",setup(pt){let h=d(!1),C=d({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:"",appointmentDeptOnly:!1}),y=d({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1}),ge=d([]),ye=d([]),_e=d([]),ce=d([]);const P=(t="")=>{let e={};e={...C.value},t=="Dialog"&&(e.bigClass=J.value),h.value=!0,vl({searchInfo:e}).then(n=>{h.value=!1,n.status?(t=="Dialog"?(_e.value=n.data.bigClass,ce.value=n.data.smallClass):(ge.value=n.data.bigClass,ye.value=n.data.smallClass),T()):f.error(n.msg)})};let be=d([]),j=d(1),Y=d(15),xe=0;const T=()=>{ie.value&&ie.value.clearSelection(),I.value=[],h.value=!0,Le({searchInfo:C.value,page:j.value,pageSize:Y.value}).then(t=>{if(h.value=!1,t.status){let e=t.data.list;be.value=e,xe=t.data.count}else f.error(t.msg)})},Se=({prop:t,order:e})=>{C.value.orderField=t||"",C.value.orderDirection=e||"",T()},Re=t=>{Y.value=t,T()},Ee=t=>{j.value=t,T()};let R=d(!1),$=d(!1),Q=d(!1),G=d(!1),ke=d(""),Ce=d(""),q=d(""),I=d([]),ie=d(null);const He=rl(()=>Q.value?"批量关联排班":"关联排班"),Be=t=>{I.value=t},ze=()=>{h.value=!0,yl({searchInfo:C.value}).then(t=>{h.value=!1;const e=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.download="检查项目列表.xls",n.click(),URL.revokeObjectURL(n.href)}).catch(()=>{h.value=!1})},Te=t=>{Q.value=!1,H.value=[],R.value=!0,y.value.id=t.id,ve({hisExecDepts:t.hisExecDepts}).then(e=>{e.status&&(W.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){W.value.find(function(r){return r.id==n.id})&&H.value.push(n.id)})})},$e=()=>{if(I.value.length===0){f.error("请先勾选要批量关联的检查项目");return}Q.value=!0;const t=I.value[0].hisExecDepts;ve({hisExecDepts:t}).then(e=>{e.status&&(W.value=e.data);let n=[];if(I.value.length>0){n=I.value[0].devicesInfo.map(r=>r.id);for(let r=1;rb.id);n=n.filter(b=>_.includes(b))}}H.value=n,R.value=!0})};let H=d([]),ne=d(0),ue=d(!1);const Ge=async()=>{const t=e=>Dl({item_id:e,device_ids:H.value});if(Q.value){ue.value=!0,ne.value=0;const e=I.value.length;let n=0,r=0;for(let _=0;_{ue.value=!1},1500),r===0?f.success(`批量关联成功,共${e}项`):f.warning(`完成${n}项,失败${r}项`),R.value=!1,H.value=[],P()}else t(y.value.id).then(e=>{e.status?(R.value=!1,H.value=[],P()):f.error(e.msg)})},Ve=t=>{if(I.value.length===0){f.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};I.value.forEach(_=>{const b=(_[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,r="";Object.entries(e).forEach(([_,b])=>{b>n&&(n=b,r=_)}),q.value=r,G.value=!0},Ne=()=>{const t=I.value.map(e=>e.id);h.value=!0,_l({item_ids:t,field:ke.value,value:q.value}).then(e=>{h.value=!1,e.status?(G.value=!1,f.success(e.msg),T()):f.error(e.msg)})};let W=d([]);const Oe=()=>{ve({}).then(t=>{t.status?W.value=t.data:f.error(t.msg)})},Ae=t=>{$.value=!0,y.value.id=t.id,y.value.item_name=t.item_name,y.value.limosis=t.limosis,y.value.reservation_method=t.reservation_method,y.value.check_time=t.check_time,y.value.use_seats=t.use_seats||1,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),y.value.check_begin_time=t.check_begin_time,y.value.check_notice=t.check_notice,y.value.warm_tips=t.warm_tips};let de=d("");const Fe=()=>{fl({}).then(t=>{t.status?de.value=t.data:f.error(t.msg)})},Me=()=>{cl({Info:y.value}).then(t=>{t.status?($.value=!1,T()):f.error(t.msg)})};let X=d(!1),Z=d(""),ee=d(null),J=d(null),O=d(null),te=d(!1),ae=d([]),B=d(!1),A=d([]),z=d({code:"",name:""});const Pe=t=>{X.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,O.value=[],Z.value="",P("Dialog"),we()},he=()=>{B.value=!0,ae.value=[],Le({searchInfo:{name:Z.value,bigClass:J.value,smallClass:ee.value},page:1,pageSize:100}).then(t=>{B.value=!1,t.status?t.data.list.length>0?O.value=t.data.list:f.error("未找到相关项目"):f.error(t.msg)})},je=()=>{console.log(A.value);let t=[],e=[],n=!0;if(V.value.forEach(function(r,_){A.value.forEach(function(b,L){r.code2==b&&(f.error(r.code2_item_name+" 已经存在于右侧,不能重复添加"),n=!1)})}),!n)return!1;O.value.forEach(r=>{A.value.includes(r.item_code)?V.value.push({code2:r.item_code,code2_item_name:r.item_name}):t.push(r)}),O.value=t,console.log(e),console.log(V.value),A.value=[]},Ye=t=>{V.value=V.value.filter(e=>e.code2!=t.code2),O.value.find(e=>e.item_code==t.code2)||O.value.push({item_code:t.code2,item_name:t.code2_item_name})},re=(t,e,n,r=0)=>{B.value=!0,bl({id:r,code1:t,code2:e,time:n}).then(_=>{B.value=!1,_.status?(f({message:_.msg,type:"success"}),V.value.forEach(function(b,L){b.code2==_.data.code2&&(console.log(333),V.value[L].id=_.data.id)})):f.error(_.msg)})};let V=d([]);const we=()=>{B.value=!0,xl({code:z.value.code}).then(t=>{B.value=!1,t.status?V.value=t.data:f.error(t.msg)})},qe=t=>{fe.confirm("确定解除此项互斥关系吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{B.value=!0,kl({id:t}).then(e=>{B.value=!1,e.status?(f({message:e.msg,type:"success"}),we()):f.error(e.msg)})})},Ze=()=>{fe.confirm("确定从his同步分类吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Cl().then(t=>{h.value=!1,t.status?(f({message:t.msg,type:"success"}),P()):f.error(t.msg)})})},Je=()=>{fe.confirm("确定从his同步检查项目吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Vl({termClassId:155}).then(t=>{h.value=!1,t.status?(f({message:t.msg,type:"success"}),T()):f.error(t.msg)})})};let N=d(!1),le=d(!1),me=d({id:null,item_name:""}),F=d([]),Ie=d([]);const Ke=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],Qe=t=>{me.value={id:t.id,item_name:t.item_name},N.value=!0,le.value=!0,hl({item_id:t.id}).then(e=>{e.status&&(Ie.value=e.data)}),wl({item_id:t.id}).then(e=>{le.value=!1,e.status?F.value=(e.data||[]).map(n=>({days:n.rule_value.days||[],start_time:n.rule_value.start_time||"",end_time:n.rule_value.end_time||"",resources_id:n.rule_value.resources_id||""})):f.error(e.msg)})},We=()=>{F.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Xe=t=>{F.value.splice(t,1)},el=()=>{for(let e=0;e({rule_type:"TIME_RESTRICTION",rule_value:{days:e.days,start_time:e.start_time,end_time:e.end_time,resources_id:e.resources_id||""}}));le.value=!0,Il({item_id:me.value.id,rules:t}).then(e=>{le.value=!1,e.status?(f.success("保存成功"),N.value=!1):f.error(e.msg)})};return ml(()=>{P(),Oe(),Fe()}),(t,e)=>{const n=x("el-tag"),r=x("el-option"),_=x("el-select"),b=x("el-checkbox"),L=x("el-input"),g=x("el-button"),ll=x("el-row"),E=x("el-table-column"),tl=x("el-table"),al=x("el-pagination"),sl=x("el-transfer"),ol=x("el-progress"),K=x("el-dialog"),pe=x("el-checkbox-group"),il=x("el-input-number"),nl=x("DArrowLeft"),De=x("el-icon"),ul=x("DArrowRight"),Ue=x("el-time-select"),se=pl("loading");return oe((u(),c("div",null,[i("div",Ul,[a(ll,null,{default:o(()=>[i("div",Ll,[a(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[45]||(e[45]=[p("医嘱类别",-1)])]),_:1}),a(_,{clearable:"",filterable:!0,modelValue:s(C).bigClass,"onUpdate:modelValue":e[0]||(e[0]=l=>s(C).bigClass=l),onChange:e[1]||(e[1]=l=>P()),placeholder:"所有医嘱大类"},{default:o(()=>[(u(!0),c(D,null,U(s(ge),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{filterable:!0,clearable:"",modelValue:s(C).smallClass,"onUpdate:modelValue":e[2]||(e[2]=l=>s(C).smallClass=l),placeholder:"所有医嘱小类",style:{"margin-left":"10px"}},{default:o(()=>[(u(!0),c(D,null,U(s(ye),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{clearable:"",modelValue:s(C).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>s(C).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[a(r,{label:"全部",value:""}),a(r,{label:"已关联排班",value:1}),a(r,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),a(_,{clearable:"",modelValue:s(C).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>s(C).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[a(r,{label:"全部",value:""}),a(r,{label:"有执行科室",value:"1"}),a(r,{label:"无执行科室",value:"0"})]),_:1},8,["modelValue"]),a(b,{modelValue:s(C).appointmentDeptOnly,"onUpdate:modelValue":e[5]||(e[5]=l=>s(C).appointmentDeptOnly=l),onChange:T,style:{"margin-left":"15px"}},{default:o(()=>[...e[46]||(e[46]=[p("只显示参与预约科室的项目",-1)])]),_:1},8,["modelValue"]),a(L,{modelValue:s(C).name,"onUpdate:modelValue":e[6]||(e[6]=l=>s(C).name=l),placeholder:"请输入项目编号/名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),a(g,{type:"primary",onClick:e[7]||(e[7]=l=>T()),style:{"margin-left":"10px"}},{default:o(()=>[...e[47]||(e[47]=[p("查询",-1)])]),_:1}),a(g,{type:"warning",onClick:e[8]||(e[8]=l=>Ze()),style:{"margin-left":"40px"}},{default:o(()=>[...e[48]||(e[48]=[p("同步分类",-1)])]),_:1}),a(g,{type:"warning",onClick:e[9]||(e[9]=l=>Je()),style:{"margin-left":"10px"}},{default:o(()=>[...e[49]||(e[49]=[p("同步检查项目",-1)])]),_:1}),a(g,{type:"primary",onClick:e[10]||(e[10]=l=>$e()),style:{"margin-left":"10px"}},{default:o(()=>[...e[50]||(e[50]=[p("批量关联排班",-1)])]),_:1}),a(g,{type:"primary",onClick:e[11]||(e[11]=l=>Ve("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[51]||(e[51]=[p("批量设置检查须知",-1)])]),_:1}),a(g,{type:"primary",onClick:e[12]||(e[12]=l=>Ve("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[52]||(e[52]=[p("批量设置温馨提示",-1)])]),_:1}),a(g,{type:"success",onClick:e[13]||(e[13]=l=>ze()),style:{"margin-left":"10px"}},{default:o(()=>[...e[53]||(e[53]=[p("导出",-1)])]),_:1})]),_:1})]),a(tl,{ref_key:"checkItemTableRef",ref:ie,data:s(be),style:{width:"100%","margin-top":"10px"},"row-key":"id",onSortChange:Se,onSelectionChange:Be},{default:o(()=>[a(E,{type:"selection",width:"50"}),a(E,{prop:"item_code",label:"检查项目编号",width:"160",sortable:"custom"}),a(E,{prop:"item_name",label:"检查项目名称",sortable:"custom"}),a(E,{prop:"his_exec_dept_names",label:"HIS绑定科室",width:"200"},{default:o(l=>[(u(!0),c(D,null,U(l.row.his_exec_dept_names,(m,v)=>(u(),w(n,{key:v,class:"ml-2",style:{"margin-bottom":"2px","margin-right":"4px"}},{default:o(()=>[p(S(m),1)]),_:2},1024))),128))]),_:1}),a(E,{prop:"reservation_method_name",label:"预约方式"}),a(E,{prop:"limosis",label:"要求空腹",width:"100"},{default:o(l=>[l.row.limosis==1?(u(),w(n,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[54]||(e[54]=[p("是",-1)])]),_:1})):M("",!0),l.row.limosis==0?(u(),w(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[55]||(e[55]=[p("否",-1)])]),_:1})):M("",!0)]),_:1}),M("",!0),a(E,{prop:"check_time",label:"检查时间",width:"100"}),a(E,{prop:"check_begin_time",label:"开始预约时间",width:"120"}),a(E,{prop:"devicesInfo",label:"关联排班"},{default:o(l=>[(u(!0),c(D,null,U(l.row.devicesInfo,(m,v)=>(u(),c("span",{key:v},[m.status==1&&m.is_del==0?(u(),w(n,{key:0,class:"ml-2",type:"success"},{default:o(()=>[p(S(m.device_name),1)]),_:2},1024)):M("",!0),m.status==0||m.is_del==1?(u(),w(n,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[p(S(m.device_name),1)]),_:2},1024)):M("",!0)]))),128))]),_:1}),a(E,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[a(g,{size:"small",onClick:m=>Te(l.row)},{default:o(()=>[...e[56]||(e[56]=[p("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),a(E,{prop:"",label:"操作",width:"220"},{default:o(l=>[a(g,{type:"primary",onClick:m=>Ae(l.row),size:"small"},{default:o(()=>[...e[57]||(e[57]=[p("修改",-1)])]),_:1},8,["onClick"]),a(g,{type:"warning",onClick:m=>Pe(l.row),size:"small"},{default:o(()=>[...e[58]||(e[58]=[p("互斥",-1)])]),_:1},8,["onClick"]),a(g,{type:"success",onClick:m=>Qe(l.row),size:"small"},{default:o(()=>[...e[59]||(e[59]=[p("规则",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),i("div",Sl,[a(al,{"current-page":s(j),"onUpdate:currentPage":e[14]||(e[14]=l=>k(j)?j.value=l:j=l),"page-size":s(Y),"onUpdate:pageSize":e[15]||(e[15]=l=>k(Y)?Y.value=l:Y=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(xe),onSizeChange:Re,onCurrentChange:Ee},null,8,["current-page","page-size","total"])]),a(K,{modelValue:s(R),"onUpdate:modelValue":e[19]||(e[19]=l=>k(R)?R.value=l:R=l),title:He.value,width:"40%"},{footer:o(()=>[i("span",Hl,[a(g,{onClick:e[17]||(e[17]=l=>k(R)?R.value=!1:R=!1)},{default:o(()=>[...e[60]||(e[60]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:e[18]||(e[18]=l=>Ge())},{default:o(()=>[...e[61]||(e[61]=[p(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Rl,[a(sl,{modelValue:s(H),"onUpdate:modelValue":e[16]||(e[16]=l=>k(H)?H.value=l:H=l),titles:["可选排班","已关联排班"],props:{key:"id",label:"device_name"},data:s(W)},null,8,["modelValue","data"])]),s(Q)&&s(ue)?(u(),c("div",El,[a(ol,{percentage:s(ne),"stroke-width":14},null,8,["percentage"])])):M("",!0)]),_:1},8,["modelValue","title"]),a(K,{modelValue:s($),"onUpdate:modelValue":e[29]||(e[29]=l=>k($)?$.value=l:$=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",Fl,[a(g,{onClick:e[27]||(e[27]=l=>k($)?$.value=!1:$=!1)},{default:o(()=>[...e[72]||(e[72]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:e[28]||(e[28]=l=>Me())},{default:o(()=>[...e[73]||(e[73]=[p(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Bl,[e[62]||(e[62]=i("span",{class:"title"},"医嘱名称:",-1)),p(S(s(y).item_name),1)]),i("div",zl,[e[63]||(e[63]=i("span",{class:"title"},"预约方式:",-1)),s(de)?(u(),w(pe,{key:0,modelValue:s(y).reservation_method,"onUpdate:modelValue":e[20]||(e[20]=l=>s(y).reservation_method=l)},{default:o(()=>[(u(!0),c(D,null,U(s(de),(l,m)=>(u(),w(b,{label:l.id,value:l.id,key:m},{default:o(()=>[p(S(l.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):M("",!0)]),i("div",Tl,[e[64]||(e[64]=i("span",{class:"title"},"空腹:",-1)),a(_,{filterable:!0,clearable:"",modelValue:s(y).limosis,"onUpdate:modelValue":e[21]||(e[21]=l=>s(y).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[a(r,{label:"否",value:0}),a(r,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",$l,[e[65]||(e[65]=i("span",{class:"title"},"检查时间:",-1)),a(L,{modelValue:s(y).check_time,"onUpdate:modelValue":e[22]||(e[22]=l=>s(y).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Gl,[e[66]||(e[66]=i("span",{class:"title"},"占用号源:",-1)),a(il,{modelValue:s(y).use_seats,"onUpdate:modelValue":e[23]||(e[23]=l=>s(y).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[67]||(e[67]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Nl,[e[68]||(e[68]=i("span",{class:"title"},"等待时间:",-1)),a(L,{modelValue:s(y).check_begin_time,"onUpdate:modelValue":e[24]||(e[24]=l=>s(y).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[69]||(e[69]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",Ol,[e[70]||(e[70]=i("span",{class:"title"},"检查须知:",-1)),a(L,{modelValue:s(y).check_notice,"onUpdate:modelValue":e[25]||(e[25]=l=>s(y).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",Al,[e[71]||(e[71]=i("span",{class:"title"},"温馨提示:",-1)),a(L,{modelValue:s(y).warm_tips,"onUpdate:modelValue":e[26]||(e[26]=l=>s(y).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),a(K,{modelValue:s(G),"onUpdate:modelValue":e[32]||(e[32]=l=>k(G)?G.value=l:G=l),title:s(Ce),width:"40%"},{footer:o(()=>[a(g,{onClick:e[31]||(e[31]=l=>k(G)?G.value=!1:G=!1)},{default:o(()=>[...e[74]||(e[74]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:Ne},{default:o(()=>[...e[75]||(e[75]=[p("确定",-1)])]),_:1})]),default:o(()=>[a(L,{modelValue:s(q),"onUpdate:modelValue":e[30]||(e[30]=l=>k(q)?q.value=l:q=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"]),a(K,{modelValue:s(X),"onUpdate:modelValue":e[41]||(e[41]=l=>k(X)?X.value=l:X=l),title:"为 "+s(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[82]||(e[82]=p(" 请输入想要与 ",-1)),i("span",Ml,S(s(z).name),1),e[83]||(e[83]=p(" 互斥的项目名称 ",-1)),i("div",Pl,[i("div",jl,[oe((u(),c("div",Yl,[i("div",ql,[a(_,{clearable:"",filterable:!0,modelValue:s(J),"onUpdate:modelValue":e[33]||(e[33]=l=>k(J)?J.value=l:J=l),onChange:e[34]||(e[34]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(u(!0),c(D,null,U(s(_e),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(_,{filterable:!0,clearable:"",modelValue:s(ee),"onUpdate:modelValue":e[35]||(e[35]=l=>k(ee)?ee.value=l:ee=l),placeholder:"所有医嘱小类",onChange:e[36]||(e[36]=l=>he()),style:{"margin-left":"10px"}},{default:o(()=>[(u(!0),c(D,null,U(s(ce),(l,m)=>(u(),w(r,{key:m,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[a(L,{modelValue:s(Z),"onUpdate:modelValue":e[37]||(e[37]=l=>k(Z)?Z.value=l:Z=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),a(g,{type:"success",style:{"margin-left":"8px"},onClick:e[38]||(e[38]=l=>he())},{default:o(()=>[...e[76]||(e[76]=[p("查询",-1)])]),_:1})])])),[[se,s(B)]]),i("div",Zl,[a(pe,{modelValue:s(A),"onUpdate:modelValue":e[39]||(e[39]=l=>k(A)?A.value=l:A=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(u(!0),c(D,null,U(s(O),(l,m)=>(u(),w(b,{key:m,label:l.item_code},{default:o(()=>[p(S(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Jl,[a(g,{type:"primary",icon:s(gl),circle:"",onClick:e[40]||(e[40]=l=>je())},null,8,["icon"])]),i("div",Kl,[i("div",Ql,"已经存在互斥项("+S(s(V).length)+")",1),s(V).length>0?(u(),c("table",Wl,[(u(!0),c(D,null,U(s(V),(l,m)=>(u(),c("tr",{key:m},[i("td",null,S(l.code2_item_name),1),i("td",null,[a(L,{modelValue:s(V)[m].time,"onUpdate:modelValue":v=>s(V)[m].time=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[77]||(e[77]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(u(),c("span",Xl,[a(g,{type:"danger",style:{"margin-left":"8px"},onClick:v=>qe(l.id)},{default:o(()=>[...e[78]||(e[78]=[p("解除",-1)])]),_:1},8,["onClick"]),a(g,{type:"primary",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[m].time,l.id)},{default:o(()=>[...e[79]||(e[79]=[p("更新",-1)])]),_:1},8,["onClick"])])):(u(),c("span",et,[a(g,{type:"success",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[m].time)},{default:o(()=>[...e[80]||(e[80]=[p("保存",-1)])]),_:1},8,["onClick"]),a(g,{style:{"margin-left":"8px"},onClick:v=>Ye(l)},{default:o(()=>[...e[81]||(e[81]=[p("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(u(),c("div",lt," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(K,{modelValue:s(te),"onUpdate:modelValue":e[42]||(e[42]=l=>k(te)?te.value=l:te=l),title:"为 "+s(z).name+" 设置互斥",width:"50%"},{default:o(()=>[oe((u(),c("div",null,[e[85]||(e[85]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(u(!0),c(D,null,U(s(O),(l,m)=>(u(),c("div",{class:"row",key:m},[i("div",tt,S(s(z).name),1),a(De,null,{default:o(()=>[a(nl)]),_:1}),a(De,null,{default:o(()=>[a(ul)]),_:1}),i("div",at,S(l.item_name),1),a(L,{modelValue:s(ae)[m],"onUpdate:modelValue":v=>s(ae)[m]=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),a(g,{type:"danger",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.item_code,s(ae)[m])},{default:o(()=>[...e[84]||(e[84]=[p("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[se,s(B)]])]),_:1},8,["modelValue","title"]),oe((u(),w(K,{modelValue:s(N),"onUpdate:modelValue":e[44]||(e[44]=l=>k(N)?N.value=l:N=l),title:"时段规则 - "+s(me).item_name,width:"700px"},{footer:o(()=>[a(g,{onClick:e[43]||(e[43]=l=>k(N)?N.value=!1:N=!1)},{default:o(()=>[...e[94]||(e[94]=[p("取消",-1)])]),_:1}),a(g,{type:"primary",onClick:el},{default:o(()=>[...e[95]||(e[95]=[p("保存",-1)])]),_:1})]),default:o(()=>[i("div",st,[a(g,{type:"primary",size:"small",onClick:We},{default:o(()=>[...e[86]||(e[86]=[p("添加规则",-1)])]),_:1}),e[87]||(e[87]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(u(!0),c(D,null,U(s(F),(l,m)=>(u(),c("div",{key:m,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",ot,[i("span",it,"规则 "+S(m+1),1),a(g,{type:"danger",size:"small",onClick:v=>Xe(m)},{default:o(()=>[...e[88]||(e[88]=[p("删除",-1)])]),_:1},8,["onClick"])]),i("div",nt,[e[89]||(e[89]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),a(pe,{modelValue:l.days,"onUpdate:modelValue":v=>l.days=v},{default:o(()=>[(u(),c(D,null,U(Ke,v=>a(b,{key:v,label:v,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",ut,[e[90]||(e[90]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),a(_,{modelValue:l.resources_id,"onUpdate:modelValue":v=>l.resources_id=v,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(u(!0),c(D,null,U(s(Ie),v=>(u(),w(r,{key:v.id,label:v.department_resources_name+(v.department_name?"("+v.department_name+")":""),value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),e[91]||(e[91]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",dt,[e[92]||(e[92]=i("span",{style:{width:"80px","font-weight":"500"}},"允许时段",-1)),a(Ue,{modelValue:l.start_time,"onUpdate:modelValue":v=>l.start_time=v,"max-time":l.end_time,placeholder:"开始时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","max-time"]),e[93]||(e[93]=i("span",{style:{margin:"0 8px"}},"~",-1)),a(Ue,{modelValue:l.end_time,"onUpdate:modelValue":v=>l.end_time=v,"min-time":l.start_time,placeholder:"结束时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","min-time"])])]))),128)),s(F).length===0?(u(),c("div",rt," 暂未设置时段限制 ")):M("",!0)]),_:1},8,["modelValue","title"])),[[se,s(le)]])])),[[se,s(h)]])}}},ft=dl(mt,[["__scopeId","data-v-d46f9281"]]);export{ft as default}; diff --git a/Laravel/public/admin/assets/DepartmentConfig-46f236fe.css b/Laravel/public/dist/assets/DepartmentConfig-46f236fe.css similarity index 100% rename from Laravel/public/admin/assets/DepartmentConfig-46f236fe.css rename to Laravel/public/dist/assets/DepartmentConfig-46f236fe.css diff --git a/Laravel/public/admin/assets/DepartmentConfig-7fabcd85.js b/Laravel/public/dist/assets/DepartmentConfig-c09341c8.js similarity index 98% rename from Laravel/public/admin/assets/DepartmentConfig-7fabcd85.js rename to Laravel/public/dist/assets/DepartmentConfig-c09341c8.js index 20831b0..616ba9e 100644 --- a/Laravel/public/admin/assets/DepartmentConfig-7fabcd85.js +++ b/Laravel/public/dist/assets/DepartmentConfig-c09341c8.js @@ -1 +1 @@ -import{_ as De,Z as te,o as Se,r as i,c as Ie,d,e as B,k as y,f as n,w as a,h as O,i as o,j as r,l as C,x as f,g as m,ay as ze,E as x,az as Le,q as s,F as j,t as q,v as $,aA as Ne,aB as Be,N as Ge,aC as $e,aD as Ee,aE as Re,aF as Ae,aG as Te}from"./index-af171713.js";import{_ as Pe}from"./DepartmentResourcesSave-7a0f7e89.js";const Fe={class:"head"},Je={style:{"text-align":"center"}},Me=["onClick"],Oe=["onClick"],je={style:{color:"#dd377f"}},qe=["onClick"],He={style:{display:"flex","flex-direction":"column","align-items":"flex-start",gap:"6px",padding:"4px 0"}},Ze={style:{color:"#00aaff","font-size":"12px"}},Ke={class:"page"},Qe={class:"dialog-footer"},We={class:"dialog-footer"},Xe={class:"dialog-footer"},Ye={__name:"DepartmentConfig",setup(he){let E=m(null);sessionStorage.getItem("LoginUserInfo")&&(E.value=JSON.parse(sessionStorage.getItem("LoginUserInfo")));const w=te(()=>E.value&&(E.value.group==1||E.value.group==5)),le=te(()=>Q.value.filter(l=>l.id!==1&&l.id!==5));let _=m(!1),S=m([]),H=m([]),k=m({status:null,name:"",only_execute:!0,only_first_level:!0,appointment_enabled:!0}),Z=m([]),L=m(1),N=m(15),K=0;const v=()=>{_.value=!0,ze({searchInfo:k.value,page:L.value,pageSize:N.value}).then(l=>{_.value=!1,l.status?(Z.value=l.data.list,K=l.data.count):x.error(l.msg)})},ae=l=>{N.value=l,v()},ne=l=>{L.value=l,v()};let V=m(!1),u=m({id:null,department_name:"",department_number:"",department_status:null,appointment_enabled:0,auto_gen_days:15,pid:0,is_workbench:0,linked_departments:"[]"});const oe=l=>{V.value=!0,u.value={id:l.id,department_name:l.department_name,department_number:l.department_number,department_status:l.department_status,appointment_enabled:l.appointment_enabled??0,auto_gen_days:l.auto_gen_days??15,pid:l.pid??0,is_workbench:l.is_workbench??0,linked_departments:l.linked_departments??"[]"};try{S.value=JSON.parse(l.linked_departments||"[]").map(Number)}catch{S.value=[]}Y()},de=()=>{u.value.linked_departments=JSON.stringify(S.value.map(String)),_.value=!0,Ne({info:u.value}).then(l=>{_.value=!1,l.status?(V.value=!1,v()):x.error(l.msg)})},ue=()=>{V.value=!0,u.value={id:null,department_name:"",department_number:"",department_status:1,appointment_enabled:0,auto_gen_days:15,pid:0,is_workbench:0,linked_departments:"[]"},S.value=[],Y()};let U=m(!1),g=m({id:0,department_id:null,cname:"",uname:"",groupId:"",status:1});const se=l=>{U.value=!0,g.value.department_id=l.id},ie=()=>{if(g.value.cname==""||g.value.uname==""||g.value.groupId=="")return x.error("请填写全部信息"),!1;Be({userInfo:g.value}).then(l=>{_.value=!1,l.status=="ok"?(U.value=!1,x({message:"添加成功",type:"success"}),v()):x.error(l.msg)})};let R=m(!1);const re=l=>{R.value=!0,console.log(R.value),u.value.id=l.id},me=()=>{R.value=!1,v()},pe=l=>{window.location.href="./#/yewu/departmentResources?departmentId="+l},fe=l=>{Ge.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,$e({id:l.id}).then(e=>{_.value=!1,e.status?(V.value=!1,v()):x.error(e.msg)})})};let Q=m("");const _e=()=>{Le().then(l=>{_.value=!1,l.status=="ok"?Q.value=l.list:x.error(l.msg)})},ve=l=>{window.location.href="./#/adminUserList?departmentId="+l.id};let c=m(!1),W=m(null),X=m([]),I=m([]);const ge=l=>{W.value=l,I.value=[],c.value=!0,Ee({department_id:l.id}).then(e=>{e.status?X.value=e.data.list:x.error(e.msg)}),Re({department_id:l.id}).then(e=>{e.status?I.value=e.data.ids.map(Number):x.error(e.msg)})},be=()=>{_.value=!0,Ae({department_id:W.value.id,children_ids:I.value}).then(l=>{_.value=!1,l.status?(c.value=!1,x({message:"关联成功",type:"success"}),v()):x.error(l.msg)})},Y=()=>{Te({department_id:u.value.id}).then(l=>{l.status&&(H.value=l.data.list)})};return Se(()=>{_e(),v()}),(l,e)=>{const A=i("el-option"),T=i("el-select"),p=i("el-form-item"),G=i("el-input"),b=i("el-button"),P=i("el-checkbox"),ye=i("el-row"),z=i("el-table-column"),h=i("el-tag"),ke=i("el-tooltip"),Ve=i("el-table"),xe=i("el-pagination"),Ce=i("el-input-number"),F=i("el-switch"),we=i("el-divider"),ee=i("el-form"),J=i("el-dialog"),Ue=i("el-transfer"),M=Ie("loading");return d(),B("div",null,[y("div",Fe,[n(ye,null,{default:a(()=>[n(p,null,{default:a(()=>[n(T,{filterable:!0,clearable:"",modelValue:o(k).status,"onUpdate:modelValue":e[0]||(e[0]=t=>o(k).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:a(()=>[n(A,{label:"正常",value:1}),n(A,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1}),w.value?(d(),r(p,{key:0},{default:a(()=>[n(G,{modelValue:o(k).name,"onUpdate:modelValue":e[1]||(e[1]=t=>o(k).name=t),placeholder:"请输入科室名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1})):f("",!0),n(b,{onClick:e[2]||(e[2]=t=>v()),style:{"margin-left":"10px"}},{default:a(()=>[...e[27]||(e[27]=[s("查询",-1)])]),_:1}),w.value?(d(),r(b,{key:1,type:"primary",onClick:e[3]||(e[3]=t=>ue()),style:{"margin-left":"10px"}},{default:a(()=>[...e[28]||(e[28]=[s("添加科室",-1)])]),_:1})):f("",!0),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).only_execute,"onUpdate:modelValue":e[4]||(e[4]=t=>o(k).only_execute=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[29]||(e[29]=[s("只显示存在排班的科室",-1)])]),_:1},8,["modelValue"])]),_:1}),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).only_first_level,"onUpdate:modelValue":e[5]||(e[5]=t=>o(k).only_first_level=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[30]||(e[30]=[s("只显示一级科室",-1)])]),_:1},8,["modelValue"])]),_:1}),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).appointment_enabled,"onUpdate:modelValue":e[6]||(e[6]=t=>o(k).appointment_enabled=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[31]||(e[31]=[s("只显示参与预约的科室",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),O((d(),r(Ve,{data:o(Z),style:{width:"100%"},"row-key":"id","row-style":{height:"60px"}},{default:a(()=>[f("",!0),n(z,{prop:"department_name",label:"科室名称"}),n(z,{prop:"department_number",label:"科室编号"}),n(z,{prop:"department_status",label:"状态",width:"100"},{default:a(t=>[t.row.department_status==0?(d(),r(h,{key:0,class:"ml-2",type:"danger"},{default:a(()=>[...e[32]||(e[32]=[s("禁用",-1)])]),_:1})):f("",!0),t.row.department_status==1?(d(),r(h,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[33]||(e[33]=[s("正常",-1)])]),_:1})):f("",!0)]),_:1}),w.value?(d(),r(z,{key:1,prop:"status",label:"科室账号",width:"120"},{default:a(t=>[y("div",Je,[t.row.department_status==1?(d(),r(b,{key:0,onClick:D=>se(t.row),size:"small"},{default:a(()=>[...e[34]||(e[34]=[s("添加账号",-1)])]),_:1},8,["onClick"])):f("",!0),n(ke,{effect:"dark",placement:"bottom"},{content:a(()=>[(d(!0),B(j,null,q(t.row.user_list,(D,ce)=>(d(),B("div",null,$(ce+1)+". "+$(D.cn_name),1))),256))]),default:a(()=>[y("div",{style:{color:"#00aaff","font-size":"12px",cursor:"pointer"},onClick:D=>ve(t.row)}," 已关联"+$(t.row.user_list.length)+"个",9,Me)]),_:2},1024)])]),_:1})):f("",!0),w.value?(d(),r(z,{key:2,label:"排班资源"},{default:a(t=>[y("div",{class:"zi_button",onClick:D=>pe(t.row.id)},[e[35]||(e[35]=s("排班资源 (共 ",-1)),y("span",je,$(t.row.resource_count),1),e[36]||(e[36]=s(" 个)",-1))],8,Oe),t.row.department_status==1?(d(),B("div",{key:0,class:"zi_button2",onClick:D=>re(t.row)},"添加排班 ",8,qe)):f("",!0)]),_:1})):f("",!0),w.value?(d(),r(z,{key:3,label:"关联诊室",width:"200"},{default:a(t=>[y("div",He,[n(b,{size:"small",onClick:D=>ge(t.row)},{default:a(()=>[...e[37]||(e[37]=[s("关联诊室",-1)])]),_:1},8,["onClick"]),y("span",Ze,"已关联 "+$(t.row.children_count)+" 个",1)])]),_:1})):f("",!0),n(z,{prop:"",label:"操作",width:"180"},{default:a(t=>[n(b,{type:"primary",onClick:D=>oe(t.row),size:"small"},{default:a(()=>[...e[38]||(e[38]=[s("修改",-1)])]),_:1},8,["onClick"]),w.value?(d(),r(b,{key:0,type:"danger",onClick:D=>fe(t.row),size:"small"},{default:a(()=>[...e[39]||(e[39]=[s("删除",-1)])]),_:1},8,["onClick"])):f("",!0)]),_:1})]),_:1},8,["data"])),[[M,o(_)]]),y("div",Ke,[n(xe,{"current-page":o(L),"onUpdate:currentPage":e[7]||(e[7]=t=>C(L)?L.value=t:L=t),"page-size":o(N),"onUpdate:pageSize":e[8]||(e[8]=t=>C(N)?N.value=t:N=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(K),onSizeChange:ae,onCurrentChange:ne},null,8,["current-page","page-size","total"])]),n(J,{modelValue:o(V),"onUpdate:modelValue":e[17]||(e[17]=t=>C(V)?V.value=t:V=t),title:"科室信息",width:"30%"},{footer:a(()=>[y("span",Qe,[n(b,{onClick:e[16]||(e[16]=t=>C(V)?V.value=!1:V=!1)},{default:a(()=>[...e[42]||(e[42]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:de},{default:a(()=>[...e[43]||(e[43]=[s(" 确定 ",-1)])]),_:1})])]),default:a(()=>[O((d(),r(ee,{model:o(u),"label-width":"130px",style:{"padding-right":"40px"}},{default:a(()=>[n(p,{label:"科室名称:"},{default:a(()=>[n(G,{modelValue:o(u).department_name,"onUpdate:modelValue":e[9]||(e[9]=t=>o(u).department_name=t),disabled:!w.value},null,8,["modelValue","disabled"])]),_:1}),n(p,{label:"科室编号:"},{default:a(()=>[n(G,{modelValue:o(u).department_number,"onUpdate:modelValue":e[10]||(e[10]=t=>o(u).department_number=t),disabled:!w.value},null,8,["modelValue","disabled"])]),_:1}),o(u).pid==0&&o(u).appointment_enabled==1?(d(),r(p,{key:0,label:"自动生成天数:"},{default:a(()=>[n(Ce,{modelValue:o(u).auto_gen_days,"onUpdate:modelValue":e[11]||(e[11]=t=>o(u).auto_gen_days=t),min:1,max:90},null,8,["modelValue"]),e[40]||(e[40]=y("span",{style:{color:"#aaa","margin-left":"10px","font-size":"12px"}},"*定时任务自动生成N天后的号源",-1))]),_:1})):f("",!0),w.value?(d(),r(p,{key:1,label:"科室状态:"},{default:a(()=>[n(F,{modelValue:o(u).department_status,"onUpdate:modelValue":e[12]||(e[12]=t=>o(u).department_status=t),"active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})):f("",!0),n(p,{label:"参与预约:"},{default:a(()=>[n(F,{modelValue:o(u).appointment_enabled,"onUpdate:modelValue":e[13]||(e[13]=t=>o(u).appointment_enabled=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(we,{"content-position":"left"},{default:a(()=>[...e[41]||(e[41]=[s("工作台属性",-1)])]),_:1}),n(p,{label:"是否工作台科室:"},{default:a(()=>[n(F,{modelValue:o(u).is_workbench,"onUpdate:modelValue":e[14]||(e[14]=t=>o(u).is_workbench=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(u).is_workbench==1?(d(),r(p,{key:2,label:"关联科室:"},{default:a(()=>[n(T,{modelValue:o(S),"onUpdate:modelValue":e[15]||(e[15]=t=>C(S)?S.value=t:S=t),multiple:"",filterable:"","collapse-tags":"",placeholder:"请选择关联科室",style:{width:"100%"}},{default:a(()=>[(d(!0),B(j,null,q(o(H),t=>(d(),r(A,{key:t.id,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):f("",!0)]),_:1},8,["model"])),[[M,o(_)]])]),_:1},8,["modelValue"]),n(J,{modelValue:o(U),"onUpdate:modelValue":e[23]||(e[23]=t=>C(U)?U.value=t:U=t),title:"添加用户",width:"30%"},{footer:a(()=>[y("span",We,[n(b,{onClick:e[21]||(e[21]=t=>C(U)?U.value=!1:U=!1)},{default:a(()=>[...e[44]||(e[44]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:e[22]||(e[22]=t=>ie())},{default:a(()=>[...e[45]||(e[45]=[s(" 确定 ",-1)])]),_:1})])]),default:a(()=>[O((d(),r(ee,{model:o(g),"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[n(p,{label:"姓名:"},{default:a(()=>[n(G,{modelValue:o(g).cname,"onUpdate:modelValue":e[18]||(e[18]=t=>o(g).cname=t)},null,8,["modelValue"])]),_:1}),n(p,{label:"账号:"},{default:a(()=>[n(G,{modelValue:o(g).uname,"onUpdate:modelValue":e[19]||(e[19]=t=>o(g).uname=t)},null,8,["modelValue"])]),_:1}),n(p,{label:"角色:"},{default:a(()=>[n(T,{filterable:!0,clearable:"",modelValue:o(g).groupId,"onUpdate:modelValue":e[20]||(e[20]=t=>o(g).groupId=t),placeholder:"选择角色",style:{"margin-left":"10px"}},{default:a(()=>[(d(!0),B(j,null,q(le.value,(t,D)=>(d(),r(A,{label:t.group_name,value:t.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[M,o(_)]])]),_:1},8,["modelValue"]),o(R)?(d(),r(Pe,{key:0,departmentId:o(u).id,onCloseAddResources:me},null,8,["departmentId"])):f("",!0),n(J,{modelValue:o(c),"onUpdate:modelValue":e[26]||(e[26]=t=>C(c)?c.value=t:c=t),title:"关联诊室",width:"60%"},{footer:a(()=>[y("span",Xe,[n(b,{onClick:e[25]||(e[25]=t=>C(c)?c.value=!1:c=!1)},{default:a(()=>[...e[46]||(e[46]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:be},{default:a(()=>[...e[47]||(e[47]=[s("确定",-1)])]),_:1})])]),default:a(()=>[n(Ue,{class:"dept-transfer",modelValue:o(I),"onUpdate:modelValue":e[24]||(e[24]=t=>C(I)?I.value=t:I=t),data:o(X),props:{key:"id",label:"department_name"},filterable:"","filter-placeholder":"输入科室名称搜索",titles:["可选诊室","已关联诊室"],style:{display:"flex","justify-content":"center"}},null,8,["modelValue","data"])]),_:1},8,["modelValue"])])}}},lt=De(Ye,[["__scopeId","data-v-eef12383"]]);export{lt as default}; +import{_ as De,Z as te,o as Se,r as i,c as Ie,d,e as B,k as y,f as n,w as a,h as O,i as o,j as r,l as C,x as f,g as m,ay as ze,E as x,az as Le,q as s,F as j,t as q,v as $,aA as Ne,aB as Be,N as Ge,aC as $e,aD as Ee,aE as Re,aF as Ae,aG as Te}from"./index-e65958bd.js";import{_ as Pe}from"./DepartmentResourcesSave-bf22abac.js";const Fe={class:"head"},Je={style:{"text-align":"center"}},Me=["onClick"],Oe=["onClick"],je={style:{color:"#dd377f"}},qe=["onClick"],He={style:{display:"flex","flex-direction":"column","align-items":"flex-start",gap:"6px",padding:"4px 0"}},Ze={style:{color:"#00aaff","font-size":"12px"}},Ke={class:"page"},Qe={class:"dialog-footer"},We={class:"dialog-footer"},Xe={class:"dialog-footer"},Ye={__name:"DepartmentConfig",setup(he){let E=m(null);sessionStorage.getItem("LoginUserInfo")&&(E.value=JSON.parse(sessionStorage.getItem("LoginUserInfo")));const w=te(()=>E.value&&(E.value.group==1||E.value.group==5)),le=te(()=>Q.value.filter(l=>l.id!==1&&l.id!==5));let _=m(!1),S=m([]),H=m([]),k=m({status:null,name:"",only_execute:!0,only_first_level:!0,appointment_enabled:!0}),Z=m([]),L=m(1),N=m(15),K=0;const v=()=>{_.value=!0,ze({searchInfo:k.value,page:L.value,pageSize:N.value}).then(l=>{_.value=!1,l.status?(Z.value=l.data.list,K=l.data.count):x.error(l.msg)})},ae=l=>{N.value=l,v()},ne=l=>{L.value=l,v()};let V=m(!1),u=m({id:null,department_name:"",department_number:"",department_status:null,appointment_enabled:0,auto_gen_days:15,pid:0,is_workbench:0,linked_departments:"[]"});const oe=l=>{V.value=!0,u.value={id:l.id,department_name:l.department_name,department_number:l.department_number,department_status:l.department_status,appointment_enabled:l.appointment_enabled??0,auto_gen_days:l.auto_gen_days??15,pid:l.pid??0,is_workbench:l.is_workbench??0,linked_departments:l.linked_departments??"[]"};try{S.value=JSON.parse(l.linked_departments||"[]").map(Number)}catch{S.value=[]}Y()},de=()=>{u.value.linked_departments=JSON.stringify(S.value.map(String)),_.value=!0,Ne({info:u.value}).then(l=>{_.value=!1,l.status?(V.value=!1,v()):x.error(l.msg)})},ue=()=>{V.value=!0,u.value={id:null,department_name:"",department_number:"",department_status:1,appointment_enabled:0,auto_gen_days:15,pid:0,is_workbench:0,linked_departments:"[]"},S.value=[],Y()};let U=m(!1),g=m({id:0,department_id:null,cname:"",uname:"",groupId:"",status:1});const se=l=>{U.value=!0,g.value.department_id=l.id},ie=()=>{if(g.value.cname==""||g.value.uname==""||g.value.groupId=="")return x.error("请填写全部信息"),!1;Be({userInfo:g.value}).then(l=>{_.value=!1,l.status=="ok"?(U.value=!1,x({message:"添加成功",type:"success"}),v()):x.error(l.msg)})};let R=m(!1);const re=l=>{R.value=!0,console.log(R.value),u.value.id=l.id},me=()=>{R.value=!1,v()},pe=l=>{window.location.href="./#/yewu/departmentResources?departmentId="+l},fe=l=>{Ge.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,$e({id:l.id}).then(e=>{_.value=!1,e.status?(V.value=!1,v()):x.error(e.msg)})})};let Q=m("");const _e=()=>{Le().then(l=>{_.value=!1,l.status=="ok"?Q.value=l.list:x.error(l.msg)})},ve=l=>{window.location.href="./#/adminUserList?departmentId="+l.id};let c=m(!1),W=m(null),X=m([]),I=m([]);const ge=l=>{W.value=l,I.value=[],c.value=!0,Ee({department_id:l.id}).then(e=>{e.status?X.value=e.data.list:x.error(e.msg)}),Re({department_id:l.id}).then(e=>{e.status?I.value=e.data.ids.map(Number):x.error(e.msg)})},be=()=>{_.value=!0,Ae({department_id:W.value.id,children_ids:I.value}).then(l=>{_.value=!1,l.status?(c.value=!1,x({message:"关联成功",type:"success"}),v()):x.error(l.msg)})},Y=()=>{Te({department_id:u.value.id}).then(l=>{l.status&&(H.value=l.data.list)})};return Se(()=>{_e(),v()}),(l,e)=>{const A=i("el-option"),T=i("el-select"),p=i("el-form-item"),G=i("el-input"),b=i("el-button"),P=i("el-checkbox"),ye=i("el-row"),z=i("el-table-column"),h=i("el-tag"),ke=i("el-tooltip"),Ve=i("el-table"),xe=i("el-pagination"),Ce=i("el-input-number"),F=i("el-switch"),we=i("el-divider"),ee=i("el-form"),J=i("el-dialog"),Ue=i("el-transfer"),M=Ie("loading");return d(),B("div",null,[y("div",Fe,[n(ye,null,{default:a(()=>[n(p,null,{default:a(()=>[n(T,{filterable:!0,clearable:"",modelValue:o(k).status,"onUpdate:modelValue":e[0]||(e[0]=t=>o(k).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:a(()=>[n(A,{label:"正常",value:1}),n(A,{label:"禁用",value:0})]),_:1},8,["modelValue"])]),_:1}),w.value?(d(),r(p,{key:0},{default:a(()=>[n(G,{modelValue:o(k).name,"onUpdate:modelValue":e[1]||(e[1]=t=>o(k).name=t),placeholder:"请输入科室名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1})):f("",!0),n(b,{onClick:e[2]||(e[2]=t=>v()),style:{"margin-left":"10px"}},{default:a(()=>[...e[27]||(e[27]=[s("查询",-1)])]),_:1}),w.value?(d(),r(b,{key:1,type:"primary",onClick:e[3]||(e[3]=t=>ue()),style:{"margin-left":"10px"}},{default:a(()=>[...e[28]||(e[28]=[s("添加科室",-1)])]),_:1})):f("",!0),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).only_execute,"onUpdate:modelValue":e[4]||(e[4]=t=>o(k).only_execute=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[29]||(e[29]=[s("只显示存在排班的科室",-1)])]),_:1},8,["modelValue"])]),_:1}),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).only_first_level,"onUpdate:modelValue":e[5]||(e[5]=t=>o(k).only_first_level=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[30]||(e[30]=[s("只显示一级科室",-1)])]),_:1},8,["modelValue"])]),_:1}),n(p,null,{default:a(()=>[n(P,{modelValue:o(k).appointment_enabled,"onUpdate:modelValue":e[6]||(e[6]=t=>o(k).appointment_enabled=t),onChange:v,style:{"margin-left":"15px"}},{default:a(()=>[...e[31]||(e[31]=[s("只显示参与预约的科室",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),O((d(),r(Ve,{data:o(Z),style:{width:"100%"},"row-key":"id","row-style":{height:"60px"}},{default:a(()=>[f("",!0),n(z,{prop:"department_name",label:"科室名称"}),n(z,{prop:"department_number",label:"科室编号"}),n(z,{prop:"department_status",label:"状态",width:"100"},{default:a(t=>[t.row.department_status==0?(d(),r(h,{key:0,class:"ml-2",type:"danger"},{default:a(()=>[...e[32]||(e[32]=[s("禁用",-1)])]),_:1})):f("",!0),t.row.department_status==1?(d(),r(h,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[33]||(e[33]=[s("正常",-1)])]),_:1})):f("",!0)]),_:1}),w.value?(d(),r(z,{key:1,prop:"status",label:"科室账号",width:"120"},{default:a(t=>[y("div",Je,[t.row.department_status==1?(d(),r(b,{key:0,onClick:D=>se(t.row),size:"small"},{default:a(()=>[...e[34]||(e[34]=[s("添加账号",-1)])]),_:1},8,["onClick"])):f("",!0),n(ke,{effect:"dark",placement:"bottom"},{content:a(()=>[(d(!0),B(j,null,q(t.row.user_list,(D,ce)=>(d(),B("div",null,$(ce+1)+". "+$(D.cn_name),1))),256))]),default:a(()=>[y("div",{style:{color:"#00aaff","font-size":"12px",cursor:"pointer"},onClick:D=>ve(t.row)}," 已关联"+$(t.row.user_list.length)+"个",9,Me)]),_:2},1024)])]),_:1})):f("",!0),w.value?(d(),r(z,{key:2,label:"排班资源"},{default:a(t=>[y("div",{class:"zi_button",onClick:D=>pe(t.row.id)},[e[35]||(e[35]=s("排班资源 (共 ",-1)),y("span",je,$(t.row.resource_count),1),e[36]||(e[36]=s(" 个)",-1))],8,Oe),t.row.department_status==1?(d(),B("div",{key:0,class:"zi_button2",onClick:D=>re(t.row)},"添加排班 ",8,qe)):f("",!0)]),_:1})):f("",!0),w.value?(d(),r(z,{key:3,label:"关联诊室",width:"200"},{default:a(t=>[y("div",He,[n(b,{size:"small",onClick:D=>ge(t.row)},{default:a(()=>[...e[37]||(e[37]=[s("关联诊室",-1)])]),_:1},8,["onClick"]),y("span",Ze,"已关联 "+$(t.row.children_count)+" 个",1)])]),_:1})):f("",!0),n(z,{prop:"",label:"操作",width:"180"},{default:a(t=>[n(b,{type:"primary",onClick:D=>oe(t.row),size:"small"},{default:a(()=>[...e[38]||(e[38]=[s("修改",-1)])]),_:1},8,["onClick"]),w.value?(d(),r(b,{key:0,type:"danger",onClick:D=>fe(t.row),size:"small"},{default:a(()=>[...e[39]||(e[39]=[s("删除",-1)])]),_:1},8,["onClick"])):f("",!0)]),_:1})]),_:1},8,["data"])),[[M,o(_)]]),y("div",Ke,[n(xe,{"current-page":o(L),"onUpdate:currentPage":e[7]||(e[7]=t=>C(L)?L.value=t:L=t),"page-size":o(N),"onUpdate:pageSize":e[8]||(e[8]=t=>C(N)?N.value=t:N=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(K),onSizeChange:ae,onCurrentChange:ne},null,8,["current-page","page-size","total"])]),n(J,{modelValue:o(V),"onUpdate:modelValue":e[17]||(e[17]=t=>C(V)?V.value=t:V=t),title:"科室信息",width:"30%"},{footer:a(()=>[y("span",Qe,[n(b,{onClick:e[16]||(e[16]=t=>C(V)?V.value=!1:V=!1)},{default:a(()=>[...e[42]||(e[42]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:de},{default:a(()=>[...e[43]||(e[43]=[s(" 确定 ",-1)])]),_:1})])]),default:a(()=>[O((d(),r(ee,{model:o(u),"label-width":"130px",style:{"padding-right":"40px"}},{default:a(()=>[n(p,{label:"科室名称:"},{default:a(()=>[n(G,{modelValue:o(u).department_name,"onUpdate:modelValue":e[9]||(e[9]=t=>o(u).department_name=t),disabled:!w.value},null,8,["modelValue","disabled"])]),_:1}),n(p,{label:"科室编号:"},{default:a(()=>[n(G,{modelValue:o(u).department_number,"onUpdate:modelValue":e[10]||(e[10]=t=>o(u).department_number=t),disabled:!w.value},null,8,["modelValue","disabled"])]),_:1}),o(u).pid==0&&o(u).appointment_enabled==1?(d(),r(p,{key:0,label:"自动生成天数:"},{default:a(()=>[n(Ce,{modelValue:o(u).auto_gen_days,"onUpdate:modelValue":e[11]||(e[11]=t=>o(u).auto_gen_days=t),min:1,max:90},null,8,["modelValue"]),e[40]||(e[40]=y("span",{style:{color:"#aaa","margin-left":"10px","font-size":"12px"}},"*定时任务自动生成N天后的号源",-1))]),_:1})):f("",!0),w.value?(d(),r(p,{key:1,label:"科室状态:"},{default:a(()=>[n(F,{modelValue:o(u).department_status,"onUpdate:modelValue":e[12]||(e[12]=t=>o(u).department_status=t),"active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})):f("",!0),n(p,{label:"参与预约:"},{default:a(()=>[n(F,{modelValue:o(u).appointment_enabled,"onUpdate:modelValue":e[13]||(e[13]=t=>o(u).appointment_enabled=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(we,{"content-position":"left"},{default:a(()=>[...e[41]||(e[41]=[s("工作台属性",-1)])]),_:1}),n(p,{label:"是否工作台科室:"},{default:a(()=>[n(F,{modelValue:o(u).is_workbench,"onUpdate:modelValue":e[14]||(e[14]=t=>o(u).is_workbench=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(u).is_workbench==1?(d(),r(p,{key:2,label:"关联科室:"},{default:a(()=>[n(T,{modelValue:o(S),"onUpdate:modelValue":e[15]||(e[15]=t=>C(S)?S.value=t:S=t),multiple:"",filterable:"","collapse-tags":"",placeholder:"请选择关联科室",style:{width:"100%"}},{default:a(()=>[(d(!0),B(j,null,q(o(H),t=>(d(),r(A,{key:t.id,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):f("",!0)]),_:1},8,["model"])),[[M,o(_)]])]),_:1},8,["modelValue"]),n(J,{modelValue:o(U),"onUpdate:modelValue":e[23]||(e[23]=t=>C(U)?U.value=t:U=t),title:"添加用户",width:"30%"},{footer:a(()=>[y("span",We,[n(b,{onClick:e[21]||(e[21]=t=>C(U)?U.value=!1:U=!1)},{default:a(()=>[...e[44]||(e[44]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:e[22]||(e[22]=t=>ie())},{default:a(()=>[...e[45]||(e[45]=[s(" 确定 ",-1)])]),_:1})])]),default:a(()=>[O((d(),r(ee,{model:o(g),"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[n(p,{label:"姓名:"},{default:a(()=>[n(G,{modelValue:o(g).cname,"onUpdate:modelValue":e[18]||(e[18]=t=>o(g).cname=t)},null,8,["modelValue"])]),_:1}),n(p,{label:"账号:"},{default:a(()=>[n(G,{modelValue:o(g).uname,"onUpdate:modelValue":e[19]||(e[19]=t=>o(g).uname=t)},null,8,["modelValue"])]),_:1}),n(p,{label:"角色:"},{default:a(()=>[n(T,{filterable:!0,clearable:"",modelValue:o(g).groupId,"onUpdate:modelValue":e[20]||(e[20]=t=>o(g).groupId=t),placeholder:"选择角色",style:{"margin-left":"10px"}},{default:a(()=>[(d(!0),B(j,null,q(le.value,(t,D)=>(d(),r(A,{label:t.group_name,value:t.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[M,o(_)]])]),_:1},8,["modelValue"]),o(R)?(d(),r(Pe,{key:0,departmentId:o(u).id,onCloseAddResources:me},null,8,["departmentId"])):f("",!0),n(J,{modelValue:o(c),"onUpdate:modelValue":e[26]||(e[26]=t=>C(c)?c.value=t:c=t),title:"关联诊室",width:"60%"},{footer:a(()=>[y("span",Xe,[n(b,{onClick:e[25]||(e[25]=t=>C(c)?c.value=!1:c=!1)},{default:a(()=>[...e[46]||(e[46]=[s("取消",-1)])]),_:1}),n(b,{type:"primary",onClick:be},{default:a(()=>[...e[47]||(e[47]=[s("确定",-1)])]),_:1})])]),default:a(()=>[n(Ue,{class:"dept-transfer",modelValue:o(I),"onUpdate:modelValue":e[24]||(e[24]=t=>C(I)?I.value=t:I=t),data:o(X),props:{key:"id",label:"department_name"},filterable:"","filter-placeholder":"输入科室名称搜索",titles:["可选诊室","已关联诊室"],style:{display:"flex","justify-content":"center"}},null,8,["modelValue","data"])]),_:1},8,["modelValue"])])}}},lt=De(Ye,[["__scopeId","data-v-eef12383"]]);export{lt as default}; diff --git a/Laravel/public/admin/assets/DepartmentResources-1422eddb.js b/Laravel/public/dist/assets/DepartmentResources-bbcf1efc.js similarity index 97% rename from Laravel/public/admin/assets/DepartmentResources-1422eddb.js rename to Laravel/public/dist/assets/DepartmentResources-bbcf1efc.js index 5f9dc95..dd41cc3 100644 --- a/Laravel/public/admin/assets/DepartmentResources-1422eddb.js +++ b/Laravel/public/dist/assets/DepartmentResources-bbcf1efc.js @@ -1 +1 @@ -import{u as se,a as re,o as ue,r,c as de,d as s,e as i,k as D,f as l,w as o,h as ie,i as n,j as y,l as x,x as f,g as u,at as pe,E as R,X as me,I as _e,F as L,t as S,q as d,v as T,N as fe,au as ve,aH as ge}from"./index-af171713.js";import{_ as ce}from"./DepartmentResourcesSave-7a0f7e89.js";const ye={class:"head"},be={style:{display:"flex","align-items":"center"}},ke={key:2,style:{"font-size":"12px","margin-left":"8px"}},we={key:0,style:{color:"#E6A23C"}},Ve={key:1,style:{color:"#409EFF"}},Ce={key:0},De={class:"page"},xe={class:"chuansuokuang"},Re={class:"dialog-footer"},Ee={__name:"DepartmentResources",setup(ze){const U=se();re();let v=u(!1),p=u({department_id:null,status:null,name:""}),C=u({id:null,department_id:null,department_resources_name:"",department_resources_addr:""}),G=u([]),b=u(1),k=u(15),N=0;const g=()=>{v.value=!0,pe({searchInfo:p.value,page:b.value,pageSize:k.value}).then(a=>{v.value=!1,a.status?(G.value=a.data.list,N=a.data.count):R.error(a.msg)})},$=a=>{k.value=a,g()},j=a=>{b.value=a,g()};let H=u(!1),F=u([]);const X=()=>{v.value=!0,me({}).then(a=>{v.value=!1,a.status?F.value=a.data.list:R.error(a.msg)})};let z=u(!1);const J=()=>{z.value=!0,C.value={}},K=a=>{z.value=!0,C.value=a},O=()=>{z.value=!1,g()},Q=()=>{window.location.href="./#/yewu/departmentResources"},W=a=>{fe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{v.value=!0,ve({id:a.id}).then(e=>{v.value=!1,e.status?(H.value=!1,g()):R.error(e.msg)})})};let w=u([]),m=u(!1),A=u([]);const Y=()=>{_e({}).then(a=>{a.status?A.value=a.data:R.error(a.msg)})},Z=()=>{ge({department_id:C.value.department_id,resource_id:C.value.id,device_ids:w.value}).then(a=>{a.status?(m.value=!1,w.value=[],g()):R.error(a.msg)})};return ue(()=>{U.query.departmentId&&(p.value.department_id=Number(U.query.departmentId)),Y(),X(),g()}),(a,e)=>{const B=r("el-option"),P=r("el-select"),E=r("el-form-item"),h=r("el-input"),V=r("el-button"),ee=r("el-row"),c=r("el-table-column"),I=r("el-tag"),te=r("el-table"),le=r("el-pagination"),ae=r("el-transfer"),oe=r("el-dialog"),ne=de("loading");return s(),i("div",null,[D("div",ye,[l(ee,null,{default:o(()=>[l(E,null,{default:o(()=>[l(P,{filterable:!0,clearable:"",modelValue:n(p).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(p).department_id=t),placeholder:"选择科室",onClear:e[1]||(e[1]=t=>Q())},{default:o(()=>[(s(!0),i(L,null,S(n(F),(t,_)=>(s(),y(B,{key:_,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(E,null,{default:o(()=>[l(P,{filterable:!0,clearable:"",modelValue:n(p).status,"onUpdate:modelValue":e[2]||(e[2]=t=>n(p).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:o(()=>[l(B,{label:"正常",value:1}),l(B,{label:"不可用",value:0})]),_:1},8,["modelValue"])]),_:1}),l(E,null,{default:o(()=>[l(h,{modelValue:n(p).name,"onUpdate:modelValue":e[3]||(e[3]=t=>n(p).name=t),placeholder:"请输入排班名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(V,{style:{"margin-left":"10px"},onClick:g},{default:o(()=>[...e[11]||(e[11]=[d("查询",-1)])]),_:1}),l(V,{type:"primary",style:{"margin-left":"10px"},onClick:e[4]||(e[4]=t=>J())},{default:o(()=>[...e[12]||(e[12]=[d("添加排班",-1)])]),_:1})]),_:1})]),ie((s(),y(te,{data:n(G),style:{width:"100%"},"row-key":"id"},{default:o(()=>[l(c,{prop:"id",label:"Id",width:"100"}),l(c,{prop:"department_name",label:"所属科室"}),f("",!0),l(c,{prop:"department_resources_name",label:"排班名称"}),l(c,{prop:"department_resources_addr",label:"资源位置"}),l(c,{prop:"department_resources_status",label:"状态",width:"100"},{default:o(t=>[t.row.department_resources_status==0?(s(),y(I,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[13]||(e[13]=[d("禁用",-1)])]),_:1})):f("",!0),t.row.department_resources_status==1?(s(),y(I,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[14]||(e[14]=[d("正常",-1)])]),_:1})):f("",!0)]),_:1}),l(c,{prop:"time_mode",label:"时令",width:"280"},{default:o(t=>[D("div",be,[t.row.time_mode==0?(s(),y(I,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[15]||(e[15]=[d("关闭",-1)])]),_:1})):f("",!0),t.row.time_mode==1?(s(),y(I,{key:1,class:"ml-2",type:"warning"},{default:o(()=>[...e[16]||(e[16]=[d("开启",-1)])]),_:1})):f("",!0),t.row.time_mode==1&&t.row.time_range?(s(),i("div",ke,[(s(!0),i(L,null,S(t.row.time_range,_=>(s(),i("div",{key:_.type,style:{"margin-bottom":"2px"}},[_.type==="1"?(s(),i("span",we,"夏:")):(s(),i("span",Ve,"冬:")),(s(!0),i(L,null,S(_.periods,(q,M)=>(s(),i("span",{key:M},[d(T(q.start)+"~"+T(q.end),1),M<_.periods.length-1?(s(),i("span",Ce,",")):f("",!0)]))),128))]))),128))])):f("",!0)])]),_:1}),l(c,{prop:"",label:"操作",width:"180"},{default:o(t=>[l(V,{type:"primary",onClick:_=>K(t.row),size:"small"},{default:o(()=>[...e[17]||(e[17]=[d("修改",-1)])]),_:1},8,["onClick"]),l(V,{type:"danger",onClick:_=>W(t.row),size:"small"},{default:o(()=>[...e[18]||(e[18]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ne,n(v)]]),D("div",De,[l(le,{"current-page":n(b),"onUpdate:currentPage":e[5]||(e[5]=t=>x(b)?b.value=t:b=t),"page-size":n(k),"onUpdate:pageSize":e[6]||(e[6]=t=>x(k)?k.value=t:k=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(N),onSizeChange:$,onCurrentChange:j},null,8,["current-page","page-size","total"])]),n(z)?(s(),y(ce,{key:0,departmentId:n(p).department_id,resourceInfo:n(C),onCloseAddResources:O},null,8,["departmentId","resourceInfo"])):f("",!0),l(oe,{modelValue:n(m),"onUpdate:modelValue":e[10]||(e[10]=t=>x(m)?m.value=t:m=t),title:"关联服务组",width:"40%"},{footer:o(()=>[D("span",Re,[l(V,{onClick:e[8]||(e[8]=t=>x(m)?m.value=!1:m=!1)},{default:o(()=>[...e[19]||(e[19]=[d("取消",-1)])]),_:1}),l(V,{type:"primary",onClick:e[9]||(e[9]=t=>Z())},{default:o(()=>[...e[20]||(e[20]=[d(" 确定 ",-1)])]),_:1})])]),default:o(()=>[D("div",xe,[l(ae,{modelValue:n(w),"onUpdate:modelValue":e[7]||(e[7]=t=>x(w)?w.value=t:w=t),titles:["可选服务组","已关联服务组"],props:{key:"id",label:"device_name"},data:n(A)},null,8,["modelValue","data"])])]),_:1},8,["modelValue"])])}}};export{Ee as default}; +import{u as se,a as re,o as ue,r,c as de,d as s,e as i,k as D,f as l,w as o,h as ie,i as n,j as y,l as x,x as f,g as u,at as pe,E as R,X as me,I as _e,F as L,t as S,q as d,v as T,N as fe,au as ve,aH as ge}from"./index-e65958bd.js";import{_ as ce}from"./DepartmentResourcesSave-bf22abac.js";const ye={class:"head"},be={style:{display:"flex","align-items":"center"}},ke={key:2,style:{"font-size":"12px","margin-left":"8px"}},we={key:0,style:{color:"#E6A23C"}},Ve={key:1,style:{color:"#409EFF"}},Ce={key:0},De={class:"page"},xe={class:"chuansuokuang"},Re={class:"dialog-footer"},Ee={__name:"DepartmentResources",setup(ze){const U=se();re();let v=u(!1),p=u({department_id:null,status:null,name:""}),C=u({id:null,department_id:null,department_resources_name:"",department_resources_addr:""}),G=u([]),b=u(1),k=u(15),N=0;const g=()=>{v.value=!0,pe({searchInfo:p.value,page:b.value,pageSize:k.value}).then(a=>{v.value=!1,a.status?(G.value=a.data.list,N=a.data.count):R.error(a.msg)})},$=a=>{k.value=a,g()},j=a=>{b.value=a,g()};let H=u(!1),F=u([]);const X=()=>{v.value=!0,me({}).then(a=>{v.value=!1,a.status?F.value=a.data.list:R.error(a.msg)})};let z=u(!1);const J=()=>{z.value=!0,C.value={}},K=a=>{z.value=!0,C.value=a},O=()=>{z.value=!1,g()},Q=()=>{window.location.href="./#/yewu/departmentResources"},W=a=>{fe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{v.value=!0,ve({id:a.id}).then(e=>{v.value=!1,e.status?(H.value=!1,g()):R.error(e.msg)})})};let w=u([]),m=u(!1),A=u([]);const Y=()=>{_e({}).then(a=>{a.status?A.value=a.data:R.error(a.msg)})},Z=()=>{ge({department_id:C.value.department_id,resource_id:C.value.id,device_ids:w.value}).then(a=>{a.status?(m.value=!1,w.value=[],g()):R.error(a.msg)})};return ue(()=>{U.query.departmentId&&(p.value.department_id=Number(U.query.departmentId)),Y(),X(),g()}),(a,e)=>{const B=r("el-option"),P=r("el-select"),E=r("el-form-item"),h=r("el-input"),V=r("el-button"),ee=r("el-row"),c=r("el-table-column"),I=r("el-tag"),te=r("el-table"),le=r("el-pagination"),ae=r("el-transfer"),oe=r("el-dialog"),ne=de("loading");return s(),i("div",null,[D("div",ye,[l(ee,null,{default:o(()=>[l(E,null,{default:o(()=>[l(P,{filterable:!0,clearable:"",modelValue:n(p).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(p).department_id=t),placeholder:"选择科室",onClear:e[1]||(e[1]=t=>Q())},{default:o(()=>[(s(!0),i(L,null,S(n(F),(t,_)=>(s(),y(B,{key:_,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(E,null,{default:o(()=>[l(P,{filterable:!0,clearable:"",modelValue:n(p).status,"onUpdate:modelValue":e[2]||(e[2]=t=>n(p).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:o(()=>[l(B,{label:"正常",value:1}),l(B,{label:"不可用",value:0})]),_:1},8,["modelValue"])]),_:1}),l(E,null,{default:o(()=>[l(h,{modelValue:n(p).name,"onUpdate:modelValue":e[3]||(e[3]=t=>n(p).name=t),placeholder:"请输入排班名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(V,{style:{"margin-left":"10px"},onClick:g},{default:o(()=>[...e[11]||(e[11]=[d("查询",-1)])]),_:1}),l(V,{type:"primary",style:{"margin-left":"10px"},onClick:e[4]||(e[4]=t=>J())},{default:o(()=>[...e[12]||(e[12]=[d("添加排班",-1)])]),_:1})]),_:1})]),ie((s(),y(te,{data:n(G),style:{width:"100%"},"row-key":"id"},{default:o(()=>[l(c,{prop:"id",label:"Id",width:"100"}),l(c,{prop:"department_name",label:"所属科室"}),f("",!0),l(c,{prop:"department_resources_name",label:"排班名称"}),l(c,{prop:"department_resources_addr",label:"资源位置"}),l(c,{prop:"department_resources_status",label:"状态",width:"100"},{default:o(t=>[t.row.department_resources_status==0?(s(),y(I,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[13]||(e[13]=[d("禁用",-1)])]),_:1})):f("",!0),t.row.department_resources_status==1?(s(),y(I,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[14]||(e[14]=[d("正常",-1)])]),_:1})):f("",!0)]),_:1}),l(c,{prop:"time_mode",label:"时令",width:"280"},{default:o(t=>[D("div",be,[t.row.time_mode==0?(s(),y(I,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[15]||(e[15]=[d("关闭",-1)])]),_:1})):f("",!0),t.row.time_mode==1?(s(),y(I,{key:1,class:"ml-2",type:"warning"},{default:o(()=>[...e[16]||(e[16]=[d("开启",-1)])]),_:1})):f("",!0),t.row.time_mode==1&&t.row.time_range?(s(),i("div",ke,[(s(!0),i(L,null,S(t.row.time_range,_=>(s(),i("div",{key:_.type,style:{"margin-bottom":"2px"}},[_.type==="1"?(s(),i("span",we,"夏:")):(s(),i("span",Ve,"冬:")),(s(!0),i(L,null,S(_.periods,(q,M)=>(s(),i("span",{key:M},[d(T(q.start)+"~"+T(q.end),1),M<_.periods.length-1?(s(),i("span",Ce,",")):f("",!0)]))),128))]))),128))])):f("",!0)])]),_:1}),l(c,{prop:"",label:"操作",width:"180"},{default:o(t=>[l(V,{type:"primary",onClick:_=>K(t.row),size:"small"},{default:o(()=>[...e[17]||(e[17]=[d("修改",-1)])]),_:1},8,["onClick"]),l(V,{type:"danger",onClick:_=>W(t.row),size:"small"},{default:o(()=>[...e[18]||(e[18]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ne,n(v)]]),D("div",De,[l(le,{"current-page":n(b),"onUpdate:currentPage":e[5]||(e[5]=t=>x(b)?b.value=t:b=t),"page-size":n(k),"onUpdate:pageSize":e[6]||(e[6]=t=>x(k)?k.value=t:k=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(N),onSizeChange:$,onCurrentChange:j},null,8,["current-page","page-size","total"])]),n(z)?(s(),y(ce,{key:0,departmentId:n(p).department_id,resourceInfo:n(C),onCloseAddResources:O},null,8,["departmentId","resourceInfo"])):f("",!0),l(oe,{modelValue:n(m),"onUpdate:modelValue":e[10]||(e[10]=t=>x(m)?m.value=t:m=t),title:"关联服务组",width:"40%"},{footer:o(()=>[D("span",Re,[l(V,{onClick:e[8]||(e[8]=t=>x(m)?m.value=!1:m=!1)},{default:o(()=>[...e[19]||(e[19]=[d("取消",-1)])]),_:1}),l(V,{type:"primary",onClick:e[9]||(e[9]=t=>Z())},{default:o(()=>[...e[20]||(e[20]=[d(" 确定 ",-1)])]),_:1})])]),default:o(()=>[D("div",xe,[l(ae,{modelValue:n(w),"onUpdate:modelValue":e[7]||(e[7]=t=>x(w)?w.value=t:w=t),titles:["可选服务组","已关联服务组"],props:{key:"id",label:"device_name"},data:n(A)},null,8,["modelValue","data"])])]),_:1},8,["modelValue"])])}}};export{Ee as default}; diff --git a/Laravel/public/admin/assets/DepartmentResourcesSave-7a0f7e89.js b/Laravel/public/dist/assets/DepartmentResourcesSave-bf22abac.js similarity index 99% rename from Laravel/public/admin/assets/DepartmentResourcesSave-7a0f7e89.js rename to Laravel/public/dist/assets/DepartmentResourcesSave-bf22abac.js index 82d7266..d11fbc5 100644 --- a/Laravel/public/admin/assets/DepartmentResourcesSave-7a0f7e89.js +++ b/Laravel/public/dist/assets/DepartmentResourcesSave-bf22abac.js @@ -1 +1 @@ -import{o as ee,r as i,c as te,d as u,e as m,f as o,w as d,k as I,q as E,h as le,i as n,j as y,F as k,t as C,x as M,v as F,aI as ae,l as ne,g as p,X as oe,E as D,aJ as re,aK as de}from"./index-af171713.js";const ue={key:0,style:{"margin-top":"16px"}},se={style:{"font-weight":"bold","margin-bottom":"8px"}},ie={class:"dialog-footer"},pe={__name:"DepartmentResourcesSave",props:{departmentId:{},resourceInfo:{type:Object}},emits:["closeAddResources"],setup(L,{emit:G}){let f=p(!1),g=p(!0),N=p([]),b=p(null),h=p(!0),l=p({id:null,department_id:null,department_resources_name:"",department_resources_status:1,department_resources_addr:"",time_mode:0,time_range:[],appointment_enabled:1,execute_department_id:null});const _=p([{type:"1",type_name:"夏季排班",periods:[["",""]]},{type:"2",type_name:"冬季排班",periods:[["",""]]}]),O=a=>{const e=_.value.find(s=>s.type===a);e&&e.periods.push(["",""])},T=(a,e)=>{const s=_.value.find(v=>v.type===a);s&&s.periods.length>1&&s.periods.splice(e,1)},$=a=>a.map(e=>({start:e[0],end:e[1]})),P=a=>a.map(e=>[e.start,e.end]),q=a=>{a==1&&_.value.length===0&&(_.value=[{type:"1",type_name:"夏季排班",periods:[["",""]]},{type:"2",type_name:"冬季排班",periods:[["",""]]}])},r=L;let S=p([]);const J=()=>{f.value=!0,oe({}).then(a=>{f.value=!1,a.status?S.value=a.data.list:D.error(a.msg)})},K=()=>{if(!(j(l.value.department_id)&&j(l.value.department_resources_name)))return D.error("请填写完整内容"),!1;l.value.time_range=_.value.map(a=>({type:a.type,type_name:a.type_name,periods:$(a.periods)})),l.value.execute_department_id===null&&(l.value.execute_department_id=0),f.value=!0,re({info:l.value}).then(a=>{f.value=!1,a.status?(D({message:"保存成功",type:"success"}),w()):D.error(a.msg)})},X=G,w=()=>{X("closeAddResources")},B=a=>{a&&de({department_id:a}).then(e=>{if(e.status){if(N.value=e.data.list,!e.data.list||e.data.list.length===0){h.value=!1,l.value.execute_department_id=null;return}h.value=!0,b.value!==null&&e.data.list.some(v=>v.id===b.value)?l.value.execute_department_id=b.value:l.value.execute_department_id=null}})},H=a=>{B(a)},j=a=>a!==null&&a!=="";return ee(()=>{console.log(r.departmentId),console.log(r.resourceInfo);let a=r.departmentId;r.resourceInfo!=null&&r.resourceInfo.id!=null&&(a=r.resourceInfo.department_id,l.value.id=r.resourceInfo.id,l.value.department_resources_name=r.resourceInfo.department_resources_name,l.value.department_resources_addr=r.resourceInfo.department_resources_addr,l.value.department_resources_status=r.resourceInfo.department_resources_status,l.value.appointment_enabled=r.resourceInfo.appointment_enabled??1,l.value.execute_department_id=r.resourceInfo.execute_department_id,b.value=r.resourceInfo.execute_department_id,l.value.time_mode=r.resourceInfo.time_mode||0,r.resourceInfo.time_range&&r.resourceInfo.time_range.length>0&&(_.value=r.resourceInfo.time_range.map(e=>({type:e.type,type_name:e.type_name,periods:P(e.periods)})))),l.value.department_id=a,B(a),J()}),(a,e)=>{const s=i("el-option"),v=i("el-select"),c=i("el-form-item"),z=i("el-input"),U=i("el-switch"),Q=i("el-date-picker"),V=i("el-button"),W=i("el-form"),Y=i("el-dialog"),Z=te("loading");return u(),m("div",null,[o(Y,{modelValue:n(g),"onUpdate:modelValue":e[8]||(e[8]=t=>ne(g)?g.value=t:g=t),title:"排班信息",width:"calc(40% + 80px)",onClose:e[9]||(e[9]=t=>w())},{footer:d(()=>[I("span",ie,[o(V,{onClick:e[7]||(e[7]=t=>w())},{default:d(()=>[...e[11]||(e[11]=[E("取消",-1)])]),_:1}),o(V,{type:"primary",onClick:K},{default:d(()=>[...e[12]||(e[12]=[E(" 确定 ",-1)])]),_:1})])]),default:d(()=>[le((u(),y(W,{model:n(l),"label-width":"110px",style:{"padding-right":"40px"}},{default:d(()=>[L.departmentId?M("",!0):(u(),y(c,{key:0,label:"所属科室:"},{default:d(()=>[o(v,{filterable:!0,clearable:"",modelValue:n(l).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(l).department_id=t),placeholder:"选择科室",onChange:H},{default:d(()=>[(u(!0),m(k,null,C(n(S),(t,R)=>(u(),y(s,{key:R,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),o(c,{label:"排班名称:"},{default:d(()=>[o(z,{modelValue:n(l).department_resources_name,"onUpdate:modelValue":e[1]||(e[1]=t=>n(l).department_resources_name=t)},null,8,["modelValue"])]),_:1}),o(c,{label:"资源位置:"},{default:d(()=>[o(z,{modelValue:n(l).department_resources_addr,"onUpdate:modelValue":e[2]||(e[2]=t=>n(l).department_resources_addr=t)},null,8,["modelValue"])]),_:1}),o(c,{label:"状态:"},{default:d(()=>[o(U,{modelValue:n(l).department_resources_status,"onUpdate:modelValue":e[3]||(e[3]=t=>n(l).department_resources_status=t),"active-text":"可用","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(c,{label:"参与预约:"},{default:d(()=>[o(U,{modelValue:n(l).appointment_enabled,"onUpdate:modelValue":e[4]||(e[4]=t=>n(l).appointment_enabled=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(c,{label:"时令:"},{default:d(()=>[I("div",null,[o(U,{modelValue:n(l).time_mode,"onUpdate:modelValue":e[5]||(e[5]=t=>n(l).time_mode=t),size:"large","active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0,onChange:q},null,8,["modelValue"])]),n(l).time_mode==1?(u(),m("div",ue,[(u(!0),m(k,null,C(_.value,t=>(u(),m("div",{key:t.type,style:{"margin-bottom":"16px"}},[I("div",se,F(t.type_name),1),(u(!0),m(k,null,C(t.periods,(R,x)=>(u(),m("div",{key:x,style:{display:"flex","align-items":"center","margin-bottom":"8px"}},[o(Q,{modelValue:t.periods[x],"onUpdate:modelValue":A=>t.periods[x]=A,type:"daterange",format:"MM-DD","value-format":"MM-DD","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"]),o(V,{type:"danger",icon:n(ae),onClick:A=>T(t.type,x),disabled:t.periods.length<=1,size:"small",plain:"",circle:"",style:{"margin-left":"8px"}},null,8,["icon","onClick","disabled"])]))),128)),o(V,{type:"primary",onClick:R=>O(t.type),size:"small"},{default:d(()=>[E(" 新增"+F(t.type_name)+"周期 ",1)]),_:2},1032,["onClick"])]))),128))])):M("",!0),e[10]||(e[10]=I("div",{style:{"margin-left":"18px",color:"#ff8b7c"}}," 注意:调整时令,会影响该资源下全部模板 ",-1))]),_:1}),n(h)?(u(),y(c,{key:1,label:"执行诊室:"},{default:d(()=>[o(v,{modelValue:n(l).execute_department_id,"onUpdate:modelValue":e[6]||(e[6]=t=>n(l).execute_department_id=t),clearable:"",filterable:"",placeholder:"请选择执行诊室",style:{width:"100%"}},{default:d(()=>[(u(!0),m(k,null,C(n(N),t=>(u(),y(s,{key:t.id,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):M("",!0)]),_:1},8,["model"])),[[Z,n(f)]])]),_:1},8,["modelValue"])])}}};export{pe as _}; +import{o as ee,r as i,c as te,d as u,e as m,f as o,w as d,k as I,q as E,h as le,i as n,j as y,F as k,t as C,x as M,v as F,aI as ae,l as ne,g as p,X as oe,E as D,aJ as re,aK as de}from"./index-e65958bd.js";const ue={key:0,style:{"margin-top":"16px"}},se={style:{"font-weight":"bold","margin-bottom":"8px"}},ie={class:"dialog-footer"},pe={__name:"DepartmentResourcesSave",props:{departmentId:{},resourceInfo:{type:Object}},emits:["closeAddResources"],setup(L,{emit:G}){let f=p(!1),g=p(!0),N=p([]),b=p(null),h=p(!0),l=p({id:null,department_id:null,department_resources_name:"",department_resources_status:1,department_resources_addr:"",time_mode:0,time_range:[],appointment_enabled:1,execute_department_id:null});const _=p([{type:"1",type_name:"夏季排班",periods:[["",""]]},{type:"2",type_name:"冬季排班",periods:[["",""]]}]),O=a=>{const e=_.value.find(s=>s.type===a);e&&e.periods.push(["",""])},T=(a,e)=>{const s=_.value.find(v=>v.type===a);s&&s.periods.length>1&&s.periods.splice(e,1)},$=a=>a.map(e=>({start:e[0],end:e[1]})),P=a=>a.map(e=>[e.start,e.end]),q=a=>{a==1&&_.value.length===0&&(_.value=[{type:"1",type_name:"夏季排班",periods:[["",""]]},{type:"2",type_name:"冬季排班",periods:[["",""]]}])},r=L;let S=p([]);const J=()=>{f.value=!0,oe({}).then(a=>{f.value=!1,a.status?S.value=a.data.list:D.error(a.msg)})},K=()=>{if(!(j(l.value.department_id)&&j(l.value.department_resources_name)))return D.error("请填写完整内容"),!1;l.value.time_range=_.value.map(a=>({type:a.type,type_name:a.type_name,periods:$(a.periods)})),l.value.execute_department_id===null&&(l.value.execute_department_id=0),f.value=!0,re({info:l.value}).then(a=>{f.value=!1,a.status?(D({message:"保存成功",type:"success"}),w()):D.error(a.msg)})},X=G,w=()=>{X("closeAddResources")},B=a=>{a&&de({department_id:a}).then(e=>{if(e.status){if(N.value=e.data.list,!e.data.list||e.data.list.length===0){h.value=!1,l.value.execute_department_id=null;return}h.value=!0,b.value!==null&&e.data.list.some(v=>v.id===b.value)?l.value.execute_department_id=b.value:l.value.execute_department_id=null}})},H=a=>{B(a)},j=a=>a!==null&&a!=="";return ee(()=>{console.log(r.departmentId),console.log(r.resourceInfo);let a=r.departmentId;r.resourceInfo!=null&&r.resourceInfo.id!=null&&(a=r.resourceInfo.department_id,l.value.id=r.resourceInfo.id,l.value.department_resources_name=r.resourceInfo.department_resources_name,l.value.department_resources_addr=r.resourceInfo.department_resources_addr,l.value.department_resources_status=r.resourceInfo.department_resources_status,l.value.appointment_enabled=r.resourceInfo.appointment_enabled??1,l.value.execute_department_id=r.resourceInfo.execute_department_id,b.value=r.resourceInfo.execute_department_id,l.value.time_mode=r.resourceInfo.time_mode||0,r.resourceInfo.time_range&&r.resourceInfo.time_range.length>0&&(_.value=r.resourceInfo.time_range.map(e=>({type:e.type,type_name:e.type_name,periods:P(e.periods)})))),l.value.department_id=a,B(a),J()}),(a,e)=>{const s=i("el-option"),v=i("el-select"),c=i("el-form-item"),z=i("el-input"),U=i("el-switch"),Q=i("el-date-picker"),V=i("el-button"),W=i("el-form"),Y=i("el-dialog"),Z=te("loading");return u(),m("div",null,[o(Y,{modelValue:n(g),"onUpdate:modelValue":e[8]||(e[8]=t=>ne(g)?g.value=t:g=t),title:"排班信息",width:"calc(40% + 80px)",onClose:e[9]||(e[9]=t=>w())},{footer:d(()=>[I("span",ie,[o(V,{onClick:e[7]||(e[7]=t=>w())},{default:d(()=>[...e[11]||(e[11]=[E("取消",-1)])]),_:1}),o(V,{type:"primary",onClick:K},{default:d(()=>[...e[12]||(e[12]=[E(" 确定 ",-1)])]),_:1})])]),default:d(()=>[le((u(),y(W,{model:n(l),"label-width":"110px",style:{"padding-right":"40px"}},{default:d(()=>[L.departmentId?M("",!0):(u(),y(c,{key:0,label:"所属科室:"},{default:d(()=>[o(v,{filterable:!0,clearable:"",modelValue:n(l).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(l).department_id=t),placeholder:"选择科室",onChange:H},{default:d(()=>[(u(!0),m(k,null,C(n(S),(t,R)=>(u(),y(s,{key:R,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),o(c,{label:"排班名称:"},{default:d(()=>[o(z,{modelValue:n(l).department_resources_name,"onUpdate:modelValue":e[1]||(e[1]=t=>n(l).department_resources_name=t)},null,8,["modelValue"])]),_:1}),o(c,{label:"资源位置:"},{default:d(()=>[o(z,{modelValue:n(l).department_resources_addr,"onUpdate:modelValue":e[2]||(e[2]=t=>n(l).department_resources_addr=t)},null,8,["modelValue"])]),_:1}),o(c,{label:"状态:"},{default:d(()=>[o(U,{modelValue:n(l).department_resources_status,"onUpdate:modelValue":e[3]||(e[3]=t=>n(l).department_resources_status=t),"active-text":"可用","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(c,{label:"参与预约:"},{default:d(()=>[o(U,{modelValue:n(l).appointment_enabled,"onUpdate:modelValue":e[4]||(e[4]=t=>n(l).appointment_enabled=t),"active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(c,{label:"时令:"},{default:d(()=>[I("div",null,[o(U,{modelValue:n(l).time_mode,"onUpdate:modelValue":e[5]||(e[5]=t=>n(l).time_mode=t),size:"large","active-text":"开启","inactive-text":"关闭","active-value":1,"inactive-value":0,onChange:q},null,8,["modelValue"])]),n(l).time_mode==1?(u(),m("div",ue,[(u(!0),m(k,null,C(_.value,t=>(u(),m("div",{key:t.type,style:{"margin-bottom":"16px"}},[I("div",se,F(t.type_name),1),(u(!0),m(k,null,C(t.periods,(R,x)=>(u(),m("div",{key:x,style:{display:"flex","align-items":"center","margin-bottom":"8px"}},[o(Q,{modelValue:t.periods[x],"onUpdate:modelValue":A=>t.periods[x]=A,type:"daterange",format:"MM-DD","value-format":"MM-DD","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"]),o(V,{type:"danger",icon:n(ae),onClick:A=>T(t.type,x),disabled:t.periods.length<=1,size:"small",plain:"",circle:"",style:{"margin-left":"8px"}},null,8,["icon","onClick","disabled"])]))),128)),o(V,{type:"primary",onClick:R=>O(t.type),size:"small"},{default:d(()=>[E(" 新增"+F(t.type_name)+"周期 ",1)]),_:2},1032,["onClick"])]))),128))])):M("",!0),e[10]||(e[10]=I("div",{style:{"margin-left":"18px",color:"#ff8b7c"}}," 注意:调整时令,会影响该资源下全部模板 ",-1))]),_:1}),n(h)?(u(),y(c,{key:1,label:"执行诊室:"},{default:d(()=>[o(v,{modelValue:n(l).execute_department_id,"onUpdate:modelValue":e[6]||(e[6]=t=>n(l).execute_department_id=t),clearable:"",filterable:"",placeholder:"请选择执行诊室",style:{width:"100%"}},{default:d(()=>[(u(!0),m(k,null,C(n(N),t=>(u(),y(s,{key:t.id,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):M("",!0)]),_:1},8,["model"])),[[Z,n(f)]])]),_:1},8,["modelValue"])])}}};export{pe as _}; diff --git a/Laravel/public/admin/assets/DeptCheckItemConfig-00452ba8.js b/Laravel/public/dist/assets/DeptCheckItemConfig-61bf6125.js similarity index 99% rename from Laravel/public/admin/assets/DeptCheckItemConfig-00452ba8.js rename to Laravel/public/dist/assets/DeptCheckItemConfig-61bf6125.js index 9de4c5f..783651f 100644 --- a/Laravel/public/admin/assets/DeptCheckItemConfig-00452ba8.js +++ b/Laravel/public/dist/assets/DeptCheckItemConfig-61bf6125.js @@ -1 +1 @@ -import{_ as sl,Z as ol,o as il,r as k,c as nl,h as se,i as s,d,e as y,k as i,f as a,w as o,l as C,j as h,an as ul,E as c,g as u,ao as dl,ap as ve,a9 as rl,q as m,F as I,t as D,x as G,v as L,aa as ml,aq as pl,ar as vl,a8 as fl,ae as gl,af as _l,N as yl,ag as cl,aj as bl,ak as kl,al as Cl,as as xl}from"./index-af171713.js";const Vl={class:"head"},hl={style:{display:"inline-flex","align-items":"center"}},wl={class:"page"},Il={class:"chuansuokuang"},Dl={key:0,style:{padding:"0 20px 12px","margin-top":"10px"}},Ul={class:"dialog-footer"},Ll={class:"row"},Sl={class:"row"},Rl={class:"row"},zl={class:"row"},Hl={class:"row"},Bl={class:"row"},El={class:"row"},Tl={class:"row"},$l={class:"dialog-footer"},Nl={style:{"font-weight":"900","font-size":"16px"}},Gl={style:{display:"flex","margin-top":"20px"}},Fl={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},Al={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},Ml={style:{display:"flex","margin-bottom":"8px"}},Pl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Ol={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Yl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},jl={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},ql={key:0,id:"huchi_table"},Zl={key:0,style:{display:"flex"}},Jl={key:1,style:{display:"flex"}},Kl={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},Ql={style:{"margin-right":"12px"}},Wl={style:{"margin-left":"12px",width:"250px"}},Xl={style:{"margin-bottom":"12px"}},et={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},lt={style:{"font-weight":"700","margin-right":"12px"}},tt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},at={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},st={style:{display:"flex","align-items":"center"}},ot={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},it={__name:"DeptCheckItemConfig",setup(nt){let F=u(!1),x=u({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:""}),g=u({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1}),fe=u([]),ge=u([]),_e=u([]),ye=u([]);const P=(t="")=>{let e={};e={...x.value},t=="Dialog"&&(e.bigClass=Z.value),F.value=!0,ul({searchInfo:e}).then(n=>{F.value=!1,n.status?(t=="Dialog"?(_e.value=n.data.bigClass,ye.value=n.data.smallClass):(fe.value=n.data.bigClass,ge.value=n.data.smallClass),A()):c.error(n.msg)})};let ce=u([]),O=u(1),Y=u(15),be=0;const A=()=>{oe.value&&oe.value.clearSelection(),w.value=[],F.value=!0,dl({searchInfo:x.value,page:O.value,pageSize:Y.value}).then(t=>{if(F.value=!1,t.status){let e=t.data.list;ce.value=e,be=t.data.count}else c.error(t.msg)})},Ue=({prop:t,order:e})=>{x.value.orderField=t||"",x.value.orderDirection=e||"",A()},Le=t=>{Y.value=t,A()},Se=t=>{O.value=t,A()};let U=u(!1),B=u(!1),K=u(!1),w=u([]),oe=u(null),E=u(!1),ke=u(""),Ce=u(""),j=u("");const Re=ol(()=>K.value?"批量关联排班":"关联排班"),ze=t=>{w.value=t},xe=t=>{if(w.value.length===0){c.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};w.value.forEach(p=>{const b=(p[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,f="";Object.entries(e).forEach(([p,b])=>{b>n&&(n=b,f=p)}),j.value=f,E.value=!0},He=()=>{const t=w.value.map(e=>e.id);F.value=!0,pl({item_ids:t,field:ke.value,value:j.value}).then(e=>{F.value=!1,e.status?(E.value=!1,c.success(e.msg),A()):c.error(e.msg)})},Be=t=>{K.value=!1,S.value=[],U.value=!0,g.value.id=t.id,ve({}).then(e=>{e.status&&(Q.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){Q.value.find(function(f){return f.id==n.id})&&S.value.push(n.id)})})},Ee=()=>{if(w.value.length===0){c.error("请先勾选要批量关联的检查项目");return}K.value=!0,ve({}).then(t=>{t.status&&(Q.value=t.data);let e=[];if(w.value.length>0){e=w.value[0].devicesInfo.map(n=>n.id);for(let n=1;np.id);e=e.filter(p=>f.includes(p))}}S.value=e,U.value=!0})};let S=u([]),ie=u(0),ne=u(!1);const Te=async()=>{const t=e=>xl({item_id:e,device_ids:S.value});if(K.value){ne.value=!0,ie.value=0;const e=w.value.length;let n=0,f=0;for(let p=0;p{ne.value=!1},1500),f===0?c.success(`批量关联成功,共${e}项`):c.warning(`完成${n}项,失败${f}项`),U.value=!1,S.value=[],P()}else t(g.value.id).then(e=>{e.status?(U.value=!1,S.value=[],P()):c.error(e.msg)})};let Q=u([]);const $e=()=>{ve({}).then(t=>{t.status?Q.value=t.data:c.error(t.msg)})},Ne=t=>{B.value=!0,g.value.id=t.id,g.value.item_name=t.item_name,g.value.limosis=t.limosis,g.value.reservation_method=t.reservation_method,g.value.check_time=t.check_time,g.value.use_seats=t.use_seats||1,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),g.value.check_begin_time=t.check_begin_time,g.value.check_notice=t.check_notice,g.value.warm_tips=t.warm_tips};let ue=u("");const Ge=()=>{rl({}).then(t=>{t.status?ue.value=t.data:c.error(t.msg)})},Fe=()=>{vl({Info:g.value}).then(t=>{t.status?(B.value=!1,A()):c.error(t.msg)})};let W=u(!1),q=u(""),X=u(null),Z=u(null),$=u(null),le=u(!1),te=u([]),R=u(!1),M=u([]),z=u({code:"",name:""});const Ae=t=>{W.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,$.value=[],q.value="",P("Dialog"),he()},Ve=()=>{R.value=!0,te.value=[],fl({searchInfo:{name:q.value,bigClass:Z.value,smallClass:X.value},page:1,pageSize:100}).then(t=>{R.value=!1,t.status?t.data.list.length>0?$.value=t.data.list:c.error("未找到相关项目"):c.error(t.msg)})},Me=()=>{let t=[],e=!0;if(V.value.forEach(function(n,f){M.value.forEach(function(p,b){n.code2==p&&(c.error(n.code2_item_name+" 已经存在于右侧,不能重复添加"),e=!1)})}),!e)return!1;$.value.forEach(n=>{M.value.includes(n.item_code)?V.value.push({code2:n.item_code,code2_item_name:n.item_name}):t.push(n)}),$.value=t,M.value=[]},Pe=t=>{V.value=V.value.filter(e=>e.code2!=t.code2),$.value.find(e=>e.item_code==t.code2)||$.value.push({item_code:t.code2,item_name:t.code2_item_name})},de=(t,e,n,f=0)=>{R.value=!0,gl({id:f,code1:t,code2:e,time:n}).then(p=>{R.value=!1,p.status?(c({message:p.msg,type:"success"}),V.value.forEach(function(b,_){b.code2==p.data.code2&&(V.value[_].id=p.data.id)})):c.error(p.msg)})};let V=u([]);const he=()=>{R.value=!0,_l({code:z.value.code}).then(t=>{R.value=!1,t.status?V.value=t.data:c.error(t.msg)})},Oe=t=>{yl.confirm("确定解除此项互斥关系吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{R.value=!0,cl({id:t}).then(e=>{R.value=!1,e.status?(c({message:e.msg,type:"success"}),he()):c.error(e.msg)})})};let T=u(!1),ee=u(!1),re=u({id:null,item_name:""}),N=u([]),we=u([]);const Ye=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],je=t=>{re.value={id:t.id,item_name:t.item_name},T.value=!0,ee.value=!0,bl({item_id:t.id}).then(e=>{e.status&&(we.value=e.data)}),kl({item_id:t.id}).then(e=>{ee.value=!1,e.status?N.value=(e.data||[]).map(n=>({days:n.rule_value.days||[],start_time:n.rule_value.start_time||"",end_time:n.rule_value.end_time||"",resources_id:n.rule_value.resources_id||""})):c.error(e.msg)})},qe=()=>{N.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Ze=t=>{N.value.splice(t,1)},Je=()=>{for(let e=0;e({rule_type:"TIME_RESTRICTION",rule_value:{days:e.days,start_time:e.start_time,end_time:e.end_time,resources_id:e.resources_id||""}}));ee.value=!0,Cl({item_id:re.value.id,rules:t}).then(e=>{ee.value=!1,e.status?(c.success("保存成功"),T.value=!1):c.error(e.msg)})};return il(()=>{P(),$e(),Ge()}),(t,e)=>{const n=k("el-tag"),f=k("el-option"),p=k("el-select"),b=k("el-input"),_=k("el-button"),Ke=k("el-row"),H=k("el-table-column"),Qe=k("el-table"),We=k("el-pagination"),Xe=k("el-transfer"),el=k("el-progress"),J=k("el-dialog"),me=k("el-checkbox"),pe=k("el-checkbox-group"),ll=k("el-input-number"),tl=k("DArrowLeft"),Ie=k("el-icon"),al=k("DArrowRight"),De=k("el-time-select"),ae=nl("loading");return se((d(),y("div",null,[i("div",Vl,[a(Ke,null,{default:o(()=>[i("div",hl,[a(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[41]||(e[41]=[m("医嘱类别",-1)])]),_:1}),a(p,{clearable:"",filterable:!0,modelValue:s(x).bigClass,"onUpdate:modelValue":e[0]||(e[0]=l=>s(x).bigClass=l),onChange:e[1]||(e[1]=l=>P()),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(s(fe),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{filterable:!0,clearable:"",modelValue:s(x).smallClass,"onUpdate:modelValue":e[2]||(e[2]=l=>s(x).smallClass=l),placeholder:"所有医嘱小类",style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(s(ge),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{clearable:"",modelValue:s(x).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>s(x).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[a(f,{label:"全部",value:""}),a(f,{label:"已关联排班",value:1}),a(f,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),a(p,{clearable:"",modelValue:s(x).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>s(x).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[a(f,{label:"全部",value:""}),a(f,{label:"有执行科室",value:"1"}),a(f,{label:"无执行科室",value:"0"})]),_:1},8,["modelValue"]),a(b,{modelValue:s(x).name,"onUpdate:modelValue":e[5]||(e[5]=l=>s(x).name=l),placeholder:"请输入项目编号/名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),a(_,{type:"primary",onClick:e[6]||(e[6]=l=>A()),style:{"margin-left":"10px"}},{default:o(()=>[...e[42]||(e[42]=[m("查询",-1)])]),_:1}),a(_,{type:"primary",onClick:e[7]||(e[7]=l=>Ee()),style:{"margin-left":"10px"}},{default:o(()=>[...e[43]||(e[43]=[m("批量关联排班",-1)])]),_:1}),a(_,{type:"primary",onClick:e[8]||(e[8]=l=>xe("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[44]||(e[44]=[m("批量设置检查须知",-1)])]),_:1}),a(_,{type:"primary",onClick:e[9]||(e[9]=l=>xe("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[45]||(e[45]=[m("批量设置温馨提示",-1)])]),_:1})]),_:1})]),a(Qe,{ref_key:"checkItemTableRef",ref:oe,data:s(ce),style:{width:"100%","margin-top":"10px"},"row-key":"id",onSortChange:Ue,onSelectionChange:ze},{default:o(()=>[a(H,{type:"selection",width:"50"}),a(H,{prop:"item_code",label:"检查项目编号",width:"160",sortable:"custom"}),a(H,{prop:"item_name",label:"检查项目名称",sortable:"custom"}),a(H,{prop:"reservation_method_name",label:"预约方式"}),a(H,{prop:"limosis",label:"要求空腹",width:"100"},{default:o(l=>[l.row.limosis==1?(d(),h(n,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[46]||(e[46]=[m("是",-1)])]),_:1})):G("",!0),l.row.limosis==0?(d(),h(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[47]||(e[47]=[m("否",-1)])]),_:1})):G("",!0)]),_:1}),G("",!0),a(H,{prop:"check_time",label:"检查时间",width:"100"}),a(H,{prop:"check_begin_time",label:"开始预约时间",width:"120"}),a(H,{prop:"devicesInfo",label:"关联排班"},{default:o(l=>[(d(!0),y(I,null,D(l.row.devicesInfo,(r,v)=>(d(),y("span",{key:v},[r.status==1&&r.is_del==0?(d(),h(n,{key:0,class:"ml-2",type:"success"},{default:o(()=>[m(L(r.device_name),1)]),_:2},1024)):G("",!0),r.status==0||r.is_del==1?(d(),h(n,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[m(L(r.device_name),1)]),_:2},1024)):G("",!0)]))),128))]),_:1}),a(H,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[a(_,{size:"small",onClick:r=>Be(l.row)},{default:o(()=>[...e[48]||(e[48]=[m("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),a(H,{prop:"",label:"操作",width:"220"},{default:o(l=>[a(_,{type:"primary",onClick:r=>Ne(l.row),size:"small"},{default:o(()=>[...e[49]||(e[49]=[m("修改",-1)])]),_:1},8,["onClick"]),a(_,{type:"warning",onClick:r=>Ae(l.row),size:"small"},{default:o(()=>[...e[50]||(e[50]=[m("互斥",-1)])]),_:1},8,["onClick"]),a(_,{type:"success",onClick:r=>je(l.row),size:"small"},{default:o(()=>[...e[51]||(e[51]=[m("规则",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),i("div",wl,[a(We,{"current-page":s(O),"onUpdate:currentPage":e[10]||(e[10]=l=>C(O)?O.value=l:O=l),"page-size":s(Y),"onUpdate:pageSize":e[11]||(e[11]=l=>C(Y)?Y.value=l:Y=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(be),onSizeChange:Le,onCurrentChange:Se},null,8,["current-page","page-size","total"])]),a(J,{modelValue:s(U),"onUpdate:modelValue":e[15]||(e[15]=l=>C(U)?U.value=l:U=l),title:Re.value,width:"40%"},{footer:o(()=>[i("span",Ul,[a(_,{onClick:e[13]||(e[13]=l=>C(U)?U.value=!1:U=!1)},{default:o(()=>[...e[52]||(e[52]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[14]||(e[14]=l=>Te())},{default:o(()=>[...e[53]||(e[53]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Il,[a(Xe,{modelValue:s(S),"onUpdate:modelValue":e[12]||(e[12]=l=>C(S)?S.value=l:S=l),titles:["可选排班","已关联排班"],props:{key:"id",label:"device_name"},data:s(Q)},null,8,["modelValue","data"])]),s(K)&&s(ne)?(d(),y("div",Dl,[a(el,{percentage:s(ie),"stroke-width":14},null,8,["percentage"])])):G("",!0)]),_:1},8,["modelValue","title"]),a(J,{modelValue:s(B),"onUpdate:modelValue":e[25]||(e[25]=l=>C(B)?B.value=l:B=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",$l,[a(_,{onClick:e[23]||(e[23]=l=>C(B)?B.value=!1:B=!1)},{default:o(()=>[...e[64]||(e[64]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[24]||(e[24]=l=>Fe())},{default:o(()=>[...e[65]||(e[65]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Ll,[e[54]||(e[54]=i("span",{class:"title"},"医嘱名称:",-1)),m(L(s(g).item_name),1)]),i("div",Sl,[e[55]||(e[55]=i("span",{class:"title"},"预约方式:",-1)),s(ue)?(d(),h(pe,{key:0,modelValue:s(g).reservation_method,"onUpdate:modelValue":e[16]||(e[16]=l=>s(g).reservation_method=l)},{default:o(()=>[(d(!0),y(I,null,D(s(ue),(l,r)=>(d(),h(me,{label:l.id,value:l.id,key:r},{default:o(()=>[m(L(l.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):G("",!0)]),i("div",Rl,[e[56]||(e[56]=i("span",{class:"title"},"空腹:",-1)),a(p,{filterable:!0,clearable:"",modelValue:s(g).limosis,"onUpdate:modelValue":e[17]||(e[17]=l=>s(g).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[a(f,{label:"否",value:0}),a(f,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",zl,[e[57]||(e[57]=i("span",{class:"title"},"检查时间:",-1)),a(b,{modelValue:s(g).check_time,"onUpdate:modelValue":e[18]||(e[18]=l=>s(g).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Hl,[e[58]||(e[58]=i("span",{class:"title"},"占用号源:",-1)),a(ll,{modelValue:s(g).use_seats,"onUpdate:modelValue":e[19]||(e[19]=l=>s(g).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[59]||(e[59]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Bl,[e[60]||(e[60]=i("span",{class:"title"},"等待时间:",-1)),a(b,{modelValue:s(g).check_begin_time,"onUpdate:modelValue":e[20]||(e[20]=l=>s(g).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[61]||(e[61]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",El,[e[62]||(e[62]=i("span",{class:"title"},"检查须知:",-1)),a(b,{modelValue:s(g).check_notice,"onUpdate:modelValue":e[21]||(e[21]=l=>s(g).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",Tl,[e[63]||(e[63]=i("span",{class:"title"},"温馨提示:",-1)),a(b,{modelValue:s(g).warm_tips,"onUpdate:modelValue":e[22]||(e[22]=l=>s(g).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),a(J,{modelValue:s(W),"onUpdate:modelValue":e[34]||(e[34]=l=>C(W)?W.value=l:W=l),title:"为 "+s(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[72]||(e[72]=m(" 请输入想要与 ",-1)),i("span",Nl,L(s(z).name),1),e[73]||(e[73]=m(" 互斥的项目名称 ",-1)),i("div",Gl,[i("div",Fl,[se((d(),y("div",Al,[i("div",Ml,[a(p,{clearable:"",filterable:!0,modelValue:s(Z),"onUpdate:modelValue":e[26]||(e[26]=l=>C(Z)?Z.value=l:Z=l),onChange:e[27]||(e[27]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(s(_e),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{filterable:!0,clearable:"",modelValue:s(X),"onUpdate:modelValue":e[28]||(e[28]=l=>C(X)?X.value=l:X=l),placeholder:"所有医嘱小类",onChange:e[29]||(e[29]=l=>Ve()),style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(s(ye),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[a(b,{modelValue:s(q),"onUpdate:modelValue":e[30]||(e[30]=l=>C(q)?q.value=l:q=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),a(_,{type:"success",style:{"margin-left":"8px"},onClick:e[31]||(e[31]=l=>Ve())},{default:o(()=>[...e[66]||(e[66]=[m("查询",-1)])]),_:1})])])),[[ae,s(R)]]),i("div",Pl,[a(pe,{modelValue:s(M),"onUpdate:modelValue":e[32]||(e[32]=l=>C(M)?M.value=l:M=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(d(!0),y(I,null,D(s($),(l,r)=>(d(),h(me,{key:r,label:l.item_code},{default:o(()=>[m(L(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Ol,[a(_,{type:"primary",icon:s(ml),circle:"",onClick:e[33]||(e[33]=l=>Me())},null,8,["icon"])]),i("div",Yl,[i("div",jl,"已经存在互斥项("+L(s(V).length)+")",1),s(V).length>0?(d(),y("table",ql,[(d(!0),y(I,null,D(s(V),(l,r)=>(d(),y("tr",{key:r},[i("td",null,L(l.code2_item_name),1),i("td",null,[a(b,{modelValue:s(V)[r].time,"onUpdate:modelValue":v=>s(V)[r].time=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[67]||(e[67]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(d(),y("span",Zl,[a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>Oe(l.id)},{default:o(()=>[...e[68]||(e[68]=[m("解除",-1)])]),_:1},8,["onClick"]),a(_,{type:"primary",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.code2,s(V)[r].time,l.id)},{default:o(()=>[...e[69]||(e[69]=[m("更新",-1)])]),_:1},8,["onClick"])])):(d(),y("span",Jl,[a(_,{type:"success",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.code2,s(V)[r].time)},{default:o(()=>[...e[70]||(e[70]=[m("保存",-1)])]),_:1},8,["onClick"]),a(_,{style:{"margin-left":"8px"},onClick:v=>Pe(l)},{default:o(()=>[...e[71]||(e[71]=[m("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(d(),y("div",Kl," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(J,{modelValue:s(le),"onUpdate:modelValue":e[35]||(e[35]=l=>C(le)?le.value=l:le=l),title:"为 "+s(z).name+" 设置互斥",width:"50%"},{default:o(()=>[se((d(),y("div",null,[e[75]||(e[75]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(d(!0),y(I,null,D(s($),(l,r)=>(d(),y("div",{class:"row",key:r},[i("div",Ql,L(s(z).name),1),a(Ie,null,{default:o(()=>[a(tl)]),_:1}),a(Ie,null,{default:o(()=>[a(al)]),_:1}),i("div",Wl,L(l.item_name),1),a(b,{modelValue:s(te)[r],"onUpdate:modelValue":v=>s(te)[r]=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.item_code,s(te)[r])},{default:o(()=>[...e[74]||(e[74]=[m("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[ae,s(R)]])]),_:1},8,["modelValue","title"]),se((d(),h(J,{modelValue:s(T),"onUpdate:modelValue":e[37]||(e[37]=l=>C(T)?T.value=l:T=l),title:"时段规则 - "+s(re).item_name,width:"700px"},{footer:o(()=>[a(_,{onClick:e[36]||(e[36]=l=>C(T)?T.value=!1:T=!1)},{default:o(()=>[...e[84]||(e[84]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:Je},{default:o(()=>[...e[85]||(e[85]=[m("保存",-1)])]),_:1})]),default:o(()=>[i("div",Xl,[a(_,{type:"primary",size:"small",onClick:qe},{default:o(()=>[...e[76]||(e[76]=[m("添加规则",-1)])]),_:1}),e[77]||(e[77]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(d(!0),y(I,null,D(s(N),(l,r)=>(d(),y("div",{key:r,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",et,[i("span",lt,"规则 "+L(r+1),1),a(_,{type:"danger",size:"small",onClick:v=>Ze(r)},{default:o(()=>[...e[78]||(e[78]=[m("删除",-1)])]),_:1},8,["onClick"])]),i("div",tt,[e[79]||(e[79]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),a(pe,{modelValue:l.days,"onUpdate:modelValue":v=>l.days=v},{default:o(()=>[(d(),y(I,null,D(Ye,v=>a(me,{key:v,label:v,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",at,[e[80]||(e[80]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),a(p,{modelValue:l.resources_id,"onUpdate:modelValue":v=>l.resources_id=v,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(d(!0),y(I,null,D(s(we),v=>(d(),h(f,{key:v.id,label:v.department_resources_name+(v.department_name?"("+v.department_name+")":""),value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),e[81]||(e[81]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",st,[e[82]||(e[82]=i("span",{style:{width:"80px","font-weight":"500"}},"允许时段",-1)),a(De,{modelValue:l.start_time,"onUpdate:modelValue":v=>l.start_time=v,"max-time":l.end_time,placeholder:"开始时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","max-time"]),e[83]||(e[83]=i("span",{style:{margin:"0 8px"}},"~",-1)),a(De,{modelValue:l.end_time,"onUpdate:modelValue":v=>l.end_time=v,"min-time":l.start_time,placeholder:"结束时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","min-time"])])]))),128)),s(N).length===0?(d(),y("div",ot," 暂未设置时段限制 ")):G("",!0)]),_:1},8,["modelValue","title"])),[[ae,s(ee)]]),a(J,{modelValue:s(E),"onUpdate:modelValue":e[40]||(e[40]=l=>C(E)?E.value=l:E=l),title:s(Ce),width:"40%"},{footer:o(()=>[a(_,{onClick:e[39]||(e[39]=l=>C(E)?E.value=!1:E=!1)},{default:o(()=>[...e[86]||(e[86]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:He},{default:o(()=>[...e[87]||(e[87]=[m("确定",-1)])]),_:1})]),default:o(()=>[a(b,{modelValue:s(j),"onUpdate:modelValue":e[38]||(e[38]=l=>C(j)?j.value=l:j=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"])])),[[ae,s(F)]])}}},dt=sl(it,[["__scopeId","data-v-1481c833"]]);export{dt as default}; +import{_ as sl,Z as ol,o as il,r as k,c as nl,h as se,i as s,d,e as y,k as i,f as a,w as o,l as C,j as h,an as ul,E as c,g as u,ao as dl,ap as ve,a9 as rl,q as m,F as I,t as D,x as G,v as L,aa as ml,aq as pl,ar as vl,a8 as fl,ae as gl,af as _l,N as yl,ag as cl,aj as bl,ak as kl,al as Cl,as as xl}from"./index-e65958bd.js";const Vl={class:"head"},hl={style:{display:"inline-flex","align-items":"center"}},wl={class:"page"},Il={class:"chuansuokuang"},Dl={key:0,style:{padding:"0 20px 12px","margin-top":"10px"}},Ul={class:"dialog-footer"},Ll={class:"row"},Sl={class:"row"},Rl={class:"row"},zl={class:"row"},Hl={class:"row"},Bl={class:"row"},El={class:"row"},Tl={class:"row"},$l={class:"dialog-footer"},Nl={style:{"font-weight":"900","font-size":"16px"}},Gl={style:{display:"flex","margin-top":"20px"}},Fl={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},Al={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},Ml={style:{display:"flex","margin-bottom":"8px"}},Pl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Ol={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Yl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},jl={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},ql={key:0,id:"huchi_table"},Zl={key:0,style:{display:"flex"}},Jl={key:1,style:{display:"flex"}},Kl={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},Ql={style:{"margin-right":"12px"}},Wl={style:{"margin-left":"12px",width:"250px"}},Xl={style:{"margin-bottom":"12px"}},et={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},lt={style:{"font-weight":"700","margin-right":"12px"}},tt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},at={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},st={style:{display:"flex","align-items":"center"}},ot={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},it={__name:"DeptCheckItemConfig",setup(nt){let F=u(!1),x=u({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:""}),g=u({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1}),fe=u([]),ge=u([]),_e=u([]),ye=u([]);const P=(t="")=>{let e={};e={...x.value},t=="Dialog"&&(e.bigClass=Z.value),F.value=!0,ul({searchInfo:e}).then(n=>{F.value=!1,n.status?(t=="Dialog"?(_e.value=n.data.bigClass,ye.value=n.data.smallClass):(fe.value=n.data.bigClass,ge.value=n.data.smallClass),A()):c.error(n.msg)})};let ce=u([]),O=u(1),Y=u(15),be=0;const A=()=>{oe.value&&oe.value.clearSelection(),w.value=[],F.value=!0,dl({searchInfo:x.value,page:O.value,pageSize:Y.value}).then(t=>{if(F.value=!1,t.status){let e=t.data.list;ce.value=e,be=t.data.count}else c.error(t.msg)})},Ue=({prop:t,order:e})=>{x.value.orderField=t||"",x.value.orderDirection=e||"",A()},Le=t=>{Y.value=t,A()},Se=t=>{O.value=t,A()};let U=u(!1),B=u(!1),K=u(!1),w=u([]),oe=u(null),E=u(!1),ke=u(""),Ce=u(""),j=u("");const Re=ol(()=>K.value?"批量关联排班":"关联排班"),ze=t=>{w.value=t},xe=t=>{if(w.value.length===0){c.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};w.value.forEach(p=>{const b=(p[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,f="";Object.entries(e).forEach(([p,b])=>{b>n&&(n=b,f=p)}),j.value=f,E.value=!0},He=()=>{const t=w.value.map(e=>e.id);F.value=!0,pl({item_ids:t,field:ke.value,value:j.value}).then(e=>{F.value=!1,e.status?(E.value=!1,c.success(e.msg),A()):c.error(e.msg)})},Be=t=>{K.value=!1,S.value=[],U.value=!0,g.value.id=t.id,ve({}).then(e=>{e.status&&(Q.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){Q.value.find(function(f){return f.id==n.id})&&S.value.push(n.id)})})},Ee=()=>{if(w.value.length===0){c.error("请先勾选要批量关联的检查项目");return}K.value=!0,ve({}).then(t=>{t.status&&(Q.value=t.data);let e=[];if(w.value.length>0){e=w.value[0].devicesInfo.map(n=>n.id);for(let n=1;np.id);e=e.filter(p=>f.includes(p))}}S.value=e,U.value=!0})};let S=u([]),ie=u(0),ne=u(!1);const Te=async()=>{const t=e=>xl({item_id:e,device_ids:S.value});if(K.value){ne.value=!0,ie.value=0;const e=w.value.length;let n=0,f=0;for(let p=0;p{ne.value=!1},1500),f===0?c.success(`批量关联成功,共${e}项`):c.warning(`完成${n}项,失败${f}项`),U.value=!1,S.value=[],P()}else t(g.value.id).then(e=>{e.status?(U.value=!1,S.value=[],P()):c.error(e.msg)})};let Q=u([]);const $e=()=>{ve({}).then(t=>{t.status?Q.value=t.data:c.error(t.msg)})},Ne=t=>{B.value=!0,g.value.id=t.id,g.value.item_name=t.item_name,g.value.limosis=t.limosis,g.value.reservation_method=t.reservation_method,g.value.check_time=t.check_time,g.value.use_seats=t.use_seats||1,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),g.value.check_begin_time=t.check_begin_time,g.value.check_notice=t.check_notice,g.value.warm_tips=t.warm_tips};let ue=u("");const Ge=()=>{rl({}).then(t=>{t.status?ue.value=t.data:c.error(t.msg)})},Fe=()=>{vl({Info:g.value}).then(t=>{t.status?(B.value=!1,A()):c.error(t.msg)})};let W=u(!1),q=u(""),X=u(null),Z=u(null),$=u(null),le=u(!1),te=u([]),R=u(!1),M=u([]),z=u({code:"",name:""});const Ae=t=>{W.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,$.value=[],q.value="",P("Dialog"),he()},Ve=()=>{R.value=!0,te.value=[],fl({searchInfo:{name:q.value,bigClass:Z.value,smallClass:X.value},page:1,pageSize:100}).then(t=>{R.value=!1,t.status?t.data.list.length>0?$.value=t.data.list:c.error("未找到相关项目"):c.error(t.msg)})},Me=()=>{let t=[],e=!0;if(V.value.forEach(function(n,f){M.value.forEach(function(p,b){n.code2==p&&(c.error(n.code2_item_name+" 已经存在于右侧,不能重复添加"),e=!1)})}),!e)return!1;$.value.forEach(n=>{M.value.includes(n.item_code)?V.value.push({code2:n.item_code,code2_item_name:n.item_name}):t.push(n)}),$.value=t,M.value=[]},Pe=t=>{V.value=V.value.filter(e=>e.code2!=t.code2),$.value.find(e=>e.item_code==t.code2)||$.value.push({item_code:t.code2,item_name:t.code2_item_name})},de=(t,e,n,f=0)=>{R.value=!0,gl({id:f,code1:t,code2:e,time:n}).then(p=>{R.value=!1,p.status?(c({message:p.msg,type:"success"}),V.value.forEach(function(b,_){b.code2==p.data.code2&&(V.value[_].id=p.data.id)})):c.error(p.msg)})};let V=u([]);const he=()=>{R.value=!0,_l({code:z.value.code}).then(t=>{R.value=!1,t.status?V.value=t.data:c.error(t.msg)})},Oe=t=>{yl.confirm("确定解除此项互斥关系吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{R.value=!0,cl({id:t}).then(e=>{R.value=!1,e.status?(c({message:e.msg,type:"success"}),he()):c.error(e.msg)})})};let T=u(!1),ee=u(!1),re=u({id:null,item_name:""}),N=u([]),we=u([]);const Ye=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],je=t=>{re.value={id:t.id,item_name:t.item_name},T.value=!0,ee.value=!0,bl({item_id:t.id}).then(e=>{e.status&&(we.value=e.data)}),kl({item_id:t.id}).then(e=>{ee.value=!1,e.status?N.value=(e.data||[]).map(n=>({days:n.rule_value.days||[],start_time:n.rule_value.start_time||"",end_time:n.rule_value.end_time||"",resources_id:n.rule_value.resources_id||""})):c.error(e.msg)})},qe=()=>{N.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Ze=t=>{N.value.splice(t,1)},Je=()=>{for(let e=0;e({rule_type:"TIME_RESTRICTION",rule_value:{days:e.days,start_time:e.start_time,end_time:e.end_time,resources_id:e.resources_id||""}}));ee.value=!0,Cl({item_id:re.value.id,rules:t}).then(e=>{ee.value=!1,e.status?(c.success("保存成功"),T.value=!1):c.error(e.msg)})};return il(()=>{P(),$e(),Ge()}),(t,e)=>{const n=k("el-tag"),f=k("el-option"),p=k("el-select"),b=k("el-input"),_=k("el-button"),Ke=k("el-row"),H=k("el-table-column"),Qe=k("el-table"),We=k("el-pagination"),Xe=k("el-transfer"),el=k("el-progress"),J=k("el-dialog"),me=k("el-checkbox"),pe=k("el-checkbox-group"),ll=k("el-input-number"),tl=k("DArrowLeft"),Ie=k("el-icon"),al=k("DArrowRight"),De=k("el-time-select"),ae=nl("loading");return se((d(),y("div",null,[i("div",Vl,[a(Ke,null,{default:o(()=>[i("div",hl,[a(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[41]||(e[41]=[m("医嘱类别",-1)])]),_:1}),a(p,{clearable:"",filterable:!0,modelValue:s(x).bigClass,"onUpdate:modelValue":e[0]||(e[0]=l=>s(x).bigClass=l),onChange:e[1]||(e[1]=l=>P()),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(s(fe),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{filterable:!0,clearable:"",modelValue:s(x).smallClass,"onUpdate:modelValue":e[2]||(e[2]=l=>s(x).smallClass=l),placeholder:"所有医嘱小类",style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(s(ge),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{clearable:"",modelValue:s(x).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>s(x).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[a(f,{label:"全部",value:""}),a(f,{label:"已关联排班",value:1}),a(f,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),a(p,{clearable:"",modelValue:s(x).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>s(x).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[a(f,{label:"全部",value:""}),a(f,{label:"有执行科室",value:"1"}),a(f,{label:"无执行科室",value:"0"})]),_:1},8,["modelValue"]),a(b,{modelValue:s(x).name,"onUpdate:modelValue":e[5]||(e[5]=l=>s(x).name=l),placeholder:"请输入项目编号/名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),a(_,{type:"primary",onClick:e[6]||(e[6]=l=>A()),style:{"margin-left":"10px"}},{default:o(()=>[...e[42]||(e[42]=[m("查询",-1)])]),_:1}),a(_,{type:"primary",onClick:e[7]||(e[7]=l=>Ee()),style:{"margin-left":"10px"}},{default:o(()=>[...e[43]||(e[43]=[m("批量关联排班",-1)])]),_:1}),a(_,{type:"primary",onClick:e[8]||(e[8]=l=>xe("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[44]||(e[44]=[m("批量设置检查须知",-1)])]),_:1}),a(_,{type:"primary",onClick:e[9]||(e[9]=l=>xe("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[45]||(e[45]=[m("批量设置温馨提示",-1)])]),_:1})]),_:1})]),a(Qe,{ref_key:"checkItemTableRef",ref:oe,data:s(ce),style:{width:"100%","margin-top":"10px"},"row-key":"id",onSortChange:Ue,onSelectionChange:ze},{default:o(()=>[a(H,{type:"selection",width:"50"}),a(H,{prop:"item_code",label:"检查项目编号",width:"160",sortable:"custom"}),a(H,{prop:"item_name",label:"检查项目名称",sortable:"custom"}),a(H,{prop:"reservation_method_name",label:"预约方式"}),a(H,{prop:"limosis",label:"要求空腹",width:"100"},{default:o(l=>[l.row.limosis==1?(d(),h(n,{key:0,class:"ml-2",type:"danger"},{default:o(()=>[...e[46]||(e[46]=[m("是",-1)])]),_:1})):G("",!0),l.row.limosis==0?(d(),h(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[47]||(e[47]=[m("否",-1)])]),_:1})):G("",!0)]),_:1}),G("",!0),a(H,{prop:"check_time",label:"检查时间",width:"100"}),a(H,{prop:"check_begin_time",label:"开始预约时间",width:"120"}),a(H,{prop:"devicesInfo",label:"关联排班"},{default:o(l=>[(d(!0),y(I,null,D(l.row.devicesInfo,(r,v)=>(d(),y("span",{key:v},[r.status==1&&r.is_del==0?(d(),h(n,{key:0,class:"ml-2",type:"success"},{default:o(()=>[m(L(r.device_name),1)]),_:2},1024)):G("",!0),r.status==0||r.is_del==1?(d(),h(n,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[m(L(r.device_name),1)]),_:2},1024)):G("",!0)]))),128))]),_:1}),a(H,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[a(_,{size:"small",onClick:r=>Be(l.row)},{default:o(()=>[...e[48]||(e[48]=[m("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),a(H,{prop:"",label:"操作",width:"220"},{default:o(l=>[a(_,{type:"primary",onClick:r=>Ne(l.row),size:"small"},{default:o(()=>[...e[49]||(e[49]=[m("修改",-1)])]),_:1},8,["onClick"]),a(_,{type:"warning",onClick:r=>Ae(l.row),size:"small"},{default:o(()=>[...e[50]||(e[50]=[m("互斥",-1)])]),_:1},8,["onClick"]),a(_,{type:"success",onClick:r=>je(l.row),size:"small"},{default:o(()=>[...e[51]||(e[51]=[m("规则",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),i("div",wl,[a(We,{"current-page":s(O),"onUpdate:currentPage":e[10]||(e[10]=l=>C(O)?O.value=l:O=l),"page-size":s(Y),"onUpdate:pageSize":e[11]||(e[11]=l=>C(Y)?Y.value=l:Y=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(be),onSizeChange:Le,onCurrentChange:Se},null,8,["current-page","page-size","total"])]),a(J,{modelValue:s(U),"onUpdate:modelValue":e[15]||(e[15]=l=>C(U)?U.value=l:U=l),title:Re.value,width:"40%"},{footer:o(()=>[i("span",Ul,[a(_,{onClick:e[13]||(e[13]=l=>C(U)?U.value=!1:U=!1)},{default:o(()=>[...e[52]||(e[52]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[14]||(e[14]=l=>Te())},{default:o(()=>[...e[53]||(e[53]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Il,[a(Xe,{modelValue:s(S),"onUpdate:modelValue":e[12]||(e[12]=l=>C(S)?S.value=l:S=l),titles:["可选排班","已关联排班"],props:{key:"id",label:"device_name"},data:s(Q)},null,8,["modelValue","data"])]),s(K)&&s(ne)?(d(),y("div",Dl,[a(el,{percentage:s(ie),"stroke-width":14},null,8,["percentage"])])):G("",!0)]),_:1},8,["modelValue","title"]),a(J,{modelValue:s(B),"onUpdate:modelValue":e[25]||(e[25]=l=>C(B)?B.value=l:B=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",$l,[a(_,{onClick:e[23]||(e[23]=l=>C(B)?B.value=!1:B=!1)},{default:o(()=>[...e[64]||(e[64]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[24]||(e[24]=l=>Fe())},{default:o(()=>[...e[65]||(e[65]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Ll,[e[54]||(e[54]=i("span",{class:"title"},"医嘱名称:",-1)),m(L(s(g).item_name),1)]),i("div",Sl,[e[55]||(e[55]=i("span",{class:"title"},"预约方式:",-1)),s(ue)?(d(),h(pe,{key:0,modelValue:s(g).reservation_method,"onUpdate:modelValue":e[16]||(e[16]=l=>s(g).reservation_method=l)},{default:o(()=>[(d(!0),y(I,null,D(s(ue),(l,r)=>(d(),h(me,{label:l.id,value:l.id,key:r},{default:o(()=>[m(L(l.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):G("",!0)]),i("div",Rl,[e[56]||(e[56]=i("span",{class:"title"},"空腹:",-1)),a(p,{filterable:!0,clearable:"",modelValue:s(g).limosis,"onUpdate:modelValue":e[17]||(e[17]=l=>s(g).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[a(f,{label:"否",value:0}),a(f,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",zl,[e[57]||(e[57]=i("span",{class:"title"},"检查时间:",-1)),a(b,{modelValue:s(g).check_time,"onUpdate:modelValue":e[18]||(e[18]=l=>s(g).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Hl,[e[58]||(e[58]=i("span",{class:"title"},"占用号源:",-1)),a(ll,{modelValue:s(g).use_seats,"onUpdate:modelValue":e[19]||(e[19]=l=>s(g).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[59]||(e[59]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Bl,[e[60]||(e[60]=i("span",{class:"title"},"等待时间:",-1)),a(b,{modelValue:s(g).check_begin_time,"onUpdate:modelValue":e[20]||(e[20]=l=>s(g).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[61]||(e[61]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",El,[e[62]||(e[62]=i("span",{class:"title"},"检查须知:",-1)),a(b,{modelValue:s(g).check_notice,"onUpdate:modelValue":e[21]||(e[21]=l=>s(g).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",Tl,[e[63]||(e[63]=i("span",{class:"title"},"温馨提示:",-1)),a(b,{modelValue:s(g).warm_tips,"onUpdate:modelValue":e[22]||(e[22]=l=>s(g).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),a(J,{modelValue:s(W),"onUpdate:modelValue":e[34]||(e[34]=l=>C(W)?W.value=l:W=l),title:"为 "+s(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[72]||(e[72]=m(" 请输入想要与 ",-1)),i("span",Nl,L(s(z).name),1),e[73]||(e[73]=m(" 互斥的项目名称 ",-1)),i("div",Gl,[i("div",Fl,[se((d(),y("div",Al,[i("div",Ml,[a(p,{clearable:"",filterable:!0,modelValue:s(Z),"onUpdate:modelValue":e[26]||(e[26]=l=>C(Z)?Z.value=l:Z=l),onChange:e[27]||(e[27]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(s(_e),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(p,{filterable:!0,clearable:"",modelValue:s(X),"onUpdate:modelValue":e[28]||(e[28]=l=>C(X)?X.value=l:X=l),placeholder:"所有医嘱小类",onChange:e[29]||(e[29]=l=>Ve()),style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(s(ye),(l,r)=>(d(),h(f,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[a(b,{modelValue:s(q),"onUpdate:modelValue":e[30]||(e[30]=l=>C(q)?q.value=l:q=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),a(_,{type:"success",style:{"margin-left":"8px"},onClick:e[31]||(e[31]=l=>Ve())},{default:o(()=>[...e[66]||(e[66]=[m("查询",-1)])]),_:1})])])),[[ae,s(R)]]),i("div",Pl,[a(pe,{modelValue:s(M),"onUpdate:modelValue":e[32]||(e[32]=l=>C(M)?M.value=l:M=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(d(!0),y(I,null,D(s($),(l,r)=>(d(),h(me,{key:r,label:l.item_code},{default:o(()=>[m(L(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Ol,[a(_,{type:"primary",icon:s(ml),circle:"",onClick:e[33]||(e[33]=l=>Me())},null,8,["icon"])]),i("div",Yl,[i("div",jl,"已经存在互斥项("+L(s(V).length)+")",1),s(V).length>0?(d(),y("table",ql,[(d(!0),y(I,null,D(s(V),(l,r)=>(d(),y("tr",{key:r},[i("td",null,L(l.code2_item_name),1),i("td",null,[a(b,{modelValue:s(V)[r].time,"onUpdate:modelValue":v=>s(V)[r].time=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[67]||(e[67]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(d(),y("span",Zl,[a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>Oe(l.id)},{default:o(()=>[...e[68]||(e[68]=[m("解除",-1)])]),_:1},8,["onClick"]),a(_,{type:"primary",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.code2,s(V)[r].time,l.id)},{default:o(()=>[...e[69]||(e[69]=[m("更新",-1)])]),_:1},8,["onClick"])])):(d(),y("span",Jl,[a(_,{type:"success",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.code2,s(V)[r].time)},{default:o(()=>[...e[70]||(e[70]=[m("保存",-1)])]),_:1},8,["onClick"]),a(_,{style:{"margin-left":"8px"},onClick:v=>Pe(l)},{default:o(()=>[...e[71]||(e[71]=[m("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(d(),y("div",Kl," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(J,{modelValue:s(le),"onUpdate:modelValue":e[35]||(e[35]=l=>C(le)?le.value=l:le=l),title:"为 "+s(z).name+" 设置互斥",width:"50%"},{default:o(()=>[se((d(),y("div",null,[e[75]||(e[75]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(d(!0),y(I,null,D(s($),(l,r)=>(d(),y("div",{class:"row",key:r},[i("div",Ql,L(s(z).name),1),a(Ie,null,{default:o(()=>[a(tl)]),_:1}),a(Ie,null,{default:o(()=>[a(al)]),_:1}),i("div",Wl,L(l.item_name),1),a(b,{modelValue:s(te)[r],"onUpdate:modelValue":v=>s(te)[r]=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>de(s(z).code,l.item_code,s(te)[r])},{default:o(()=>[...e[74]||(e[74]=[m("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[ae,s(R)]])]),_:1},8,["modelValue","title"]),se((d(),h(J,{modelValue:s(T),"onUpdate:modelValue":e[37]||(e[37]=l=>C(T)?T.value=l:T=l),title:"时段规则 - "+s(re).item_name,width:"700px"},{footer:o(()=>[a(_,{onClick:e[36]||(e[36]=l=>C(T)?T.value=!1:T=!1)},{default:o(()=>[...e[84]||(e[84]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:Je},{default:o(()=>[...e[85]||(e[85]=[m("保存",-1)])]),_:1})]),default:o(()=>[i("div",Xl,[a(_,{type:"primary",size:"small",onClick:qe},{default:o(()=>[...e[76]||(e[76]=[m("添加规则",-1)])]),_:1}),e[77]||(e[77]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(d(!0),y(I,null,D(s(N),(l,r)=>(d(),y("div",{key:r,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",et,[i("span",lt,"规则 "+L(r+1),1),a(_,{type:"danger",size:"small",onClick:v=>Ze(r)},{default:o(()=>[...e[78]||(e[78]=[m("删除",-1)])]),_:1},8,["onClick"])]),i("div",tt,[e[79]||(e[79]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),a(pe,{modelValue:l.days,"onUpdate:modelValue":v=>l.days=v},{default:o(()=>[(d(),y(I,null,D(Ye,v=>a(me,{key:v,label:v,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",at,[e[80]||(e[80]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),a(p,{modelValue:l.resources_id,"onUpdate:modelValue":v=>l.resources_id=v,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(d(!0),y(I,null,D(s(we),v=>(d(),h(f,{key:v.id,label:v.department_resources_name+(v.department_name?"("+v.department_name+")":""),value:v.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),e[81]||(e[81]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",st,[e[82]||(e[82]=i("span",{style:{width:"80px","font-weight":"500"}},"允许时段",-1)),a(De,{modelValue:l.start_time,"onUpdate:modelValue":v=>l.start_time=v,"max-time":l.end_time,placeholder:"开始时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","max-time"]),e[83]||(e[83]=i("span",{style:{margin:"0 8px"}},"~",-1)),a(De,{modelValue:l.end_time,"onUpdate:modelValue":v=>l.end_time=v,"min-time":l.start_time,placeholder:"结束时间",start:"06:00",step:"00:30",end:"23:30",style:{width:"140px"}},null,8,["modelValue","onUpdate:modelValue","min-time"])])]))),128)),s(N).length===0?(d(),y("div",ot," 暂未设置时段限制 ")):G("",!0)]),_:1},8,["modelValue","title"])),[[ae,s(ee)]]),a(J,{modelValue:s(E),"onUpdate:modelValue":e[40]||(e[40]=l=>C(E)?E.value=l:E=l),title:s(Ce),width:"40%"},{footer:o(()=>[a(_,{onClick:e[39]||(e[39]=l=>C(E)?E.value=!1:E=!1)},{default:o(()=>[...e[86]||(e[86]=[m("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:He},{default:o(()=>[...e[87]||(e[87]=[m("确定",-1)])]),_:1})]),default:o(()=>[a(b,{modelValue:s(j),"onUpdate:modelValue":e[38]||(e[38]=l=>C(j)?j.value=l:j=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"])])),[[ae,s(F)]])}}},dt=sl(it,[["__scopeId","data-v-1481c833"]]);export{dt as default}; diff --git a/Laravel/public/admin/assets/DeptCheckItemConfig-8f3a58b2.css b/Laravel/public/dist/assets/DeptCheckItemConfig-8f3a58b2.css similarity index 100% rename from Laravel/public/admin/assets/DeptCheckItemConfig-8f3a58b2.css rename to Laravel/public/dist/assets/DeptCheckItemConfig-8f3a58b2.css diff --git a/Laravel/public/admin/assets/DeptResourceConfig-a143deaa.js b/Laravel/public/dist/assets/DeptResourceConfig-181cc3e3.js similarity index 97% rename from Laravel/public/admin/assets/DeptResourceConfig-a143deaa.js rename to Laravel/public/dist/assets/DeptResourceConfig-181cc3e3.js index 3cbf637..dbce87b 100644 --- a/Laravel/public/admin/assets/DeptResourceConfig-a143deaa.js +++ b/Laravel/public/dist/assets/DeptResourceConfig-181cc3e3.js @@ -1 +1 @@ -import{_ as W,g as d,o as X,r,c as Y,d as o,e as u,k as z,f as l,w as a,h as Z,i as s,j as y,l as N,x as p,at as ee,E as L,q as i,F as h,t as A,v as F,N as te,au as le}from"./index-af171713.js";import{_ as ae}from"./DepartmentResourcesSave-7a0f7e89.js";const oe={class:"head"},ne={style:{display:"flex","align-items":"center"}},se={key:2,style:{"font-size":"12px","margin-left":"8px"}},re={key:0,style:{color:"#E6A23C"}},ue={key:1,style:{color:"#409EFF"}},ie={key:0},de={class:"page"},pe={__name:"DeptResourceConfig",setup(me){let v=d(!1),x=d(null),D=null;sessionStorage.getItem("LoginUserInfo")&&(D=JSON.parse(sessionStorage.getItem("LoginUserInfo")),x.value=D.department_id);let w=d({department_id:x.value,status:null,name:""}),I=d({id:null,department_id:null,department_resources_name:"",department_resources_addr:""}),R=d([]),m=d(1),_=d(15),S=0;const f=()=>{v.value=!0,ee({searchInfo:w.value,page:m.value,pageSize:_.value}).then(n=>{v.value=!1,n.status?(R.value=n.data.list,S=n.data.count):L.error(n.msg)})},P=n=>{_.value=n,f()},M=n=>{m.value=n,f()};let k=d(!1);const T=()=>{k.value=!0,I.value={}},G=n=>{k.value=!0,I.value=n},$=()=>{k.value=!1,f()},j=n=>{te.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{v.value=!0,le({id:n.id}).then(e=>{v.value=!1,e.status?f():L.error(e.msg)})})};return X(()=>{f()}),(n,e)=>{const V=r("el-option"),q=r("el-select"),B=r("el-form-item"),J=r("el-input"),C=r("el-button"),O=r("el-row"),c=r("el-table-column"),b=r("el-tag"),H=r("el-table"),K=r("el-pagination"),Q=Y("loading");return o(),u("div",null,[z("div",oe,[l(O,null,{default:a(()=>[l(B,null,{default:a(()=>[l(q,{filterable:!0,clearable:"",modelValue:s(w).status,"onUpdate:modelValue":e[0]||(e[0]=t=>s(w).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:a(()=>[l(V,{label:"正常",value:1}),l(V,{label:"不可用",value:0})]),_:1},8,["modelValue"])]),_:1}),l(B,null,{default:a(()=>[l(J,{modelValue:s(w).name,"onUpdate:modelValue":e[1]||(e[1]=t=>s(w).name=t),placeholder:"请输入排班名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(C,{style:{"margin-left":"10px"},onClick:f},{default:a(()=>[...e[5]||(e[5]=[i("查询",-1)])]),_:1}),l(C,{type:"primary",style:{"margin-left":"10px"},onClick:e[2]||(e[2]=t=>T())},{default:a(()=>[...e[6]||(e[6]=[i("添加排班",-1)])]),_:1})]),_:1})]),Z((o(),y(H,{data:s(R),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(c,{prop:"id",label:"Id",width:"100"}),l(c,{prop:"department_resources_name",label:"排班名称"}),l(c,{prop:"department_resources_addr",label:"资源位置"}),l(c,{prop:"department_resources_status",label:"状态",width:"100"},{default:a(t=>[t.row.department_resources_status==0?(o(),y(b,{key:0,class:"ml-2",type:"danger"},{default:a(()=>[...e[7]||(e[7]=[i("禁用",-1)])]),_:1})):p("",!0),t.row.department_resources_status==1?(o(),y(b,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[8]||(e[8]=[i("正常",-1)])]),_:1})):p("",!0)]),_:1}),l(c,{prop:"time_mode",label:"时令",width:"280"},{default:a(t=>[z("div",ne,[t.row.time_mode==0?(o(),y(b,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[9]||(e[9]=[i("关闭",-1)])]),_:1})):p("",!0),t.row.time_mode==1?(o(),y(b,{key:1,class:"ml-2",type:"warning"},{default:a(()=>[...e[10]||(e[10]=[i("开启",-1)])]),_:1})):p("",!0),t.row.time_mode==1&&t.row.time_range?(o(),u("div",se,[(o(!0),u(h,null,A(t.row.time_range,g=>(o(),u("div",{key:g.type,style:{"margin-bottom":"2px"}},[g.type==="1"?(o(),u("span",re,"夏:")):(o(),u("span",ue,"冬:")),(o(!0),u(h,null,A(g.periods,(E,U)=>(o(),u("span",{key:U},[i(F(E.start)+"~"+F(E.end),1),U[l(C,{type:"primary",onClick:g=>G(t.row),size:"small"},{default:a(()=>[...e[11]||(e[11]=[i("修改",-1)])]),_:1},8,["onClick"]),l(C,{type:"danger",onClick:g=>j(t.row),size:"small"},{default:a(()=>[...e[12]||(e[12]=[i("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Q,s(v)]]),z("div",de,[l(K,{"current-page":s(m),"onUpdate:currentPage":e[3]||(e[3]=t=>N(m)?m.value=t:m=t),"page-size":s(_),"onUpdate:pageSize":e[4]||(e[4]=t=>N(_)?_.value=t:_=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(S),onSizeChange:P,onCurrentChange:M},null,8,["current-page","page-size","total"])]),s(k)?(o(),y(ae,{key:0,departmentId:s(x),resourceInfo:s(I),onCloseAddResources:$},null,8,["departmentId","resourceInfo"])):p("",!0)])}}},ce=W(pe,[["__scopeId","data-v-0f1c48f6"]]);export{ce as default}; +import{_ as W,g as d,o as X,r,c as Y,d as o,e as u,k as z,f as l,w as a,h as Z,i as s,j as y,l as N,x as p,at as ee,E as L,q as i,F as h,t as A,v as F,N as te,au as le}from"./index-e65958bd.js";import{_ as ae}from"./DepartmentResourcesSave-bf22abac.js";const oe={class:"head"},ne={style:{display:"flex","align-items":"center"}},se={key:2,style:{"font-size":"12px","margin-left":"8px"}},re={key:0,style:{color:"#E6A23C"}},ue={key:1,style:{color:"#409EFF"}},ie={key:0},de={class:"page"},pe={__name:"DeptResourceConfig",setup(me){let v=d(!1),x=d(null),D=null;sessionStorage.getItem("LoginUserInfo")&&(D=JSON.parse(sessionStorage.getItem("LoginUserInfo")),x.value=D.department_id);let w=d({department_id:x.value,status:null,name:""}),I=d({id:null,department_id:null,department_resources_name:"",department_resources_addr:""}),R=d([]),m=d(1),_=d(15),S=0;const f=()=>{v.value=!0,ee({searchInfo:w.value,page:m.value,pageSize:_.value}).then(n=>{v.value=!1,n.status?(R.value=n.data.list,S=n.data.count):L.error(n.msg)})},P=n=>{_.value=n,f()},M=n=>{m.value=n,f()};let k=d(!1);const T=()=>{k.value=!0,I.value={}},G=n=>{k.value=!0,I.value=n},$=()=>{k.value=!1,f()},j=n=>{te.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{v.value=!0,le({id:n.id}).then(e=>{v.value=!1,e.status?f():L.error(e.msg)})})};return X(()=>{f()}),(n,e)=>{const V=r("el-option"),q=r("el-select"),B=r("el-form-item"),J=r("el-input"),C=r("el-button"),O=r("el-row"),c=r("el-table-column"),b=r("el-tag"),H=r("el-table"),K=r("el-pagination"),Q=Y("loading");return o(),u("div",null,[z("div",oe,[l(O,null,{default:a(()=>[l(B,null,{default:a(()=>[l(q,{filterable:!0,clearable:"",modelValue:s(w).status,"onUpdate:modelValue":e[0]||(e[0]=t=>s(w).status=t),placeholder:"所有状态",style:{"margin-left":"10px"}},{default:a(()=>[l(V,{label:"正常",value:1}),l(V,{label:"不可用",value:0})]),_:1},8,["modelValue"])]),_:1}),l(B,null,{default:a(()=>[l(J,{modelValue:s(w).name,"onUpdate:modelValue":e[1]||(e[1]=t=>s(w).name=t),placeholder:"请输入排班名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(C,{style:{"margin-left":"10px"},onClick:f},{default:a(()=>[...e[5]||(e[5]=[i("查询",-1)])]),_:1}),l(C,{type:"primary",style:{"margin-left":"10px"},onClick:e[2]||(e[2]=t=>T())},{default:a(()=>[...e[6]||(e[6]=[i("添加排班",-1)])]),_:1})]),_:1})]),Z((o(),y(H,{data:s(R),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(c,{prop:"id",label:"Id",width:"100"}),l(c,{prop:"department_resources_name",label:"排班名称"}),l(c,{prop:"department_resources_addr",label:"资源位置"}),l(c,{prop:"department_resources_status",label:"状态",width:"100"},{default:a(t=>[t.row.department_resources_status==0?(o(),y(b,{key:0,class:"ml-2",type:"danger"},{default:a(()=>[...e[7]||(e[7]=[i("禁用",-1)])]),_:1})):p("",!0),t.row.department_resources_status==1?(o(),y(b,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[8]||(e[8]=[i("正常",-1)])]),_:1})):p("",!0)]),_:1}),l(c,{prop:"time_mode",label:"时令",width:"280"},{default:a(t=>[z("div",ne,[t.row.time_mode==0?(o(),y(b,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[9]||(e[9]=[i("关闭",-1)])]),_:1})):p("",!0),t.row.time_mode==1?(o(),y(b,{key:1,class:"ml-2",type:"warning"},{default:a(()=>[...e[10]||(e[10]=[i("开启",-1)])]),_:1})):p("",!0),t.row.time_mode==1&&t.row.time_range?(o(),u("div",se,[(o(!0),u(h,null,A(t.row.time_range,g=>(o(),u("div",{key:g.type,style:{"margin-bottom":"2px"}},[g.type==="1"?(o(),u("span",re,"夏:")):(o(),u("span",ue,"冬:")),(o(!0),u(h,null,A(g.periods,(E,U)=>(o(),u("span",{key:U},[i(F(E.start)+"~"+F(E.end),1),U[l(C,{type:"primary",onClick:g=>G(t.row),size:"small"},{default:a(()=>[...e[11]||(e[11]=[i("修改",-1)])]),_:1},8,["onClick"]),l(C,{type:"danger",onClick:g=>j(t.row),size:"small"},{default:a(()=>[...e[12]||(e[12]=[i("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Q,s(v)]]),z("div",de,[l(K,{"current-page":s(m),"onUpdate:currentPage":e[3]||(e[3]=t=>N(m)?m.value=t:m=t),"page-size":s(_),"onUpdate:pageSize":e[4]||(e[4]=t=>N(_)?_.value=t:_=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(S),onSizeChange:P,onCurrentChange:M},null,8,["current-page","page-size","total"])]),s(k)?(o(),y(ae,{key:0,departmentId:s(x),resourceInfo:s(I),onCloseAddResources:$},null,8,["departmentId","resourceInfo"])):p("",!0)])}}},ce=W(pe,[["__scopeId","data-v-0f1c48f6"]]);export{ce as default}; diff --git a/Laravel/public/admin/assets/DeptResourceConfig-5d6863d0.css b/Laravel/public/dist/assets/DeptResourceConfig-5d6863d0.css similarity index 100% rename from Laravel/public/admin/assets/DeptResourceConfig-5d6863d0.css rename to Laravel/public/dist/assets/DeptResourceConfig-5d6863d0.css diff --git a/Laravel/public/admin/assets/DeviceCheckItemBind-f2334864.js b/Laravel/public/dist/assets/DeviceCheckItemBind-91c53967.js similarity index 98% rename from Laravel/public/admin/assets/DeviceCheckItemBind-f2334864.js rename to Laravel/public/dist/assets/DeviceCheckItemBind-91c53967.js index edfe8df..7189533 100644 --- a/Laravel/public/admin/assets/DeviceCheckItemBind-f2334864.js +++ b/Laravel/public/dist/assets/DeviceCheckItemBind-91c53967.js @@ -1 +1 @@ -import{_ as ee,Z as te,o as ae,r as h,c as le,d as r,e as _,h as U,i as l,k as i,F as G,t as ne,x as E,v as S,f as n,w as c,j,l as V,g as s,ap as ie,E as m,aL as se,$ as oe,q as C,aM as de,aN as ue,N as ce,aO as re}from"./index-af171713.js";const ve={class:"page-container"},pe={class:"left-panel"},_e={class:"device-list"},me=["onClick"],ge={class:"device-name"},fe={class:"device-count"},he={key:0,class:"empty-tip"},be={class:"right-panel"},ye={class:"panel-header"},ke={class:"panel-title"},xe={key:0,class:"right-content"},Be={style:{"margin-bottom":"12px"}},Ce={key:0,class:"empty-tip",style:{"margin-top":"20px"}},we={style:{display:"flex",gap:"12px","margin-bottom":"12px"}},De={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"12px"}},Ie={style:{color:"#909399","font-size":"13px"}},ze={__name:"DeviceCheckItemBind",setup(Se){let w=s(!1),b=s([]),d=s(null),L=s([]),y=s(!1),k=s(!1),p=s(""),g=s([]),D=s(!1),T=null,o=s(1),x=s(10),B=s(0),I=s(null);const R=te(()=>g.value),$=()=>{w.value=!0,ie().then(t=>{w.value=!1,t.status?(b.value=t.data,b.value.length>0&&F(b.value[0])):m.error(t.msg)}).catch(()=>{w.value=!1})},F=t=>{d.value=t,N(t.id)},N=t=>{y.value=!0,se({device_id:t}).then(e=>{y.value=!1,e.status?L.value=e.data:m.error(e.msg)}).catch(()=>{y.value=!1})},f=()=>{D.value=!0,de({device_id:d.value.id,keyword:p.value,page:o.value,pageSize:x.value}).then(t=>{D.value=!1,t.status?(g.value=t.data.list||[],B.value=t.data.count||0):m.error(t.msg)}).catch(()=>{D.value=!1})},q=()=>{k.value=!0,p.value="",o.value=1,f()},K=()=>{T&&clearTimeout(T),T=setTimeout(()=>{o.value=1,f()},300)},O=()=>{o.value=1,f()},Z=()=>{f()},A=t=>{o.value=t,f()},H=t=>{I.value=t.id,ue({item_id:t.id,device_id:d.value.id}).then(e=>{if(I.value=null,e.status){m.success(`已绑定 ${t.item_name}`);const v=g.value.findIndex(u=>u.id===t.id);v!==-1&&g.value.splice(v,1),B.value--,g.value.length===0&&o.value>1&&(o.value--,f()),N(d.value.id)}else m.error(e.msg)}).catch(()=>{I.value=null})},J=()=>{p.value="",g.value=[],B.value=0,o.value=1},Q=t=>{ce.confirm(`确定解绑 ${t.item_name} 吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{re({item_id:t.id,device_id:d.value.id}).then(e=>{e.status?(m.success("解绑成功"),N(d.value.id)):m.error(e.msg)})}).catch(()=>{})};return ae(()=>{$()}),(t,e)=>{const v=h("el-button"),u=h("el-table-column"),M=h("el-table"),W=h("el-input"),X=h("el-pagination"),Y=h("el-dialog"),P=le("loading");return r(),_(G,null,[U((r(),_("div",null,[i("div",ve,[i("div",pe,[e[4]||(e[4]=i("div",{class:"panel-header"},[i("span",{class:"panel-title"},"排班")],-1)),i("div",_e,[(r(!0),_(G,null,ne(l(b),a=>{var z;return r(),_("div",{key:a.id,class:oe(["device-item",{active:((z=l(d))==null?void 0:z.id)===a.id}]),onClick:Ve=>F(a)},[i("div",ge,S(a.device_name),1),i("div",fe,"已绑定 "+S(a.bind_count||0)+" 项",1)],10,me)}),128)),l(b).length===0?(r(),_("div",he," 暂无服务组 ")):E("",!0)])]),i("div",be,[i("div",ye,[i("span",ke,S(l(d)?l(d).device_name+" - 已绑定的检查项目":"请选择一个排班"),1)]),l(d)?(r(),_("div",xe,[i("div",Be,[n(v,{type:"primary",onClick:q},{default:c(()=>[...e[5]||(e[5]=[C("添加绑定",-1)])]),_:1})]),U((r(),j(M,{data:l(L),style:{width:"100%"},"row-key":"id"},{default:c(()=>[n(u,{prop:"item_code",label:"项目编号",width:"160"}),n(u,{prop:"item_name",label:"检查项目名称"}),n(u,{prop:"item_class_name",label:"医嘱类别"}),n(u,{prop:"",label:"操作",width:"100"},{default:c(a=>[n(v,{type:"danger",size:"small",onClick:z=>Q(a.row)},{default:c(()=>[...e[6]||(e[6]=[C("解绑",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[P,l(y)]]),l(L).length===0&&!l(y)?(r(),_("div",Ce," 暂无绑定的检查项目 ")):E("",!0)])):E("",!0)])])])),[[P,l(w)]]),n(Y,{modelValue:l(k),"onUpdate:modelValue":e[3]||(e[3]=a=>V(k)?k.value=a:k=a),title:"添加检查项目绑定",width:"60%",onClosed:J},{default:c(()=>[i("div",null,[i("div",we,[n(W,{modelValue:l(p),"onUpdate:modelValue":e[0]||(e[0]=a=>V(p)?p.value=a:p=a),placeholder:"输入项目编号/名称搜索",clearable:"",style:{flex:"1"},onInput:K},null,8,["modelValue"]),n(v,{type:"primary",onClick:O},{default:c(()=>[...e[7]||(e[7]=[C("搜索",-1)])]),_:1}),n(v,{onClick:Z},{default:c(()=>[...e[8]||(e[8]=[C("刷新",-1)])]),_:1})]),U((r(),j(M,{data:R.value,style:{width:"100%"},"row-key":"id"},{default:c(()=>[n(u,{prop:"item_code",label:"项目编号",width:"160"}),n(u,{prop:"item_name",label:"检查项目名称"}),n(u,{prop:"item_class_name",label:"医嘱类别"}),n(u,{prop:"",label:"操作",width:"100"},{default:c(a=>[n(v,{type:"primary",size:"small",onClick:z=>H(a.row),loading:l(I)===a.row.id},{default:c(()=>[...e[9]||(e[9]=[C("添加",-1)])]),_:1},8,["onClick","loading"])]),_:1})]),_:1},8,["data"])),[[P,l(D)]]),i("div",De,[i("span",Ie,"共 "+S(l(B))+" 条",1),n(X,{"current-page":l(o),"onUpdate:currentPage":e[1]||(e[1]=a=>V(o)?o.value=a:o=a),"page-size":l(x),"onUpdate:pageSize":e[2]||(e[2]=a=>V(x)?x.value=a:x=a),"page-sizes":[10],layout:"prev, pager, next",total:l(B),onCurrentChange:A},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"])],64)}}},Te=ee(ze,[["__scopeId","data-v-bd956dc7"]]);export{Te as default}; +import{_ as ee,Z as te,o as ae,r as h,c as le,d as r,e as _,h as U,i as l,k as i,F as G,t as ne,x as E,v as S,f as n,w as c,j,l as V,g as s,ap as ie,E as m,aL as se,$ as oe,q as C,aM as de,aN as ue,N as ce,aO as re}from"./index-e65958bd.js";const ve={class:"page-container"},pe={class:"left-panel"},_e={class:"device-list"},me=["onClick"],ge={class:"device-name"},fe={class:"device-count"},he={key:0,class:"empty-tip"},be={class:"right-panel"},ye={class:"panel-header"},ke={class:"panel-title"},xe={key:0,class:"right-content"},Be={style:{"margin-bottom":"12px"}},Ce={key:0,class:"empty-tip",style:{"margin-top":"20px"}},we={style:{display:"flex",gap:"12px","margin-bottom":"12px"}},De={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"12px"}},Ie={style:{color:"#909399","font-size":"13px"}},ze={__name:"DeviceCheckItemBind",setup(Se){let w=s(!1),b=s([]),d=s(null),L=s([]),y=s(!1),k=s(!1),p=s(""),g=s([]),D=s(!1),T=null,o=s(1),x=s(10),B=s(0),I=s(null);const R=te(()=>g.value),$=()=>{w.value=!0,ie().then(t=>{w.value=!1,t.status?(b.value=t.data,b.value.length>0&&F(b.value[0])):m.error(t.msg)}).catch(()=>{w.value=!1})},F=t=>{d.value=t,N(t.id)},N=t=>{y.value=!0,se({device_id:t}).then(e=>{y.value=!1,e.status?L.value=e.data:m.error(e.msg)}).catch(()=>{y.value=!1})},f=()=>{D.value=!0,de({device_id:d.value.id,keyword:p.value,page:o.value,pageSize:x.value}).then(t=>{D.value=!1,t.status?(g.value=t.data.list||[],B.value=t.data.count||0):m.error(t.msg)}).catch(()=>{D.value=!1})},q=()=>{k.value=!0,p.value="",o.value=1,f()},K=()=>{T&&clearTimeout(T),T=setTimeout(()=>{o.value=1,f()},300)},O=()=>{o.value=1,f()},Z=()=>{f()},A=t=>{o.value=t,f()},H=t=>{I.value=t.id,ue({item_id:t.id,device_id:d.value.id}).then(e=>{if(I.value=null,e.status){m.success(`已绑定 ${t.item_name}`);const v=g.value.findIndex(u=>u.id===t.id);v!==-1&&g.value.splice(v,1),B.value--,g.value.length===0&&o.value>1&&(o.value--,f()),N(d.value.id)}else m.error(e.msg)}).catch(()=>{I.value=null})},J=()=>{p.value="",g.value=[],B.value=0,o.value=1},Q=t=>{ce.confirm(`确定解绑 ${t.item_name} 吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{re({item_id:t.id,device_id:d.value.id}).then(e=>{e.status?(m.success("解绑成功"),N(d.value.id)):m.error(e.msg)})}).catch(()=>{})};return ae(()=>{$()}),(t,e)=>{const v=h("el-button"),u=h("el-table-column"),M=h("el-table"),W=h("el-input"),X=h("el-pagination"),Y=h("el-dialog"),P=le("loading");return r(),_(G,null,[U((r(),_("div",null,[i("div",ve,[i("div",pe,[e[4]||(e[4]=i("div",{class:"panel-header"},[i("span",{class:"panel-title"},"排班")],-1)),i("div",_e,[(r(!0),_(G,null,ne(l(b),a=>{var z;return r(),_("div",{key:a.id,class:oe(["device-item",{active:((z=l(d))==null?void 0:z.id)===a.id}]),onClick:Ve=>F(a)},[i("div",ge,S(a.device_name),1),i("div",fe,"已绑定 "+S(a.bind_count||0)+" 项",1)],10,me)}),128)),l(b).length===0?(r(),_("div",he," 暂无服务组 ")):E("",!0)])]),i("div",be,[i("div",ye,[i("span",ke,S(l(d)?l(d).device_name+" - 已绑定的检查项目":"请选择一个排班"),1)]),l(d)?(r(),_("div",xe,[i("div",Be,[n(v,{type:"primary",onClick:q},{default:c(()=>[...e[5]||(e[5]=[C("添加绑定",-1)])]),_:1})]),U((r(),j(M,{data:l(L),style:{width:"100%"},"row-key":"id"},{default:c(()=>[n(u,{prop:"item_code",label:"项目编号",width:"160"}),n(u,{prop:"item_name",label:"检查项目名称"}),n(u,{prop:"item_class_name",label:"医嘱类别"}),n(u,{prop:"",label:"操作",width:"100"},{default:c(a=>[n(v,{type:"danger",size:"small",onClick:z=>Q(a.row)},{default:c(()=>[...e[6]||(e[6]=[C("解绑",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[P,l(y)]]),l(L).length===0&&!l(y)?(r(),_("div",Ce," 暂无绑定的检查项目 ")):E("",!0)])):E("",!0)])])])),[[P,l(w)]]),n(Y,{modelValue:l(k),"onUpdate:modelValue":e[3]||(e[3]=a=>V(k)?k.value=a:k=a),title:"添加检查项目绑定",width:"60%",onClosed:J},{default:c(()=>[i("div",null,[i("div",we,[n(W,{modelValue:l(p),"onUpdate:modelValue":e[0]||(e[0]=a=>V(p)?p.value=a:p=a),placeholder:"输入项目编号/名称搜索",clearable:"",style:{flex:"1"},onInput:K},null,8,["modelValue"]),n(v,{type:"primary",onClick:O},{default:c(()=>[...e[7]||(e[7]=[C("搜索",-1)])]),_:1}),n(v,{onClick:Z},{default:c(()=>[...e[8]||(e[8]=[C("刷新",-1)])]),_:1})]),U((r(),j(M,{data:R.value,style:{width:"100%"},"row-key":"id"},{default:c(()=>[n(u,{prop:"item_code",label:"项目编号",width:"160"}),n(u,{prop:"item_name",label:"检查项目名称"}),n(u,{prop:"item_class_name",label:"医嘱类别"}),n(u,{prop:"",label:"操作",width:"100"},{default:c(a=>[n(v,{type:"primary",size:"small",onClick:z=>H(a.row),loading:l(I)===a.row.id},{default:c(()=>[...e[9]||(e[9]=[C("添加",-1)])]),_:1},8,["onClick","loading"])]),_:1})]),_:1},8,["data"])),[[P,l(D)]]),i("div",De,[i("span",Ie,"共 "+S(l(B))+" 条",1),n(X,{"current-page":l(o),"onUpdate:currentPage":e[1]||(e[1]=a=>V(o)?o.value=a:o=a),"page-size":l(x),"onUpdate:pageSize":e[2]||(e[2]=a=>V(x)?x.value=a:x=a),"page-sizes":[10],layout:"prev, pager, next",total:l(B),onCurrentChange:A},null,8,["current-page","page-size","total"])])])]),_:1},8,["modelValue"])],64)}}},Te=ee(ze,[["__scopeId","data-v-bd956dc7"]]);export{Te as default}; diff --git a/Laravel/public/admin/assets/DeviceCheckItemBind-c1dc67c4.css b/Laravel/public/dist/assets/DeviceCheckItemBind-c1dc67c4.css similarity index 100% rename from Laravel/public/admin/assets/DeviceCheckItemBind-c1dc67c4.css rename to Laravel/public/dist/assets/DeviceCheckItemBind-c1dc67c4.css diff --git a/Laravel/public/admin/assets/DevicesConfig-18b8da8c.js b/Laravel/public/dist/assets/DevicesConfig-9e7b3437.js similarity index 98% rename from Laravel/public/admin/assets/DevicesConfig-18b8da8c.js rename to Laravel/public/dist/assets/DevicesConfig-9e7b3437.js index 276093b..efacd06 100644 --- a/Laravel/public/admin/assets/DevicesConfig-18b8da8c.js +++ b/Laravel/public/dist/assets/DevicesConfig-9e7b3437.js @@ -1 +1 @@ -import{_ as H,o as J,r as s,c as K,d as g,e as O,k as w,f as l,w as n,h as I,i as o,j as x,l as C,F as Q,g as p,av as W,E as b,q as d,x as U,N as X,aw as Y,ax as Z}from"./index-af171713.js";const h={class:"head"},ee={class:"page"},te={class:"dialog-footer"},le={__name:"DevicesConfig",setup(ae){let r=p(!1),c=p({name:""}),u=p({id:null,device_name:"",status:1}),i=p(!1),k=p([]),m=p(1),f=p(15),D=0;const v=()=>{r.value=!0,W({searchInfo:c.value,page:m.value,pageSize:f.value}).then(a=>{r.value=!1,a.status?(k.value=a.data.list,D=a.data.count):b.error(a.msg)})},E=a=>{f.value=a,v()},N=a=>{m.value=a,v()},P=()=>{i.value=!0,u.value.id=null,c.value.name=""},L=a=>{u.value={id:a.id,device_name:a.device_name,status:a.status},i.value=!0},M=a=>{X.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Y({id:a}).then(e=>{r.value=!1,e.status?v():b.error(e.msg)})})},T=()=>{r.value=!0,Z({Info:u.value}).then(a=>{r.value=!1,a.status?(i.value=!1,v()):b.error(a.msg)})};return J(()=>{v()}),(a,e)=>{const z=s("el-input"),V=s("el-form-item"),_=s("el-button"),A=s("el-row"),y=s("el-table-column"),B=s("el-tag"),F=s("el-table"),G=s("el-pagination"),$=s("el-switch"),j=s("el-form"),q=s("el-dialog"),S=K("loading");return g(),O(Q,null,[w("div",h,[l(A,null,{default:n(()=>[l(V,null,{default:n(()=>[l(z,{modelValue:o(c).name,"onUpdate:modelValue":e[0]||(e[0]=t=>o(c).name=t),placeholder:"请输入服务组名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(_,{onClick:e[1]||(e[1]=t=>v()),style:{"margin-left":"10px"}},{default:n(()=>[...e[9]||(e[9]=[d("搜索",-1)])]),_:1}),l(_,{type:"primary",onClick:e[2]||(e[2]=t=>P()),style:{"margin-left":"10px"}},{default:n(()=>[...e[10]||(e[10]=[d("添加",-1)])]),_:1})]),_:1})]),I((g(),x(F,{data:o(k),style:{width:"100%"},"row-key":"id"},{default:n(()=>[l(y,{prop:"id",label:"Id",width:"100"}),l(y,{prop:"device_name",label:"服务组名称"}),l(y,{prop:"status",label:"状态"},{default:n(t=>[t.row.status==1?(g(),x(B,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[11]||(e[11]=[d("正常",-1)])]),_:1})):U("",!0),t.row.status==0?(g(),x(B,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[12]||(e[12]=[d("关闭",-1)])]),_:1})):U("",!0)]),_:1}),l(y,{prop:"",label:"操作"},{default:n(t=>[l(_,{type:"primary",onClick:R=>L(t.row),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[13]||(e[13]=[d("修改",-1)])]),_:1},8,["onClick"]),l(_,{type:"danger",onClick:R=>M(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[14]||(e[14]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[S,o(r)]]),w("div",ee,[l(G,{"current-page":o(m),"onUpdate:currentPage":e[3]||(e[3]=t=>C(m)?m.value=t:m=t),"page-size":o(f),"onUpdate:pageSize":e[4]||(e[4]=t=>C(f)?f.value=t:f=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(D),onSizeChange:E,onCurrentChange:N},null,8,["current-page","page-size","total"])]),l(q,{modelValue:o(i),"onUpdate:modelValue":e[8]||(e[8]=t=>C(i)?i.value=t:i=t),title:"服务组信息",width:"30%"},{footer:n(()=>[w("span",te,[l(_,{onClick:e[7]||(e[7]=t=>C(i)?i.value=!1:i=!1)},{default:n(()=>[...e[15]||(e[15]=[d("取消",-1)])]),_:1}),l(_,{type:"primary",onClick:T},{default:n(()=>[...e[16]||(e[16]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[I((g(),x(j,{model:o(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[l(V,{label:"服务组名称:"},{default:n(()=>[l(z,{modelValue:o(u).device_name,"onUpdate:modelValue":e[5]||(e[5]=t=>o(u).device_name=t)},null,8,["modelValue"])]),_:1}),l(V,{label:"服务组状态:"},{default:n(()=>[l($,{modelValue:o(u).status,"onUpdate:modelValue":e[6]||(e[6]=t=>o(u).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(r)]])]),_:1},8,["modelValue"])],64)}}},oe=H(le,[["__scopeId","data-v-4d24df20"]]);export{oe as default}; +import{_ as H,o as J,r as s,c as K,d as g,e as O,k as w,f as l,w as n,h as I,i as o,j as x,l as C,F as Q,g as p,av as W,E as b,q as d,x as U,N as X,aw as Y,ax as Z}from"./index-e65958bd.js";const h={class:"head"},ee={class:"page"},te={class:"dialog-footer"},le={__name:"DevicesConfig",setup(ae){let r=p(!1),c=p({name:""}),u=p({id:null,device_name:"",status:1}),i=p(!1),k=p([]),m=p(1),f=p(15),D=0;const v=()=>{r.value=!0,W({searchInfo:c.value,page:m.value,pageSize:f.value}).then(a=>{r.value=!1,a.status?(k.value=a.data.list,D=a.data.count):b.error(a.msg)})},E=a=>{f.value=a,v()},N=a=>{m.value=a,v()},P=()=>{i.value=!0,u.value.id=null,c.value.name=""},L=a=>{u.value={id:a.id,device_name:a.device_name,status:a.status},i.value=!0},M=a=>{X.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Y({id:a}).then(e=>{r.value=!1,e.status?v():b.error(e.msg)})})},T=()=>{r.value=!0,Z({Info:u.value}).then(a=>{r.value=!1,a.status?(i.value=!1,v()):b.error(a.msg)})};return J(()=>{v()}),(a,e)=>{const z=s("el-input"),V=s("el-form-item"),_=s("el-button"),A=s("el-row"),y=s("el-table-column"),B=s("el-tag"),F=s("el-table"),G=s("el-pagination"),$=s("el-switch"),j=s("el-form"),q=s("el-dialog"),S=K("loading");return g(),O(Q,null,[w("div",h,[l(A,null,{default:n(()=>[l(V,null,{default:n(()=>[l(z,{modelValue:o(c).name,"onUpdate:modelValue":e[0]||(e[0]=t=>o(c).name=t),placeholder:"请输入服务组名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(_,{onClick:e[1]||(e[1]=t=>v()),style:{"margin-left":"10px"}},{default:n(()=>[...e[9]||(e[9]=[d("搜索",-1)])]),_:1}),l(_,{type:"primary",onClick:e[2]||(e[2]=t=>P()),style:{"margin-left":"10px"}},{default:n(()=>[...e[10]||(e[10]=[d("添加",-1)])]),_:1})]),_:1})]),I((g(),x(F,{data:o(k),style:{width:"100%"},"row-key":"id"},{default:n(()=>[l(y,{prop:"id",label:"Id",width:"100"}),l(y,{prop:"device_name",label:"服务组名称"}),l(y,{prop:"status",label:"状态"},{default:n(t=>[t.row.status==1?(g(),x(B,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[11]||(e[11]=[d("正常",-1)])]),_:1})):U("",!0),t.row.status==0?(g(),x(B,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[12]||(e[12]=[d("关闭",-1)])]),_:1})):U("",!0)]),_:1}),l(y,{prop:"",label:"操作"},{default:n(t=>[l(_,{type:"primary",onClick:R=>L(t.row),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[13]||(e[13]=[d("修改",-1)])]),_:1},8,["onClick"]),l(_,{type:"danger",onClick:R=>M(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[14]||(e[14]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[S,o(r)]]),w("div",ee,[l(G,{"current-page":o(m),"onUpdate:currentPage":e[3]||(e[3]=t=>C(m)?m.value=t:m=t),"page-size":o(f),"onUpdate:pageSize":e[4]||(e[4]=t=>C(f)?f.value=t:f=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(D),onSizeChange:E,onCurrentChange:N},null,8,["current-page","page-size","total"])]),l(q,{modelValue:o(i),"onUpdate:modelValue":e[8]||(e[8]=t=>C(i)?i.value=t:i=t),title:"服务组信息",width:"30%"},{footer:n(()=>[w("span",te,[l(_,{onClick:e[7]||(e[7]=t=>C(i)?i.value=!1:i=!1)},{default:n(()=>[...e[15]||(e[15]=[d("取消",-1)])]),_:1}),l(_,{type:"primary",onClick:T},{default:n(()=>[...e[16]||(e[16]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[I((g(),x(j,{model:o(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[l(V,{label:"服务组名称:"},{default:n(()=>[l(z,{modelValue:o(u).device_name,"onUpdate:modelValue":e[5]||(e[5]=t=>o(u).device_name=t)},null,8,["modelValue"])]),_:1}),l(V,{label:"服务组状态:"},{default:n(()=>[l($,{modelValue:o(u).status,"onUpdate:modelValue":e[6]||(e[6]=t=>o(u).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(r)]])]),_:1},8,["modelValue"])],64)}}},oe=H(le,[["__scopeId","data-v-4d24df20"]]);export{oe as default}; diff --git a/Laravel/public/admin/assets/DevicesConfig-cb91914b.css b/Laravel/public/dist/assets/DevicesConfig-cb91914b.css similarity index 100% rename from Laravel/public/admin/assets/DevicesConfig-cb91914b.css rename to Laravel/public/dist/assets/DevicesConfig-cb91914b.css diff --git a/Laravel/public/admin/assets/DoctorYuYue-0d3cb2fd.js b/Laravel/public/dist/assets/DoctorYuYue-91ade57c.js similarity index 74% rename from Laravel/public/admin/assets/DoctorYuYue-0d3cb2fd.js rename to Laravel/public/dist/assets/DoctorYuYue-91ade57c.js index f653875..328636d 100644 --- a/Laravel/public/admin/assets/DoctorYuYue-0d3cb2fd.js +++ b/Laravel/public/dist/assets/DoctorYuYue-91ade57c.js @@ -1 +1 @@ -import{Y as p}from"./YuYue202506-e01c0944.js";import{_ as a,u as d,a as c,d as l,e as i,f as m,i as e,g as t}from"./index-af171713.js";import"./PrintShenQingDan-7546836f.js";const y={class:"DoctorYuYue"},Y={__name:"DoctorYuYue",setup(f){const o=d();c();let u=t(""),s=t([]),n=t(""),_=t(null),r=t(1);return console.log(o.query.regnum),u.value=decodeURIComponent(o.query.regnum),console.log(u.value),s.value=decodeURIComponent(o.query.entrustid),n.value=decodeURIComponent(o.query.episodeid),_.value=1,r.value=1,(v,g)=>(l(),i("div",y,[m(p,{reg_num:e(u),entrust_ids:e(s),episode_id:e(n),appointment_type:e(_),dotype:e(r)},null,8,["reg_num","entrust_ids","episode_id","appointment_type","dotype"])]))}},D=a(Y,[["__scopeId","data-v-180477f8"]]);export{D as default}; +import{Y as p}from"./YuYue202506-f1503368.js";import{_ as a,u as d,a as c,d as l,e as i,f as m,i as e,g as t}from"./index-e65958bd.js";import"./PrintShenQingDan-80054efb.js";const y={class:"DoctorYuYue"},Y={__name:"DoctorYuYue",setup(f){const o=d();c();let u=t(""),s=t([]),n=t(""),_=t(null),r=t(1);return console.log(o.query.regnum),u.value=decodeURIComponent(o.query.regnum),console.log(u.value),s.value=decodeURIComponent(o.query.entrustid),n.value=decodeURIComponent(o.query.episodeid),_.value=1,r.value=1,(v,g)=>(l(),i("div",y,[m(p,{reg_num:e(u),entrust_ids:e(s),episode_id:e(n),appointment_type:e(_),dotype:e(r)},null,8,["reg_num","entrust_ids","episode_id","appointment_type","dotype"])]))}},D=a(Y,[["__scopeId","data-v-180477f8"]]);export{D as default}; diff --git a/Laravel/public/admin/assets/DoctorYuYue-98bf3c96.css b/Laravel/public/dist/assets/DoctorYuYue-98bf3c96.css similarity index 100% rename from Laravel/public/admin/assets/DoctorYuYue-98bf3c96.css rename to Laravel/public/dist/assets/DoctorYuYue-98bf3c96.css diff --git a/Laravel/public/admin/assets/EntrustList-88993719.js b/Laravel/public/dist/assets/EntrustList-a66a4aa1.js similarity index 99% rename from Laravel/public/admin/assets/EntrustList-88993719.js rename to Laravel/public/dist/assets/EntrustList-a66a4aa1.js index be9f41f..d321922 100644 --- a/Laravel/public/admin/assets/EntrustList-88993719.js +++ b/Laravel/public/dist/assets/EntrustList-a66a4aa1.js @@ -1 +1 @@ -import{o as ue,r as m,c as se,d as u,e as i,k as x,f as l,w as a,h as re,i as n,j as _,l as U,g as p,I as de,E,J as ie,X as pe,F as z,t as G,q as f,x as d,v as h,bq as me,P as _e,O as fe}from"./index-af171713.js";const ge={class:"head"},we={key:0},be={key:1},ve={key:0},ye={key:1},Ve={key:0},ke={style:{"white-space":"nowrap"}},xe={key:0},he={key:1},De={key:2},Le={key:3},ce={class:"page"},Ce={style:{"word-break":"break-all"}},Ee={__name:"EntrustList",setup(Se){let y=p(!1),s=p({dateRange:[]}),F=p([]),O=p(null),V=p(1),k=p(15),P=0;const C=()=>{y.value=!0,me({searchInfo:s.value,page:V.value,pageSize:k.value}).then(o=>{y.value=!1,o.status?(F.value=o.data.list,P=o.data.count):E.error(o.msg)})},X=o=>{k.value=o,C()},A=o=>{V.value=o,C()};let R=p([]);const H=o=>{let t=R.value?R.value.length:0;SelectClear(),autoSeleted([o[o.length-1]]),t>R.value.length||FindMatchItem()},K=()=>{Y.value=[],s.value.department_id>0&&ee()};let D=p(!1),B=p(null),L=p(!1);const Q=o=>{D.value=!0,_e({id:o.id}).then(t=>{t.status&&(B.value=t.data)})};let I=p("");const W=o=>{L.value=!0,I.value=o};let J=p([]);const Z=()=>{y.value=!0,de().then(o=>{y.value=!1,o.status?J.value=o.data:E.error(o.msg)})},$=()=>{ie().then(o=>{if(o.status){let t=o.data.datetime.substr(0,10);s.value.dateRange=[t,t],C()}})};let Y=p([]);const ee=()=>{fe({department_id:s.value.department_id}).then(o=>{o.status?Y.value=o.data:E.error(o.msg)})};let N=p([]);const te=()=>{y.value=!0,pe({is_all:!0}).then(o=>{y.value=!1,o.status?N.value=o.data.list:E.error(o.msg)})};return ue(()=>{te(),Z(),$()}),(o,t)=>{const q=m("el-date-picker"),g=m("el-form-item"),w=m("el-option"),c=m("el-select"),S=m("el-input"),M=m("el-button"),le=m("el-row"),r=m("el-table-column"),v=m("el-tag"),T=m("el-table"),ae=m("el-pagination"),j=m("el-dialog"),ne=se("loading");return u(),i("div",null,[x("div",ge,[l(le,null,{default:a(()=>[l(g,null,{default:a(()=>[l(q,{style:{"margin-left":"8px",width:"150px"},modelValue:n(s).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=e=>n(s).dateRange[0]=e),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[17]||(t[17]=x("span",{style:{margin:"0 4px"}},"至",-1)),l(q,{style:{width:"150px"},modelValue:n(s).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=e=>n(s).dateRange[1]=e),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).list_status,"onUpdate:modelValue":t[2]||(t[2]=e=>n(s).list_status=e),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[l(w,{label:"申请中",value:"0"}),l(w,{label:"已预约",value:"1"}),l(w,{label:"已报道",value:"2"}),l(w,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).patient_type,"onUpdate:modelValue":t[3]||(t[3]=e=>n(s).patient_type=e),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[l(w,{label:"住院",value:"0"}),l(w,{label:"门诊",value:"1"}),l(w,{label:"急诊",value:"2"}),l(w,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).department_id,"onUpdate:modelValue":t[4]||(t[4]=e=>n(s).department_id=e),placeholder:"选择科室",onChange:t[5]||(t[5]=e=>K()),style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(u(!0),i(z,null,G(n(N),(e,b)=>(u(),_(w,{key:b,label:e.department_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{multiple:"",filterable:!0,clearable:"",modelValue:n(s).resources,"onUpdate:modelValue":t[6]||(t[6]=e=>n(s).resources=e),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:a(()=>[(u(!0),i(z,null,G(n(Y),(e,b)=>(u(),_(w,{key:b,label:e.department_resources_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).services_group,"onUpdate:modelValue":t[7]||(t[7]=e=>n(s).services_group=e),placeholder:"服务组",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(u(!0),i(z,null,G(n(J),(e,b)=>(u(),_(w,{key:b,label:e.device_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).reg_num,"onUpdate:modelValue":t[8]||(t[8]=e=>n(s).reg_num=e),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).user_name,"onUpdate:modelValue":t[9]||(t[9]=e=>n(s).user_name=e),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).apply_department,"onUpdate:modelValue":t[10]||(t[10]=e=>n(s).apply_department=e),placeholder:"申请科室",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).doctor,"onUpdate:modelValue":t[11]||(t[11]=e=>n(s).doctor=e),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(M,{type:"primary",onClick:t[12]||(t[12]=e=>C()),style:{"margin-left":"10px"}},{default:a(()=>[...t[18]||(t[18]=[f("查询",-1)])]),_:1})]),_:1})]),_:1})]),re((u(),_(T,{data:n(F),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:O,onSelect:H},{default:a(()=>[l(r,{type:"selection",width:"50"}),l(r,{prop:"list_status",label:"状态",width:"80"},{default:a(e=>[e.row.list_status===0?(u(),_(v,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...t[19]||(t[19]=[f("申请中",-1)])]),_:1})):d("",!0),e.row.list_status===1?(u(),_(v,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...t[20]||(t[20]=[f("已预约",-1)])]),_:1})):d("",!0),e.row.list_status===2?(u(),_(v,{key:2,class:"ml-2"},{default:a(()=>[...t[21]||(t[21]=[f("登记",-1)])]),_:1})):d("",!0),e.row.list_status===3?(u(),_(v,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...t[22]||(t[22]=[f("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{prop:"reg_num",label:"登记号",width:"100"}),l(r,{prop:"user_name",label:"姓名"}),l(r,{prop:"user_sex",label:"性别",width:"60"},{default:a(e=>[e.row.user_sex==1?(u(),i("span",we,"男")):d("",!0),e.row.user_sex==2?(u(),i("span",be,"女")):d("",!0)]),_:1}),l(r,{prop:"age",label:"年龄",width:"115"}),l(r,{prop:"entrust",label:"医嘱",width:"200"}),l(r,{prop:"is_pay",label:"是否交费",width:"80"},{default:a(e=>[e.row.is_pay==1?(u(),i("span",ve,"是")):d("",!0),e.row.is_pay==0?(u(),i("span",ye,"否")):d("",!0)]),_:1}),l(r,{prop:"reservation_date",label:"预约日期",width:"120"}),l(r,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:a(e=>[e.row.period_begin_time&&e.row.period_end_time?(u(),i("span",Ve,h(e.row.period_begin_time.substring(0,5))+"~"+h(e.row.period_end_time.substring(0,5)),1)):d("",!0)]),_:1}),l(r,{prop:"implement_department",label:"预约科室",width:"120"}),l(r,{prop:"department_resources_name",label:"预约资源",width:"120"}),l(r,{prop:"devices",label:"服务组"},{default:a(e=>[x("div",ke,[(u(!0),i(z,null,G(e.row.devices,(b,oe)=>(u(),i("span",{key:oe},h(b.device_name+" "),1))),128))])]),_:1}),l(r,{prop:"reservation_department",label:"申请科室",width:"120"}),l(r,{prop:"",label:"医嘱时间",width:"160"},{default:a(e=>[f(h(e.row.entrust_date)+" "+h(e.row.entrust_time),1)]),_:1}),l(r,{prop:"docotr",label:"申请医生",width:"80"}),l(r,{prop:"patient_type",label:"病人类型",width:"80"},{default:a(e=>[e.row.patient_type==0?(u(),i("span",xe,"住院")):d("",!0),e.row.patient_type==1?(u(),i("span",he,"门诊")):d("",!0),e.row.patient_type==2?(u(),i("span",De,"急诊")):d("",!0),e.row.patient_type==3?(u(),i("span",Le,"体检")):d("",!0)]),_:1}),l(r,{prop:"user_phone",label:"电话",width:"120"}),l(r,{prop:"department_resources_name",label:"操作",width:"120"},{default:a(e=>[l(M,{onClick:b=>Q(e.row),size:"small"},{default:a(()=>[...t[23]||(t[23]=[f("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ne,n(y)]]),x("div",ce,[l(ae,{"current-page":n(V),"onUpdate:currentPage":t[13]||(t[13]=e=>U(V)?V.value=e:V=e),"page-size":n(k),"onUpdate:pageSize":t[14]||(t[14]=e=>U(k)?k.value=e:k=e),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(P),onSizeChange:X,onCurrentChange:A},null,8,["current-page","page-size","total"])]),l(j,{modelValue:n(D),"onUpdate:modelValue":t[15]||(t[15]=e=>U(D)?D.value=e:D=e),title:"变更记录",width:"50%"},{default:a(()=>[x("div",null,[l(T,{data:n(B),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(r,{prop:"list_status",label:"状态",width:"100"},{default:a(e=>[e.row.new_status==0?(u(),_(v,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...t[24]||(t[24]=[f("申请中",-1)])]),_:1})):d("",!0),e.row.new_status==1?(u(),_(v,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...t[25]||(t[25]=[f("已预约",-1)])]),_:1})):d("",!0),e.row.new_status==2?(u(),_(v,{key:2,class:"ml-2"},{default:a(()=>[...t[26]||(t[26]=[f("登记",-1)])]),_:1})):d("",!0),e.row.new_status==3?(u(),_(v,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...t[27]||(t[27]=[f("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{prop:"reg_num",label:"登记号"}),l(r,{prop:"note",label:"说明"}),l(r,{prop:"created_at",label:"记录时间"}),l(r,{prop:"data",label:"状态",width:"100"},{default:a(e=>[l(M,{onClick:b=>W(e.row.data),size:"small"},{default:a(()=>[...t[28]||(t[28]=[f("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),l(j,{modelValue:n(L),"onUpdate:modelValue":t[16]||(t[16]=e=>U(L)?L.value=e:L=e),title:"查看dataJson",width:"40%"},{default:a(()=>[x("div",Ce,h(n(I)),1)]),_:1},8,["modelValue"])])}}};export{Ee as default}; +import{o as ue,r as m,c as se,d as u,e as i,k as x,f as l,w as a,h as re,i as n,j as _,l as U,g as p,I as de,E,J as ie,X as pe,F as z,t as G,q as f,x as d,v as h,bq as me,P as _e,O as fe}from"./index-e65958bd.js";const ge={class:"head"},we={key:0},be={key:1},ve={key:0},ye={key:1},Ve={key:0},ke={style:{"white-space":"nowrap"}},xe={key:0},he={key:1},De={key:2},Le={key:3},ce={class:"page"},Ce={style:{"word-break":"break-all"}},Ee={__name:"EntrustList",setup(Se){let y=p(!1),s=p({dateRange:[]}),F=p([]),O=p(null),V=p(1),k=p(15),P=0;const C=()=>{y.value=!0,me({searchInfo:s.value,page:V.value,pageSize:k.value}).then(o=>{y.value=!1,o.status?(F.value=o.data.list,P=o.data.count):E.error(o.msg)})},X=o=>{k.value=o,C()},A=o=>{V.value=o,C()};let R=p([]);const H=o=>{let t=R.value?R.value.length:0;SelectClear(),autoSeleted([o[o.length-1]]),t>R.value.length||FindMatchItem()},K=()=>{Y.value=[],s.value.department_id>0&&ee()};let D=p(!1),B=p(null),L=p(!1);const Q=o=>{D.value=!0,_e({id:o.id}).then(t=>{t.status&&(B.value=t.data)})};let I=p("");const W=o=>{L.value=!0,I.value=o};let J=p([]);const Z=()=>{y.value=!0,de().then(o=>{y.value=!1,o.status?J.value=o.data:E.error(o.msg)})},$=()=>{ie().then(o=>{if(o.status){let t=o.data.datetime.substr(0,10);s.value.dateRange=[t,t],C()}})};let Y=p([]);const ee=()=>{fe({department_id:s.value.department_id}).then(o=>{o.status?Y.value=o.data:E.error(o.msg)})};let N=p([]);const te=()=>{y.value=!0,pe({is_all:!0}).then(o=>{y.value=!1,o.status?N.value=o.data.list:E.error(o.msg)})};return ue(()=>{te(),Z(),$()}),(o,t)=>{const q=m("el-date-picker"),g=m("el-form-item"),w=m("el-option"),c=m("el-select"),S=m("el-input"),M=m("el-button"),le=m("el-row"),r=m("el-table-column"),v=m("el-tag"),T=m("el-table"),ae=m("el-pagination"),j=m("el-dialog"),ne=se("loading");return u(),i("div",null,[x("div",ge,[l(le,null,{default:a(()=>[l(g,null,{default:a(()=>[l(q,{style:{"margin-left":"8px",width:"150px"},modelValue:n(s).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=e=>n(s).dateRange[0]=e),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[17]||(t[17]=x("span",{style:{margin:"0 4px"}},"至",-1)),l(q,{style:{width:"150px"},modelValue:n(s).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=e=>n(s).dateRange[1]=e),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).list_status,"onUpdate:modelValue":t[2]||(t[2]=e=>n(s).list_status=e),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[l(w,{label:"申请中",value:"0"}),l(w,{label:"已预约",value:"1"}),l(w,{label:"已报道",value:"2"}),l(w,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).patient_type,"onUpdate:modelValue":t[3]||(t[3]=e=>n(s).patient_type=e),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[l(w,{label:"住院",value:"0"}),l(w,{label:"门诊",value:"1"}),l(w,{label:"急诊",value:"2"}),l(w,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).department_id,"onUpdate:modelValue":t[4]||(t[4]=e=>n(s).department_id=e),placeholder:"选择科室",onChange:t[5]||(t[5]=e=>K()),style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(u(!0),i(z,null,G(n(N),(e,b)=>(u(),_(w,{key:b,label:e.department_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{multiple:"",filterable:!0,clearable:"",modelValue:n(s).resources,"onUpdate:modelValue":t[6]||(t[6]=e=>n(s).resources=e),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:a(()=>[(u(!0),i(z,null,G(n(Y),(e,b)=>(u(),_(w,{key:b,label:e.department_resources_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(c,{filterable:!0,clearable:"",modelValue:n(s).services_group,"onUpdate:modelValue":t[7]||(t[7]=e=>n(s).services_group=e),placeholder:"服务组",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(u(!0),i(z,null,G(n(J),(e,b)=>(u(),_(w,{key:b,label:e.device_name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).reg_num,"onUpdate:modelValue":t[8]||(t[8]=e=>n(s).reg_num=e),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).user_name,"onUpdate:modelValue":t[9]||(t[9]=e=>n(s).user_name=e),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).apply_department,"onUpdate:modelValue":t[10]||(t[10]=e=>n(s).apply_department=e),placeholder:"申请科室",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(S,{modelValue:n(s).doctor,"onUpdate:modelValue":t[11]||(t[11]=e=>n(s).doctor=e),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(g,null,{default:a(()=>[l(M,{type:"primary",onClick:t[12]||(t[12]=e=>C()),style:{"margin-left":"10px"}},{default:a(()=>[...t[18]||(t[18]=[f("查询",-1)])]),_:1})]),_:1})]),_:1})]),re((u(),_(T,{data:n(F),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:O,onSelect:H},{default:a(()=>[l(r,{type:"selection",width:"50"}),l(r,{prop:"list_status",label:"状态",width:"80"},{default:a(e=>[e.row.list_status===0?(u(),_(v,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...t[19]||(t[19]=[f("申请中",-1)])]),_:1})):d("",!0),e.row.list_status===1?(u(),_(v,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...t[20]||(t[20]=[f("已预约",-1)])]),_:1})):d("",!0),e.row.list_status===2?(u(),_(v,{key:2,class:"ml-2"},{default:a(()=>[...t[21]||(t[21]=[f("登记",-1)])]),_:1})):d("",!0),e.row.list_status===3?(u(),_(v,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...t[22]||(t[22]=[f("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{prop:"reg_num",label:"登记号",width:"100"}),l(r,{prop:"user_name",label:"姓名"}),l(r,{prop:"user_sex",label:"性别",width:"60"},{default:a(e=>[e.row.user_sex==1?(u(),i("span",we,"男")):d("",!0),e.row.user_sex==2?(u(),i("span",be,"女")):d("",!0)]),_:1}),l(r,{prop:"age",label:"年龄",width:"115"}),l(r,{prop:"entrust",label:"医嘱",width:"200"}),l(r,{prop:"is_pay",label:"是否交费",width:"80"},{default:a(e=>[e.row.is_pay==1?(u(),i("span",ve,"是")):d("",!0),e.row.is_pay==0?(u(),i("span",ye,"否")):d("",!0)]),_:1}),l(r,{prop:"reservation_date",label:"预约日期",width:"120"}),l(r,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:a(e=>[e.row.period_begin_time&&e.row.period_end_time?(u(),i("span",Ve,h(e.row.period_begin_time.substring(0,5))+"~"+h(e.row.period_end_time.substring(0,5)),1)):d("",!0)]),_:1}),l(r,{prop:"implement_department",label:"预约科室",width:"120"}),l(r,{prop:"department_resources_name",label:"预约资源",width:"120"}),l(r,{prop:"devices",label:"服务组"},{default:a(e=>[x("div",ke,[(u(!0),i(z,null,G(e.row.devices,(b,oe)=>(u(),i("span",{key:oe},h(b.device_name+" "),1))),128))])]),_:1}),l(r,{prop:"reservation_department",label:"申请科室",width:"120"}),l(r,{prop:"",label:"医嘱时间",width:"160"},{default:a(e=>[f(h(e.row.entrust_date)+" "+h(e.row.entrust_time),1)]),_:1}),l(r,{prop:"docotr",label:"申请医生",width:"80"}),l(r,{prop:"patient_type",label:"病人类型",width:"80"},{default:a(e=>[e.row.patient_type==0?(u(),i("span",xe,"住院")):d("",!0),e.row.patient_type==1?(u(),i("span",he,"门诊")):d("",!0),e.row.patient_type==2?(u(),i("span",De,"急诊")):d("",!0),e.row.patient_type==3?(u(),i("span",Le,"体检")):d("",!0)]),_:1}),l(r,{prop:"user_phone",label:"电话",width:"120"}),l(r,{prop:"department_resources_name",label:"操作",width:"120"},{default:a(e=>[l(M,{onClick:b=>Q(e.row),size:"small"},{default:a(()=>[...t[23]||(t[23]=[f("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ne,n(y)]]),x("div",ce,[l(ae,{"current-page":n(V),"onUpdate:currentPage":t[13]||(t[13]=e=>U(V)?V.value=e:V=e),"page-size":n(k),"onUpdate:pageSize":t[14]||(t[14]=e=>U(k)?k.value=e:k=e),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(P),onSizeChange:X,onCurrentChange:A},null,8,["current-page","page-size","total"])]),l(j,{modelValue:n(D),"onUpdate:modelValue":t[15]||(t[15]=e=>U(D)?D.value=e:D=e),title:"变更记录",width:"50%"},{default:a(()=>[x("div",null,[l(T,{data:n(B),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(r,{prop:"list_status",label:"状态",width:"100"},{default:a(e=>[e.row.new_status==0?(u(),_(v,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...t[24]||(t[24]=[f("申请中",-1)])]),_:1})):d("",!0),e.row.new_status==1?(u(),_(v,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...t[25]||(t[25]=[f("已预约",-1)])]),_:1})):d("",!0),e.row.new_status==2?(u(),_(v,{key:2,class:"ml-2"},{default:a(()=>[...t[26]||(t[26]=[f("登记",-1)])]),_:1})):d("",!0),e.row.new_status==3?(u(),_(v,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...t[27]||(t[27]=[f("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{prop:"reg_num",label:"登记号"}),l(r,{prop:"note",label:"说明"}),l(r,{prop:"created_at",label:"记录时间"}),l(r,{prop:"data",label:"状态",width:"100"},{default:a(e=>[l(M,{onClick:b=>W(e.row.data),size:"small"},{default:a(()=>[...t[28]||(t[28]=[f("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),l(j,{modelValue:n(L),"onUpdate:modelValue":t[16]||(t[16]=e=>U(L)?L.value=e:L=e),title:"查看dataJson",width:"40%"},{default:a(()=>[x("div",Ce,h(n(I)),1)]),_:1},8,["modelValue"])])}}};export{Ee as default}; diff --git a/Laravel/public/admin/assets/HisLogin-2d68b6ea.css b/Laravel/public/dist/assets/HisLogin-2d68b6ea.css similarity index 100% rename from Laravel/public/admin/assets/HisLogin-2d68b6ea.css rename to Laravel/public/dist/assets/HisLogin-2d68b6ea.css diff --git a/Laravel/public/admin/assets/HisLogin-94717c91.js b/Laravel/public/dist/assets/HisLogin-f1f8acc7.js similarity index 96% rename from Laravel/public/admin/assets/HisLogin-94717c91.js rename to Laravel/public/dist/assets/HisLogin-f1f8acc7.js index 08037aa..1008d72 100644 --- a/Laravel/public/admin/assets/HisLogin-94717c91.js +++ b/Laravel/public/dist/assets/HisLogin-f1f8acc7.js @@ -1 +1 @@ -import{_ as p,o as v,r as m,d as c,e as l,i as a,k as n,x as _,f as u,w as k,v as x,H as y,y as h,g}from"./index-af171713.js";const w={class:"his-login-page"},I={key:0,class:"login-loading"},L={key:1,class:"error-card"},C={class:"error-card-icon"},H={class:"error-card-msg"},S={__name:"HisLogin",setup(B){let t=g(!0),s=g("");const f=()=>{t.value=!0,y({usercode:r("usercode"),deptcode:r("deptcode"),cardno:r("cardno")}).then(o=>{if(o.status){sessionStorage.setItem("token",o.data.access_token),sessionStorage.setItem("refreshToken",o.data.refresh_token),sessionStorage.setItem("default_reg_num",r("cardno"));var e=sessionStorage.getItem("token");e!=null&&e==o.data.access_token?(sessionStorage.setItem("LoginType","HisLogin"),window.location.href="./#/yewu/mainList?type=doctor"):(s.value="登录失败",t.value=!1)}else s.value=o.msg,t.value=!1}).catch(()=>{s.value="网络请求失败,请检查网络连接",t.value=!1})};v(()=>{f()});function r(o,e){e||(e=decodeURIComponent(window.location.href)),o=o.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+o+"(=([^&#]*)|&|#|$)"),d=i.exec(e);return d?d[2]?decodeURIComponent(d[2].replace(/\+/g," ")):"":null}return(o,e)=>{const i=m("el-icon");return c(),l("div",w,[a(t)&&!a(s)?(c(),l("div",I,[...e[0]||(e[0]=[n("div",{class:"loading-text"},"正在登录...",-1)])])):_("",!0),a(s)?(c(),l("div",L,[n("div",C,[u(i,{size:48,color:"#F56C6C"},{default:k(()=>[u(a(h))]),_:1})]),e[1]||(e[1]=n("div",{class:"error-card-title"},"登录失败",-1)),n("div",H,x(a(s)),1),e[2]||(e[2]=n("div",{class:"error-card-hint"},"请检查 HIS 系统传参配置",-1))])):_("",!0)])}}},R=p(S,[["__scopeId","data-v-84a1486b"]]);export{R as default}; +import{_ as p,o as v,r as m,d as c,e as l,i as a,k as n,x as _,f as u,w as k,v as x,H as y,y as h,g}from"./index-e65958bd.js";const w={class:"his-login-page"},I={key:0,class:"login-loading"},L={key:1,class:"error-card"},C={class:"error-card-icon"},H={class:"error-card-msg"},S={__name:"HisLogin",setup(B){let t=g(!0),s=g("");const f=()=>{t.value=!0,y({usercode:r("usercode"),deptcode:r("deptcode"),cardno:r("cardno")}).then(o=>{if(o.status){sessionStorage.setItem("token",o.data.access_token),sessionStorage.setItem("refreshToken",o.data.refresh_token),sessionStorage.setItem("default_reg_num",r("cardno"));var e=sessionStorage.getItem("token");e!=null&&e==o.data.access_token?(sessionStorage.setItem("LoginType","HisLogin"),window.location.href="./#/yewu/mainList?type=doctor"):(s.value="登录失败",t.value=!1)}else s.value=o.msg,t.value=!1}).catch(()=>{s.value="网络请求失败,请检查网络连接",t.value=!1})};v(()=>{f()});function r(o,e){e||(e=decodeURIComponent(window.location.href)),o=o.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&]"+o+"(=([^&#]*)|&|#|$)"),d=i.exec(e);return d?d[2]?decodeURIComponent(d[2].replace(/\+/g," ")):"":null}return(o,e)=>{const i=m("el-icon");return c(),l("div",w,[a(t)&&!a(s)?(c(),l("div",I,[...e[0]||(e[0]=[n("div",{class:"loading-text"},"正在登录...",-1)])])):_("",!0),a(s)?(c(),l("div",L,[n("div",C,[u(i,{size:48,color:"#F56C6C"},{default:k(()=>[u(a(h))]),_:1})]),e[1]||(e[1]=n("div",{class:"error-card-title"},"登录失败",-1)),n("div",H,x(a(s)),1),e[2]||(e[2]=n("div",{class:"error-card-hint"},"请检查 HIS 系统传参配置",-1))])):_("",!0)])}}},R=p(S,[["__scopeId","data-v-84a1486b"]]);export{R as default}; diff --git a/Laravel/public/admin/assets/HolidayMngr-27e47c57.css b/Laravel/public/dist/assets/HolidayMngr-27e47c57.css similarity index 100% rename from Laravel/public/admin/assets/HolidayMngr-27e47c57.css rename to Laravel/public/dist/assets/HolidayMngr-27e47c57.css diff --git a/Laravel/public/admin/assets/HolidayMngr-6ebe7675.js b/Laravel/public/dist/assets/HolidayMngr-5f809cf1.js similarity index 98% rename from Laravel/public/admin/assets/HolidayMngr-6ebe7675.js rename to Laravel/public/dist/assets/HolidayMngr-5f809cf1.js index ff715e5..472c780 100644 --- a/Laravel/public/admin/assets/HolidayMngr-6ebe7675.js +++ b/Laravel/public/dist/assets/HolidayMngr-5f809cf1.js @@ -1 +1 @@ -import{_ as R,o as J,r as d,c as K,d as V,e as O,k as M,f as l,w as a,h as S,i as n,j as x,l as w,F as Q,g as p,bh as W,E as k,q as r,x as H,N as X,bi as Z,bj as h}from"./index-af171713.js";const ee={class:"head"},le={class:"page"},te={class:"dialog-footer"},ae={__name:"HolidayMngr",setup(oe){let m=p(!1),i=p({date_start:"",date_end:"",type:null}),u=p({id:null,date:"",type:2}),s=p(!1),Y=p([]),f=p(1),_=p(15),z=0;const g=()=>{m.value=!0,W({searchInfo:i.value,page:f.value,pageSize:_.value}).then(o=>{m.value=!1,o.status?(Y.value=o.data.list,z=o.data.count):k.error(o.msg)})},I=o=>{_.value=o,g()},E=o=>{f.value=o,g()},N=()=>{s.value=!0,u.value={id:null,date:"",type:2}},P=o=>{u.value={id:o.id,date:o.date,type:o.type},s.value=!0},T=o=>{X.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Z({id:o}).then(e=>{e.status?g():k.error(e.msg)})})},j=()=>{if(!u.value.date){k.error("请选择日期");return}m.value=!0,h({Info:u.value}).then(o=>{m.value=!1,o.status?(s.value=!1,g()):k.error(o.msg)})};return J(()=>{g()}),(o,e)=>{const C=d("el-date-picker"),b=d("el-form-item"),c=d("el-option"),D=d("el-select"),y=d("el-button"),A=d("el-row"),v=d("el-table-column"),U=d("el-tag"),F=d("el-table"),G=d("el-pagination"),L=d("el-form"),$=d("el-dialog"),B=K("loading");return V(),O(Q,null,[M("div",ee,[l(A,null,{default:a(()=>[l(b,null,{default:a(()=>[l(C,{modelValue:n(i).date_start,"onUpdate:modelValue":e[0]||(e[0]=t=>n(i).date_start=t),type:"date",placeholder:"开始日期","value-format":"YYYY-MM-DD",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(b,null,{default:a(()=>[l(C,{modelValue:n(i).date_end,"onUpdate:modelValue":e[1]||(e[1]=t=>n(i).date_end=t),type:"date",placeholder:"结束日期","value-format":"YYYY-MM-DD",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(b,null,{default:a(()=>[l(D,{modelValue:n(i).type,"onUpdate:modelValue":e[2]||(e[2]=t=>n(i).type=t),placeholder:"类型",clearable:"",style:{"margin-left":"10px",width:"120px"}},{default:a(()=>[l(c,{label:"节假日",value:2}),l(c,{label:"工作日(补班)",value:1})]),_:1},8,["modelValue"])]),_:1}),l(y,{onClick:e[3]||(e[3]=t=>g()),style:{"margin-left":"10px"}},{default:a(()=>[...e[11]||(e[11]=[r("搜索",-1)])]),_:1}),l(y,{type:"primary",onClick:e[4]||(e[4]=t=>N()),style:{"margin-left":"10px"}},{default:a(()=>[...e[12]||(e[12]=[r("添加",-1)])]),_:1})]),_:1})]),S((V(),x(F,{data:n(Y),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(v,{prop:"id",label:"Id",width:"100"}),l(v,{prop:"date",label:"日期",width:"180"}),l(v,{prop:"year",label:"年份",width:"100"}),l(v,{prop:"type",label:"类型",width:"150"},{default:a(t=>[t.row.type==2?(V(),x(U,{key:0,type:"danger"},{default:a(()=>[...e[13]||(e[13]=[r("节假日",-1)])]),_:1})):H("",!0),t.row.type==1?(V(),x(U,{key:1,type:"success"},{default:a(()=>[...e[14]||(e[14]=[r("工作日(补班)",-1)])]),_:1})):H("",!0)]),_:1}),l(v,{prop:"created_at",label:"创建时间"}),l(v,{prop:"",label:"操作",width:"180"},{default:a(t=>[l(y,{type:"primary",onClick:q=>P(t.row),size:"small",style:{"margin-left":"10px"}},{default:a(()=>[...e[15]||(e[15]=[r("修改",-1)])]),_:1},8,["onClick"]),l(y,{type:"danger",onClick:q=>T(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:a(()=>[...e[16]||(e[16]=[r("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,n(m)]]),M("div",le,[l(G,{"current-page":n(f),"onUpdate:currentPage":e[5]||(e[5]=t=>w(f)?f.value=t:f=t),"page-size":n(_),"onUpdate:pageSize":e[6]||(e[6]=t=>w(_)?_.value=t:_=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(z),onSizeChange:I,onCurrentChange:E},null,8,["current-page","page-size","total"])]),l($,{modelValue:n(s),"onUpdate:modelValue":e[10]||(e[10]=t=>w(s)?s.value=t:s=t),title:"节假日信息",width:"30%"},{footer:a(()=>[M("span",te,[l(y,{onClick:e[9]||(e[9]=t=>w(s)?s.value=!1:s=!1)},{default:a(()=>[...e[17]||(e[17]=[r("取消",-1)])]),_:1}),l(y,{type:"primary",onClick:j},{default:a(()=>[...e[18]||(e[18]=[r("确定",-1)])]),_:1})])]),default:a(()=>[S((V(),x(L,{model:n(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[l(b,{label:"日期:"},{default:a(()=>[l(C,{modelValue:n(u).date,"onUpdate:modelValue":e[7]||(e[7]=t=>n(u).date=t),type:"date",placeholder:"选择日期","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(b,{label:"类型:"},{default:a(()=>[l(D,{modelValue:n(u).type,"onUpdate:modelValue":e[8]||(e[8]=t=>n(u).type=t),style:{width:"100%"}},{default:a(()=>[l(c,{label:"节假日",value:2}),l(c,{label:"工作日(补班)",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[B,n(m)]])]),_:1},8,["modelValue"])],64)}}},de=R(ae,[["__scopeId","data-v-6eb2cce3"]]);export{de as default}; +import{_ as R,o as J,r as d,c as K,d as V,e as O,k as M,f as l,w as a,h as S,i as n,j as x,l as w,F as Q,g as p,bh as W,E as k,q as r,x as H,N as X,bi as Z,bj as h}from"./index-e65958bd.js";const ee={class:"head"},le={class:"page"},te={class:"dialog-footer"},ae={__name:"HolidayMngr",setup(oe){let m=p(!1),i=p({date_start:"",date_end:"",type:null}),u=p({id:null,date:"",type:2}),s=p(!1),Y=p([]),f=p(1),_=p(15),z=0;const g=()=>{m.value=!0,W({searchInfo:i.value,page:f.value,pageSize:_.value}).then(o=>{m.value=!1,o.status?(Y.value=o.data.list,z=o.data.count):k.error(o.msg)})},I=o=>{_.value=o,g()},E=o=>{f.value=o,g()},N=()=>{s.value=!0,u.value={id:null,date:"",type:2}},P=o=>{u.value={id:o.id,date:o.date,type:o.type},s.value=!0},T=o=>{X.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Z({id:o}).then(e=>{e.status?g():k.error(e.msg)})})},j=()=>{if(!u.value.date){k.error("请选择日期");return}m.value=!0,h({Info:u.value}).then(o=>{m.value=!1,o.status?(s.value=!1,g()):k.error(o.msg)})};return J(()=>{g()}),(o,e)=>{const C=d("el-date-picker"),b=d("el-form-item"),c=d("el-option"),D=d("el-select"),y=d("el-button"),A=d("el-row"),v=d("el-table-column"),U=d("el-tag"),F=d("el-table"),G=d("el-pagination"),L=d("el-form"),$=d("el-dialog"),B=K("loading");return V(),O(Q,null,[M("div",ee,[l(A,null,{default:a(()=>[l(b,null,{default:a(()=>[l(C,{modelValue:n(i).date_start,"onUpdate:modelValue":e[0]||(e[0]=t=>n(i).date_start=t),type:"date",placeholder:"开始日期","value-format":"YYYY-MM-DD",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(b,null,{default:a(()=>[l(C,{modelValue:n(i).date_end,"onUpdate:modelValue":e[1]||(e[1]=t=>n(i).date_end=t),type:"date",placeholder:"结束日期","value-format":"YYYY-MM-DD",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),l(b,null,{default:a(()=>[l(D,{modelValue:n(i).type,"onUpdate:modelValue":e[2]||(e[2]=t=>n(i).type=t),placeholder:"类型",clearable:"",style:{"margin-left":"10px",width:"120px"}},{default:a(()=>[l(c,{label:"节假日",value:2}),l(c,{label:"工作日(补班)",value:1})]),_:1},8,["modelValue"])]),_:1}),l(y,{onClick:e[3]||(e[3]=t=>g()),style:{"margin-left":"10px"}},{default:a(()=>[...e[11]||(e[11]=[r("搜索",-1)])]),_:1}),l(y,{type:"primary",onClick:e[4]||(e[4]=t=>N()),style:{"margin-left":"10px"}},{default:a(()=>[...e[12]||(e[12]=[r("添加",-1)])]),_:1})]),_:1})]),S((V(),x(F,{data:n(Y),style:{width:"100%"},"row-key":"id"},{default:a(()=>[l(v,{prop:"id",label:"Id",width:"100"}),l(v,{prop:"date",label:"日期",width:"180"}),l(v,{prop:"year",label:"年份",width:"100"}),l(v,{prop:"type",label:"类型",width:"150"},{default:a(t=>[t.row.type==2?(V(),x(U,{key:0,type:"danger"},{default:a(()=>[...e[13]||(e[13]=[r("节假日",-1)])]),_:1})):H("",!0),t.row.type==1?(V(),x(U,{key:1,type:"success"},{default:a(()=>[...e[14]||(e[14]=[r("工作日(补班)",-1)])]),_:1})):H("",!0)]),_:1}),l(v,{prop:"created_at",label:"创建时间"}),l(v,{prop:"",label:"操作",width:"180"},{default:a(t=>[l(y,{type:"primary",onClick:q=>P(t.row),size:"small",style:{"margin-left":"10px"}},{default:a(()=>[...e[15]||(e[15]=[r("修改",-1)])]),_:1},8,["onClick"]),l(y,{type:"danger",onClick:q=>T(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:a(()=>[...e[16]||(e[16]=[r("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,n(m)]]),M("div",le,[l(G,{"current-page":n(f),"onUpdate:currentPage":e[5]||(e[5]=t=>w(f)?f.value=t:f=t),"page-size":n(_),"onUpdate:pageSize":e[6]||(e[6]=t=>w(_)?_.value=t:_=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(z),onSizeChange:I,onCurrentChange:E},null,8,["current-page","page-size","total"])]),l($,{modelValue:n(s),"onUpdate:modelValue":e[10]||(e[10]=t=>w(s)?s.value=t:s=t),title:"节假日信息",width:"30%"},{footer:a(()=>[M("span",te,[l(y,{onClick:e[9]||(e[9]=t=>w(s)?s.value=!1:s=!1)},{default:a(()=>[...e[17]||(e[17]=[r("取消",-1)])]),_:1}),l(y,{type:"primary",onClick:j},{default:a(()=>[...e[18]||(e[18]=[r("确定",-1)])]),_:1})])]),default:a(()=>[S((V(),x(L,{model:n(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[l(b,{label:"日期:"},{default:a(()=>[l(C,{modelValue:n(u).date,"onUpdate:modelValue":e[7]||(e[7]=t=>n(u).date=t),type:"date",placeholder:"选择日期","value-format":"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(b,{label:"类型:"},{default:a(()=>[l(D,{modelValue:n(u).type,"onUpdate:modelValue":e[8]||(e[8]=t=>n(u).type=t),style:{width:"100%"}},{default:a(()=>[l(c,{label:"节假日",value:2}),l(c,{label:"工作日(补班)",value:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[B,n(m)]])]),_:1},8,["modelValue"])],64)}}},de=R(ae,[["__scopeId","data-v-6eb2cce3"]]);export{de as default}; diff --git a/Laravel/public/admin/assets/InpatientWardConfig-3498d829.css b/Laravel/public/dist/assets/InpatientWardConfig-3498d829.css similarity index 100% rename from Laravel/public/admin/assets/InpatientWardConfig-3498d829.css rename to Laravel/public/dist/assets/InpatientWardConfig-3498d829.css diff --git a/Laravel/public/admin/assets/InpatientWardConfig-3d6cac27.js b/Laravel/public/dist/assets/InpatientWardConfig-6be32f8e.js similarity index 98% rename from Laravel/public/admin/assets/InpatientWardConfig-3d6cac27.js rename to Laravel/public/dist/assets/InpatientWardConfig-6be32f8e.js index 2488692..21372bb 100644 --- a/Laravel/public/admin/assets/InpatientWardConfig-3d6cac27.js +++ b/Laravel/public/dist/assets/InpatientWardConfig-6be32f8e.js @@ -1 +1 @@ -import{_ as te,Z as ae,o as ne,r as s,c as oe,d as g,e as P,k as I,f as a,w as n,h as B,i as o,j as y,l as x,F as M,g as p,bl as se,E as V,az as ue,q as d,x as L,v as de,t as ie,aB as re,N as pe,bm as me,bn as fe}from"./index-af171713.js";const ge={class:"head"},ve=["onClick"],_e={class:"page"},ye={class:"dialog-footer"},Ve={class:"dialog-footer"},be={__name:"InpatientWardConfig",setup(we){const T=ae(()=>E.value.filter(t=>t.id==2));let i=p(!1),c=p({name:""}),v=p({id:null,name:"",status:1}),r=p(!1),W=p([]),b=p(1),w=p(15),D=0;const _=()=>{i.value=!0,se({searchInfo:c.value,page:b.value,pageSize:w.value}).then(t=>{i.value=!1,t.status?(W.value=t.data.list,D=t.data.count):V.error(t.msg)})},A=t=>{w.value=t,_()},F=t=>{b.value=t,_()};let m=p(!1),u=p({id:0,department_id:null,ward:null,cname:"",uname:"",groupId:"",status:1});const j=t=>{m.value=!0,u.value.ward=t.name},q=()=>{if(u.value.cname==""||u.value.uname==""||u.value.groupId=="")return V.error("请填写全部信息"),!1;re({userInfo:u.value}).then(t=>{i.value=!1,t.status=="ok"?(m.value=!1,V({message:"添加成功",type:"success"}),_()):V.error(t.msg)})},R=()=>{r.value=!0,v.id=null,c.name=""},Z=t=>{v.value={id:t.id,name:t.name,status:t.status},r.value=!0},H=t=>{pe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{me({id:t}).then(e=>{i.value=!1,e.status?_():V.error(e.msg)})})},J=()=>{i.value=!0,fe({Info:v.value}).then(t=>{i.value=!1,t.status?(r.value=!1,_()):V.error(t.msg)})};let E=p("");const K=()=>{ue().then(t=>{i.value=!1,t.status=="ok"?E.value=t.list:V.error(t.msg)})},O=t=>{window.location.href="./#/adminUserList?ward="+t.name};return ne(()=>{K(),_()}),(t,e)=>{const U=s("el-input"),C=s("el-form-item"),f=s("el-button"),Q=s("el-row"),k=s("el-table-column"),N=s("el-tag"),X=s("el-table"),Y=s("el-pagination"),h=s("el-switch"),$=s("el-form"),G=s("el-dialog"),ee=s("el-option"),le=s("el-select"),S=oe("loading");return g(),P(M,null,[I("div",ge,[a(Q,null,{default:n(()=>[a(C,null,{default:n(()=>[a(U,{modelValue:o(c).name,"onUpdate:modelValue":e[0]||(e[0]=l=>o(c).name=l),placeholder:"请输入病区名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),a(f,{onClick:e[1]||(e[1]=l=>_()),style:{"margin-left":"10px"}},{default:n(()=>[...e[15]||(e[15]=[d("搜索",-1)])]),_:1}),a(f,{type:"primary",onClick:e[2]||(e[2]=l=>R()),style:{"margin-left":"10px"}},{default:n(()=>[...e[16]||(e[16]=[d("添加",-1)])]),_:1})]),_:1})]),B((g(),y(X,{data:o(W),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(k,{prop:"id",label:"Id",width:"100"}),a(k,{prop:"name",label:"病区名称"}),a(k,{prop:"status",label:"状态"},{default:n(l=>[l.row.status==1?(g(),y(N,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[17]||(e[17]=[d("正常",-1)])]),_:1})):L("",!0),l.row.status==0?(g(),y(N,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[18]||(e[18]=[d("关闭",-1)])]),_:1})):L("",!0)]),_:1}),a(k,{prop:"",label:"关联账号"},{default:n(l=>[l.row.status==1?(g(),y(f,{key:0,onClick:z=>j(l.row),size:"small"},{default:n(()=>[...e[19]||(e[19]=[d("添加账号",-1)])]),_:1},8,["onClick"])):L("",!0),I("div",{style:{color:"#00aaff","font-size":"12px",cursor:"pointer"},onClick:z=>O(l.row)}," 已关联"+de(l.row.user_list.length)+"个",9,ve)]),_:1}),a(k,{prop:"",label:"操作"},{default:n(l=>[a(f,{type:"primary",onClick:z=>Z(l.row),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[20]||(e[20]=[d("修改",-1)])]),_:1},8,["onClick"]),a(f,{type:"danger",onClick:z=>H(l.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[21]||(e[21]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[S,o(i)]]),I("div",_e,[a(Y,{"current-page":o(b),"onUpdate:currentPage":e[3]||(e[3]=l=>x(b)?b.value=l:b=l),"page-size":o(w),"onUpdate:pageSize":e[4]||(e[4]=l=>x(w)?w.value=l:w=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(D),onSizeChange:A,onCurrentChange:F},null,8,["current-page","page-size","total"])]),a(G,{modelValue:o(r),"onUpdate:modelValue":e[8]||(e[8]=l=>x(r)?r.value=l:r=l),title:"病区信息",width:"30%"},{footer:n(()=>[I("span",ye,[a(f,{onClick:e[7]||(e[7]=l=>x(r)?r.value=!1:r=!1)},{default:n(()=>[...e[22]||(e[22]=[d("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:J},{default:n(()=>[...e[23]||(e[23]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((g(),y($,{model:o(v),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[a(C,{label:"病区名称:"},{default:n(()=>[a(U,{modelValue:o(v).name,"onUpdate:modelValue":e[5]||(e[5]=l=>o(v).name=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"病区状态:"},{default:n(()=>[a(h,{modelValue:o(v).status,"onUpdate:modelValue":e[6]||(e[6]=l=>o(v).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(i)]])]),_:1},8,["modelValue"]),a(G,{modelValue:o(m),"onUpdate:modelValue":e[14]||(e[14]=l=>x(m)?m.value=l:m=l),title:"添加用户",width:"30%"},{footer:n(()=>[I("span",Ve,[a(f,{onClick:e[12]||(e[12]=l=>x(m)?m.value=!1:m=!1)},{default:n(()=>[...e[24]||(e[24]=[d("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:e[13]||(e[13]=l=>q())},{default:n(()=>[...e[25]||(e[25]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((g(),y($,{model:o(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[a(C,{label:"姓名:"},{default:n(()=>[a(U,{modelValue:o(u).cname,"onUpdate:modelValue":e[9]||(e[9]=l=>o(u).cname=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"账号:"},{default:n(()=>[a(U,{modelValue:o(u).uname,"onUpdate:modelValue":e[10]||(e[10]=l=>o(u).uname=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"角色:"},{default:n(()=>[a(le,{filterable:!0,clearable:"",modelValue:o(u).groupId,"onUpdate:modelValue":e[11]||(e[11]=l=>o(u).groupId=l),placeholder:"选择角色",style:{"margin-left":"10px"}},{default:n(()=>[(g(!0),P(M,null,ie(T.value,(l,z)=>(g(),y(ee,{label:l.group_name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(i)]])]),_:1},8,["modelValue"])],64)}}},xe=te(be,[["__scopeId","data-v-695a5ce8"]]);export{xe as default}; +import{_ as te,Z as ae,o as ne,r as s,c as oe,d as g,e as P,k as I,f as a,w as n,h as B,i as o,j as y,l as x,F as M,g as p,bl as se,E as V,az as ue,q as d,x as L,v as de,t as ie,aB as re,N as pe,bm as me,bn as fe}from"./index-e65958bd.js";const ge={class:"head"},ve=["onClick"],_e={class:"page"},ye={class:"dialog-footer"},Ve={class:"dialog-footer"},be={__name:"InpatientWardConfig",setup(we){const T=ae(()=>E.value.filter(t=>t.id==2));let i=p(!1),c=p({name:""}),v=p({id:null,name:"",status:1}),r=p(!1),W=p([]),b=p(1),w=p(15),D=0;const _=()=>{i.value=!0,se({searchInfo:c.value,page:b.value,pageSize:w.value}).then(t=>{i.value=!1,t.status?(W.value=t.data.list,D=t.data.count):V.error(t.msg)})},A=t=>{w.value=t,_()},F=t=>{b.value=t,_()};let m=p(!1),u=p({id:0,department_id:null,ward:null,cname:"",uname:"",groupId:"",status:1});const j=t=>{m.value=!0,u.value.ward=t.name},q=()=>{if(u.value.cname==""||u.value.uname==""||u.value.groupId=="")return V.error("请填写全部信息"),!1;re({userInfo:u.value}).then(t=>{i.value=!1,t.status=="ok"?(m.value=!1,V({message:"添加成功",type:"success"}),_()):V.error(t.msg)})},R=()=>{r.value=!0,v.id=null,c.name=""},Z=t=>{v.value={id:t.id,name:t.name,status:t.status},r.value=!0},H=t=>{pe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{me({id:t}).then(e=>{i.value=!1,e.status?_():V.error(e.msg)})})},J=()=>{i.value=!0,fe({Info:v.value}).then(t=>{i.value=!1,t.status?(r.value=!1,_()):V.error(t.msg)})};let E=p("");const K=()=>{ue().then(t=>{i.value=!1,t.status=="ok"?E.value=t.list:V.error(t.msg)})},O=t=>{window.location.href="./#/adminUserList?ward="+t.name};return ne(()=>{K(),_()}),(t,e)=>{const U=s("el-input"),C=s("el-form-item"),f=s("el-button"),Q=s("el-row"),k=s("el-table-column"),N=s("el-tag"),X=s("el-table"),Y=s("el-pagination"),h=s("el-switch"),$=s("el-form"),G=s("el-dialog"),ee=s("el-option"),le=s("el-select"),S=oe("loading");return g(),P(M,null,[I("div",ge,[a(Q,null,{default:n(()=>[a(C,null,{default:n(()=>[a(U,{modelValue:o(c).name,"onUpdate:modelValue":e[0]||(e[0]=l=>o(c).name=l),placeholder:"请输入病区名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),_:1}),a(f,{onClick:e[1]||(e[1]=l=>_()),style:{"margin-left":"10px"}},{default:n(()=>[...e[15]||(e[15]=[d("搜索",-1)])]),_:1}),a(f,{type:"primary",onClick:e[2]||(e[2]=l=>R()),style:{"margin-left":"10px"}},{default:n(()=>[...e[16]||(e[16]=[d("添加",-1)])]),_:1})]),_:1})]),B((g(),y(X,{data:o(W),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(k,{prop:"id",label:"Id",width:"100"}),a(k,{prop:"name",label:"病区名称"}),a(k,{prop:"status",label:"状态"},{default:n(l=>[l.row.status==1?(g(),y(N,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[17]||(e[17]=[d("正常",-1)])]),_:1})):L("",!0),l.row.status==0?(g(),y(N,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[18]||(e[18]=[d("关闭",-1)])]),_:1})):L("",!0)]),_:1}),a(k,{prop:"",label:"关联账号"},{default:n(l=>[l.row.status==1?(g(),y(f,{key:0,onClick:z=>j(l.row),size:"small"},{default:n(()=>[...e[19]||(e[19]=[d("添加账号",-1)])]),_:1},8,["onClick"])):L("",!0),I("div",{style:{color:"#00aaff","font-size":"12px",cursor:"pointer"},onClick:z=>O(l.row)}," 已关联"+de(l.row.user_list.length)+"个",9,ve)]),_:1}),a(k,{prop:"",label:"操作"},{default:n(l=>[a(f,{type:"primary",onClick:z=>Z(l.row),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[20]||(e[20]=[d("修改",-1)])]),_:1},8,["onClick"]),a(f,{type:"danger",onClick:z=>H(l.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[21]||(e[21]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[S,o(i)]]),I("div",_e,[a(Y,{"current-page":o(b),"onUpdate:currentPage":e[3]||(e[3]=l=>x(b)?b.value=l:b=l),"page-size":o(w),"onUpdate:pageSize":e[4]||(e[4]=l=>x(w)?w.value=l:w=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:o(D),onSizeChange:A,onCurrentChange:F},null,8,["current-page","page-size","total"])]),a(G,{modelValue:o(r),"onUpdate:modelValue":e[8]||(e[8]=l=>x(r)?r.value=l:r=l),title:"病区信息",width:"30%"},{footer:n(()=>[I("span",ye,[a(f,{onClick:e[7]||(e[7]=l=>x(r)?r.value=!1:r=!1)},{default:n(()=>[...e[22]||(e[22]=[d("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:J},{default:n(()=>[...e[23]||(e[23]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((g(),y($,{model:o(v),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[a(C,{label:"病区名称:"},{default:n(()=>[a(U,{modelValue:o(v).name,"onUpdate:modelValue":e[5]||(e[5]=l=>o(v).name=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"病区状态:"},{default:n(()=>[a(h,{modelValue:o(v).status,"onUpdate:modelValue":e[6]||(e[6]=l=>o(v).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(i)]])]),_:1},8,["modelValue"]),a(G,{modelValue:o(m),"onUpdate:modelValue":e[14]||(e[14]=l=>x(m)?m.value=l:m=l),title:"添加用户",width:"30%"},{footer:n(()=>[I("span",Ve,[a(f,{onClick:e[12]||(e[12]=l=>x(m)?m.value=!1:m=!1)},{default:n(()=>[...e[24]||(e[24]=[d("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:e[13]||(e[13]=l=>q())},{default:n(()=>[...e[25]||(e[25]=[d(" 确定 ",-1)])]),_:1})])]),default:n(()=>[B((g(),y($,{model:o(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[a(C,{label:"姓名:"},{default:n(()=>[a(U,{modelValue:o(u).cname,"onUpdate:modelValue":e[9]||(e[9]=l=>o(u).cname=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"账号:"},{default:n(()=>[a(U,{modelValue:o(u).uname,"onUpdate:modelValue":e[10]||(e[10]=l=>o(u).uname=l)},null,8,["modelValue"])]),_:1}),a(C,{label:"角色:"},{default:n(()=>[a(le,{filterable:!0,clearable:"",modelValue:o(u).groupId,"onUpdate:modelValue":e[11]||(e[11]=l=>o(u).groupId=l),placeholder:"选择角色",style:{"margin-left":"10px"}},{default:n(()=>[(g(!0),P(M,null,ie(T.value,(l,z)=>(g(),y(ee,{label:l.group_name,value:l.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[S,o(i)]])]),_:1},8,["modelValue"])],64)}}},xe=te(be,[["__scopeId","data-v-695a5ce8"]]);export{xe as default}; diff --git a/Laravel/public/admin/assets/MainList-d6cb936e.js b/Laravel/public/dist/assets/MainList-36e25ca6.js similarity index 98% rename from Laravel/public/admin/assets/MainList-d6cb936e.js rename to Laravel/public/dist/assets/MainList-36e25ca6.js index dddd339..f37379e 100644 --- a/Laravel/public/admin/assets/MainList-d6cb936e.js +++ b/Laravel/public/dist/assets/MainList-36e25ca6.js @@ -1 +1 @@ -import{_ as Ge,z as Ne,u as Pe,o as Fe,A as $e,r as S,c as ce,h as le,i as n,d as u,e as p,f as a,w as s,l as L,k as _,j as h,F as E,t as T,x as f,g as d,B as je,E as y,D as Je,I as He,J as Oe,q as c,K as Ae,v as k,M as Ke,N as we,O as Qe,P as We,Q as Xe,R as Ze,T as et,V as tt,W as lt}from"./index-af171713.js";import{S as at}from"./PrintShenQingDan-7546836f.js";import{Y as nt}from"./YuYue202506-e01c0944.js";const st=["src"],ot={class:"head"},ut={key:0},it={key:0},rt={key:0},dt={key:1},pt={key:0},ft={key:1},mt={key:0},_t={key:0},gt={key:1},vt={key:2},yt={key:3},ct={class:"page"},wt={style:{"word-break":"break-all"}},bt={key:0},ht=["onClick"],xt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},kt={style:{"margin-left":"8px",width:"200px"}},Vt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},St={key:0,id:"shenqingdan",style:{position:"relative"}},Ct={style:{"margin-top":"-30px"}},It={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},Dt={__name:"MainList",setup(Lt){let ae=Ne();const be=Pe();let R=d(!1),K=d(0),Q=d(!1),W=d(0),v=d(!1),ne=d(""),m=d({dateType:"reservation_date",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),q=d(""),G=d([]),X=d(null),M=d(1),Y=d(15),se=0,F=d([]);const he=((l,e)=>{let r=null;return function(...o){clearTimeout(r),r=setTimeout(()=>l.apply(this,o),e)}})(l=>{if(!l){F.value=[];return}lt({keyword:l}).then(e=>{e.status?F.value=e.data.list:F.value=[]})},300),D=()=>{v.value=!0,Ke({searchInfo:m.value,page:M.value,pageSize:Y.value}).then(l=>{v.value=!1,l.status?(G.value=l.data.list,se=l.data.count):y.error(l.msg)})},xe=l=>{Y.value=l,D()},ke=l=>{M.value=l,D()};let i=d([]);const Ve=l=>{if(l.length>1){const r=l[0].list_status;l.every(b=>b.list_status===r)||(z(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(z(),l=[l[l.length-1]]);let e=i.value?i.value.length:0;$(l),e>i.value.length||Se()},z=()=>{X.value.clearSelection(),i.value=[]},$=l=>{l?(l.forEach(e=>{e!=null&&X.value.toggleRowSelection(e,!0)}),i.value=l):z()};let B=d(!1),Z=d(null);const Se=()=>{console.log(i.value),i.value.reverse();let l="",e=!1;if(i.value.forEach((o,b)=>{l==""&&(l=o.reg_num),l!=""&&l!=o.reg_num&&(e=!0)}),e===!0){let o=i.value[0];z(),$([o])}console.log(i.value);let r=[];if(i.value[0].list_status!=0)return!1;G.value.forEach((o,b)=>{o.list_status==0&&o.reg_num==i.value[0].reg_num&&o.episodeid==i.value[0].episodeid&&(o.id==i.value[0].id?r.push({name:o.entrust,rowid:b,first:1}):r.push({name:o.entrust,rowid:b,first:0}))}),r.length>=2&&(v.value=!0,je({items:r}).then(o=>{if(v.value=!1,o.status){let b=o.data.group;if(b.length>1e9)B.value=!0,Z.value=b;else{z();let V=[];b[0].forEach((O,A)=>{V.push(G.value[O.rowid])}),$(V)}}else y.error(o.msg)}))},Ce=l=>{z();let e=[];l.forEach((r,o)=>{e.push(G.value[r.rowid])}),$(e),B.value=!1};let ee=d(""),Ie="https://yj.dev.cjy.net.cn/",j=d(!1);const oe=l=>{console.log(i.value);let e=[];if(W.value=l,console.log(i.value),i.value.length===0)return y.error("请勾选1条记录"),!1;let r=!0;if(i.value.forEach((o,b)=>{l==1&&o.list_status!=0&&(y.error(o.entrust+" 不可进行预约操作"),r=!1),l==2&&o.list_status!=1&&(y.error(o.entrust+" 不可进行改约操作"),r=!1),e.push(o.entrust_id)}),r==!1)return!1;K.value++,ne.value=e.join(","),R.value=!0,ee.value=Ie+"/jq_page/appointment.html?regnum="+encodeURIComponent(i.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(i.value[0].episodeid)+"&dotype="+W.value+"&appointment_type=4",console.log(ee.value)},De=()=>{Je(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Le=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=!0;if(i.value.forEach(r=>{r.list_status!=1&&(y.error(`${r.entrust} 无需取消`),l=!1)}),!l)return!1;v.value=!0;const e=r=>{et({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:w.value.id,password:r}).then(o=>{v.value=!1,o.status?(y({message:o.msg,type:"success"}),D()):y.error(o.msg)}).catch(o=>{v.value=!1,console.error(o)})};q.value==="SysLogin"?we.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:r})=>{e(r)}).catch(()=>{v.value=!1}):q.value==="HisLogin"||q.value==="CasLogin"?we.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{v.value=!1}):(v.value=!1,y.error("未知的操作类型配置"))};let Ue=d([]);const Ee=()=>{v.value=!0,He().then(l=>{v.value=!1,l.status?Ue.value=l.data:y.error(l.msg)})};let ue=d([]);const Te=()=>{v.value=!0,Qe().then(l=>{v.value=!1,l.status&&(ue.value=l.data)})},ie=()=>{Oe().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);m.value.dateRange=[e,e],D()}})};let N=d(!1),re=d(null),P=d(!1);const Me=l=>{N.value=!0,We({id:l.id}).then(e=>{e.status&&(re.value=e.data)})};let de=d("");const Ye=l=>{P.value=!0,de.value=l};let w=d(null),pe=d(null),te=d([]);const ze=()=>{if(i.value.length!==1)return y.error("请选择1项进行打印"),!1;Xe({regnum:i.value[0].reg_num,entrustid:i.value[0].entrust_id,episodeid:i.value[0].episodeid,appointment_type:4}).then(l=>{if(l.status){let e=!0;te.value=l.data.info,te.value.forEach((r,o)=>{r.maininfo.list_status!=1&&(y.error(r.maininfo.entrust+" 不可打印,请重新选择"),e=!1)}),e&&(Q.value=!0,setTimeout(function(){pe.value.$el.click(),Q.value=!1},500))}else y.error(l.msg)})},fe=()=>{D()};let U=d(!1),J=d([]),H=d([]);const Be=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,Ze({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?(y({message:"签到成功",type:"success"}),U.value=!0,J.value=e.data.success,H.value=e.data.fail):(U.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):y.error(e.msg)})},Tt=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,tt({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?y({message:"取消成功",type:"success"}):(U.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):y.error(e.msg)})},me=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(w.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),w.value&&w.value.group!=2&&Te(),w.value&&w.value.group==7||q.value==="HisLogin"){m.value.doctor=w.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(m.value.reg_num=l)}be.query.type==="doctor"&&(m.value.dateType="both")};return Fe(()=>{if(q.value=sessionStorage.getItem("LoginType"),Ee(),ae.baseInfoStatus)me(),ie();else{const l=$e(()=>ae.baseInfoStatus,e=>{e&&(console.log(e),console.log("66666",w.value),me(),ie(),l())})}}),(l,e)=>{const r=S("el-dialog"),o=S("el-option"),b=S("el-select"),V=S("el-form-item"),O=S("el-date-picker"),A=S("el-input"),C=S("el-button"),_e=S("el-row"),g=S("el-table-column"),I=S("el-tag"),ge=S("el-table"),Re=S("el-pagination"),qe=ce("print"),ve=ce("loading");return le((u(),p("div",null,[a(r,{title:"预约列表",class:"iframeDialog",modelValue:n(j),"onUpdate:modelValue":e[0]||(e[0]=t=>L(j)?j.value=t:j=t),onOpened:De,onClosed:e[1]||(e[1]=t=>fe())},{default:s(()=>[(u(),p("iframe",{id:"bdIframe",src:n(ee),class:"iframe",key:n(K),scrolling:"auto"},null,8,st))]),_:1},8,["modelValue"]),a(r,{modelValue:n(R),"onUpdate:modelValue":e[2]||(e[2]=t=>L(R)?R.value=t:R=t),fullscreen:"",onClose:e[3]||(e[3]=t=>fe())},{default:s(()=>[(u(),h(nt,{reg_num:n(i)[0].reg_num,entrust_ids:n(ne),key:n(K),episode_id:n(i)[0].episodeid,appointment_type:"4",dotype:n(W),do_user:n(w).id,special_privileges:n(w).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",ot,[a(_e,null,{default:s(()=>[a(V,null,{default:s(()=>[a(b,{modelValue:n(m).dateType,"onUpdate:modelValue":e[4]||(e[4]=t=>n(m).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"预约日期",value:"reservation_date"}),a(o,{label:"医嘱日期",value:"entrust_date"}),a(o,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(O,{style:{"margin-left":"8px",width:"150px"},modelValue:n(m).dateRange[0],"onUpdate:modelValue":e[5]||(e[5]=t=>n(m).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=_("span",{style:{margin:"0 4px"}},"至",-1)),a(O,{style:{width:"150px"},modelValue:n(m).dateRange[1],"onUpdate:modelValue":e[6]||(e[6]=t=>n(m).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(b,{filterable:!0,clearable:"",modelValue:n(m).list_status,"onUpdate:modelValue":e[7]||(e[7]=t=>n(m).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"申请中",value:"0"}),a(o,{label:"已预约",value:"1"}),a(o,{label:"已报道",value:"2"}),a(o,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),n(w)&&n(w).group!=2?(u(),h(V,{key:0},{default:s(()=>[a(b,{filterable:!0,clearable:"",modelValue:n(m).patient_type,"onUpdate:modelValue":e[8]||(e[8]=t=>n(m).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"住院",value:"0"}),a(o,{label:"门诊",value:"1"}),a(o,{label:"急诊",value:"2"}),a(o,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1})):f("",!0),n(w)&&n(w).group!=2?(u(),h(V,{key:1},{default:s(()=>[a(b,{multiple:"",filterable:!0,clearable:"",modelValue:n(m).resources,"onUpdate:modelValue":e[9]||(e[9]=t=>n(m).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:s(()=>[(u(!0),p(E,null,T(n(ue),(t,x)=>(u(),h(o,{key:x,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):f("",!0),a(V,null,{default:s(()=>[a(A,{modelValue:n(m).reg_num,"onUpdate:modelValue":e[10]||(e[10]=t=>n(m).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(A,{modelValue:n(m).user_name,"onUpdate:modelValue":e[11]||(e[11]=t=>n(m).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(b,{modelValue:n(m).apply_department,"onUpdate:modelValue":e[12]||(e[12]=t=>n(m).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":n(he)},{default:s(()=>[(u(!0),p(E,null,T(n(F),t=>(u(),h(o,{key:t.id,label:t.department_name+" ("+t.department_number+")",value:t.department_name},null,8,["label","value"]))),128))]),_:1},8,["modelValue","remote-method"])]),_:1}),n(w)?(u(),h(V,{key:2},{default:s(()=>[a(A,{modelValue:n(m).doctor,"onUpdate:modelValue":e[13]||(e[13]=t=>n(m).doctor=t),disabled:n(w).group==7,placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue","disabled"])]),_:1})):f("",!0),a(V,null,{default:s(()=>[a(C,{type:"primary",onClick:e[14]||(e[14]=t=>D()),style:{"margin-left":"10px"}},{default:s(()=>[...e[28]||(e[28]=[c("查询",-1)])]),_:1})]),_:1})]),_:1}),a(_e,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:s(()=>[a(C,{type:"success",onClick:e[15]||(e[15]=Ae(t=>oe(1),["prevent"]))},{default:s(()=>[...e[29]||(e[29]=[c("预 约",-1)])]),_:1}),a(C,{type:"danger",onClick:e[16]||(e[16]=t=>Le())},{default:s(()=>[...e[30]||(e[30]=[c("取消预约",-1)])]),_:1}),a(C,{type:"warning",onClick:e[17]||(e[17]=t=>oe(2))},{default:s(()=>[...e[31]||(e[31]=[c("更改预约时间",-1)])]),_:1}),a(C,{type:"primary",onClick:e[18]||(e[18]=t=>Be()),style:{"margin-left":"40px"}},{default:s(()=>[...e[32]||(e[32]=[c("报到",-1)])]),_:1}),f("",!0),le((u(),h(C,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:pe},{default:s(()=>[...e[34]||(e[34]=[c("打印申请单隐藏按钮",-1)])]),_:1})),[[qe,"#shenqingdan"]]),a(C,{onClick:e[20]||(e[20]=t=>ze())},{default:s(()=>[...e[35]||(e[35]=[c("打印申请单",-1)])]),_:1}),f("",!0)]),_:1})]),le((u(),h(ge,{data:n(G),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:X,onSelect:Ve},{default:s(()=>[a(g,{type:"selection",width:"50"},{header:s(()=>[...e[37]||(e[37]=[_("span",null,null,-1)])]),_:1}),a(g,{prop:"list_status",label:"状态",width:"80"},{default:s(t=>[t.row.list_status===0?(u(),h(I,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[38]||(e[38]=[c("申请中",-1)])]),_:1})):f("",!0),t.row.list_status===1?(u(),h(I,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[39]||(e[39]=[c("已预约",-1)])]),_:1})):f("",!0),t.row.list_status===2?(u(),h(I,{key:2,class:"ml-2"},{default:s(()=>[...e[40]||(e[40]=[c("登记",-1)])]),_:1})):f("",!0),t.row.list_status===3?(u(),h(I,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[41]||(e[41]=[c("完成",-1)])]),_:1})):f("",!0)]),_:1}),a(g,{label:"门诊号",width:"120"},{default:s(t=>[t.row.patient_type!=0?(u(),p("span",ut,k(t.row.reg_num),1)):f("",!0)]),_:1}),a(g,{label:"住院号",width:"120"},{default:s(t=>{var x;return[t.row.patient_type==0?(u(),p("span",it,k((x=t.row.episodeid)==null?void 0:x.slice(-10)),1)):f("",!0)]}),_:1}),a(g,{prop:"user_name",label:"姓名"}),a(g,{prop:"user_sex",label:"性别",width:"60"},{default:s(t=>[t.row.user_sex==1?(u(),p("span",rt,"男")):f("",!0),t.row.user_sex==2?(u(),p("span",dt,"女")):f("",!0)]),_:1}),a(g,{prop:"age",label:"年龄",width:"115"}),a(g,{prop:"entrust",label:"医嘱",width:"200"}),a(g,{prop:"is_pay",label:"是否交费",width:"80"},{default:s(t=>[t.row.is_pay==1?(u(),p("span",pt,"是")):f("",!0),t.row.is_pay==0?(u(),p("span",ft,"否")):f("",!0)]),_:1}),a(g,{prop:"reservation_date",label:"预约日期",width:"120"}),a(g,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:s(t=>[t.row.period_begin_time&&t.row.period_end_time?(u(),p("span",mt,k(t.row.period_begin_time.substring(0,5))+"~"+k(t.row.period_end_time.substring(0,5)),1)):f("",!0)]),_:1}),a(g,{prop:"department_resources_name",label:"排班",width:"120"}),a(g,{prop:"reservation_department",label:"申请科室",width:"120"}),a(g,{prop:"",label:"医嘱时间",width:"160"},{default:s(t=>[c(k(t.row.entrust_date)+" "+k(t.row.entrust_time),1)]),_:1}),a(g,{prop:"docotr",label:"申请医生",width:"80"}),a(g,{prop:"patient_type",label:"病人类型",width:"80"},{default:s(t=>[t.row.patient_type==0?(u(),p("span",_t,"住院")):f("",!0),t.row.patient_type==1?(u(),p("span",gt,"门诊")):f("",!0),t.row.patient_type==2?(u(),p("span",vt,"急诊")):f("",!0),t.row.patient_type==3?(u(),p("span",yt,"体检")):f("",!0)]),_:1}),a(g,{prop:"user_phone",label:"电话",width:"120"}),a(g,{prop:"department_resources_name",label:"操作",width:"120"},{default:s(t=>[a(C,{onClick:x=>Me(t.row),size:"small"},{default:s(()=>[...e[42]||(e[42]=[c("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ve,n(v)]]),_("div",ct,[a(Re,{"current-page":n(M),"onUpdate:currentPage":e[21]||(e[21]=t=>L(M)?M.value=t:M=t),"page-size":n(Y),"onUpdate:pageSize":e[22]||(e[22]=t=>L(Y)?Y.value=t:Y=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(se),onSizeChange:xe,onCurrentChange:ke},null,8,["current-page","page-size","total"])]),a(r,{modelValue:n(N),"onUpdate:modelValue":e[23]||(e[23]=t=>L(N)?N.value=t:N=t),title:"变更记录",width:"50%"},{default:s(()=>[_("div",null,[a(ge,{data:n(re),style:{width:"100%"},"row-key":"id"},{default:s(()=>[a(g,{prop:"list_status",label:"状态",width:"100"},{default:s(t=>[t.row.new_status==0?(u(),h(I,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[43]||(e[43]=[c("申请中",-1)])]),_:1})):f("",!0),t.row.new_status==1?(u(),h(I,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[44]||(e[44]=[c("已预约",-1)])]),_:1})):f("",!0),t.row.new_status==2?(u(),h(I,{key:2,class:"ml-2"},{default:s(()=>[...e[45]||(e[45]=[c("登记",-1)])]),_:1})):f("",!0),t.row.new_status==3?(u(),h(I,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[46]||(e[46]=[c("完成",-1)])]),_:1})):f("",!0)]),_:1}),a(g,{prop:"reg_num",label:"登记号"}),a(g,{prop:"note",label:"说明"}),a(g,{prop:"create_user",label:"操作人/ID"}),a(g,{prop:"created_at",label:"记录时间"}),a(g,{prop:"data",label:"状态",width:"100"},{default:s(t=>[a(C,{onClick:x=>Ye(t.row.data),size:"small"},{default:s(()=>[...e[47]||(e[47]=[c("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(r,{modelValue:n(P),"onUpdate:modelValue":e[24]||(e[24]=t=>L(P)?P.value=t:P=t),title:"查看dataJson",width:"40%"},{default:s(()=>[_("div",wt,k(n(de)),1)]),_:1},8,["modelValue"]),a(r,{modelValue:n(B),"onUpdate:modelValue":e[25]||(e[25]=t=>L(B)?B.value=t:B=t),title:"选择可一起预约的项目",width:"40%"},{default:s(()=>[n(Z).length>0?(u(),p("div",bt,[e[48]||(e[48]=_("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[_("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),_("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(u(!0),p(E,null,T(n(Z),(t,x)=>(u(),p("div",{key:x,class:"dialogitem",onClick:ye=>Ce(t)},[_("div",xt,[(u(!0),p(E,null,T(t,(ye,Mt)=>(u(),p("div",null,[_("span",kt,k(ye.item_name),1)]))),256))]),_("div",Vt,[_("div",null,k(t[0].device_name),1)])],8,ht))),128))])):f("",!0)]),_:1},8,["modelValue"]),n(Q)?(u(),p("div",St,[(u(!0),p(E,null,T(n(te),(t,x)=>(u(),p("div",{key:x},[a(at,{printInfo:t.maininfo},null,8,["printInfo"])]))),128))])):f("",!0),a(r,{modelValue:n(U),"onUpdate:modelValue":e[26]||(e[26]=t=>L(U)?U.value=t:U=t),title:"提示",width:"40%"},{default:s(()=>[(u(!0),p(E,null,T(n(J),(t,x)=>(u(),p("div",{key:x,style:{"font-size":"16px"}},[_("table",Ct,[_("tr",null,[_("td",It,[c(k(t.entrust),1),a(I,{type:"success",size:"large"},{default:s(()=>[...e[49]||(e[49]=[c("预约成功",-1)])]),_:1})])]),_("tr",null,[e[50]||(e[50]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,k(t.signInData[0].checkNo),1)]),_("tr",null,[e[51]||(e[51]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,k(t.signInData[0].queueNo),1)]),_("tr",null,[e[52]||(e[52]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,k(t.signInData[0].currentNum),1)])])]))),128)),(u(!0),p(E,null,T(n(H),(t,x)=>(u(),p("div",{key:x+200,style:{color:"crimson"}},k(t),1))),128))]),_:1},8,["modelValue"])])),[[ve,n(v)]])}}},Rt=Ge(Dt,[["__scopeId","data-v-bf15924c"]]);export{Rt as default}; +import{_ as Ge,z as Ne,u as Pe,o as Fe,A as $e,r as S,c as ce,h as le,i as n,d as u,e as p,f as a,w as s,l as L,k as _,j as h,F as E,t as T,x as f,g as d,B as je,E as y,D as Je,I as He,J as Oe,q as c,K as Ae,v as k,M as Ke,N as we,O as Qe,P as We,Q as Xe,R as Ze,T as et,V as tt,W as lt}from"./index-e65958bd.js";import{S as at}from"./PrintShenQingDan-80054efb.js";import{Y as nt}from"./YuYue202506-f1503368.js";const st=["src"],ot={class:"head"},ut={key:0},it={key:0},rt={key:0},dt={key:1},pt={key:0},ft={key:1},mt={key:0},_t={key:0},gt={key:1},vt={key:2},yt={key:3},ct={class:"page"},wt={style:{"word-break":"break-all"}},bt={key:0},ht=["onClick"],xt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},kt={style:{"margin-left":"8px",width:"200px"}},Vt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},St={key:0,id:"shenqingdan",style:{position:"relative"}},Ct={style:{"margin-top":"-30px"}},It={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},Dt={__name:"MainList",setup(Lt){let ae=Ne();const be=Pe();let R=d(!1),K=d(0),Q=d(!1),W=d(0),v=d(!1),ne=d(""),m=d({dateType:"reservation_date",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),q=d(""),G=d([]),X=d(null),M=d(1),Y=d(15),se=0,F=d([]);const he=((l,e)=>{let r=null;return function(...o){clearTimeout(r),r=setTimeout(()=>l.apply(this,o),e)}})(l=>{if(!l){F.value=[];return}lt({keyword:l}).then(e=>{e.status?F.value=e.data.list:F.value=[]})},300),D=()=>{v.value=!0,Ke({searchInfo:m.value,page:M.value,pageSize:Y.value}).then(l=>{v.value=!1,l.status?(G.value=l.data.list,se=l.data.count):y.error(l.msg)})},xe=l=>{Y.value=l,D()},ke=l=>{M.value=l,D()};let i=d([]);const Ve=l=>{if(l.length>1){const r=l[0].list_status;l.every(b=>b.list_status===r)||(z(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(z(),l=[l[l.length-1]]);let e=i.value?i.value.length:0;$(l),e>i.value.length||Se()},z=()=>{X.value.clearSelection(),i.value=[]},$=l=>{l?(l.forEach(e=>{e!=null&&X.value.toggleRowSelection(e,!0)}),i.value=l):z()};let B=d(!1),Z=d(null);const Se=()=>{console.log(i.value),i.value.reverse();let l="",e=!1;if(i.value.forEach((o,b)=>{l==""&&(l=o.reg_num),l!=""&&l!=o.reg_num&&(e=!0)}),e===!0){let o=i.value[0];z(),$([o])}console.log(i.value);let r=[];if(i.value[0].list_status!=0)return!1;G.value.forEach((o,b)=>{o.list_status==0&&o.reg_num==i.value[0].reg_num&&o.episodeid==i.value[0].episodeid&&(o.id==i.value[0].id?r.push({name:o.entrust,rowid:b,first:1}):r.push({name:o.entrust,rowid:b,first:0}))}),r.length>=2&&(v.value=!0,je({items:r}).then(o=>{if(v.value=!1,o.status){let b=o.data.group;if(b.length>1e9)B.value=!0,Z.value=b;else{z();let V=[];b[0].forEach((O,A)=>{V.push(G.value[O.rowid])}),$(V)}}else y.error(o.msg)}))},Ce=l=>{z();let e=[];l.forEach((r,o)=>{e.push(G.value[r.rowid])}),$(e),B.value=!1};let ee=d(""),Ie="https://yj.dev.cjy.net.cn/",j=d(!1);const oe=l=>{console.log(i.value);let e=[];if(W.value=l,console.log(i.value),i.value.length===0)return y.error("请勾选1条记录"),!1;let r=!0;if(i.value.forEach((o,b)=>{l==1&&o.list_status!=0&&(y.error(o.entrust+" 不可进行预约操作"),r=!1),l==2&&o.list_status!=1&&(y.error(o.entrust+" 不可进行改约操作"),r=!1),e.push(o.entrust_id)}),r==!1)return!1;K.value++,ne.value=e.join(","),R.value=!0,ee.value=Ie+"/jq_page/appointment.html?regnum="+encodeURIComponent(i.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(i.value[0].episodeid)+"&dotype="+W.value+"&appointment_type=4",console.log(ee.value)},De=()=>{Je(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Le=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=!0;if(i.value.forEach(r=>{r.list_status!=1&&(y.error(`${r.entrust} 无需取消`),l=!1)}),!l)return!1;v.value=!0;const e=r=>{et({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:w.value.id,password:r}).then(o=>{v.value=!1,o.status?(y({message:o.msg,type:"success"}),D()):y.error(o.msg)}).catch(o=>{v.value=!1,console.error(o)})};q.value==="SysLogin"?we.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:r})=>{e(r)}).catch(()=>{v.value=!1}):q.value==="HisLogin"||q.value==="CasLogin"?we.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{v.value=!1}):(v.value=!1,y.error("未知的操作类型配置"))};let Ue=d([]);const Ee=()=>{v.value=!0,He().then(l=>{v.value=!1,l.status?Ue.value=l.data:y.error(l.msg)})};let ue=d([]);const Te=()=>{v.value=!0,Qe().then(l=>{v.value=!1,l.status&&(ue.value=l.data)})},ie=()=>{Oe().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);m.value.dateRange=[e,e],D()}})};let N=d(!1),re=d(null),P=d(!1);const Me=l=>{N.value=!0,We({id:l.id}).then(e=>{e.status&&(re.value=e.data)})};let de=d("");const Ye=l=>{P.value=!0,de.value=l};let w=d(null),pe=d(null),te=d([]);const ze=()=>{if(i.value.length!==1)return y.error("请选择1项进行打印"),!1;Xe({regnum:i.value[0].reg_num,entrustid:i.value[0].entrust_id,episodeid:i.value[0].episodeid,appointment_type:4}).then(l=>{if(l.status){let e=!0;te.value=l.data.info,te.value.forEach((r,o)=>{r.maininfo.list_status!=1&&(y.error(r.maininfo.entrust+" 不可打印,请重新选择"),e=!1)}),e&&(Q.value=!0,setTimeout(function(){pe.value.$el.click(),Q.value=!1},500))}else y.error(l.msg)})},fe=()=>{D()};let U=d(!1),J=d([]),H=d([]);const Be=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,Ze({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?(y({message:"签到成功",type:"success"}),U.value=!0,J.value=e.data.success,H.value=e.data.fail):(U.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):y.error(e.msg)})},Tt=()=>{if(i.value.length===0)return y.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,tt({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?y({message:"取消成功",type:"success"}):(U.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):y.error(e.msg)})},me=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(w.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),w.value&&w.value.group!=2&&Te(),w.value&&w.value.group==7||q.value==="HisLogin"){m.value.doctor=w.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(m.value.reg_num=l)}be.query.type==="doctor"&&(m.value.dateType="both")};return Fe(()=>{if(q.value=sessionStorage.getItem("LoginType"),Ee(),ae.baseInfoStatus)me(),ie();else{const l=$e(()=>ae.baseInfoStatus,e=>{e&&(console.log(e),console.log("66666",w.value),me(),ie(),l())})}}),(l,e)=>{const r=S("el-dialog"),o=S("el-option"),b=S("el-select"),V=S("el-form-item"),O=S("el-date-picker"),A=S("el-input"),C=S("el-button"),_e=S("el-row"),g=S("el-table-column"),I=S("el-tag"),ge=S("el-table"),Re=S("el-pagination"),qe=ce("print"),ve=ce("loading");return le((u(),p("div",null,[a(r,{title:"预约列表",class:"iframeDialog",modelValue:n(j),"onUpdate:modelValue":e[0]||(e[0]=t=>L(j)?j.value=t:j=t),onOpened:De,onClosed:e[1]||(e[1]=t=>fe())},{default:s(()=>[(u(),p("iframe",{id:"bdIframe",src:n(ee),class:"iframe",key:n(K),scrolling:"auto"},null,8,st))]),_:1},8,["modelValue"]),a(r,{modelValue:n(R),"onUpdate:modelValue":e[2]||(e[2]=t=>L(R)?R.value=t:R=t),fullscreen:"",onClose:e[3]||(e[3]=t=>fe())},{default:s(()=>[(u(),h(nt,{reg_num:n(i)[0].reg_num,entrust_ids:n(ne),key:n(K),episode_id:n(i)[0].episodeid,appointment_type:"4",dotype:n(W),do_user:n(w).id,special_privileges:n(w).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",ot,[a(_e,null,{default:s(()=>[a(V,null,{default:s(()=>[a(b,{modelValue:n(m).dateType,"onUpdate:modelValue":e[4]||(e[4]=t=>n(m).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"预约日期",value:"reservation_date"}),a(o,{label:"医嘱日期",value:"entrust_date"}),a(o,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(O,{style:{"margin-left":"8px",width:"150px"},modelValue:n(m).dateRange[0],"onUpdate:modelValue":e[5]||(e[5]=t=>n(m).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=_("span",{style:{margin:"0 4px"}},"至",-1)),a(O,{style:{width:"150px"},modelValue:n(m).dateRange[1],"onUpdate:modelValue":e[6]||(e[6]=t=>n(m).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(b,{filterable:!0,clearable:"",modelValue:n(m).list_status,"onUpdate:modelValue":e[7]||(e[7]=t=>n(m).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"申请中",value:"0"}),a(o,{label:"已预约",value:"1"}),a(o,{label:"已报道",value:"2"}),a(o,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),n(w)&&n(w).group!=2?(u(),h(V,{key:0},{default:s(()=>[a(b,{filterable:!0,clearable:"",modelValue:n(m).patient_type,"onUpdate:modelValue":e[8]||(e[8]=t=>n(m).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:s(()=>[a(o,{label:"住院",value:"0"}),a(o,{label:"门诊",value:"1"}),a(o,{label:"急诊",value:"2"}),a(o,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1})):f("",!0),n(w)&&n(w).group!=2?(u(),h(V,{key:1},{default:s(()=>[a(b,{multiple:"",filterable:!0,clearable:"",modelValue:n(m).resources,"onUpdate:modelValue":e[9]||(e[9]=t=>n(m).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:s(()=>[(u(!0),p(E,null,T(n(ue),(t,x)=>(u(),h(o,{key:x,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):f("",!0),a(V,null,{default:s(()=>[a(A,{modelValue:n(m).reg_num,"onUpdate:modelValue":e[10]||(e[10]=t=>n(m).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(A,{modelValue:n(m).user_name,"onUpdate:modelValue":e[11]||(e[11]=t=>n(m).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(V,null,{default:s(()=>[a(b,{modelValue:n(m).apply_department,"onUpdate:modelValue":e[12]||(e[12]=t=>n(m).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":n(he)},{default:s(()=>[(u(!0),p(E,null,T(n(F),t=>(u(),h(o,{key:t.id,label:t.department_name+" ("+t.department_number+")",value:t.department_name},null,8,["label","value"]))),128))]),_:1},8,["modelValue","remote-method"])]),_:1}),n(w)?(u(),h(V,{key:2},{default:s(()=>[a(A,{modelValue:n(m).doctor,"onUpdate:modelValue":e[13]||(e[13]=t=>n(m).doctor=t),disabled:n(w).group==7,placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue","disabled"])]),_:1})):f("",!0),a(V,null,{default:s(()=>[a(C,{type:"primary",onClick:e[14]||(e[14]=t=>D()),style:{"margin-left":"10px"}},{default:s(()=>[...e[28]||(e[28]=[c("查询",-1)])]),_:1})]),_:1})]),_:1}),a(_e,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:s(()=>[a(C,{type:"success",onClick:e[15]||(e[15]=Ae(t=>oe(1),["prevent"]))},{default:s(()=>[...e[29]||(e[29]=[c("预 约",-1)])]),_:1}),a(C,{type:"danger",onClick:e[16]||(e[16]=t=>Le())},{default:s(()=>[...e[30]||(e[30]=[c("取消预约",-1)])]),_:1}),a(C,{type:"warning",onClick:e[17]||(e[17]=t=>oe(2))},{default:s(()=>[...e[31]||(e[31]=[c("更改预约时间",-1)])]),_:1}),a(C,{type:"primary",onClick:e[18]||(e[18]=t=>Be()),style:{"margin-left":"40px"}},{default:s(()=>[...e[32]||(e[32]=[c("报到",-1)])]),_:1}),f("",!0),le((u(),h(C,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:pe},{default:s(()=>[...e[34]||(e[34]=[c("打印申请单隐藏按钮",-1)])]),_:1})),[[qe,"#shenqingdan"]]),a(C,{onClick:e[20]||(e[20]=t=>ze())},{default:s(()=>[...e[35]||(e[35]=[c("打印申请单",-1)])]),_:1}),f("",!0)]),_:1})]),le((u(),h(ge,{data:n(G),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:X,onSelect:Ve},{default:s(()=>[a(g,{type:"selection",width:"50"},{header:s(()=>[...e[37]||(e[37]=[_("span",null,null,-1)])]),_:1}),a(g,{prop:"list_status",label:"状态",width:"80"},{default:s(t=>[t.row.list_status===0?(u(),h(I,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[38]||(e[38]=[c("申请中",-1)])]),_:1})):f("",!0),t.row.list_status===1?(u(),h(I,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[39]||(e[39]=[c("已预约",-1)])]),_:1})):f("",!0),t.row.list_status===2?(u(),h(I,{key:2,class:"ml-2"},{default:s(()=>[...e[40]||(e[40]=[c("登记",-1)])]),_:1})):f("",!0),t.row.list_status===3?(u(),h(I,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[41]||(e[41]=[c("完成",-1)])]),_:1})):f("",!0)]),_:1}),a(g,{label:"门诊号",width:"120"},{default:s(t=>[t.row.patient_type!=0?(u(),p("span",ut,k(t.row.reg_num),1)):f("",!0)]),_:1}),a(g,{label:"住院号",width:"120"},{default:s(t=>{var x;return[t.row.patient_type==0?(u(),p("span",it,k((x=t.row.episodeid)==null?void 0:x.slice(-10)),1)):f("",!0)]}),_:1}),a(g,{prop:"user_name",label:"姓名"}),a(g,{prop:"user_sex",label:"性别",width:"60"},{default:s(t=>[t.row.user_sex==1?(u(),p("span",rt,"男")):f("",!0),t.row.user_sex==2?(u(),p("span",dt,"女")):f("",!0)]),_:1}),a(g,{prop:"age",label:"年龄",width:"115"}),a(g,{prop:"entrust",label:"医嘱",width:"200"}),a(g,{prop:"is_pay",label:"是否交费",width:"80"},{default:s(t=>[t.row.is_pay==1?(u(),p("span",pt,"是")):f("",!0),t.row.is_pay==0?(u(),p("span",ft,"否")):f("",!0)]),_:1}),a(g,{prop:"reservation_date",label:"预约日期",width:"120"}),a(g,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:s(t=>[t.row.period_begin_time&&t.row.period_end_time?(u(),p("span",mt,k(t.row.period_begin_time.substring(0,5))+"~"+k(t.row.period_end_time.substring(0,5)),1)):f("",!0)]),_:1}),a(g,{prop:"department_resources_name",label:"排班",width:"120"}),a(g,{prop:"reservation_department",label:"申请科室",width:"120"}),a(g,{prop:"",label:"医嘱时间",width:"160"},{default:s(t=>[c(k(t.row.entrust_date)+" "+k(t.row.entrust_time),1)]),_:1}),a(g,{prop:"docotr",label:"申请医生",width:"80"}),a(g,{prop:"patient_type",label:"病人类型",width:"80"},{default:s(t=>[t.row.patient_type==0?(u(),p("span",_t,"住院")):f("",!0),t.row.patient_type==1?(u(),p("span",gt,"门诊")):f("",!0),t.row.patient_type==2?(u(),p("span",vt,"急诊")):f("",!0),t.row.patient_type==3?(u(),p("span",yt,"体检")):f("",!0)]),_:1}),a(g,{prop:"user_phone",label:"电话",width:"120"}),a(g,{prop:"department_resources_name",label:"操作",width:"120"},{default:s(t=>[a(C,{onClick:x=>Me(t.row),size:"small"},{default:s(()=>[...e[42]||(e[42]=[c("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ve,n(v)]]),_("div",ct,[a(Re,{"current-page":n(M),"onUpdate:currentPage":e[21]||(e[21]=t=>L(M)?M.value=t:M=t),"page-size":n(Y),"onUpdate:pageSize":e[22]||(e[22]=t=>L(Y)?Y.value=t:Y=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(se),onSizeChange:xe,onCurrentChange:ke},null,8,["current-page","page-size","total"])]),a(r,{modelValue:n(N),"onUpdate:modelValue":e[23]||(e[23]=t=>L(N)?N.value=t:N=t),title:"变更记录",width:"50%"},{default:s(()=>[_("div",null,[a(ge,{data:n(re),style:{width:"100%"},"row-key":"id"},{default:s(()=>[a(g,{prop:"list_status",label:"状态",width:"100"},{default:s(t=>[t.row.new_status==0?(u(),h(I,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[43]||(e[43]=[c("申请中",-1)])]),_:1})):f("",!0),t.row.new_status==1?(u(),h(I,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[44]||(e[44]=[c("已预约",-1)])]),_:1})):f("",!0),t.row.new_status==2?(u(),h(I,{key:2,class:"ml-2"},{default:s(()=>[...e[45]||(e[45]=[c("登记",-1)])]),_:1})):f("",!0),t.row.new_status==3?(u(),h(I,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[46]||(e[46]=[c("完成",-1)])]),_:1})):f("",!0)]),_:1}),a(g,{prop:"reg_num",label:"登记号"}),a(g,{prop:"note",label:"说明"}),a(g,{prop:"create_user",label:"操作人/ID"}),a(g,{prop:"created_at",label:"记录时间"}),a(g,{prop:"data",label:"状态",width:"100"},{default:s(t=>[a(C,{onClick:x=>Ye(t.row.data),size:"small"},{default:s(()=>[...e[47]||(e[47]=[c("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(r,{modelValue:n(P),"onUpdate:modelValue":e[24]||(e[24]=t=>L(P)?P.value=t:P=t),title:"查看dataJson",width:"40%"},{default:s(()=>[_("div",wt,k(n(de)),1)]),_:1},8,["modelValue"]),a(r,{modelValue:n(B),"onUpdate:modelValue":e[25]||(e[25]=t=>L(B)?B.value=t:B=t),title:"选择可一起预约的项目",width:"40%"},{default:s(()=>[n(Z).length>0?(u(),p("div",bt,[e[48]||(e[48]=_("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[_("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),_("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(u(!0),p(E,null,T(n(Z),(t,x)=>(u(),p("div",{key:x,class:"dialogitem",onClick:ye=>Ce(t)},[_("div",xt,[(u(!0),p(E,null,T(t,(ye,Mt)=>(u(),p("div",null,[_("span",kt,k(ye.item_name),1)]))),256))]),_("div",Vt,[_("div",null,k(t[0].device_name),1)])],8,ht))),128))])):f("",!0)]),_:1},8,["modelValue"]),n(Q)?(u(),p("div",St,[(u(!0),p(E,null,T(n(te),(t,x)=>(u(),p("div",{key:x},[a(at,{printInfo:t.maininfo},null,8,["printInfo"])]))),128))])):f("",!0),a(r,{modelValue:n(U),"onUpdate:modelValue":e[26]||(e[26]=t=>L(U)?U.value=t:U=t),title:"提示",width:"40%"},{default:s(()=>[(u(!0),p(E,null,T(n(J),(t,x)=>(u(),p("div",{key:x,style:{"font-size":"16px"}},[_("table",Ct,[_("tr",null,[_("td",It,[c(k(t.entrust),1),a(I,{type:"success",size:"large"},{default:s(()=>[...e[49]||(e[49]=[c("预约成功",-1)])]),_:1})])]),_("tr",null,[e[50]||(e[50]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,k(t.signInData[0].checkNo),1)]),_("tr",null,[e[51]||(e[51]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,k(t.signInData[0].queueNo),1)]),_("tr",null,[e[52]||(e[52]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,k(t.signInData[0].currentNum),1)])])]))),128)),(u(!0),p(E,null,T(n(H),(t,x)=>(u(),p("div",{key:x+200,style:{color:"crimson"}},k(t),1))),128))]),_:1},8,["modelValue"])])),[[ve,n(v)]])}}},Rt=Ge(Dt,[["__scopeId","data-v-bf15924c"]]);export{Rt as default}; diff --git a/Laravel/public/admin/assets/MainList-834cd2a2.css b/Laravel/public/dist/assets/MainList-834cd2a2.css similarity index 100% rename from Laravel/public/admin/assets/MainList-834cd2a2.css rename to Laravel/public/dist/assets/MainList-834cd2a2.css diff --git a/Laravel/public/admin/assets/MainListWithDept-143f05c7.js b/Laravel/public/dist/assets/MainListWithDept-68ffabb6.js similarity index 98% rename from Laravel/public/admin/assets/MainListWithDept-143f05c7.js rename to Laravel/public/dist/assets/MainListWithDept-68ffabb6.js index b7a452e..ed16f6f 100644 --- a/Laravel/public/admin/assets/MainListWithDept-143f05c7.js +++ b/Laravel/public/dist/assets/MainListWithDept-68ffabb6.js @@ -1 +1 @@ -import{_ as Fe,z as je,o as Je,A as We,r as V,c as he,h as se,i as s,d as o,e as p,f as a,w as n,l as S,k as _,j as x,F as L,t as U,x as g,g as d,B as He,E as w,D as Oe,I as $e,O as Ae,X as Ke,J as Qe,q as y,K as Xe,v as k,Y as Ze,N as xe,P as et,Q as tt,R as lt,T as at,W as nt}from"./index-af171713.js";import{S as st}from"./PrintShenQingDan-7546836f.js";import{Y as ut}from"./YuYue202506-e01c0944.js";const ot=["src"],it={class:"head"},rt={key:0},dt={key:0},pt={key:0},ft={key:1},mt={key:0},_t={key:1},gt={key:0},vt={key:0},yt={key:1},wt={key:2},bt={key:3},ct={class:"page"},ht={style:{"word-break":"break-all"}},xt={key:0},kt=["onClick"],Vt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},Dt={style:{"margin-left":"8px",width:"200px"}},It={style:{"margin-left":"8px",padding:"8px",display:"flex"}},St={key:0,id:"shenqingdan",style:{position:"relative"}},Ct={style:{"margin-top":"-30px"}},Lt={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},Ut={__name:"MainListWithDept",setup(Et){let ue=je(),B=d(!1),$=d(0),A=d(!1),K=d(0),v=d(!1),oe=d(""),f=d({dateType:"both",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),G=d(""),N=d([]),Q=d(null),Y=d(1),M=d(15),ie=0,j=d([]),T=d(0),re=d([]);const ke=((l,e)=>{let i=null;return function(...u){clearTimeout(i),i=setTimeout(()=>l.apply(this,u),e)}})(l=>{if(!l){j.value=[];return}nt({keyword:l}).then(e=>{e.status?j.value=e.data.list:j.value=[]})},300),C=()=>{v.value=!0,Ze({searchInfo:f.value,page:Y.value,pageSize:M.value,department_id:T.value}).then(l=>{v.value=!1,l.status?(N.value=l.data.list,ie=l.data.count):w.error(l.msg)})},Ve=l=>{M.value=l,C()},De=l=>{Y.value=l,C()};let r=d([]);const Ie=l=>{if(l.length>1){const i=l[0].list_status;l.every(b=>b.list_status===i)||(z(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(z(),l=[l[l.length-1]]);let e=r.value?r.value.length:0;J(l),e>r.value.length||Se()},z=()=>{Q.value.clearSelection(),r.value=[]},J=l=>{l?(l.forEach(e=>{e!=null&&Q.value.toggleRowSelection(e,!0)}),r.value=l):z()};let R=d(!1),X=d(null);const Se=()=>{console.log(r.value),r.value.reverse();let l="",e=!1;if(r.value.forEach((u,b)=>{l==""&&(l=u.reg_num),l!=""&&l!=u.reg_num&&(e=!0)}),e===!0){let u=r.value[0];z(),J([u])}console.log(r.value);let i=[];if(r.value[0].list_status!=0)return!1;N.value.forEach((u,b)=>{u.list_status==0&&u.reg_num==r.value[0].reg_num&&u.episodeid==r.value[0].episodeid&&(u.id==r.value[0].id?i.push({name:u.entrust,rowid:b,first:1}):i.push({name:u.entrust,rowid:b,first:0}))}),i.length>=2&&(v.value=!0,He({items:i}).then(u=>{if(v.value=!1,u.status){let b=u.data.group;if(b.length>1e9)R.value=!0,X.value=b;else{z();let h=[];b[0].forEach((H,O)=>{h.push(N.value[H.rowid])}),J(h)}}else w.error(u.msg)}))},Ce=l=>{z();let e=[];l.forEach((i,u)=>{e.push(N.value[i.rowid])}),J(e),R.value=!1};let Z=d(""),Le="https://yj.dev.cjy.net.cn/",W=d(!1);const de=l=>{console.log(r.value);let e=[];if(K.value=l,console.log(r.value),r.value.length===0)return w.error("请勾选1条记录"),!1;let i=!0;if(r.value.forEach((u,b)=>{l==1&&u.list_status!=0&&(w.error(u.entrust+" 不可进行预约操作"),i=!1),l==2&&u.list_status!=1&&(w.error(u.entrust+" 不可进行改约操作"),i=!1),e.push(u.entrust_id)}),i==!1)return!1;$.value++,oe.value=e.join(","),B.value=!0,Z.value=Le+"/jq_page/appointment.html?regnum="+encodeURIComponent(r.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(r.value[0].episodeid)+"&dotype="+K.value+"&appointment_type=4",console.log(Z.value)},Ue=()=>{Oe(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Ee=()=>{if(r.value.length===0)return w.error("请勾选1条记录"),!1;let l=!0;if(r.value.forEach(i=>{i.list_status!=1&&(w.error(`${i.entrust} 无需取消`),l=!1)}),!l)return!1;v.value=!0;const e=i=>{at({MainListId:r.value[0].id,reg_num:r.value[0].reg_num,do_user:E.value.id,password:i}).then(u=>{v.value=!1,u.status?(w({message:u.msg,type:"success"}),C()):w.error(u.msg)}).catch(u=>{v.value=!1,console.error(u)})};G.value==="SysLogin"?xe.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:i})=>{e(i)}).catch(()=>{v.value=!1}):G.value==="HisLogin"||G.value==="CasLogin"?xe.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{v.value=!1}):(v.value=!1,w.error("未知的操作类型配置"))};let Ye=d([]);const Me=()=>{v.value=!0,$e().then(l=>{v.value=!1,l.status?Ye.value=l.data:w.error(l.msg)})};let ee=d([]);const te=()=>{v.value=!0,Ae({department_id:T.value||void 0}).then(l=>{v.value=!1,l.status&&(ee.value=l.data)})},Te=()=>{v.value=!0,Ke({}).then(l=>{v.value=!1,l.status?re.value=l.data.list:w.error(l.msg)})},ze=()=>{f.value.resources=[],ee.value=[],te(),C()},pe=()=>{Qe().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);f.value.dateRange=[e,e],C()}})};let P=d(!1),fe=d(null),F=d(!1);const Re=l=>{P.value=!0,et({id:l.id}).then(e=>{e.status&&(fe.value=e.data)})};let me=d("");const qe=l=>{F.value=!0,me.value=l};let E=d(null),_e=d(null),le=d([]);const Be=()=>{if(r.value.length!==1)return w.error("请选择1项进行打印"),!1;tt({regnum:r.value[0].reg_num,entrustid:r.value[0].entrust_id,episodeid:r.value[0].episodeid,appointment_type:4}).then(l=>{if(l.status){let e=!0;le.value=l.data.info,le.value.forEach((i,u)=>{i.maininfo.list_status!=1&&(w.error(i.maininfo.entrust+" 不可打印,请重新选择"),e=!1)}),e&&(A.value=!0,setTimeout(function(){_e.value.$el.click(),A.value=!1},500))}else w.error(l.msg)})},ge=()=>{C()};let q=d(!1),ae=d([]),ne=d([]);const Ge=()=>{if(r.value.length===0)return w.error("请勾选1条记录"),!1;let l=[];r.value.forEach((e,i)=>{l.push(e.id)}),v.value=!0,lt({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?(w({message:"签到成功",type:"success"}),q.value=!0,ae.value=e.data.success,ne.value=e.data.fail):(q.value=!0,ae.value=e.data.success,ne.value=e.data.fail),C()):w.error(e.msg)})},ve=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(E.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),E.value&&E.value.group==7||G.value==="HisLogin"){f.value.doctor=E.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(f.value.reg_num=l)}};return Je(()=>{if(G.value=sessionStorage.getItem("LoginType"),Me(),Te(),ue.baseInfoStatus)ve(),te(),pe();else{const l=We(()=>ue.baseInfoStatus,e=>{e&&(ve(),te(),pe(),l())})}}),(l,e)=>{const i=V("el-dialog"),u=V("el-option"),b=V("el-select"),h=V("el-form-item"),H=V("el-date-picker"),O=V("el-input"),D=V("el-button"),ye=V("el-row"),m=V("el-table-column"),I=V("el-tag"),we=V("el-table"),Ne=V("el-pagination"),Pe=he("print"),be=he("loading");return se((o(),p("div",null,[a(i,{title:"预约列表",class:"iframeDialog",modelValue:s(W),"onUpdate:modelValue":e[0]||(e[0]=t=>S(W)?W.value=t:W=t),onOpened:Ue,onClosed:e[1]||(e[1]=t=>ge())},{default:n(()=>[(o(),p("iframe",{id:"bdIframe",src:s(Z),class:"iframe",key:s($),scrolling:"auto"},null,8,ot))]),_:1},8,["modelValue"]),a(i,{modelValue:s(B),"onUpdate:modelValue":e[2]||(e[2]=t=>S(B)?B.value=t:B=t),fullscreen:"",onClose:e[3]||(e[3]=t=>ge())},{default:n(()=>[(o(),x(ut,{reg_num:s(r)[0].reg_num,entrust_ids:s(oe),key:s($),episode_id:s(r)[0].episodeid,appointment_type:"4",dotype:s(K),do_user:s(E).id,special_privileges:s(E).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",it,[a(ye,null,{default:n(()=>[a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(T),"onUpdate:modelValue":e[4]||(e[4]=t=>S(T)?T.value=t:T=t),placeholder:"选择科室",onChange:ze,style:{"margin-left":"8px",width:"180px"}},{default:n(()=>[a(u,{label:"全部科室",value:0}),(o(!0),p(L,null,U(s(re),(t,c)=>(o(),x(u,{key:c,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{modelValue:s(f).dateType,"onUpdate:modelValue":e[5]||(e[5]=t=>s(f).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"预约日期",value:"reservation_date"}),a(u,{label:"医嘱日期",value:"entrust_date"}),a(u,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(H,{style:{"margin-left":"8px",width:"150px"},modelValue:s(f).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=t=>s(f).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=_("span",{style:{margin:"0 4px"}},"至",-1)),a(H,{style:{width:"150px"},modelValue:s(f).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=t=>s(f).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(f).list_status,"onUpdate:modelValue":e[8]||(e[8]=t=>s(f).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"申请中",value:"0"}),a(u,{label:"已预约",value:"1"}),a(u,{label:"已报道",value:"2"}),a(u,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(f).patient_type,"onUpdate:modelValue":e[9]||(e[9]=t=>s(f).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"住院",value:"0"}),a(u,{label:"门诊",value:"1"}),a(u,{label:"急诊",value:"2"}),a(u,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{multiple:"",filterable:!0,clearable:"",modelValue:s(f).resources,"onUpdate:modelValue":e[10]||(e[10]=t=>s(f).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:n(()=>[(o(!0),p(L,null,U(s(ee),(t,c)=>(o(),x(u,{key:c,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).reg_num,"onUpdate:modelValue":e[11]||(e[11]=t=>s(f).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).user_name,"onUpdate:modelValue":e[12]||(e[12]=t=>s(f).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{modelValue:s(f).apply_department,"onUpdate:modelValue":e[13]||(e[13]=t=>s(f).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":s(ke)},{default:n(()=>[(o(!0),p(L,null,U(s(j),t=>(o(),x(u,{key:t.id,label:t.department_name+" ("+t.department_number+")",value:t.department_name},null,8,["label","value"]))),128))]),_:1},8,["modelValue","remote-method"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).doctor,"onUpdate:modelValue":e[14]||(e[14]=t=>s(f).doctor=t),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(D,{type:"primary",onClick:e[15]||(e[15]=t=>C()),style:{"margin-left":"10px"}},{default:n(()=>[...e[28]||(e[28]=[y("查询",-1)])]),_:1})]),_:1})]),_:1}),a(ye,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:n(()=>[a(D,{type:"success",onClick:e[16]||(e[16]=Xe(t=>de(1),["prevent"]))},{default:n(()=>[...e[29]||(e[29]=[y("预 约",-1)])]),_:1}),a(D,{type:"danger",onClick:e[17]||(e[17]=t=>Ee())},{default:n(()=>[...e[30]||(e[30]=[y("取消预约",-1)])]),_:1}),a(D,{type:"warning",onClick:e[18]||(e[18]=t=>de(2))},{default:n(()=>[...e[31]||(e[31]=[y("更改预约时间",-1)])]),_:1}),a(D,{type:"primary",onClick:e[19]||(e[19]=t=>Ge()),style:{"margin-left":"40px"}},{default:n(()=>[...e[32]||(e[32]=[y("报到",-1)])]),_:1}),se((o(),x(D,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:_e},{default:n(()=>[...e[33]||(e[33]=[y("打印申请单隐藏按钮",-1)])]),_:1})),[[Pe,"#shenqingdan"]]),a(D,{onClick:e[20]||(e[20]=t=>Be())},{default:n(()=>[...e[34]||(e[34]=[y("打印申请单",-1)])]),_:1})]),_:1})]),se((o(),x(we,{data:s(N),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:Q,onSelect:Ie},{default:n(()=>[a(m,{type:"selection",width:"50"}),a(m,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(o(),x(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[35]||(e[35]=[y("申请中",-1)])]),_:1})):g("",!0),t.row.list_status===1?(o(),x(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[36]||(e[36]=[y("已预约",-1)])]),_:1})):g("",!0),t.row.list_status===2?(o(),x(I,{key:2,class:"ml-2"},{default:n(()=>[...e[37]||(e[37]=[y("登记",-1)])]),_:1})):g("",!0),t.row.list_status===3?(o(),x(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[38]||(e[38]=[y("完成",-1)])]),_:1})):g("",!0)]),_:1}),a(m,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(o(),p("span",rt,k(t.row.reg_num),1)):g("",!0)]),_:1}),a(m,{label:"住院号",width:"120"},{default:n(t=>{var c;return[t.row.patient_type==0?(o(),p("span",dt,k((c=t.row.episodeid)==null?void 0:c.slice(-10)),1)):g("",!0)]}),_:1}),a(m,{prop:"user_name",label:"姓名"}),a(m,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(o(),p("span",pt,"男")):g("",!0),t.row.user_sex==2?(o(),p("span",ft,"女")):g("",!0)]),_:1}),a(m,{prop:"age",label:"年龄",width:"115"}),a(m,{prop:"entrust",label:"医嘱",width:"200"}),a(m,{prop:"is_pay",label:"是否交费",width:"80"},{default:n(t=>[t.row.is_pay==1?(o(),p("span",mt,"是")):g("",!0),t.row.is_pay==0?(o(),p("span",_t,"否")):g("",!0)]),_:1}),a(m,{prop:"reservation_date",label:"预约日期",width:"120"}),a(m,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(o(),p("span",gt,k(t.row.period_begin_time.substring(0,5))+"~"+k(t.row.period_end_time.substring(0,5)),1)):g("",!0)]),_:1}),a(m,{prop:"department_resources_name",label:"排班",width:"120"}),a(m,{prop:"reservation_department",label:"申请科室",width:"120"}),a(m,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[y(k(t.row.entrust_date)+" "+k(t.row.entrust_time),1)]),_:1}),a(m,{prop:"docotr",label:"申请医生",width:"80"}),a(m,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(o(),p("span",vt,"住院")):g("",!0),t.row.patient_type==1?(o(),p("span",yt,"门诊")):g("",!0),t.row.patient_type==2?(o(),p("span",wt,"急诊")):g("",!0),t.row.patient_type==3?(o(),p("span",bt,"体检")):g("",!0)]),_:1}),a(m,{prop:"user_phone",label:"电话",width:"120"}),a(m,{prop:"department_resources_name",label:"操作",width:"120"},{default:n(t=>[a(D,{onClick:c=>Re(t.row),size:"small"},{default:n(()=>[...e[39]||(e[39]=[y("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[be,s(v)]]),_("div",ct,[a(Ne,{"current-page":s(Y),"onUpdate:currentPage":e[21]||(e[21]=t=>S(Y)?Y.value=t:Y=t),"page-size":s(M),"onUpdate:pageSize":e[22]||(e[22]=t=>S(M)?M.value=t:M=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(ie),onSizeChange:Ve,onCurrentChange:De},null,8,["current-page","page-size","total"])]),a(i,{modelValue:s(P),"onUpdate:modelValue":e[23]||(e[23]=t=>S(P)?P.value=t:P=t),title:"变更记录",width:"50%"},{default:n(()=>[_("div",null,[a(we,{data:s(fe),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(m,{prop:"list_status",label:"状态",width:"100"},{default:n(t=>[t.row.new_status==0?(o(),x(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[40]||(e[40]=[y("申请中",-1)])]),_:1})):g("",!0),t.row.new_status==1?(o(),x(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[41]||(e[41]=[y("已预约",-1)])]),_:1})):g("",!0),t.row.new_status==2?(o(),x(I,{key:2,class:"ml-2"},{default:n(()=>[...e[42]||(e[42]=[y("登记",-1)])]),_:1})):g("",!0),t.row.new_status==3?(o(),x(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[43]||(e[43]=[y("完成",-1)])]),_:1})):g("",!0)]),_:1}),a(m,{prop:"reg_num",label:"登记号"}),a(m,{prop:"note",label:"说明"}),a(m,{prop:"create_user",label:"操作人/ID"}),a(m,{prop:"created_at",label:"记录时间"}),a(m,{prop:"data",label:"状态",width:"100"},{default:n(t=>[a(D,{onClick:c=>qe(t.row.data),size:"small"},{default:n(()=>[...e[44]||(e[44]=[y("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(i,{modelValue:s(F),"onUpdate:modelValue":e[24]||(e[24]=t=>S(F)?F.value=t:F=t),title:"查看dataJson",width:"40%"},{default:n(()=>[_("div",ht,k(s(me)),1)]),_:1},8,["modelValue"]),a(i,{modelValue:s(R),"onUpdate:modelValue":e[25]||(e[25]=t=>S(R)?R.value=t:R=t),title:"选择可一起预约的项目",width:"40%"},{default:n(()=>[s(X).length>0?(o(),p("div",xt,[e[45]||(e[45]=_("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[_("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),_("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(o(!0),p(L,null,U(s(X),(t,c)=>(o(),p("div",{key:c,class:"dialogitem",onClick:ce=>Ce(t)},[_("div",Vt,[(o(!0),p(L,null,U(t,(ce,Tt)=>(o(),p("div",null,[_("span",Dt,k(ce.item_name),1)]))),256))]),_("div",It,[_("div",null,k(t[0].device_name),1)])],8,kt))),128))])):g("",!0)]),_:1},8,["modelValue"]),s(A)?(o(),p("div",St,[(o(!0),p(L,null,U(s(le),(t,c)=>(o(),p("div",{key:c},[a(st,{printInfo:t.maininfo},null,8,["printInfo"])]))),128))])):g("",!0),a(i,{modelValue:s(q),"onUpdate:modelValue":e[26]||(e[26]=t=>S(q)?q.value=t:q=t),title:"提示",width:"40%"},{default:n(()=>[(o(!0),p(L,null,U(s(ae),(t,c)=>(o(),p("div",{key:c,style:{"font-size":"16px"}},[_("table",Ct,[_("tr",null,[_("td",Lt,[y(k(t.entrust),1),a(I,{type:"success",size:"large"},{default:n(()=>[...e[46]||(e[46]=[y("预约成功",-1)])]),_:1})])]),_("tr",null,[e[47]||(e[47]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,k(t.signInData[0].checkNo),1)]),_("tr",null,[e[48]||(e[48]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,k(t.signInData[0].queueNo),1)]),_("tr",null,[e[49]||(e[49]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,k(t.signInData[0].currentNum),1)])])]))),128)),(o(!0),p(L,null,U(s(ne),(t,c)=>(o(),p("div",{key:c+200,style:{color:"crimson"}},k(t),1))),128))]),_:1},8,["modelValue"])])),[[be,s(v)]])}}},Bt=Fe(Ut,[["__scopeId","data-v-b1ee9b0c"]]);export{Bt as default}; +import{_ as Fe,z as je,o as Je,A as We,r as V,c as he,h as se,i as s,d as o,e as p,f as a,w as n,l as S,k as _,j as x,F as L,t as U,x as g,g as d,B as He,E as w,D as Oe,I as $e,O as Ae,X as Ke,J as Qe,q as y,K as Xe,v as k,Y as Ze,N as xe,P as et,Q as tt,R as lt,T as at,W as nt}from"./index-e65958bd.js";import{S as st}from"./PrintShenQingDan-80054efb.js";import{Y as ut}from"./YuYue202506-f1503368.js";const ot=["src"],it={class:"head"},rt={key:0},dt={key:0},pt={key:0},ft={key:1},mt={key:0},_t={key:1},gt={key:0},vt={key:0},yt={key:1},wt={key:2},bt={key:3},ct={class:"page"},ht={style:{"word-break":"break-all"}},xt={key:0},kt=["onClick"],Vt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},Dt={style:{"margin-left":"8px",width:"200px"}},It={style:{"margin-left":"8px",padding:"8px",display:"flex"}},St={key:0,id:"shenqingdan",style:{position:"relative"}},Ct={style:{"margin-top":"-30px"}},Lt={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},Ut={__name:"MainListWithDept",setup(Et){let ue=je(),B=d(!1),$=d(0),A=d(!1),K=d(0),v=d(!1),oe=d(""),f=d({dateType:"both",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),G=d(""),N=d([]),Q=d(null),Y=d(1),M=d(15),ie=0,j=d([]),T=d(0),re=d([]);const ke=((l,e)=>{let i=null;return function(...u){clearTimeout(i),i=setTimeout(()=>l.apply(this,u),e)}})(l=>{if(!l){j.value=[];return}nt({keyword:l}).then(e=>{e.status?j.value=e.data.list:j.value=[]})},300),C=()=>{v.value=!0,Ze({searchInfo:f.value,page:Y.value,pageSize:M.value,department_id:T.value}).then(l=>{v.value=!1,l.status?(N.value=l.data.list,ie=l.data.count):w.error(l.msg)})},Ve=l=>{M.value=l,C()},De=l=>{Y.value=l,C()};let r=d([]);const Ie=l=>{if(l.length>1){const i=l[0].list_status;l.every(b=>b.list_status===i)||(z(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(z(),l=[l[l.length-1]]);let e=r.value?r.value.length:0;J(l),e>r.value.length||Se()},z=()=>{Q.value.clearSelection(),r.value=[]},J=l=>{l?(l.forEach(e=>{e!=null&&Q.value.toggleRowSelection(e,!0)}),r.value=l):z()};let R=d(!1),X=d(null);const Se=()=>{console.log(r.value),r.value.reverse();let l="",e=!1;if(r.value.forEach((u,b)=>{l==""&&(l=u.reg_num),l!=""&&l!=u.reg_num&&(e=!0)}),e===!0){let u=r.value[0];z(),J([u])}console.log(r.value);let i=[];if(r.value[0].list_status!=0)return!1;N.value.forEach((u,b)=>{u.list_status==0&&u.reg_num==r.value[0].reg_num&&u.episodeid==r.value[0].episodeid&&(u.id==r.value[0].id?i.push({name:u.entrust,rowid:b,first:1}):i.push({name:u.entrust,rowid:b,first:0}))}),i.length>=2&&(v.value=!0,He({items:i}).then(u=>{if(v.value=!1,u.status){let b=u.data.group;if(b.length>1e9)R.value=!0,X.value=b;else{z();let h=[];b[0].forEach((H,O)=>{h.push(N.value[H.rowid])}),J(h)}}else w.error(u.msg)}))},Ce=l=>{z();let e=[];l.forEach((i,u)=>{e.push(N.value[i.rowid])}),J(e),R.value=!1};let Z=d(""),Le="https://yj.dev.cjy.net.cn/",W=d(!1);const de=l=>{console.log(r.value);let e=[];if(K.value=l,console.log(r.value),r.value.length===0)return w.error("请勾选1条记录"),!1;let i=!0;if(r.value.forEach((u,b)=>{l==1&&u.list_status!=0&&(w.error(u.entrust+" 不可进行预约操作"),i=!1),l==2&&u.list_status!=1&&(w.error(u.entrust+" 不可进行改约操作"),i=!1),e.push(u.entrust_id)}),i==!1)return!1;$.value++,oe.value=e.join(","),B.value=!0,Z.value=Le+"/jq_page/appointment.html?regnum="+encodeURIComponent(r.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(r.value[0].episodeid)+"&dotype="+K.value+"&appointment_type=4",console.log(Z.value)},Ue=()=>{Oe(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Ee=()=>{if(r.value.length===0)return w.error("请勾选1条记录"),!1;let l=!0;if(r.value.forEach(i=>{i.list_status!=1&&(w.error(`${i.entrust} 无需取消`),l=!1)}),!l)return!1;v.value=!0;const e=i=>{at({MainListId:r.value[0].id,reg_num:r.value[0].reg_num,do_user:E.value.id,password:i}).then(u=>{v.value=!1,u.status?(w({message:u.msg,type:"success"}),C()):w.error(u.msg)}).catch(u=>{v.value=!1,console.error(u)})};G.value==="SysLogin"?xe.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:i})=>{e(i)}).catch(()=>{v.value=!1}):G.value==="HisLogin"||G.value==="CasLogin"?xe.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{v.value=!1}):(v.value=!1,w.error("未知的操作类型配置"))};let Ye=d([]);const Me=()=>{v.value=!0,$e().then(l=>{v.value=!1,l.status?Ye.value=l.data:w.error(l.msg)})};let ee=d([]);const te=()=>{v.value=!0,Ae({department_id:T.value||void 0}).then(l=>{v.value=!1,l.status&&(ee.value=l.data)})},Te=()=>{v.value=!0,Ke({}).then(l=>{v.value=!1,l.status?re.value=l.data.list:w.error(l.msg)})},ze=()=>{f.value.resources=[],ee.value=[],te(),C()},pe=()=>{Qe().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);f.value.dateRange=[e,e],C()}})};let P=d(!1),fe=d(null),F=d(!1);const Re=l=>{P.value=!0,et({id:l.id}).then(e=>{e.status&&(fe.value=e.data)})};let me=d("");const qe=l=>{F.value=!0,me.value=l};let E=d(null),_e=d(null),le=d([]);const Be=()=>{if(r.value.length!==1)return w.error("请选择1项进行打印"),!1;tt({regnum:r.value[0].reg_num,entrustid:r.value[0].entrust_id,episodeid:r.value[0].episodeid,appointment_type:4}).then(l=>{if(l.status){let e=!0;le.value=l.data.info,le.value.forEach((i,u)=>{i.maininfo.list_status!=1&&(w.error(i.maininfo.entrust+" 不可打印,请重新选择"),e=!1)}),e&&(A.value=!0,setTimeout(function(){_e.value.$el.click(),A.value=!1},500))}else w.error(l.msg)})},ge=()=>{C()};let q=d(!1),ae=d([]),ne=d([]);const Ge=()=>{if(r.value.length===0)return w.error("请勾选1条记录"),!1;let l=[];r.value.forEach((e,i)=>{l.push(e.id)}),v.value=!0,lt({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?(w({message:"签到成功",type:"success"}),q.value=!0,ae.value=e.data.success,ne.value=e.data.fail):(q.value=!0,ae.value=e.data.success,ne.value=e.data.fail),C()):w.error(e.msg)})},ve=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(E.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),E.value&&E.value.group==7||G.value==="HisLogin"){f.value.doctor=E.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(f.value.reg_num=l)}};return Je(()=>{if(G.value=sessionStorage.getItem("LoginType"),Me(),Te(),ue.baseInfoStatus)ve(),te(),pe();else{const l=We(()=>ue.baseInfoStatus,e=>{e&&(ve(),te(),pe(),l())})}}),(l,e)=>{const i=V("el-dialog"),u=V("el-option"),b=V("el-select"),h=V("el-form-item"),H=V("el-date-picker"),O=V("el-input"),D=V("el-button"),ye=V("el-row"),m=V("el-table-column"),I=V("el-tag"),we=V("el-table"),Ne=V("el-pagination"),Pe=he("print"),be=he("loading");return se((o(),p("div",null,[a(i,{title:"预约列表",class:"iframeDialog",modelValue:s(W),"onUpdate:modelValue":e[0]||(e[0]=t=>S(W)?W.value=t:W=t),onOpened:Ue,onClosed:e[1]||(e[1]=t=>ge())},{default:n(()=>[(o(),p("iframe",{id:"bdIframe",src:s(Z),class:"iframe",key:s($),scrolling:"auto"},null,8,ot))]),_:1},8,["modelValue"]),a(i,{modelValue:s(B),"onUpdate:modelValue":e[2]||(e[2]=t=>S(B)?B.value=t:B=t),fullscreen:"",onClose:e[3]||(e[3]=t=>ge())},{default:n(()=>[(o(),x(ut,{reg_num:s(r)[0].reg_num,entrust_ids:s(oe),key:s($),episode_id:s(r)[0].episodeid,appointment_type:"4",dotype:s(K),do_user:s(E).id,special_privileges:s(E).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",it,[a(ye,null,{default:n(()=>[a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(T),"onUpdate:modelValue":e[4]||(e[4]=t=>S(T)?T.value=t:T=t),placeholder:"选择科室",onChange:ze,style:{"margin-left":"8px",width:"180px"}},{default:n(()=>[a(u,{label:"全部科室",value:0}),(o(!0),p(L,null,U(s(re),(t,c)=>(o(),x(u,{key:c,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{modelValue:s(f).dateType,"onUpdate:modelValue":e[5]||(e[5]=t=>s(f).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"预约日期",value:"reservation_date"}),a(u,{label:"医嘱日期",value:"entrust_date"}),a(u,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(H,{style:{"margin-left":"8px",width:"150px"},modelValue:s(f).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=t=>s(f).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=_("span",{style:{margin:"0 4px"}},"至",-1)),a(H,{style:{width:"150px"},modelValue:s(f).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=t=>s(f).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(f).list_status,"onUpdate:modelValue":e[8]||(e[8]=t=>s(f).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"申请中",value:"0"}),a(u,{label:"已预约",value:"1"}),a(u,{label:"已报道",value:"2"}),a(u,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{filterable:!0,clearable:"",modelValue:s(f).patient_type,"onUpdate:modelValue":e[9]||(e[9]=t=>s(f).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(u,{label:"住院",value:"0"}),a(u,{label:"门诊",value:"1"}),a(u,{label:"急诊",value:"2"}),a(u,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{multiple:"",filterable:!0,clearable:"",modelValue:s(f).resources,"onUpdate:modelValue":e[10]||(e[10]=t=>s(f).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:n(()=>[(o(!0),p(L,null,U(s(ee),(t,c)=>(o(),x(u,{key:c,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).reg_num,"onUpdate:modelValue":e[11]||(e[11]=t=>s(f).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).user_name,"onUpdate:modelValue":e[12]||(e[12]=t=>s(f).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(b,{modelValue:s(f).apply_department,"onUpdate:modelValue":e[13]||(e[13]=t=>s(f).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":s(ke)},{default:n(()=>[(o(!0),p(L,null,U(s(j),t=>(o(),x(u,{key:t.id,label:t.department_name+" ("+t.department_number+")",value:t.department_name},null,8,["label","value"]))),128))]),_:1},8,["modelValue","remote-method"])]),_:1}),a(h,null,{default:n(()=>[a(O,{modelValue:s(f).doctor,"onUpdate:modelValue":e[14]||(e[14]=t=>s(f).doctor=t),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(h,null,{default:n(()=>[a(D,{type:"primary",onClick:e[15]||(e[15]=t=>C()),style:{"margin-left":"10px"}},{default:n(()=>[...e[28]||(e[28]=[y("查询",-1)])]),_:1})]),_:1})]),_:1}),a(ye,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:n(()=>[a(D,{type:"success",onClick:e[16]||(e[16]=Xe(t=>de(1),["prevent"]))},{default:n(()=>[...e[29]||(e[29]=[y("预 约",-1)])]),_:1}),a(D,{type:"danger",onClick:e[17]||(e[17]=t=>Ee())},{default:n(()=>[...e[30]||(e[30]=[y("取消预约",-1)])]),_:1}),a(D,{type:"warning",onClick:e[18]||(e[18]=t=>de(2))},{default:n(()=>[...e[31]||(e[31]=[y("更改预约时间",-1)])]),_:1}),a(D,{type:"primary",onClick:e[19]||(e[19]=t=>Ge()),style:{"margin-left":"40px"}},{default:n(()=>[...e[32]||(e[32]=[y("报到",-1)])]),_:1}),se((o(),x(D,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:_e},{default:n(()=>[...e[33]||(e[33]=[y("打印申请单隐藏按钮",-1)])]),_:1})),[[Pe,"#shenqingdan"]]),a(D,{onClick:e[20]||(e[20]=t=>Be())},{default:n(()=>[...e[34]||(e[34]=[y("打印申请单",-1)])]),_:1})]),_:1})]),se((o(),x(we,{data:s(N),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:Q,onSelect:Ie},{default:n(()=>[a(m,{type:"selection",width:"50"}),a(m,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(o(),x(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[35]||(e[35]=[y("申请中",-1)])]),_:1})):g("",!0),t.row.list_status===1?(o(),x(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[36]||(e[36]=[y("已预约",-1)])]),_:1})):g("",!0),t.row.list_status===2?(o(),x(I,{key:2,class:"ml-2"},{default:n(()=>[...e[37]||(e[37]=[y("登记",-1)])]),_:1})):g("",!0),t.row.list_status===3?(o(),x(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[38]||(e[38]=[y("完成",-1)])]),_:1})):g("",!0)]),_:1}),a(m,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(o(),p("span",rt,k(t.row.reg_num),1)):g("",!0)]),_:1}),a(m,{label:"住院号",width:"120"},{default:n(t=>{var c;return[t.row.patient_type==0?(o(),p("span",dt,k((c=t.row.episodeid)==null?void 0:c.slice(-10)),1)):g("",!0)]}),_:1}),a(m,{prop:"user_name",label:"姓名"}),a(m,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(o(),p("span",pt,"男")):g("",!0),t.row.user_sex==2?(o(),p("span",ft,"女")):g("",!0)]),_:1}),a(m,{prop:"age",label:"年龄",width:"115"}),a(m,{prop:"entrust",label:"医嘱",width:"200"}),a(m,{prop:"is_pay",label:"是否交费",width:"80"},{default:n(t=>[t.row.is_pay==1?(o(),p("span",mt,"是")):g("",!0),t.row.is_pay==0?(o(),p("span",_t,"否")):g("",!0)]),_:1}),a(m,{prop:"reservation_date",label:"预约日期",width:"120"}),a(m,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(o(),p("span",gt,k(t.row.period_begin_time.substring(0,5))+"~"+k(t.row.period_end_time.substring(0,5)),1)):g("",!0)]),_:1}),a(m,{prop:"department_resources_name",label:"排班",width:"120"}),a(m,{prop:"reservation_department",label:"申请科室",width:"120"}),a(m,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[y(k(t.row.entrust_date)+" "+k(t.row.entrust_time),1)]),_:1}),a(m,{prop:"docotr",label:"申请医生",width:"80"}),a(m,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(o(),p("span",vt,"住院")):g("",!0),t.row.patient_type==1?(o(),p("span",yt,"门诊")):g("",!0),t.row.patient_type==2?(o(),p("span",wt,"急诊")):g("",!0),t.row.patient_type==3?(o(),p("span",bt,"体检")):g("",!0)]),_:1}),a(m,{prop:"user_phone",label:"电话",width:"120"}),a(m,{prop:"department_resources_name",label:"操作",width:"120"},{default:n(t=>[a(D,{onClick:c=>Re(t.row),size:"small"},{default:n(()=>[...e[39]||(e[39]=[y("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[be,s(v)]]),_("div",ct,[a(Ne,{"current-page":s(Y),"onUpdate:currentPage":e[21]||(e[21]=t=>S(Y)?Y.value=t:Y=t),"page-size":s(M),"onUpdate:pageSize":e[22]||(e[22]=t=>S(M)?M.value=t:M=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(ie),onSizeChange:Ve,onCurrentChange:De},null,8,["current-page","page-size","total"])]),a(i,{modelValue:s(P),"onUpdate:modelValue":e[23]||(e[23]=t=>S(P)?P.value=t:P=t),title:"变更记录",width:"50%"},{default:n(()=>[_("div",null,[a(we,{data:s(fe),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(m,{prop:"list_status",label:"状态",width:"100"},{default:n(t=>[t.row.new_status==0?(o(),x(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[40]||(e[40]=[y("申请中",-1)])]),_:1})):g("",!0),t.row.new_status==1?(o(),x(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[41]||(e[41]=[y("已预约",-1)])]),_:1})):g("",!0),t.row.new_status==2?(o(),x(I,{key:2,class:"ml-2"},{default:n(()=>[...e[42]||(e[42]=[y("登记",-1)])]),_:1})):g("",!0),t.row.new_status==3?(o(),x(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[43]||(e[43]=[y("完成",-1)])]),_:1})):g("",!0)]),_:1}),a(m,{prop:"reg_num",label:"登记号"}),a(m,{prop:"note",label:"说明"}),a(m,{prop:"create_user",label:"操作人/ID"}),a(m,{prop:"created_at",label:"记录时间"}),a(m,{prop:"data",label:"状态",width:"100"},{default:n(t=>[a(D,{onClick:c=>qe(t.row.data),size:"small"},{default:n(()=>[...e[44]||(e[44]=[y("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(i,{modelValue:s(F),"onUpdate:modelValue":e[24]||(e[24]=t=>S(F)?F.value=t:F=t),title:"查看dataJson",width:"40%"},{default:n(()=>[_("div",ht,k(s(me)),1)]),_:1},8,["modelValue"]),a(i,{modelValue:s(R),"onUpdate:modelValue":e[25]||(e[25]=t=>S(R)?R.value=t:R=t),title:"选择可一起预约的项目",width:"40%"},{default:n(()=>[s(X).length>0?(o(),p("div",xt,[e[45]||(e[45]=_("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[_("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),_("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(o(!0),p(L,null,U(s(X),(t,c)=>(o(),p("div",{key:c,class:"dialogitem",onClick:ce=>Ce(t)},[_("div",Vt,[(o(!0),p(L,null,U(t,(ce,Tt)=>(o(),p("div",null,[_("span",Dt,k(ce.item_name),1)]))),256))]),_("div",It,[_("div",null,k(t[0].device_name),1)])],8,kt))),128))])):g("",!0)]),_:1},8,["modelValue"]),s(A)?(o(),p("div",St,[(o(!0),p(L,null,U(s(le),(t,c)=>(o(),p("div",{key:c},[a(st,{printInfo:t.maininfo},null,8,["printInfo"])]))),128))])):g("",!0),a(i,{modelValue:s(q),"onUpdate:modelValue":e[26]||(e[26]=t=>S(q)?q.value=t:q=t),title:"提示",width:"40%"},{default:n(()=>[(o(!0),p(L,null,U(s(ae),(t,c)=>(o(),p("div",{key:c,style:{"font-size":"16px"}},[_("table",Ct,[_("tr",null,[_("td",Lt,[y(k(t.entrust),1),a(I,{type:"success",size:"large"},{default:n(()=>[...e[46]||(e[46]=[y("预约成功",-1)])]),_:1})])]),_("tr",null,[e[47]||(e[47]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,k(t.signInData[0].checkNo),1)]),_("tr",null,[e[48]||(e[48]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,k(t.signInData[0].queueNo),1)]),_("tr",null,[e[49]||(e[49]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,k(t.signInData[0].currentNum),1)])])]))),128)),(o(!0),p(L,null,U(s(ne),(t,c)=>(o(),p("div",{key:c+200,style:{color:"crimson"}},k(t),1))),128))]),_:1},8,["modelValue"])])),[[be,s(v)]])}}},Bt=Fe(Ut,[["__scopeId","data-v-b1ee9b0c"]]);export{Bt as default}; diff --git a/Laravel/public/admin/assets/MainListWithDept-8fbbdf83.css b/Laravel/public/dist/assets/MainListWithDept-8fbbdf83.css similarity index 100% rename from Laravel/public/admin/assets/MainListWithDept-8fbbdf83.css rename to Laravel/public/dist/assets/MainListWithDept-8fbbdf83.css diff --git a/Laravel/public/admin/assets/MainList_ZhuYuan-dcf5c1b3.js b/Laravel/public/dist/assets/MainList_ZhuYuan-1d81d008.js similarity index 99% rename from Laravel/public/admin/assets/MainList_ZhuYuan-dcf5c1b3.js rename to Laravel/public/dist/assets/MainList_ZhuYuan-1d81d008.js index 09d4a4c..543c48e 100644 --- a/Laravel/public/admin/assets/MainList_ZhuYuan-dcf5c1b3.js +++ b/Laravel/public/dist/assets/MainList_ZhuYuan-1d81d008.js @@ -1,3 +1,3 @@ -import{_ as Ve,o as Ee,r as h,c as ye,d as u,e as p,k as D,h as ae,i as _,j as k,w as i,f as l,v as Y,q as v,x as g,F as W,t as K,$ as De,l as G,g as f,bo as Ce,D as Be,E as c,a1 as ze,a3 as Pe,N as de,a4 as qe,a5 as Ue,z as Ne,A as Re,M as Ge,B as $e,J as Fe,K as Je,T as je,P as Ae,Q as Ze}from"./index-af171713.js";import{S as Te}from"./PrintShenQingDan-7546836f.js";const Oe={class:"YuYue"},We={class:"entrustList"},Ke={key:0,class:"errMsg"},Qe={key:1},He={key:0},Xe={key:1},et={key:0,style:{color:"orangered"}},tt={key:1},lt={key:0},nt={key:0},at={key:1},st={class:"planInfo"},ot={style:{display:"flex","justify-content":"space-between","margin-top":"8px","margin-bottom":"8px"}},ut={style:{display:"flex"}},it=["onClick"],rt={style:{border:"1px solid #efefef"}},dt={class:"planTable"},_t={key:0,style:{"background-color":"#f1f1f1"}},pt=["onClick"],ft={key:0},mt={key:1},gt={key:0},vt={key:1,style:{"background-color":"#fff"}},ct={key:0,id:"shenqingdan",style:{position:"relative"}},ht={key:0,style:{height:"100vh"}},yt={__name:"YuYue",props:{YuYueInfo:{type:Object},ServiceDate:{type:String},do_user:{type:[String,Number],default:null}},setup(Ie){const P=Ie;let Q=f(!1),B=f(!1),V=f(null),w=f([]),q=f(null),I=f([]),E=f([]),H=f([]),T=f(""),y=f(0),d=f([]),L=f([]),F=f([]),J=f(""),le=f(!1),j=f([]),z=f(["1"]),A=f(!1),ne=f([]),_e=f(null);const be=r=>{let t=["周日","周一","周二","周三","周四","周五","周六"];const o=new Date(r).getDay();return t[o]};function Z(r){const t=r.getFullYear(),e=String(r.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0");return`${t}-${e}-${o}`}function U(r=new Date,t=15){const e=new Date(r),o=[];if(isNaN(e.getTime()))throw new Error("无效的日期格式");for(let a=0;a15}const we=()=>{w.value=[],V.value&&V.value.forEach((r,t)=>{const e=r.mainInfo||{};r.itemInfo.forEach(o=>{var x;const a=o.entrust||{},m=o.item||{};w.value.push({patient_name:e.user_name||"",user_sex:e.user_sex||"",user_sex_label:e.user_sex==1?"男":e.user_sex==2?"女":"",age:e.age||"",reg_num:e.reg_num||"",episodeid:e.episodeid||"",user_phone:e.user_phone||"",id:a.id,entrust_id:a.entrust_id,entrust:a.entrust,list_status:a.list_status,docotr:a.docotr,is_pay:a.is_pay,his_is_emergency:a.his_is_emergency,reservation_date:a.reservation_date,period_begin_time:a.period_begin_time,period_end_time:a.period_end_time,reservation_department:a.reservation_department,entrust_date:a.entrust_date,entrust_time:a.entrust_time,department_resources_name:((x=a.department_resources)==null?void 0:x.department_resources_name)||"",roster_id:a.roster_id,app_num:a.app_num,barcode:a.barcode,limosis:m.limosis,use_seats:m.use_seats,item_name:m.item_name,tishi_msg:o.msg||"",msg:o.msg||"",patientIndex:t})})})},oe=()=>{let r=F.value;Q.value=!0,Ce({entrustInfo:P.YuYueInfo.entrustInfo,appointment_type:P.YuYueInfo.appointment_type}).then(t=>{Q.value=!1,t.status?(V.value=t.data.info,we(),Be(()=>{if(r.length>0)r.forEach(e=>{const o=w.value.findIndex(a=>a.id==e);o>-1&&q.value.toggleRowSelection(w.value[o],!0)});else for(let e=0;er.tishi_msg=="",me=({row:r})=>{if(r.tishi_msg!="")return"disabled-row"},ge=r=>{var t;F.value=[],L.value=[],H.value=[],E.value=[],T.value="",d.value=r,d.value.forEach(e=>{F.value.push(e.id),L.value.push(e.entrust_id)}),d.value.length>0&&(d.value.every(o=>{var a;return o.roster_id===((a=d.value[0])==null?void 0:a.roster_id)})&&((t=d.value[0])!=null&&t.roster_id)?(y.value=d.value[0].roster_id,J.value=d.value[0].reservation_date,fe(pe(),d.value[0].reservation_date)&&d.value[0].reservation_date?I.value=U(d.value[0].reservation_date):I.value=U(pe()),T.value=d.value[0].department_resources_name):y.value=0),L.value.length>0&&N()},N=()=>{if(L.value.length==0)return c.error("请选择检查项目"),!1;B.value=!0;const r=d.value[0];let t=0;d.value.forEach(e=>{e.use_seats&&(t+=e.use_seats)}),ze({regnum:r.reg_num,entrustid:L.value,episodeid:r.episodeid,appointment_type:P.YuYueInfo.appointment_type,date:I.value}).then(e=>{if(B.value=!1,E.value=[],H.value=[],e.status){let o=e.data.plan_list,a=e.data.zhanWeiCount;if(o&&o.length>0){T.value==""&&(T.value=o[0].department_resources_name);const m=new Set,x=new Set;o.forEach(C=>{if(C.department_resources_name==T.value){const b=`${C.begin_time.substring(0,5)}-${C.end_time.substring(0,5)}`;m.add(b)}x.add(C.department_resources_name)}),H.value=x,Array.from(m).sort().forEach(C=>{const b={time_range:C};I.value.forEach(R=>{const $=o.find(n=>`${n.begin_time.substring(0,5)}-${n.end_time.substring(0,5)}`===C&&n.date===R&&n.department_resources_name==T.value);let ee=!1;if($){const n=$.count-$.used_count;n>=a&&n>=t&&$.plan_enable===!0&&(ee=!0),(y.value==0||y.value==""||y.value==null)&&$.id==e.data.earliestPlan&&(y.value=$.id),b[R]={use_count:`${$.used_count}/${$.count}`,id:$.id,enable:ee}}else b[R]={use_count:"0/0",id:null,enable:ee}}),E.value.push(b)})}}else c.error(e.msg)})},ve=r=>{T.value=r,y.value=0,N()},X=r=>{r!=null&&r!=null&&(y.value=r,xe())},xe=()=>{const r=d.value[0];r&&(B.value=!0,Pe({reg_num:r.reg_num,planid:y.value}).then(t=>{B.value=!1,t.status||de.confirm(t.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})}))},ue=r=>{if(L.value.length==0)return c.error("请选择检查项目"),!1;if(y.value==0||y.value==""||y.value==null)return c.error("请选择号源"),!1;let t="确定预约此时间吗?";r==2&&(t="确定改约至此时间吗?");const e={};d.value.forEach(a=>{e[a.patient_name]||(e[a.patient_name]=[]),e[a.patient_name].push(a.entrust)});let o=Object.entries(e).map(([a,m])=>`${a}:${m.join("、")}`).join(` +import{_ as Ve,o as Ee,r as h,c as ye,d as u,e as p,k as D,h as ae,i as _,j as k,w as i,f as l,v as Y,q as v,x as g,F as W,t as K,$ as De,l as G,g as f,bo as Ce,D as Be,E as c,a1 as ze,a3 as Pe,N as de,a4 as qe,a5 as Ue,z as Ne,A as Re,M as Ge,B as $e,J as Fe,K as Je,T as je,P as Ae,Q as Ze}from"./index-e65958bd.js";import{S as Te}from"./PrintShenQingDan-80054efb.js";const Oe={class:"YuYue"},We={class:"entrustList"},Ke={key:0,class:"errMsg"},Qe={key:1},He={key:0},Xe={key:1},et={key:0,style:{color:"orangered"}},tt={key:1},lt={key:0},nt={key:0},at={key:1},st={class:"planInfo"},ot={style:{display:"flex","justify-content":"space-between","margin-top":"8px","margin-bottom":"8px"}},ut={style:{display:"flex"}},it=["onClick"],rt={style:{border:"1px solid #efefef"}},dt={class:"planTable"},_t={key:0,style:{"background-color":"#f1f1f1"}},pt=["onClick"],ft={key:0},mt={key:1},gt={key:0},vt={key:1,style:{"background-color":"#fff"}},ct={key:0,id:"shenqingdan",style:{position:"relative"}},ht={key:0,style:{height:"100vh"}},yt={__name:"YuYue",props:{YuYueInfo:{type:Object},ServiceDate:{type:String},do_user:{type:[String,Number],default:null}},setup(Ie){const P=Ie;let Q=f(!1),B=f(!1),V=f(null),w=f([]),q=f(null),I=f([]),E=f([]),H=f([]),T=f(""),y=f(0),d=f([]),L=f([]),F=f([]),J=f(""),le=f(!1),j=f([]),z=f(["1"]),A=f(!1),ne=f([]),_e=f(null);const be=r=>{let t=["周日","周一","周二","周三","周四","周五","周六"];const o=new Date(r).getDay();return t[o]};function Z(r){const t=r.getFullYear(),e=String(r.getMonth()+1).padStart(2,"0"),o=String(r.getDate()).padStart(2,"0");return`${t}-${e}-${o}`}function U(r=new Date,t=15){const e=new Date(r),o=[];if(isNaN(e.getTime()))throw new Error("无效的日期格式");for(let a=0;a15}const we=()=>{w.value=[],V.value&&V.value.forEach((r,t)=>{const e=r.mainInfo||{};r.itemInfo.forEach(o=>{var x;const a=o.entrust||{},m=o.item||{};w.value.push({patient_name:e.user_name||"",user_sex:e.user_sex||"",user_sex_label:e.user_sex==1?"男":e.user_sex==2?"女":"",age:e.age||"",reg_num:e.reg_num||"",episodeid:e.episodeid||"",user_phone:e.user_phone||"",id:a.id,entrust_id:a.entrust_id,entrust:a.entrust,list_status:a.list_status,docotr:a.docotr,is_pay:a.is_pay,his_is_emergency:a.his_is_emergency,reservation_date:a.reservation_date,period_begin_time:a.period_begin_time,period_end_time:a.period_end_time,reservation_department:a.reservation_department,entrust_date:a.entrust_date,entrust_time:a.entrust_time,department_resources_name:((x=a.department_resources)==null?void 0:x.department_resources_name)||"",roster_id:a.roster_id,app_num:a.app_num,barcode:a.barcode,limosis:m.limosis,use_seats:m.use_seats,item_name:m.item_name,tishi_msg:o.msg||"",msg:o.msg||"",patientIndex:t})})})},oe=()=>{let r=F.value;Q.value=!0,Ce({entrustInfo:P.YuYueInfo.entrustInfo,appointment_type:P.YuYueInfo.appointment_type}).then(t=>{Q.value=!1,t.status?(V.value=t.data.info,we(),Be(()=>{if(r.length>0)r.forEach(e=>{const o=w.value.findIndex(a=>a.id==e);o>-1&&q.value.toggleRowSelection(w.value[o],!0)});else for(let e=0;er.tishi_msg=="",me=({row:r})=>{if(r.tishi_msg!="")return"disabled-row"},ge=r=>{var t;F.value=[],L.value=[],H.value=[],E.value=[],T.value="",d.value=r,d.value.forEach(e=>{F.value.push(e.id),L.value.push(e.entrust_id)}),d.value.length>0&&(d.value.every(o=>{var a;return o.roster_id===((a=d.value[0])==null?void 0:a.roster_id)})&&((t=d.value[0])!=null&&t.roster_id)?(y.value=d.value[0].roster_id,J.value=d.value[0].reservation_date,fe(pe(),d.value[0].reservation_date)&&d.value[0].reservation_date?I.value=U(d.value[0].reservation_date):I.value=U(pe()),T.value=d.value[0].department_resources_name):y.value=0),L.value.length>0&&N()},N=()=>{if(L.value.length==0)return c.error("请选择检查项目"),!1;B.value=!0;const r=d.value[0];let t=0;d.value.forEach(e=>{e.use_seats&&(t+=e.use_seats)}),ze({regnum:r.reg_num,entrustid:L.value,episodeid:r.episodeid,appointment_type:P.YuYueInfo.appointment_type,date:I.value}).then(e=>{if(B.value=!1,E.value=[],H.value=[],e.status){let o=e.data.plan_list,a=e.data.zhanWeiCount;if(o&&o.length>0){T.value==""&&(T.value=o[0].department_resources_name);const m=new Set,x=new Set;o.forEach(C=>{if(C.department_resources_name==T.value){const b=`${C.begin_time.substring(0,5)}-${C.end_time.substring(0,5)}`;m.add(b)}x.add(C.department_resources_name)}),H.value=x,Array.from(m).sort().forEach(C=>{const b={time_range:C};I.value.forEach(R=>{const $=o.find(n=>`${n.begin_time.substring(0,5)}-${n.end_time.substring(0,5)}`===C&&n.date===R&&n.department_resources_name==T.value);let ee=!1;if($){const n=$.count-$.used_count;n>=a&&n>=t&&$.plan_enable===!0&&(ee=!0),(y.value==0||y.value==""||y.value==null)&&$.id==e.data.earliestPlan&&(y.value=$.id),b[R]={use_count:`${$.used_count}/${$.count}`,id:$.id,enable:ee}}else b[R]={use_count:"0/0",id:null,enable:ee}}),E.value.push(b)})}}else c.error(e.msg)})},ve=r=>{T.value=r,y.value=0,N()},X=r=>{r!=null&&r!=null&&(y.value=r,xe())},xe=()=>{const r=d.value[0];r&&(B.value=!0,Pe({reg_num:r.reg_num,planid:y.value}).then(t=>{B.value=!1,t.status||de.confirm(t.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})}))},ue=r=>{if(L.value.length==0)return c.error("请选择检查项目"),!1;if(y.value==0||y.value==""||y.value==null)return c.error("请选择号源"),!1;let t="确定预约此时间吗?";r==2&&(t="确定改约至此时间吗?");const e={};d.value.forEach(a=>{e[a.patient_name]||(e[a.patient_name]=[]),e[a.patient_name].push(a.entrust)});let o=Object.entries(e).map(([a,m])=>`${a}:${m.join("、")}`).join(` `);de.confirm(`${t} ${o}`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Se(r)}).catch(()=>{})},Se=r=>{B.value=!0,qe({mainlistid:F.value,planid:y.value,appointment_type:P.YuYueInfo.appointment_type,dotype:r,do_user:P.do_user}).then(t=>{B.value=!1,t.status?(c({message:"预约成功",type:"success"}),oe(),z.value.length>0&&he()):de.confirm(t.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})})},ce=()=>{if(d.value.length==0)return c.error("请选择要取消的记录"),!1;de.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{Q.value=!0;const r=d.value.map(t=>Ue({MainListId:t.id,reg_num:t.reg_num,do_user:P.do_user}).then(e=>{e.status?c.success("取消成功"):c.error(e.msg)}).catch(e=>{c.error("取消失败"),console.error(e)}));await Promise.all(r),Q.value=!1,oe()})},ie=()=>{T.value="",y.value=0,I.value=U(J.value),N()},he=()=>{const r=[],t={};d.value.forEach(e=>{t[e.reg_num]||(t[e.reg_num]={entrustid:[],reg_num:e.reg_num,episodeid:e.episodeid},r.push(t[e.reg_num])),t[e.reg_num].entrustid.push(e.entrust_id)}),Ce({entrustInfo:r,appointment_type:P.YuYueInfo.appointment_type}).then(e=>{if(e.status){let o=!0;ne.value=e.data.info,ne.value.forEach(a=>{a.mainInfo.list_status!=1&&(c.error(a.mainInfo.entrust+" 不可打印,请重新选择"),o=!1)}),o&&(A.value=!0,setTimeout(function(){_e.value.$el.click(),A.value=!1},500))}else c.error(e.msg)})};return Ee(()=>{I.value=U(),oe()}),(r,t)=>{const e=h("el-table-column"),o=h("el-tag"),a=h("el-table"),m=h("el-button"),x=h("el-checkbox"),O=h("el-checkbox-group"),C=h("el-date-picker"),b=h("el-empty"),R=h("el-dialog"),$=ye("loading"),ee=ye("print");return u(),p("div",Oe,[D("div",We,[ae((u(),k(a,{data:_(w),style:{width:"100%"},height:"300","row-key":"id",ref_key:"entrustTableRef",ref:q,"row-class-name":me,onSelectionChange:ge},{default:i(()=>[l(e,{type:"selection",width:"50",selectable:ke}),l(e,{prop:"tishi_msg",label:"",width:"100"},{default:i(n=>[n.row.tishi_msg!=""?(u(),p("span",Ke,Y(n.row.tishi_msg),1)):(u(),p("span",Qe,"正常"))]),_:1}),l(e,{prop:"list_status",label:"医嘱状态",width:"80"},{default:i(n=>[n.row.list_status===0?(u(),k(o,{key:0,class:"ml-2",type:"info"},{default:i(()=>[...t[8]||(t[8]=[v("申请中",-1)])]),_:1})):g("",!0),n.row.list_status===1?(u(),k(o,{key:1,class:"ml-2",type:"success"},{default:i(()=>[...t[9]||(t[9]=[v("已预约",-1)])]),_:1})):g("",!0),n.row.list_status===2?(u(),k(o,{key:2,class:"ml-2"},{default:i(()=>[...t[10]||(t[10]=[v("登记",-1)])]),_:1})):g("",!0),n.row.list_status===3?(u(),k(o,{key:3,class:"ml-2",type:"warning"},{default:i(()=>[...t[11]||(t[11]=[v("完成",-1)])]),_:1})):g("",!0)]),_:1}),l(e,{prop:"patient_name",label:"患者姓名",width:"140"}),l(e,{prop:"user_sex_label",label:"性别",width:"60"}),l(e,{prop:"age",label:"年龄",width:"60"}),l(e,{prop:"entrust",label:"项目",width:"250"}),l(e,{prop:"is_pay",label:"是否交费",width:"80"},{default:i(n=>[n.row.is_pay==1?(u(),p("span",He,"是")):g("",!0),n.row.is_pay==0?(u(),p("span",Xe,"否")):g("",!0)]),_:1}),l(e,{prop:"his_is_emergency",label:"是否加急",width:"80"},{default:i(n=>[n.row.his_is_emergency==1?(u(),p("span",et,"是")):g("",!0),n.row.his_is_emergency==0?(u(),p("span",tt,"否")):g("",!0)]),_:1}),l(e,{prop:"department_resources_name",label:"预约资源",width:"120"}),l(e,{prop:"reservation_date",label:"预约日期",width:"120"}),l(e,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:i(n=>[n.row.period_begin_time&&n.row.period_end_time?(u(),p("span",lt,Y(n.row.period_begin_time.substring(0,5))+"~"+Y(n.row.period_end_time.substring(0,5)),1)):g("",!0)]),_:1}),l(e,{prop:"limosis",label:"是否空腹",width:"80"},{default:i(n=>[n.row.limosis==0?(u(),p("span",nt,"否")):(u(),p("span",at,"是"))]),_:1}),l(e,{prop:"reservation_department",label:"申请科室",width:"120"}),l(e,{prop:"",label:"医嘱时间",width:"160"},{default:i(n=>[v(Y(n.row.entrust_date)+" "+Y(n.row.entrust_time),1)]),_:1}),l(e,{prop:"docotr",label:"申请医生"})]),_:1},8,["data"])),[[$,_(Q)]])]),D("div",st,[D("div",ot,[D("div",ut,[(u(!0),p(W,null,K(_(H),(n,S)=>(u(),p("div",{key:S,class:De({"ZhenShiButton zhenshiButton_active":_(T)===n,ZhenShiButton:_(T)!==n}),onClick:M=>ve(n)},Y(n),11,it))),128)),t[18]||(t[18]=D("div",{class:"shuxian"},null,-1)),l(m,{class:"do_button",type:"success",onClick:t[0]||(t[0]=n=>ue(1))},{default:i(()=>[...t[12]||(t[12]=[v("预约",-1)])]),_:1}),l(m,{class:"do_button",type:"warning",onClick:t[1]||(t[1]=n=>ue(2))},{default:i(()=>[...t[13]||(t[13]=[v("更改预约时间",-1)])]),_:1}),l(m,{class:"do_button",type:"danger",onClick:t[2]||(t[2]=n=>ce())},{default:i(()=>[...t[14]||(t[14]=[v("取消预约",-1)])]),_:1}),ae((u(),k(m,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:_e},{default:i(()=>[...t[15]||(t[15]=[v("打印申请单隐藏按钮",-1)])]),_:1})),[[ee,"#shenqingdan"]]),l(m,{onClick:t[3]||(t[3]=n=>he())},{default:i(()=>[...t[16]||(t[16]=[v("打印申请单",-1)])]),_:1}),l(O,{modelValue:_(z),"onUpdate:modelValue":t[4]||(t[4]=n=>G(z)?z.value=n:z=n),style:{"margin-left":"12px"}},{default:i(()=>[l(x,{label:"1"},{default:i(()=>[...t[17]||(t[17]=[v("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"])]),D("div",null,[l(C,{modelValue:_(J),"onUpdate:modelValue":t[5]||(t[5]=n=>G(J)?J.value=n:J=n),type:"date",placeholder:"跳转日期",onChange:t[6]||(t[6]=n=>ie())},null,8,["modelValue"])])]),ae((u(),p("div",rt,[D("table",dt,[_(d).length>0?(u(),p("tr",_t,[t[19]||(t[19]=D("td",{style:{width:"120px"}},null,-1)),(u(!0),p(W,null,K(_(I),(n,S)=>(u(),p("td",{style:{"font-weight":"700"},key:S},Y(n.substring(5,10))+" "+Y(be(n)),1))),128))])):g("",!0),_(I).length>0&&_(E).length>0?(u(!0),p(W,{key:1},K(_(E),(n,S)=>(u(),p("tr",{key:S,class:"table_plan_row"},[(u(!0),p(W,null,K(n,(M,te)=>(u(),p("td",{key:te,class:De({planActive:_(y)===M.id&&_(y)!==0&&_(y),plandisable:!M.enable&&te!=="time_range"}),onClick:Ye=>X(M.id)},[te=="time_range"?(u(),p("span",ft,Y(M),1)):(u(),p("span",mt,Y(M.use_count),1))],10,pt))),128))]))),128)):g("",!0)]),_(d).length==0?(u(),p("div",gt,[l(b,{description:"请选择项目"})])):g("",!0),_(d).length>0&&_(E).length==0?(u(),p("div",vt,[l(b,{description:"暂无号源"})])):g("",!0)])),[[$,_(B)]])]),l(R,{modelValue:_(le),"onUpdate:modelValue":t[7]||(t[7]=n=>G(le)?le.value=n:le=n),title:"号源占用详情",width:"50%"},{default:i(()=>[D("div",null,[l(a,{data:_(j),style:{width:"100%"},"row-key":"id"},{default:i(()=>[l(e,{prop:"user_name",label:"姓名"}),l(e,{prop:"user_phone",label:"电话"}),l(e,{prop:"reg_num",label:"登记号"}),l(e,{prop:"reservation_department",label:"申请科室"}),l(e,{prop:"entrust",label:"项目"}),l(e,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),_(A)?(u(),p("div",ct,[(u(!0),p(W,null,K(_(ne),(n,S)=>(u(),p("div",{key:S},[(u(!0),p(W,null,K(n.itemInfo,(M,te)=>(u(),p("div",{key:te},[M.entrust.list_status==1?(u(),p("div",ht,[l(Te,{printInfo:M.entrust},null,8,["printInfo"])])):g("",!0)]))),128))]))),128))])):g("",!0)])}}},bt=Ve(yt,[["__scopeId","data-v-c5b17bc7"]]);const wt={class:"head"},kt={class:"head"},xt={key:0},St={key:1},Yt={key:0},It={key:1},Dt={key:0},Ct={style:{"white-space":"nowrap"}},$t={key:0},Vt={key:1},Et={key:2},Tt={key:3},Lt={class:"page"},Mt={style:{"word-break":"break-all"}},Bt={key:0,id:"shenqingdan",style:{position:"relative"}},zt={__name:"MainList_ZhuYuan",setup(Ie){let P=Ne(),Q=f(""),B=f(null),V=f(!1),w=f({}),q=f([]),I=f(1),E=f(15),H=0,T=f(0),y=f(null),d=f([]),L=f([]),F=f(!1);const J=t=>{E.value=t,j()},le=t=>{I.value=t,j()},j=()=>{d.value=[],V.value=!0,Ge({searchInfo:w.value,page:I.value,pageSize:E.value}).then(t=>{V.value=!1,t.status?(q.value=t.data.list,H=t.data.count):c.error(t.msg)})};let z=f(!1),A=f({});const ne=t=>{if(d.value.length==0)return c.error("请勾选项目"),!1;if(t==1&&!d.value.every(e=>e.list_status===0))return c.error("当前勾选项目,不能预约"),!1;if(t==2&&!d.value.every(e=>e.list_status===1))return c.error("当前勾选项目,不能改约预约"),!1;A.value.entrustInfo=oe(d.value),T.value++,A.value.dotype=t,A.value.appointment_type=4,z.value=!0},_e=()=>{if(d.value.length===0)return c.error("请勾选1条记录"),!1;let t=!0;if(d.value.forEach((e,o)=>{e.list_status!=1&&(c.error(e.entrust+" 无需取消"),t=!1)}),t==!1)return!1;de.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password"}).then(({value:e})=>{V.value=!0,je({MainListId:d.value[0].id,reg_num:d.value[0].reg_num,do_user:B.value.id,password:e}).then(o=>{V.value=!1,o.status?(c({message:o.msg,type:"success"}),j()):c.error(o.msg)})}).catch(()=>{})},be=t=>{if(t.length>1){const o=t[0].list_status;t.every(m=>m.list_status===o)||(Z(),t=[t[t.length-1]])}t[t.length-1].list_status!=0&&(Z(),t=[t[t.length-1]]);let e=d.value?d.value.length:0;U(t),e>d.value.length||(L.value.length==0&&we(),L.value.length==1&&pe())},Z=()=>{y.value.clearSelection(),d.value=[]},U=t=>{t?(t.forEach(e=>{e!=null&&y.value.toggleRowSelection(e,!0)}),d.value=t):Z()},pe=()=>{console.log(d.value),d.value.reverse();let t=[];if(d.value[0].list_status!=0)return!1;q.value.forEach((e,o)=>{e.list_status==0&&(e.id==d.value[0].id?t.push({name:e.entrust,rowid:o,first:1}):t.push({name:e.entrust,rowid:o,first:0}))}),t.length>=2&&(V.value=!0,$e({items:t}).then(e=>{if(V.value=!1,e.status){let o=e.data.group;if(o.length>1)se.value=!0,fe.value=o;else{Z();let a=[];o[0].forEach((m,x)=>{m.rowid.forEach((O,C)=>{a.push(q.value[O])})}),U(a)}}else c.error(e.msg)}))};let se=f(!1),fe=f(null);const we=()=>{console.log("开始匹配个人项目"),d.value.reverse();let t="",e=!1;if(d.value.forEach((a,m)=>{t==""&&(t=a.reg_num),t!=""&&t!=a.reg_num&&(e=!0)}),e===!0){let a=d.value[0];Z(),U([a])}console.log(d.value);let o=[];if(d.value[0].list_status!=0)return!1;q.value.forEach((a,m)=>{a.list_status==0&&a.reg_num==d.value[0].reg_num&&a.episodeid==d.value[0].episodeid&&(a.id==d.value[0].id?o.push({name:a.entrust,rowid:m,first:1}):o.push({name:a.entrust,rowid:m,first:0}))}),o.length>=2&&(V.value=!0,$e({items:o}).then(a=>{if(V.value=!1,a.status){let m=a.data.group;if(m.length>1e7)se.value=!0,fe.value=m;else{Z();let x=[];m[0].forEach((O,C)=>{O.rowid.forEach((b,R)=>{x.push(q.value[b])})}),U(x)}}else c.error(a.msg)}))};function oe(t){return t.reduce((e,o)=>{const a=e.find(m=>m.reg_num===o.reg_num);return a?a.entrustid.push(o.entrust_id):e.push({entrustid:[o.entrust_id],reg_num:o.reg_num,episodeid:o.episodeid}),e},[])}const ke=()=>{j()};let me=f("");const ge=()=>{Fe().then(t=>{if(t.status){me.value=t.data.datetime;let e=t.data.datetime.substr(0,10);w.value.dateRange=[e,e],j()}})};let N=f(!1),ve=f(null),X=f(!1);const xe=t=>{N.value=!0,Ae({id:t.id}).then(e=>{e.status&&(ve.value=e.data)})};let ue=f("");const Se=t=>{X.value=!0,ue.value=t};let ce=f(null),ie=f([]);const he=()=>{if(d.value.length!==1)return c.error("请选择1项进行打印"),!1;Ze({regnum:d.value[0].reg_num,entrustid:d.value[0].entrust_id,episodeid:d.value[0].episodeid,appointment_type:4}).then(t=>{if(t.status){let e=!0;ie.value=t.data.info,ie.value.forEach((o,a)=>{o.maininfo.list_status!=1&&(c.error(o.maininfo.entrust+" 不可打印,请重新选择"),e=!1)}),e&&(F.value=!0,setTimeout(function(){ce.value.$el.click(),F.value=!1},500))}else c.error(t.msg)})},r=()=>{sessionStorage.getItem("LoginUserInfo")&&(B.value=JSON.parse(sessionStorage.getItem("LoginUserInfo")))};return Ee(()=>{if(Q.value=sessionStorage.getItem("LoginType"),P.baseInfoStatus)r(),ge();else{const t=Re(()=>P.baseInfoStatus,e=>{e&&(r(),ge(),t())})}}),(t,e)=>{const o=h("el-dialog"),a=h("el-date-picker"),m=h("el-form-item"),x=h("el-option"),O=h("el-select"),C=h("el-input"),b=h("el-button"),R=h("el-row"),$=h("el-checkbox"),ee=h("el-checkbox-group"),n=h("el-table-column"),S=h("el-tag"),M=h("el-table"),te=h("el-pagination"),Ye=ye("print"),Le=ye("loading");return u(),p("div",null,[l(o,{modelValue:_(z),"onUpdate:modelValue":e[0]||(e[0]=s=>G(z)?z.value=s:z=s),width:"100%",onClose:e[1]||(e[1]=s=>ke())},{default:i(()=>[(u(),k(bt,{style:{"margin-top":"-30px"},key:_(T),YuYueInfo:_(A),ServiceDate:_(me).substr(0,10),do_user:_(B).id},null,8,["YuYueInfo","ServiceDate","do_user"]))]),_:1},8,["modelValue"]),D("div",wt,[D("div",kt,[l(R,null,{default:i(()=>[l(m,null,{default:i(()=>[l(a,{style:{"margin-left":"8px",width:"300px"},modelValue:_(w).dateRange,"onUpdate:modelValue":e[2]||(e[2]=s=>_(w).dateRange=s),type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(m,null,{default:i(()=>[l(O,{filterable:!0,clearable:"",modelValue:_(w).list_status,"onUpdate:modelValue":e[3]||(e[3]=s=>_(w).list_status=s),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:i(()=>[l(x,{label:"申请中",value:"0"}),l(x,{label:"已预约",value:"1"}),l(x,{label:"已报道",value:"2"}),l(x,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(m,null,{default:i(()=>[l(C,{modelValue:_(w).reg_num,"onUpdate:modelValue":e[4]||(e[4]=s=>_(w).reg_num=s),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(m,null,{default:i(()=>[l(C,{modelValue:_(w).user_name,"onUpdate:modelValue":e[5]||(e[5]=s=>_(w).user_name=s),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(b,{type:"primary",onClick:e[6]||(e[6]=s=>j()),style:{"margin-left":"10px"}},{default:i(()=>[...e[16]||(e[16]=[v("查询",-1)])]),_:1})]),_:1})])]),l(R,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:i(()=>[l(b,{type:"success",onClick:e[7]||(e[7]=Je(s=>ne(1),["prevent"]))},{default:i(()=>[...e[17]||(e[17]=[v("预 约",-1)])]),_:1}),l(b,{type:"danger",onClick:e[8]||(e[8]=s=>_e())},{default:i(()=>[...e[18]||(e[18]=[v("取消预约",-1)])]),_:1}),l(b,{type:"warning",onClick:e[9]||(e[9]=s=>ne(2))},{default:i(()=>[...e[19]||(e[19]=[v("更改预约时间",-1)])]),_:1}),ae((u(),k(b,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:ce},{default:i(()=>[...e[20]||(e[20]=[v("打印申请单隐藏按钮",-1)])]),_:1})),[[Ye,"#shenqingdan"]]),l(b,{onClick:e[10]||(e[10]=s=>he())},{default:i(()=>[...e[21]||(e[21]=[v("打印申请单",-1)])]),_:1}),ae((u(),k(b,null,{default:i(()=>[...e[22]||(e[22]=[v("打印表格",-1)])]),_:1})),[[Ye,"#tablelist"]]),l(ee,{modelValue:_(L),"onUpdate:modelValue":e[11]||(e[11]=s=>G(L)?L.value=s:L=s),style:{"margin-left":"12px"}},{default:i(()=>[l($,{label:"1"},{default:i(()=>[...e[23]||(e[23]=[v("自动选择多人",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),ae((u(),k(M,{data:_(q),onSelect:be,id:"tablelist",ref_key:"tableref",ref:y,style:{width:"100%"},"row-key":"id"},{default:i(()=>[l(n,{type:"selection",width:"50"}),l(n,{prop:"list_status",label:"状态",width:"80"},{default:i(s=>[s.row.list_status===0?(u(),k(S,{key:0,class:"ml-2",type:"info"},{default:i(()=>[...e[24]||(e[24]=[v("申请中",-1)])]),_:1})):g("",!0),s.row.list_status===1?(u(),k(S,{key:1,class:"ml-2",type:"success"},{default:i(()=>[...e[25]||(e[25]=[v("已预约",-1)])]),_:1})):g("",!0),s.row.list_status===2?(u(),k(S,{key:2,class:"ml-2"},{default:i(()=>[...e[26]||(e[26]=[v("登记",-1)])]),_:1})):g("",!0),s.row.list_status===3?(u(),k(S,{key:3,class:"ml-2",type:"warning"},{default:i(()=>[...e[27]||(e[27]=[v("完成",-1)])]),_:1})):g("",!0)]),_:1}),l(n,{prop:"reg_num",label:"登记号",width:"100"}),l(n,{prop:"user_name",label:"姓名"}),l(n,{prop:"user_sex",label:"性别",width:"60"},{default:i(s=>[s.row.user_sex==1?(u(),p("span",xt,"男")):g("",!0),s.row.user_sex==2?(u(),p("span",St,"女")):g("",!0)]),_:1}),l(n,{prop:"age",label:"年龄",width:"115"}),l(n,{prop:"entrust",label:"医嘱",width:"200"}),l(n,{prop:"is_pay",label:"是否交费",width:"80"},{default:i(s=>[s.row.is_pay==1?(u(),p("span",Yt,"是")):g("",!0),s.row.is_pay==0?(u(),p("span",It,"否")):g("",!0)]),_:1}),l(n,{prop:"reservation_date",label:"预约日期",width:"120"}),l(n,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:i(s=>[s.row.period_begin_time&&s.row.period_end_time?(u(),p("span",Dt,Y(s.row.period_begin_time.substring(0,5))+"~"+Y(s.row.period_end_time.substring(0,5)),1)):g("",!0)]),_:1}),l(n,{prop:"department_resources_name",label:"预约资源",width:"120"}),l(n,{prop:"devices",label:"服务组"},{default:i(s=>[D("div",Ct,[(u(!0),p(W,null,K(s.row.devices,(re,Me)=>(u(),p("span",{key:Me},Y(re.device_name+" "),1))),128))])]),_:1}),l(n,{prop:"reservation_department",label:"申请科室",width:"120"}),l(n,{prop:"",label:"医嘱时间",width:"160"},{default:i(s=>[v(Y(s.row.entrust_date)+" "+Y(s.row.entrust_time),1)]),_:1}),l(n,{prop:"docotr",label:"申请医生",width:"80"}),l(n,{prop:"patient_type",label:"病人类型",width:"80"},{default:i(s=>[s.row.patient_type==0?(u(),p("span",$t,"住院")):g("",!0),s.row.patient_type==1?(u(),p("span",Vt,"门诊")):g("",!0),s.row.patient_type==2?(u(),p("span",Et,"急诊")):g("",!0),s.row.patient_type==3?(u(),p("span",Tt,"体检")):g("",!0)]),_:1}),l(n,{prop:"user_phone",label:"电话",width:"120"}),l(n,{prop:"department_resources_name",label:"操作",width:"120"},{default:i(s=>[l(b,{onClick:re=>xe(s.row),size:"small"},{default:i(()=>[...e[28]||(e[28]=[v("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Le,_(V)]]),D("div",Lt,[l(te,{"current-page":_(I),"onUpdate:currentPage":e[12]||(e[12]=s=>G(I)?I.value=s:I=s),"page-size":_(E),"onUpdate:pageSize":e[13]||(e[13]=s=>G(E)?E.value=s:E=s),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:_(H),onSizeChange:J,onCurrentChange:le},null,8,["current-page","page-size","total"])]),l(o,{modelValue:_(N),"onUpdate:modelValue":e[14]||(e[14]=s=>G(N)?N.value=s:N=s),title:"变更记录",width:"50%"},{default:i(()=>[D("div",null,[l(M,{data:_(ve),style:{width:"100%"},"row-key":"id"},{default:i(()=>[l(n,{prop:"list_status",label:"状态",width:"100"},{default:i(s=>[s.row.new_status==0?(u(),k(S,{key:0,class:"ml-2",type:"info"},{default:i(()=>[...e[29]||(e[29]=[v("申请中",-1)])]),_:1})):g("",!0),s.row.new_status==1?(u(),k(S,{key:1,class:"ml-2",type:"success"},{default:i(()=>[...e[30]||(e[30]=[v("已预约",-1)])]),_:1})):g("",!0),s.row.new_status==2?(u(),k(S,{key:2,class:"ml-2"},{default:i(()=>[...e[31]||(e[31]=[v("登记",-1)])]),_:1})):g("",!0),s.row.new_status==3?(u(),k(S,{key:3,class:"ml-2",type:"warning"},{default:i(()=>[...e[32]||(e[32]=[v("完成",-1)])]),_:1})):g("",!0)]),_:1}),l(n,{prop:"reg_num",label:"登记号"}),l(n,{prop:"note",label:"说明"}),l(n,{prop:"created_at",label:"记录时间"}),l(n,{prop:"data",label:"状态",width:"100"},{default:i(s=>[l(b,{onClick:re=>Se(s.row.data),size:"small"},{default:i(()=>[...e[33]||(e[33]=[v("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),l(o,{modelValue:_(X),"onUpdate:modelValue":e[15]||(e[15]=s=>G(X)?X.value=s:X=s),title:"查看dataJson",width:"40%"},{default:i(()=>[D("div",Mt,Y(_(ue)),1)]),_:1},8,["modelValue"]),_(F)?(u(),p("div",Bt,[(u(!0),p(W,null,K(_(ie),(s,re)=>(u(),p("div",{key:re},[l(Te,{printInfo:s.maininfo},null,8,["printInfo"])]))),128))])):g("",!0)])}}},Ut=Ve(zt,[["__scopeId","data-v-75566e98"]]);export{Ut as default}; diff --git a/Laravel/public/admin/assets/MainList_ZhuYuan-a1555fd5.css b/Laravel/public/dist/assets/MainList_ZhuYuan-a1555fd5.css similarity index 100% rename from Laravel/public/admin/assets/MainList_ZhuYuan-a1555fd5.css rename to Laravel/public/dist/assets/MainList_ZhuYuan-a1555fd5.css diff --git a/Laravel/public/admin/assets/MakeListTj-088f49c5.css b/Laravel/public/dist/assets/MakeListTj-088f49c5.css similarity index 100% rename from Laravel/public/admin/assets/MakeListTj-088f49c5.css rename to Laravel/public/dist/assets/MakeListTj-088f49c5.css diff --git a/Laravel/public/admin/assets/MakeListTj-80254d87.js b/Laravel/public/dist/assets/MakeListTj-d3556278.js similarity index 97% rename from Laravel/public/admin/assets/MakeListTj-80254d87.js rename to Laravel/public/dist/assets/MakeListTj-d3556278.js index eef55f3..76a1b32 100644 --- a/Laravel/public/admin/assets/MakeListTj-80254d87.js +++ b/Laravel/public/dist/assets/MakeListTj-d3556278.js @@ -1 +1 @@ -import{_ as D,Z as V,o as R,r as n,c as Y,d as p,e as g,k as h,f as l,w as i,i as o,x as L,h as B,j as T,F as j,J as E,bt as F,D as I,E as N,q as A,g as u,bs as S}from"./index-af171713.js";const G={class:"head"},O={key:0,id:"MonthCount",class:"MonthCount"},U={__name:"MakeListTj",setup(q){V(()=>groupList.value.filter(e=>e.id==2));let r=u(!1),a=u({name:"",dateRange:[]}),c=u([]);const C=()=>{E().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);a.value.dateRange=[t,t],_()}})};let m=u(0),s=u(0);const _=()=>{r.value=!0,F({searchInfo:a.value}).then(e=>{r.value=!1,e.status?(c.value=e.data.MonthCountList,s.value=e.data.Count,m.value=e.data.AppointmentCount,s.value>0&&I(()=>{M()})):N.error(e.msg)})},M=()=>{var e=S(document.getElementById("MonthCount"));e.setOption({title:{text:a.value.dateRange[0]+"~"+a.value.dateRange[1]+"开单检查量比",subtext:"开单总量 "+s.value,left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:s.value-m.value,name:"未预约"},{value:m.value,name:"已预约"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return R(()=>{C()}),(e,t)=>{const f=n("el-date-picker"),b=n("el-form-item"),k=n("el-button"),x=n("el-row"),v=n("el-table-column"),y=n("el-table"),w=Y("loading");return p(),g(j,null,[h("div",G,[l(x,null,{default:i(()=>[l(b,null,{default:i(()=>[l(f,{style:{"margin-left":"8px",width:"150px"},modelValue:o(a).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=d=>o(a).dateRange[0]=d),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[3]||(t[3]=h("span",{style:{margin:"0 4px"}},"至",-1)),l(f,{style:{width:"150px"},modelValue:o(a).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=d=>o(a).dateRange[1]=d),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(k,{onClick:t[2]||(t[2]=d=>_()),style:{"margin-left":"10px"}},{default:i(()=>[...t[4]||(t[4]=[A("搜索",-1)])]),_:1})]),_:1})]),o(s)>0?(p(),g("div",O)):L("",!0),B((p(),T(y,{data:o(c),style:{width:"100%"},"row-key":"id"},{default:i(()=>[l(v,{prop:"month",label:"月份"}),l(v,{prop:"count",label:"开单数量"})]),_:1},8,["data"])),[[w,o(r)]])],64)}}},K=D(U,[["__scopeId","data-v-bfec251f"]]);export{K as default}; +import{_ as D,Z as V,o as R,r as n,c as Y,d as p,e as g,k as h,f as l,w as i,i as o,x as L,h as B,j as T,F as j,J as E,bt as F,D as I,E as N,q as A,g as u,bs as S}from"./index-e65958bd.js";const G={class:"head"},O={key:0,id:"MonthCount",class:"MonthCount"},U={__name:"MakeListTj",setup(q){V(()=>groupList.value.filter(e=>e.id==2));let r=u(!1),a=u({name:"",dateRange:[]}),c=u([]);const C=()=>{E().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);a.value.dateRange=[t,t],_()}})};let m=u(0),s=u(0);const _=()=>{r.value=!0,F({searchInfo:a.value}).then(e=>{r.value=!1,e.status?(c.value=e.data.MonthCountList,s.value=e.data.Count,m.value=e.data.AppointmentCount,s.value>0&&I(()=>{M()})):N.error(e.msg)})},M=()=>{var e=S(document.getElementById("MonthCount"));e.setOption({title:{text:a.value.dateRange[0]+"~"+a.value.dateRange[1]+"开单检查量比",subtext:"开单总量 "+s.value,left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:s.value-m.value,name:"未预约"},{value:m.value,name:"已预约"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return R(()=>{C()}),(e,t)=>{const f=n("el-date-picker"),b=n("el-form-item"),k=n("el-button"),x=n("el-row"),v=n("el-table-column"),y=n("el-table"),w=Y("loading");return p(),g(j,null,[h("div",G,[l(x,null,{default:i(()=>[l(b,null,{default:i(()=>[l(f,{style:{"margin-left":"8px",width:"150px"},modelValue:o(a).dateRange[0],"onUpdate:modelValue":t[0]||(t[0]=d=>o(a).dateRange[0]=d),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),t[3]||(t[3]=h("span",{style:{margin:"0 4px"}},"至",-1)),l(f,{style:{width:"150px"},modelValue:o(a).dateRange[1],"onUpdate:modelValue":t[1]||(t[1]=d=>o(a).dateRange[1]=d),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(k,{onClick:t[2]||(t[2]=d=>_()),style:{"margin-left":"10px"}},{default:i(()=>[...t[4]||(t[4]=[A("搜索",-1)])]),_:1})]),_:1})]),o(s)>0?(p(),g("div",O)):L("",!0),B((p(),T(y,{data:o(c),style:{width:"100%"},"row-key":"id"},{default:i(()=>[l(v,{prop:"month",label:"月份"}),l(v,{prop:"count",label:"开单数量"})]),_:1},8,["data"])),[[w,o(r)]])],64)}}},K=D(U,[["__scopeId","data-v-bfec251f"]]);export{K as default}; diff --git a/Laravel/public/dist/assets/PlanList-14732ffa.css b/Laravel/public/dist/assets/PlanList-14732ffa.css new file mode 100644 index 0000000..35497da --- /dev/null +++ b/Laravel/public/dist/assets/PlanList-14732ffa.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-d82c99d4]{display:flex}.type_count div[data-v-d82c99d4]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-d82c99d4]{display:flex}.qudao_k_input[data-v-d82c99d4]{width:150px}.hongzi[data-v-d82c99d4]{color:#b25252}.yiyong[data-v-d82c99d4]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-d82c99d4]:hover{color:#666}.zhenshiButton[data-v-d82c99d4]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-d82c99d4]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-d82c99d4]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-d82c99d4]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-d82c99d4]{background-color:#ffd6d2}.planInfo_k[data-v-d82c99d4]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:6px;padding-bottom:10px;padding-right:8px}.planInfo_k .zong_row[data-v-d82c99d4]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-d82c99d4]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-d82c99d4]{font-weight:500}.planInfo_k .plan_checkbox[data-v-d82c99d4]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-d82c99d4]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-d82c99d4]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-d82c99d4]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-d82c99d4]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-d82c99d4]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap}.planInfo_k .qudao_count_row[data-v-d82c99d4]{display:flex}.planInfo_k .qudao_count_row div[data-v-d82c99d4]{margin-left:6px}.planInfo .planTable[data-v-d82c99d4]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-d82c99d4]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-d82c99d4]:first-child,.planInfo .planTable th[data-v-d82c99d4]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-d82c99d4]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-d82c99d4]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-d82c99d4]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-d82c99d4]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-d82c99d4]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-d82c99d4]{width:100px}.yellow[data-v-d82c99d4]{color:#ffaa7f}.red[data-v-d82c99d4]{color:#c81e00}.bold-text[data-v-d82c99d4]{font-weight:700} diff --git a/Laravel/public/dist/assets/PlanList-7f69b319.js b/Laravel/public/dist/assets/PlanList-7f69b319.js new file mode 100644 index 0000000..948d542 --- /dev/null +++ b/Laravel/public/dist/assets/PlanList-7f69b319.js @@ -0,0 +1 @@ +import{_ as $e,o as Me,r as h,c as Ue,d as s,e as r,k as u,f as o,w as a,F as I,t as S,i as l,h as Z,$ as F,j as C,x as y,l as q,g as m,I as Ne,E as w,aP as Re,O as Te,q as c,v as f,b1 as ie,b2 as Ae,b3 as qe,p as Ge,b4 as Ye,b5 as de,b6 as Fe,N as We,b7 as Oe,b8 as Xe,b9 as Ze}from"./index-e65958bd.js";const je={class:"head"},Qe={style:{display:"flex"},class:"planInfo"},He={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Je=["onClick"],Ke={style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto"}},et={key:0,class:"planTable"},tt={style:{"background-color":"#f1f1f1",position:"relative"}},lt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},nt={style:{"min-width":"120px","font-size":"14px"}},ot=["onMouseover","onMouseleave"],at={key:0},st={key:0,class:"hoverTools"},ut=["onClick"],it=["onClick"],dt=["onClick"],rt=["onClick"],_t={class:"zong_row"},ct={class:"qudao_title_zong"},ft={class:"qudao_count_row"},pt={key:0},vt={key:0,class:"yellow bold-text"},mt={key:1},gt={class:"font_color"},yt={class:"patient_type_row"},kt={class:"tps"},bt={key:1,style:{width:"100%","background-color":"#fff"}},xt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},ht={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},wt={style:{"font-weight":"700"}},Dt={style:{"margin-right":"16px"}},It={class:"qudao_k_input"},Vt={style:{width:"50px"}},Ct={class:"qudao_k_input"},Lt={class:"dialog-footer"},St={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Pt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Et={style:{"font-weight":"700"}},zt={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},Bt={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},$t={style:{width:"80px"}},Mt={style:{flex:"1"}},Ut={style:{color:"#999","font-size":"12px"}},Nt={key:1,style:{color:"#999"}},Rt={class:"dialog-footer"},Tt={__name:"PlanList",setup(At){let R=m([]),g=m(!1),re=m(1),_e=m(9999),L=m([]),j=m([]),$=m(0),M=m({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),z=m(!1);const T=()=>{M.value.resources_id=U.value,j.value=Le(M.value.dateRange),g.value=!0,Ye({page:re.value,pageSize:_e.value,searchInfo:M.value}).then(t=>{if(g.value=!1,t.status){R.value=[],L.value=[];let e=t.data.list;if(e.length>0){const i=new Set;e.forEach(p=>{if(p.resources_id==U.value){const V=`${p.begin_time.substring(0,5)}-${p.end_time.substring(0,5)}`;i.add(V)}}),Array.from(i).sort().forEach(p=>{const V={time_range:p};j.value.forEach(D=>{const P=e.find(E=>`${E.begin_time.substring(0,5)}-${E.end_time.substring(0,5)}`===p&&E.date===D&&E.resources_id==U.value);P?V[D]={countsInfo:P.countsInfo,patient_type_label:P.patient_type_label,status:P.status,id:P.id,resources_id:P.resources_id}:V[D]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),R.value.push(V)})}}else w.error(t.msg)})},ce=()=>{$.value=$.value===0?1:0,$.value===0&&(L.value=[]),$.value===1&&R.value.forEach((t,e)=>{console.log(t);for(let i in t)i!="time_range"&&L.value.push(t[i].id)})},fe=t=>{L.value.indexOf(t)===-1?L.value.push(t):L.value=L.value.filter(i=>i!==t)};let Q=m(null);const pe=t=>{Q.value=t},ve=t=>{Q.value=null},me=t=>{U.value=t,$.value=0,L.value=[],T()},H=t=>L.value.includes(t);let ge=m([]);const ye=()=>{g.value=!0,Ne().then(t=>{g.value=!1,t.status?ge.value=t.data:w.error(t.msg)})};let ke=m([]);const be=()=>{g.value=!0,Re({}).then(t=>{g.value=!1,t.status?ke.value=t.data.list:w.error(t.msg)})};let W=m([]),U=m(0);const xe=()=>{g.value=!0,Te().then(t=>{g.value=!1,t.status?(W.value=t.data,W.value.length>0&&U.value==""&&(U.value=W.value[0].id,T())):w.error(t.msg)})};let d=m("");const he=t=>{z.value=!0,g.value=!0,de({id:t}).then(e=>{g.value=!1,e.status?d.value=e.data:w.error(e.msg)})},we=t=>{console.log(t),(t===""||t==null||t===0)&&(d.value.max_total=0);let e=0,i=d.value.coutsInfo.length,_=-1;for(let p=0;p{let t=0;if(d.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(d.value.max_total))return w.error("各个渠道数量之和与当日总量不符"),!1;g.value=!0,Fe({PlanDetaiInfo:d.value}).then(e=>{g.value=!1,e.status?(z.value=!1,T()):w.error(e.msg)})},Ie=()=>{if(L.value.length==0)return w.error("请至少勾选1条记录"),!1;We.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{g.value=!0,Oe({ids:L.value}).then(t=>{g.value=!1,t.status?(w({message:t.msg,type:"success"}),T()):w.error(t.msg)})})};let G=m(!1),J=m(!1),te=m(null),Y=m(null),A=m(null);const le=(t,e)=>{A.value=e,Y.value=t,G.value=!0,J.value=!0,Xe({planid:t.id,qudaoid:e}).then(i=>{J.value=!1,i.status?te.value=i.data:w.error(i.msg)})};let B=m(!1),b=m(null);const Ve=t=>{B.value=!0,g.value=!0,de({id:t.id}).then(e=>{g.value=!1,e.status?(b.value=e.data,b.value.coutsInfo.forEach(i=>{i.locked_count===null&&(i.locked_count=0)})):w.error(e.msg)})},Ce=()=>{let t=[],e=!1;b.value.coutsInfo.forEach(i=>{if(e)return;const _=i.count-i.used_count;if(Number(i.locked_count)>_){w.error(`${i.name} 的占位数量不能大于剩余可用数量,最多${_}个`),e=!0;return}if(Number(i.locked_count)<0){w.error(`${i.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}),!e&&(g.value=!0,Ze({roster_detail_id:b.value.id,locked_counts:t}).then(i=>{g.value=!1,i.status?(B.value=!1,T(),w.success("占位设置保存成功")):w.error(i.msg)}))};function ne(t){const e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),_=String(t.getDate()).padStart(2,"0");return`${e}-${i}-${_}`}function Le(t){const e=t.map(D=>new Date(D)).sort((D,P)=>D-P),i=e[0],_=e[e.length-1],p=[];let V=new Date(i);for(;V<=_;)p.push(V.toISOString().split("T")[0]),V.setDate(V.getDate()+1);return p}function Se(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return Me(()=>{const t=new Date,e=ne(t),i=new Date(t);i.setDate(t.getDate()+14);const _=ne(i);M.value.dateRange=[e,_],be(),xe(),ye()}),(t,e)=>{const i=h("el-date-picker"),_=h("el-form-item"),p=h("el-button"),V=h("el-row"),D=h("el-icon"),P=h("el-empty"),E=h("el-tag"),O=h("el-checkbox"),Pe=h("el-checkbox-group"),K=h("el-input"),Ee=h("el-switch"),oe=h("el-form"),ee=h("el-dialog"),ae=h("el-option"),ze=h("el-select"),N=h("el-table-column"),Be=h("el-table"),X=Ue("loading");return s(),r("div",null,[u("div",je,[o(V,null,{default:a(()=>[o(_,null,{default:a(()=>[o(i,{style:{"margin-left":"8px",width:"150px"},modelValue:l(M).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=n=>l(M).dateRange[0]=n),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[15]||(e[15]=u("span",{style:{margin:"0 4px"}},"至",-1)),o(i,{style:{width:"150px"},modelValue:l(M).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=n=>l(M).dateRange[1]=n),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),o(p,{onClick:e[2]||(e[2]=n=>T()),style:{"margin-left":"10px"}},{default:a(()=>[...e[16]||(e[16]=[c("搜索",-1)])]),_:1}),o(p,{type:"danger",onClick:e[3]||(e[3]=n=>Ie()),style:{"margin-left":"10px"}},{default:a(()=>[...e[17]||(e[17]=[c("删除",-1)])]),_:1})]),_:1})]),u("div",Qe,[u("div",He,[(s(!0),r(I,null,S(l(W),(n,k)=>(s(),r("div",{key:k,onClick:v=>me(n.id),class:F({"zhenshiButton zhenshiButtonActive":n.id===l(U),zhenshiButton:n.id!==l(U)})},f(n.department_resources_name),11,Je))),128))]),Z((s(),r("div",Ke,[e[23]||(e[23]=u("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),l(R).length>0?(s(),r("table",et,[u("tr",tt,[u("td",null,[u("div",lt,[e[18]||(e[18]=u("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),u("div",{class:F({"plan_checkAllbox plan_checkAllbox_active":l($)===1,"plan_checkAllbox ":l($)===0}),onClick:e[4]||(e[4]=n=>ce())},[l($)===1?(s(),C(D,{key:0,color:"#ffffff"},{default:a(()=>[o(l(ie))]),_:1})):y("",!0)],2)])]),(s(!0),r(I,null,S(l(j),(n,k)=>(s(),r("td",nt,f(n.substring(5,10))+" "+f(Se(n)),1))),256))]),(s(!0),r(I,null,S(l(R),(n,k)=>(s(),r("tr",{key:k},[(s(!0),r(I,null,S(n,(v,se)=>(s(),r("td",{key:se,onMouseover:x=>pe(v.id),onMouseleave:x=>ve(v.id)},[u("div",null,[se=="time_range"?(s(),r("span",at,f(v),1)):y("",!0),v.countsInfo&&v.countsInfo.length>0?(s(),r("div",{key:1,class:F({planInfo_k:v.status==1,"planInfo_k planInfo_k_disabled":v.status==0})},[l(Q)==v.id?(s(),r("div",st,[u("div",{class:"icon_k",onClick:x=>he(v.id)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(Ae))]),_:1}),e[19]||(e[19]=u("span",{class:"icon_text"},"编辑",-1))],8,ut),u("div",{class:"icon_k",onClick:x=>le(v,0)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(qe))]),_:1}),e[20]||(e[20]=u("span",{class:"icon_text"},"明细",-1))],8,it),u("div",{class:"icon_k",onClick:x=>Ve(v)},[o(D,{color:"#409eff",size:"20"},{default:a(()=>[o(l(Ge))]),_:1}),e[21]||(e[21]=u("span",{class:"icon_text"},"占位",-1))],8,dt)])):y("",!0),u("div",{class:F({"plan_checkbox plan_checkbox_active":H(v.id),plan_checkbox:!H(v.id)}),onClick:x=>fe(v.id)},[H(v.id)?(s(),C(D,{key:0,color:"#ffffff"},{default:a(()=>[o(l(ie))]),_:1})):y("",!0)],10,rt),u("div",_t,[u("div",ct,[e[22]||(e[22]=u("span",null,"总数:",-1)),c(f(v.countsInfo[0].max_total),1)])]),u("div",ft,[(s(!0),r(I,null,S(v.countsInfo,(x,ue)=>(s(),r(I,{key:ue},[x&&!(x.count===0&&x.used_count===0)?(s(),r("div",pt,[u("span",null,f(x.jiancheng),1),u("span",null,[x.locked_count?(s(),r("span",vt,f(x.locked_count),1)):y("",!0),x.locked_count?(s(),r("span",mt,"/")):y("",!0),u("span",gt,f(x.used_count),1),c("/"+f(x.count),1)])])):y("",!0)],64))),128))]),u("div",yt,[(s(!0),r(I,null,S(v.patient_type_label,(x,ue)=>(s(),r("div",kt,f(x),1))),256))])],2)):y("",!0)])],40,ot))),128))]))),128))])):y("",!0),l(R).length==0?(s(),r("div",bt,[o(P,{description:"暂无号源"})])):y("",!0)])),[[X,l(g)]])]),o(ee,{modelValue:l(z),"onUpdate:modelValue":e[9]||(e[9]=n=>q(z)?z.value=n:z=n),title:"修改",width:"40%"},{footer:a(()=>[u("span",Lt,[o(p,{onClick:e[8]||(e[8]=n=>q(z)?z.value=!1:z=!1)},{default:a(()=>[...e[33]||(e[33]=[c("取消",-1)])]),_:1}),o(p,{type:"primary",onClick:De},{default:a(()=>[...e[34]||(e[34]=[c(" 确定 ",-1)])]),_:1})])]),default:a(()=>[Z((s(),r("div",null,[l(d)?(s(),C(oe,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[o(_,{label:"日期:"},{default:a(()=>[c(f(l(d).date),1)]),_:1}),o(_,{label:"星期:"},{default:a(()=>[c(f(l(d).weekname),1)]),_:1}),o(_,{label:"科室:"},{default:a(()=>[c(f(l(d).department_name),1)]),_:1}),y("",!0),y("",!0),o(_,{label:"病人类型:"},{default:a(()=>[o(Pe,{disabled:"",modelValue:l(d).patientType,"onUpdate:modelValue":e[5]||(e[5]=n=>l(d).patientType=n)},{default:a(()=>[o(O,{label:"0"},{default:a(()=>[...e[24]||(e[24]=[c("住院",-1)])]),_:1}),o(O,{label:"1"},{default:a(()=>[...e[25]||(e[25]=[c("门诊",-1)])]),_:1}),o(O,{label:"2"},{default:a(()=>[...e[26]||(e[26]=[c("急诊",-1)])]),_:1}),o(O,{label:"3"},{default:a(()=>[...e[27]||(e[27]=[c("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(_,{label:"时间段:"},{default:a(()=>[e[28]||(e[28]=c(" 开始时间:",-1)),u("span",xt,f(l(d).begin_time),1),e[29]||(e[29]=c(" 结束时间:",-1)),u("span",ht,f(l(d).end_time),1),e[30]||(e[30]=c(" 停止预约时间:",-1)),u("span",wt,f(l(d).end_reservation_time),1)]),_:1}),l(d).coutsInfo?(s(),C(_,{key:2,label:"渠道名额:"},{default:a(()=>[u("div",Dt,[e[31]||(e[31]=u("div",null,"当日总量",-1)),u("div",It,[o(K,{onInput:we,type:"number",modelValue:l(d).max_total,"onUpdate:modelValue":e[6]||(e[6]=n=>l(d).max_total=n),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[32]||(e[32]=u("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),u("div",null,[(s(!0),r(I,null,S(l(d).coutsInfo,(n,k)=>(s(),r("div",{class:"qudao_k",key:k},[u("div",Vt,f(n.name),1),u("div",Ct,[o(K,{type:"number",modelValue:l(d).coutsInfo[k].count,"onUpdate:modelValue":v=>l(d).coutsInfo[k].count=v,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):y("",!0),o(_,{label:"状态:"},{default:a(()=>[o(Ee,{modelValue:l(d).status,"onUpdate:modelValue":e[7]||(e[7]=n=>l(d).status=n),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),o(_,{label:"添加时间:"},{default:a(()=>[c(f(l(d).created_at),1)]),_:1})]),_:1})):y("",!0)])),[[X,l(g)]])]),_:1},8,["modelValue"]),o(ee,{modelValue:l(G),"onUpdate:modelValue":e[12]||(e[12]=n=>q(G)?G.value=n:G=n),title:"预约明细",width:"60%"},{default:a(()=>[u("div",null,[u("div",St,[c(f(l(Y).department_resources_name)+" ",1),(s(!0),r(I,null,S(l(Y).devices,(n,k)=>(s(),r("span",{key:k,class:F(n.status==1&&n.is_del==0?"":"hongzi")},f(n.device_name),3))),128))]),o(_,{label:"渠道"},{default:a(()=>[o(ze,{filterable:!0,clearable:"",modelValue:l(A),"onUpdate:modelValue":e[10]||(e[10]=n=>q(A)?A.value=n:A=n),onChange:e[11]||(e[11]=n=>le(l(Y),l(A))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[o(ae,{label:"全部",value:0}),(s(!0),r(I,null,S(l(Y).countsInfo,(n,k)=>(s(),C(ae,{key:k,label:n.name,value:n.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Z((s(),C(Be,{data:l(te),style:{width:"100%"},"row-key":"id"},{default:a(()=>[o(N,{prop:"list_status",label:"状态",width:"100"},{default:a(n=>[n.row.list_status===0?(s(),C(E,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[35]||(e[35]=[c("申请中",-1)])]),_:1})):y("",!0),n.row.list_status===1?(s(),C(E,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[36]||(e[36]=[c("已预约",-1)])]),_:1})):y("",!0),n.row.list_status===2?(s(),C(E,{key:2,class:"ml-2"},{default:a(()=>[...e[37]||(e[37]=[c("登记",-1)])]),_:1})):y("",!0),n.row.list_status===3?(s(),C(E,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...e[38]||(e[38]=[c("完成",-1)])]),_:1})):y("",!0)]),_:1}),o(N,{prop:"user_name",label:"姓名"}),o(N,{prop:"user_phone",label:"电话"}),o(N,{prop:"reg_num",label:"登记号"}),o(N,{prop:"reservation_department",label:"申请科室"}),o(N,{prop:"entrust",label:"项目"}),o(N,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[X,l(J)]])])]),_:1},8,["modelValue"]),o(ee,{modelValue:l(B),"onUpdate:modelValue":e[14]||(e[14]=n=>q(B)?B.value=n:B=n),title:"占位设置",width:"40%"},{footer:a(()=>[u("span",Rt,[o(p,{onClick:e[13]||(e[13]=n=>q(B)?B.value=!1:B=!1)},{default:a(()=>[...e[41]||(e[41]=[c("取消",-1)])]),_:1}),o(p,{type:"primary",onClick:Ce},{default:a(()=>[...e[42]||(e[42]=[c(" 确定 ",-1)])]),_:1})])]),default:a(()=>[Z((s(),r("div",null,[l(b)?(s(),C(oe,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:a(()=>[o(_,{label:"日期:"},{default:a(()=>[c(f(l(b).date),1)]),_:1}),o(_,{label:"星期:"},{default:a(()=>[c(f(l(b).weekname),1)]),_:1}),o(_,{label:"科室:"},{default:a(()=>[c(f(l(b).department_name),1)]),_:1}),o(_,{label:"资源:"},{default:a(()=>[c(f(l(b).resources_name),1)]),_:1}),o(_,{label:"服务组:"},{default:a(()=>[(s(!0),r(I,null,S(l(b).devices,(n,k)=>(s(),C(E,{key:k,type:n.status===1&&n.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:a(()=>[c(f(n.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),o(_,{label:"时间段:"},{default:a(()=>[e[39]||(e[39]=c(" 开始时间:",-1)),u("span",Pt,f(l(b).begin_time),1),e[40]||(e[40]=c(" 结束时间:",-1)),u("span",Et,f(l(b).end_time),1)]),_:1}),o(_,{label:"渠道占位:"},{default:a(()=>[u("div",zt,[l(b).coutsInfo&&l(b).coutsInfo.length>0?(s(!0),r(I,{key:0},S(l(b).coutsInfo,(n,k)=>(s(),r(I,{key:k},[n&&!(n.count===0&&n.used_count===0)?(s(),r("div",Bt,[u("div",$t,f(n.name),1),u("div",Mt,[o(K,{type:"number",modelValue:l(b).coutsInfo[k].locked_count,"onUpdate:modelValue":v=>l(b).coutsInfo[k].locked_count=v,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),u("div",Ut," 剩余可用: "+f(n.count-n.used_count),1)])):y("",!0)],64))),128)):(s(),r("div",Nt," 暂无渠道数据 "))])]),_:1})]),_:1})):y("",!0)])),[[X,l(g)]])]),_:1},8,["modelValue"])])}}},Gt=$e(Tt,[["__scopeId","data-v-d82c99d4"]]);export{Gt as default}; diff --git a/Laravel/public/admin/assets/PlanList-e85d2b91.css b/Laravel/public/dist/assets/PlanList-e85d2b91.css similarity index 100% rename from Laravel/public/admin/assets/PlanList-e85d2b91.css rename to Laravel/public/dist/assets/PlanList-e85d2b91.css diff --git a/Laravel/public/admin/assets/PlanList-26e9f47e.js b/Laravel/public/dist/assets/PlanList-f569ed17.js similarity index 99% rename from Laravel/public/admin/assets/PlanList-26e9f47e.js rename to Laravel/public/dist/assets/PlanList-f569ed17.js index 264e7ff..eda7d72 100644 --- a/Laravel/public/admin/assets/PlanList-26e9f47e.js +++ b/Laravel/public/dist/assets/PlanList-f569ed17.js @@ -1 +1 @@ -import{_ as ge,o as be,r as y,c as ye,d as s,e as _,k as p,f as t,w as n,h as X,i as a,j as c,l as P,g,b4 as ce,I as xe,E as h,X as we,F as V,t as C,q as i,v as m,x as w,$ as W,b5 as ke,b6 as Ve,b8 as Ce,O as De}from"./index-af171713.js";const Ie={class:"head"},he={key:0},Le={key:0},Ue={style:{"font-weight":"700",color:"#999"}},ze={style:{"font-weight":"700",width:"50px","text-align":"right","margin-right":"8px"}},Pe=["onClick"],Me={class:"page"},qe={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Ee={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Ge={style:{"font-weight":"700"}},Re={style:{"margin-right":"16px"}},Se={class:"qudao_k_input"},Ye={style:{width:"50px"}},Ne={class:"qudao_k_input"},Be={class:"dialog-footer"},Xe={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Fe={__name:"PlanList",setup(Te){let k=g(!1),F=g([]),L=g(1),U=g(15),T=0;const Z=u=>{U.value=u,M()},ee=u=>{L.value=u,M()};let le=g([]);const te=u=>{le.value=u};let f=g({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),D=g(!1);const M=()=>{ce({page:L.value,pageSize:U.value,searchInfo:f.value}).then(u=>{F.value=u.data.list,T=u.data.count})};let ae=g([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),$=g([]);const ne=()=>{k.value=!0,xe().then(u=>{k.value=!1,u.status?$.value=u.data:h.error(u.msg)})};let j=g([]);const oe=()=>{k.value=!0,we({is_all:!0}).then(u=>{k.value=!1,u.status?j.value=u.data.list:h.error(u.msg)})};let Y=g([]);const ue=()=>{De({department_id:f.value.department_id}).then(u=>{u.status?Y.value=u.data:h.error(u.msg)})};let o=g("");const se=u=>{D.value=!0,k.value=!0,ke({id:u}).then(e=>{k.value=!1,e.status?o.value=e.data:h.error(e.msg)})},de=u=>{console.log(u),(u===""||u==null||u===0)&&(o.value.max_total=0);let e=0,x=o.value.coutsInfo.length;for(let b=0;b{let u=0;if(o.value.coutsInfo.forEach(e=>{u=u+Number(e.count)}),u!==Number(o.value.max_total))return h.error("各个渠道数量之和与当日总量不符"),!1;k.value=!0,Ve({PlanDetaiInfo:o.value}).then(e=>{k.value=!1,e.status?(D.value=!1,M()):h.error(e.msg)})};let q=g(!1),N=g(!1),A=g(null),E=g(null),z=g(null);const O=(u,e)=>{z.value=e,E.value=u,q.value=!0,N.value=!0,Ce({planid:u.id,qudaoid:e}).then(x=>{N.value=!1,x.status?A.value=x.data:h.error(x.msg)})},re=()=>{Y.value=[],f.value.department_id>0&&ue()};return be(()=>{M(),oe(),ne()}),(u,e)=>{const x=y("el-option"),b=y("el-select"),v=y("el-form-item"),Q=y("el-date-picker"),R=y("el-button"),pe=y("el-row"),r=y("el-table-column"),I=y("el-tag"),H=y("el-table"),me=y("el-pagination"),S=y("el-checkbox"),_e=y("el-checkbox-group"),J=y("el-input"),fe=y("el-switch"),ve=y("el-form"),K=y("el-dialog"),B=ye("loading");return s(),_("div",null,[p("div",Ie,[t(pe,null,{default:n(()=>[t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).department_id,"onUpdate:modelValue":e[0]||(e[0]=l=>a(f).department_id=l),placeholder:"选择科室",onChange:e[1]||(e[1]=l=>re()),style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(j),(l,d)=>(s(),c(x,{key:d,label:l.department_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).resources_id,"onUpdate:modelValue":e[2]||(e[2]=l=>a(f).resources_id=l),placeholder:"选择资源",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(Y),(l,d)=>(s(),c(x,{key:d,label:l.department_resources_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).device_id,"onUpdate:modelValue":e[3]||(e[3]=l=>a(f).device_id=l),placeholder:"选择服务组",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a($),(l,d)=>(s(),c(x,{key:d,label:l.device_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).xingqi,"onUpdate:modelValue":e[4]||(e[4]=l=>a(f).xingqi=l),placeholder:"星期",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(ae),(l,d)=>(s(),c(x,{key:d,label:l.label,value:l.label},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).status,"onUpdate:modelValue":e[5]||(e[5]=l=>a(f).status=l),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[t(x,{label:"正常",value:"1"}),t(x,{label:"关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(Q,{style:{"margin-left":"8px",width:"150px"},modelValue:a(f).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=l=>a(f).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[19]||(e[19]=p("span",{style:{margin:"0 4px"}},"至",-1)),t(Q,{style:{width:"150px"},modelValue:a(f).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=l=>a(f).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),t(R,{onClick:e[8]||(e[8]=l=>M()),style:{"margin-left":"10px"}},{default:n(()=>[...e[20]||(e[20]=[i("搜索",-1)])]),_:1})]),_:1})]),X((s(),c(H,{data:a(F),style:{width:"100%"},"row-key":"id",onSelectionChange:te},{default:n(()=>[t(r,{type:"selection"}),t(r,{prop:"id",label:"Id"}),t(r,{prop:"date",label:"日期",width:"100"},{default:n(l=>[p("span",null,m(l.row.date.substring(0,10)),1)]),_:1}),t(r,{prop:"weekname",label:"星期"}),w("",!0),t(r,{prop:"department_name",label:"科室"}),t(r,{prop:"department_resources_name",label:"资源"}),t(r,{prop:"",label:"服务组","show-overflow-tooltip":""},{default:n(l=>[l.row.devices.length>0?(s(),_("div",he,[(s(!0),_(V,null,C(l.row.devices,(d,G)=>(s(),_("div",{key:G,class:W(d.status==1&&d.is_del==0?"":"hongzi")},m(d.device_name),3))),128))])):w("",!0)]),_:1}),t(r,{prop:"period_name",label:"时段"}),t(r,{prop:"begin_time",label:"开始时间"}),t(r,{prop:"end_time",label:"结束时间"}),t(r,{prop:"end_reservation_time",label:"截止时间"}),t(r,{prop:"",label:"类型数量","show-overflow-tooltip":"",width:"250"},{default:n(l=>[l.row.countsInfo.length>0?(s(),_("div",Le,[p("div",Ue,"最大数量:"+m(l.row.countsInfo[0].max_total),1),(s(!0),_(V,null,C(l.row.countsInfo,(d,G)=>(s(),_("div",{key:G,style:{display:"flex"}},[p("div",ze,m(d.name),1),p("div",null,[i("共:"+m(d.count)+" 已用: ",1),p("span",{onClick:$e=>O(l.row,d.appointment_type_id),class:"yiyong"},m(d.used_count),9,Pe),i(" 余:"+m(Number(d.count-d.used_count)),1)])]))),128))])):w("",!0)]),_:1}),t(r,{prop:"roster_status",label:"状态"},{default:n(l=>[l.row.status===1?(s(),c(I,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[21]||(e[21]=[i("正常",-1)])]),_:1})):w("",!0),l.row.status===0?(s(),c(I,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[22]||(e[22]=[i("关闭",-1)])]),_:1})):w("",!0)]),_:1}),t(r,{prop:"",label:"操作"},{default:n(l=>[t(R,{onClick:d=>se(l.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[23]||(e[23]=[i(" 详情 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,a(k)]]),p("div",Me,[t(me,{"current-page":a(L),"onUpdate:currentPage":e[9]||(e[9]=l=>P(L)?L.value=l:L=l),"page-size":a(U),"onUpdate:pageSize":e[10]||(e[10]=l=>P(U)?U.value=l:U=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:a(T),onSizeChange:Z,onCurrentChange:ee},null,8,["current-page","page-size","total"])]),t(K,{modelValue:a(D),"onUpdate:modelValue":e[15]||(e[15]=l=>P(D)?D.value=l:D=l),title:"详情",width:"40%"},{footer:n(()=>[p("span",Be,[t(R,{onClick:e[14]||(e[14]=l=>P(D)?D.value=!1:D=!1)},{default:n(()=>[...e[33]||(e[33]=[i("取消",-1)])]),_:1}),t(R,{type:"primary",onClick:ie},{default:n(()=>[...e[34]||(e[34]=[i(" 确定 ",-1)])]),_:1})])]),default:n(()=>[X((s(),_("div",null,[a(o)?(s(),c(ve,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[t(v,{label:"日期:"},{default:n(()=>[i(m(a(o).date),1)]),_:1}),t(v,{label:"星期:"},{default:n(()=>[i(m(a(o).weekname),1)]),_:1}),t(v,{label:"科室:"},{default:n(()=>[i(m(a(o).department_name),1)]),_:1}),t(v,{label:"资源:"},{default:n(()=>[i(m(a(o).resources_name),1)]),_:1}),t(v,{label:"服务组:"},{default:n(()=>[(s(!0),_(V,null,C(a(o).devices,(l,d)=>(s(),c(I,{key:d,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:n(()=>[i(m(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),t(v,{label:"病人类型:"},{default:n(()=>[t(_e,{disabled:"",modelValue:a(o).patientType,"onUpdate:modelValue":e[11]||(e[11]=l=>a(o).patientType=l)},{default:n(()=>[t(S,{label:"0"},{default:n(()=>[...e[24]||(e[24]=[i("住院",-1)])]),_:1}),t(S,{label:"1"},{default:n(()=>[...e[25]||(e[25]=[i("门诊",-1)])]),_:1}),t(S,{label:"2"},{default:n(()=>[...e[26]||(e[26]=[i("急诊",-1)])]),_:1}),t(S,{label:"3"},{default:n(()=>[...e[27]||(e[27]=[i("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"时间段:"},{default:n(()=>[e[28]||(e[28]=i(" 开始时间:",-1)),p("span",qe,m(a(o).begin_time),1),e[29]||(e[29]=i(" 结束时间:",-1)),p("span",Ee,m(a(o).end_time),1),e[30]||(e[30]=i(" 停止预约时间:",-1)),p("span",Ge,m(a(o).end_reservation_time),1)]),_:1}),a(o).coutsInfo?(s(),c(v,{key:0,label:"渠道名额:"},{default:n(()=>[p("div",Re,[e[31]||(e[31]=p("div",null,"当日总量",-1)),p("div",Se,[t(J,{onInput:de,disabled:"",type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[12]||(e[12]=l=>a(o).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[32]||(e[32]=p("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),p("div",null,[(s(!0),_(V,null,C(a(o).coutsInfo,(l,d)=>(s(),_("div",{class:"qudao_k",key:d},[p("div",Ye,m(l.name),1),p("div",Ne,[t(J,{disabled:"",type:"number",modelValue:a(o).coutsInfo[d].count,"onUpdate:modelValue":G=>a(o).coutsInfo[d].count=G,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):w("",!0),t(v,{label:"状态:"},{default:n(()=>[t(fe,{disabled:"",modelValue:a(o).status,"onUpdate:modelValue":e[13]||(e[13]=l=>a(o).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),t(v,{label:"添加时间:"},{default:n(()=>[i(m(a(o).created_at),1)]),_:1})]),_:1})):w("",!0)])),[[B,a(k)]])]),_:1},8,["modelValue"]),t(K,{modelValue:a(q),"onUpdate:modelValue":e[18]||(e[18]=l=>P(q)?q.value=l:q=l),title:"预约明细",width:"60%"},{default:n(()=>[p("div",null,[p("div",Xe,[i(m(a(E).department_resources_name)+" ",1),(s(!0),_(V,null,C(a(E).devices,(l,d)=>(s(),_("span",{key:d,class:W(l.status==1&&l.is_del==0?"":"hongzi")},m(l.device_name),3))),128))]),t(v,{label:"渠道"},{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(z),"onUpdate:modelValue":e[16]||(e[16]=l=>P(z)?z.value=l:z=l),onChange:e[17]||(e[17]=l=>O(a(E),a(z))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[t(x,{label:"全部",value:0}),(s(!0),_(V,null,C(a(E).countsInfo,(l,d)=>(s(),c(x,{key:d,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),X((s(),c(H,{data:a(A),style:{width:"100%"},"row-key":"id"},{default:n(()=>[t(r,{prop:"list_status",label:"状态",width:"100"},{default:n(l=>[l.row.list_status===0?(s(),c(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[35]||(e[35]=[i("申请中",-1)])]),_:1})):w("",!0),l.row.list_status===1?(s(),c(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[36]||(e[36]=[i("已预约",-1)])]),_:1})):w("",!0),l.row.list_status===2?(s(),c(I,{key:2,class:"ml-2"},{default:n(()=>[...e[37]||(e[37]=[i("登记",-1)])]),_:1})):w("",!0),l.row.list_status===3?(s(),c(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[38]||(e[38]=[i("完成",-1)])]),_:1})):w("",!0)]),_:1}),t(r,{prop:"user_name",label:"姓名"}),t(r,{prop:"user_phone",label:"电话"}),t(r,{prop:"reg_num",label:"登记号"}),t(r,{prop:"reservation_department",label:"申请科室"}),t(r,{prop:"entrust",label:"项目"}),t(r,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[B,a(N)]])])]),_:1},8,["modelValue"])])}}},Ae=ge(Fe,[["__scopeId","data-v-903303d6"]]);export{Ae as default}; +import{_ as ge,o as be,r as y,c as ye,d as s,e as _,k as p,f as t,w as n,h as X,i as a,j as c,l as P,g,b4 as ce,I as xe,E as h,X as we,F as V,t as C,q as i,v as m,x as w,$ as W,b5 as ke,b6 as Ve,b8 as Ce,O as De}from"./index-e65958bd.js";const Ie={class:"head"},he={key:0},Le={key:0},Ue={style:{"font-weight":"700",color:"#999"}},ze={style:{"font-weight":"700",width:"50px","text-align":"right","margin-right":"8px"}},Pe=["onClick"],Me={class:"page"},qe={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Ee={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Ge={style:{"font-weight":"700"}},Re={style:{"margin-right":"16px"}},Se={class:"qudao_k_input"},Ye={style:{width:"50px"}},Ne={class:"qudao_k_input"},Be={class:"dialog-footer"},Xe={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Fe={__name:"PlanList",setup(Te){let k=g(!1),F=g([]),L=g(1),U=g(15),T=0;const Z=u=>{U.value=u,M()},ee=u=>{L.value=u,M()};let le=g([]);const te=u=>{le.value=u};let f=g({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),D=g(!1);const M=()=>{ce({page:L.value,pageSize:U.value,searchInfo:f.value}).then(u=>{F.value=u.data.list,T=u.data.count})};let ae=g([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),$=g([]);const ne=()=>{k.value=!0,xe().then(u=>{k.value=!1,u.status?$.value=u.data:h.error(u.msg)})};let j=g([]);const oe=()=>{k.value=!0,we({is_all:!0}).then(u=>{k.value=!1,u.status?j.value=u.data.list:h.error(u.msg)})};let Y=g([]);const ue=()=>{De({department_id:f.value.department_id}).then(u=>{u.status?Y.value=u.data:h.error(u.msg)})};let o=g("");const se=u=>{D.value=!0,k.value=!0,ke({id:u}).then(e=>{k.value=!1,e.status?o.value=e.data:h.error(e.msg)})},de=u=>{console.log(u),(u===""||u==null||u===0)&&(o.value.max_total=0);let e=0,x=o.value.coutsInfo.length;for(let b=0;b{let u=0;if(o.value.coutsInfo.forEach(e=>{u=u+Number(e.count)}),u!==Number(o.value.max_total))return h.error("各个渠道数量之和与当日总量不符"),!1;k.value=!0,Ve({PlanDetaiInfo:o.value}).then(e=>{k.value=!1,e.status?(D.value=!1,M()):h.error(e.msg)})};let q=g(!1),N=g(!1),A=g(null),E=g(null),z=g(null);const O=(u,e)=>{z.value=e,E.value=u,q.value=!0,N.value=!0,Ce({planid:u.id,qudaoid:e}).then(x=>{N.value=!1,x.status?A.value=x.data:h.error(x.msg)})},re=()=>{Y.value=[],f.value.department_id>0&&ue()};return be(()=>{M(),oe(),ne()}),(u,e)=>{const x=y("el-option"),b=y("el-select"),v=y("el-form-item"),Q=y("el-date-picker"),R=y("el-button"),pe=y("el-row"),r=y("el-table-column"),I=y("el-tag"),H=y("el-table"),me=y("el-pagination"),S=y("el-checkbox"),_e=y("el-checkbox-group"),J=y("el-input"),fe=y("el-switch"),ve=y("el-form"),K=y("el-dialog"),B=ye("loading");return s(),_("div",null,[p("div",Ie,[t(pe,null,{default:n(()=>[t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).department_id,"onUpdate:modelValue":e[0]||(e[0]=l=>a(f).department_id=l),placeholder:"选择科室",onChange:e[1]||(e[1]=l=>re()),style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(j),(l,d)=>(s(),c(x,{key:d,label:l.department_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).resources_id,"onUpdate:modelValue":e[2]||(e[2]=l=>a(f).resources_id=l),placeholder:"选择资源",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(Y),(l,d)=>(s(),c(x,{key:d,label:l.department_resources_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).device_id,"onUpdate:modelValue":e[3]||(e[3]=l=>a(f).device_id=l),placeholder:"选择服务组",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a($),(l,d)=>(s(),c(x,{key:d,label:l.device_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).xingqi,"onUpdate:modelValue":e[4]||(e[4]=l=>a(f).xingqi=l),placeholder:"星期",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[(s(!0),_(V,null,C(a(ae),(l,d)=>(s(),c(x,{key:d,label:l.label,value:l.label},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(f).status,"onUpdate:modelValue":e[5]||(e[5]=l=>a(f).status=l),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[t(x,{label:"正常",value:"1"}),t(x,{label:"关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:n(()=>[t(Q,{style:{"margin-left":"8px",width:"150px"},modelValue:a(f).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=l=>a(f).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[19]||(e[19]=p("span",{style:{margin:"0 4px"}},"至",-1)),t(Q,{style:{width:"150px"},modelValue:a(f).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=l=>a(f).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),t(R,{onClick:e[8]||(e[8]=l=>M()),style:{"margin-left":"10px"}},{default:n(()=>[...e[20]||(e[20]=[i("搜索",-1)])]),_:1})]),_:1})]),X((s(),c(H,{data:a(F),style:{width:"100%"},"row-key":"id",onSelectionChange:te},{default:n(()=>[t(r,{type:"selection"}),t(r,{prop:"id",label:"Id"}),t(r,{prop:"date",label:"日期",width:"100"},{default:n(l=>[p("span",null,m(l.row.date.substring(0,10)),1)]),_:1}),t(r,{prop:"weekname",label:"星期"}),w("",!0),t(r,{prop:"department_name",label:"科室"}),t(r,{prop:"department_resources_name",label:"资源"}),t(r,{prop:"",label:"服务组","show-overflow-tooltip":""},{default:n(l=>[l.row.devices.length>0?(s(),_("div",he,[(s(!0),_(V,null,C(l.row.devices,(d,G)=>(s(),_("div",{key:G,class:W(d.status==1&&d.is_del==0?"":"hongzi")},m(d.device_name),3))),128))])):w("",!0)]),_:1}),t(r,{prop:"period_name",label:"时段"}),t(r,{prop:"begin_time",label:"开始时间"}),t(r,{prop:"end_time",label:"结束时间"}),t(r,{prop:"end_reservation_time",label:"截止时间"}),t(r,{prop:"",label:"类型数量","show-overflow-tooltip":"",width:"250"},{default:n(l=>[l.row.countsInfo.length>0?(s(),_("div",Le,[p("div",Ue,"最大数量:"+m(l.row.countsInfo[0].max_total),1),(s(!0),_(V,null,C(l.row.countsInfo,(d,G)=>(s(),_("div",{key:G,style:{display:"flex"}},[p("div",ze,m(d.name),1),p("div",null,[i("共:"+m(d.count)+" 已用: ",1),p("span",{onClick:$e=>O(l.row,d.appointment_type_id),class:"yiyong"},m(d.used_count),9,Pe),i(" 余:"+m(Number(d.count-d.used_count)),1)])]))),128))])):w("",!0)]),_:1}),t(r,{prop:"roster_status",label:"状态"},{default:n(l=>[l.row.status===1?(s(),c(I,{key:0,class:"ml-2",type:"success"},{default:n(()=>[...e[21]||(e[21]=[i("正常",-1)])]),_:1})):w("",!0),l.row.status===0?(s(),c(I,{key:1,class:"ml-2",type:"danger"},{default:n(()=>[...e[22]||(e[22]=[i("关闭",-1)])]),_:1})):w("",!0)]),_:1}),t(r,{prop:"",label:"操作"},{default:n(l=>[t(R,{onClick:d=>se(l.row.id),size:"small",style:{"margin-left":"10px"}},{default:n(()=>[...e[23]||(e[23]=[i(" 详情 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,a(k)]]),p("div",Me,[t(me,{"current-page":a(L),"onUpdate:currentPage":e[9]||(e[9]=l=>P(L)?L.value=l:L=l),"page-size":a(U),"onUpdate:pageSize":e[10]||(e[10]=l=>P(U)?U.value=l:U=l),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:a(T),onSizeChange:Z,onCurrentChange:ee},null,8,["current-page","page-size","total"])]),t(K,{modelValue:a(D),"onUpdate:modelValue":e[15]||(e[15]=l=>P(D)?D.value=l:D=l),title:"详情",width:"40%"},{footer:n(()=>[p("span",Be,[t(R,{onClick:e[14]||(e[14]=l=>P(D)?D.value=!1:D=!1)},{default:n(()=>[...e[33]||(e[33]=[i("取消",-1)])]),_:1}),t(R,{type:"primary",onClick:ie},{default:n(()=>[...e[34]||(e[34]=[i(" 确定 ",-1)])]),_:1})])]),default:n(()=>[X((s(),_("div",null,[a(o)?(s(),c(ve,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:n(()=>[t(v,{label:"日期:"},{default:n(()=>[i(m(a(o).date),1)]),_:1}),t(v,{label:"星期:"},{default:n(()=>[i(m(a(o).weekname),1)]),_:1}),t(v,{label:"科室:"},{default:n(()=>[i(m(a(o).department_name),1)]),_:1}),t(v,{label:"资源:"},{default:n(()=>[i(m(a(o).resources_name),1)]),_:1}),t(v,{label:"服务组:"},{default:n(()=>[(s(!0),_(V,null,C(a(o).devices,(l,d)=>(s(),c(I,{key:d,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:n(()=>[i(m(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),t(v,{label:"病人类型:"},{default:n(()=>[t(_e,{disabled:"",modelValue:a(o).patientType,"onUpdate:modelValue":e[11]||(e[11]=l=>a(o).patientType=l)},{default:n(()=>[t(S,{label:"0"},{default:n(()=>[...e[24]||(e[24]=[i("住院",-1)])]),_:1}),t(S,{label:"1"},{default:n(()=>[...e[25]||(e[25]=[i("门诊",-1)])]),_:1}),t(S,{label:"2"},{default:n(()=>[...e[26]||(e[26]=[i("急诊",-1)])]),_:1}),t(S,{label:"3"},{default:n(()=>[...e[27]||(e[27]=[i("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(v,{label:"时间段:"},{default:n(()=>[e[28]||(e[28]=i(" 开始时间:",-1)),p("span",qe,m(a(o).begin_time),1),e[29]||(e[29]=i(" 结束时间:",-1)),p("span",Ee,m(a(o).end_time),1),e[30]||(e[30]=i(" 停止预约时间:",-1)),p("span",Ge,m(a(o).end_reservation_time),1)]),_:1}),a(o).coutsInfo?(s(),c(v,{key:0,label:"渠道名额:"},{default:n(()=>[p("div",Re,[e[31]||(e[31]=p("div",null,"当日总量",-1)),p("div",Se,[t(J,{onInput:de,disabled:"",type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[12]||(e[12]=l=>a(o).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[32]||(e[32]=p("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),p("div",null,[(s(!0),_(V,null,C(a(o).coutsInfo,(l,d)=>(s(),_("div",{class:"qudao_k",key:d},[p("div",Ye,m(l.name),1),p("div",Ne,[t(J,{disabled:"",type:"number",modelValue:a(o).coutsInfo[d].count,"onUpdate:modelValue":G=>a(o).coutsInfo[d].count=G,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):w("",!0),t(v,{label:"状态:"},{default:n(()=>[t(fe,{disabled:"",modelValue:a(o).status,"onUpdate:modelValue":e[13]||(e[13]=l=>a(o).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),t(v,{label:"添加时间:"},{default:n(()=>[i(m(a(o).created_at),1)]),_:1})]),_:1})):w("",!0)])),[[B,a(k)]])]),_:1},8,["modelValue"]),t(K,{modelValue:a(q),"onUpdate:modelValue":e[18]||(e[18]=l=>P(q)?q.value=l:q=l),title:"预约明细",width:"60%"},{default:n(()=>[p("div",null,[p("div",Xe,[i(m(a(E).department_resources_name)+" ",1),(s(!0),_(V,null,C(a(E).devices,(l,d)=>(s(),_("span",{key:d,class:W(l.status==1&&l.is_del==0?"":"hongzi")},m(l.device_name),3))),128))]),t(v,{label:"渠道"},{default:n(()=>[t(b,{filterable:!0,clearable:"",modelValue:a(z),"onUpdate:modelValue":e[16]||(e[16]=l=>P(z)?z.value=l:z=l),onChange:e[17]||(e[17]=l=>O(a(E),a(z))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[t(x,{label:"全部",value:0}),(s(!0),_(V,null,C(a(E).countsInfo,(l,d)=>(s(),c(x,{key:d,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),X((s(),c(H,{data:a(A),style:{width:"100%"},"row-key":"id"},{default:n(()=>[t(r,{prop:"list_status",label:"状态",width:"100"},{default:n(l=>[l.row.list_status===0?(s(),c(I,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[35]||(e[35]=[i("申请中",-1)])]),_:1})):w("",!0),l.row.list_status===1?(s(),c(I,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[36]||(e[36]=[i("已预约",-1)])]),_:1})):w("",!0),l.row.list_status===2?(s(),c(I,{key:2,class:"ml-2"},{default:n(()=>[...e[37]||(e[37]=[i("登记",-1)])]),_:1})):w("",!0),l.row.list_status===3?(s(),c(I,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[38]||(e[38]=[i("完成",-1)])]),_:1})):w("",!0)]),_:1}),t(r,{prop:"user_name",label:"姓名"}),t(r,{prop:"user_phone",label:"电话"}),t(r,{prop:"reg_num",label:"登记号"}),t(r,{prop:"reservation_department",label:"申请科室"}),t(r,{prop:"entrust",label:"项目"}),t(r,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[B,a(N)]])])]),_:1},8,["modelValue"])])}}},Ae=ge(Fe,[["__scopeId","data-v-903303d6"]]);export{Ae as default}; diff --git a/Laravel/public/dist/assets/PlanListAdmin-2bf4ffa5.js b/Laravel/public/dist/assets/PlanListAdmin-2bf4ffa5.js new file mode 100644 index 0000000..63d0164 --- /dev/null +++ b/Laravel/public/dist/assets/PlanListAdmin-2bf4ffa5.js @@ -0,0 +1 @@ +import{_ as Me,o as Ae,r as h,c as Ue,d as s,e as _,k as u,f as a,w as o,F as I,t as S,i as l,h as Q,$ as W,j as L,x as y,l as q,g as v,I as Ne,E as w,X as Re,O as Te,q as c,v as p,b1 as re,b2 as qe,b3 as Ge,p as Ye,b4 as Fe,b5 as _e,bf as We,N as Xe,bg as Oe,b8 as Ze,b9 as je}from"./index-e65958bd.js";const Qe={class:"head"},He={style:{display:"flex"},class:"planInfo"},Je={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ke=["onClick"],et={style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto"}},tt={key:0,class:"planTable"},lt={style:{"background-color":"#f1f1f1",position:"relative"}},nt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},at={style:{"min-width":"120px","font-size":"14px"}},ot=["onMouseover","onMouseleave"],st={key:0},ut={key:0,class:"hoverTools"},it=["onClick"],dt=["onClick"],rt=["onClick"],_t=["onClick"],ct={class:"zong_row"},pt={class:"qudao_title_zong"},ft={class:"qudao_count_row"},vt={key:0},mt={key:0,class:"yellow bold-text"},gt={key:1},yt={class:"font_color"},kt={class:"patient_type_row"},bt={class:"tps"},xt={key:1,style:{width:"100%","background-color":"#fff"}},ht={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},wt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Dt={style:{"font-weight":"700"}},Vt={style:{"margin-right":"16px"}},It={class:"qudao_k_input"},Ct={style:{width:"50px"}},Lt={class:"qudao_k_input"},St={class:"dialog-footer"},Pt={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},zt={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},Bt={style:{"font-weight":"700"}},Et={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},$t={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},Mt={style:{width:"80px"}},At={style:{flex:"1"}},Ut={style:{color:"#999","font-size":"12px"}},Nt={key:1,style:{color:"#999"}},Rt={class:"dialog-footer"},Tt={__name:"PlanListAdmin",setup(qt){let N=v([]),m=v(!1),ce=v(1),pe=v(9999),P=v([]),H=v([]),A=v(0),D=v({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),E=v(!1);const R=()=>{D.value.resources_id=$.value,H.value=Se(D.value.dateRange),m.value=!0,Fe({page:ce.value,pageSize:pe.value,searchInfo:D.value}).then(n=>{if(m.value=!1,n.status){N.value=[],P.value=[];let e=n.data.list;if(e.length>0){const i=new Set;e.forEach(d=>{if(d.resources_id==$.value){const C=`${d.begin_time.substring(0,5)}-${d.end_time.substring(0,5)}`;i.add(C)}}),Array.from(i).sort().forEach(d=>{const C={time_range:d};H.value.forEach(V=>{const z=e.find(B=>`${B.begin_time.substring(0,5)}-${B.end_time.substring(0,5)}`===d&&B.date===V&&B.resources_id==$.value);z?C[V]={countsInfo:z.countsInfo,patient_type_label:z.patient_type_label,status:z.status,id:z.id,resources_id:z.resources_id}:C[V]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),N.value.push(C)})}}else w.error(n.msg)})},fe=()=>{A.value=A.value===0?1:0,A.value===0&&(P.value=[]),A.value===1&&N.value.forEach((n,e)=>{console.log(n);for(let i in n)i!="time_range"&&P.value.push(n[i].id)})},ve=n=>{P.value.indexOf(n)===-1?P.value.push(n):P.value=P.value.filter(i=>i!==n)};let J=v(null);const me=n=>{J.value=n},ge=n=>{J.value=null},ye=n=>{$.value=n,A.value=0,P.value=[],R()},K=n=>P.value.includes(n);let ke=v([]);const be=()=>{m.value=!0,Ne().then(n=>{m.value=!1,n.status?ke.value=n.data:w.error(n.msg)})};let X=v([]);const xe=()=>{m.value=!0,Re({}).then(n=>{m.value=!1,n.status?(X.value=n.data.list,X.value.length>0&&(D.value.department_id=X.value[0].id,ne())):w.error(n.msg)})},he=()=>{D.value.resources_id=null,$.value=0,ne()};let O=v([]),$=v(0);const ne=()=>{m.value=!0,Te({department_id:D.value.department_id}).then(n=>{m.value=!1,n.status?(O.value=n.data,O.value.length>0&&$.value==""&&($.value=O.value[0].id,R())):w.error(n.msg)})};let r=v("");const we=n=>{E.value=!0,m.value=!0,_e({id:n}).then(e=>{m.value=!1,e.status?r.value=e.data:w.error(e.msg)})},De=n=>{console.log(n),(n===""||n==null||n===0)&&(r.value.max_total=0);let e=0,i=r.value.coutsInfo.length,b=-1;for(let d=0;d{let n=0;if(r.value.coutsInfo.forEach(e=>{n=n+Number(e.count)}),n!==Number(r.value.max_total))return w.error("各个渠道数量之和与当日总量不符"),!1;m.value=!0,We({PlanDetaiInfo:r.value,department_id:D.value.department_id}).then(e=>{m.value=!1,e.status?(E.value=!1,R()):w.error(e.msg)})},Ie=()=>{if(P.value.length==0)return w.error("请至少勾选1条记录"),!1;Xe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,Oe({ids:P.value,department_id:D.value.department_id}).then(n=>{m.value=!1,n.status?(w({message:n.msg,type:"success"}),R()):w.error(n.msg)})})};let G=v(!1),ee=v(!1),ae=v(null),Y=v(null),T=v(null);const oe=(n,e)=>{T.value=e,Y.value=n,G.value=!0,ee.value=!0,Ze({planid:n.id,qudaoid:e}).then(i=>{ee.value=!1,i.status?ae.value=i.data:w.error(i.msg)})};let M=v(!1),k=v(null);const Ce=n=>{M.value=!0,m.value=!0,_e({id:n.id}).then(e=>{m.value=!1,e.status?(k.value=e.data,k.value.coutsInfo.forEach(i=>{i.locked_count===null&&(i.locked_count=0)})):w.error(e.msg)})},Le=()=>{let n=[],e=!1;k.value.coutsInfo.forEach(i=>{if(e)return;const b=i.count-i.used_count;if(Number(i.locked_count)>b){w.error(`${i.name} 的占位数量不能大于剩余可用数量,最多${b}个`),e=!0;return}if(Number(i.locked_count)<0){w.error(`${i.name} 的占位数量不能为负数`),e=!0;return}n.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}),!e&&(m.value=!0,je({roster_detail_id:k.value.id,locked_counts:n}).then(i=>{m.value=!1,i.status?(M.value=!1,R(),w.success("占位设置保存成功")):w.error(i.msg)}))};function se(n){const e=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),b=String(n.getDate()).padStart(2,"0");return`${e}-${i}-${b}`}function Se(n){const e=n.map(V=>new Date(V)).sort((V,z)=>V-z),i=e[0],b=e[e.length-1],d=[];let C=new Date(i);for(;C<=b;)d.push(C.toISOString().split("T")[0]),C.setDate(C.getDate()+1);return d}function Pe(n){const e=new Date(n);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return Ae(()=>{const n=new Date,e=se(n),i=new Date(n);i.setDate(n.getDate()+14);const b=se(i);D.value.dateRange=[e,b],xe(),be()}),(n,e)=>{const i=h("el-option"),b=h("el-select"),d=h("el-form-item"),C=h("el-date-picker"),V=h("el-button"),z=h("el-row"),B=h("el-icon"),ze=h("el-empty"),F=h("el-tag"),Z=h("el-checkbox"),Be=h("el-checkbox-group"),te=h("el-input"),Ee=h("el-switch"),ue=h("el-form"),le=h("el-dialog"),U=h("el-table-column"),$e=h("el-table"),j=Ue("loading");return s(),_("div",null,[u("div",Qe,[a(z,null,{default:o(()=>[a(d,null,{default:o(()=>[a(b,{filterable:!0,clearable:"",modelValue:l(D).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>l(D).department_id=t),placeholder:"选择科室",onChange:he,style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[(s(!0),_(I,null,S(l(X),(t,g)=>(s(),L(i,{key:g,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(d,null,{default:o(()=>[a(C,{style:{"margin-left":"8px",width:"150px"},modelValue:l(D).dateRange[0],"onUpdate:modelValue":e[1]||(e[1]=t=>l(D).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[16]||(e[16]=u("span",{style:{margin:"0 4px"}},"至",-1)),a(C,{style:{width:"150px"},modelValue:l(D).dateRange[1],"onUpdate:modelValue":e[2]||(e[2]=t=>l(D).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(V,{onClick:e[3]||(e[3]=t=>R()),style:{"margin-left":"10px"}},{default:o(()=>[...e[17]||(e[17]=[c("搜索",-1)])]),_:1}),a(V,{type:"danger",onClick:e[4]||(e[4]=t=>Ie()),style:{"margin-left":"10px"}},{default:o(()=>[...e[18]||(e[18]=[c("删除",-1)])]),_:1})]),_:1})]),u("div",He,[u("div",Je,[(s(!0),_(I,null,S(l(O),(t,g)=>(s(),_("div",{key:g,onClick:f=>ye(t.id),class:W({"zhenshiButton zhenshiButtonActive":t.id===l($),zhenshiButton:t.id!==l($)})},p(t.department_resources_name),11,Ke))),128))]),Q((s(),_("div",et,[e[24]||(e[24]=u("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),l(N).length>0?(s(),_("table",tt,[u("tr",lt,[u("td",null,[u("div",nt,[e[19]||(e[19]=u("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),u("div",{class:W({"plan_checkAllbox plan_checkAllbox_active":l(A)===1,"plan_checkAllbox ":l(A)===0}),onClick:e[5]||(e[5]=t=>fe())},[l(A)===1?(s(),L(B,{key:0,color:"#ffffff"},{default:o(()=>[a(l(re))]),_:1})):y("",!0)],2)])]),(s(!0),_(I,null,S(l(H),(t,g)=>(s(),_("td",at,p(t.substring(5,10))+" "+p(Pe(t)),1))),256))]),(s(!0),_(I,null,S(l(N),(t,g)=>(s(),_("tr",{key:g},[(s(!0),_(I,null,S(t,(f,ie)=>(s(),_("td",{key:ie,onMouseover:x=>me(f.id),onMouseleave:x=>ge(f.id)},[u("div",null,[ie=="time_range"?(s(),_("span",st,p(f),1)):y("",!0),f.countsInfo&&f.countsInfo.length>0?(s(),_("div",{key:1,class:W({planInfo_k:f.status==1,"planInfo_k planInfo_k_disabled":f.status==0})},[l(J)==f.id?(s(),_("div",ut,[u("div",{class:"icon_k",onClick:x=>we(f.id)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(qe))]),_:1}),e[20]||(e[20]=u("span",{class:"icon_text"},"编辑",-1))],8,it),u("div",{class:"icon_k",onClick:x=>oe(f,0)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(Ge))]),_:1}),e[21]||(e[21]=u("span",{class:"icon_text"},"明细",-1))],8,dt),u("div",{class:"icon_k",onClick:x=>Ce(f)},[a(B,{color:"#409eff",size:"20"},{default:o(()=>[a(l(Ye))]),_:1}),e[22]||(e[22]=u("span",{class:"icon_text"},"占位",-1))],8,rt)])):y("",!0),u("div",{class:W({"plan_checkbox plan_checkbox_active":K(f.id),plan_checkbox:!K(f.id)}),onClick:x=>ve(f.id)},[K(f.id)?(s(),L(B,{key:0,color:"#ffffff"},{default:o(()=>[a(l(re))]),_:1})):y("",!0)],10,_t),u("div",ct,[u("div",pt,[e[23]||(e[23]=u("span",null,"总数:",-1)),c(p(f.countsInfo[0].max_total),1)])]),u("div",ft,[(s(!0),_(I,null,S(f.countsInfo,(x,de)=>(s(),_(I,{key:de},[x&&!(x.count===0&&x.used_count===0)?(s(),_("div",vt,[u("span",null,p(x.jiancheng),1),u("span",null,[x.locked_count?(s(),_("span",mt,p(x.locked_count),1)):y("",!0),x.locked_count?(s(),_("span",gt,"/")):y("",!0),u("span",yt,p(x.used_count),1),c("/"+p(x.count),1)])])):y("",!0)],64))),128))]),u("div",kt,[(s(!0),_(I,null,S(f.patient_type_label,(x,de)=>(s(),_("div",bt,p(x),1))),256))])],2)):y("",!0)])],40,ot))),128))]))),128))])):y("",!0),l(N).length==0?(s(),_("div",xt,[a(ze,{description:"暂无号源"})])):y("",!0)])),[[j,l(m)]])]),a(le,{modelValue:l(E),"onUpdate:modelValue":e[10]||(e[10]=t=>q(E)?E.value=t:E=t),title:"修改",width:"40%"},{footer:o(()=>[u("span",St,[a(V,{onClick:e[9]||(e[9]=t=>q(E)?E.value=!1:E=!1)},{default:o(()=>[...e[34]||(e[34]=[c("取消",-1)])]),_:1}),a(V,{type:"primary",onClick:Ve},{default:o(()=>[...e[35]||(e[35]=[c(" 确定 ",-1)])]),_:1})])]),default:o(()=>[Q((s(),_("div",null,[l(r)?(s(),L(ue,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[a(d,{label:"日期:"},{default:o(()=>[c(p(l(r).date),1)]),_:1}),a(d,{label:"星期:"},{default:o(()=>[c(p(l(r).weekname),1)]),_:1}),a(d,{label:"科室:"},{default:o(()=>[c(p(l(r).department_name),1)]),_:1}),y("",!0),y("",!0),a(d,{label:"病人类型:"},{default:o(()=>[a(Be,{disabled:"",modelValue:l(r).patientType,"onUpdate:modelValue":e[6]||(e[6]=t=>l(r).patientType=t)},{default:o(()=>[a(Z,{label:"0"},{default:o(()=>[...e[25]||(e[25]=[c("住院",-1)])]),_:1}),a(Z,{label:"1"},{default:o(()=>[...e[26]||(e[26]=[c("门诊",-1)])]),_:1}),a(Z,{label:"2"},{default:o(()=>[...e[27]||(e[27]=[c("急诊",-1)])]),_:1}),a(Z,{label:"3"},{default:o(()=>[...e[28]||(e[28]=[c("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"时间段:"},{default:o(()=>[e[29]||(e[29]=c(" 开始时间:",-1)),u("span",ht,p(l(r).begin_time),1),e[30]||(e[30]=c(" 结束时间:",-1)),u("span",wt,p(l(r).end_time),1),e[31]||(e[31]=c(" 停止预约时间:",-1)),u("span",Dt,p(l(r).end_reservation_time),1)]),_:1}),l(r).coutsInfo?(s(),L(d,{key:2,label:"渠道名额:"},{default:o(()=>[u("div",Vt,[e[32]||(e[32]=u("div",null,"当日总量",-1)),u("div",It,[a(te,{onInput:De,type:"number",modelValue:l(r).max_total,"onUpdate:modelValue":e[7]||(e[7]=t=>l(r).max_total=t),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[33]||(e[33]=u("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),u("div",null,[(s(!0),_(I,null,S(l(r).coutsInfo,(t,g)=>(s(),_("div",{class:"qudao_k",key:g},[u("div",Ct,p(t.name),1),u("div",Lt,[a(te,{type:"number",modelValue:l(r).coutsInfo[g].count,"onUpdate:modelValue":f=>l(r).coutsInfo[g].count=f,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):y("",!0),a(d,{label:"状态:"},{default:o(()=>[a(Ee,{modelValue:l(r).status,"onUpdate:modelValue":e[8]||(e[8]=t=>l(r).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),a(d,{label:"添加时间:"},{default:o(()=>[c(p(l(r).created_at),1)]),_:1})]),_:1})):y("",!0)])),[[j,l(m)]])]),_:1},8,["modelValue"]),a(le,{modelValue:l(G),"onUpdate:modelValue":e[13]||(e[13]=t=>q(G)?G.value=t:G=t),title:"预约明细",width:"60%"},{default:o(()=>[u("div",null,[u("div",Pt,[c(p(l(Y).department_resources_name)+" ",1),(s(!0),_(I,null,S(l(Y).devices,(t,g)=>(s(),_("span",{key:g,class:W(t.status==1&&t.is_del==0?"":"hongzi")},p(t.device_name),3))),128))]),a(d,{label:"渠道"},{default:o(()=>[a(b,{filterable:!0,clearable:"",modelValue:l(T),"onUpdate:modelValue":e[11]||(e[11]=t=>q(T)?T.value=t:T=t),onChange:e[12]||(e[12]=t=>oe(l(Y),l(T))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[a(i,{label:"全部",value:0}),(s(!0),_(I,null,S(l(Y).countsInfo,(t,g)=>(s(),L(i,{key:g,label:t.name,value:t.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Q((s(),L($e,{data:l(ae),style:{width:"100%"},"row-key":"id"},{default:o(()=>[a(U,{prop:"list_status",label:"状态",width:"100"},{default:o(t=>[t.row.list_status===0?(s(),L(F,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[36]||(e[36]=[c("申请中",-1)])]),_:1})):y("",!0),t.row.list_status===1?(s(),L(F,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[37]||(e[37]=[c("已预约",-1)])]),_:1})):y("",!0),t.row.list_status===2?(s(),L(F,{key:2,class:"ml-2"},{default:o(()=>[...e[38]||(e[38]=[c("登记",-1)])]),_:1})):y("",!0),t.row.list_status===3?(s(),L(F,{key:3,class:"ml-2",type:"warning"},{default:o(()=>[...e[39]||(e[39]=[c("完成",-1)])]),_:1})):y("",!0)]),_:1}),a(U,{prop:"user_name",label:"姓名"}),a(U,{prop:"user_phone",label:"电话"}),a(U,{prop:"reg_num",label:"登记号"}),a(U,{prop:"reservation_department",label:"申请科室"}),a(U,{prop:"entrust",label:"项目"}),a(U,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[j,l(ee)]])])]),_:1},8,["modelValue"]),a(le,{modelValue:l(M),"onUpdate:modelValue":e[15]||(e[15]=t=>q(M)?M.value=t:M=t),title:"占位设置",width:"40%"},{footer:o(()=>[u("span",Rt,[a(V,{onClick:e[14]||(e[14]=t=>q(M)?M.value=!1:M=!1)},{default:o(()=>[...e[42]||(e[42]=[c("取消",-1)])]),_:1}),a(V,{type:"primary",onClick:Le},{default:o(()=>[...e[43]||(e[43]=[c(" 确定 ",-1)])]),_:1})])]),default:o(()=>[Q((s(),_("div",null,[l(k)?(s(),L(ue,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:o(()=>[a(d,{label:"日期:"},{default:o(()=>[c(p(l(k).date),1)]),_:1}),a(d,{label:"星期:"},{default:o(()=>[c(p(l(k).weekname),1)]),_:1}),a(d,{label:"科室:"},{default:o(()=>[c(p(l(k).department_name),1)]),_:1}),a(d,{label:"资源:"},{default:o(()=>[c(p(l(k).resources_name),1)]),_:1}),a(d,{label:"服务组:"},{default:o(()=>[(s(!0),_(I,null,S(l(k).devices,(t,g)=>(s(),L(F,{key:g,type:t.status===1&&t.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:o(()=>[c(p(t.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),a(d,{label:"时间段:"},{default:o(()=>[e[40]||(e[40]=c(" 开始时间:",-1)),u("span",zt,p(l(k).begin_time),1),e[41]||(e[41]=c(" 结束时间:",-1)),u("span",Bt,p(l(k).end_time),1)]),_:1}),a(d,{label:"渠道占位:"},{default:o(()=>[u("div",Et,[l(k).coutsInfo&&l(k).coutsInfo.length>0?(s(!0),_(I,{key:0},S(l(k).coutsInfo,(t,g)=>(s(),_(I,{key:g},[t&&!(t.count===0&&t.used_count===0)?(s(),_("div",$t,[u("div",Mt,p(t.name),1),u("div",At,[a(te,{type:"number",modelValue:l(k).coutsInfo[g].locked_count,"onUpdate:modelValue":f=>l(k).coutsInfo[g].locked_count=f,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),u("div",Ut," 剩余可用: "+p(t.count-t.used_count),1)])):y("",!0)],64))),128)):(s(),_("div",Nt," 暂无渠道数据 "))])]),_:1})]),_:1})):y("",!0)])),[[j,l(m)]])]),_:1},8,["modelValue"])])}}},Yt=Me(Tt,[["__scopeId","data-v-c0a526a3"]]);export{Yt as default}; diff --git a/Laravel/public/dist/assets/PlanListAdmin-9932e462.css b/Laravel/public/dist/assets/PlanListAdmin-9932e462.css new file mode 100644 index 0000000..e2dc361 --- /dev/null +++ b/Laravel/public/dist/assets/PlanListAdmin-9932e462.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-c0a526a3]{display:flex}.type_count div[data-v-c0a526a3]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-c0a526a3]{display:flex}.qudao_k_input[data-v-c0a526a3]{width:150px}.hongzi[data-v-c0a526a3]{color:#b25252}.yiyong[data-v-c0a526a3]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-c0a526a3]:hover{color:#666}.zhenshiButton[data-v-c0a526a3]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-c0a526a3]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-c0a526a3]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-c0a526a3]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-c0a526a3]{background-color:#ffd6d2}.planInfo_k[data-v-c0a526a3]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:6px;padding-bottom:10px;padding-right:8px}.planInfo_k .zong_row[data-v-c0a526a3]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-c0a526a3]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-c0a526a3]{font-weight:500}.planInfo_k .plan_checkbox[data-v-c0a526a3]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-c0a526a3]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-c0a526a3]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-c0a526a3]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-c0a526a3]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-c0a526a3]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap;line-height:1.4}.planInfo_k .qudao_count_row[data-v-c0a526a3]{display:flex}.planInfo_k .qudao_count_row div[data-v-c0a526a3]{margin-left:6px}.planInfo .planTable[data-v-c0a526a3]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-c0a526a3]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-c0a526a3]:first-child,.planInfo .planTable th[data-v-c0a526a3]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-c0a526a3]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-c0a526a3]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-c0a526a3]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-c0a526a3]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-c0a526a3]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-c0a526a3]{width:100px}.yellow[data-v-c0a526a3]{color:#ffaa7f}.red[data-v-c0a526a3]{color:#c81e00}.bold-text[data-v-c0a526a3]{font-weight:700} diff --git a/Laravel/public/admin/assets/PlanModel-e16ab905.js b/Laravel/public/dist/assets/PlanModel-05d0dce5.js similarity index 54% rename from Laravel/public/admin/assets/PlanModel-e16ab905.js rename to Laravel/public/dist/assets/PlanModel-05d0dce5.js index b3b8cbd..d20fab2 100644 --- a/Laravel/public/admin/assets/PlanModel-e16ab905.js +++ b/Laravel/public/dist/assets/PlanModel-05d0dce5.js @@ -1 +1 @@ -import{_ as sl,o as dl,r as x,c as il,d,e as r,k as i,f as n,w as u,i as a,F as D,t as L,h as K,$ as Q,j as I,x as g,l as U,g as v,I as rl,E as V,aP as _l,O as pl,J as vl,q as f,v as w,aT as fl,N as ve,aU as ml,aV as cl,aW as gl,aX as yl,aY as bl,aZ as kl,a_ as qe,a$ as xl,b0 as hl}from"./index-af171713.js";const Vl={class:"head"},wl={key:0,style:{display:"flex"},class:"planInfo"},Cl={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},ql=["onClick"],Il={style:{border:"1px solid #efefef",width:"100%"}},El={key:0,class:"planTable"},Tl={style:{"background-color":"#f1f1f1",position:"relative"}},Bl={style:{width:"120px",display:"flex","font-size":"12px"}},Dl={style:{"font-weight":"700"}},Pl=["onMouseover","onMouseleave"],Ll={key:0},Ul={key:0,class:"hoverTools"},Sl=["onClick"],Ml=["onClick"],zl=["onClick"],$l={class:"qudao_count_row"},Al={class:"qudao_title_zong"},Gl={class:"patient_type_row"},Rl={class:"tps"},Nl={key:1,class:"locked_count_row"},Fl={key:1,style:{width:"100%","background-color":"#fff"}},Zl={key:0,class:"type_count"},Ol={key:0,class:"type_count"},Wl={style:{"font-weight":"700"}},Yl={style:{"margin-right":"26px"}},jl={class:"qudao_k_input"},Hl={style:{width:"50px"}},Jl={class:"qudao_k_input",style:{display:"flex"}},Xl={style:{"margin-left":"4px",color:"#ccc"}},Kl={style:{display:"flex"}},Ql={style:{display:"flex"}},et={class:"qudao_k_input"},lt={style:{display:"flex"}},tt={class:"qudao_k_input"},at={style:{"margin-left":"8px"}},ot={style:{display:"flex"}},nt={class:"qudao_k_input"},ut={style:{display:"flex"}},st={class:"qudao_k_input"};const dt={class:"dialog-footer"},it={class:"dialog-footer"},rt={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},_t={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},pt={style:{width:"80px"}},vt={style:{flex:"1"}},ft={style:{color:"#999","font-size":"12px"}},mt={key:1,style:{color:"#999"}},ct={class:"dialog-footer"},gt={__name:"PlanModel",setup(yt){let R=v("1"),_=v(!1),Ie=v(1),Ee=v(15),S=v([]),M=v({}),O=v([]),q=v([]),N=v(0),fe=v([]),Z=v([]),z=v(!1),$=v(!1),C=v(null);const Te=()=>{if(q.value.length===0)return V.error("请至少勾选1条记录"),!1;z.value=!0},te=(t,e)=>{h.value.type=0,Y.value.forEach((s,k)=>{s.id===e&&(M.value=s,s.time_mode==1&&(h.value.type=1))}),N.value=0,q.value=[],h.value.resources_id=e,W()},Be=()=>{N.value=N.value===0?1:0,N.value===0&&(q.value=[]),N.value===1&&O.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&q.value.push(t[s].id)})};let ae=v(null);const De=t=>{ae.value=t},Pe=t=>{ae.value=null},oe=t=>q.value.includes(t),Le=t=>{q.value.indexOf(t)===-1?q.value.push(t):q.value=q.value.filter(s=>s!==t)},Ue=()=>{if(Z.value.length===0)return V.error("请选择日期范围"),!1;fl({dateRange:Z.value,ids:q.value,HolidayEnable:H.value,date_type:h.value.date_type}).then(t=>{t.status?(z.value=!1,V({message:t.msg,type:"success"})):ve.alert(t.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let h=v({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),H=v(1),ne=v("工作日"),A=v(!1);const W=()=>{_.value=!0,ml({page:Ie.value,pageSize:Ee.value,searchInfo:h.value}).then(t=>{if(_.value=!1,t.status){O.value=[],q.value=[];let e=t.data.list;if(fe.value=e,e.length>0){const s=new Set;e.forEach((p,E)=>{if(p.department_resources_name==M.value.department_resources_name){const y=`${p.begin_time.substring(0,5)}-${p.end_time.substring(0,5)}`;s.add(y)}p.resources_id}),Array.from(s).sort().forEach(p=>{const E={time_range:p};ue.value.forEach(y=>{const b=e.find(T=>`${T.begin_time.substring(0,5)}-${T.end_time.substring(0,5)}`===p&&T.weekname===y.label&&T.department_resources_name==M.value.department_resources_name);b?E[y.label]={countsInfo:b.countsInfo,patient_type_label:b.patient_type_label,status:b.status,id:b.id,resources_id:b.resources_id}:E[y.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),O.value.push(E)})}}})};let ue=v([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),Se=v(null);const me=()=>({id:0,type:0,xingqi:[],max_total:0,qudao_total:[],period_id:null,begin_time:"",end_time:"",end_reservation_time:"",time_unit:0,resources_id:null,devices:[],patientType:[],status:1});let o=v(me()),ee=v(0);const se=(t=null)=>{ge.value=[],J.value=!1,A.value=!0,o.value=me(),ee.value=0,Ze(),Oe(),t?(o.value.resources_id=t.resources_id,ye(),setTimeout(()=>{console.log("编辑"),Ye(t.id)},500)):M.value.id&&(o.value.resources_id=M.value.id,ye())},Me=()=>{h.value.date_type==1&&(ne.value="工作日",S.value.length>0&&te(S.value[0].resources_name,S.value[0].resources_id)),h.value.date_type==2&&(ne.value="节假日",h.value.type=0,h.value.resources_id=null,W())},ze=()=>{W()},$e=()=>{let t=0;if(o.value.qudao_total.forEach(e=>{t=t+Number(e.count)}),t!==Number(o.value.max_total))return V.error("各个渠道数量之和与当日总量不符"),!1;ve.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,cl({date_type:h.value.date_type,planInfo:o.value}).then(e=>{_.value=!1,e.status?(A.value=!1,W()):V.error(e.msg)})})},Ae=()=>{if(q.value.length==0)return V.error("请至少勾选1条记录"),!1;ve.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,gl({ids:q.value}).then(t=>{_.value=!1,t.status?(V({message:t.msg,type:"success"}),W()):V.error(t.msg)})})};let Ge=v([]);const Re=()=>{_.value=!0,rl().then(t=>{_.value=!1,t.status?Ge.value=t.data:V.error(t.msg)})};let Ne=v([]);const Fe=()=>{_.value=!0,_l({}).then(t=>{_.value=!1,t.status?Ne.value=t.data.list:V.error(t.msg)})},Ze=()=>{_.value=!0,yl({}).then(t=>{_.value=!1,t.status?(o.value.qudao_total=t.data,o.value.qudao_total.forEach((e,s)=>{o.value.qudao_total[s].count=0})):V.error(t.msg)})},de=t=>{(t===""||t==null||t===0)&&(o.value.max_total=0);let e=0,s=o.value.qudao_total.length;console.log(o.value.qudao_total);for(let k=0;kb.ratio-T.ratio);let E=null;for(let b=0;b0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-p),p<0&&y>0&&(o.value.qudao_total[y-1].count=o.value.qudao_total[y-1].count-p),p<0&&y==0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-p),o.value.qudao_total.sort((b,T)=>T.ratio-b.ratio)}};let ce=v([]);const Oe=()=>{_.value=!0,bl({date_type:h.value.date_type}).then(t=>{_.value=!1,t.status?ce.value=t.data:V.error(t.msg)})},We=()=>{_.value=!0,kl({id:o.value.period_id}).then(t=>{_.value=!1,t.status?(o.value.begin_time=t.data.period_begin_time,o.value.end_time=t.data.period_end_time,o.value.end_reservation_time=t.data.period_deadline):V.error(t.msg)})},Ye=t=>{_.value=!0,qe({id:t}).then(e=>{if(_.value=!1,e.status){o.value=e.data,o.value.max_total=e.data.qudao_total[0].max_total,o.value.xingqi=[e.data.weekname],o.value.devices=e.data.devices;const s=Y.value.find(k=>k.id===o.value.resources_id);ee.value=s&&s.time_mode||0}else V.error(e.msg)})};let Y=v([]);const je=()=>{S.value=[],_.value=!0,pl().then(t=>{_.value=!1,t.status?(Y.value=t.data,Y.value.forEach((e,s)=>{S.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),M.value.department_resources_name==null&&S.value.length>0&&te(S.value[0].resources_name,S.value[0].resources_id)):V.error(t.msg)})};let ge=v([]);const ye=()=>{o.value.devices=[];const t=Y.value.find(e=>e.id===o.value.resources_id);ee.value=t&&t.time_mode||0,_.value=!0,xl({resource_id:o.value.resources_id}).then(e=>{_.value=!1,e.status?(ge.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):V.error(e.msg)})},He=()=>{vl().then(t=>{if(t.status){let b=t.data.datetime.substring(0,10);var e=new Date(b),s=e.getMonth(),k=(s+1)%12,p=e.getFullYear()+((s+1)/12|0),E=e.getDate(),y=new Date(p,k,E);y.getMonth()!==k&&(y=new Date(p,k,0));let T=y.toISOString().split("T")[0];Z.value=[b,T]}})};let J=v(!1);const Je=t=>{t?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},Xe=t=>{R.value=t,de(0),be(0)},Ke=t=>{q.value=[],t.forEach((e,s)=>{q.value.push(e.id)}),console.log(q.value)},be=t=>{if(R.value==2){if(o.value.begin_time==""||o.value.end_time=="")return V.error("请先设置时段"),o.value.max_total=0,!1;Qe(t)}},Qe=t=>{let e=el(o.value.begin_time,o.value.end_time,t);o.value.max_total=e,de(e)};function el(t,e,s){function k(T){const[ie,re]=T.split(":").map(Number);return ie*60+re}const p=k(t),y=k(e)-p;return Math.floor(y/s)}const ke=t=>!t||!Array.isArray(t)?0:t.reduce((e,s)=>e+(Number(s.locked_count)||0),0),ll=t=>{$.value=!0,_.value=!0,qe({id:t.id}).then(e=>{if(_.value=!1,e.status){C.value=e.data;const s=Y.value.find(p=>p.id===t.resources_id);C.value.resources_name=s?s.department_resources_name:"";const k=t.time_range||"";C.value.time_range=k,C.value.qudao_total&&C.value.qudao_total.forEach(p=>{p.locked_count===null&&(p.locked_count=0)})}else V.error(e.msg)})},tl=()=>{let t=[],e=!1;C.value.qudao_total.forEach(s=>{if(!e){if(Number(s.locked_count)<0){V.error(`${s.name} 的占位数量不能为负数`),e=!0;return}if(Number(s.locked_count)>s.count){V.error(`${s.name} 的占位数量不能超过可用数量,最多${s.count}个`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}}),!e&&(_.value=!0,hl({roster_id:C.value.id,locked_counts:t}).then(s=>{_.value=!1,s.status?($.value=!1,V.success("占位设置保存成功"),W()):V.error(s.msg)}))};return dl(()=>{h.value.date_type=1,Fe(),je(),Re(),He()}),(t,e)=>{const s=x("el-button"),k=x("el-row"),p=x("el-radio-button"),E=x("el-radio-group"),y=x("Select"),b=x("el-icon"),T=x("Edit"),ie=x("Lock"),re=x("el-empty"),P=x("el-table-column"),xe=x("el-tag"),al=x("el-table"),j=x("el-checkbox"),he=x("el-checkbox-group"),B=x("el-form-item"),le=x("el-radio"),F=x("el-input"),ol=x("el-option"),nl=x("el-select"),Ve=x("el-switch"),_e=x("el-form"),pe=x("el-dialog"),ul=x("el-date-picker"),X=il("loading");return d(),r("div",null,[i("div",Vl,[n(k,{style:{display:"flex","justify-content":"end"}},{default:u(()=>[n(s,{type:"primary",onClick:e[0]||(e[0]=l=>se()),style:{"margin-left":"10px"}},{default:u(()=>[...e[31]||(e[31]=[f("添加",-1)])]),_:1}),n(s,{type:"danger",onClick:e[1]||(e[1]=l=>Ae()),style:{"margin-left":"10px"}},{default:u(()=>[...e[32]||(e[32]=[f("删除",-1)])]),_:1}),n(s,{type:"success",onClick:e[2]||(e[2]=l=>Te()),style:{"margin-left":"20px"}},{default:u(()=>[...e[33]||(e[33]=[f("生成选中的计划",-1)])]),_:1})]),_:1})]),n(k,null,{default:u(()=>[n(E,{style:{"margin-bottom":"8px"},modelValue:a(h).date_type,"onUpdate:modelValue":e[3]||(e[3]=l=>a(h).date_type=l),onChange:e[4]||(e[4]=l=>Me())},{default:u(()=>[n(p,{label:1},{default:u(()=>[...e[34]||(e[34]=[f("工作日",-1)])]),_:1}),n(p,{label:2},{default:u(()=>[...e[35]||(e[35]=[f("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),a(M).time_mode==1&&a(h).date_type==1?(d(),I(E,{key:0,style:{"margin-bottom":"8px","margin-left":"20px"},"text-color":"#fff",fill:"#62bf68",size:"small",modelValue:a(h).type,"onUpdate:modelValue":e[5]||(e[5]=l=>a(h).type=l),onChange:e[6]||(e[6]=l=>ze())},{default:u(()=>[n(p,{label:1},{default:u(()=>[...e[36]||(e[36]=[f("夏令时",-1)])]),_:1}),n(p,{label:2},{default:u(()=>[...e[37]||(e[37]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):g("",!0)]),_:1}),a(h).date_type==1?(d(),r("div",wl,[i("div",Cl,[(d(!0),r(D,null,L(a(S),(l,c)=>(d(),r("div",{key:c,onClick:m=>te(l.resources_name,l.resources_id),class:Q({"zhenshiButton zhenshiButtonActive":l.resources_name===a(M).department_resources_name,zhenshiButton:l.resources_name!==a(M).department_resources_name})},w(l.resources_name),11,ql))),128))]),K((d(),r("div",Il,[a(O).length>0?(d(),r("table",El,[i("tr",Tl,[i("td",Bl,[e[38]||(e[38]=i("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),i("div",{class:Q({"plan_checkAllbox plan_checkAllbox_active":a(N)===1,"plan_checkAllbox ":a(N)===0}),onClick:e[7]||(e[7]=l=>Be())},[a(N)===1?(d(),I(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],2)]),(d(!0),r(D,null,L(a(ue),(l,c)=>(d(),r("td",Dl,w(l.label),1))),256))]),(d(!0),r(D,null,L(a(O),(l,c)=>(d(),r("tr",{key:c},[(d(!0),r(D,null,L(l,(m,we)=>(d(),r("td",{key:we,onMouseover:G=>De(m.id),onMouseleave:G=>Pe(m.id)},[we=="time_range"?(d(),r("span",Ll,w(m),1)):g("",!0),m.countsInfo&&m.countsInfo.length>0?(d(),r("div",{key:1,class:Q({planInfo_k:m.status==1,"planInfo_k planInfo_k_disabled":m.status==0})},[a(ae)==m.id?(d(),r("div",Ul,[i("div",{class:"icon_k",onClick:G=>se(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(T)]),_:1})],8,Sl),i("div",{class:"icon_k",onClick:G=>ll(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(ie)]),_:1})],8,Ml)])):g("",!0),i("div",{class:Q({"plan_checkbox plan_checkbox_active":oe(m.id),plan_checkbox:!oe(m.id)}),onClick:G=>Le(m.id)},[oe(m.id)?(d(),I(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],10,zl),i("div",$l,[i("div",Al,[e[39]||(e[39]=i("span",null,"总",-1)),f(w(m.countsInfo[0].max_total),1)]),(d(!0),r(D,null,L(m.countsInfo,(G,Ce)=>(d(),r("div",{key:Ce},[i("span",null,w(G.jiancheng),1),i("span",null,w(G.count),1)]))),128))]),i("div",Gl,[(d(!0),r(D,null,L(m.patient_type_label,(G,Ce)=>(d(),r("div",Rl,w(G),1))),256))]),ke(m.countsInfo)>0?(d(),r("div",Nl," 占:"+w(ke(m.countsInfo)),1)):g("",!0)],2)):g("",!0)],40,Pl))),128))]))),128))])):g("",!0),a(O).length==0?(d(),r("div",Fl,[n(re,{description:"暂无"})])):g("",!0)])),[[X,a(_)]])])):g("",!0),a(h).date_type==2?K((d(),I(al,{key:1,data:a(fe),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Ke},{default:u(()=>[n(P,{type:"selection",width:"55"}),n(P,{prop:"id",label:"Id",width:"70"}),a(h).date_type==1?(d(),I(P,{key:0,prop:"weekname",label:"星期",width:"80"})):g("",!0),g("",!0),n(P,{prop:"department_resources_name",label:"资源",width:"150"}),n(P,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(l=>[l.row.devices.length>0?(d(),r("div",Zl,[(d(!0),r(D,null,L(l.row.devices,(c,m)=>(d(),r("div",{key:m,class:Q(c.status==1&&c.is_del==0?"":"hongzi")},w(c.device_name),3))),128))])):g("",!0)]),_:1}),n(P,{prop:"period_name",label:"时段",width:"100"}),n(P,{prop:"begin_time",label:"开始时间",width:"100"}),n(P,{prop:"end_time",label:"结束时间",width:"100"}),n(P,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(l=>[l.row.countsInfo.length>0?(d(),r("div",Ol,[i("div",Wl,"最大数量:"+w(l.row.countsInfo[0].max_total),1),(d(!0),r(D,null,L(l.row.countsInfo,(c,m)=>(d(),r("div",{key:m},w(c.name)+":"+w(c.count),1))),128))])):g("",!0)]),_:1}),n(P,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(P,{prop:"roster_status",label:"状态",width:"80"},{default:u(l=>[l.row.status===1?(d(),I(xe,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[40]||(e[40]=[f("正常",-1)])]),_:1})):g("",!0),l.row.status===0?(d(),I(xe,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[41]||(e[41]=[f("关闭",-1)])]),_:1})):g("",!0)]),_:1}),n(P,{prop:"",label:"操作",width:"80"},{default:u(l=>[n(s,{type:"primary",onClick:c=>se(l.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[42]||(e[42]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,a(_)]]):g("",!0),n(pe,{modelValue:a(A),"onUpdate:modelValue":e[24]||(e[24]=l=>U(A)?A.value=l:A=l),title:"时间段("+a(ne)+")",width:"45%"},{footer:u(()=>[i("span",dt,[n(s,{onClick:e[23]||(e[23]=l=>U(A)?A.value=!1:A=!1)},{default:u(()=>[...e[58]||(e[58]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:$e},{default:u(()=>[...e[59]||(e[59]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),I(_e,{ref_key:"PlanInfoForm",ref:Se,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(h).date_type==1?(d(),I(B,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(j,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(J),"onUpdate:modelValue":e[8]||(e[8]=l=>U(J)?J.value=l:J=l),onChange:Je,label:"全选"},{default:u(()=>[...e[43]||(e[43]=[i("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(he,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[9]||(e[9]=l=>a(o).xingqi=l)},{default:u(()=>[(d(!0),r(D,null,L(a(ue),(l,c)=>(d(),I(j,{disabled:a(o).id!=0,key:c,label:l.label},{default:u(()=>[f(w(l.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):g("",!0),n(B,{label:"渠道名额:"},{default:u(()=>[i("div",Yl,[i("div",null,[n(E,{modelValue:a(R),"onUpdate:modelValue":e[10]||(e[10]=l=>U(R)?R.value=l:R=l),onChange:Xe},{default:u(()=>[n(le,{label:"1"},{default:u(()=>[...e[44]||(e[44]=[f("根据总量",-1)])]),_:1}),n(le,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[45]||(e[45]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),i("div",jl,[a(R)==1?(d(),I(F,{key:0,style:{width:"220px"},onInput:de,type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[11]||(e[11]=l=>a(o).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):g("",!0),a(R)==2?(d(),I(F,{key:1,style:{width:"220px"},onInput:be,type:"number",modelValue:a(o).time_long,"onUpdate:modelValue":e[12]||(e[12]=l=>a(o).time_long=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):g("",!0)]),e[46]||(e[46]=i("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),i("div",null,[(d(!0),r(D,null,L(a(o).qudao_total,(l,c)=>(d(),r("div",{class:"qudao_k",key:c},[i("div",Hl,w(l.name),1),i("div",Jl,[n(F,{type:"number",modelValue:a(o).qudao_total[c].count,"onUpdate:modelValue":m=>a(o).qudao_total[c].count=m,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"]),i("div",Xl,w(l.ratio)+"%",1)])]))),128))])]),_:1}),n(B,{label:"时间设置:"},{default:u(()=>[i("div",null,[e[51]||(e[51]=f("选择时段: ",-1)),n(nl,{filterable:!0,clearable:"",modelValue:a(o).period_id,"onUpdate:modelValue":e[13]||(e[13]=l=>a(o).period_id=l),onChange:We,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(d(!0),r(D,null,L(a(ce),(l,c)=>(d(),I(ol,{key:c,label:l.period_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",Kl,[i("div",null,[i("div",Ql,[e[47]||(e[47]=i("div",{style:{width:"70px"}},"开始时间:",-1)),i("div",et,[n(F,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[14]||(e[14]=l=>a(o).begin_time=l),placeholder:"开始时间"},null,8,["modelValue"])])]),i("div",lt,[e[48]||(e[48]=i("div",{style:{width:"70px"}},"结束时间:",-1)),i("div",tt,[n(F,{modelValue:a(o).end_time,"onUpdate:modelValue":e[15]||(e[15]=l=>a(o).end_time=l),placeholder:"结束时间"},null,8,["modelValue"])])])]),i("div",at,[i("div",ot,[e[49]||(e[49]=i("div",{style:{width:"90px"}},"停止预约时间:",-1)),i("div",nt,[n(F,{modelValue:a(o).end_reservation_time,"onUpdate:modelValue":e[16]||(e[16]=l=>a(o).end_reservation_time=l),placeholder:"停止预约时间"},null,8,["modelValue"])])]),i("div",ut,[e[50]||(e[50]=i("div",{style:{width:"90px"}},"可用时间长度:",-1)),i("div",st,[n(F,{modelValue:a(o).time_unit,"onUpdate:modelValue":e[17]||(e[17]=l=>a(o).time_unit=l),placeholder:"可用时间长度"},null,8,["modelValue"])])])])])])]),_:1}),g("",!0),a(ee)===1&&a(h).date_type===1?(d(),I(B,{key:2,label:"时令:"},{default:u(()=>[n(E,{modelValue:a(o).type,"onUpdate:modelValue":e[19]||(e[19]=l=>a(o).type=l)},{default:u(()=>[n(le,{label:1},{default:u(()=>[...e[52]||(e[52]=[i("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(le,{label:2},{default:u(()=>[...e[53]||(e[53]=[i("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):g("",!0),g("",!0),n(B,{label:"病人类型:"},{default:u(()=>[n(he,{modelValue:a(o).patientType,"onUpdate:modelValue":e[21]||(e[21]=l=>a(o).patientType=l)},{default:u(()=>[n(j,{label:"0"},{default:u(()=>[...e[54]||(e[54]=[f("住院",-1)])]),_:1}),n(j,{label:"1"},{default:u(()=>[...e[55]||(e[55]=[f("门诊",-1)])]),_:1}),n(j,{label:"2"},{default:u(()=>[...e[56]||(e[56]=[f("急诊",-1)])]),_:1}),n(j,{label:"3"},{default:u(()=>[...e[57]||(e[57]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(B,{label:"状态:"},{default:u(()=>[n(Ve,{modelValue:a(o).status,"onUpdate:modelValue":e[22]||(e[22]=l=>a(o).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[X,a(_)]])]),_:1},8,["modelValue","title"]),n(pe,{modelValue:a(z),"onUpdate:modelValue":e[28]||(e[28]=l=>U(z)?z.value=l:z=l),title:"生成计划",width:"50%"},{footer:u(()=>[i("span",it,[n(s,{onClick:e[27]||(e[27]=l=>U(z)?z.value=!1:z=!1)},{default:u(()=>[...e[60]||(e[60]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:Ue},{default:u(()=>[...e[61]||(e[61]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),I(_e,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(B,{label:"选择时间范围:"},{default:u(()=>[n(ul,{modelValue:a(Z),"onUpdate:modelValue":e[25]||(e[25]=l=>U(Z)?Z.value=l:Z=l),type:"daterange","range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(B,{label:"节假日生成:"},{default:u(()=>[n(Ve,{modelValue:a(H),"onUpdate:modelValue":e[26]||(e[26]=l=>U(H)?H.value=l:H=l),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[X,a(_)]])]),_:1},8,["modelValue"]),n(pe,{modelValue:a($),"onUpdate:modelValue":e[30]||(e[30]=l=>U($)?$.value=l:$=l),title:"占位设置",width:"40%"},{footer:u(()=>[i("span",ct,[n(s,{onClick:e[29]||(e[29]=l=>U($)?$.value=!1:$=!1)},{default:u(()=>[...e[62]||(e[62]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:tl},{default:u(()=>[...e[63]||(e[63]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),r("div",null,[a(C)?(d(),I(_e,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:u(()=>[n(B,{label:"模板ID:"},{default:u(()=>[f(w(a(C).id),1)]),_:1}),n(B,{label:"资源:"},{default:u(()=>[f(w(a(C).resources_name),1)]),_:1}),n(B,{label:"时间段:"},{default:u(()=>[f(w(a(C).begin_time?a(C).begin_time.substring(0,5):"")+" - "+w(a(C).end_time?a(C).end_time.substring(0,5):""),1)]),_:1}),n(B,{label:"星期:"},{default:u(()=>[f(w(a(C).weekname),1)]),_:1}),n(B,{label:"渠道占位:"},{default:u(()=>[i("div",rt,[a(C).qudao_total&&a(C).qudao_total.length>0?(d(!0),r(D,{key:0},L(a(C).qudao_total,(l,c)=>(d(),r(D,{key:c},[l&&l.count!==0?(d(),r("div",_t,[i("div",pt,w(l.name),1),i("div",vt,[n(F,{type:"number",modelValue:a(C).qudao_total[c].locked_count,"onUpdate:modelValue":m=>a(C).qudao_total[c].locked_count=m,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),i("div",ft," 可用: "+w(l.count),1)])):g("",!0)],64))),128)):(d(),r("div",mt," 暂无渠道数据 "))])]),_:1})]),_:1})):g("",!0)])),[[X,a(_)]])]),_:1},8,["modelValue"])])}}},kt=sl(gt,[["__scopeId","data-v-04dd4e4d"]]);export{kt as default}; +import{_ as sl,o as dl,r as x,c as il,d,e as r,k as i,f as n,w as u,i as a,F as D,t as L,h as K,$ as Q,j as I,x as g,l as U,g as v,I as rl,E as V,aP as _l,O as pl,J as vl,q as f,v as w,aT as fl,N as ve,aU as ml,aV as cl,aW as gl,aX as yl,aY as bl,aZ as kl,a_ as qe,a$ as xl,b0 as hl}from"./index-e65958bd.js";const Vl={class:"head"},wl={key:0,style:{display:"flex"},class:"planInfo"},Cl={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},ql=["onClick"],Il={style:{border:"1px solid #efefef",width:"100%"}},El={key:0,class:"planTable"},Tl={style:{"background-color":"#f1f1f1",position:"relative"}},Bl={style:{width:"120px",display:"flex","font-size":"12px"}},Dl={style:{"font-weight":"700"}},Pl=["onMouseover","onMouseleave"],Ll={key:0},Ul={key:0,class:"hoverTools"},Sl=["onClick"],Ml=["onClick"],zl=["onClick"],$l={class:"qudao_count_row"},Al={class:"qudao_title_zong"},Gl={class:"patient_type_row"},Rl={class:"tps"},Nl={key:1,class:"locked_count_row"},Fl={key:1,style:{width:"100%","background-color":"#fff"}},Zl={key:0,class:"type_count"},Ol={key:0,class:"type_count"},Wl={style:{"font-weight":"700"}},Yl={style:{"margin-right":"26px"}},jl={class:"qudao_k_input"},Hl={style:{width:"50px"}},Jl={class:"qudao_k_input",style:{display:"flex"}},Xl={style:{"margin-left":"4px",color:"#ccc"}},Kl={style:{display:"flex"}},Ql={style:{display:"flex"}},et={class:"qudao_k_input"},lt={style:{display:"flex"}},tt={class:"qudao_k_input"},at={style:{"margin-left":"8px"}},ot={style:{display:"flex"}},nt={class:"qudao_k_input"},ut={style:{display:"flex"}},st={class:"qudao_k_input"};const dt={class:"dialog-footer"},it={class:"dialog-footer"},rt={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},_t={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},pt={style:{width:"80px"}},vt={style:{flex:"1"}},ft={style:{color:"#999","font-size":"12px"}},mt={key:1,style:{color:"#999"}},ct={class:"dialog-footer"},gt={__name:"PlanModel",setup(yt){let R=v("1"),_=v(!1),Ie=v(1),Ee=v(15),S=v([]),M=v({}),O=v([]),q=v([]),N=v(0),fe=v([]),Z=v([]),z=v(!1),$=v(!1),C=v(null);const Te=()=>{if(q.value.length===0)return V.error("请至少勾选1条记录"),!1;z.value=!0},te=(t,e)=>{h.value.type=0,Y.value.forEach((s,k)=>{s.id===e&&(M.value=s,s.time_mode==1&&(h.value.type=1))}),N.value=0,q.value=[],h.value.resources_id=e,W()},Be=()=>{N.value=N.value===0?1:0,N.value===0&&(q.value=[]),N.value===1&&O.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&q.value.push(t[s].id)})};let ae=v(null);const De=t=>{ae.value=t},Pe=t=>{ae.value=null},oe=t=>q.value.includes(t),Le=t=>{q.value.indexOf(t)===-1?q.value.push(t):q.value=q.value.filter(s=>s!==t)},Ue=()=>{if(Z.value.length===0)return V.error("请选择日期范围"),!1;fl({dateRange:Z.value,ids:q.value,HolidayEnable:H.value,date_type:h.value.date_type}).then(t=>{t.status?(z.value=!1,V({message:t.msg,type:"success"})):ve.alert(t.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let h=v({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),H=v(1),ne=v("工作日"),A=v(!1);const W=()=>{_.value=!0,ml({page:Ie.value,pageSize:Ee.value,searchInfo:h.value}).then(t=>{if(_.value=!1,t.status){O.value=[],q.value=[];let e=t.data.list;if(fe.value=e,e.length>0){const s=new Set;e.forEach((p,E)=>{if(p.department_resources_name==M.value.department_resources_name){const y=`${p.begin_time.substring(0,5)}-${p.end_time.substring(0,5)}`;s.add(y)}p.resources_id}),Array.from(s).sort().forEach(p=>{const E={time_range:p};ue.value.forEach(y=>{const b=e.find(T=>`${T.begin_time.substring(0,5)}-${T.end_time.substring(0,5)}`===p&&T.weekname===y.label&&T.department_resources_name==M.value.department_resources_name);b?E[y.label]={countsInfo:b.countsInfo,patient_type_label:b.patient_type_label,status:b.status,id:b.id,resources_id:b.resources_id}:E[y.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),O.value.push(E)})}}})};let ue=v([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),Se=v(null);const me=()=>({id:0,type:0,xingqi:[],max_total:0,qudao_total:[],period_id:null,begin_time:"",end_time:"",end_reservation_time:"",time_unit:0,resources_id:null,devices:[],patientType:[],status:1});let o=v(me()),ee=v(0);const se=(t=null)=>{ge.value=[],J.value=!1,A.value=!0,o.value=me(),ee.value=0,Ze(),Oe(),t?(o.value.resources_id=t.resources_id,ye(),setTimeout(()=>{console.log("编辑"),Ye(t.id)},500)):M.value.id&&(o.value.resources_id=M.value.id,ye())},Me=()=>{h.value.date_type==1&&(ne.value="工作日",S.value.length>0&&te(S.value[0].resources_name,S.value[0].resources_id)),h.value.date_type==2&&(ne.value="节假日",h.value.type=0,h.value.resources_id=null,W())},ze=()=>{W()},$e=()=>{let t=0;if(o.value.qudao_total.forEach(e=>{t=t+Number(e.count)}),t!==Number(o.value.max_total))return V.error("各个渠道数量之和与当日总量不符"),!1;ve.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,cl({date_type:h.value.date_type,planInfo:o.value}).then(e=>{_.value=!1,e.status?(A.value=!1,W()):V.error(e.msg)})})},Ae=()=>{if(q.value.length==0)return V.error("请至少勾选1条记录"),!1;ve.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,gl({ids:q.value}).then(t=>{_.value=!1,t.status?(V({message:t.msg,type:"success"}),W()):V.error(t.msg)})})};let Ge=v([]);const Re=()=>{_.value=!0,rl().then(t=>{_.value=!1,t.status?Ge.value=t.data:V.error(t.msg)})};let Ne=v([]);const Fe=()=>{_.value=!0,_l({}).then(t=>{_.value=!1,t.status?Ne.value=t.data.list:V.error(t.msg)})},Ze=()=>{_.value=!0,yl({}).then(t=>{_.value=!1,t.status?(o.value.qudao_total=t.data,o.value.qudao_total.forEach((e,s)=>{o.value.qudao_total[s].count=0})):V.error(t.msg)})},de=t=>{(t===""||t==null||t===0)&&(o.value.max_total=0);let e=0,s=o.value.qudao_total.length;console.log(o.value.qudao_total);for(let k=0;kb.ratio-T.ratio);let E=null;for(let b=0;b0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-p),p<0&&y>0&&(o.value.qudao_total[y-1].count=o.value.qudao_total[y-1].count-p),p<0&&y==0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-p),o.value.qudao_total.sort((b,T)=>T.ratio-b.ratio)}};let ce=v([]);const Oe=()=>{_.value=!0,bl({date_type:h.value.date_type}).then(t=>{_.value=!1,t.status?ce.value=t.data:V.error(t.msg)})},We=()=>{_.value=!0,kl({id:o.value.period_id}).then(t=>{_.value=!1,t.status?(o.value.begin_time=t.data.period_begin_time,o.value.end_time=t.data.period_end_time,o.value.end_reservation_time=t.data.period_deadline):V.error(t.msg)})},Ye=t=>{_.value=!0,qe({id:t}).then(e=>{if(_.value=!1,e.status){o.value=e.data,o.value.max_total=e.data.qudao_total[0].max_total,o.value.xingqi=[e.data.weekname],o.value.devices=e.data.devices;const s=Y.value.find(k=>k.id===o.value.resources_id);ee.value=s&&s.time_mode||0}else V.error(e.msg)})};let Y=v([]);const je=()=>{S.value=[],_.value=!0,pl().then(t=>{_.value=!1,t.status?(Y.value=t.data,Y.value.forEach((e,s)=>{S.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),M.value.department_resources_name==null&&S.value.length>0&&te(S.value[0].resources_name,S.value[0].resources_id)):V.error(t.msg)})};let ge=v([]);const ye=()=>{o.value.devices=[];const t=Y.value.find(e=>e.id===o.value.resources_id);ee.value=t&&t.time_mode||0,_.value=!0,xl({resource_id:o.value.resources_id}).then(e=>{_.value=!1,e.status?(ge.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):V.error(e.msg)})},He=()=>{vl().then(t=>{if(t.status){let b=t.data.datetime.substring(0,10);var e=new Date(b),s=e.getMonth(),k=(s+1)%12,p=e.getFullYear()+((s+1)/12|0),E=e.getDate(),y=new Date(p,k,E);y.getMonth()!==k&&(y=new Date(p,k,0));let T=y.toISOString().split("T")[0];Z.value=[b,T]}})};let J=v(!1);const Je=t=>{t?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},Xe=t=>{R.value=t,de(0),be(0)},Ke=t=>{q.value=[],t.forEach((e,s)=>{q.value.push(e.id)}),console.log(q.value)},be=t=>{if(R.value==2){if(o.value.begin_time==""||o.value.end_time=="")return V.error("请先设置时段"),o.value.max_total=0,!1;Qe(t)}},Qe=t=>{let e=el(o.value.begin_time,o.value.end_time,t);o.value.max_total=e,de(e)};function el(t,e,s){function k(T){const[ie,re]=T.split(":").map(Number);return ie*60+re}const p=k(t),y=k(e)-p;return Math.floor(y/s)}const ke=t=>!t||!Array.isArray(t)?0:t.reduce((e,s)=>e+(Number(s.locked_count)||0),0),ll=t=>{$.value=!0,_.value=!0,qe({id:t.id}).then(e=>{if(_.value=!1,e.status){C.value=e.data;const s=Y.value.find(p=>p.id===t.resources_id);C.value.resources_name=s?s.department_resources_name:"";const k=t.time_range||"";C.value.time_range=k,C.value.qudao_total&&C.value.qudao_total.forEach(p=>{p.locked_count===null&&(p.locked_count=0)})}else V.error(e.msg)})},tl=()=>{let t=[],e=!1;C.value.qudao_total.forEach(s=>{if(!e){if(Number(s.locked_count)<0){V.error(`${s.name} 的占位数量不能为负数`),e=!0;return}if(Number(s.locked_count)>s.count){V.error(`${s.name} 的占位数量不能超过可用数量,最多${s.count}个`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}}),!e&&(_.value=!0,hl({roster_id:C.value.id,locked_counts:t}).then(s=>{_.value=!1,s.status?($.value=!1,V.success("占位设置保存成功"),W()):V.error(s.msg)}))};return dl(()=>{h.value.date_type=1,Fe(),je(),Re(),He()}),(t,e)=>{const s=x("el-button"),k=x("el-row"),p=x("el-radio-button"),E=x("el-radio-group"),y=x("Select"),b=x("el-icon"),T=x("Edit"),ie=x("Lock"),re=x("el-empty"),P=x("el-table-column"),xe=x("el-tag"),al=x("el-table"),j=x("el-checkbox"),he=x("el-checkbox-group"),B=x("el-form-item"),le=x("el-radio"),F=x("el-input"),ol=x("el-option"),nl=x("el-select"),Ve=x("el-switch"),_e=x("el-form"),pe=x("el-dialog"),ul=x("el-date-picker"),X=il("loading");return d(),r("div",null,[i("div",Vl,[n(k,{style:{display:"flex","justify-content":"end"}},{default:u(()=>[n(s,{type:"primary",onClick:e[0]||(e[0]=l=>se()),style:{"margin-left":"10px"}},{default:u(()=>[...e[31]||(e[31]=[f("添加",-1)])]),_:1}),n(s,{type:"danger",onClick:e[1]||(e[1]=l=>Ae()),style:{"margin-left":"10px"}},{default:u(()=>[...e[32]||(e[32]=[f("删除",-1)])]),_:1}),n(s,{type:"success",onClick:e[2]||(e[2]=l=>Te()),style:{"margin-left":"20px"}},{default:u(()=>[...e[33]||(e[33]=[f("生成选中的计划",-1)])]),_:1})]),_:1})]),n(k,null,{default:u(()=>[n(E,{style:{"margin-bottom":"8px"},modelValue:a(h).date_type,"onUpdate:modelValue":e[3]||(e[3]=l=>a(h).date_type=l),onChange:e[4]||(e[4]=l=>Me())},{default:u(()=>[n(p,{label:1},{default:u(()=>[...e[34]||(e[34]=[f("工作日",-1)])]),_:1}),n(p,{label:2},{default:u(()=>[...e[35]||(e[35]=[f("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),a(M).time_mode==1&&a(h).date_type==1?(d(),I(E,{key:0,style:{"margin-bottom":"8px","margin-left":"20px"},"text-color":"#fff",fill:"#62bf68",size:"small",modelValue:a(h).type,"onUpdate:modelValue":e[5]||(e[5]=l=>a(h).type=l),onChange:e[6]||(e[6]=l=>ze())},{default:u(()=>[n(p,{label:1},{default:u(()=>[...e[36]||(e[36]=[f("夏令时",-1)])]),_:1}),n(p,{label:2},{default:u(()=>[...e[37]||(e[37]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):g("",!0)]),_:1}),a(h).date_type==1?(d(),r("div",wl,[i("div",Cl,[(d(!0),r(D,null,L(a(S),(l,c)=>(d(),r("div",{key:c,onClick:m=>te(l.resources_name,l.resources_id),class:Q({"zhenshiButton zhenshiButtonActive":l.resources_name===a(M).department_resources_name,zhenshiButton:l.resources_name!==a(M).department_resources_name})},w(l.resources_name),11,ql))),128))]),K((d(),r("div",Il,[a(O).length>0?(d(),r("table",El,[i("tr",Tl,[i("td",Bl,[e[38]||(e[38]=i("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),i("div",{class:Q({"plan_checkAllbox plan_checkAllbox_active":a(N)===1,"plan_checkAllbox ":a(N)===0}),onClick:e[7]||(e[7]=l=>Be())},[a(N)===1?(d(),I(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],2)]),(d(!0),r(D,null,L(a(ue),(l,c)=>(d(),r("td",Dl,w(l.label),1))),256))]),(d(!0),r(D,null,L(a(O),(l,c)=>(d(),r("tr",{key:c},[(d(!0),r(D,null,L(l,(m,we)=>(d(),r("td",{key:we,onMouseover:G=>De(m.id),onMouseleave:G=>Pe(m.id)},[we=="time_range"?(d(),r("span",Ll,w(m),1)):g("",!0),m.countsInfo&&m.countsInfo.length>0?(d(),r("div",{key:1,class:Q({planInfo_k:m.status==1,"planInfo_k planInfo_k_disabled":m.status==0})},[a(ae)==m.id?(d(),r("div",Ul,[i("div",{class:"icon_k",onClick:G=>se(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(T)]),_:1}),e[39]||(e[39]=i("span",{class:"icon_text"},"编辑",-1))],8,Sl),i("div",{class:"icon_k",onClick:G=>ll(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(ie)]),_:1}),e[40]||(e[40]=i("span",{class:"icon_text"},"占位",-1))],8,Ml)])):g("",!0),i("div",{class:Q({"plan_checkbox plan_checkbox_active":oe(m.id),plan_checkbox:!oe(m.id)}),onClick:G=>Le(m.id)},[oe(m.id)?(d(),I(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],10,zl),i("div",$l,[i("div",Al,[e[41]||(e[41]=i("span",null,"总",-1)),f(w(m.countsInfo[0].max_total),1)]),(d(!0),r(D,null,L(m.countsInfo,(G,Ce)=>(d(),r("div",{key:Ce},[i("span",null,w(G.jiancheng),1),i("span",null,w(G.count),1)]))),128))]),i("div",Gl,[(d(!0),r(D,null,L(m.patient_type_label,(G,Ce)=>(d(),r("div",Rl,w(G),1))),256))]),ke(m.countsInfo)>0?(d(),r("div",Nl," 占:"+w(ke(m.countsInfo)),1)):g("",!0)],2)):g("",!0)],40,Pl))),128))]))),128))])):g("",!0),a(O).length==0?(d(),r("div",Fl,[n(re,{description:"暂无"})])):g("",!0)])),[[X,a(_)]])])):g("",!0),a(h).date_type==2?K((d(),I(al,{key:1,data:a(fe),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Ke},{default:u(()=>[n(P,{type:"selection",width:"55"}),n(P,{prop:"id",label:"Id",width:"70"}),a(h).date_type==1?(d(),I(P,{key:0,prop:"weekname",label:"星期",width:"80"})):g("",!0),g("",!0),n(P,{prop:"department_resources_name",label:"资源",width:"150"}),n(P,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(l=>[l.row.devices.length>0?(d(),r("div",Zl,[(d(!0),r(D,null,L(l.row.devices,(c,m)=>(d(),r("div",{key:m,class:Q(c.status==1&&c.is_del==0?"":"hongzi")},w(c.device_name),3))),128))])):g("",!0)]),_:1}),n(P,{prop:"period_name",label:"时段",width:"100"}),n(P,{prop:"begin_time",label:"开始时间",width:"100"}),n(P,{prop:"end_time",label:"结束时间",width:"100"}),n(P,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(l=>[l.row.countsInfo.length>0?(d(),r("div",Ol,[i("div",Wl,"最大数量:"+w(l.row.countsInfo[0].max_total),1),(d(!0),r(D,null,L(l.row.countsInfo,(c,m)=>(d(),r("div",{key:m},w(c.name)+":"+w(c.count),1))),128))])):g("",!0)]),_:1}),n(P,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(P,{prop:"roster_status",label:"状态",width:"80"},{default:u(l=>[l.row.status===1?(d(),I(xe,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[42]||(e[42]=[f("正常",-1)])]),_:1})):g("",!0),l.row.status===0?(d(),I(xe,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[43]||(e[43]=[f("关闭",-1)])]),_:1})):g("",!0)]),_:1}),n(P,{prop:"",label:"操作",width:"80"},{default:u(l=>[n(s,{type:"primary",onClick:c=>se(l.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[44]||(e[44]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,a(_)]]):g("",!0),n(pe,{modelValue:a(A),"onUpdate:modelValue":e[24]||(e[24]=l=>U(A)?A.value=l:A=l),title:"时间段("+a(ne)+")",width:"45%"},{footer:u(()=>[i("span",dt,[n(s,{onClick:e[23]||(e[23]=l=>U(A)?A.value=!1:A=!1)},{default:u(()=>[...e[60]||(e[60]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:$e},{default:u(()=>[...e[61]||(e[61]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),I(_e,{ref_key:"PlanInfoForm",ref:Se,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(h).date_type==1?(d(),I(B,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(j,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(J),"onUpdate:modelValue":e[8]||(e[8]=l=>U(J)?J.value=l:J=l),onChange:Je,label:"全选"},{default:u(()=>[...e[45]||(e[45]=[i("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(he,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[9]||(e[9]=l=>a(o).xingqi=l)},{default:u(()=>[(d(!0),r(D,null,L(a(ue),(l,c)=>(d(),I(j,{disabled:a(o).id!=0,key:c,label:l.label},{default:u(()=>[f(w(l.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):g("",!0),n(B,{label:"渠道名额:"},{default:u(()=>[i("div",Yl,[i("div",null,[n(E,{modelValue:a(R),"onUpdate:modelValue":e[10]||(e[10]=l=>U(R)?R.value=l:R=l),onChange:Xe},{default:u(()=>[n(le,{label:"1"},{default:u(()=>[...e[46]||(e[46]=[f("根据总量",-1)])]),_:1}),n(le,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[47]||(e[47]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),i("div",jl,[a(R)==1?(d(),I(F,{key:0,style:{width:"220px"},onInput:de,type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[11]||(e[11]=l=>a(o).max_total=l),min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue"])):g("",!0),a(R)==2?(d(),I(F,{key:1,style:{width:"220px"},onInput:be,type:"number",modelValue:a(o).time_long,"onUpdate:modelValue":e[12]||(e[12]=l=>a(o).time_long=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):g("",!0)]),e[48]||(e[48]=i("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),i("div",null,[(d(!0),r(D,null,L(a(o).qudao_total,(l,c)=>(d(),r("div",{class:"qudao_k",key:c},[i("div",Hl,w(l.name),1),i("div",Jl,[n(F,{type:"number",modelValue:a(o).qudao_total[c].count,"onUpdate:modelValue":m=>a(o).qudao_total[c].count=m,min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"]),i("div",Xl,w(l.ratio)+"%",1)])]))),128))])]),_:1}),n(B,{label:"时间设置:"},{default:u(()=>[i("div",null,[e[53]||(e[53]=f("选择时段: ",-1)),n(nl,{filterable:!0,clearable:"",modelValue:a(o).period_id,"onUpdate:modelValue":e[13]||(e[13]=l=>a(o).period_id=l),onChange:We,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(d(!0),r(D,null,L(a(ce),(l,c)=>(d(),I(ol,{key:c,label:l.period_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",Kl,[i("div",null,[i("div",Ql,[e[49]||(e[49]=i("div",{style:{width:"70px"}},"开始时间:",-1)),i("div",et,[n(F,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[14]||(e[14]=l=>a(o).begin_time=l),placeholder:"开始时间"},null,8,["modelValue"])])]),i("div",lt,[e[50]||(e[50]=i("div",{style:{width:"70px"}},"结束时间:",-1)),i("div",tt,[n(F,{modelValue:a(o).end_time,"onUpdate:modelValue":e[15]||(e[15]=l=>a(o).end_time=l),placeholder:"结束时间"},null,8,["modelValue"])])])]),i("div",at,[i("div",ot,[e[51]||(e[51]=i("div",{style:{width:"90px"}},"停止预约时间:",-1)),i("div",nt,[n(F,{modelValue:a(o).end_reservation_time,"onUpdate:modelValue":e[16]||(e[16]=l=>a(o).end_reservation_time=l),placeholder:"停止预约时间"},null,8,["modelValue"])])]),i("div",ut,[e[52]||(e[52]=i("div",{style:{width:"90px"}},"可用时间长度:",-1)),i("div",st,[n(F,{modelValue:a(o).time_unit,"onUpdate:modelValue":e[17]||(e[17]=l=>a(o).time_unit=l),placeholder:"可用时间长度"},null,8,["modelValue"])])])])])])]),_:1}),g("",!0),a(ee)===1&&a(h).date_type===1?(d(),I(B,{key:2,label:"时令:"},{default:u(()=>[n(E,{modelValue:a(o).type,"onUpdate:modelValue":e[19]||(e[19]=l=>a(o).type=l)},{default:u(()=>[n(le,{label:1},{default:u(()=>[...e[54]||(e[54]=[i("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(le,{label:2},{default:u(()=>[...e[55]||(e[55]=[i("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):g("",!0),g("",!0),n(B,{label:"病人类型:"},{default:u(()=>[n(he,{modelValue:a(o).patientType,"onUpdate:modelValue":e[21]||(e[21]=l=>a(o).patientType=l)},{default:u(()=>[n(j,{label:"0"},{default:u(()=>[...e[56]||(e[56]=[f("住院",-1)])]),_:1}),n(j,{label:"1"},{default:u(()=>[...e[57]||(e[57]=[f("门诊",-1)])]),_:1}),n(j,{label:"2"},{default:u(()=>[...e[58]||(e[58]=[f("急诊",-1)])]),_:1}),n(j,{label:"3"},{default:u(()=>[...e[59]||(e[59]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(B,{label:"状态:"},{default:u(()=>[n(Ve,{modelValue:a(o).status,"onUpdate:modelValue":e[22]||(e[22]=l=>a(o).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[X,a(_)]])]),_:1},8,["modelValue","title"]),n(pe,{modelValue:a(z),"onUpdate:modelValue":e[28]||(e[28]=l=>U(z)?z.value=l:z=l),title:"生成计划",width:"50%"},{footer:u(()=>[i("span",it,[n(s,{onClick:e[27]||(e[27]=l=>U(z)?z.value=!1:z=!1)},{default:u(()=>[...e[62]||(e[62]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:Ue},{default:u(()=>[...e[63]||(e[63]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),I(_e,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(B,{label:"选择时间范围:"},{default:u(()=>[n(ul,{modelValue:a(Z),"onUpdate:modelValue":e[25]||(e[25]=l=>U(Z)?Z.value=l:Z=l),type:"daterange","range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(B,{label:"节假日生成:"},{default:u(()=>[n(Ve,{modelValue:a(H),"onUpdate:modelValue":e[26]||(e[26]=l=>U(H)?H.value=l:H=l),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[X,a(_)]])]),_:1},8,["modelValue"]),n(pe,{modelValue:a($),"onUpdate:modelValue":e[30]||(e[30]=l=>U($)?$.value=l:$=l),title:"占位设置",width:"40%"},{footer:u(()=>[i("span",ct,[n(s,{onClick:e[29]||(e[29]=l=>U($)?$.value=!1:$=!1)},{default:u(()=>[...e[64]||(e[64]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:tl},{default:u(()=>[...e[65]||(e[65]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),r("div",null,[a(C)?(d(),I(_e,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:u(()=>[n(B,{label:"模板ID:"},{default:u(()=>[f(w(a(C).id),1)]),_:1}),n(B,{label:"资源:"},{default:u(()=>[f(w(a(C).resources_name),1)]),_:1}),n(B,{label:"时间段:"},{default:u(()=>[f(w(a(C).begin_time?a(C).begin_time.substring(0,5):"")+" - "+w(a(C).end_time?a(C).end_time.substring(0,5):""),1)]),_:1}),n(B,{label:"星期:"},{default:u(()=>[f(w(a(C).weekname),1)]),_:1}),n(B,{label:"渠道占位:"},{default:u(()=>[i("div",rt,[a(C).qudao_total&&a(C).qudao_total.length>0?(d(!0),r(D,{key:0},L(a(C).qudao_total,(l,c)=>(d(),r(D,{key:c},[l&&l.count!==0?(d(),r("div",_t,[i("div",pt,w(l.name),1),i("div",vt,[n(F,{type:"number",modelValue:a(C).qudao_total[c].locked_count,"onUpdate:modelValue":m=>a(C).qudao_total[c].locked_count=m,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),i("div",ft," 可用: "+w(l.count),1)])):g("",!0)],64))),128)):(d(),r("div",mt," 暂无渠道数据 "))])]),_:1})]),_:1})):g("",!0)])),[[X,a(_)]])]),_:1},8,["modelValue"])])}}},kt=sl(gt,[["__scopeId","data-v-d2176cc5"]]);export{kt as default}; diff --git a/Laravel/public/dist/assets/PlanModel-567f1307.css b/Laravel/public/dist/assets/PlanModel-567f1307.css new file mode 100644 index 0000000..6b8d289 --- /dev/null +++ b/Laravel/public/dist/assets/PlanModel-567f1307.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-d2176cc5]{display:flex}.type_count div[data-v-d2176cc5]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-d2176cc5]{display:flex}.qudao_k_input[data-v-d2176cc5]{width:150px}.hongzi[data-v-d2176cc5]{color:#b25252}.planInfo .planTable[data-v-d2176cc5]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-d2176cc5]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-d2176cc5]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-d2176cc5]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-d2176cc5]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-d2176cc5]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-d2176cc5]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-d2176cc5]{width:100px}.zhenshiButton[data-v-d2176cc5]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-d2176cc5]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-d2176cc5]{background-color:#ffd6d2}.planInfo_k[data-v-d2176cc5]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-d2176cc5]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-d2176cc5]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-d2176cc5]{display:flex}.planInfo_k .qudao_count_row div[data-v-d2176cc5]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-d2176cc5],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-d2176cc5]{font-weight:700}.planInfo_k .patient_type_row[data-v-d2176cc5]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-d2176cc5]{background-color:#ebfff4;border:1px solid #9fdebc;color:#83b69a;font-size:12px;padding:1px 2px;border-radius:4px;margin-left:4px}.planInfo_k .locked_count_row[data-v-d2176cc5]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-d2176cc5]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-d2176cc5]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-d2176cc5]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-d2176cc5]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap}.plan_checkAllbox[data-v-d2176cc5]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-d2176cc5]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/dist/assets/PlanModelAdmin-f4586257.js b/Laravel/public/dist/assets/PlanModelAdmin-f4586257.js new file mode 100644 index 0000000..7e620d5 --- /dev/null +++ b/Laravel/public/dist/assets/PlanModelAdmin-f4586257.js @@ -0,0 +1 @@ +import{_ as st,o as it,r as h,c as rt,d,e as _,k as s,f as n,w as u,i as a,F as B,t as D,h as K,$ as Q,j as E,x as y,l as L,g as v,I as _t,E as V,X as pt,O as mt,J as vt,q as f,v as w,ba as ft,N as me,aU as ct,bb as gt,bc as yt,bd as bt,be as kt,aZ as xt,a_ as Ie,a$ as ht,b0 as Vt}from"./index-e65958bd.js";const wt={class:"head"},Ct={key:0,style:{display:"flex"},class:"planInfo"},qt={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},It=["onClick"],Et={style:{border:"1px solid #efefef",width:"100%"}},Tt={key:0,class:"planTable"},Bt={style:{"background-color":"#f1f1f1",position:"relative"}},Dt={style:{width:"120px",display:"flex","font-size":"12px"}},Pt={style:{"font-weight":"700"}},Ut=["onMouseover","onMouseleave"],Lt={key:0},At={key:0,class:"hoverTools"},St=["onClick"],Mt=["onClick"],zt=["onClick"],$t={class:"qudao_count_row"},Gt={class:"qudao_title_zong"},Rt={class:"patient_type_row"},Nt={class:"tps"},Ft={key:1,class:"locked_count_row"},Zt={key:1,style:{width:"100%","background-color":"#fff"}},Ot={key:0,class:"type_count"},Wt={key:0,class:"type_count"},Yt={style:{"font-weight":"700"}},jt={style:{"margin-right":"26px"}},Ht={class:"qudao_k_input"},Jt={style:{width:"50px"}},Xt={class:"qudao_k_input",style:{display:"flex"}},Kt={style:{"margin-left":"4px",color:"#ccc"}},Qt={style:{display:"flex"}},el={style:{display:"flex"}},tl={class:"qudao_k_input"},ll={style:{display:"flex"}},al={class:"qudao_k_input"},ol={style:{"margin-left":"8px"}},nl={style:{display:"flex"}},ul={class:"qudao_k_input"},dl={style:{display:"flex"}},sl={class:"qudao_k_input"};const il={class:"dialog-footer"},rl={class:"dialog-footer"},_l={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},pl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},ml={style:{width:"80px"}},vl={style:{flex:"1"}},fl={style:{color:"#999","font-size":"12px"}},cl={key:1,style:{color:"#999"}},gl={class:"dialog-footer"},yl={__name:"PlanModelAdmin",setup(bl){let G=v("1"),m=v(!1),Ee=v(1),Te=v(15),A=v([]),U=v({}),Z=v([]),T=v([]),R=v(0),ve=v([]),F=v([]),S=v(!1),M=v(!1),q=v(null);const Be=()=>{if(T.value.length===0)return V.error("请至少勾选1条记录"),!1;S.value=!0},oe=(l,e)=>{p.value.type=0,W.value.forEach((i,x)=>{i.id===e&&(U.value=i,i.time_mode==1&&(p.value.type=1))}),R.value=0,T.value=[],p.value.resources_id=e,O()},De=()=>{R.value=R.value===0?1:0,R.value===0&&(T.value=[]),R.value===1&&Z.value.forEach((l,e)=>{console.log(l);for(let i in l)i!="time_range"&&T.value.push(l[i].id)})};let ne=v(null);const Pe=l=>{ne.value=l},Ue=l=>{ne.value=null},ue=l=>T.value.includes(l),Le=l=>{T.value.indexOf(l)===-1?T.value.push(l):T.value=T.value.filter(i=>i!==l)},Ae=()=>{if(F.value.length===0)return V.error("请选择日期范围"),!1;ft({dateRange:F.value,ids:T.value,HolidayEnable:H.value,date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{l.status?(S.value=!1,V({message:l.msg,type:"success"})):me.alert(l.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let p=v({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),H=v(1),de=v("工作日"),z=v(!1);const O=()=>{m.value=!0,ct({page:Ee.value,pageSize:Te.value,searchInfo:p.value}).then(l=>{if(m.value=!1,l.status){Z.value=[],T.value=[];let e=l.data.list;if(ve.value=e,e.length>0){const i=new Set;e.forEach((r,C)=>{if(r.department_resources_name==U.value.department_resources_name){const b=`${r.begin_time.substring(0,5)}-${r.end_time.substring(0,5)}`;i.add(b)}r.resources_id}),Array.from(i).sort().forEach(r=>{const C={time_range:r};se.value.forEach(b=>{const k=e.find(I=>`${I.begin_time.substring(0,5)}-${I.end_time.substring(0,5)}`===r&&I.weekname===b.label&&I.department_resources_name==U.value.department_resources_name);k?C[b.label]={countsInfo:k.countsInfo,patient_type_label:k.patient_type_label,status:k.status,id:k.id,resources_id:k.resources_id}:C[b.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),Z.value.push(C)})}}})};let se=v([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),Se=v(null);const fe=()=>({id:0,type:0,xingqi:[],max_total:0,qudao_total:[],period_id:null,begin_time:"",end_time:"",end_reservation_time:"",time_unit:0,resources_id:null,devices:[],patientType:[],status:1});let o=v(fe()),ee=v(0);const ie=(l=null)=>{ye.value=[],J.value=!1,z.value=!0,o.value=fe(),ee.value=0,Oe(),We(),l?(o.value.resources_id=l.resources_id,be(),setTimeout(()=>{console.log("编辑"),je(l.id)},500)):U.value.id&&(o.value.resources_id=U.value.id,be())},Me=()=>{p.value.date_type==1&&(de.value="工作日",A.value.length>0&&oe(A.value[0].resources_name,A.value[0].resources_id)),p.value.date_type==2&&(de.value="节假日",p.value.type=0,p.value.resources_id=null,O())},ze=()=>{O()},$e=()=>{let l=0;if(o.value.qudao_total.forEach(e=>{l=l+Number(e.count)}),l!==Number(o.value.max_total))return V.error("各个渠道数量之和与当日总量不符"),!1;me.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,gt({date_type:p.value.date_type,planInfo:o.value,department_id:p.value.department_id}).then(e=>{m.value=!1,e.status?(z.value=!1,O()):V.error(e.msg)})})},Ge=()=>{if(T.value.length==0)return V.error("请至少勾选1条记录"),!1;me.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,yt({ids:T.value,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(V({message:l.msg,type:"success"}),O()):V.error(l.msg)})})};let Re=v([]);const Ne=()=>{m.value=!0,_t().then(l=>{m.value=!1,l.status?Re.value=l.data:V.error(l.msg)})};let te=v([]);const Fe=()=>{m.value=!0,pt({}).then(l=>{m.value=!1,l.status?(te.value=l.data.list,te.value.length>0&&(p.value.department_id=te.value[0].id,ge())):V.error(l.msg)})},Ze=()=>{p.value.resources_id=null,U.value={},ge()},Oe=()=>{m.value=!0,bt({department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(o.value.qudao_total=l.data,o.value.qudao_total.forEach((e,i)=>{o.value.qudao_total[i].count=0})):V.error(l.msg)})},re=l=>{(l===""||l==null||l===0)&&(o.value.max_total=0);let e=0,i=o.value.qudao_total.length;console.log(o.value.qudao_total);for(let x=0;xk.ratio-I.ratio);let C=null;for(let k=0;k0&&(o.value.qudao_total[b].count=o.value.qudao_total[b].count-r),r<0&&b>0&&(o.value.qudao_total[b-1].count=o.value.qudao_total[b-1].count-r),r<0&&b==0&&(o.value.qudao_total[b].count=o.value.qudao_total[b].count-r),o.value.qudao_total.sort((k,I)=>I.ratio-k.ratio)}};let ce=v([]);const We=()=>{m.value=!0,kt({date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?ce.value=l.data:V.error(l.msg)})},Ye=()=>{m.value=!0,xt({id:o.value.period_id}).then(l=>{m.value=!1,l.status?(o.value.begin_time=l.data.period_begin_time,o.value.end_time=l.data.period_end_time,o.value.end_reservation_time=l.data.period_deadline):V.error(l.msg)})},je=l=>{m.value=!0,Ie({id:l}).then(e=>{if(m.value=!1,e.status){o.value=e.data,o.value.max_total=e.data.qudao_total[0].max_total,o.value.xingqi=[e.data.weekname],o.value.devices=e.data.devices;const i=W.value.find(x=>x.id===o.value.resources_id);ee.value=i&&i.time_mode||0}else V.error(e.msg)})};let W=v([]);const ge=()=>{A.value=[],p.value.department_id&&(m.value=!0,mt({department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(W.value=l.data,W.value.forEach((e,i)=>{A.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),U.value.department_resources_name==null&&A.value.length>0&&oe(A.value[0].resources_name,A.value[0].resources_id)):V.error(l.msg)}))};let ye=v([]);const be=()=>{o.value.devices=[];const l=W.value.find(e=>e.id===o.value.resources_id);ee.value=l&&l.time_mode||0,m.value=!0,ht({resource_id:o.value.resources_id}).then(e=>{m.value=!1,e.status?(ye.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):V.error(e.msg)})},He=()=>{vt().then(l=>{if(l.status){let k=l.data.datetime.substring(0,10);var e=new Date(k),i=e.getMonth(),x=(i+1)%12,r=e.getFullYear()+((i+1)/12|0),C=e.getDate(),b=new Date(r,x,C);b.getMonth()!==x&&(b=new Date(r,x,0));let I=b.toISOString().split("T")[0];F.value=[k,I]}})};let J=v(!1);const Je=l=>{l?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},Xe=l=>{G.value=l,re(0),ke(0)},Ke=l=>{T.value=[],l.forEach((e,i)=>{T.value.push(e.id)}),console.log(T.value)},ke=l=>{if(G.value==2){if(o.value.begin_time==""||o.value.end_time=="")return V.error("请先设置时段"),o.value.max_total=0,!1;Qe(l)}},Qe=l=>{let e=et(o.value.begin_time,o.value.end_time,l);o.value.max_total=e,re(e)};function et(l,e,i){function x(I){const[le,Y]=I.split(":").map(Number);return le*60+Y}const r=x(l),b=x(e)-r;return Math.floor(b/i)}const xe=l=>!l||!Array.isArray(l)?0:l.reduce((e,i)=>e+(Number(i.locked_count)||0),0),tt=l=>{M.value=!0,m.value=!0,Ie({id:l.id}).then(e=>{if(m.value=!1,e.status){q.value=e.data;const i=W.value.find(r=>r.id===l.resources_id);q.value.resources_name=i?i.department_resources_name:"";const x=l.time_range||"";q.value.time_range=x,q.value.qudao_total&&q.value.qudao_total.forEach(r=>{r.locked_count===null&&(r.locked_count=0)})}else V.error(e.msg)})},lt=()=>{let l=[],e=!1;q.value.qudao_total.forEach(i=>{if(!e){if(Number(i.locked_count)<0){V.error(`${i.name} 的占位数量不能为负数`),e=!0;return}if(Number(i.locked_count)>i.count){V.error(`${i.name} 的占位数量不能超过可用数量,最多${i.count}个`),e=!0;return}l.push({appointment_type_id:i.appointment_type_id,locked_count:i.locked_count||0})}}),!e&&(m.value=!0,Vt({roster_id:q.value.id,locked_counts:l}).then(i=>{m.value=!1,i.status?(M.value=!1,V.success("占位设置保存成功"),O()):V.error(i.msg)}))};return it(()=>{p.value.date_type=1,Fe(),Ne(),He()}),(l,e)=>{const i=h("el-option"),x=h("el-select"),r=h("el-form-item"),C=h("el-button"),b=h("el-row"),k=h("el-radio-button"),I=h("el-radio-group"),le=h("Select"),Y=h("el-icon"),at=h("Edit"),ot=h("Lock"),nt=h("el-empty"),P=h("el-table-column"),he=h("el-tag"),ut=h("el-table"),j=h("el-checkbox"),Ve=h("el-checkbox-group"),ae=h("el-radio"),N=h("el-input"),we=h("el-switch"),_e=h("el-form"),pe=h("el-dialog"),dt=h("el-date-picker"),X=rt("loading");return d(),_("div",null,[s("div",wt,[n(b,{style:{display:"flex","justify-content":"end"}},{default:u(()=>[n(r,null,{default:u(()=>[n(x,{filterable:!0,clearable:"",modelValue:a(p).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>a(p).department_id=t),placeholder:"选择科室",onChange:Ze,style:{"margin-left":"8px",width:"150px"}},{default:u(()=>[(d(!0),_(B,null,D(a(te),(t,c)=>(d(),E(i,{key:c,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(C,{type:"primary",onClick:e[1]||(e[1]=t=>ie()),style:{"margin-left":"10px"}},{default:u(()=>[...e[32]||(e[32]=[f("添加",-1)])]),_:1}),n(C,{type:"danger",onClick:e[2]||(e[2]=t=>Ge()),style:{"margin-left":"10px"}},{default:u(()=>[...e[33]||(e[33]=[f("删除",-1)])]),_:1}),n(C,{type:"success",onClick:e[3]||(e[3]=t=>Be()),style:{"margin-left":"20px"}},{default:u(()=>[...e[34]||(e[34]=[f("生成选中的计划",-1)])]),_:1})]),_:1})]),n(b,null,{default:u(()=>[n(I,{style:{"margin-bottom":"8px"},modelValue:a(p).date_type,"onUpdate:modelValue":e[4]||(e[4]=t=>a(p).date_type=t),onChange:e[5]||(e[5]=t=>Me())},{default:u(()=>[n(k,{label:1},{default:u(()=>[...e[35]||(e[35]=[f("工作日",-1)])]),_:1}),n(k,{label:2},{default:u(()=>[...e[36]||(e[36]=[f("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),a(U).time_mode==1&&a(p).date_type==1?(d(),E(I,{key:0,style:{"margin-bottom":"8px","margin-left":"20px"},"text-color":"#fff",fill:"#62bf68",size:"small",modelValue:a(p).type,"onUpdate:modelValue":e[6]||(e[6]=t=>a(p).type=t),onChange:e[7]||(e[7]=t=>ze())},{default:u(()=>[n(k,{label:1},{default:u(()=>[...e[37]||(e[37]=[f("夏令时",-1)])]),_:1}),n(k,{label:2},{default:u(()=>[...e[38]||(e[38]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):y("",!0)]),_:1}),a(p).date_type==1?(d(),_("div",Ct,[s("div",qt,[(d(!0),_(B,null,D(a(A),(t,c)=>(d(),_("div",{key:c,onClick:g=>oe(t.resources_name,t.resources_id),class:Q({"zhenshiButton zhenshiButtonActive":t.resources_name===a(U).department_resources_name,zhenshiButton:t.resources_name!==a(U).department_resources_name})},w(t.resources_name),11,It))),128))]),K((d(),_("div",Et,[a(Z).length>0?(d(),_("table",Tt,[s("tr",Bt,[s("td",Dt,[e[39]||(e[39]=s("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),s("div",{class:Q({"plan_checkAllbox plan_checkAllbox_active":a(R)===1,"plan_checkAllbox ":a(R)===0}),onClick:e[8]||(e[8]=t=>De())},[a(R)===1?(d(),E(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(le)]),_:1})):y("",!0)],2)]),(d(!0),_(B,null,D(a(se),(t,c)=>(d(),_("td",Pt,w(t.label),1))),256))]),(d(!0),_(B,null,D(a(Z),(t,c)=>(d(),_("tr",{key:c},[(d(!0),_(B,null,D(t,(g,Ce)=>(d(),_("td",{key:Ce,onMouseover:$=>Pe(g.id),onMouseleave:$=>Ue(g.id)},[Ce=="time_range"?(d(),_("span",Lt,w(g),1)):y("",!0),g.countsInfo&&g.countsInfo.length>0?(d(),_("div",{key:1,class:Q({planInfo_k:g.status==1,"planInfo_k planInfo_k_disabled":g.status==0})},[a(ne)==g.id?(d(),_("div",At,[s("div",{class:"icon_k",onClick:$=>ie(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(at)]),_:1}),e[40]||(e[40]=s("span",{class:"icon_text"},"编辑",-1))],8,St),s("div",{class:"icon_k",onClick:$=>tt(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(ot)]),_:1}),e[41]||(e[41]=s("span",{class:"icon_text"},"占位",-1))],8,Mt)])):y("",!0),s("div",{class:Q({"plan_checkbox plan_checkbox_active":ue(g.id),plan_checkbox:!ue(g.id)}),onClick:$=>Le(g.id)},[ue(g.id)?(d(),E(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(le)]),_:1})):y("",!0)],10,zt),s("div",$t,[s("div",Gt,[e[42]||(e[42]=s("span",null,"总",-1)),f(w(g.countsInfo[0].max_total),1)]),(d(!0),_(B,null,D(g.countsInfo,($,qe)=>(d(),_("div",{key:qe},[s("span",null,w($.jiancheng),1),s("span",null,w($.count),1)]))),128))]),s("div",Rt,[(d(!0),_(B,null,D(g.patient_type_label,($,qe)=>(d(),_("div",Nt,w($),1))),256))]),xe(g.countsInfo)>0?(d(),_("div",Ft," 占:"+w(xe(g.countsInfo)),1)):y("",!0)],2)):y("",!0)],40,Ut))),128))]))),128))])):y("",!0),a(Z).length==0?(d(),_("div",Zt,[n(nt,{description:"暂无"})])):y("",!0)])),[[X,a(m)]])])):y("",!0),a(p).date_type==2?K((d(),E(ut,{key:1,data:a(ve),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Ke},{default:u(()=>[n(P,{type:"selection",width:"55"}),n(P,{prop:"id",label:"Id",width:"70"}),a(p).date_type==1?(d(),E(P,{key:0,prop:"weekname",label:"星期",width:"80"})):y("",!0),y("",!0),n(P,{prop:"department_resources_name",label:"资源",width:"150"}),n(P,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(t=>[t.row.devices.length>0?(d(),_("div",Ot,[(d(!0),_(B,null,D(t.row.devices,(c,g)=>(d(),_("div",{key:g,class:Q(c.status==1&&c.is_del==0?"":"hongzi")},w(c.device_name),3))),128))])):y("",!0)]),_:1}),n(P,{prop:"period_name",label:"时段",width:"100"}),n(P,{prop:"begin_time",label:"开始时间",width:"100"}),n(P,{prop:"end_time",label:"结束时间",width:"100"}),n(P,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(t=>[t.row.countsInfo.length>0?(d(),_("div",Wt,[s("div",Yt,"最大数量:"+w(t.row.countsInfo[0].max_total),1),(d(!0),_(B,null,D(t.row.countsInfo,(c,g)=>(d(),_("div",{key:g},w(c.name)+":"+w(c.count),1))),128))])):y("",!0)]),_:1}),n(P,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(P,{prop:"roster_status",label:"状态",width:"80"},{default:u(t=>[t.row.status===1?(d(),E(he,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[43]||(e[43]=[f("正常",-1)])]),_:1})):y("",!0),t.row.status===0?(d(),E(he,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[44]||(e[44]=[f("关闭",-1)])]),_:1})):y("",!0)]),_:1}),n(P,{prop:"",label:"操作",width:"80"},{default:u(t=>[n(C,{type:"primary",onClick:c=>ie(t.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[45]||(e[45]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[X,a(m)]]):y("",!0),n(pe,{modelValue:a(z),"onUpdate:modelValue":e[25]||(e[25]=t=>L(z)?z.value=t:z=t),title:"时间段("+a(de)+")",width:"45%"},{footer:u(()=>[s("span",il,[n(C,{onClick:e[24]||(e[24]=t=>L(z)?z.value=!1:z=!1)},{default:u(()=>[...e[61]||(e[61]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:$e},{default:u(()=>[...e[62]||(e[62]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),E(_e,{ref_key:"PlanInfoForm",ref:Se,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(p).date_type==1?(d(),E(r,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(j,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(J),"onUpdate:modelValue":e[9]||(e[9]=t=>L(J)?J.value=t:J=t),onChange:Je,label:"全选"},{default:u(()=>[...e[46]||(e[46]=[s("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(Ve,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[10]||(e[10]=t=>a(o).xingqi=t)},{default:u(()=>[(d(!0),_(B,null,D(a(se),(t,c)=>(d(),E(j,{disabled:a(o).id!=0,key:c,label:t.label},{default:u(()=>[f(w(t.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):y("",!0),n(r,{label:"渠道名额:"},{default:u(()=>[s("div",jt,[s("div",null,[n(I,{modelValue:a(G),"onUpdate:modelValue":e[11]||(e[11]=t=>L(G)?G.value=t:G=t),onChange:Xe},{default:u(()=>[n(ae,{label:"1"},{default:u(()=>[...e[47]||(e[47]=[f("根据总量",-1)])]),_:1}),n(ae,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[48]||(e[48]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),s("div",Ht,[a(G)==1?(d(),E(N,{key:0,style:{width:"220px"},onInput:re,type:"number",modelValue:a(o).max_total,"onUpdate:modelValue":e[12]||(e[12]=t=>a(o).max_total=t),min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue"])):y("",!0),a(G)==2?(d(),E(N,{key:1,style:{width:"220px"},onInput:ke,type:"number",modelValue:a(o).time_long,"onUpdate:modelValue":e[13]||(e[13]=t=>a(o).time_long=t),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):y("",!0)]),e[49]||(e[49]=s("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),s("div",null,[(d(!0),_(B,null,D(a(o).qudao_total,(t,c)=>(d(),_("div",{class:"qudao_k",key:c},[s("div",Jt,w(t.name),1),s("div",Xt,[n(N,{type:"number",modelValue:a(o).qudao_total[c].count,"onUpdate:modelValue":g=>a(o).qudao_total[c].count=g,min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"]),s("div",Kt,w(t.ratio)+"%",1)])]))),128))])]),_:1}),n(r,{label:"时间设置:"},{default:u(()=>[s("div",null,[e[54]||(e[54]=f("选择时段: ",-1)),n(x,{filterable:!0,clearable:"",modelValue:a(o).period_id,"onUpdate:modelValue":e[14]||(e[14]=t=>a(o).period_id=t),onChange:Ye,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(d(!0),_(B,null,D(a(ce),(t,c)=>(d(),E(i,{key:c,label:t.period_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",Qt,[s("div",null,[s("div",el,[e[50]||(e[50]=s("div",{style:{width:"70px"}},"开始时间:",-1)),s("div",tl,[n(N,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[15]||(e[15]=t=>a(o).begin_time=t),placeholder:"开始时间"},null,8,["modelValue"])])]),s("div",ll,[e[51]||(e[51]=s("div",{style:{width:"70px"}},"结束时间:",-1)),s("div",al,[n(N,{modelValue:a(o).end_time,"onUpdate:modelValue":e[16]||(e[16]=t=>a(o).end_time=t),placeholder:"结束时间"},null,8,["modelValue"])])])]),s("div",ol,[s("div",nl,[e[52]||(e[52]=s("div",{style:{width:"90px"}},"停止预约时间:",-1)),s("div",ul,[n(N,{modelValue:a(o).end_reservation_time,"onUpdate:modelValue":e[17]||(e[17]=t=>a(o).end_reservation_time=t),placeholder:"停止预约时间"},null,8,["modelValue"])])]),s("div",dl,[e[53]||(e[53]=s("div",{style:{width:"90px"}},"可用时间长度:",-1)),s("div",sl,[n(N,{modelValue:a(o).time_unit,"onUpdate:modelValue":e[18]||(e[18]=t=>a(o).time_unit=t),placeholder:"可用时间长度"},null,8,["modelValue"])])])])])])]),_:1}),y("",!0),a(ee)===1&&a(p).date_type===1?(d(),E(r,{key:2,label:"时令:"},{default:u(()=>[n(I,{modelValue:a(o).type,"onUpdate:modelValue":e[20]||(e[20]=t=>a(o).type=t)},{default:u(()=>[n(ae,{label:1},{default:u(()=>[...e[55]||(e[55]=[s("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(ae,{label:2},{default:u(()=>[...e[56]||(e[56]=[s("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):y("",!0),y("",!0),n(r,{label:"病人类型:"},{default:u(()=>[n(Ve,{modelValue:a(o).patientType,"onUpdate:modelValue":e[22]||(e[22]=t=>a(o).patientType=t)},{default:u(()=>[n(j,{label:"0"},{default:u(()=>[...e[57]||(e[57]=[f("住院",-1)])]),_:1}),n(j,{label:"1"},{default:u(()=>[...e[58]||(e[58]=[f("门诊",-1)])]),_:1}),n(j,{label:"2"},{default:u(()=>[...e[59]||(e[59]=[f("急诊",-1)])]),_:1}),n(j,{label:"3"},{default:u(()=>[...e[60]||(e[60]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(r,{label:"状态:"},{default:u(()=>[n(we,{modelValue:a(o).status,"onUpdate:modelValue":e[23]||(e[23]=t=>a(o).status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[X,a(m)]])]),_:1},8,["modelValue","title"]),n(pe,{modelValue:a(S),"onUpdate:modelValue":e[29]||(e[29]=t=>L(S)?S.value=t:S=t),title:"生成计划",width:"50%"},{footer:u(()=>[s("span",rl,[n(C,{onClick:e[28]||(e[28]=t=>L(S)?S.value=!1:S=!1)},{default:u(()=>[...e[63]||(e[63]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:Ae},{default:u(()=>[...e[64]||(e[64]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),E(_e,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"选择时间范围:"},{default:u(()=>[n(dt,{modelValue:a(F),"onUpdate:modelValue":e[26]||(e[26]=t=>L(F)?F.value=t:F=t),type:"daterange","range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(r,{label:"节假日生成:"},{default:u(()=>[n(we,{modelValue:a(H),"onUpdate:modelValue":e[27]||(e[27]=t=>L(H)?H.value=t:H=t),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[X,a(m)]])]),_:1},8,["modelValue"]),n(pe,{modelValue:a(M),"onUpdate:modelValue":e[31]||(e[31]=t=>L(M)?M.value=t:M=t),title:"占位设置",width:"40%"},{footer:u(()=>[s("span",gl,[n(C,{onClick:e[30]||(e[30]=t=>L(M)?M.value=!1:M=!1)},{default:u(()=>[...e[65]||(e[65]=[f("取消",-1)])]),_:1}),n(C,{type:"primary",onClick:lt},{default:u(()=>[...e[66]||(e[66]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[K((d(),_("div",null,[a(q)?(d(),E(_e,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"模板ID:"},{default:u(()=>[f(w(a(q).id),1)]),_:1}),n(r,{label:"资源:"},{default:u(()=>[f(w(a(q).resources_name),1)]),_:1}),n(r,{label:"时间段:"},{default:u(()=>[f(w(a(q).begin_time?a(q).begin_time.substring(0,5):"")+" - "+w(a(q).end_time?a(q).end_time.substring(0,5):""),1)]),_:1}),n(r,{label:"星期:"},{default:u(()=>[f(w(a(q).weekname),1)]),_:1}),n(r,{label:"渠道占位:"},{default:u(()=>[s("div",_l,[a(q).qudao_total&&a(q).qudao_total.length>0?(d(!0),_(B,{key:0},D(a(q).qudao_total,(t,c)=>(d(),_(B,{key:c},[t&&t.count!==0?(d(),_("div",pl,[s("div",ml,w(t.name),1),s("div",vl,[n(N,{type:"number",modelValue:a(q).qudao_total[c].locked_count,"onUpdate:modelValue":g=>a(q).qudao_total[c].locked_count=g,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),s("div",fl," 可用: "+w(t.count),1)])):y("",!0)],64))),128)):(d(),_("div",cl," 暂无渠道数据 "))])]),_:1})]),_:1})):y("",!0)])),[[X,a(m)]])]),_:1},8,["modelValue"])])}}},xl=st(yl,[["__scopeId","data-v-498c2bd3"]]);export{xl as default}; diff --git a/Laravel/public/dist/assets/PlanModelAdmin-f76fb455.css b/Laravel/public/dist/assets/PlanModelAdmin-f76fb455.css new file mode 100644 index 0000000..31e6925 --- /dev/null +++ b/Laravel/public/dist/assets/PlanModelAdmin-f76fb455.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-498c2bd3]{display:flex}.type_count div[data-v-498c2bd3]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-498c2bd3]{display:flex}.qudao_k_input[data-v-498c2bd3]{width:150px}.hongzi[data-v-498c2bd3]{color:#b25252}.planInfo .planTable[data-v-498c2bd3]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-498c2bd3]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-498c2bd3]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-498c2bd3]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-498c2bd3]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-498c2bd3]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-498c2bd3]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-498c2bd3]{width:100px}.zhenshiButton[data-v-498c2bd3]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-498c2bd3]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-498c2bd3]{background-color:#ffd6d2}.planInfo_k[data-v-498c2bd3]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-498c2bd3]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-498c2bd3]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-498c2bd3]{display:flex}.planInfo_k .qudao_count_row div[data-v-498c2bd3]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-498c2bd3],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-498c2bd3]{font-weight:700}.planInfo_k .patient_type_row[data-v-498c2bd3]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-498c2bd3]{background-color:#ebfff4;border:1px solid #9fdebc;color:#83b69a;font-size:12px;padding:1px 2px;border-radius:4px;margin-left:4px}.planInfo_k .locked_count_row[data-v-498c2bd3]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-498c2bd3]{position:absolute;top:0px;left:0px;height:100%;width:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:4px}.planInfo_k .hoverTools .icon_k[data-v-498c2bd3]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-498c2bd3]{height:30px;width:30px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;background-color:#fff}.planInfo_k .hoverTools .icon_text[data-v-498c2bd3]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap;line-height:1.4}.plan_checkAllbox[data-v-498c2bd3]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-498c2bd3]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/admin/assets/PlanTj-117b6fc4.css b/Laravel/public/dist/assets/PlanTj-117b6fc4.css similarity index 100% rename from Laravel/public/admin/assets/PlanTj-117b6fc4.css rename to Laravel/public/dist/assets/PlanTj-117b6fc4.css diff --git a/Laravel/public/admin/assets/PlanTj-9d4d9f06.js b/Laravel/public/dist/assets/PlanTj-377d8a10.js similarity index 97% rename from Laravel/public/admin/assets/PlanTj-9d4d9f06.js rename to Laravel/public/dist/assets/PlanTj-377d8a10.js index b77daa7..3958988 100644 --- a/Laravel/public/admin/assets/PlanTj-9d4d9f06.js +++ b/Laravel/public/dist/assets/PlanTj-377d8a10.js @@ -1 +1 @@ -import{_ as k,o as V,r as o,c as R,d as p,e as g,k as b,f as a,w as r,i as n,x as Y,h as T,j as M,J as I,bu as P,D as S,E as j,q as E,g as d,bs as N}from"./index-af171713.js";const U={class:"head"},A={key:0,id:"Bing",class:"Bing"},G={__name:"PlanTj",setup(J){let m=d(!1),c=d([]),l=d({dateRange:[]}),_=d(0),s=d(0);const x=()=>{I().then(t=>{if(t.status){let e=t.data.datetime.substr(0,10);l.value.dateRange=[e,e],v()}})},v=()=>{m.value=!0,P({SearchInfo:l.value}).then(t=>{m.value=!1,t.status?(c.value=t.data.list,_.value=t.data.allCount,s.value=t.data.allUsedCount,s.value>0&&S(()=>{y()})):j.error(t.msg)})},y=()=>{var t=N(document.getElementById("Bing"));t.setOption({title:{text:l.value.dateRange[0]+"~"+l.value.dateRange[1]+"全院号源使用量占比",subtext:"号源总量 "+_.value,left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:_.value-s.value,name:"未占用"},{value:s.value,name:"已预约"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return V(()=>{x()}),(t,e)=>{const f=o("el-date-picker"),w=o("el-form-item"),h=o("el-button"),B=o("el-row"),i=o("el-table-column"),C=o("el-table"),D=R("loading");return p(),g("div",null,[b("div",U,[a(B,null,{default:r(()=>[a(w,null,{default:r(()=>[a(f,{style:{"margin-left":"8px",width:"150px"},modelValue:n(l).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=u=>n(l).dateRange[0]=u),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[3]||(e[3]=b("span",{style:{margin:"0 4px"}},"至",-1)),a(f,{style:{width:"150px"},modelValue:n(l).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=u=>n(l).dateRange[1]=u),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(h,{onClick:e[2]||(e[2]=u=>v()),style:{"margin-left":"10px"}},{default:r(()=>[...e[4]||(e[4]=[E("搜索",-1)])]),_:1})]),_:1})]),n(s)>0?(p(),g("div",A)):Y("",!0),T((p(),M(C,{data:n(c),style:{width:"100%"},"row-key":"id"},{default:r(()=>[a(i,{prop:"department_name",label:"科室"}),a(i,{prop:"count",label:"号源总数"}),a(i,{prop:"used_count",label:"使用量"}),a(i,{prop:"used_rate",label:"使用量占比"})]),_:1},8,["data"])),[[D,n(m)]])])}}},q=k(G,[["__scopeId","data-v-3ee660ae"]]);export{q as default}; +import{_ as k,o as V,r as o,c as R,d as p,e as g,k as b,f as a,w as r,i as n,x as Y,h as T,j as M,J as I,bu as P,D as S,E as j,q as E,g as d,bs as N}from"./index-e65958bd.js";const U={class:"head"},A={key:0,id:"Bing",class:"Bing"},G={__name:"PlanTj",setup(J){let m=d(!1),c=d([]),l=d({dateRange:[]}),_=d(0),s=d(0);const x=()=>{I().then(t=>{if(t.status){let e=t.data.datetime.substr(0,10);l.value.dateRange=[e,e],v()}})},v=()=>{m.value=!0,P({SearchInfo:l.value}).then(t=>{m.value=!1,t.status?(c.value=t.data.list,_.value=t.data.allCount,s.value=t.data.allUsedCount,s.value>0&&S(()=>{y()})):j.error(t.msg)})},y=()=>{var t=N(document.getElementById("Bing"));t.setOption({title:{text:l.value.dateRange[0]+"~"+l.value.dateRange[1]+"全院号源使用量占比",subtext:"号源总量 "+_.value,left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:_.value-s.value,name:"未占用"},{value:s.value,name:"已预约"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return V(()=>{x()}),(t,e)=>{const f=o("el-date-picker"),w=o("el-form-item"),h=o("el-button"),B=o("el-row"),i=o("el-table-column"),C=o("el-table"),D=R("loading");return p(),g("div",null,[b("div",U,[a(B,null,{default:r(()=>[a(w,null,{default:r(()=>[a(f,{style:{"margin-left":"8px",width:"150px"},modelValue:n(l).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=u=>n(l).dateRange[0]=u),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[3]||(e[3]=b("span",{style:{margin:"0 4px"}},"至",-1)),a(f,{style:{width:"150px"},modelValue:n(l).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=u=>n(l).dateRange[1]=u),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(h,{onClick:e[2]||(e[2]=u=>v()),style:{"margin-left":"10px"}},{default:r(()=>[...e[4]||(e[4]=[E("搜索",-1)])]),_:1})]),_:1})]),n(s)>0?(p(),g("div",A)):Y("",!0),T((p(),M(C,{data:n(c),style:{width:"100%"},"row-key":"id"},{default:r(()=>[a(i,{prop:"department_name",label:"科室"}),a(i,{prop:"count",label:"号源总数"}),a(i,{prop:"used_count",label:"使用量"}),a(i,{prop:"used_rate",label:"使用量占比"})]),_:1},8,["data"])),[[D,n(m)]])])}}},q=k(G,[["__scopeId","data-v-3ee660ae"]]);export{q as default}; diff --git a/Laravel/public/admin/assets/PrintShenQingDan-5dc59270.css b/Laravel/public/dist/assets/PrintShenQingDan-5dc59270.css similarity index 100% rename from Laravel/public/admin/assets/PrintShenQingDan-5dc59270.css rename to Laravel/public/dist/assets/PrintShenQingDan-5dc59270.css diff --git a/Laravel/public/admin/assets/PrintShenQingDan-7546836f.js b/Laravel/public/dist/assets/PrintShenQingDan-80054efb.js similarity index 98% rename from Laravel/public/admin/assets/PrintShenQingDan-7546836f.js rename to Laravel/public/dist/assets/PrintShenQingDan-80054efb.js index c72e75d..f66dcd0 100644 --- a/Laravel/public/admin/assets/PrintShenQingDan-7546836f.js +++ b/Laravel/public/dist/assets/PrintShenQingDan-80054efb.js @@ -1 +1 @@ -import{_ as l,d,e as o,k as e,v as n,x as a,bp as f}from"./index-af171713.js";const b={class:"PrintShenQingDan"},c={style:{width:"200px","text-align":"center","padding-bottom":"8px","-webkit-print-color-adjust":"exact",position:"absolute",right:"10px",top:"0px"}},p=["src"],x={style:{"text-align":"center"}},g={style:{"border-top":"1px solid #333","border-bottom":"1px solid #333","padding-left":"4px"}},v={style:{border:"none","font-size":"16px",width:"100%"}},y={style:{border:"none"}},h={style:{border:"none","text-align":"left"}},u={style:{border:"none","text-align":"left"}},I={style:{border:"none","text-align":"left"}},_={style:{border:"none","text-align":"left"}},m={style:{border:"none"}},w={style:{border:"none","text-align":"left"}},z={key:0,style:{border:"none","text-align":"left"}},k={key:1,style:{border:"none","text-align":"left"}},S={style:{border:"none","text-align":"left"}},D={style:{"border-bottom":"1px solid #333","font-size":"18px","padding-left":"8px"}},Q={style:{"text-align":"right","border-top":"1px solid #333","font-size":"16px"}},B={__name:"PrintShenQingDan",props:{printInfo:{type:Object}},setup(t){return(N,i)=>{var s,r;return d(),o("div",b,[e("div",null,[i[0]||(i[0]=e("div",{style:{width:"100%","text-align":"center","font-size":"22px"}},"秦皇岛市中医医院",-1)),i[1]||(i[1]=e("div",{style:{width:"100%","text-align":"center","font-size":"18px","font-weight":"bold"}},"检查预约回执单",-1)),e("div",c,[e("img",{src:"data:image/png;base64,"+t.printInfo.barcode,style:{display:"block",margin:"0 auto","max-width":"100%",height:"auto"}},null,8,p),e("div",x,n(t.printInfo.patient_type==0?t.printInfo.episodeid.slice(-10):t.printInfo.reg_num),1)])]),e("div",g,[e("table",v,[e("tr",y,[e("td",h,"姓名:"+n(t.printInfo.user_name),1),e("td",u,"性别:"+n(t.printInfo.user_sex_label),1),e("td",I,"年龄:"+n(t.printInfo.age),1),e("td",_,"病人类型:"+n(t.printInfo.patient_type_label),1)]),e("tr",m,[e("td",w,n(t.printInfo.patient_type_label)+"号:"+n(t.printInfo.patient_type==0?t.printInfo.episodeid.slice(-10):t.printInfo.reg_num),1),t.printInfo.patient_type==0?(d(),o("td",z,"病区:"+n(t.printInfo.warddesc??""),1)):a("",!0),t.printInfo.patient_type==0?(d(),o("td",k,"床号:"+n(t.printInfo.bedno??""),1)):a("",!0),e("td",S,"联系电话:"+n(t.printInfo.user_phone),1)])])]),e("div",D,[e("div",null,"检查项目:"+n(t.printInfo.entrust),1),e("div",null,"预约时间:"+n(t.printInfo.reservation_date)+" "+n(t.printInfo.period_begin_time.substring(0,5))+"-"+n(t.printInfo.period_end_time.substring(0,5))+" "+n(t.printInfo.weekday_label),1),e("div",null,"检查地点:"+n(((s=t.printInfo.department_resources)==null?void 0:s.department_resources_addr)||((r=t.printInfo.department_resources)==null?void 0:r.department_resources_name)),1)]),i[2]||(i[2]=f('
温馨提示:
1、预约后请您及时缴费,门诊患者预约成功后60分钟内不缴费,系统会自动取消您的预约申请。自动取消后,如需继续预约,请到相关检查科室重新预约。
2、预约时间为8点~10点的,请8点到登记处签到,预约时间为10点~12点的,请10点前到登记处签到,便于工作人员进行检查评估和准备。
3、预约时间不是实际检查时间,以现场登记后排队号为准。
检查须知:
腹部检查禁食4小时,腹部、盆腔、泌尿系统检查请尽量饮水,充盈肠道及膀胱;危重病人需由家属陪同;孕妇及婴幼儿请慎行检查。
',2)),e("div",Q," 申请时间:"+n(t.printInfo.entrust_date)+" "+n(t.printInfo.entrust_time),1)])}}},V=l(B,[["__scopeId","data-v-470e9c8b"]]);export{V as S}; +import{_ as l,d,e as o,k as e,v as n,x as a,bp as f}from"./index-e65958bd.js";const b={class:"PrintShenQingDan"},c={style:{width:"200px","text-align":"center","padding-bottom":"8px","-webkit-print-color-adjust":"exact",position:"absolute",right:"10px",top:"0px"}},p=["src"],x={style:{"text-align":"center"}},g={style:{"border-top":"1px solid #333","border-bottom":"1px solid #333","padding-left":"4px"}},v={style:{border:"none","font-size":"16px",width:"100%"}},y={style:{border:"none"}},h={style:{border:"none","text-align":"left"}},u={style:{border:"none","text-align":"left"}},I={style:{border:"none","text-align":"left"}},_={style:{border:"none","text-align":"left"}},m={style:{border:"none"}},w={style:{border:"none","text-align":"left"}},z={key:0,style:{border:"none","text-align":"left"}},k={key:1,style:{border:"none","text-align":"left"}},S={style:{border:"none","text-align":"left"}},D={style:{"border-bottom":"1px solid #333","font-size":"18px","padding-left":"8px"}},Q={style:{"text-align":"right","border-top":"1px solid #333","font-size":"16px"}},B={__name:"PrintShenQingDan",props:{printInfo:{type:Object}},setup(t){return(N,i)=>{var s,r;return d(),o("div",b,[e("div",null,[i[0]||(i[0]=e("div",{style:{width:"100%","text-align":"center","font-size":"22px"}},"秦皇岛市中医医院",-1)),i[1]||(i[1]=e("div",{style:{width:"100%","text-align":"center","font-size":"18px","font-weight":"bold"}},"检查预约回执单",-1)),e("div",c,[e("img",{src:"data:image/png;base64,"+t.printInfo.barcode,style:{display:"block",margin:"0 auto","max-width":"100%",height:"auto"}},null,8,p),e("div",x,n(t.printInfo.patient_type==0?t.printInfo.episodeid.slice(-10):t.printInfo.reg_num),1)])]),e("div",g,[e("table",v,[e("tr",y,[e("td",h,"姓名:"+n(t.printInfo.user_name),1),e("td",u,"性别:"+n(t.printInfo.user_sex_label),1),e("td",I,"年龄:"+n(t.printInfo.age),1),e("td",_,"病人类型:"+n(t.printInfo.patient_type_label),1)]),e("tr",m,[e("td",w,n(t.printInfo.patient_type_label)+"号:"+n(t.printInfo.patient_type==0?t.printInfo.episodeid.slice(-10):t.printInfo.reg_num),1),t.printInfo.patient_type==0?(d(),o("td",z,"病区:"+n(t.printInfo.warddesc??""),1)):a("",!0),t.printInfo.patient_type==0?(d(),o("td",k,"床号:"+n(t.printInfo.bedno??""),1)):a("",!0),e("td",S,"联系电话:"+n(t.printInfo.user_phone),1)])])]),e("div",D,[e("div",null,"检查项目:"+n(t.printInfo.entrust),1),e("div",null,"预约时间:"+n(t.printInfo.reservation_date)+" "+n(t.printInfo.period_begin_time.substring(0,5))+"-"+n(t.printInfo.period_end_time.substring(0,5))+" "+n(t.printInfo.weekday_label),1),e("div",null,"检查地点:"+n(((s=t.printInfo.department_resources)==null?void 0:s.department_resources_addr)||((r=t.printInfo.department_resources)==null?void 0:r.department_resources_name)),1)]),i[2]||(i[2]=f('
温馨提示:
1、预约后请您及时缴费,门诊患者预约成功后60分钟内不缴费,系统会自动取消您的预约申请。自动取消后,如需继续预约,请到相关检查科室重新预约。
2、预约时间为8点~10点的,请8点到登记处签到,预约时间为10点~12点的,请10点前到登记处签到,便于工作人员进行检查评估和准备。
3、预约时间不是实际检查时间,以现场登记后排队号为准。
检查须知:
腹部检查禁食4小时,腹部、盆腔、泌尿系统检查请尽量饮水,充盈肠道及膀胱;危重病人需由家属陪同;孕妇及婴幼儿请慎行检查。
',2)),e("div",Q," 申请时间:"+n(t.printInfo.entrust_date)+" "+n(t.printInfo.entrust_time),1)])}}},V=l(B,[["__scopeId","data-v-470e9c8b"]]);export{V as S}; diff --git a/Laravel/public/admin/assets/RatioMngr-418b2153.js b/Laravel/public/dist/assets/RatioMngr-251a9344.js similarity index 97% rename from Laravel/public/admin/assets/RatioMngr-418b2153.js rename to Laravel/public/dist/assets/RatioMngr-251a9344.js index b275d7d..b655e9f 100644 --- a/Laravel/public/admin/assets/RatioMngr-418b2153.js +++ b/Laravel/public/dist/assets/RatioMngr-251a9344.js @@ -1 +1 @@ -import{o as z,r as d,c as L,d as p,e as _,k as r,q as x,h as T,i as u,f as v,w as g,aX as j,E as m,bk as A,F as b,t as V,j as w,g as R}from"./index-af171713.js";const D={style:{display:"flex"}},F={style:{width:"750px","margin-right":"40px"}},G={style:{display:"flex"}},S={style:{display:"flex","justify-content":"center","align-items":"center"}},X={__name:"RatioMngr",setup(q){let t=R([]),c=R(!1);const h=()=>{c.value=!0,j({}).then(o=>{c.value=!1,o.status?t.value=o.data:m.error(o.msg)})},C=()=>{let o=!1,e=0;if(t.value.forEach((l,n)=>{l.ratio>=0&&l.ratio<=100?e=e+Number(l.ratio):m.error("第"+(n+1)+"个渠道数据不正确")}),e==100?o=!0:(o=!1,m.error("各渠道总和应为100,当前为"+e)),!o)return!1;c.value=!0,A({ratioInfo:t.value}).then(l=>{c.value=!1,l.status?(m({message:"保存成功",type:"success"}),h()):m.error(l.msg)})},I=o=>t.value.filter(e=>e.id!==o.id),E=(o,e)=>{const l=t.value[o].id;t.value.forEach(n=>{if(n.id===l)return;const s=e.includes(n.id),f=n.link.includes(l);s&&!f?n.link.push(l):!s&&f&&(n.link=n.link.filter(y=>y!==l))})},B=(o,e)=>{const l=t.value[o].id,n=t.value.find(s=>s.id===e);n&&(n.link=n.link.filter(s=>s!==l))};return z(()=>{h()}),(o,e)=>{const l=d("el-input"),n=d("el-option"),s=d("el-select"),f=d("el-form-item"),y=d("el-form"),M=d("el-button"),N=L("loading");return p(),_("div",null,[e[3]||(e[3]=r("div",{style:{margin:"12px",color:"#999"}},[x(" 设置说明: "),r("div",null,"1:预约渠道设置默认数量百分比,用于为“预约计划”按比例自动分配数量,此次设置各个渠道的数值总数应为100,如果不想给某个渠道分配可设置为0 "),r("div",null," 2:渠道合并,合并后的号源池可共用 ")],-1)),T((p(),_("div",D,[r("div",F,[v(y,{model:u(t),"label-width":"auto",style:{"max-width":"600px"}},{default:g(()=>[(p(!0),_(b,null,V(u(t),(k,i)=>(p(),w(f,{key:i,label:k.name},{default:g(()=>[r("div",G,[v(l,{size:"large",type:"number",min:"0",max:"100",modelValue:u(t)[i].ratio,"onUpdate:modelValue":a=>u(t)[i].ratio=a,style:{"margin-left":"10px",width:"250px"}},null,8,["modelValue","onUpdate:modelValue"]),e[0]||(e[0]=r("div",{style:{"margin-left":"10px","margin-right":"40px"}},"%",-1)),e[1]||(e[1]=r("div",{style:{width:"100px",color:"#75b96c"}},"号源池合并",-1)),v(s,{size:"large",modelValue:u(t)[i].link,"onUpdate:modelValue":a=>u(t)[i].link=a,multiple:"",placeholder:"未合并",style:{width:"240px"},onRemoveTag:a=>B(i,a),onChange:a=>E(i,u(t)[i].link)},{default:g(()=>[(p(!0),_(b,null,V(I(k),(a,U)=>(p(),w(n,{key:U,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onRemoveTag","onChange"])])]),_:2},1032,["label"]))),128))]),_:1},8,["model"])]),r("div",S,[v(M,{type:"primary",onClick:C,style:{height:"70px",width:"100px"}},{default:g(()=>[...e[2]||(e[2]=[x(" 确定 ",-1)])]),_:1})])])),[[N,u(c)]])])}}};export{X as default}; +import{o as z,r as d,c as L,d as p,e as _,k as r,q as x,h as T,i as u,f as v,w as g,aX as j,E as m,bk as A,F as b,t as V,j as w,g as R}from"./index-e65958bd.js";const D={style:{display:"flex"}},F={style:{width:"750px","margin-right":"40px"}},G={style:{display:"flex"}},S={style:{display:"flex","justify-content":"center","align-items":"center"}},X={__name:"RatioMngr",setup(q){let t=R([]),c=R(!1);const h=()=>{c.value=!0,j({}).then(o=>{c.value=!1,o.status?t.value=o.data:m.error(o.msg)})},C=()=>{let o=!1,e=0;if(t.value.forEach((l,n)=>{l.ratio>=0&&l.ratio<=100?e=e+Number(l.ratio):m.error("第"+(n+1)+"个渠道数据不正确")}),e==100?o=!0:(o=!1,m.error("各渠道总和应为100,当前为"+e)),!o)return!1;c.value=!0,A({ratioInfo:t.value}).then(l=>{c.value=!1,l.status?(m({message:"保存成功",type:"success"}),h()):m.error(l.msg)})},I=o=>t.value.filter(e=>e.id!==o.id),E=(o,e)=>{const l=t.value[o].id;t.value.forEach(n=>{if(n.id===l)return;const s=e.includes(n.id),f=n.link.includes(l);s&&!f?n.link.push(l):!s&&f&&(n.link=n.link.filter(y=>y!==l))})},B=(o,e)=>{const l=t.value[o].id,n=t.value.find(s=>s.id===e);n&&(n.link=n.link.filter(s=>s!==l))};return z(()=>{h()}),(o,e)=>{const l=d("el-input"),n=d("el-option"),s=d("el-select"),f=d("el-form-item"),y=d("el-form"),M=d("el-button"),N=L("loading");return p(),_("div",null,[e[3]||(e[3]=r("div",{style:{margin:"12px",color:"#999"}},[x(" 设置说明: "),r("div",null,"1:预约渠道设置默认数量百分比,用于为“预约计划”按比例自动分配数量,此次设置各个渠道的数值总数应为100,如果不想给某个渠道分配可设置为0 "),r("div",null," 2:渠道合并,合并后的号源池可共用 ")],-1)),T((p(),_("div",D,[r("div",F,[v(y,{model:u(t),"label-width":"auto",style:{"max-width":"600px"}},{default:g(()=>[(p(!0),_(b,null,V(u(t),(k,i)=>(p(),w(f,{key:i,label:k.name},{default:g(()=>[r("div",G,[v(l,{size:"large",type:"number",min:"0",max:"100",modelValue:u(t)[i].ratio,"onUpdate:modelValue":a=>u(t)[i].ratio=a,style:{"margin-left":"10px",width:"250px"}},null,8,["modelValue","onUpdate:modelValue"]),e[0]||(e[0]=r("div",{style:{"margin-left":"10px","margin-right":"40px"}},"%",-1)),e[1]||(e[1]=r("div",{style:{width:"100px",color:"#75b96c"}},"号源池合并",-1)),v(s,{size:"large",modelValue:u(t)[i].link,"onUpdate:modelValue":a=>u(t)[i].link=a,multiple:"",placeholder:"未合并",style:{width:"240px"},onRemoveTag:a=>B(i,a),onChange:a=>E(i,u(t)[i].link)},{default:g(()=>[(p(!0),_(b,null,V(I(k),(a,U)=>(p(),w(n,{key:U,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onRemoveTag","onChange"])])]),_:2},1032,["label"]))),128))]),_:1},8,["model"])]),r("div",S,[v(M,{type:"primary",onClick:C,style:{height:"70px",width:"100px"}},{default:g(()=>[...e[2]||(e[2]=[x(" 确定 ",-1)])]),_:1})])])),[[N,u(c)]])])}}};export{X as default}; diff --git a/Laravel/public/admin/assets/RatioMngr-f72113b2.css b/Laravel/public/dist/assets/RatioMngr-f72113b2.css similarity index 100% rename from Laravel/public/admin/assets/RatioMngr-f72113b2.css rename to Laravel/public/dist/assets/RatioMngr-f72113b2.css diff --git a/Laravel/public/admin/assets/SystemConfig-397d2158.css b/Laravel/public/dist/assets/SystemConfig-397d2158.css similarity index 100% rename from Laravel/public/admin/assets/SystemConfig-397d2158.css rename to Laravel/public/dist/assets/SystemConfig-397d2158.css diff --git a/Laravel/public/admin/assets/SystemConfig-8cffcb3a.js b/Laravel/public/dist/assets/SystemConfig-6aa7a6d3.js similarity index 98% rename from Laravel/public/admin/assets/SystemConfig-8cffcb3a.js rename to Laravel/public/dist/assets/SystemConfig-6aa7a6d3.js index 016d6b5..c4f4e6f 100644 --- a/Laravel/public/admin/assets/SystemConfig-8cffcb3a.js +++ b/Laravel/public/dist/assets/SystemConfig-6aa7a6d3.js @@ -1 +1 @@ -import{_ as G,o as D,r as n,c as M,h as O,i as a,d as r,e as b,f as t,w as l,G as P,g as m,j as v,q as g,x as C,k,U as T,S as $,E as S}from"./index-af171713.js";const q=["src"],A={__name:"SystemConfig",setup(F){let d=m(!1),I=T(),U={Authorization:"Bearer "+sessionStorage.getItem("token")},p=m("");const w=s=>{p.value="https://yj.dev.cjy.net.cn/"+s.data,o.value.站点图片=s.data},j=()=>{d.value=!0,P().then(s=>{d.value=!1,s.status&&(o.value.站点名称=s.data.站点名称,o.value.站点图片=s.data.站点图片,p.value="https://yj.dev.cjy.net.cn/"+o.value.站点图片,o.value.门诊缴费超时时间=s.data.门诊缴费超时时间,o.value.门诊缴费轮询间隔=s.data.门诊缴费轮询间隔)})};let o=m({站点名称:"",站点图片:""});const x=s=>{d.value=!0,$({info:s}).then(e=>{d.value=!1,e.status?(S({message:"保存成功",type:"success"}),setTimeout(()=>{location.reload()},500)):S.error(e.msg)})};let c=m(null);return sessionStorage.getItem("LoginUserInfo")&&(c.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),D(()=>{j()}),(s,e)=>{const u=n("el-col"),f=n("el-row"),z=n("Plus"),B=n("el-icon"),N=n("el-upload"),_=n("el-form-item"),y=n("el-input"),V=n("el-button"),L=n("el-form"),E=M("loading");return O((r(),b("div",null,[t(L,{"label-width":"180px",style:{border:"1px solid #e9e9e9","border-radius":"5px","margin-top":"8px"}},{default:l(()=>[a(c).group==5?(r(),v(f,{key:0,style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[...e[5]||(e[5]=[g(" 站点信息 ",-1)])]),_:1})]),_:1})):C("",!0),a(c).group==5?(r(),v(f,{key:1,style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[t(_,{label:"Logo"},{default:l(()=>[t(N,{style:{"margin-left":"20px"},class:"avatar-uploader",action:a(I),headers:a(U),"show-file-list":!1,"on-success":w},{default:l(()=>[a(p)?(r(),b("img",{key:0,src:a(p),class:"avatar"},null,8,q)):(r(),v(B,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[t(z)]),_:1}))]),_:1},8,["action","headers"])]),_:1}),t(_,{label:"站点名称"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).站点名称,"onUpdate:modelValue":e[0]||(e[0]=i=>a(o).站点名称=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"])]),_:1})]),_:1}),t(u,{span:8,style:{display:"flex","align-items":"center"}},{default:l(()=>[t(V,{type:"primary",size:"large",onClick:e[1]||(e[1]=i=>x({站点名称:a(o).站点名称,站点图片:a(o).站点图片}))},{default:l(()=>[...e[6]||(e[6]=[g("保 存",-1)])]),_:1})]),_:1})]),_:1})):C("",!0),t(f,{style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[...e[7]||(e[7]=[g(" 缴费截止时间设置 ",-1)])]),_:1})]),_:1}),t(f,{style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[t(_,{label:"缴费截止时间(单位:小时)"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).门诊缴费超时时间,"onUpdate:modelValue":e[2]||(e[2]=i=>a(o).门诊缴费超时时间=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"]),e[8]||(e[8]=k("span",{class:"tishi"},"*门诊患者医嘱对应检查项目预约成功后超过设置时间未缴费将被取消预约",-1))]),_:1}),t(_,{label:"缴费截止时间(单位:小时)"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).门诊缴费轮询间隔,"onUpdate:modelValue":e[3]||(e[3]=i=>a(o).门诊缴费轮询间隔=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"]),e[9]||(e[9]=k("span",{class:"tishi"},"*设置多少分钟进行一次门诊预约是否缴费检查",-1))]),_:1})]),_:1}),t(u,{span:8,style:{display:"flex","align-items":"center"}},{default:l(()=>[t(V,{type:"primary",size:"large",onClick:e[4]||(e[4]=i=>x({门诊缴费超时时间:a(o).门诊缴费超时时间,门诊缴费轮询间隔:a(o).门诊缴费轮询间隔}))},{default:l(()=>[...e[10]||(e[10]=[g("保 存",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])),[[E,a(d)]])}}},H=G(A,[["__scopeId","data-v-175b0430"]]);export{H as default}; +import{_ as G,o as D,r as n,c as M,h as O,i as a,d as r,e as b,f as t,w as l,G as P,g as m,j as v,q as g,x as C,k,U as T,S as $,E as S}from"./index-e65958bd.js";const q=["src"],A={__name:"SystemConfig",setup(F){let d=m(!1),I=T(),U={Authorization:"Bearer "+sessionStorage.getItem("token")},p=m("");const w=s=>{p.value="https://yj.dev.cjy.net.cn/"+s.data,o.value.站点图片=s.data},j=()=>{d.value=!0,P().then(s=>{d.value=!1,s.status&&(o.value.站点名称=s.data.站点名称,o.value.站点图片=s.data.站点图片,p.value="https://yj.dev.cjy.net.cn/"+o.value.站点图片,o.value.门诊缴费超时时间=s.data.门诊缴费超时时间,o.value.门诊缴费轮询间隔=s.data.门诊缴费轮询间隔)})};let o=m({站点名称:"",站点图片:""});const x=s=>{d.value=!0,$({info:s}).then(e=>{d.value=!1,e.status?(S({message:"保存成功",type:"success"}),setTimeout(()=>{location.reload()},500)):S.error(e.msg)})};let c=m(null);return sessionStorage.getItem("LoginUserInfo")&&(c.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),D(()=>{j()}),(s,e)=>{const u=n("el-col"),f=n("el-row"),z=n("Plus"),B=n("el-icon"),N=n("el-upload"),_=n("el-form-item"),y=n("el-input"),V=n("el-button"),L=n("el-form"),E=M("loading");return O((r(),b("div",null,[t(L,{"label-width":"180px",style:{border:"1px solid #e9e9e9","border-radius":"5px","margin-top":"8px"}},{default:l(()=>[a(c).group==5?(r(),v(f,{key:0,style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[...e[5]||(e[5]=[g(" 站点信息 ",-1)])]),_:1})]),_:1})):C("",!0),a(c).group==5?(r(),v(f,{key:1,style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[t(_,{label:"Logo"},{default:l(()=>[t(N,{style:{"margin-left":"20px"},class:"avatar-uploader",action:a(I),headers:a(U),"show-file-list":!1,"on-success":w},{default:l(()=>[a(p)?(r(),b("img",{key:0,src:a(p),class:"avatar"},null,8,q)):(r(),v(B,{key:1,class:"avatar-uploader-icon"},{default:l(()=>[t(z)]),_:1}))]),_:1},8,["action","headers"])]),_:1}),t(_,{label:"站点名称"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).站点名称,"onUpdate:modelValue":e[0]||(e[0]=i=>a(o).站点名称=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"])]),_:1})]),_:1}),t(u,{span:8,style:{display:"flex","align-items":"center"}},{default:l(()=>[t(V,{type:"primary",size:"large",onClick:e[1]||(e[1]=i=>x({站点名称:a(o).站点名称,站点图片:a(o).站点图片}))},{default:l(()=>[...e[6]||(e[6]=[g("保 存",-1)])]),_:1})]),_:1})]),_:1})):C("",!0),t(f,{style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[...e[7]||(e[7]=[g(" 缴费截止时间设置 ",-1)])]),_:1})]),_:1}),t(f,{style:{padding:"20px",margin:"10px"}},{default:l(()=>[t(u,{span:16},{default:l(()=>[t(_,{label:"缴费截止时间(单位:小时)"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).门诊缴费超时时间,"onUpdate:modelValue":e[2]||(e[2]=i=>a(o).门诊缴费超时时间=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"]),e[8]||(e[8]=k("span",{class:"tishi"},"*门诊患者医嘱对应检查项目预约成功后超过设置时间未缴费将被取消预约",-1))]),_:1}),t(_,{label:"缴费截止时间(单位:小时)"},{default:l(()=>[t(y,{size:"large",modelValue:a(o).门诊缴费轮询间隔,"onUpdate:modelValue":e[3]||(e[3]=i=>a(o).门诊缴费轮询间隔=i),placeholder:"名称",style:{margin:"auto 20px"}},null,8,["modelValue"]),e[9]||(e[9]=k("span",{class:"tishi"},"*设置多少分钟进行一次门诊预约是否缴费检查",-1))]),_:1})]),_:1}),t(u,{span:8,style:{display:"flex","align-items":"center"}},{default:l(()=>[t(V,{type:"primary",size:"large",onClick:e[4]||(e[4]=i=>x({门诊缴费超时时间:a(o).门诊缴费超时时间,门诊缴费轮询间隔:a(o).门诊缴费轮询间隔}))},{default:l(()=>[...e[10]||(e[10]=[g("保 存",-1)])]),_:1})]),_:1})]),_:1})]),_:1})])),[[E,a(d)]])}}},H=G(A,[["__scopeId","data-v-175b0430"]]);export{H as default}; diff --git a/Laravel/public/admin/assets/TimePeriodMngr-9f341a5d.js b/Laravel/public/dist/assets/TimePeriodMngr-b7a97287.js similarity index 98% rename from Laravel/public/admin/assets/TimePeriodMngr-9f341a5d.js rename to Laravel/public/dist/assets/TimePeriodMngr-b7a97287.js index d0d958a..fe9242a 100644 --- a/Laravel/public/admin/assets/TimePeriodMngr-9f341a5d.js +++ b/Laravel/public/dist/assets/TimePeriodMngr-b7a97287.js @@ -1 +1 @@ -import{o as ee,r as d,c as te,d as f,e as B,k as z,f as l,w as o,h as L,i as n,j as k,l as x,g as m,aP as le,E as V,aQ as ae,F as oe,t as ne,q as s,x as I,aR as ie,N as de,aS as re}from"./index-af171713.js";const se={class:"head"},ue={class:"page"},pe={class:"dialog-footer"},ge={__name:"TimePeriodMngr",setup(me){let u=m(!1),R=m([]),v=m(1),b=m(15),c=0;const N=i=>{b.value=i,_()},G=i=>{v.value=i,_()};let P=m([]);const H=()=>{u.value=!0,le({}).then(i=>{u.value=!1,i.status?P.value=i.data.list:V.error(i.msg)})};let r=m(!1);const _=()=>{ae({page:v.value,pageSize:b.value,searchInfo:g.value}).then(i=>{R.value=i.data.list,c=i.data.count})},M=()=>{if(a.value.timeRange.length!==2)return V.error("请选择时间段"),!1;if(a.value.period_name=="")return V.error("请输入名称"),!1;if(a.value.period_deadline=="")return V.error("请输入截止时间"),!1;a.value.period_begin_time=a.value.timeRange[0],a.value.period_end_time=a.value.timeRange[1],a.value.date_type=g.value.date_type,u.value=!0,ie({PeriodInfo:a.value}).then(i=>{u.value=!1,i.status?(r.value=!1,_()):V.error(i.msg)})};let g=m({department_id:null}),a=m({id:0,period_name:"",period_begin_time:"",period_end_time:"",period_deadline:"",period_status:"1",timeRange:[]});const $=i=>{let e=i;r.value=!0,a.value=e,a.value.timeRange=[a.value.period_begin_time,a.value.period_end_time],a.value.period_status=e.period_status.toString(),console.log(a.value)},F=()=>{r.value=!0,a.value={id:0,period_name:"",period_begin_time:"",period_end_time:"",period_deadline:"",period_status:"1",timeRange:[]}},j=i=>{de.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{u.value=!0,re({id:i}).then(e=>{u.value=!1,e.status?(r.value=!1,_()):V.error(e.msg)})})},q=()=>{a.value.period_deadline=a.value.timeRange[1]},A=()=>{_()};return ee(()=>{g.value.date_type=1,_(),H()}),(i,e)=>{const Q=d("el-option"),J=d("el-select"),C=d("el-form-item"),y=d("el-button"),D=d("el-row"),S=d("el-radio-button"),K=d("el-radio-group"),p=d("el-table-column"),T=d("el-tag"),O=d("el-table"),W=d("el-pagination"),X=d("el-input"),U=d("el-time-picker"),Y=d("el-switch"),Z=d("el-form"),h=d("el-dialog"),E=te("loading");return f(),B("div",null,[z("div",se,[l(D,null,{default:o(()=>[l(C,null,{default:o(()=>[l(J,{filterable:!0,clearable:"",modelValue:n(g).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(g).department_id=t),placeholder:"选择科室"},{default:o(()=>[(f(!0),B(oe,null,ne(n(P),(t,w)=>(f(),k(Q,{key:w,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{onClick:e[1]||(e[1]=t=>_()),style:{"margin-left":"10px"}},{default:o(()=>[...e[14]||(e[14]=[s("搜索",-1)])]),_:1}),l(y,{type:"primary",onClick:e[2]||(e[2]=t=>F()),style:{"margin-left":"10px"}},{default:o(()=>[...e[15]||(e[15]=[s("添加",-1)])]),_:1})]),_:1})]),l(D,null,{default:o(()=>[l(K,{style:{"margin-bottom":"8px"},modelValue:n(g).date_type,"onUpdate:modelValue":e[3]||(e[3]=t=>n(g).date_type=t),onChange:e[4]||(e[4]=t=>A())},{default:o(()=>[l(S,{label:1},{default:o(()=>[...e[16]||(e[16]=[s("工作日",-1)])]),_:1}),l(S,{label:2},{default:o(()=>[...e[17]||(e[17]=[s("节假日",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),L((f(),k(O,{data:n(R),style:{width:"100%"},"row-key":"id"},{default:o(()=>[l(p,{prop:"id",label:"Id",width:"100"}),l(p,{prop:"department_name",label:"科室名称"}),l(p,{prop:"period_name",label:"时间段名称"}),l(p,{prop:"period_begin_time",label:"开始时间"}),l(p,{prop:"period_end_time",label:"结束时间"}),l(p,{prop:"period_deadline",label:"预约截止时间"}),l(p,{prop:"period_status",label:"状态"},{default:o(t=>[t.row.period_status==1?(f(),k(T,{key:0,class:"ml-2",type:"success"},{default:o(()=>[...e[18]||(e[18]=[s("正常",-1)])]),_:1})):I("",!0),t.row.period_status==0?(f(),k(T,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[...e[19]||(e[19]=[s("关闭",-1)])]),_:1})):I("",!0)]),_:1}),l(p,{prop:"",label:"操作"},{default:o(t=>[l(y,{type:"primary",onClick:w=>$(t.row),size:"small",style:{"margin-left":"10px"}},{default:o(()=>[...e[20]||(e[20]=[s("修改",-1)])]),_:1},8,["onClick"]),l(y,{type:"danger",onClick:w=>j(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:o(()=>[...e[21]||(e[21]=[s("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[E,n(u)]]),z("div",ue,[l(W,{"current-page":n(v),"onUpdate:currentPage":e[5]||(e[5]=t=>x(v)?v.value=t:v=t),"page-size":n(b),"onUpdate:pageSize":e[6]||(e[6]=t=>x(b)?b.value=t:b=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(c),onSizeChange:N,onCurrentChange:G},null,8,["current-page","page-size","total"])]),l(h,{modelValue:n(r),"onUpdate:modelValue":e[13]||(e[13]=t=>x(r)?r.value=t:r=t),title:"时间段",width:"40%"},{footer:o(()=>[z("span",pe,[l(y,{onClick:e[12]||(e[12]=t=>x(r)?r.value=!1:r=!1)},{default:o(()=>[...e[22]||(e[22]=[s("取消",-1)])]),_:1}),l(y,{type:"primary",onClick:M},{default:o(()=>[...e[23]||(e[23]=[s(" 确定 ",-1)])]),_:1})])]),default:o(()=>[L((f(),k(Z,{model:n(a),"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[l(C,{label:"时间段名称:"},{default:o(()=>[l(X,{modelValue:n(a).period_name,"onUpdate:modelValue":e[7]||(e[7]=t=>n(a).period_name=t)},null,8,["modelValue"])]),_:1}),l(C,{label:"时间段:"},{default:o(()=>[l(U,{modelValue:n(a).timeRange,"onUpdate:modelValue":e[8]||(e[8]=t=>n(a).timeRange=t),"value-format":"HH:mm:ss","is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:e[9]||(e[9]=t=>q())},null,8,["modelValue"])]),_:1}),l(C,{label:"预约截止时间:"},{default:o(()=>[l(U,{modelValue:n(a).period_deadline,"onUpdate:modelValue":e[10]||(e[10]=t=>n(a).period_deadline=t),"value-format":"HH:mm:ss",placeholder:"预约截止时间"},null,8,["modelValue"])]),_:1}),l(C,{label:"状态:"},{default:o(()=>[l(Y,{modelValue:n(a).period_status,"onUpdate:modelValue":e[11]||(e[11]=t=>n(a).period_status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[E,n(u)]])]),_:1},8,["modelValue"])])}}};export{ge as default}; +import{o as ee,r as d,c as te,d as f,e as B,k as z,f as l,w as o,h as L,i as n,j as k,l as x,g as m,aP as le,E as V,aQ as ae,F as oe,t as ne,q as s,x as I,aR as ie,N as de,aS as re}from"./index-e65958bd.js";const se={class:"head"},ue={class:"page"},pe={class:"dialog-footer"},ge={__name:"TimePeriodMngr",setup(me){let u=m(!1),R=m([]),v=m(1),b=m(15),c=0;const N=i=>{b.value=i,_()},G=i=>{v.value=i,_()};let P=m([]);const H=()=>{u.value=!0,le({}).then(i=>{u.value=!1,i.status?P.value=i.data.list:V.error(i.msg)})};let r=m(!1);const _=()=>{ae({page:v.value,pageSize:b.value,searchInfo:g.value}).then(i=>{R.value=i.data.list,c=i.data.count})},M=()=>{if(a.value.timeRange.length!==2)return V.error("请选择时间段"),!1;if(a.value.period_name=="")return V.error("请输入名称"),!1;if(a.value.period_deadline=="")return V.error("请输入截止时间"),!1;a.value.period_begin_time=a.value.timeRange[0],a.value.period_end_time=a.value.timeRange[1],a.value.date_type=g.value.date_type,u.value=!0,ie({PeriodInfo:a.value}).then(i=>{u.value=!1,i.status?(r.value=!1,_()):V.error(i.msg)})};let g=m({department_id:null}),a=m({id:0,period_name:"",period_begin_time:"",period_end_time:"",period_deadline:"",period_status:"1",timeRange:[]});const $=i=>{let e=i;r.value=!0,a.value=e,a.value.timeRange=[a.value.period_begin_time,a.value.period_end_time],a.value.period_status=e.period_status.toString(),console.log(a.value)},F=()=>{r.value=!0,a.value={id:0,period_name:"",period_begin_time:"",period_end_time:"",period_deadline:"",period_status:"1",timeRange:[]}},j=i=>{de.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{u.value=!0,re({id:i}).then(e=>{u.value=!1,e.status?(r.value=!1,_()):V.error(e.msg)})})},q=()=>{a.value.period_deadline=a.value.timeRange[1]},A=()=>{_()};return ee(()=>{g.value.date_type=1,_(),H()}),(i,e)=>{const Q=d("el-option"),J=d("el-select"),C=d("el-form-item"),y=d("el-button"),D=d("el-row"),S=d("el-radio-button"),K=d("el-radio-group"),p=d("el-table-column"),T=d("el-tag"),O=d("el-table"),W=d("el-pagination"),X=d("el-input"),U=d("el-time-picker"),Y=d("el-switch"),Z=d("el-form"),h=d("el-dialog"),E=te("loading");return f(),B("div",null,[z("div",se,[l(D,null,{default:o(()=>[l(C,null,{default:o(()=>[l(J,{filterable:!0,clearable:"",modelValue:n(g).department_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n(g).department_id=t),placeholder:"选择科室"},{default:o(()=>[(f(!0),B(oe,null,ne(n(P),(t,w)=>(f(),k(Q,{key:w,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(y,{onClick:e[1]||(e[1]=t=>_()),style:{"margin-left":"10px"}},{default:o(()=>[...e[14]||(e[14]=[s("搜索",-1)])]),_:1}),l(y,{type:"primary",onClick:e[2]||(e[2]=t=>F()),style:{"margin-left":"10px"}},{default:o(()=>[...e[15]||(e[15]=[s("添加",-1)])]),_:1})]),_:1})]),l(D,null,{default:o(()=>[l(K,{style:{"margin-bottom":"8px"},modelValue:n(g).date_type,"onUpdate:modelValue":e[3]||(e[3]=t=>n(g).date_type=t),onChange:e[4]||(e[4]=t=>A())},{default:o(()=>[l(S,{label:1},{default:o(()=>[...e[16]||(e[16]=[s("工作日",-1)])]),_:1}),l(S,{label:2},{default:o(()=>[...e[17]||(e[17]=[s("节假日",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),L((f(),k(O,{data:n(R),style:{width:"100%"},"row-key":"id"},{default:o(()=>[l(p,{prop:"id",label:"Id",width:"100"}),l(p,{prop:"department_name",label:"科室名称"}),l(p,{prop:"period_name",label:"时间段名称"}),l(p,{prop:"period_begin_time",label:"开始时间"}),l(p,{prop:"period_end_time",label:"结束时间"}),l(p,{prop:"period_deadline",label:"预约截止时间"}),l(p,{prop:"period_status",label:"状态"},{default:o(t=>[t.row.period_status==1?(f(),k(T,{key:0,class:"ml-2",type:"success"},{default:o(()=>[...e[18]||(e[18]=[s("正常",-1)])]),_:1})):I("",!0),t.row.period_status==0?(f(),k(T,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[...e[19]||(e[19]=[s("关闭",-1)])]),_:1})):I("",!0)]),_:1}),l(p,{prop:"",label:"操作"},{default:o(t=>[l(y,{type:"primary",onClick:w=>$(t.row),size:"small",style:{"margin-left":"10px"}},{default:o(()=>[...e[20]||(e[20]=[s("修改",-1)])]),_:1},8,["onClick"]),l(y,{type:"danger",onClick:w=>j(t.row.id),size:"small",style:{"margin-left":"10px"}},{default:o(()=>[...e[21]||(e[21]=[s("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[E,n(u)]]),z("div",ue,[l(W,{"current-page":n(v),"onUpdate:currentPage":e[5]||(e[5]=t=>x(v)?v.value=t:v=t),"page-size":n(b),"onUpdate:pageSize":e[6]||(e[6]=t=>x(b)?b.value=t:b=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(c),onSizeChange:N,onCurrentChange:G},null,8,["current-page","page-size","total"])]),l(h,{modelValue:n(r),"onUpdate:modelValue":e[13]||(e[13]=t=>x(r)?r.value=t:r=t),title:"时间段",width:"40%"},{footer:o(()=>[z("span",pe,[l(y,{onClick:e[12]||(e[12]=t=>x(r)?r.value=!1:r=!1)},{default:o(()=>[...e[22]||(e[22]=[s("取消",-1)])]),_:1}),l(y,{type:"primary",onClick:M},{default:o(()=>[...e[23]||(e[23]=[s(" 确定 ",-1)])]),_:1})])]),default:o(()=>[L((f(),k(Z,{model:n(a),"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[l(C,{label:"时间段名称:"},{default:o(()=>[l(X,{modelValue:n(a).period_name,"onUpdate:modelValue":e[7]||(e[7]=t=>n(a).period_name=t)},null,8,["modelValue"])]),_:1}),l(C,{label:"时间段:"},{default:o(()=>[l(U,{modelValue:n(a).timeRange,"onUpdate:modelValue":e[8]||(e[8]=t=>n(a).timeRange=t),"value-format":"HH:mm:ss","is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:e[9]||(e[9]=t=>q())},null,8,["modelValue"])]),_:1}),l(C,{label:"预约截止时间:"},{default:o(()=>[l(U,{modelValue:n(a).period_deadline,"onUpdate:modelValue":e[10]||(e[10]=t=>n(a).period_deadline=t),"value-format":"HH:mm:ss",placeholder:"预约截止时间"},null,8,["modelValue"])]),_:1}),l(C,{label:"状态:"},{default:o(()=>[l(Y,{modelValue:n(a).period_status,"onUpdate:modelValue":e[11]||(e[11]=t=>n(a).period_status=t),size:"large","active-text":"正常","inactive-text":"关闭","active-value":"1","inactive-value":"0"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[E,n(u)]])]),_:1},8,["modelValue"])])}}};export{ge as default}; diff --git a/Laravel/public/dist/assets/YuYue202506-a7b0563c.css b/Laravel/public/dist/assets/YuYue202506-a7b0563c.css new file mode 100644 index 0000000..3b8b948 --- /dev/null +++ b/Laravel/public/dist/assets/YuYue202506-a7b0563c.css @@ -0,0 +1 @@ +@charset "UTF-8";.YuYue202506[data-v-0312b1a5]{display:flex;flex-direction:column;height:100%}.patientInfo[data-v-0312b1a5]{display:flex;align-items:center;flex-shrink:0}.patientInfo .item[data-v-0312b1a5]{margin-right:18px}.patientInfo .name[data-v-0312b1a5]{font-size:20px;font-weight:700}.patientInfo .value[data-v-0312b1a5]{font-size:18px;font-weight:700}.entrustList[data-v-0312b1a5]{flex:1;min-height:0;overflow:auto}.entrustList .errMsg[data-v-0312b1a5]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo[data-v-0312b1a5]{max-height:600px;overflow:auto;flex-shrink:0}.planInfo .planTable[data-v-0312b1a5]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-0312b1a5]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-0312b1a5]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-0312b1a5]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-0312b1a5]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-0312b1a5]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-0312b1a5]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button_recommend[data-v-0312b1a5]{width:180px}.planInfo .do_button[data-v-0312b1a5]{width:100px}.ZhenShiButton[data-v-0312b1a5]{text-align:center;font-size:14px;background-color:#fff;border:1px solid #e8e8e8;width:120px;cursor:default;display:flex;justify-content:center;align-items:center;padding:4px}.zhenshiButton_active[data-v-0312b1a5]{background-color:#5bc0de;color:#fff}[data-v-0312b1a5] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-0312b1a5] .el-table .selected-row{background-color:#9cd0de}.tip-pre-line{white-space:pre-line;font-size:16px} diff --git a/Laravel/public/admin/assets/YuYue202506-e01c0944.js b/Laravel/public/dist/assets/YuYue202506-f1503368.js similarity index 62% rename from Laravel/public/admin/assets/YuYue202506-e01c0944.js rename to Laravel/public/dist/assets/YuYue202506-f1503368.js index 7da222c..23cbf1b 100644 --- a/Laravel/public/admin/assets/YuYue202506-e01c0944.js +++ b/Laravel/public/dist/assets/YuYue202506-f1503368.js @@ -1,3 +1,3 @@ -import{_ as ht,Z as Pe,o as bt,r as F,c as Ge,d as k,e as C,i as h,k as D,v as N,q as M,x as B,j as de,w as b,h as ze,f as x,F as me,t as ce,$ as Ue,l as H,y as De,g as w,Q as Ae,E as Y,a0 as yt,a1 as vt,a2 as fe,N as ae,a3 as wt,a4 as We,a5 as St,a6 as kt}from"./index-af171713.js";import{S as Et}from"./PrintShenQingDan-7546836f.js";const Dt={class:"YuYue202506"},It={key:0,class:"patientInfo"},Ct={class:"item"},Tt={class:"name"},Mt={class:"item"},Nt={class:"value"},Vt={class:"item"},Bt={class:"value"},Pt={key:0,class:"item"},zt={class:"value"},Yt={key:1,class:"item"},Rt={class:"value"},$t={key:2,class:"item"},Ot={class:"value"},Lt={key:1},Ht={class:"entrustList"},Jt={key:0,style:{"font-size":"12px",color:"#909399"}},Ft={style:{"margin-right":"4px",color:"#999"}},jt={key:0,class:"errMsg"},qt={key:1},Gt={key:0},Ut={key:1},At={key:0,style:{color:"orangered"}},Wt={key:1},Zt={key:0},Qt={key:0},Kt={key:1},Xt={class:"planInfo"},ed={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"8px","margin-bottom":"8px"}},td={style:{display:"flex","align-items":"center"}},dd=["onClick"],nd={style:{display:"flex","flex-direction":"column","margin-left":"12px"}},sd={style:{border:"1px solid #efefef"}},ad={class:"planTable"},id={key:0,style:{"background-color":"#f1f1f1"}},ld={style:{"font-weight":"700"}},rd=["onClick"],od={key:0},ud={key:0},pd={key:1,style:{"background-color":"#fff"}},_d={key:3,id:"shenqingdan",style:{position:"relative"}},md={class:"dialog-footer"},cd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},fd=["innerHTML"],gd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},xd=["innerHTML"],hd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},bd=["innerHTML"],yd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},vd=["innerHTML"],wd=`1.未预约状态,如果多个检查项目能在同一个检查室进行检查,系统会自动选中能一起预约的项目,只需要点击一次预约按钮即可完成预约 +import{_ as ht,Z as Pe,o as bt,r as F,c as Ge,d as k,e as C,i as h,k as D,v as N,q as M,x as B,j as de,w as b,h as ze,f as x,F as me,t as ce,$ as Ue,l as H,y as De,g as w,Q as Ae,E as Y,a0 as yt,a1 as vt,a2 as fe,N as ae,a3 as wt,a4 as We,a5 as St,a6 as kt}from"./index-e65958bd.js";import{S as Et}from"./PrintShenQingDan-80054efb.js";const Dt={class:"YuYue202506"},It={key:0,class:"patientInfo"},Ct={class:"item"},Tt={class:"name"},Mt={class:"item"},Nt={class:"value"},Vt={class:"item"},Bt={class:"value"},Pt={key:0,class:"item"},zt={class:"value"},Yt={key:1,class:"item"},Rt={class:"value"},$t={key:2,class:"item"},Ot={class:"value"},Lt={key:1},Ht={class:"entrustList"},Jt={key:0,style:{"font-size":"12px",color:"#909399"}},Ft={style:{"margin-right":"4px",color:"#999"}},jt={key:0,class:"errMsg"},qt={key:1},Gt={key:0},Ut={key:1},At={key:0,style:{color:"orangered"}},Wt={key:1},Zt={key:0},Qt={key:0},Kt={key:1},Xt={class:"planInfo"},ed={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"8px","margin-bottom":"8px"}},td={style:{display:"flex","align-items":"center"}},dd=["onClick"],nd={style:{display:"flex","flex-direction":"column","margin-left":"12px"}},sd={style:{border:"1px solid #efefef"}},ad={class:"planTable"},id={key:0,style:{"background-color":"#f1f1f1"}},ld={style:{"font-weight":"700"}},rd=["onClick"],od={key:0},ud={key:0},pd={key:1,style:{"background-color":"#fff"}},_d={key:3,id:"shenqingdan",style:{position:"relative"}},md={class:"dialog-footer"},cd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},fd=["innerHTML"],gd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},xd=["innerHTML"],hd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},bd=["innerHTML"],yd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},vd=["innerHTML"],wd=`1.未预约状态,如果多个检查项目能在同一个检查室进行检查,系统会自动选中能一起预约的项目,只需要点击一次预约按钮即可完成预约 2.已预约状态,预约到同一个时段的同一个检查室的项目,系统会自动选中,更改预约或取消预约只需点击一次 -3.不同状态的预约的预约项目无法一起选中`,Sd={__name:"YuYue202506",props:{reg_num:{type:String},entrust_ids:{type:String},episode_id:{type:String},appointment_type:{type:[String,Number]},dotype:{type:Number},do_user:{default:"",type:[String,Number]},special_privileges:{type:Array,default:()=>[]},scope:{type:String,default:"all"}},setup(Ze){const y=Ze;let J=w(null),$=w(null),m=w([]),ie=w([]),ne=w(!1),O=w(!1),Ye=w(null),q=w([]),ge=w([]),V=w(""),P=w(0),R=w([]),L=w([]),v=w([]),Z=w(!0),xe=w([]),se=w(["1"]),Ie=w(!1),Ce=w(!0),he=w("add"),le=w(""),be=w([]),ye=w([]),re=w([]),Te=w(0),Re=w(!1),oe=w(!0),Q=w(!1),j=w(!1),ue=w(""),pe=w(null),_e=w(null),K=w(!1),$e=w(""),X=w(!1),Oe=w(""),G=w(!1),ve=w("");const Qe=a=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const d=new Date(a).getDay();return e[d]},Le=Pe(()=>{const a=v.value.map(d=>{var n;return(n=d.department_resources)==null?void 0:n.department_resources_name}).filter(Boolean),e=[...new Set(a)];if(e.length!==1)return 0;const t=e[0];return m.value.filter(d=>{var n;return((n=d.department_resources)==null?void 0:n.department_resources_name)===t}).length}),He=Pe(()=>y.special_privileges.includes("emergency")),Ke=Pe(()=>{const a=m.value.filter(t=>!!(t.list_status===1&&t.reservation_date||t.list_status===0&&t.temp_plan_id&&t.reservation_date));return a.length<2?!1:new Set(a.map(t=>t.reservation_date)).size>1}),Xe=a=>{var t,d,n,l,o,i,r,c,u,f;if(R.value=[],L.value=[],ge.value=[],ie.value=[],V.value="",v.value=a,console.log("11111",v.value),v.value.forEach((g,_)=>{R.value.push(g.id),L.value.push(g.entrust_id)}),v.value.every(g=>{var _;return g.roster_id===((_=v.value[0])==null?void 0:_.roster_id)}))P.value=(t=v.value[0])==null?void 0:t.roster_id,P.value!==0&&P.value&&(le.value=(d=v.value[0])==null?void 0:d.reservation_date,gt(je(),(n=v.value[0])==null?void 0:n.reservation_date)&&((l=v.value[0])!=null&&l.reservation_date)?A.value=ke((o=v.value[0])==null?void 0:o.reservation_date):A.value=ke(je()),V.value=(r=(i=v.value[0])==null?void 0:i.department_resources)==null?void 0:r.department_resources_name);else if(P.value=0,v.value.length>0){const g=(u=(c=v.value[0])==null?void 0:c.department_resources)==null?void 0:u.execute_department_id;if(g&&v.value.every(S=>{var E;return((E=S.department_resources)==null?void 0:E.execute_department_id)===g})){const S=(f=v.value[0].department_resources)==null?void 0:f.department_resources_name;S&&(V.value=S)}}xe.value.forEach(g=>{v.value.find(_=>_===g)||(he.value="cancel")}),v.value.length==0&&(he.value="add",xe.value=[]),console.log(he.value),L.value.length>0&&Z.value&&(he.value==="add"&&v.value[0].list_status==0&&oe.value?st():ee()),pe.value&&m.value.findIndex(_=>R.value.includes(_.id))+1===pe.value.idx&&(ue.value=pe.value.html,j.value=!0,pe.value=null),_e.value&&m.value.findIndex(_=>R.value.includes(_.id))+1===_e.value.idx&&(ve.value=_e.value.html,G.value=!0,_e.value=null),et()},et=()=>{var t,d;if(v.value.length===0){Ce.value=!0;return}const a=(d=(t=v.value[0])==null?void 0:t.department_resources)==null?void 0:d.execute_department_id;if(a==null){Ce.value=!0;return}const e=v.value.every(n=>{var l;return((l=n.department_resources)==null?void 0:l.execute_department_id)===a});Ce.value=!e},tt=a=>v.value.findIndex(e=>e.id===a.id)>-1,dt=({row:a,rowIndex:e})=>{if(a.tishi_msg!="")return"disabled-row";if(tt(a))return"selected-row"},nt=(a,e)=>a.tishi_msg=="";let we=w([]);const Se=(a,e)=>{let t=R.value;m.value=[],ne.value=!0,Ae({regnum:y.reg_num,entrustid:y.entrust_ids,episodeid:y.episode_id,appointment_type:y.appointment_type}).then(d=>{var n;if(ne.value=!1,d.status){if(d.data.info.length>0){let l=d.data.info;if($.value=l[0].maininfo,l.forEach((o,i)=>{var c,u;let r=o.maininfo;r.tishi_msg=o.msg,r.limosis=(c=o.iteminfo[0])==null?void 0:c.limosis,m.value.push(r),o.msg!=""&&o.msg!=null&&we.value.push({msg:o.msg,item_name:(u=o.iteminfo[0])==null?void 0:u.item_name})}),t.length>0&&!e)t.forEach((o,i)=>{m.value.forEach((r,c)=>{o==r.id&&J.value.toggleRowSelection(m.value[c],!0)})});else for(let o=0;o{var c;r.id!==m.value[o].id&&r.list_status===0&&r.tishi_msg===""&&((c=r.department_resources)==null?void 0:c.department_resources_name)===i&&J.value.toggleRowSelection(r,!0)}),m.value[o].roster_id!=null&&(P.value=m.value[o].roster_id,V.value=i);break}Be.value&&(Be.value=!1,we.value.length>0&&(console.log("22222222222222",we.value),Q.value=!0)),ye.value=JSON.parse(JSON.stringify(m.value)),a&&a()}}else Y.error(d.msg)})},st=()=>{let a=[],e=v.value.length;if(v.value[e-1].list_status!=0)return!1;m.value.forEach((t,d)=>{t.list_status==0&&t.tishi_msg==""&&(t.id==v.value[e-1].id?a.push({name:t.entrust,rowid:d,first:1}):a.push({name:t.entrust,rowid:d,first:0}))}),a.length>=2?(ne.value=!0,yt({items:a}).then(t=>{ne.value=!1,t.status?(a.forEach((n,l)=>{Z.value=!1,J.value.toggleRowSelection(m.value[n.rowid],!1)}),t.data.rowids.forEach((n,l)=>{Z.value=!1,J.value.toggleRowSelection(m.value[n],!0)}),xe.value=v.value,ee()):Y.error(t.msg),Z.value=!0})):(xe.value=v.value,ee())};let A=w([]);const ee=()=>{if(L.value.length==0)return Y.error("请选择检查项目"),!1;O.value=!0,vt({regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,date:A.value,scope:y.scope,do_user:y.do_user}).then(a=>{if(O.value=!1,ie.value=[],ge.value=[],a.status){let e=a.data.plan_list,t=a.data.zhanWeiCount,d=a.data.is_emergency;if(re.value=e,Te.value=t,e.length>0){V.value==""&&(V.value=e[0].department_resources_name);const n=new Set,l=new Set;e.forEach(r=>{if(r.department_resources_name==V.value){const c=`${r.begin_time.substring(0,5)}-${r.end_time.substring(0,5)}`;n.add(c)}l.add(r.department_resources_name)}),ge.value=l,Array.from(n).sort().forEach(r=>{const c={time_range:r};A.value.forEach(u=>{const f=e.find(_=>`${_.begin_time.substring(0,5)}-${_.end_time.substring(0,5)}`===r&&_.date===u&&_.department_resources_name==V.value);let g=!1;f?(f.count-f.used_count>=t&&f.plan_enable===!0&&(g=!0),d===!0&&f.plan_enable===!0&&He.value==!0&&(g=!0),c[u]={use_count:`${f.used_count}/${f.count}`,id:f.id,enable:g}):c[u]={use_count:"0/0",id:null,enable:g}}),ie.value.push(c)}),P.value=0;const i=Je();if(i.length>0)q.value=i,P.value=i[0];else{q.value=[];const r=e.find(c=>c.department_resources_name==V.value&&c.count-c.used_count>=t&&c.plan_enable===!0);r&&(P.value=r.id)}if(!Re.value){Re.value=!0;const r=m.value.filter(c=>c.list_status===0);if(r.length>0){const c=r.map(u=>{var f;return{id:u.id,entrust_id:u.entrust_id,department_resources_name:((f=u.department_resources)==null?void 0:f.department_resources_name)||"",date:u.reservation_date||"",begin_time:u.period_begin_time||"",end_time:u.period_end_time||""}});fe({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:c,scope:y.scope,do_user:y.do_user}).then(u=>{if(u.status){u.data.forEach(p=>{const s=m.value.find(I=>I.id===p.id);s&&(s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=p.department_resources_name,s.reservation_date=p.date,s.period_begin_time=p.begin_time,s.period_end_time=p.end_time,s.temp_plan_id=p.plan_id)});const f={};u.data.forEach(p=>{var I,z;const s=p.department_resources_name;f[s]||(f[s]={items:[],timeSlots:new Set,dates:new Set}),f[s].items.push(p),f[s].timeSlots.add(((I=p.begin_time)==null?void 0:I.substring(0,5))+"-"+((z=p.end_time)==null?void 0:z.substring(0,5))),f[s].dates.add(p.date)});const g=[];for(const[p,s]of Object.entries(f))(s.timeSlots.size>1||s.dates.size>1)&&s.items.forEach(I=>{var te,T,U;const z=m.value.findIndex(W=>W.id===I.id);g.push({idx:z!==-1?z+1:"",room:I.department_resources_name,date:I.date,timeSlot:((te=I.begin_time)==null?void 0:te.substring(0,5))+"-"+((T=I.end_time)==null?void 0:T.substring(0,5)),entrust:((U=m.value.find(W=>W.id===I.id))==null?void 0:U.entrust)||""})});if(g.length>0){let p='';p+='';let s="",I="#f5f5f5";g.sort((T,U)=>T.idx-U.idx).forEach(T=>{T.timeSlot!==s&&(I=I==="#fff"?"#d5dce6":"#fff",s=T.timeSlot),p+='"}),p+="
序号项目名称检查室日期时间段
'+T.idx+''+T.entrust+''+T.room+''+T.date+''+T.timeSlot+"
";const z=Math.min(...g.map(T=>T.idx));m.value.findIndex(T=>R.value.includes(T.id))+1===z?(ue.value=p,j.value=!0):pe.value={html:p,idx:z}}const _=new Set(u.data.map(p=>p.id)),S=c.filter(p=>!_.has(p.id));if(S.length>0){let p='';p+='';let s=1;u.data.forEach(T=>{var W,Ee,qe;const U=((W=m.value.find(xt=>xt.id===T.id))==null?void 0:W.entrust)||"";p+=''}),S.forEach(T=>{var W;const U=((W=m.value.find(Ee=>Ee.id===T.id))==null?void 0:W.entrust)||"";p+=''}),p+="
序号项目名称排班资源日期时间段结果
'+s+++''+U+''+T.department_resources_name+''+T.date+''+((Ee=T.begin_time)==null?void 0:Ee.substring(0,5))+"-"+((qe=T.end_time)==null?void 0:qe.substring(0,5))+'✅ 成功匹配
'+s+++''+U+'❌ 未找到合适号源
";const I=S.map(T=>m.value.findIndex(U=>U.id===T.id)+1).filter(T=>T>0),z=Math.min(...I);m.value.findIndex(T=>R.value.includes(T.id))+1===z?(ve.value=p,G.value=!0):_e.value={html:p,idx:z}}const E=Je();E.length>0&&(q.value=E,P.value=E[0])}})}}}}else Y.error(a.msg)})},at=a=>{V.value=a,P.value=0,q.value=[],ee()},Je=()=>{const a=[];for(const e of m.value)if(R.value.includes(e.id)&&e.list_status===0&&e.temp_plan_id){const t=re.value.find(d=>d.id===e.temp_plan_id&&d.department_resources_name===V.value);t&&!a.includes(t.id)&&a.push(t.id)}for(const e of m.value)if(R.value.includes(e.id)&&e.list_status===1&&e.roster_id){const t=re.value.find(d=>d.id===e.roster_id&&d.department_resources_name===V.value);t&&!a.includes(t.id)&&a.push(t.id)}return a},it=a=>{if(console.log(a),a==null)return;const e=re.value.find(d=>d.id===a);if(!e)return;const t=e.count-e.used_count;if(t{const n=m.value.find(l=>l.id===d.id);n&&(n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=e.department_resources_name,n.reservation_date=e.date,n.period_begin_time=e.begin_time,n.period_end_time=e.end_time,n.temp_plan_id=a)})},lt=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status){t.data.forEach(i=>{const r=m.value.find(c=>c.id===i.id);r&&(r.department_resources||(r.department_resources={}),r.department_resources.department_resources_name=i.department_resources_name,r.reservation_date=i.date,r.period_begin_time=i.begin_time,r.period_end_time=i.end_time,r.temp_plan_id=i.plan_id)});const d={};t.data.forEach(i=>{var c,u;const r=i.department_resources_name;d[r]||(d[r]={items:[],timeSlots:new Set,dates:new Set}),d[r].items.push(i),d[r].timeSlots.add(((c=i.begin_time)==null?void 0:c.substring(0,5))+"-"+((u=i.end_time)==null?void 0:u.substring(0,5))),d[r].dates.add(i.date)});const n=[];for(const[i,r]of Object.entries(d))(r.timeSlots.size>1||r.dates.size>1)&&r.items.forEach(c=>{var f,g,_;const u=m.value.findIndex(S=>S.id===c.id);n.push({idx:u!==-1?u+1:"",room:c.department_resources_name,date:c.date,timeSlot:((f=c.begin_time)==null?void 0:f.substring(0,5))+"-"+((g=c.end_time)==null?void 0:g.substring(0,5)),entrust:((_=m.value.find(S=>S.id===c.id))==null?void 0:_.entrust)||""})});if(n.length>0){let i='';i+='';let r="",c="#f5f5f5";n.sort((u,f)=>u.idx-f.idx).forEach(u=>{u.timeSlot!==r&&(c=c==="#fff"?"#d5dce6":"#fff",r=u.timeSlot),i+='"}),i+="
序号项目名称检查室日期时间段
'+u.idx+''+u.entrust+''+u.room+''+u.date+''+u.timeSlot+"
",ue.value=i,j.value=!0}const l=new Set(t.data.map(i=>i.id)),o=a.filter(i=>!l.has(i.id));if(o.length>0){let i='';i+='';let r=1;t.data.forEach(c=>{var f,g,_;const u=((f=m.value.find(S=>S.id===c.id))==null?void 0:f.entrust)||"";i+=''}),o.forEach(c=>{var f;const u=((f=m.value.find(g=>g.id===c.id))==null?void 0:f.entrust)||"";i+=''}),i+="
序号项目名称排班资源日期时间段结果
'+r+++''+u+''+c.department_resources_name+''+c.date+''+((g=c.begin_time)==null?void 0:g.substring(0,5))+"-"+((_=c.end_time)==null?void 0:_.substring(0,5))+'✅ 成功匹配
'+r+++''+u+'❌ 未找到合适号源
",ve.value=i,G.value=!0}else t.data.length===0&&ae.confirm("所有项目均未匹配到合适号源,请重新选择号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1});t.data.length>0&&(V.value=t.data[0].department_resources_name,q.value=t.data.map(i=>i.plan_id),P.value=t.data[0].plan_id)}else Y.error(t.msg)})},rt=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"full_day",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.forEach(d=>{const n=m.value.find(l=>l.id===d.id);n&&(n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=d.department_resources_name,n.reservation_date=d.date,n.period_begin_time=d.begin_time,n.period_end_time=d.end_time,n.temp_plan_id=d.plan_id)}),t.data.length>0){const d={};t.data.forEach(l=>{var i,r;const o=l.department_resources_name;d[o]||(d[o]={items:[],timeSlots:new Set,dates:new Set}),d[o].items.push(l),d[o].timeSlots.add(((i=l.begin_time)==null?void 0:i.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5))),d[o].dates.add(l.date)});const n=[];for(const[l,o]of Object.entries(d))(o.timeSlots.size>1||o.dates.size>1)&&o.items.forEach(i=>{var c,u,f;const r=m.value.findIndex(g=>g.id===i.id);n.push({idx:r!==-1?r+1:"",room:i.department_resources_name,date:i.date,timeSlot:((c=i.begin_time)==null?void 0:c.substring(0,5))+"-"+((u=i.end_time)==null?void 0:u.substring(0,5)),entrust:((f=m.value.find(g=>g.id===i.id))==null?void 0:f.entrust)||""})});if(n.length>0){let l='';l+='';let o="",i="#f5f5f5";n.sort((r,c)=>r.idx-c.idx).forEach(r=>{r.timeSlot!==o&&(i=i==="#fff"?"#d5dce6":"#fff",o=r.timeSlot),l+='"}),l+="
序号项目名称检查室日期时间段
'+r.idx+''+r.entrust+''+r.room+''+r.date+''+r.timeSlot+"
",ue.value=l,j.value=!0}V.value=t.data[0].department_resources_name,q.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else ae.confirm("未找到任何一天可满足所有检查项目的号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},ot=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"same_day_slot",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.length>0){const d={};t.data.forEach(l=>{var i,r;const o=l.department_resources_name;d[o]||(d[o]={timeSlots:new Set}),d[o].timeSlots.add(((i=l.begin_time)==null?void 0:i.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5)))});let n=!1;for(const l of Object.values(d))if(l.timeSlots.size>1){n=!0;break}if(n){ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});return}t.data.forEach(l=>{const o=m.value.find(i=>i.id===l.id);o&&(o.department_resources||(o.department_resources={}),o.department_resources.department_resources_name=l.department_resources_name,o.reservation_date=l.date,o.period_begin_time=l.begin_time,o.period_end_time=l.end_time,o.temp_plan_id=l.plan_id)}),V.value=t.data[0].department_resources_name,q.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},ut=()=>{O.value=!0;const a=re.value.find(n=>n.id===P.value);if(!a){O.value=!1;return}const e=a.date+" "+a.begin_time,t=a.date+" "+a.end_time,d=a.department_resources_name;wt({reg_num:y.reg_num,planid:P.value}).then(n=>{var o;O.value=!1;let l=[];if(!n.status&&((o=n.data)!=null&&o.conflicts)&&(l=l.concat(n.data.conflicts.filter(i=>i.room_name!==d))),m.value.forEach(i=>{var f,g,_,S;if(i.list_status!==0||!i.temp_plan_id||!i.reservation_date||((f=i.department_resources)==null?void 0:f.department_resources_name)===d)return;const c=i.reservation_date+" "+i.period_begin_time,u=i.reservation_date+" "+i.period_end_time;c<=t&&e<=u&&(l.some(p=>p.entrust===i.entrust&&p.date===i.reservation_date)||l.push({entrust:i.entrust,date:i.reservation_date,begin_time:(g=i.period_begin_time)==null?void 0:g.substring(0,5),end_time:(_=i.period_end_time)==null?void 0:_.substring(0,5),room_name:((S=i.department_resources)==null?void 0:S.department_resources_name)||""}))}),l.length>0){let i='';i+='',l.forEach((r,c)=>{i+='"}),i+="
序号项目名称检查室日期时间段
'+(c+1)+''+r.entrust+''+(r.room_name||"")+''+r.date+''+r.begin_time+"-"+r.end_time+"
",$e.value=i,K.value=!0}})},Me=a=>{if(L.length==0)return Y.error("请选择检查项目"),!1;if(P.value==0||P.value==""||P.value==null)return Y.error("请选择号源"),!1;let e="确定预约此时间吗?";a==2&&(e="确定改约至此时间吗?"),ae.confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{pt(a)}).catch(()=>{})},pt=async a=>{O.value=!0;const e={};m.value.forEach(u=>{var f;!R.value.includes(u.id)&&u.temp_plan_id&&(e[u.id]={temp_plan_id:u.temp_plan_id,department_resources_name:(f=u.department_resources)==null?void 0:f.department_resources_name,reservation_date:u.reservation_date,period_begin_time:u.period_begin_time,period_end_time:u.period_end_time})}),console.log("tempPlanCache 缓存:",JSON.parse(JSON.stringify(e)));const t={};let d=!1;if(R.value.forEach(u=>{const f=m.value.find(_=>_.id===u),g=(f==null?void 0:f.temp_plan_id)||(f==null?void 0:f.roster_id);if(!g){d=!0;return}t[g]||(t[g]=[]),t[g].push(u)}),d){O.value=!1,Y.error("存在未分配号源的项目,请先选择号源");return}const n=Object.keys(t);if(n.length===1){const u=Number(n[0]),f=t[u];We({mainlistid:f,planid:u,appointment_type:y.appointment_type,dotype:a,do_user:y.do_user,is_emergency:a==111?1:null}).then(g=>{O.value=!1,g.status?(be.value.forEach((_,S)=>{_.label=="开启申请单pdf"&&_.value}),Se(()=>{var E;Z.value=!1;const _=[...R.value],S=m.value.filter(p=>p.list_status===0&&p.tishi_msg==="");if(S.length===0)_.forEach(p=>{const s=m.value.find(I=>I.id===p);s&&J.value.toggleRowSelection(s,!0)});else{J.value.clearSelection();const p=new Set(S.map(s=>{var I;return(I=s.department_resources)==null?void 0:I.department_resources_name}).filter(Boolean));m.value.forEach(s=>{var I;s.tishi_msg===""&&(s.list_status===0||p.has((I=s.department_resources)==null?void 0:I.department_resources_name))&&J.value.toggleRowSelection(s,!0)})}if(Z.value=!0,m.value.forEach(p=>{e[p.id]&&(console.log("回填 temp_plan_id:",p.id,e[p.id].temp_plan_id),p.temp_plan_id=e[p.id].temp_plan_id,p.department_resources||(p.department_resources={}),p.department_resources.department_resources_name=e[p.id].department_resources_name,p.reservation_date=e[p.id].reservation_date,p.period_begin_time=e[p.id].period_begin_time,p.period_end_time=e[p.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(m.value.map(p=>({id:p.id,temp_plan_id:p.temp_plan_id,list_status:p.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(m.value.map(p=>({id:p.id,temp_plan_id:p.temp_plan_id,list_status:p.list_status})))))},2e3),v.value.length>0){const p=(E=v.value[0].department_resources)==null?void 0:E.department_resources_name;p&&(V.value=p)}ee()},!0),se.value.length>0&&Ve()):ae.confirm(g.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})});return}const l=[],o=[],i=[];for(const u of n){const f=Number(u),g=t[u];try{const _=await We({mainlistid:g,planid:f,appointment_type:y.appointment_type,dotype:a,do_user:y.do_user,is_emergency:a==111?1:null});_.status?g.forEach(S=>{var p;const E=m.value.find(s=>s.id===S);if(E){const s=(E.period_begin_time?E.period_begin_time.substring(0,5):"")+"-"+(E.period_end_time?E.period_end_time.substring(0,5):"");l.push({name:E.entrust,room:((p=E.department_resources)==null?void 0:p.department_resources_name)||"",date:E.reservation_date||"",time:s}),i.push(E.entrust_id)}}):g.forEach(S=>{const E=m.value.find(p=>p.id===S);E&&o.push({name:E.entrust,msg:_.msg})})}catch{g.forEach(S=>{const E=m.value.find(p=>p.id===S);E&&o.push({name:E.entrust,msg:"请求异常"})})}}O.value=!1;let r='';r+='';let c=1;l.forEach(u=>{r+=''}),o.forEach(u=>{r+='"}),r+="
序号项目名称检查室日期时间段结果
'+c+++''+u.name+''+u.room+''+u.date+''+u.time+'预约成功
'+c+++''+u.name+''+u.msg+"
",Oe.value=r,X.value=!0,l.length>0&&(Se(()=>{var g;Z.value=!1;const u=[...R.value],f=m.value.filter(_=>_.list_status===0&&_.tishi_msg==="");if(f.length===0)u.forEach(_=>{const S=m.value.find(E=>E.id===_);S&&J.value.toggleRowSelection(S,!0)});else{J.value.clearSelection();const _=new Set(f.map(S=>{var E;return(E=S.department_resources)==null?void 0:E.department_resources_name}).filter(Boolean));m.value.forEach(S=>{var E;S.tishi_msg===""&&(S.list_status===0||_.has((E=S.department_resources)==null?void 0:E.department_resources_name))&&J.value.toggleRowSelection(S,!0)})}if(Z.value=!0,m.value.forEach(_=>{e[_.id]&&(console.log("回填 temp_plan_id:",_.id,e[_.id].temp_plan_id),_.temp_plan_id=e[_.id].temp_plan_id,_.department_resources||(_.department_resources={}),_.department_resources.department_resources_name=e[_.id].department_resources_name,_.reservation_date=e[_.id].reservation_date,_.period_begin_time=e[_.id].period_begin_time,_.period_end_time=e[_.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(m.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(m.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status})))))},2e3),v.value.length>0){const _=(g=v.value[0].department_resources)==null?void 0:g.department_resources_name;_&&(V.value=_)}ee()},!0),be.value.forEach((u,f)=>{u.label=="开启申请单pdf"&&u.value}),se.value.length>0&&Ve(i))},_t=()=>{ae.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const a={};m.value.forEach(d=>{var n;!R.value.includes(d.id)&&d.temp_plan_id&&(a[d.id]={temp_plan_id:d.temp_plan_id,department_resources_name:(n=d.department_resources)==null?void 0:n.department_resources_name,reservation_date:d.reservation_date,period_begin_time:d.period_begin_time,period_end_time:d.period_end_time})});const e=v.value.map(d=>{var n;return{id:d.id,entrust_id:d.entrust_id,department_resources_name:((n=d.department_resources)==null?void 0:n.department_resources_name)||"",date:d.reservation_date||"",begin_time:d.period_begin_time||"",end_time:d.period_end_time||""}});ne.value=!0;const t=v.value.map(d=>St({MainListId:d.id,reg_num:d.reg_num,do_user:y.do_user}).then(n=>{n.status?Y.success("取消成功"):Y.error(n.msg)}).catch(n=>{Y.error("取消失败"),console.error(n)}));await Promise.all(t),ne.value=!1,Se(()=>{m.value.forEach(n=>{a[n.id]&&(n.temp_plan_id=a[n.id].temp_plan_id,n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=a[n.id].department_resources_name,n.reservation_date=a[n.id].reservation_date,n.period_begin_time=a[n.id].period_begin_time,n.period_end_time=a[n.id].period_end_time)});const d=e;if(d.length>0){const n=m.value.filter(l=>!d.find(o=>o.id===l.id)&&l.list_status===0&&l.temp_plan_id).map(l=>l.temp_plan_id);fe({type:"optimal_time",regnum:y.reg_num,entrustid:d.map(l=>l.entrust_id),episodeid:y.episode_id,appointment_type:y.appointment_type,items:d,occupied_plan_ids:n,scope:y.scope,do_user:y.do_user}).then(l=>{l.status&&l.data.length>0&&(l.data.forEach(o=>{const i=m.value.find(r=>r.id===o.id);i&&(i.department_resources||(i.department_resources={}),i.department_resources.department_resources_name=o.department_resources_name,i.reservation_date=o.date,i.period_begin_time=o.begin_time,i.period_end_time=o.end_time,i.temp_plan_id=o.plan_id)}),V.value=l.data[0].department_resources_name,q.value=l.data.map(o=>o.plan_id),P.value=l.data[0].plan_id)})}},!0)})},mt=()=>{kt({config_arrs:["开启申请单pdf","医生端打印"]}).then(a=>{a.status&&(be.value=a.data.list,be.value.forEach((e,t)=>{console.log(y.appointment_type),e.label=="医生端打印"&&e.value==="0"&&y.appointment_type==1&&(se.value=[])}))})};let Ne=w([]);const Ve=a=>{const e=a||L.value;Ae({regnum:y.reg_num,entrustid:e.join(","),episodeid:y.episode_id,appointment_type:y.appointment_type}).then(t=>{if(t.status){let d=!0;Ne.value=t.data.info,Ne.value.forEach((n,l)=>{n.maininfo.list_status!=1&&(Y.error(n.maininfo.entrust+" 不可打印,请重新选择"),d=!1)}),d&&(Ie.value=!0,setTimeout(function(){Ye.value.$el.click(),Ie.value=!1},500))}else Y.error(t.msg)})},ct=()=>{V.value="",A.value=ke(le.value),console.log(A.value),ee()};function ft(a){const e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}function ke(a=new Date,e=15){const t=new Date(a),d=[];if(isNaN(t.getTime()))throw new Error("无效的日期格式");for(let n=0;n15}function je(){const a=new Date,e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}let Be=w(!1);return bt(()=>{Be.value=!0,mt(),A.value=ke(),Se()}),(a,e)=>{var p;const t=F("el-alert"),d=F("el-table-column"),n=F("el-tag"),l=F("el-table"),o=F("el-button"),i=F("el-checkbox"),r=F("el-checkbox-group"),c=F("el-tooltip"),u=F("el-date-picker"),f=F("el-empty"),g=F("el-dialog"),_=F("el-icon"),S=Ge("loading"),E=Ge("print");return k(),C("div",Dt,[h($)?(k(),C("div",It,[D("div",Ct,[D("span",Tt,N(h($).user_name),1),M("("+N(h($).user_sex_label)+" "+N(h($).age)+"岁)",1)]),D("div",Mt,[M(N(h($).patient_type_label)+"号:",1),D("span",Nt,N(h($).patient_type==0?(p=h($).episodeid)==null?void 0:p.slice(-10):h($).reg_num),1)]),D("div",Vt,[e[19]||(e[19]=M("电话:",-1)),D("span",Bt,N(h($).user_phone),1)]),h($).warddesc?(k(),C("div",Pt,[e[20]||(e[20]=M("病区:",-1)),D("span",zt,N(h($).warddesc),1)])):B("",!0),h($).bedno?(k(),C("div",Yt,[e[21]||(e[21]=M("床号:",-1)),D("span",Rt,N(h($).bedno),1)])):B("",!0),h($).diagnosisName?(k(),C("div",$t,[e[22]||(e[22]=M("诊断:",-1)),D("span",Ot,N(h($).diagnosisName),1)])):B("",!0)])):(k(),C("div",Lt," 获取患者信息失败 ")),Ke.value?(k(),de(t,{key:2,type:"danger",closable:!1,"show-icon":"",style:{"margin-bottom":"8px"}},{title:b(()=>[...e[23]||(e[23]=[D("span",{style:{"font-weight":"700",color:"#f56c6c"}},"患者所有检查项目未预约至同一天,请注意是否需手动调整预约",-1)])]),_:1})):B("",!0),D("div",Ht,[ze((k(),de(l,{data:h(m),style:{width:"100%"},"row-key":"id",ref_key:"entrustTableRef",ref:J,"row-class-name":dt,onSelectionChange:Xe},{default:b(()=>[x(d,{type:"selection",width:"36",selectable:nt}),x(d,{prop:"tishi_msg",width:"200"},{header:b(()=>[D("div",null,[D("div",null,"共 "+N(h(m).length)+" 项,已选 "+N(h(R).length)+" 项",1),Le.value>0?(k(),C("div",Jt,"同检查室项目 "+N(Le.value)+" 项",1)):B("",!0)])]),default:b(s=>[D("span",Ft,N(s.$index+1),1),s.row.tishi_msg!=""?(k(),C("span",jt,N(s.row.tishi_msg),1)):(k(),C("span",qt,"正常"))]),_:1}),x(d,{prop:"list_status",label:"预约状态",width:"80"},{default:b(s=>[s.row.list_status===0?(k(),de(n,{key:0,class:"ml-2",type:"info"},{default:b(()=>[...e[24]||(e[24]=[M("未预约",-1)])]),_:1})):B("",!0),s.row.list_status===1?(k(),de(n,{key:1,class:"ml-2",type:"success"},{default:b(()=>[...e[25]||(e[25]=[M("已预约",-1)])]),_:1})):B("",!0),s.row.list_status===2?(k(),de(n,{key:2,class:"ml-2"},{default:b(()=>[...e[26]||(e[26]=[M("登记",-1)])]),_:1})):B("",!0),s.row.list_status===3?(k(),de(n,{key:3,class:"ml-2",type:"warning"},{default:b(()=>[...e[27]||(e[27]=[M("完成",-1)])]),_:1})):B("",!0)]),_:1}),x(d,{prop:"entrust",label:"项目","show-overflow-tooltip":""}),x(d,{prop:"is_pay",label:"是否交费",width:"60",align:"center"},{default:b(s=>[s.row.is_pay==1?(k(),C("span",Gt,"是")):B("",!0),s.row.is_pay==0?(k(),C("span",Ut,"否")):B("",!0)]),_:1}),x(d,{prop:"his_is_emergency",label:"是否加急",width:"60",align:"center"},{default:b(s=>[s.row.his_is_emergency==1?(k(),C("span",At,"是")):B("",!0),s.row.his_is_emergency==0?(k(),C("span",Wt,"否")):B("",!0)]),_:1}),x(d,{prop:"department_resources.department_resources_name",label:"排班",width:"220"}),x(d,{prop:"reservation_date",label:"预约日期",width:"120"}),x(d,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:b(s=>[s.row.period_begin_time&&s.row.period_end_time?(k(),C("span",Zt,N(s.row.period_begin_time.substring(0,5))+"~"+N(s.row.period_end_time.substring(0,5)),1)):B("",!0)]),_:1}),x(d,{prop:"limosis",label:"是否空腹",width:"60",align:"center"},{default:b(s=>[s.row.limosis==0?(k(),C("span",Qt,"否")):(k(),C("span",Kt,"是"))]),_:1}),x(d,{prop:"reservation_department",label:"申请科室",width:"150"}),x(d,{prop:"",label:"医嘱时间",width:"200"},{default:b(s=>[M(N(s.row.entrust_date)+" "+N(s.row.entrust_time),1)]),_:1}),x(d,{prop:"docotr",label:"申请医生",width:"80"})]),_:1},8,["data"])),[[S,h(ne)]])]),D("div",Xt,[D("div",ed,[D("div",td,[(k(!0),C(me,null,ce(h(ge),(s,I)=>(k(),C("div",{key:I,class:Ue({"ZhenShiButton zhenshiButton_active":h(V)===s,ZhenShiButton:h(V)!==s}),onClick:z=>at(s)},N(s),11,dd))),128)),e[39]||(e[39]=D("div",{class:"shuxian"},null,-1)),He.value?(k(),de(o,{key:0,class:"do_button",type:"danger",onClick:e[0]||(e[0]=s=>Me(111))},{default:b(()=>[...e[28]||(e[28]=[M("加急预约",-1)])]),_:1})):B("",!0),x(o,{class:"do_button",type:"success",onClick:e[1]||(e[1]=s=>Me(1))},{default:b(()=>[...e[29]||(e[29]=[M("预约",-1)])]),_:1}),x(o,{class:"do_button",type:"warning",onClick:e[2]||(e[2]=s=>Me(2))},{default:b(()=>[...e[30]||(e[30]=[M("更改预约时间",-1)])]),_:1}),x(o,{class:"do_button",type:"danger",onClick:e[3]||(e[3]=s=>_t())},{default:b(()=>[...e[31]||(e[31]=[M("取消预约",-1)])]),_:1}),ze((k(),de(o,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:Ye},{default:b(()=>[...e[32]||(e[32]=[M("打印申请单隐藏按钮",-1)])]),_:1})),[[E,"#shenqingdan"]]),x(o,{onClick:e[4]||(e[4]=s=>Ve())},{default:b(()=>[...e[33]||(e[33]=[M("打印申请单",-1)])]),_:1}),D("div",nd,[x(r,{modelValue:h(se),"onUpdate:modelValue":e[5]||(e[5]=s=>H(se)?se.value=s:se=s)},{default:b(()=>[x(i,{label:"1"},{default:b(()=>[...e[34]||(e[34]=[M("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"]),x(c,{placement:"top",content:wd,"popper-class":"tip-pre-line"},{default:b(()=>[x(i,{modelValue:h(oe),"onUpdate:modelValue":e[6]||(e[6]=s=>H(oe)?oe.value=s:oe=s)},{default:b(()=>[...e[35]||(e[35]=[M("自动选中能一起预约的检查项目",-1)])]),_:1},8,["modelValue"])]),_:1})]),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近能用的时间段号源,多个检查项目可能会跨天跨时间段","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{"margin-left":"20px",width:"120px"},onClick:lt},{default:b(()=>[...e[36]||(e[36]=[M("推荐最近时间号源",-1)])]),_:1})]),_:1}),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{width:"120px"},onClick:rt},{default:b(()=>[...e[37]||(e[37]=[M("推荐同一天号源",-1)])]),_:1})]),_:1}),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天同一时间段完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",onClick:ot},{default:b(()=>[...e[38]||(e[38]=[M("推荐同一天同一时间段号源",-1)])]),_:1})]),_:1})]),D("div",null,[x(u,{modelValue:h(le),"onUpdate:modelValue":e[7]||(e[7]=s=>H(le)?le.value=s:le=s),type:"date",placeholder:"跳转日期",onChange:e[8]||(e[8]=s=>ct())},null,8,["modelValue"])])]),ze((k(),C("div",sd,[D("table",ad,[h(v).length>0?(k(),C("tr",id,[e[40]||(e[40]=D("td",{style:{width:"120px"}},null,-1)),(k(!0),C(me,null,ce(h(A),(s,I)=>(k(),C("td",ld,N(s.substring(5,10))+" "+N(Qe(s)),1))),256))])):B("",!0),h(A).length>0&&h(ie).length>0?(k(!0),C(me,{key:1},ce(h(ie),(s,I)=>(k(),C("tr",{key:I,class:"table_plan_row"},[(k(!0),C(me,null,ce(s,(z,te)=>(k(),C("td",{key:te,class:Ue({planActive:h(q).includes(z.id)&&z.id!==0&&z.id,plandisable:!z.enable&&te!=="time_range"}),onClick:T=>it(z.id)},[te=="time_range"?(k(),C("span",od,N(z),1)):B("",!0),D("span",null,N(z.use_count),1)],10,rd))),128))]))),128)):B("",!0)]),h(v).length==0?(k(),C("div",ud,[x(f,{description:"请选择项目"})])):B("",!0),h(v).length>0&&h(ie).length==0?(k(),C("div",pd,[x(f,{description:"暂无号源"})])):B("",!0)])),[[S,h(O)]])]),h(Ie)?(k(),C("div",_d,[(k(!0),C(me,null,ce(h(Ne),(s,I)=>(k(),C("div",{key:I},[x(Et,{printInfo:s.maininfo},null,8,["printInfo"])]))),128))])):B("",!0),x(g,{modelValue:h(Q),"onUpdate:modelValue":e[10]||(e[10]=s=>H(Q)?Q.value=s:Q=s),title:"提示",width:"500"},{footer:b(()=>[D("div",md,[x(o,{type:"primary",onClick:e[9]||(e[9]=s=>H(Q)?Q.value=!1:Q=!1)},{default:b(()=>[...e[41]||(e[41]=[M(" 确定 ",-1)])]),_:1})])]),default:b(()=>[x(l,{data:h(we),style:{width:"100%"},"row-key":"id"},{default:b(()=>[x(d,{prop:"item_name",label:"项目名称"}),x(d,{prop:"msg",label:"异常提示"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),x(g,{modelValue:h(j),"onUpdate:modelValue":e[12]||(e[12]=s=>H(j)?j.value=s:j=s),title:"提示",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[11]||(e[11]=s=>H(j)?j.value=!1:j=!1)},{default:b(()=>[...e[43]||(e[43]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",cd,[x(_,{class:"el-icon-warning",style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",null,[e[42]||(e[42]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}},"最近可用的同一时间段号源数量不足,无法把当前全部检查项目预约在同一时间段,系统已经自动拆分。",-1)),D("div",{innerHTML:h(ue)},null,8,fd)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(K),"onUpdate:modelValue":e[14]||(e[14]=s=>H(K)?K.value=s:K=s),title:"时段冲突",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[13]||(e[13]=s=>H(K)?K.value=!1:K=!1)},{default:b(()=>[...e[45]||(e[45]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",gd,[x(_,{style:{color:"#F56C6C","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",null,[e[44]||(e[44]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}}," 以下项目与当前选择的时间段存在冲突,请确认是否继续预约: ",-1)),D("div",{innerHTML:h($e)},null,8,xd)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(X),"onUpdate:modelValue":e[16]||(e[16]=s=>H(X)?X.value=s:X=s),title:"预约结果",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[15]||(e[15]=s=>H(X)?X.value=!1:X=!1)},{default:b(()=>[...e[46]||(e[46]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",hd,[x(_,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",{innerHTML:h(Oe)},null,8,bd)])]),_:1},8,["modelValue"]),x(g,{modelValue:h(G),"onUpdate:modelValue":e[18]||(e[18]=s=>H(G)?G.value=s:G=s),title:"预约推荐结果",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[17]||(e[17]=s=>H(G)?G.value=!1:G=!1)},{default:b(()=>[...e[47]||(e[47]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",yd,[x(_,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",{innerHTML:h(ve)},null,8,vd)])]),_:1},8,["modelValue"])])}}},Dd=ht(Sd,[["__scopeId","data-v-bfe57275"]]);export{Dd as Y}; +3.不同状态的预约的预约项目无法一起选中`,Sd={__name:"YuYue202506",props:{reg_num:{type:String},entrust_ids:{type:String},episode_id:{type:String},appointment_type:{type:[String,Number]},dotype:{type:Number},do_user:{default:"",type:[String,Number]},special_privileges:{type:Array,default:()=>[]},scope:{type:String,default:"all"}},setup(Ze){const y=Ze;let J=w(null),$=w(null),m=w([]),ie=w([]),ne=w(!1),O=w(!1),Ye=w(null),q=w([]),ge=w([]),V=w(""),P=w(0),R=w([]),L=w([]),v=w([]),Z=w(!0),xe=w([]),se=w(["1"]),Ie=w(!1),Ce=w(!0),he=w("add"),le=w(""),be=w([]),ye=w([]),re=w([]),Te=w(0),Re=w(!1),oe=w(!0),Q=w(!1),j=w(!1),ue=w(""),pe=w(null),_e=w(null),K=w(!1),$e=w(""),X=w(!1),Oe=w(""),G=w(!1),ve=w("");const Qe=a=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const d=new Date(a).getDay();return e[d]},Le=Pe(()=>{const a=v.value.map(d=>{var n;return(n=d.department_resources)==null?void 0:n.department_resources_name}).filter(Boolean),e=[...new Set(a)];if(e.length!==1)return 0;const t=e[0];return m.value.filter(d=>{var n;return((n=d.department_resources)==null?void 0:n.department_resources_name)===t}).length}),He=Pe(()=>y.special_privileges.includes("emergency")),Ke=Pe(()=>{const a=m.value.filter(t=>!!(t.list_status===1&&t.reservation_date||t.list_status===0&&t.temp_plan_id&&t.reservation_date));return a.length<2?!1:new Set(a.map(t=>t.reservation_date)).size>1}),Xe=a=>{var t,d,n,l,o,i,r,c,u,f;if(R.value=[],L.value=[],ge.value=[],ie.value=[],V.value="",v.value=a,console.log("11111",v.value),v.value.forEach((g,_)=>{R.value.push(g.id),L.value.push(g.entrust_id)}),v.value.every(g=>{var _;return g.roster_id===((_=v.value[0])==null?void 0:_.roster_id)}))P.value=(t=v.value[0])==null?void 0:t.roster_id,P.value!==0&&P.value&&(le.value=(d=v.value[0])==null?void 0:d.reservation_date,gt(je(),(n=v.value[0])==null?void 0:n.reservation_date)&&((l=v.value[0])!=null&&l.reservation_date)?A.value=ke((o=v.value[0])==null?void 0:o.reservation_date):A.value=ke(je()),V.value=(r=(i=v.value[0])==null?void 0:i.department_resources)==null?void 0:r.department_resources_name);else if(P.value=0,v.value.length>0){const g=(u=(c=v.value[0])==null?void 0:c.department_resources)==null?void 0:u.execute_department_id;if(g&&v.value.every(S=>{var E;return((E=S.department_resources)==null?void 0:E.execute_department_id)===g})){const S=(f=v.value[0].department_resources)==null?void 0:f.department_resources_name;S&&(V.value=S)}}xe.value.forEach(g=>{v.value.find(_=>_===g)||(he.value="cancel")}),v.value.length==0&&(he.value="add",xe.value=[]),console.log(he.value),L.value.length>0&&Z.value&&(he.value==="add"&&v.value[0].list_status==0&&oe.value?st():ee()),pe.value&&m.value.findIndex(_=>R.value.includes(_.id))+1===pe.value.idx&&(ue.value=pe.value.html,j.value=!0,pe.value=null),_e.value&&m.value.findIndex(_=>R.value.includes(_.id))+1===_e.value.idx&&(ve.value=_e.value.html,G.value=!0,_e.value=null),et()},et=()=>{var t,d;if(v.value.length===0){Ce.value=!0;return}const a=(d=(t=v.value[0])==null?void 0:t.department_resources)==null?void 0:d.execute_department_id;if(a==null){Ce.value=!0;return}const e=v.value.every(n=>{var l;return((l=n.department_resources)==null?void 0:l.execute_department_id)===a});Ce.value=!e},tt=a=>v.value.findIndex(e=>e.id===a.id)>-1,dt=({row:a,rowIndex:e})=>{if(a.tishi_msg!="")return"disabled-row";if(tt(a))return"selected-row"},nt=(a,e)=>a.tishi_msg=="";let we=w([]);const Se=(a,e)=>{let t=R.value;m.value=[],ne.value=!0,Ae({regnum:y.reg_num,entrustid:y.entrust_ids,episodeid:y.episode_id,appointment_type:y.appointment_type}).then(d=>{var n;if(ne.value=!1,d.status){if(d.data.info.length>0){let l=d.data.info;if($.value=l[0].maininfo,l.forEach((o,i)=>{var c,u;let r=o.maininfo;r.tishi_msg=o.msg,r.limosis=(c=o.iteminfo[0])==null?void 0:c.limosis,m.value.push(r),o.msg!=""&&o.msg!=null&&we.value.push({msg:o.msg,item_name:(u=o.iteminfo[0])==null?void 0:u.item_name})}),t.length>0&&!e)t.forEach((o,i)=>{m.value.forEach((r,c)=>{o==r.id&&J.value.toggleRowSelection(m.value[c],!0)})});else for(let o=0;o{var c;r.id!==m.value[o].id&&r.list_status===0&&r.tishi_msg===""&&((c=r.department_resources)==null?void 0:c.department_resources_name)===i&&J.value.toggleRowSelection(r,!0)}),m.value[o].roster_id!=null&&(P.value=m.value[o].roster_id,V.value=i);break}Be.value&&(Be.value=!1,we.value.length>0&&(console.log("22222222222222",we.value),Q.value=!0)),ye.value=JSON.parse(JSON.stringify(m.value)),a&&a()}}else Y.error(d.msg)})},st=()=>{let a=[],e=v.value.length;if(v.value[e-1].list_status!=0)return!1;m.value.forEach((t,d)=>{t.list_status==0&&t.tishi_msg==""&&(t.id==v.value[e-1].id?a.push({name:t.entrust,rowid:d,first:1}):a.push({name:t.entrust,rowid:d,first:0}))}),a.length>=2?(ne.value=!0,yt({items:a}).then(t=>{ne.value=!1,t.status?(a.forEach((n,l)=>{Z.value=!1,J.value.toggleRowSelection(m.value[n.rowid],!1)}),t.data.rowids.forEach((n,l)=>{Z.value=!1,J.value.toggleRowSelection(m.value[n],!0)}),xe.value=v.value,ee()):Y.error(t.msg),Z.value=!0})):(xe.value=v.value,ee())};let A=w([]);const ee=()=>{if(L.value.length==0)return Y.error("请选择检查项目"),!1;O.value=!0,vt({regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,date:A.value,scope:y.scope,do_user:y.do_user}).then(a=>{if(O.value=!1,ie.value=[],ge.value=[],a.status){let e=a.data.plan_list,t=a.data.zhanWeiCount,d=a.data.is_emergency;if(re.value=e,Te.value=t,e.length>0){V.value==""&&(V.value=e[0].department_resources_name);const n=new Set,l=new Set;e.forEach(r=>{if(r.department_resources_name==V.value){const c=`${r.begin_time.substring(0,5)}-${r.end_time.substring(0,5)}`;n.add(c)}l.add(r.department_resources_name)}),ge.value=l,Array.from(n).sort().forEach(r=>{const c={time_range:r};A.value.forEach(u=>{const f=e.find(_=>`${_.begin_time.substring(0,5)}-${_.end_time.substring(0,5)}`===r&&_.date===u&&_.department_resources_name==V.value);let g=!1;f?(f.count-f.used_count>=t&&f.plan_enable===!0&&(g=!0),d===!0&&f.plan_enable===!0&&He.value==!0&&(g=!0),c[u]={use_count:`${f.used_count}/${f.count}`,id:f.id,enable:g}):c[u]={use_count:"0/0",id:null,enable:g}}),ie.value.push(c)}),P.value=0;const i=Je();if(i.length>0)q.value=i,P.value=i[0];else{q.value=[];const r=e.find(c=>c.department_resources_name==V.value&&c.count-c.used_count>=t&&c.plan_enable===!0);r&&(P.value=r.id)}if(!Re.value){Re.value=!0;const r=m.value.filter(c=>c.list_status===0);if(r.length>0){const c=r.map(u=>{var f;return{id:u.id,entrust_id:u.entrust_id,department_resources_name:((f=u.department_resources)==null?void 0:f.department_resources_name)||"",date:u.reservation_date||"",begin_time:u.period_begin_time||"",end_time:u.period_end_time||""}});fe({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:c,scope:y.scope,do_user:y.do_user}).then(u=>{if(u.status){u.data.forEach(p=>{const s=m.value.find(I=>I.id===p.id);s&&(s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=p.department_resources_name,s.reservation_date=p.date,s.period_begin_time=p.begin_time,s.period_end_time=p.end_time,s.temp_plan_id=p.plan_id)});const f={};u.data.forEach(p=>{var I,z;const s=p.department_resources_name;f[s]||(f[s]={items:[],timeSlots:new Set,dates:new Set}),f[s].items.push(p),f[s].timeSlots.add(((I=p.begin_time)==null?void 0:I.substring(0,5))+"-"+((z=p.end_time)==null?void 0:z.substring(0,5))),f[s].dates.add(p.date)});const g=[];for(const[p,s]of Object.entries(f))(s.timeSlots.size>1||s.dates.size>1)&&s.items.forEach(I=>{var te,T,U;const z=m.value.findIndex(W=>W.id===I.id);g.push({idx:z!==-1?z+1:"",room:I.department_resources_name,date:I.date,timeSlot:((te=I.begin_time)==null?void 0:te.substring(0,5))+"-"+((T=I.end_time)==null?void 0:T.substring(0,5)),entrust:((U=m.value.find(W=>W.id===I.id))==null?void 0:U.entrust)||""})});if(g.length>0){let p='';p+='';let s="",I="#f5f5f5";g.sort((T,U)=>T.idx-U.idx).forEach(T=>{T.timeSlot!==s&&(I=I==="#fff"?"#d5dce6":"#fff",s=T.timeSlot),p+='"}),p+="
序号项目名称检查室日期时间段
'+T.idx+''+T.entrust+''+T.room+''+T.date+''+T.timeSlot+"
";const z=Math.min(...g.map(T=>T.idx));m.value.findIndex(T=>R.value.includes(T.id))+1===z?(ue.value=p,j.value=!0):pe.value={html:p,idx:z}}const _=new Set(u.data.map(p=>p.id)),S=c.filter(p=>!_.has(p.id));if(S.length>0){let p='';p+='';let s=1;u.data.forEach(T=>{var W,Ee,qe;const U=((W=m.value.find(xt=>xt.id===T.id))==null?void 0:W.entrust)||"";p+=''}),S.forEach(T=>{var W;const U=((W=m.value.find(Ee=>Ee.id===T.id))==null?void 0:W.entrust)||"";p+=''}),p+="
序号项目名称排班资源日期时间段结果
'+s+++''+U+''+T.department_resources_name+''+T.date+''+((Ee=T.begin_time)==null?void 0:Ee.substring(0,5))+"-"+((qe=T.end_time)==null?void 0:qe.substring(0,5))+'✅ 成功匹配
'+s+++''+U+'❌ 未找到合适号源
";const I=S.map(T=>m.value.findIndex(U=>U.id===T.id)+1).filter(T=>T>0),z=Math.min(...I);m.value.findIndex(T=>R.value.includes(T.id))+1===z?(ve.value=p,G.value=!0):_e.value={html:p,idx:z}}const E=Je();E.length>0&&(q.value=E,P.value=E[0])}})}}}}else Y.error(a.msg)})},at=a=>{V.value=a,P.value=0,q.value=[],ee()},Je=()=>{const a=[];for(const e of m.value)if(R.value.includes(e.id)&&e.list_status===0&&e.temp_plan_id){const t=re.value.find(d=>d.id===e.temp_plan_id&&d.department_resources_name===V.value);t&&!a.includes(t.id)&&a.push(t.id)}for(const e of m.value)if(R.value.includes(e.id)&&e.list_status===1&&e.roster_id){const t=re.value.find(d=>d.id===e.roster_id&&d.department_resources_name===V.value);t&&!a.includes(t.id)&&a.push(t.id)}return a},it=a=>{if(console.log(a),a==null)return;const e=re.value.find(d=>d.id===a);if(!e)return;const t=e.count-e.used_count;if(t{const n=m.value.find(l=>l.id===d.id);n&&(n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=e.department_resources_name,n.reservation_date=e.date,n.period_begin_time=e.begin_time,n.period_end_time=e.end_time,n.temp_plan_id=a)})},lt=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status){t.data.forEach(i=>{const r=m.value.find(c=>c.id===i.id);r&&(r.department_resources||(r.department_resources={}),r.department_resources.department_resources_name=i.department_resources_name,r.reservation_date=i.date,r.period_begin_time=i.begin_time,r.period_end_time=i.end_time,r.temp_plan_id=i.plan_id)});const d={};t.data.forEach(i=>{var c,u;const r=i.department_resources_name;d[r]||(d[r]={items:[],timeSlots:new Set,dates:new Set}),d[r].items.push(i),d[r].timeSlots.add(((c=i.begin_time)==null?void 0:c.substring(0,5))+"-"+((u=i.end_time)==null?void 0:u.substring(0,5))),d[r].dates.add(i.date)});const n=[];for(const[i,r]of Object.entries(d))(r.timeSlots.size>1||r.dates.size>1)&&r.items.forEach(c=>{var f,g,_;const u=m.value.findIndex(S=>S.id===c.id);n.push({idx:u!==-1?u+1:"",room:c.department_resources_name,date:c.date,timeSlot:((f=c.begin_time)==null?void 0:f.substring(0,5))+"-"+((g=c.end_time)==null?void 0:g.substring(0,5)),entrust:((_=m.value.find(S=>S.id===c.id))==null?void 0:_.entrust)||""})});if(n.length>0){let i='';i+='';let r="",c="#f5f5f5";n.sort((u,f)=>u.idx-f.idx).forEach(u=>{u.timeSlot!==r&&(c=c==="#fff"?"#d5dce6":"#fff",r=u.timeSlot),i+='"}),i+="
序号项目名称检查室日期时间段
'+u.idx+''+u.entrust+''+u.room+''+u.date+''+u.timeSlot+"
",ue.value=i,j.value=!0}const l=new Set(t.data.map(i=>i.id)),o=a.filter(i=>!l.has(i.id));if(o.length>0){let i='';i+='';let r=1;t.data.forEach(c=>{var f,g,_;const u=((f=m.value.find(S=>S.id===c.id))==null?void 0:f.entrust)||"";i+=''}),o.forEach(c=>{var f;const u=((f=m.value.find(g=>g.id===c.id))==null?void 0:f.entrust)||"";i+=''}),i+="
序号项目名称排班资源日期时间段结果
'+r+++''+u+''+c.department_resources_name+''+c.date+''+((g=c.begin_time)==null?void 0:g.substring(0,5))+"-"+((_=c.end_time)==null?void 0:_.substring(0,5))+'✅ 成功匹配
'+r+++''+u+'❌ 未找到合适号源
",ve.value=i,G.value=!0}else t.data.length===0&&ae.confirm("所有项目均未匹配到合适号源,请重新选择号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1});t.data.length>0&&(V.value=t.data[0].department_resources_name,q.value=t.data.map(i=>i.plan_id),P.value=t.data[0].plan_id)}else Y.error(t.msg)})},rt=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"full_day",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.forEach(d=>{const n=m.value.find(l=>l.id===d.id);n&&(n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=d.department_resources_name,n.reservation_date=d.date,n.period_begin_time=d.begin_time,n.period_end_time=d.end_time,n.temp_plan_id=d.plan_id)}),t.data.length>0){const d={};t.data.forEach(l=>{var i,r;const o=l.department_resources_name;d[o]||(d[o]={items:[],timeSlots:new Set,dates:new Set}),d[o].items.push(l),d[o].timeSlots.add(((i=l.begin_time)==null?void 0:i.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5))),d[o].dates.add(l.date)});const n=[];for(const[l,o]of Object.entries(d))(o.timeSlots.size>1||o.dates.size>1)&&o.items.forEach(i=>{var c,u,f;const r=m.value.findIndex(g=>g.id===i.id);n.push({idx:r!==-1?r+1:"",room:i.department_resources_name,date:i.date,timeSlot:((c=i.begin_time)==null?void 0:c.substring(0,5))+"-"+((u=i.end_time)==null?void 0:u.substring(0,5)),entrust:((f=m.value.find(g=>g.id===i.id))==null?void 0:f.entrust)||""})});if(n.length>0){let l='';l+='';let o="",i="#f5f5f5";n.sort((r,c)=>r.idx-c.idx).forEach(r=>{r.timeSlot!==o&&(i=i==="#fff"?"#d5dce6":"#fff",o=r.timeSlot),l+='"}),l+="
序号项目名称检查室日期时间段
'+r.idx+''+r.entrust+''+r.room+''+r.date+''+r.timeSlot+"
",ue.value=l,j.value=!0}V.value=t.data[0].department_resources_name,q.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else ae.confirm("未找到任何一天可满足所有检查项目的号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},ot=()=>{if(L.value.length===0){Y.error("请选择检查项目");return}O.value=!0,v.value.forEach(t=>{const d=ye.value.find(l=>l.id===t.id);if(!d)return;const n=m.value.find(l=>l.id===t.id);n&&(n.department_resources=d.department_resources,n.reservation_date=d.reservation_date,n.period_begin_time=d.period_begin_time,n.period_end_time=d.period_end_time,n.temp_plan_id=void 0)});const a=v.value.filter(t=>t.list_status===0).map(t=>{var d;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((d=t.department_resources)==null?void 0:d.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=m.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);fe({type:"same_day_slot",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:a,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.length>0){const d={};t.data.forEach(l=>{var i,r;const o=l.department_resources_name;d[o]||(d[o]={timeSlots:new Set}),d[o].timeSlots.add(((i=l.begin_time)==null?void 0:i.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5)))});let n=!1;for(const l of Object.values(d))if(l.timeSlots.size>1){n=!0;break}if(n){ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});return}t.data.forEach(l=>{const o=m.value.find(i=>i.id===l.id);o&&(o.department_resources||(o.department_resources={}),o.department_resources.department_resources_name=l.department_resources_name,o.reservation_date=l.date,o.period_begin_time=l.begin_time,o.period_end_time=l.end_time,o.temp_plan_id=l.plan_id)}),V.value=t.data[0].department_resources_name,q.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},ut=()=>{O.value=!0;const a=re.value.find(n=>n.id===P.value);if(!a){O.value=!1;return}const e=a.date+" "+a.begin_time,t=a.date+" "+a.end_time,d=a.department_resources_name;wt({reg_num:y.reg_num,planid:P.value}).then(n=>{var o;O.value=!1;let l=[];if(!n.status&&((o=n.data)!=null&&o.conflicts)&&(l=l.concat(n.data.conflicts.filter(i=>i.room_name!==d))),m.value.forEach(i=>{var f,g,_,S;if(i.list_status!==0||!i.temp_plan_id||!i.reservation_date||((f=i.department_resources)==null?void 0:f.department_resources_name)===d)return;const c=i.reservation_date+" "+i.period_begin_time,u=i.reservation_date+" "+i.period_end_time;c<=t&&e<=u&&(l.some(p=>p.entrust===i.entrust&&p.date===i.reservation_date)||l.push({entrust:i.entrust,date:i.reservation_date,begin_time:(g=i.period_begin_time)==null?void 0:g.substring(0,5),end_time:(_=i.period_end_time)==null?void 0:_.substring(0,5),room_name:((S=i.department_resources)==null?void 0:S.department_resources_name)||""}))}),l.length>0){let i='';i+='',l.forEach((r,c)=>{i+='"}),i+="
序号项目名称检查室日期时间段
'+(c+1)+''+r.entrust+''+(r.room_name||"")+''+r.date+''+r.begin_time+"-"+r.end_time+"
",$e.value=i,K.value=!0}})},Me=a=>{if(L.length==0)return Y.error("请选择检查项目"),!1;if(P.value==0||P.value==""||P.value==null)return Y.error("请选择号源"),!1;let e="确定预约此时间吗?";a==2&&(e="确定改约至此时间吗?"),ae.confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{pt(a)}).catch(()=>{})},pt=async a=>{O.value=!0;const e={};m.value.forEach(u=>{var f;!R.value.includes(u.id)&&u.temp_plan_id&&(e[u.id]={temp_plan_id:u.temp_plan_id,department_resources_name:(f=u.department_resources)==null?void 0:f.department_resources_name,reservation_date:u.reservation_date,period_begin_time:u.period_begin_time,period_end_time:u.period_end_time})}),console.log("tempPlanCache 缓存:",JSON.parse(JSON.stringify(e)));const t={};let d=!1;if(R.value.forEach(u=>{const f=m.value.find(_=>_.id===u),g=(f==null?void 0:f.temp_plan_id)||(f==null?void 0:f.roster_id);if(!g){d=!0;return}t[g]||(t[g]=[]),t[g].push(u)}),d){O.value=!1,Y.error("存在未分配号源的项目,请先选择号源");return}const n=Object.keys(t);if(n.length===1){const u=Number(n[0]),f=t[u];We({mainlistid:f,planid:u,appointment_type:y.appointment_type,dotype:a,do_user:y.do_user,is_emergency:a==111?1:null}).then(g=>{O.value=!1,g.status?(be.value.forEach((_,S)=>{_.label=="开启申请单pdf"&&_.value}),Se(()=>{var E;Z.value=!1;const _=[...R.value],S=m.value.filter(p=>p.list_status===0&&p.tishi_msg==="");if(S.length===0)_.forEach(p=>{const s=m.value.find(I=>I.id===p);s&&J.value.toggleRowSelection(s,!0)});else{J.value.clearSelection();const p=new Set(S.map(s=>{var I;return(I=s.department_resources)==null?void 0:I.department_resources_name}).filter(Boolean));m.value.forEach(s=>{var I;s.tishi_msg===""&&(s.list_status===0||p.has((I=s.department_resources)==null?void 0:I.department_resources_name))&&J.value.toggleRowSelection(s,!0)})}if(Z.value=!0,m.value.forEach(p=>{e[p.id]&&(console.log("回填 temp_plan_id:",p.id,e[p.id].temp_plan_id),p.temp_plan_id=e[p.id].temp_plan_id,p.department_resources||(p.department_resources={}),p.department_resources.department_resources_name=e[p.id].department_resources_name,p.reservation_date=e[p.id].reservation_date,p.period_begin_time=e[p.id].period_begin_time,p.period_end_time=e[p.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(m.value.map(p=>({id:p.id,temp_plan_id:p.temp_plan_id,list_status:p.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(m.value.map(p=>({id:p.id,temp_plan_id:p.temp_plan_id,list_status:p.list_status})))))},2e3),v.value.length>0){const p=(E=v.value[0].department_resources)==null?void 0:E.department_resources_name;p&&(V.value=p),ee()}},!0),se.value.length>0&&Ve()):ae.confirm(g.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})});return}const l=[],o=[],i=[];for(const u of n){const f=Number(u),g=t[u];try{const _=await We({mainlistid:g,planid:f,appointment_type:y.appointment_type,dotype:a,do_user:y.do_user,is_emergency:a==111?1:null});_.status?g.forEach(S=>{var p;const E=m.value.find(s=>s.id===S);if(E){const s=(E.period_begin_time?E.period_begin_time.substring(0,5):"")+"-"+(E.period_end_time?E.period_end_time.substring(0,5):"");l.push({name:E.entrust,room:((p=E.department_resources)==null?void 0:p.department_resources_name)||"",date:E.reservation_date||"",time:s}),i.push(E.entrust_id)}}):g.forEach(S=>{const E=m.value.find(p=>p.id===S);E&&o.push({name:E.entrust,msg:_.msg})})}catch{g.forEach(S=>{const E=m.value.find(p=>p.id===S);E&&o.push({name:E.entrust,msg:"请求异常"})})}}O.value=!1;let r='';r+='';let c=1;l.forEach(u=>{r+=''}),o.forEach(u=>{r+='"}),r+="
序号项目名称检查室日期时间段结果
'+c+++''+u.name+''+u.room+''+u.date+''+u.time+'预约成功
'+c+++''+u.name+''+u.msg+"
",Oe.value=r,X.value=!0,l.length>0&&(Se(()=>{var g;Z.value=!1;const u=[...R.value],f=m.value.filter(_=>_.list_status===0&&_.tishi_msg==="");if(f.length===0)u.forEach(_=>{const S=m.value.find(E=>E.id===_);S&&J.value.toggleRowSelection(S,!0)});else{J.value.clearSelection();const _=new Set(f.map(S=>{var E;return(E=S.department_resources)==null?void 0:E.department_resources_name}).filter(Boolean));m.value.forEach(S=>{var E;S.tishi_msg===""&&(S.list_status===0||_.has((E=S.department_resources)==null?void 0:E.department_resources_name))&&J.value.toggleRowSelection(S,!0)})}if(Z.value=!0,m.value.forEach(_=>{e[_.id]&&(console.log("回填 temp_plan_id:",_.id,e[_.id].temp_plan_id),_.temp_plan_id=e[_.id].temp_plan_id,_.department_resources||(_.department_resources={}),_.department_resources.department_resources_name=e[_.id].department_resources_name,_.reservation_date=e[_.id].reservation_date,_.period_begin_time=e[_.id].period_begin_time,_.period_end_time=e[_.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(m.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(m.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status})))))},2e3),v.value.length>0){const _=(g=v.value[0].department_resources)==null?void 0:g.department_resources_name;_&&(V.value=_)}ee()},!0),be.value.forEach((u,f)=>{u.label=="开启申请单pdf"&&u.value}),se.value.length>0&&Ve(i))},_t=()=>{ae.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const a={};m.value.forEach(d=>{var n;!R.value.includes(d.id)&&d.temp_plan_id&&(a[d.id]={temp_plan_id:d.temp_plan_id,department_resources_name:(n=d.department_resources)==null?void 0:n.department_resources_name,reservation_date:d.reservation_date,period_begin_time:d.period_begin_time,period_end_time:d.period_end_time})});const e=v.value.map(d=>{var n;return{id:d.id,entrust_id:d.entrust_id,department_resources_name:((n=d.department_resources)==null?void 0:n.department_resources_name)||"",date:d.reservation_date||"",begin_time:d.period_begin_time||"",end_time:d.period_end_time||""}});ne.value=!0;const t=v.value.map(d=>St({MainListId:d.id,reg_num:d.reg_num,do_user:y.do_user}).then(n=>{n.status?Y.success("取消成功"):Y.error(n.msg)}).catch(n=>{Y.error("取消失败"),console.error(n)}));await Promise.all(t),ne.value=!1,Se(()=>{m.value.forEach(n=>{a[n.id]&&(n.temp_plan_id=a[n.id].temp_plan_id,n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=a[n.id].department_resources_name,n.reservation_date=a[n.id].reservation_date,n.period_begin_time=a[n.id].period_begin_time,n.period_end_time=a[n.id].period_end_time)});const d=e;if(d.length>0){const n=m.value.filter(l=>!d.find(o=>o.id===l.id)&&l.list_status===0&&l.temp_plan_id).map(l=>l.temp_plan_id);fe({type:"optimal_time",regnum:y.reg_num,entrustid:d.map(l=>l.entrust_id),episodeid:y.episode_id,appointment_type:y.appointment_type,items:d,occupied_plan_ids:n,scope:y.scope,do_user:y.do_user}).then(l=>{l.status&&l.data.length>0&&(l.data.forEach(o=>{const i=m.value.find(r=>r.id===o.id);i&&(i.department_resources||(i.department_resources={}),i.department_resources.department_resources_name=o.department_resources_name,i.reservation_date=o.date,i.period_begin_time=o.begin_time,i.period_end_time=o.end_time,i.temp_plan_id=o.plan_id)}),V.value=l.data[0].department_resources_name,q.value=l.data.map(o=>o.plan_id),P.value=l.data[0].plan_id)})}},!0)})},mt=()=>{kt({config_arrs:["开启申请单pdf","医生端打印"]}).then(a=>{a.status&&(be.value=a.data.list,be.value.forEach((e,t)=>{console.log(y.appointment_type),e.label=="医生端打印"&&e.value==="0"&&y.appointment_type==1&&(se.value=[])}))})};let Ne=w([]);const Ve=a=>{const e=a||L.value;Ae({regnum:y.reg_num,entrustid:e.join(","),episodeid:y.episode_id,appointment_type:y.appointment_type}).then(t=>{if(t.status){let d=!0;Ne.value=t.data.info,Ne.value.forEach((n,l)=>{n.maininfo.list_status!=1&&(Y.error(n.maininfo.entrust+" 不可打印,请重新选择"),d=!1)}),d&&(Ie.value=!0,setTimeout(function(){Ye.value.$el.click(),Ie.value=!1},500))}else Y.error(t.msg)})},ct=()=>{V.value="",A.value=ke(le.value),console.log(A.value),ee()};function ft(a){const e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}function ke(a=new Date,e=15){const t=new Date(a),d=[];if(isNaN(t.getTime()))throw new Error("无效的日期格式");for(let n=0;n15}function je(){const a=new Date,e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}let Be=w(!1);return bt(()=>{Be.value=!0,mt(),A.value=ke(),Se()}),(a,e)=>{var p;const t=F("el-alert"),d=F("el-table-column"),n=F("el-tag"),l=F("el-table"),o=F("el-button"),i=F("el-checkbox"),r=F("el-checkbox-group"),c=F("el-tooltip"),u=F("el-date-picker"),f=F("el-empty"),g=F("el-dialog"),_=F("el-icon"),S=Ge("loading"),E=Ge("print");return k(),C("div",Dt,[h($)?(k(),C("div",It,[D("div",Ct,[D("span",Tt,N(h($).user_name),1),M("("+N(h($).user_sex_label)+" "+N(h($).age)+"岁)",1)]),D("div",Mt,[M(N(h($).patient_type_label)+"号:",1),D("span",Nt,N(h($).patient_type==0?(p=h($).episodeid)==null?void 0:p.slice(-10):h($).reg_num),1)]),D("div",Vt,[e[19]||(e[19]=M("电话:",-1)),D("span",Bt,N(h($).user_phone),1)]),h($).warddesc?(k(),C("div",Pt,[e[20]||(e[20]=M("病区:",-1)),D("span",zt,N(h($).warddesc),1)])):B("",!0),h($).bedno?(k(),C("div",Yt,[e[21]||(e[21]=M("床号:",-1)),D("span",Rt,N(h($).bedno),1)])):B("",!0),h($).diagnosisName?(k(),C("div",$t,[e[22]||(e[22]=M("诊断:",-1)),D("span",Ot,N(h($).diagnosisName),1)])):B("",!0)])):(k(),C("div",Lt," 获取患者信息失败 ")),Ke.value?(k(),de(t,{key:2,type:"danger",closable:!1,"show-icon":"",style:{"margin-bottom":"8px"}},{title:b(()=>[...e[23]||(e[23]=[D("span",{style:{"font-weight":"700",color:"#f56c6c"}},"患者所有检查项目未预约至同一天,请注意是否需手动调整预约",-1)])]),_:1})):B("",!0),D("div",Ht,[ze((k(),de(l,{data:h(m),style:{width:"100%"},"row-key":"id",ref_key:"entrustTableRef",ref:J,"row-class-name":dt,onSelectionChange:Xe},{default:b(()=>[x(d,{type:"selection",width:"36",selectable:nt}),x(d,{prop:"tishi_msg",width:"200"},{header:b(()=>[D("div",null,[D("div",null,"共 "+N(h(m).length)+" 项,已选 "+N(h(R).length)+" 项",1),Le.value>0?(k(),C("div",Jt,"同检查室项目 "+N(Le.value)+" 项",1)):B("",!0)])]),default:b(s=>[D("span",Ft,N(s.$index+1),1),s.row.tishi_msg!=""?(k(),C("span",jt,N(s.row.tishi_msg),1)):(k(),C("span",qt,"正常"))]),_:1}),x(d,{prop:"list_status",label:"预约状态",width:"80"},{default:b(s=>[s.row.list_status===0?(k(),de(n,{key:0,class:"ml-2",type:"info"},{default:b(()=>[...e[24]||(e[24]=[M("未预约",-1)])]),_:1})):B("",!0),s.row.list_status===1?(k(),de(n,{key:1,class:"ml-2",type:"success"},{default:b(()=>[...e[25]||(e[25]=[M("已预约",-1)])]),_:1})):B("",!0),s.row.list_status===2?(k(),de(n,{key:2,class:"ml-2"},{default:b(()=>[...e[26]||(e[26]=[M("登记",-1)])]),_:1})):B("",!0),s.row.list_status===3?(k(),de(n,{key:3,class:"ml-2",type:"warning"},{default:b(()=>[...e[27]||(e[27]=[M("完成",-1)])]),_:1})):B("",!0)]),_:1}),x(d,{prop:"entrust",label:"项目","show-overflow-tooltip":""}),x(d,{prop:"is_pay",label:"是否交费",width:"60",align:"center"},{default:b(s=>[s.row.is_pay==1?(k(),C("span",Gt,"是")):B("",!0),s.row.is_pay==0?(k(),C("span",Ut,"否")):B("",!0)]),_:1}),x(d,{prop:"his_is_emergency",label:"是否加急",width:"60",align:"center"},{default:b(s=>[s.row.his_is_emergency==1?(k(),C("span",At,"是")):B("",!0),s.row.his_is_emergency==0?(k(),C("span",Wt,"否")):B("",!0)]),_:1}),x(d,{prop:"department_resources.department_resources_name",label:"排班",width:"220"}),x(d,{prop:"reservation_date",label:"预约日期",width:"120"}),x(d,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:b(s=>[s.row.period_begin_time&&s.row.period_end_time?(k(),C("span",Zt,N(s.row.period_begin_time.substring(0,5))+"~"+N(s.row.period_end_time.substring(0,5)),1)):B("",!0)]),_:1}),x(d,{prop:"limosis",label:"是否空腹",width:"60",align:"center"},{default:b(s=>[s.row.limosis==0?(k(),C("span",Qt,"否")):(k(),C("span",Kt,"是"))]),_:1}),x(d,{prop:"reservation_department",label:"申请科室",width:"150"}),x(d,{prop:"",label:"医嘱时间",width:"200"},{default:b(s=>[M(N(s.row.entrust_date)+" "+N(s.row.entrust_time),1)]),_:1}),x(d,{prop:"docotr",label:"申请医生",width:"80"})]),_:1},8,["data"])),[[S,h(ne)]])]),D("div",Xt,[D("div",ed,[D("div",td,[(k(!0),C(me,null,ce(h(ge),(s,I)=>(k(),C("div",{key:I,class:Ue({"ZhenShiButton zhenshiButton_active":h(V)===s,ZhenShiButton:h(V)!==s}),onClick:z=>at(s)},N(s),11,dd))),128)),e[39]||(e[39]=D("div",{class:"shuxian"},null,-1)),He.value?(k(),de(o,{key:0,class:"do_button",type:"danger",onClick:e[0]||(e[0]=s=>Me(111))},{default:b(()=>[...e[28]||(e[28]=[M("加急预约",-1)])]),_:1})):B("",!0),x(o,{class:"do_button",type:"success",onClick:e[1]||(e[1]=s=>Me(1))},{default:b(()=>[...e[29]||(e[29]=[M("预约",-1)])]),_:1}),x(o,{class:"do_button",type:"warning",onClick:e[2]||(e[2]=s=>Me(2))},{default:b(()=>[...e[30]||(e[30]=[M("更改预约时间",-1)])]),_:1}),x(o,{class:"do_button",type:"danger",onClick:e[3]||(e[3]=s=>_t())},{default:b(()=>[...e[31]||(e[31]=[M("取消预约",-1)])]),_:1}),ze((k(),de(o,{style:{display:"none"},ref_key:"print_shenqingdan_button",ref:Ye},{default:b(()=>[...e[32]||(e[32]=[M("打印申请单隐藏按钮",-1)])]),_:1})),[[E,"#shenqingdan"]]),x(o,{onClick:e[4]||(e[4]=s=>Ve())},{default:b(()=>[...e[33]||(e[33]=[M("打印申请单",-1)])]),_:1}),D("div",nd,[x(r,{modelValue:h(se),"onUpdate:modelValue":e[5]||(e[5]=s=>H(se)?se.value=s:se=s)},{default:b(()=>[x(i,{label:"1"},{default:b(()=>[...e[34]||(e[34]=[M("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"]),x(c,{placement:"top",content:wd,"popper-class":"tip-pre-line"},{default:b(()=>[x(i,{modelValue:h(oe),"onUpdate:modelValue":e[6]||(e[6]=s=>H(oe)?oe.value=s:oe=s)},{default:b(()=>[...e[35]||(e[35]=[M("自动选中能一起预约的检查项目",-1)])]),_:1},8,["modelValue"])]),_:1})]),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近能用的时间段号源,多个检查项目可能会跨天跨时间段","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{"margin-left":"20px",width:"120px"},onClick:lt},{default:b(()=>[...e[36]||(e[36]=[M("推荐最近时间号源",-1)])]),_:1})]),_:1}),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{width:"120px"},onClick:rt},{default:b(()=>[...e[37]||(e[37]=[M("推荐同一天号源",-1)])]),_:1})]),_:1}),x(c,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天同一时间段完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[x(o,{class:"do_button_recommend",type:"primary",onClick:ot},{default:b(()=>[...e[38]||(e[38]=[M("推荐同一天同一时间段号源",-1)])]),_:1})]),_:1})]),D("div",null,[x(u,{modelValue:h(le),"onUpdate:modelValue":e[7]||(e[7]=s=>H(le)?le.value=s:le=s),type:"date",placeholder:"跳转日期",onChange:e[8]||(e[8]=s=>ct())},null,8,["modelValue"])])]),ze((k(),C("div",sd,[D("table",ad,[h(v).length>0?(k(),C("tr",id,[e[40]||(e[40]=D("td",{style:{width:"120px"}},null,-1)),(k(!0),C(me,null,ce(h(A),(s,I)=>(k(),C("td",ld,N(s.substring(5,10))+" "+N(Qe(s)),1))),256))])):B("",!0),h(A).length>0&&h(ie).length>0?(k(!0),C(me,{key:1},ce(h(ie),(s,I)=>(k(),C("tr",{key:I,class:"table_plan_row"},[(k(!0),C(me,null,ce(s,(z,te)=>(k(),C("td",{key:te,class:Ue({planActive:h(q).includes(z.id)&&z.id!==0&&z.id,plandisable:!z.enable&&te!=="time_range"}),onClick:T=>it(z.id)},[te=="time_range"?(k(),C("span",od,N(z),1)):B("",!0),D("span",null,N(z.use_count),1)],10,rd))),128))]))),128)):B("",!0)]),h(v).length==0?(k(),C("div",ud,[x(f,{description:"请选择项目"})])):B("",!0),h(v).length>0&&h(ie).length==0?(k(),C("div",pd,[x(f,{description:"暂无号源"})])):B("",!0)])),[[S,h(O)]])]),h(Ie)?(k(),C("div",_d,[(k(!0),C(me,null,ce(h(Ne),(s,I)=>(k(),C("div",{key:I},[x(Et,{printInfo:s.maininfo},null,8,["printInfo"])]))),128))])):B("",!0),x(g,{modelValue:h(Q),"onUpdate:modelValue":e[10]||(e[10]=s=>H(Q)?Q.value=s:Q=s),title:"提示",width:"500"},{footer:b(()=>[D("div",md,[x(o,{type:"primary",onClick:e[9]||(e[9]=s=>H(Q)?Q.value=!1:Q=!1)},{default:b(()=>[...e[41]||(e[41]=[M(" 确定 ",-1)])]),_:1})])]),default:b(()=>[x(l,{data:h(we),style:{width:"100%"},"row-key":"id"},{default:b(()=>[x(d,{prop:"item_name",label:"项目名称"}),x(d,{prop:"msg",label:"异常提示"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),x(g,{modelValue:h(j),"onUpdate:modelValue":e[12]||(e[12]=s=>H(j)?j.value=s:j=s),title:"提示",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[11]||(e[11]=s=>H(j)?j.value=!1:j=!1)},{default:b(()=>[...e[43]||(e[43]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",cd,[x(_,{class:"el-icon-warning",style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",null,[e[42]||(e[42]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}},"最近可用的同一时间段号源数量不足,无法把当前全部检查项目预约在同一时间段,系统已经自动拆分。",-1)),D("div",{innerHTML:h(ue)},null,8,fd)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(K),"onUpdate:modelValue":e[14]||(e[14]=s=>H(K)?K.value=s:K=s),title:"时段冲突",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[13]||(e[13]=s=>H(K)?K.value=!1:K=!1)},{default:b(()=>[...e[45]||(e[45]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",gd,[x(_,{style:{color:"#F56C6C","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",null,[e[44]||(e[44]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}}," 以下项目与当前选择的时间段存在冲突,请确认是否继续预约: ",-1)),D("div",{innerHTML:h($e)},null,8,xd)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(X),"onUpdate:modelValue":e[16]||(e[16]=s=>H(X)?X.value=s:X=s),title:"预约结果",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[15]||(e[15]=s=>H(X)?X.value=!1:X=!1)},{default:b(()=>[...e[46]||(e[46]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",hd,[x(_,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",{innerHTML:h(Oe)},null,8,bd)])]),_:1},8,["modelValue"]),x(g,{modelValue:h(G),"onUpdate:modelValue":e[18]||(e[18]=s=>H(G)?G.value=s:G=s),title:"预约推荐结果",width:"800"},{footer:b(()=>[x(o,{type:"primary",onClick:e[17]||(e[17]=s=>H(G)?G.value=!1:G=!1)},{default:b(()=>[...e[47]||(e[47]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",yd,[x(_,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[x(h(De))]),_:1}),D("div",{innerHTML:h(ve)},null,8,vd)])]),_:1},8,["modelValue"])])}}},Dd=ht(Sd,[["__scopeId","data-v-0312b1a5"]]);export{Dd as Y}; diff --git a/Laravel/public/admin/assets/index-da6d6502.css b/Laravel/public/dist/assets/index-da6d6502.css similarity index 100% rename from Laravel/public/admin/assets/index-da6d6502.css rename to Laravel/public/dist/assets/index-da6d6502.css diff --git a/Laravel/public/admin/assets/index-af171713.js b/Laravel/public/dist/assets/index-e65958bd.js similarity index 99% rename from Laravel/public/admin/assets/index-af171713.js rename to Laravel/public/dist/assets/index-e65958bd.js index 9d47fe9..ad8a565 100644 --- a/Laravel/public/admin/assets/index-af171713.js +++ b/Laravel/public/dist/assets/index-e65958bd.js @@ -155,4 +155,4 @@ PERFORMANCE OF THIS SOFTWARE. `:"
",m=d.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=Jt(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,v=n.positionDefault,p=pp([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,d),b=new p3;m.marker=b.makeTooltipMarker("item",qd(m.color),h);var _=UD(u.formatTooltip(c,!1,d)),w=p.get("order"),x=p.get("valueFormatter"),S=_.frag,C=S?ZD(x?Oe({valueFormatter:x},S):S,b,h,w,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,C,m,T,n.offsetX,n.offsetY,n.position,n.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=Jt(r),o=i.tooltipConfig,s=o.option||{};if(dt(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=n.positionDefault,f=pp(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),v=Math.random()+"",p=new p3;this._showOrMove(f,function(){var g=Bt(f.get("formatterParams")||{});this._showTooltipContent(f,h,g,v,n.offsetX,n.offsetY,n.position,r,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var f=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),p=v.color;if(f)if(dt(f)){var g=n.ecModel.get("useUTC"),m=Fe(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=f,b&&(h=J_(m.axisValue,h,g)),h=DK(h,a,!0)}else if(Pt(f)){var _=vt(function(w,x){w===this._ticket&&(d.setContent(x,c,n,p,l),this._updatePosition(n,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,n,p,l),d.show(n,p),this._updatePosition(n,l,o,s,d,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Fe(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Fe(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var d=o.getSize(),f=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Pt(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:d.slice()})),Fe(r))a=ot(r[0],u),i=ot(r[1],c);else if(Nt(r)){var p=r;p.width=d[0],p.height=d[1];var g=Wr(p,{width:u,height:c});a=g.x,i=g.y,f=null,h=null}else if(dt(r)&&l){var m=pit(r,v,d,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=hit(a,i,o,u,c,f?null:20,h?null:20);a=m[0],i=m[1]}if(f&&(a-=lN(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=lN(h)?d[1]/2:h==="bottom"?d[1]:0),rJ(n)){var m=vit(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&Z(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&Z(u,function(f,h){var v=d[h]||{},p=f.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&p.length===g.length,o&&Z(p,function(m,b){var _=g[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&Z(f.seriesDataIndices,function(m){var b=m.seriesIndex,_=r[b],w=i[b];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){En.node||!r.getDom()||(lg(this,"_updatePosition"),this._tooltipContent.dispose(),Gx("itemTooltip",r))},t.type="tooltip",t}(xr);function pp(e,t,n){var r=t.ecModel,a;n?(a=new tr(n,r,r),a=new tr(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof tr&&(o=o.get("tooltip",!0)),dt(o)&&(o={formatter:o}),o&&(a=new tr(o,a,r)))}return a}function sN(e,t){return e.dispatchAction||vt(t.dispatchAction,t)}function hit(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function vit(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function pit(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function lN(e){return e==="center"||e==="middle"}function git(e,t,n){var r=UT(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=om(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Jt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const mit=fit;function yit(e){hn(Cm),e.registerComponentModel(Zat),e.registerComponentView(mit),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ir),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ir)}var bit=["rect","polygon","keep","clear"];function _it(e,t){var n=Gn(e?e.brush:[]);if(n.length){var r=[];Z(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Fe(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),wit(s),t&&!s.length&&s.push.apply(s,bit)}}function wit(e){var t={};Z(e,function(n){t[n]=1}),e.length=0,Z(t,function(n,r){e.push(r)})}var uN=Z;function cN(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function qx(e,t,n){var r={};return uN(t,function(i){var o=r[i]=a();uN(e[i],function(s,l){if(va.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new va(u),l==="opacity"&&(u=Bt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new va(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function sJ(e,t,n){var r;Z(n,function(a){t.hasOwnProperty(a)&&cN(t[a])&&(r=!0)}),r&&Z(n,function(a){t.hasOwnProperty(a)&&cN(t[a])?e[a]=Bt(t[a]):delete e[a]})}function Sit(e,t,n,r,a,i){var o={};Z(e,function(d){var f=va.prepareVisualTypes(t[d]);o[d]=f});var s;function l(d){return SM(n,s,d)}function u(d,f){xY(n,s,d,f)}i==null?n.each(c):n.each([i],c);function c(d,f){s=i==null?d:f;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=r.call(a,d),p=t[v],g=o[v],m=0,b=g.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&pN(t)}};function pN(e){return new on(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Iit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new uA(r.getZr())).on("brush",vt(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){lJ(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Bt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Bt(a),$from:r})},t.type="brush",t}(xr);const Lit=Iit;var Dit="#ddd",Pit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&sJ(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Dit},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Ge(n,function(r){return gN(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=gN(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(kn);function gN(e,t){return an({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new tr(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const Rit=Pit;var Oit=["rect","polygon","lineX","lineY","keep","clear"],Nit=function(e){be(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,Z(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return Z(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:Oit.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(Ki);const Vit=Nit;function Bit(e){e.registerComponentView(Lit),e.registerComponentModel(Rit),e.registerPreprocessor(_it),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Tit),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ir),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ir),Jf("brush",Vit)}var $it=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(kn),zit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=rn(n.get("textBaseline"),n.get("textVerticalAlign")),c=new In({style:er(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=n.get("subtext"),h=new In({style:er(s,{text:f,fill:s.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){Q2(v,"_"+n.get("target"))}),p&&h.on("click",function(){Q2(p,"_"+n.get("subtarget"))}),Jt(c).eventData=Jt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),f&&i.add(h);var m=i.getBoundingRect(),b=n.getBoxLayoutParams();b.width=m.width,b.height=m.height;var _=Wr(b,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var x=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var C=new Mn({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(xr);function Fit(e){e.registerComponentModel($it),e.registerComponentView(zit)}var Hit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],Z(r,function(u,c){var d=Fr(pv(u),""),f;Nt(u)?(f=Bt(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ja([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(kn);const mN=Hit;var uJ=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=ac(mN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(mN);Br(uJ,mM.prototype);const Git=uJ;var Wit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(xr);const Uit=Wit;var jit=function(e){be(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(jo);const Kit=jit;var D6=Math.PI,yN=An(),Yit=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Qr("nameValue",{noName:!0,value:c})},Z(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=Xit(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:D6/2},d=i==="vertical"?o.height:o.width,f=n.getModel("controlStyle"),h=f.get("show",!0),v=h?f.get("itemSize"):0,p=h?f.get("itemGap"):0,g=v+p,m=n.get(["label","rotate"])||0;m=m*D6/180;var b,_,w,x=f.get("position",!0),S=h&&f.get("showPlayBtn",!0),C=h&&f.get("showPrevBtn",!0),T=h&&f.get("showNextBtn",!0),M=0,k=d;x==="left"||x==="bottom"?(S&&(b=[0,0],M+=g),C&&(_=[M,0],M+=g),T&&(w=[k-v,0],k-=g)):(S&&(b=[k-v,0],k-=g),C&&(_=[0,0],M+=g),T&&(w=[k-v,0],k-=g));var A=[M,k];return n.get("inverse")&&A.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:w,axisExtent:A,controlSize:v,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=so(),l=o.x,u=o.y+o.height;Rs(s,s,[-l,-u]),af(s,s,-D6/2),Rs(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=n.labelPosOpt;if(p==null||dt(p)){var g=p==="+"?0:1;_(h,d,c,1,g),_(v,f,c,1,1-g)}else{var g=p>=0?0:1;_(h,d,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,x,S,C,T){w[C]+=S[C][T]-x[C][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=qit(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Kit("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Ht;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new aa({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Oe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new aa({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ot({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],Z(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),v=d.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:vt(o._changeTimeline,o,u.value)},g=bN(d,f,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),Td(g);var m=Jt(g);d.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],Z(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),v=f.getModel(["emphasis","label"]),p=f.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new In({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:vt(o._changeTimeline,o,d),silent:!1,style:er(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=er(v),m.ensureState("progress").style=er(p),r.add(m),Td(m),yN(m).dataIndex=d,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(n.nextBtnPosition,"next",vt(this._changeTimeline,this,d?"-":"+")),f(n.prevBtnPosition,"prev",vt(this._changeTimeline,this,d?"+":"-")),f(n.playPosition,c?"stop":"play",vt(this._handlePlayClick,this,!c),!0);function f(h,v,p,g){if(h){var m=Oo(rn(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],_=Zit(i,v+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,r.add(_),Td(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=vt(u._handlePointerDrag,u),d.ondragend=vt(u._handlePointerDragend,u),_N(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){_N(d,u._progressLine,s,a,i)}};this._currentPointer=bN(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=Ji(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var P6={min:Qt(Z1,"min"),max:Qt(Z1,"max"),average:Qt(Z1,"average"),median:Qt(Z1,"median")};function wg(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!iot(t)&&!Fe(t.coord)&&Fe(a)){var i=dJ(t,n,r,e);if(t=Bt(t),t.type&&P6[t.type]&&i.baseAxis&&i.valueAxis){var o=fn(a,i.baseAxis.dim),s=fn(a,i.valueAxis.dim),l=P6[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Fe(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)P6[u[c]]&&(u[c]=PA(n,n.mapDimension(a[c]),u[c]));return t}}function dJ(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(oot(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function oot(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Sg(e,t){return e&&e.containData&&t.coord&&!Zx(t)?e.containData(t.coord):!0}function sot(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!Zx(t)&&!Zx(n)?e.containZone(t.coord,n.coord):!0}function fJ(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return Ou(o,t[i])}:function(n,r,a,i){return Ou(n.value,t[i])}}function PA(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var R6=An(),lot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=At()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){R6(s).keep=!1}),r.eachSeries(function(s){var l=Qu.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!R6(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){R6(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;Z(n,function(i){var o=Qu.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?$j(l):ZT(l))})}})},t.type="marker",t}(xr);const RA=lot;function SN(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=ot(i.get("x"),n.getWidth()),l=ot(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var uot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Qu.getMarkerModelFromSeries(i,"markPoint");o&&(SN(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new ym),d=cot(o,n,r);r.setData(d),SN(r.getData(),n,i),d.each(function(f){var h=d.getItemModel(f),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(Pt(v)||Pt(p)||Pt(g)||Pt(m)){var _=r.getRawValue(f),w=r.getDataParams(f);Pt(v)&&(v=v(_,w)),Pt(p)&&(p=p(_,w)),Pt(g)&&(g=g(_,w)),Pt(m)&&(m=m(_,w))}var x=h.getModel("itemStyle").getItemStyle(),S=hm(l,"color");x.fill||(x.fill=S),d.setItemVisual(f,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:b,style:x})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){Jt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(RA);function cot(e,t,n){var r;e?r=Ge(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Oe(Oe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ja(r,n),i=Ge(n.get("data"),Qt(wg,t));e&&(i=zn(i,Qt(Sg,e)));var o=fJ(!!e,r);return a.initData(i,null,o),a}const dot=uot;function fot(e){e.registerComponentModel(aot),e.registerComponentView(dot),e.registerPreprocessor(function(t){DA(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var hot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Qu);const vot=hot;var J1=An(),pot=function(e,t,n,r){var a=e.getData(),i;if(Fe(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=ra(r.yAxis,r.xAxis);else{var u=dJ(r,a,t,e);s=u.valueAxis;var c=JY(a,u.valueDataDim);l=PA(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Bt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,v.coord[f]=1/0;var p=n.get("precision");p>=0&&Ln(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[d]=v.coord[d]=l,i=[h,v,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[wg(e,i[0]),wg(e,i[1]),Oe({},i[2])];return g[2].type=g[2].type||null,an(g[2],g[0]),an(g[2],g[1]),g};function Tb(e){return!isNaN(e)&&!isFinite(e)}function xN(e,t,n,r){var a=1-e,i=r.dimensions[e];return Tb(t[a])&&Tb(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function got(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(xN(1,n,r,e)||xN(0,n,r,e)))return!0}return Sg(e,t[0])&&Sg(e,t[1])}function O6(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=ot(o.get("x"),a.getWidth()),u=ot(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);s=i.dataToPoint([d,f])}if(uf(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;Tb(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):Tb(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var mot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Qu.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=J1(o).from,u=J1(o).to;l.each(function(c){O6(l,c,!0,i,a),O6(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new rA);this.group.add(c.group);var d=yot(o,n,r),f=d.from,h=d.to,v=d.line;J1(r).from=f,J1(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");Fe(p)||(p=[p,p]),Fe(g)||(g=[g,g]),Fe(m)||(m=[m,m]),Fe(b)||(b=[b,b]),d.from.each(function(w){_(f,w,!0),_(h,w,!1)}),v.each(function(w){var x=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[f.getItemLayout(w),h.getItemLayout(w)]),x.stroke==null&&(x.stroke=f.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:f.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(w,"symbolOffset"),fromSymbolRotate:f.getItemVisual(w,"symbolRotate"),fromSymbolSize:f.getItemVisual(w,"symbolSize"),fromSymbol:f.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:x})}),c.updateData(v),d.line.eachItemGraphicEl(function(w){Jt(w).dataModel=r,w.traverse(function(x){Jt(x).dataModel=r})});function _(w,x,S){var C=w.getItemModel(x);O6(w,x,S,n,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=hm(l,"color")),w.setItemVisual(x,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:rn(C.get("symbolOffset",!0),b[S?0:1]),symbolRotate:rn(C.get("symbolRotate",!0),m[S?0:1]),symbolSize:rn(C.get("symbolSize"),g[S?0:1]),symbol:rn(C.get("symbol",!0),p[S?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(RA);function yot(e,t,n){var r;e?r=Ge(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Oe(Oe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ja(r,n),i=new ja(r,n),o=new ja([],n),s=Ge(n.get("data"),Qt(pot,t,e,n));e&&(s=zn(s,Qt(got,e)));var l=fJ(!!e,r);return a.initData(Ge(s,function(u){return u[0]}),null,l),i.initData(Ge(s,function(u){return u[1]}),null,l),o.initData(Ge(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const bot=mot;function _ot(e){e.registerComponentModel(vot),e.registerComponentView(bot),e.registerPreprocessor(function(t){DA(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var wot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Qu);const Sot=wot;var Q1=An(),xot=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=wg(e,a),s=wg(e,i),l=o.coord,u=s.coord;l[0]=ra(l[0],-1/0),l[1]=ra(l[1],-1/0),u[0]=ra(u[0],1/0),u[1]=ra(u[1],1/0);var c=PT([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function Mb(e){return!isNaN(e)&&!isFinite(e)}function CN(e,t,n,r){var a=1-e;return Mb(t[a])&&Mb(n[a])}function Cot(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return uf(e,"cartesian2d")?n&&r&&(CN(1,n,r)||CN(0,n,r))?!0:sot(e,a,i):Sg(e,a)||Sg(e,i)}function TN(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=ot(o.get(n[0]),a.getWidth()),u=ot(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),f=i.clampData(c),h=i.clampData(d),v=[];n[0]==="x0"?v[0]=f[0]>h[0]?d[0]:c[0]:v[0]=f[0]>h[0]?c[0]:d[0],n[1]==="y0"?v[1]=f[1]>h[1]?d[1]:c[1]:v[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(v,n,!0)}else{var p=e.get(n[0],t),g=e.get(n[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(uf(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);Mb(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):Mb(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var MN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Tot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Qu.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Ge(MN,function(d){return TN(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ht});this.group.add(c.group),this.markKeep(c);var d=Mot(o,n,r);r.setData(d),d.each(function(f){var h=Ge(MN,function(T){return TN(d,f,T,n,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),b=[v.parse(d.get("x0",f)),v.parse(d.get("x1",f))],_=[p.parse(d.get("y0",f)),p.parse(d.get("y1",f))];Ji(b),Ji(_);var w=!(g[0]>b[1]||g[1]_[1]||m[1]<_[0]),x=!w;d.setItemLayout(f,{points:h,allClipped:x});var S=d.getItemModel(f).getModel("itemStyle").getItemStyle(),C=hm(l,"color");S.fill||(S.fill=C,dt(S.fill)&&(S.fill=z2(S.fill,.4))),S.stroke||(S.stroke=C),d.setItemVisual(f,"style",S)}),d.diff(Q1(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var v=new pi({shape:{points:h.points}});d.setItemGraphicEl(f,v),c.group.add(v)}}).update(function(f,h){var v=Q1(c).data.getItemGraphicEl(h),p=d.getItemLayout(f);p.allClipped?v&&c.group.remove(v):(v?Dn(v,{shape:{points:p.points}},r,f):v=new pi({shape:{points:p.points}}),d.setItemGraphicEl(f,v),c.group.add(v))}).remove(function(f){var h=Q1(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var v=d.getItemModel(h),p=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),ma(f,Jr(v),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:dt(p.fill)?z2(p.fill,1):"#000"}),ga(f,v),Sr(f,null,null,v.get(["emphasis","disabled"])),Jt(f).dataModel=r}),Q1(c).data=d,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(RA);function Mot(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=Ge(e&&e.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Oe(Oe({},d),{name:u,ordinalMeta:null})});a=Ge(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ja(a,n)}else a=[{name:"value",type:"float"}],r=new ja(a,n);var s=Ge(n.get("data"),Qt(xot,t,e,n));e&&(s=zn(s,Qt(Cot,e)));var l=e?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return Ou(h,a[f])}:function(u,c,d,f){return Ou(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const Aot=Tot;function kot(e){e.registerComponentModel(Sot),e.registerComponentView(Aot),e.registerPreprocessor(function(t){DA(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Eot=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Iot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Fe(r)&&Z(r,function(i,o){dt(i)&&(i={type:i}),r[o]=an(i,Eot(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(kn);const Jx=Iot;var zf=Qt,Qx=Z,ey=Ht,Lot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new ey),this.group.add(this._selectorGroup=new ey),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=n.get("padding"),h=Wr(c,d,f),v=this.layoutInner(n,o,h,i,l,u),p=Wr(Ot({width:v.width,height:v.height},c),d,f);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=eJ(v,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=At(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),Qx(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new ey;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var b=m.getData(),_=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),x=b.getVisual("style"),S=this._createItem(m,p,v,h,r,n,_,x,w,d,i);S.on("click",zf(AN,p,null,i,f)).on("mouseover",zf(eC,m.name,null,i,f)).on("mouseout",zf(tC,m.name,null,i,f)),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),k=T.getItemVisual(M,"style"),A=T.getItemVisual(M,"legendIcon"),E=ki(k.fill);E&&E[3]===0&&(E[3]=.2,k=Oe(Oe({},k),{fill:vl(E,"rgba")}));var D=this._createItem(C,p,v,h,r,n,{},k,A,d,i);D.on("click",zf(AN,null,p,i,f)).on("mouseover",zf(eC,null,p,i,f)).on("mouseout",zf(tC,null,p,i,f)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();Qx(n,function(u){var c=u.type,d=new In({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);ma(d,{normal:f,emphasis:h},{defaultText:u.title}),Td(d)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,d,f){var h=n.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),m=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=Dot(c,i,l,u,h,g,f),x=new ey,S=i.getModel("textStyle");if(Pt(n.getLegendIcon)&&(!_||_==="inherit"))x.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var C=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;x.add(Pot({itemWidth:v,itemHeight:p,icon:c,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?v+5:-5,M=s,k=o.get("formatter"),A=r;dt(k)&&k?A=k.replace("{name}",r??""):Pt(k)&&(A=k(r));var E=g?S.getTextColor():i.get("inactiveColor");x.add(new In({style:er(S,{text:A,x:T,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var D=new Mn({shape:x.getBoundingRect(),invisible:!0}),R=i.getModel("tooltip");return R.get("show")&&yv({el:D,componentModel:o,itemName:r,itemTooltipOption:R.option}),x.add(D),x.eachChild(function(V){V.silent=!0}),D.silent=!d,this.getContentGroup().add(x),Td(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ad(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ad("horizontal",u,n.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],v=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",b=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:d[p]+=f[g]+v,h[1-p]+=c[m]/2-f[m]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[g]=c[g]+v+f[g],_[m]=Math.max(c[m],f[m]),_[b]=Math.min(0,f[b]+h[1-p]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(xr);function Dot(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Qx(g,function(b,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:jh(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Pot(e){var t=e.icon||"roundRect",n=Nr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function AN(e,t,n,r){tC(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),eC(e,t,n,r)}function hJ(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;ra[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],b=[-v.x,-v.y],_=rn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+_}b[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),d.setPosition(m),f.setPosition(b);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+b[1-i]),d.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=x[s],d.setClipPath(new Mn({shape:S})),d.__rectSize=S[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&Dn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?n:null),this._updatePageInfoView(n,C),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;Z(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",dt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=N6[o],l=V6[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return v;var p=w(d);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=f;++g)_=w(c[g]),(!_&&b.e>m.s+i||_&&!x(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=_;for(var g=u-1,m=p,b=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!x(b,_.s))&&m.i=C&&S.s<=C+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(vJ);const $ot=Bot;function zot(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function Fot(e){hn(pJ),e.registerComponentModel(Vot),e.registerComponentView($ot),zot(e)}function Hot(e){hn(pJ),hn(Fot)}var Got=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=ac(_g.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_g);const Wot=Got;var OA=An();function Uot(e,t,n){OA(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function jot(e,t){for(var n=OA(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Zot(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=OA(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=At());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZZ(i);Z(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Kot(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=At());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){gJ(a,i);return}var c=Xot(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Jot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),Uot(a,n,{pan:vt(B6.pan,this),zoom:vt(B6.zoom,this),scrollMove:vt(B6.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jot(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(MA),B6={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=$6[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(df(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:IN(function(e,t,n,r,a,i){var o=$6[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:IN(function(e,t,n,r,a,i){var o=$6[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function IN(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(df(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var $6={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Qot=Jot;function mJ(e){AA(e),e.registerComponentModel(Wot),e.registerComponentView(Qot),Zot(e)}var est=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ac(_g.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_g);const tst=est;var yp=Mn,LN=7,nst=1,z6=30,rst=7,bp="horizontal",DN="vertical",ast=5,ist=["line","bar","candlestick","scatter"],ost={easing:"cubicOut",duration:100,delay:0},sst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=vt(this._onBrush,this),this._onBrushEnd=vt(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Mv(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lg(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ht;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?rst:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bp?{right:s.width-o.x-o.width,top:s.height-z6-LN-i,width:o.width,height:z6}:{right:LN,top:o.y,width:z6,height:o.height},u=Sv(n.option);Z(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=Wr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===DN&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bp&&!o?{scaleY:l?1:-1,scaleX:1}:a===bp&&o?{scaleY:l?1:-1,scaleX:-1}:a===DN&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new yp({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new yp({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:vt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),w;o.each([l],function(M,k){if(_>0&&k%_){b+=m;return}var A=M==null||isNaN(M)||M==="",E=A?0:Bn(M,d,h,!0);A&&!w&&k?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&w&&(p.push([b,0]),g.push([b,0])),p.push([b,E]),g.push([b,E]),b+=m,w=A}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(M){var k=x.getModel(M?"selectedDataBackground":"dataBackground"),A=new Ht,E=new pi({shape:{points:u},segmentIgnoreThreshold:1,style:k.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new mi({shape:{points:c},segmentIgnoreThreshold:1,style:k.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(E),A.add(D),A}for(var C=0;C<3;C++){var T=S(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();Z(l,function(u){if(!a&&!(r!==!0&&fn(ist,u.get("type"))<0)){var c=i.getComponent(Iu(o),s).axis,d=lst(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new yp({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new yp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:nst,fill:"rgba(0,0,0,0)"}})),Z([0,1],function(_){var w=l.get("handleIcon");!nb[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var x=Nr(w,-1,0,2,2,null,!0);x.attr({cursor:PN(this._orient),draggable:!0,drift:vt(this._onDragMove,this,_),ondragend:vt(this._onDragEnd,this),onmouseover:vt(this._showDataInfo,this,!0),onmouseout:vt(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ot(C,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Td(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[_]=x);var M=l.getModel("textStyle");n.add(i[_]=new In({silent:!0,invisible:!0,style:er(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=f;if(d){var v=ot(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new Mn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=Nr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Mn({invisible:!0,shape:{y:s[1]-b,height:v+b}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:PN(this._orient),drift:vt(this._onDragMove,this,"all"),ondragstart:vt(this._showDataInfo,this,!0),ondragend:vt(this._onDragEnd,this),onmouseover:vt(this._showDataInfo,this,!0),onmouseout:vt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Bn(n[0],[0,100],r,!0),Bn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];df(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?Bn(s.minSpan,l,o,!0):null,s.maxSpan!=null?Bn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ji([Bn(i[0],o,l,!0),Bn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ji(a.slice()),o=this._size;Z([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new tn(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ji([Bn(a.x,o,s,!0),Bn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(xl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new yp({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?ost:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=ZZ(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(MA);function lst(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function PN(e){return e==="vertical"?"ns-resize":"ew-resize"}const ust=sst;function yJ(e){e.registerComponentModel(tst),e.registerComponentView(ust),AA(e)}function cst(e){hn(mJ),hn(yJ)}var dst={get:function(e,t,n){var r=Bt((fst[e]||{})[t]);return n&&Fe(r)?r[r.length-1]:r}},fst={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const bJ=dst;var RN=va.mapVisual,hst=va.eachVisual,vst=Fe,ON=Z,pst=Ji,gst=Bn,mst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&sJ(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=vt(n,this),this.controllerVisuals=qx(this.option.controller,r,n),this.targetVisuals=qx(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=Gn(n),r},t.prototype.eachTargetSeries=function(n,r){Z(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Fe(n)&&(n=n.slice(),u=!0);var c=r?n:u?[d(n[0]),d(n[1])]:d(n);if(dt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Pt(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=pst([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});an(i,a),an(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){vst(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:n.get("gradientColor")}}function u(d,f,h){var v=d[f],p=d[h];v&&!p&&(p=d[h]={},ON(v,function(g,m){if(va.isValidType(m)){var b=bJ.get(m,"inactive",s);b!=null&&(p[m]=b,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";ON(this.stateList,function(m){var b=this.itemSize,_=d[m];_||(_=d[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=f&&Bt(f)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&Bt(h)||(s?b[0]:[b[0],b[0]])),_.symbol=RN(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var x=-1/0;hst(w,function(S){S>x&&(x=S)}),_.symbolSize=RN(w,function(S){return gst(S,[0,x],[0,b[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(kn);const Ab=mst;var NN=[20,140],yst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=NN[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=NN[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Fe(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ji((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=VN(this,"outOfRange",this.getExtent()),a=VN(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Ht(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();wst([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=n[c];var f=ns(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var v=Io(a.handleLabelPoints[c],Md(d,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",f),v=this.getControllerVisual(n,"symbolSize"),p=ns(n,s,u,!0),g=l[0]-v/2,m={x:d.x,y:d.y};d.y=p,d.x=g;var b=Io(c.indicatorLabelPoint,Md(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var C={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};d.x=m.x,d.y=m.y,d.animateTo(C,M),_.animateTo(T,M)}else d.attr(C),_.attr(T);this._firstShowIndicator=!1;var k=this._shapes.handleLabels;if(k)for(var A=0;Ao[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||FN(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var v=v$e(f,h);this._dispatchHighDown("downplay",Uy(v[0],a)),this._dispatchHighDown("highlight",Uy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(cd(n.target,function(l){var u=Jt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function Ist(e,t,n,r){for(var a=t.targetVisuals[r],i=va.prepareVisualTypes(a),o={color:hm(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Ast,kst),Z(Est,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Lst))}function xJ(e){e.registerComponentModel(bst),e.registerComponentView(Mst),SJ(e)}var Dst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Pst[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Bt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Ge(this._pieceList,function(l){return l=Bt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=va.listVisualTypes(),i=this.isCategory();Z(n.pieces,function(s){Z(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),Z(r,function(s,l){var u=!1;Z(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&Z(this.stateList,function(c){(n[c]||(n[c]={}))[l]=bJ.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,Z(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;Z(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Bt(n)},t.prototype.getValueState=function(n){var r=va.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=va.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=n(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return Z(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=ac(Ab.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ab),Pst={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function UN(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const Rst=Dst;var Ost=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=ra(r.get("showLabel",!0),!d);d&&this._renderEndsText(n,d[0],u,f,l),Z(c.viewPieceList,function(h){var v=h.piece,p=new Ht;p.onclick=vt(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),f){var m=this.visualMapModel.getValueState(g);p.add(new In({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(p)},this),d&&this._renderEndsText(n,d[1],u,f,l),Ad(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Uy(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return wJ(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Ht,l=this.visualMapModel.textStyleModel;s.add(new In({style:er(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Ge(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(Nr(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Bt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,Z(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(_J);const Nst=Ost;function CJ(e){e.registerComponentModel(Rst),e.registerComponentView(Nst),SJ(e)}function Vst(e){hn(xJ),hn(CJ)}var Bst={label:{enabled:!0},decal:{show:!1}},jN=An(),$st={};function zst(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Bt(Bst);an(r.label,e.getLocaleModel().get("aria"),!1),an(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var d=At();e.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),jN(f).scope=h}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(Pt(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=nx(f.ecModel,f.name,$st,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,b))}else{var v=f.getRawData(),p={},g=jN(f).scope;h.each(function(x){var S=h.getRawIndex(x);p[S]=x});var m=v.count();v.each(function(x){var S=p[x],C=v.getName(x)||x+"",T=nx(f.ecModel,C,g,m),M=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(M,T))})}function w(x,S){var C=x?Oe(Oe({},S),x):S;return C.dirty=!0,C}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Ot(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(f,v),g;if(!(f<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:f}),e.eachSeries(function(T,M){if(M1?c.get(["series","multiple",E]):c.get(["series","single",E]),k=o(k,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var D=T.getData();if(D.count()>h){var R=c.get(["data","partialData"]);k+=o(R,{displayCnt:h})}else k+=c.get(["data","allData"]);for(var V=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),$=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Gst=function(){function e(t){var n=this._condVal=dt(t)?new RegExp(t):TVe(t)?t:null;if(n==null){var r="";On(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return dt(n)?this._condVal.test(t):Ln(n)?this._condVal.test(t+""):!1},e}(),Wst=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Ust=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[D,R]}function c(D,R,V,N){ah(D,V)&&ah(R,N)||a.push(D,R,V,N,V,N)}function d(D,R,V,N,$,O){var F=Math.abs(R-D),G=Math.tan(F/4)*4/3,U=RT:A2&&r.push(a),r}function rC(e,t,n,r,a,i,o,s,l,u){if(ah(e,n)&&ah(t,r)&&ah(a,o)&&ah(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-e,h=s-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var p=n-e,g=r-t,m=a-o,b=i-s,_=p*p+g*g,w=m*m+b*b;if(_=0&&T=0){l.push(o,s);return}var M=[],k=[];ju(e,n,a,o,.5,M),ju(t,r,i,s,.5,k),rC(M[0],k[0],M[1],k[1],M[2],k[2],M[3],k[3],l,u),rC(M[4],k[4],M[5],k[5],M[6],k[6],M[7],k[7],l,u)}function ilt(e,t){var n=nC(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=MJ([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;ha,o=MJ([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=e[s]/o.length,f=0;f1?null:new tn(p*l+e,p*u+t)}function llt(e,t,n){var r=new tn;tn.sub(r,n,t),r.normalize();var a=new tn;tn.sub(a,e,t);var i=a.dot(r);return i}function Hf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ult(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),ult(t,u,c)}function kb(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);kb(e,i[0],a,r),kb(e,i[1],n-a,r)}return r}function clt(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),T=Math.cos(S),M=0,_=0;_0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Lb(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=Ge(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(d,n),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=Ge(i,function(s,l){return{cp:s,z:blt(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function EJ(e){return hlt(e.path,e.count)}function aC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _lt(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var Slt={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;tV(e)&&(u=e,c=t),tV(t)&&(u=t,c=e);function d(m,b,_,w,x){var S=m.many,C=m.one;if(S.length===1&&!x){var T=b?S[0]:C,M=b?C:S[0];if(Eb(T))d({many:[T],one:M},!0,_,w,!0);else{var k=s?Ot({delay:s(_,w)},l):l;VA(T,M,k),i(T,M,T,M,k)}}else for(var A=Ot({dividePath:Slt[n],individualDelay:s&&function($,O,F,G){return s($+_,w)}},l),E=b?_lt(S,C,A):wlt(C,S,A),D=E.fromIndividuals,R=E.toIndividuals,V=D.length,N=0;Nt.length,h=u?nV(c,u):nV(f?t:e,[f?e:t]),v=0,p=0;pIJ))for(var a=r.getIndices(),i=Clt(r),o=0;o0&&w.group.traverse(function(S){S instanceof vn&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function aV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function iV(e){return Fe(e)?e.sort().join(","):e}function gu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function Alt(e,t){var n=At(),r=At(),a=At();return Z(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=aV(i),c=iV(u);r.set(c,{dataGroupId:s,data:l}),Fe(u)&&Z(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),Z(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=aV(i),u=iV(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:gu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:gu(s),data:s}]});else if(Fe(l)){var d=[];Z(l,function(v){var p=r.get(v);p.data&&d.push({dataGroupId:p.dataGroupId,divide:gu(p.data),data:p.data})}),d.length&&n.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:gu(s)}]})}else{var f=a.get(l);if(f){var h=n.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:gu(f.data)}],newSeries:[]},n.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:gu(s)})}}}}),n}function oV(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:gu(t.oldData[s]),dim:o.dimension})}),Z(Gn(e.to),function(o){var s=oV(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:gu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&LJ(a,i,r)}function Elt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){Z(Gn(r.seriesTransition),function(a){Z(Gn(a.to),function(i){for(var o=r.updatedSeries,s=0;s{var n=IP(document.getElementById("MonthCount"));n.setOption({title:{text:"2023-01-01~2023-06-30体检数量统计(月)"},tooltip:{},xAxis:{data:["1月","2月","3月","4月","5月","6月"]},yAxis:{},series:[{name:"数量",type:"bar",data:[5,20,36,10,10,20]}]});var r=IP(document.getElementById("TypeCount"));r.setOption({title:{text:"2023-01-01~2023-06-30体检行业分类统计"},tooltip:{trigger:"item"},legend:{top:"5%",left:"center"},series:[{name:"数量",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:[{value:1048,name:"食品类"},{value:735,name:"化妆品类"},{value:580,name:"公共场所类"},{value:484,name:"生活饮用水类"},{value:300,name:"消毒产品生产类"}]}]})}),(n,r)=>{const a=Ne("el-alert"),i=Ne("el-col"),o=Ne("el-row"),s=Ne("el-table-column"),l=Ne("el-table");return I(),B("div",Ilt,[W(a,{"show-icon":"",title:"因未对接体检数据接口,以下数据均为演示.报表内容和类型可根据需求调整",type:"warning",closable:!1,style:{"margin-bottom":"20px"}}),W(o,{class:"row1",gutter:20},{default:Y(()=>[W(i,{span:12},{default:Y(()=>[...r[0]||(r[0]=[P("div",{id:"MonthCount",class:"MonthCount"},null,-1)])]),_:1}),W(i,{span:12},{default:Y(()=>[...r[1]||(r[1]=[P("div",{id:"TypeCount",class:"TypeCount"},null,-1)])]),_:1})]),_:1}),W(o,{class:"row2"},{default:Y(()=>[W(i,{span:24},{default:Y(()=>[r[2]||(r[2]=P("div",{class:"title"},"各体检机构体检量统计",-1)),W(l,{data:y(t),style:{width:"100%"},"row-key":"id"},{default:Y(()=>[W(s,{prop:"name",label:"机构名称"}),W(s,{prop:"count",label:"数量"})]),_:1},8,["data"])]),_:1})]),_:1})])}}},Dlt=Fs(Llt,[["__scopeId","data-v-93c45d17"]]),DJ=gRe({history:qPe("./"),routes:[{path:"/",name:"Login1",component:aL,meta:{requiresAuth:!1}},{path:"/login",name:"Login",component:aL,meta:{requiresAuth:!1}},{path:"/autologin",name:"AutoLogin",component:()=>ar(()=>import("./AutoLogin-91956a67.js"),["./AutoLogin-91956a67.js","./AutoLogin-7dee6c11.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/caslogin",name:"CasLogin",component:()=>ar(()=>import("./CasLogin-0f3b1ae1.js"),[],import.meta.url),meta:{requiresAuth:!1}},{path:"/hislogin",name:"HisLogin",component:()=>ar(()=>import("./HisLogin-94717c91.js"),["./HisLogin-94717c91.js","./HisLogin-2d68b6ea.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/doctorappointment",name:"DoctorAppointment",component:()=>ar(()=>import("./DoctorYuYue-0d3cb2fd.js"),["./DoctorYuYue-0d3cb2fd.js","./YuYue202506-e01c0944.js","./PrintShenQingDan-7546836f.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-7c6b81a3.css","./DoctorYuYue-98bf3c96.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/index",name:"Index",component:kNe,children:[{path:"/dashboard",name:"Dashboard",component:Dlt,meta:{title:"数据面板"}},{path:"/menuList",name:"menuList",component:VNe,meta:{title:"菜单管理"}},{path:"/groupMngr",name:"AdminGroupList",component:FNe,meta:{title:"组管理"}},{path:"/adminUserList",name:"AdminUserList",component:YNe,meta:{title:"系统用户管理"}},{path:"/adminChangPwd",name:"AdminChangPwd",component:ZNe,meta:{title:"用户中心"}},{path:"/systemMngr/systemConfig",name:"SystemMngrSystemConfig",component:()=>ar(()=>import("./SystemConfig-8cffcb3a.js"),["./SystemConfig-8cffcb3a.js","./SystemConfig-397d2158.css"],import.meta.url),meta:{title:"系统参数设置"}},{path:"/healthCalendar",name:"HealthCalendar",component:lVe,meta:{title:"体检日历"}},{path:"/yewu/mainList",name:"YewuManiList",component:()=>ar(()=>import("./MainList-d6cb936e.js"),["./MainList-d6cb936e.js","./PrintShenQingDan-7546836f.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-e01c0944.js","./YuYue202506-7c6b81a3.css","./MainList-834cd2a2.css"],import.meta.url),meta:{title:"主工作列表"}},{path:"/yewu/mainListWithDept",name:"YewuMainListWithDept",component:()=>ar(()=>import("./MainListWithDept-143f05c7.js"),["./MainListWithDept-143f05c7.js","./PrintShenQingDan-7546836f.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-e01c0944.js","./YuYue202506-7c6b81a3.css","./MainListWithDept-8fbbdf83.css"],import.meta.url),meta:{title:"主工作列表(科室)"}},{path:"/yewu/CheckItemConfig",name:"YewuCheckItemConfig",component:()=>ar(()=>import("./CheckItemConfig-90e2a305.js"),["./CheckItemConfig-90e2a305.js","./CheckItemConfig-e77282ab.css"],import.meta.url),meta:{title:"检查项目设置"}},{path:"/yewu/deptCheckItemConfig",name:"YewuDeptCheckItemConfig",component:()=>ar(()=>import("./DeptCheckItemConfig-00452ba8.js"),["./DeptCheckItemConfig-00452ba8.js","./DeptCheckItemConfig-8f3a58b2.css"],import.meta.url),meta:{title:"检查项目管理"}},{path:"/yewu/deptDeviceConfig",name:"YewuDeptResourceConfig",component:()=>ar(()=>import("./DeptResourceConfig-a143deaa.js"),["./DeptResourceConfig-a143deaa.js","./DepartmentResourcesSave-7a0f7e89.js","./DeptResourceConfig-5d6863d0.css"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/devicesConfig",name:"YewuDevicesConfig",component:()=>ar(()=>import("./DevicesConfig-18b8da8c.js"),["./DevicesConfig-18b8da8c.js","./DevicesConfig-cb91914b.css"],import.meta.url),meta:{title:"服务组设置"}},{path:"/yewu/departmentConfig",name:"YewuDepartmentConfig",component:()=>ar(()=>import("./DepartmentConfig-7fabcd85.js"),["./DepartmentConfig-7fabcd85.js","./DepartmentResourcesSave-7a0f7e89.js","./DepartmentConfig-46f236fe.css"],import.meta.url),meta:{title:"科室管理"}},{path:"/yewu/departmentResources",name:"YewuDepartmentResources",component:()=>ar(()=>import("./DepartmentResources-1422eddb.js"),["./DepartmentResources-1422eddb.js","./DepartmentResourcesSave-7a0f7e89.js"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/deviceCheckItemBind",name:"YewuDeviceCheckItemBind",component:()=>ar(()=>import("./DeviceCheckItemBind-f2334864.js"),["./DeviceCheckItemBind-f2334864.js","./DeviceCheckItemBind-c1dc67c4.css"],import.meta.url),meta:{title:"排班项目管理"}},{path:"/appointmentmngr/timeperiodmngr",name:"AppointmentMngrTimePeriodMngr",component:()=>ar(()=>import("./TimePeriodMngr-9f341a5d.js"),[],import.meta.url),meta:{title:"时间段管理"}},{path:"/appointmentmngr/planmodel",name:"AppointmentMngrPlanModel",component:()=>ar(()=>import("./PlanModel-e16ab905.js"),["./PlanModel-e16ab905.js","./PlanModel-e04a150a.css"],import.meta.url),meta:{title:"预约资源计划"}},{path:"/appointmentmngr/planlist",name:"AppointmentMngrPlanList",component:()=>ar(()=>import("./PlanList-14cf0d27.js"),["./PlanList-14cf0d27.js","./PlanList-e66542f7.css"],import.meta.url),meta:{title:"预约资源明细"}},{path:"/appointmentmngr/planmodeladmin",name:"AppointmentMngrPlanModelAdmin",component:()=>ar(()=>import("./PlanModelAdmin-2b8dd32a.js"),["./PlanModelAdmin-2b8dd32a.js","./PlanModelAdmin-a6f849b8.css"],import.meta.url),meta:{title:"号源计划管理"}},{path:"/appointmentmngr/planlistadmin",name:"AppointmentMngrPlanListAdmin",component:()=>ar(()=>import("./PlanListAdmin-5d2e5b71.js"),["./PlanListAdmin-5d2e5b71.js","./PlanListAdmin-29270508.css"],import.meta.url),meta:{title:"号源明细管理"}},{path:"/appointmentmngr/holidayMngr",name:"AppointmentMngrHolidayMngr",component:()=>ar(()=>import("./HolidayMngr-6ebe7675.js"),["./HolidayMngr-6ebe7675.js","./HolidayMngr-27e47c57.css"],import.meta.url),meta:{title:"节假日管理"}},{path:"/appointmentmngr/ratio",name:"AppointmentmngrRatio",component:()=>ar(()=>import("./RatioMngr-418b2153.js"),["./RatioMngr-418b2153.js","./RatioMngr-f72113b2.css"],import.meta.url),meta:{title:"各渠道比例设置"}},{path:"/yewu/inpatientwardconfig",name:"InpatientWardConfig",component:()=>ar(()=>import("./InpatientWardConfig-3d6cac27.js"),["./InpatientWardConfig-3d6cac27.js","./InpatientWardConfig-3498d829.css"],import.meta.url),meta:{title:"病区管理"}},{path:"/yewu/MainList_ZhuYuan",name:"MainList_ZhuYuan",component:()=>ar(()=>import("./MainList_ZhuYuan-dcf5c1b3.js"),["./MainList_ZhuYuan-dcf5c1b3.js","./PrintShenQingDan-7546836f.js","./PrintShenQingDan-5dc59270.css","./MainList_ZhuYuan-a1555fd5.css"],import.meta.url),meta:{title:"主工作列表(住院)"}},{path:"/info/EntrustList",name:"EntrustList",component:()=>ar(()=>import("./EntrustList-88993719.js"),[],import.meta.url),meta:{title:"医嘱信息列表"}},{path:"/info/PlanList",name:"InfoPlanList",component:()=>ar(()=>import("./PlanList-26e9f47e.js"),["./PlanList-26e9f47e.js","./PlanList-e85d2b91.css"],import.meta.url),meta:{title:"资源信息列表"}},{path:"/info/AppointmentTj",name:"InfoAppointmentTj",component:()=>ar(()=>import("./AppointmentTj-8d405e12.js"),["./AppointmentTj-8d405e12.js","./AppointmentTj-80d105dd.css"],import.meta.url),meta:{title:"预约统计"}},{path:"/info/MakeListTj",name:"InfoMakeListTj",component:()=>ar(()=>import("./MakeListTj-80254d87.js"),["./MakeListTj-80254d87.js","./MakeListTj-088f49c5.css"],import.meta.url),meta:{title:"开单统计"}},{path:"/info/PlanTj",name:"infoPlanTj",component:()=>ar(()=>import("./PlanTj-9d4d9f06.js"),["./PlanTj-9d4d9f06.js","./PlanTj-117b6fc4.css"],import.meta.url),meta:{title:"号源统计"}}]}]});DJ.beforeEach((e,t,n)=>{console.log(e.meta.requiresAuth);const r=e.path;if(e.meta.requiresAuth==!1)n();else{const a=r.substring(1);H7e({url:a}).then(i=>{i.status?n():(Mr.error(i.msg),n("/"))})}});/*! Element Plus v2.14.3 */var Plt={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const Ev=RB(yRe);for(const[e,t]of Object.entries(Yz))Ev.component(e,t);Ev.use(uPe,{locale:Plt});Ev.use(lte());Ev.use(DJ);Ev.use(IW);Ev.mount("#app");export{z as $,pe as A,rct as B,K7e as C,$e as D,Mr as E,We as F,U7e as G,Sct as H,Wlt as I,ect as J,lt as K,T7e as L,Gut as M,I2 as N,put as O,nct as P,ict as Q,uct as R,Vlt as S,Kut as T,G7e as U,cct as V,Uut as W,lut as X,Wut as Y,L as Z,Fs as _,WW as a,gut as a$,act as a0,hct as a1,vct as a2,gct as a3,pct as a4,mct as a5,Nlt as a6,Blt as a7,$lt as a8,Zlt as a9,out as aA,P7e as aB,mut as aC,cut as aD,uut as aE,dut as aF,fut as aG,but as aH,Az as aI,hut as aJ,jut as aK,Klt as aL,Xlt as aM,Ylt as aN,qlt as aO,sut as aP,wut as aQ,_ut as aR,Tut as aS,Out as aT,Mut as aU,Aut as aV,Dut as aW,Eut as aX,Sut as aY,Cut as aZ,Lut as a_,da as aa,zlt as ab,Qlt as ac,Jlt as ad,Yut as ae,Xut as af,qut as ag,_ct as ah,wct as ai,Qut as aj,Zut as ak,Jut as al,Ult as am,eut as an,tut as ao,jlt as ap,aut as aq,rut as ar,nut as as,vut as at,yut as au,Flt as av,Glt as aw,Hlt as ax,iut as ay,gU as az,xU as b,Tct as b0,gme as b1,Ez as b2,kz as b3,Vut as b4,But as b5,$ut as b6,Fut as b7,tct as b8,Cct as b9,Nut as ba,kut as bb,Put as bc,Iut as bd,xut as be,zut as bf,Hut as bg,Mct as bh,kct as bi,Act as bj,Rut as bk,oct as bl,lct as bm,sct as bn,fct as bo,Rlt as bp,dct as bq,yct as br,IP as bs,bct as bt,xct as bu,ec as c,I as d,B as e,W as f,H as g,mt as h,y as i,de as j,P as k,Rt as l,Wn as m,Uz as n,Ct as o,Dz as p,Qe as q,Ne as r,_U as s,Dt as t,UW as u,Te as v,Y as w,ce as x,Kg as y,gNe as z}; +`||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function Oot(e){e.registerAction("legendToggleSelect","legendselectchanged",Qt(mp,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Qt(mp,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Qt(mp,"inverseSelect")),e.registerAction("legendSelect","legendselected",Qt(mp,"select")),e.registerAction("legendUnSelect","legendunselected",Qt(mp,"unSelect"))}function pJ(e){e.registerComponentModel(Jx),e.registerComponentView(vJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Rot),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Oot(e)}var Not=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var i=Sv(n);e.prototype.init.call(this,n,r,a),kN(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),kN(this,this.option,n)},t.type="legend.scroll",t.defaultOption=ac(Jx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Jx);function kN(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,Yu(t,n,{type:"box",ignoreSize:!!a})}const Vot=Not;var EN=Ht,N6=["width","height"],V6=["x","y"],Bot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new EN),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new EN)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,d=r.get("pageIconSize",!0),f=Fe(d)?d:[d,d];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new In({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",b=cm(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:vt(u._pageGo,u,m,r,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});b.name=p,c.add(b)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=N6[u],d=V6[u],f=N6[1-u],h=V6[1-u];o&&Ad("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Bt(a);o&&(m[c]=a[c]-p[c]-v);var b=this._layoutContentAndController(n,i,m,u,c,f,h,d);if(o){if(s==="end")g[u]+=b[c]+v;else{var _=p[c]+v;g[u]-=_,b[d]-=_}b[c]+=p[c]+v,g[1-u]+=b[h]+b[f]/2-p[f]/2,b[f]=Math.max(b[f],p[f]),b[h]=Math.min(b[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;Ad(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Ad("horizontal",f,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=f.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],b=[-v.x,-v.y],_=rn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+_}b[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),d.setPosition(m),f.setPosition(b);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+b[1-i]),d.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=x[s],d.setClipPath(new Mn({shape:S})),d.__rectSize=S[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&Dn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?n:null),this._updatePageInfoView(n,C),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;Z(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",dt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=N6[o],l=V6[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return v;var p=w(d);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=f;++g)_=w(c[g]),(!_&&b.e>m.s+i||_&&!x(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=_;for(var g=u-1,m=p,b=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!x(b,_.s))&&m.i=C&&S.s<=C+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(vJ);const $ot=Bot;function zot(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function Fot(e){hn(pJ),e.registerComponentModel(Vot),e.registerComponentView($ot),zot(e)}function Hot(e){hn(pJ),hn(Fot)}var Got=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=ac(_g.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_g);const Wot=Got;var OA=An();function Uot(e,t,n){OA(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function jot(e,t){for(var n=OA(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Zot(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=OA(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=At());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZZ(i);Z(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Kot(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=At());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){gJ(a,i);return}var c=Xot(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Jot=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),Uot(a,n,{pan:vt(B6.pan,this),zoom:vt(B6.zoom,this),scrollMove:vt(B6.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jot(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(MA),B6={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=$6[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(df(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:IN(function(e,t,n,r,a,i){var o=$6[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:IN(function(e,t,n,r,a,i){var o=$6[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function IN(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(df(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var $6={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Qot=Jot;function mJ(e){AA(e),e.registerComponentModel(Wot),e.registerComponentView(Qot),Zot(e)}var est=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ac(_g.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_g);const tst=est;var yp=Mn,LN=7,nst=1,z6=30,rst=7,bp="horizontal",DN="vertical",ast=5,ist=["line","bar","candlestick","scatter"],ost={easing:"cubicOut",duration:100,delay:0},sst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=vt(this._onBrush,this),this._onBrushEnd=vt(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Mv(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){lg(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ht;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?rst:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bp?{right:s.width-o.x-o.width,top:s.height-z6-LN-i,width:o.width,height:z6}:{right:LN,top:o.y,width:z6,height:o.height},u=Sv(n.option);Z(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=Wr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===DN&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bp&&!o?{scaleY:l?1:-1,scaleX:1}:a===bp&&o?{scaleY:l?1:-1,scaleX:-1}:a===DN&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new yp({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new yp({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:vt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),w;o.each([l],function(M,k){if(_>0&&k%_){b+=m;return}var A=M==null||isNaN(M)||M==="",E=A?0:Bn(M,d,h,!0);A&&!w&&k?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&w&&(p.push([b,0]),g.push([b,0])),p.push([b,E]),g.push([b,E]),b+=m,w=A}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(M){var k=x.getModel(M?"selectedDataBackground":"dataBackground"),A=new Ht,E=new pi({shape:{points:u},segmentIgnoreThreshold:1,style:k.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new mi({shape:{points:c},segmentIgnoreThreshold:1,style:k.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(E),A.add(D),A}for(var C=0;C<3;C++){var T=S(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();Z(l,function(u){if(!a&&!(r!==!0&&fn(ist,u.get("type"))<0)){var c=i.getComponent(Iu(o),s).axis,d=lst(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new yp({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new yp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:nst,fill:"rgba(0,0,0,0)"}})),Z([0,1],function(_){var w=l.get("handleIcon");!nb[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var x=Nr(w,-1,0,2,2,null,!0);x.attr({cursor:PN(this._orient),draggable:!0,drift:vt(this._onDragMove,this,_),ondragend:vt(this._onDragEnd,this),onmouseover:vt(this._showDataInfo,this,!0),onmouseout:vt(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ot(C,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Td(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[_]=x);var M=l.getModel("textStyle");n.add(i[_]=new In({silent:!0,invisible:!0,style:er(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=f;if(d){var v=ot(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new Mn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=Nr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Mn({invisible:!0,shape:{y:s[1]-b,height:v+b}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:PN(this._orient),drift:vt(this._onDragMove,this,"all"),ondragstart:vt(this._showDataInfo,this,!0),ondragend:vt(this._onDragEnd,this),onmouseover:vt(this._showDataInfo,this,!0),onmouseout:vt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Bn(n[0],[0,100],r,!0),Bn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];df(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?Bn(s.minSpan,l,o,!0):null,s.maxSpan!=null?Bn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ji([Bn(i[0],o,l,!0),Bn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ji(a.slice()),o=this._size;Z([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new tn(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ji([Bn(a.x,o,s,!0),Bn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(xl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new yp({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?ost:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=ZZ(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(MA);function lst(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function PN(e){return e==="vertical"?"ns-resize":"ew-resize"}const ust=sst;function yJ(e){e.registerComponentModel(tst),e.registerComponentView(ust),AA(e)}function cst(e){hn(mJ),hn(yJ)}var dst={get:function(e,t,n){var r=Bt((fst[e]||{})[t]);return n&&Fe(r)?r[r.length-1]:r}},fst={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const bJ=dst;var RN=va.mapVisual,hst=va.eachVisual,vst=Fe,ON=Z,pst=Ji,gst=Bn,mst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&sJ(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=vt(n,this),this.controllerVisuals=qx(this.option.controller,r,n),this.targetVisuals=qx(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=Gn(n),r},t.prototype.eachTargetSeries=function(n,r){Z(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Fe(n)&&(n=n.slice(),u=!0);var c=r?n:u?[d(n[0]),d(n[1])]:d(n);if(dt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Pt(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=pst([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});an(i,a),an(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){vst(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:n.get("gradientColor")}}function u(d,f,h){var v=d[f],p=d[h];v&&!p&&(p=d[h]={},ON(v,function(g,m){if(va.isValidType(m)){var b=bJ.get(m,"inactive",s);b!=null&&(p[m]=b,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";ON(this.stateList,function(m){var b=this.itemSize,_=d[m];_||(_=d[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=f&&Bt(f)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&Bt(h)||(s?b[0]:[b[0],b[0]])),_.symbol=RN(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var x=-1/0;hst(w,function(S){S>x&&(x=S)}),_.symbolSize=RN(w,function(S){return gst(S,[0,x],[0,b[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(kn);const Ab=mst;var NN=[20,140],yst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=NN[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=NN[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Fe(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Z(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ji((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=VN(this,"outOfRange",this.getExtent()),a=VN(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Ht(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();wst([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=n[c];var f=ns(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var v=Io(a.handleLabelPoints[c],Md(d,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",f),v=this.getControllerVisual(n,"symbolSize"),p=ns(n,s,u,!0),g=l[0]-v/2,m={x:d.x,y:d.y};d.y=p,d.x=g;var b=Io(c.indicatorLabelPoint,Md(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var C={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};d.x=m.x,d.y=m.y,d.animateTo(C,M),_.animateTo(T,M)}else d.attr(C),_.attr(T);this._firstShowIndicator=!1;var k=this._shapes.handleLabels;if(k)for(var A=0;Ao[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||FN(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var v=v$e(f,h);this._dispatchHighDown("downplay",Uy(v[0],a)),this._dispatchHighDown("highlight",Uy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(cd(n.target,function(l){var u=Jt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function Ist(e,t,n,r){for(var a=t.targetVisuals[r],i=va.prepareVisualTypes(a),o={color:hm(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Ast,kst),Z(Est,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Lst))}function xJ(e){e.registerComponentModel(bst),e.registerComponentView(Mst),SJ(e)}var Dst=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Pst[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Bt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Ge(this._pieceList,function(l){return l=Bt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=va.listVisualTypes(),i=this.isCategory();Z(n.pieces,function(s){Z(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),Z(r,function(s,l){var u=!1;Z(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&Z(this.stateList,function(c){(n[c]||(n[c]={}))[l]=bJ.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,Z(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;Z(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Bt(n)},t.prototype.getValueState=function(n){var r=va.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=va.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=n(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return Z(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=ac(Ab.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ab),Pst={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function UN(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const Rst=Dst;var Ost=function(e){be(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=ra(r.get("showLabel",!0),!d);d&&this._renderEndsText(n,d[0],u,f,l),Z(c.viewPieceList,function(h){var v=h.piece,p=new Ht;p.onclick=vt(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),f){var m=this.visualMapModel.getValueState(g);p.add(new In({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(p)},this),d&&this._renderEndsText(n,d[1],u,f,l),Ad(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Uy(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return wJ(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Ht,l=this.visualMapModel.textStyleModel;s.add(new In({style:er(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Ge(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(Nr(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Bt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,Z(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(_J);const Nst=Ost;function CJ(e){e.registerComponentModel(Rst),e.registerComponentView(Nst),SJ(e)}function Vst(e){hn(xJ),hn(CJ)}var Bst={label:{enabled:!0},decal:{show:!1}},jN=An(),$st={};function zst(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Bt(Bst);an(r.label,e.getLocaleModel().get("aria"),!1),an(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var d=At();e.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),jN(f).scope=h}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(Pt(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=nx(f.ecModel,f.name,$st,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,b))}else{var v=f.getRawData(),p={},g=jN(f).scope;h.each(function(x){var S=h.getRawIndex(x);p[S]=x});var m=v.count();v.each(function(x){var S=p[x],C=v.getName(x)||x+"",T=nx(f.ecModel,C,g,m),M=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(M,T))})}function w(x,S){var C=x?Oe(Oe({},S),x):S;return C.dirty=!0,C}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Ot(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(f,v),g;if(!(f<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:f}),e.eachSeries(function(T,M){if(M1?c.get(["series","multiple",E]):c.get(["series","single",E]),k=o(k,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var D=T.getData();if(D.count()>h){var R=c.get(["data","partialData"]);k+=o(R,{displayCnt:h})}else k+=c.get(["data","allData"]);for(var V=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),$=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Gst=function(){function e(t){var n=this._condVal=dt(t)?new RegExp(t):TVe(t)?t:null;if(n==null){var r="";On(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return dt(n)?this._condVal.test(t):Ln(n)?this._condVal.test(t+""):!1},e}(),Wst=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Ust=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[D,R]}function c(D,R,V,N){ah(D,V)&&ah(R,N)||a.push(D,R,V,N,V,N)}function d(D,R,V,N,$,O){var F=Math.abs(R-D),G=Math.tan(F/4)*4/3,U=RT:A2&&r.push(a),r}function rC(e,t,n,r,a,i,o,s,l,u){if(ah(e,n)&&ah(t,r)&&ah(a,o)&&ah(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-e,h=s-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var p=n-e,g=r-t,m=a-o,b=i-s,_=p*p+g*g,w=m*m+b*b;if(_=0&&T=0){l.push(o,s);return}var M=[],k=[];ju(e,n,a,o,.5,M),ju(t,r,i,s,.5,k),rC(M[0],k[0],M[1],k[1],M[2],k[2],M[3],k[3],l,u),rC(M[4],k[4],M[5],k[5],M[6],k[6],M[7],k[7],l,u)}function ilt(e,t){var n=nC(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=MJ([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;ha,o=MJ([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=e[s]/o.length,f=0;f1?null:new tn(p*l+e,p*u+t)}function llt(e,t,n){var r=new tn;tn.sub(r,n,t),r.normalize();var a=new tn;tn.sub(a,e,t);var i=a.dot(r);return i}function Hf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ult(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),ult(t,u,c)}function kb(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);kb(e,i[0],a,r),kb(e,i[1],n-a,r)}return r}function clt(e,t){for(var n=[],r=0;r0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),T=Math.cos(S),M=0,_=0;_0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function Lb(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=Ge(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(d,n),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=Ge(i,function(s,l){return{cp:s,z:blt(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function EJ(e){return hlt(e.path,e.count)}function aC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _lt(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var Slt={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;tV(e)&&(u=e,c=t),tV(t)&&(u=t,c=e);function d(m,b,_,w,x){var S=m.many,C=m.one;if(S.length===1&&!x){var T=b?S[0]:C,M=b?C:S[0];if(Eb(T))d({many:[T],one:M},!0,_,w,!0);else{var k=s?Ot({delay:s(_,w)},l):l;VA(T,M,k),i(T,M,T,M,k)}}else for(var A=Ot({dividePath:Slt[n],individualDelay:s&&function($,O,F,G){return s($+_,w)}},l),E=b?_lt(S,C,A):wlt(C,S,A),D=E.fromIndividuals,R=E.toIndividuals,V=D.length,N=0;Nt.length,h=u?nV(c,u):nV(f?t:e,[f?e:t]),v=0,p=0;pIJ))for(var a=r.getIndices(),i=Clt(r),o=0;o0&&w.group.traverse(function(S){S instanceof vn&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function aV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function iV(e){return Fe(e)?e.sort().join(","):e}function gu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function Alt(e,t){var n=At(),r=At(),a=At();return Z(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=aV(i),c=iV(u);r.set(c,{dataGroupId:s,data:l}),Fe(u)&&Z(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),Z(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=aV(i),u=iV(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:gu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:gu(s),data:s}]});else if(Fe(l)){var d=[];Z(l,function(v){var p=r.get(v);p.data&&d.push({dataGroupId:p.dataGroupId,divide:gu(p.data),data:p.data})}),d.length&&n.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:gu(s)}]})}else{var f=a.get(l);if(f){var h=n.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:gu(f.data)}],newSeries:[]},n.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:gu(s)})}}}}),n}function oV(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:gu(t.oldData[s]),dim:o.dimension})}),Z(Gn(e.to),function(o){var s=oV(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:gu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&LJ(a,i,r)}function Elt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){Z(Gn(r.seriesTransition),function(a){Z(Gn(a.to),function(i){for(var o=r.updatedSeries,s=0;s{var n=IP(document.getElementById("MonthCount"));n.setOption({title:{text:"2023-01-01~2023-06-30体检数量统计(月)"},tooltip:{},xAxis:{data:["1月","2月","3月","4月","5月","6月"]},yAxis:{},series:[{name:"数量",type:"bar",data:[5,20,36,10,10,20]}]});var r=IP(document.getElementById("TypeCount"));r.setOption({title:{text:"2023-01-01~2023-06-30体检行业分类统计"},tooltip:{trigger:"item"},legend:{top:"5%",left:"center"},series:[{name:"数量",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:[{value:1048,name:"食品类"},{value:735,name:"化妆品类"},{value:580,name:"公共场所类"},{value:484,name:"生活饮用水类"},{value:300,name:"消毒产品生产类"}]}]})}),(n,r)=>{const a=Ne("el-alert"),i=Ne("el-col"),o=Ne("el-row"),s=Ne("el-table-column"),l=Ne("el-table");return I(),B("div",Ilt,[W(a,{"show-icon":"",title:"因未对接体检数据接口,以下数据均为演示.报表内容和类型可根据需求调整",type:"warning",closable:!1,style:{"margin-bottom":"20px"}}),W(o,{class:"row1",gutter:20},{default:Y(()=>[W(i,{span:12},{default:Y(()=>[...r[0]||(r[0]=[P("div",{id:"MonthCount",class:"MonthCount"},null,-1)])]),_:1}),W(i,{span:12},{default:Y(()=>[...r[1]||(r[1]=[P("div",{id:"TypeCount",class:"TypeCount"},null,-1)])]),_:1})]),_:1}),W(o,{class:"row2"},{default:Y(()=>[W(i,{span:24},{default:Y(()=>[r[2]||(r[2]=P("div",{class:"title"},"各体检机构体检量统计",-1)),W(l,{data:y(t),style:{width:"100%"},"row-key":"id"},{default:Y(()=>[W(s,{prop:"name",label:"机构名称"}),W(s,{prop:"count",label:"数量"})]),_:1},8,["data"])]),_:1})]),_:1})])}}},Dlt=Fs(Llt,[["__scopeId","data-v-93c45d17"]]),DJ=gRe({history:qPe("./"),routes:[{path:"/",name:"Login1",component:aL,meta:{requiresAuth:!1}},{path:"/login",name:"Login",component:aL,meta:{requiresAuth:!1}},{path:"/autologin",name:"AutoLogin",component:()=>ar(()=>import("./AutoLogin-81392f4b.js"),["./AutoLogin-81392f4b.js","./AutoLogin-7dee6c11.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/caslogin",name:"CasLogin",component:()=>ar(()=>import("./CasLogin-d886fe66.js"),[],import.meta.url),meta:{requiresAuth:!1}},{path:"/hislogin",name:"HisLogin",component:()=>ar(()=>import("./HisLogin-f1f8acc7.js"),["./HisLogin-f1f8acc7.js","./HisLogin-2d68b6ea.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/doctorappointment",name:"DoctorAppointment",component:()=>ar(()=>import("./DoctorYuYue-91ade57c.js"),["./DoctorYuYue-91ade57c.js","./YuYue202506-f1503368.js","./PrintShenQingDan-80054efb.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-a7b0563c.css","./DoctorYuYue-98bf3c96.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/index",name:"Index",component:kNe,children:[{path:"/dashboard",name:"Dashboard",component:Dlt,meta:{title:"数据面板"}},{path:"/menuList",name:"menuList",component:VNe,meta:{title:"菜单管理"}},{path:"/groupMngr",name:"AdminGroupList",component:FNe,meta:{title:"组管理"}},{path:"/adminUserList",name:"AdminUserList",component:YNe,meta:{title:"系统用户管理"}},{path:"/adminChangPwd",name:"AdminChangPwd",component:ZNe,meta:{title:"用户中心"}},{path:"/systemMngr/systemConfig",name:"SystemMngrSystemConfig",component:()=>ar(()=>import("./SystemConfig-6aa7a6d3.js"),["./SystemConfig-6aa7a6d3.js","./SystemConfig-397d2158.css"],import.meta.url),meta:{title:"系统参数设置"}},{path:"/healthCalendar",name:"HealthCalendar",component:lVe,meta:{title:"体检日历"}},{path:"/yewu/mainList",name:"YewuManiList",component:()=>ar(()=>import("./MainList-36e25ca6.js"),["./MainList-36e25ca6.js","./PrintShenQingDan-80054efb.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-f1503368.js","./YuYue202506-a7b0563c.css","./MainList-834cd2a2.css"],import.meta.url),meta:{title:"主工作列表"}},{path:"/yewu/mainListWithDept",name:"YewuMainListWithDept",component:()=>ar(()=>import("./MainListWithDept-68ffabb6.js"),["./MainListWithDept-68ffabb6.js","./PrintShenQingDan-80054efb.js","./PrintShenQingDan-5dc59270.css","./YuYue202506-f1503368.js","./YuYue202506-a7b0563c.css","./MainListWithDept-8fbbdf83.css"],import.meta.url),meta:{title:"主工作列表(科室)"}},{path:"/yewu/CheckItemConfig",name:"YewuCheckItemConfig",component:()=>ar(()=>import("./CheckItemConfig-e910acc9.js"),["./CheckItemConfig-e910acc9.js","./CheckItemConfig-e77282ab.css"],import.meta.url),meta:{title:"检查项目设置"}},{path:"/yewu/deptCheckItemConfig",name:"YewuDeptCheckItemConfig",component:()=>ar(()=>import("./DeptCheckItemConfig-61bf6125.js"),["./DeptCheckItemConfig-61bf6125.js","./DeptCheckItemConfig-8f3a58b2.css"],import.meta.url),meta:{title:"检查项目管理"}},{path:"/yewu/deptDeviceConfig",name:"YewuDeptResourceConfig",component:()=>ar(()=>import("./DeptResourceConfig-181cc3e3.js"),["./DeptResourceConfig-181cc3e3.js","./DepartmentResourcesSave-bf22abac.js","./DeptResourceConfig-5d6863d0.css"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/devicesConfig",name:"YewuDevicesConfig",component:()=>ar(()=>import("./DevicesConfig-9e7b3437.js"),["./DevicesConfig-9e7b3437.js","./DevicesConfig-cb91914b.css"],import.meta.url),meta:{title:"服务组设置"}},{path:"/yewu/departmentConfig",name:"YewuDepartmentConfig",component:()=>ar(()=>import("./DepartmentConfig-c09341c8.js"),["./DepartmentConfig-c09341c8.js","./DepartmentResourcesSave-bf22abac.js","./DepartmentConfig-46f236fe.css"],import.meta.url),meta:{title:"科室管理"}},{path:"/yewu/departmentResources",name:"YewuDepartmentResources",component:()=>ar(()=>import("./DepartmentResources-bbcf1efc.js"),["./DepartmentResources-bbcf1efc.js","./DepartmentResourcesSave-bf22abac.js"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/deviceCheckItemBind",name:"YewuDeviceCheckItemBind",component:()=>ar(()=>import("./DeviceCheckItemBind-91c53967.js"),["./DeviceCheckItemBind-91c53967.js","./DeviceCheckItemBind-c1dc67c4.css"],import.meta.url),meta:{title:"排班项目管理"}},{path:"/appointmentmngr/timeperiodmngr",name:"AppointmentMngrTimePeriodMngr",component:()=>ar(()=>import("./TimePeriodMngr-b7a97287.js"),[],import.meta.url),meta:{title:"时间段管理"}},{path:"/appointmentmngr/planmodel",name:"AppointmentMngrPlanModel",component:()=>ar(()=>import("./PlanModel-05d0dce5.js"),["./PlanModel-05d0dce5.js","./PlanModel-567f1307.css"],import.meta.url),meta:{title:"预约资源计划"}},{path:"/appointmentmngr/planlist",name:"AppointmentMngrPlanList",component:()=>ar(()=>import("./PlanList-7f69b319.js"),["./PlanList-7f69b319.js","./PlanList-14732ffa.css"],import.meta.url),meta:{title:"预约资源明细"}},{path:"/appointmentmngr/planmodeladmin",name:"AppointmentMngrPlanModelAdmin",component:()=>ar(()=>import("./PlanModelAdmin-f4586257.js"),["./PlanModelAdmin-f4586257.js","./PlanModelAdmin-f76fb455.css"],import.meta.url),meta:{title:"号源计划管理"}},{path:"/appointmentmngr/planlistadmin",name:"AppointmentMngrPlanListAdmin",component:()=>ar(()=>import("./PlanListAdmin-2bf4ffa5.js"),["./PlanListAdmin-2bf4ffa5.js","./PlanListAdmin-9932e462.css"],import.meta.url),meta:{title:"号源明细管理"}},{path:"/appointmentmngr/holidayMngr",name:"AppointmentMngrHolidayMngr",component:()=>ar(()=>import("./HolidayMngr-5f809cf1.js"),["./HolidayMngr-5f809cf1.js","./HolidayMngr-27e47c57.css"],import.meta.url),meta:{title:"节假日管理"}},{path:"/appointmentmngr/ratio",name:"AppointmentmngrRatio",component:()=>ar(()=>import("./RatioMngr-251a9344.js"),["./RatioMngr-251a9344.js","./RatioMngr-f72113b2.css"],import.meta.url),meta:{title:"各渠道比例设置"}},{path:"/yewu/inpatientwardconfig",name:"InpatientWardConfig",component:()=>ar(()=>import("./InpatientWardConfig-6be32f8e.js"),["./InpatientWardConfig-6be32f8e.js","./InpatientWardConfig-3498d829.css"],import.meta.url),meta:{title:"病区管理"}},{path:"/yewu/MainList_ZhuYuan",name:"MainList_ZhuYuan",component:()=>ar(()=>import("./MainList_ZhuYuan-1d81d008.js"),["./MainList_ZhuYuan-1d81d008.js","./PrintShenQingDan-80054efb.js","./PrintShenQingDan-5dc59270.css","./MainList_ZhuYuan-a1555fd5.css"],import.meta.url),meta:{title:"主工作列表(住院)"}},{path:"/info/EntrustList",name:"EntrustList",component:()=>ar(()=>import("./EntrustList-a66a4aa1.js"),[],import.meta.url),meta:{title:"医嘱信息列表"}},{path:"/info/PlanList",name:"InfoPlanList",component:()=>ar(()=>import("./PlanList-f569ed17.js"),["./PlanList-f569ed17.js","./PlanList-e85d2b91.css"],import.meta.url),meta:{title:"资源信息列表"}},{path:"/info/AppointmentTj",name:"InfoAppointmentTj",component:()=>ar(()=>import("./AppointmentTj-fe3dcebe.js"),["./AppointmentTj-fe3dcebe.js","./AppointmentTj-80d105dd.css"],import.meta.url),meta:{title:"预约统计"}},{path:"/info/MakeListTj",name:"InfoMakeListTj",component:()=>ar(()=>import("./MakeListTj-d3556278.js"),["./MakeListTj-d3556278.js","./MakeListTj-088f49c5.css"],import.meta.url),meta:{title:"开单统计"}},{path:"/info/PlanTj",name:"infoPlanTj",component:()=>ar(()=>import("./PlanTj-377d8a10.js"),["./PlanTj-377d8a10.js","./PlanTj-117b6fc4.css"],import.meta.url),meta:{title:"号源统计"}}]}]});DJ.beforeEach((e,t,n)=>{console.log(e.meta.requiresAuth);const r=e.path;if(e.meta.requiresAuth==!1)n();else{const a=r.substring(1);H7e({url:a}).then(i=>{i.status?n():(Mr.error(i.msg),n("/"))})}});/*! Element Plus v2.14.3 */var Plt={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const Ev=RB(yRe);for(const[e,t]of Object.entries(Yz))Ev.component(e,t);Ev.use(uPe,{locale:Plt});Ev.use(lte());Ev.use(DJ);Ev.use(IW);Ev.mount("#app");export{z as $,pe as A,rct as B,K7e as C,$e as D,Mr as E,We as F,U7e as G,Sct as H,Wlt as I,ect as J,lt as K,T7e as L,Gut as M,I2 as N,put as O,nct as P,ict as Q,uct as R,Vlt as S,Kut as T,G7e as U,cct as V,Uut as W,lut as X,Wut as Y,L as Z,Fs as _,WW as a,gut as a$,act as a0,hct as a1,vct as a2,gct as a3,pct as a4,mct as a5,Nlt as a6,Blt as a7,$lt as a8,Zlt as a9,out as aA,P7e as aB,mut as aC,cut as aD,uut as aE,dut as aF,fut as aG,but as aH,Az as aI,hut as aJ,jut as aK,Klt as aL,Xlt as aM,Ylt as aN,qlt as aO,sut as aP,wut as aQ,_ut as aR,Tut as aS,Out as aT,Mut as aU,Aut as aV,Dut as aW,Eut as aX,Sut as aY,Cut as aZ,Lut as a_,da as aa,zlt as ab,Qlt as ac,Jlt as ad,Yut as ae,Xut as af,qut as ag,_ct as ah,wct as ai,Qut as aj,Zut as ak,Jut as al,Ult as am,eut as an,tut as ao,jlt as ap,aut as aq,rut as ar,nut as as,vut as at,yut as au,Flt as av,Glt as aw,Hlt as ax,iut as ay,gU as az,xU as b,Tct as b0,gme as b1,Ez as b2,kz as b3,Vut as b4,But as b5,$ut as b6,Fut as b7,tct as b8,Cct as b9,Nut as ba,kut as bb,Put as bc,Iut as bd,xut as be,zut as bf,Hut as bg,Mct as bh,kct as bi,Act as bj,Rut as bk,oct as bl,lct as bm,sct as bn,fct as bo,Rlt as bp,dct as bq,yct as br,IP as bs,bct as bt,xct as bu,ec as c,I as d,B as e,W as f,H as g,mt as h,y as i,de as j,P as k,Rt as l,Wn as m,Uz as n,Ct as o,Dz as p,Qe as q,Ne as r,_U as s,Dt as t,UW as u,Te as v,Y as w,ce as x,Kg as y,gNe as z}; diff --git a/Laravel/public/admin/assets/loginBackg-4a6d0374.png b/Laravel/public/dist/assets/loginBackg-4a6d0374.png similarity index 100% rename from Laravel/public/admin/assets/loginBackg-4a6d0374.png rename to Laravel/public/dist/assets/loginBackg-4a6d0374.png diff --git a/Laravel/public/admin/assets/user-adbdc4d1.jpg b/Laravel/public/dist/assets/user-adbdc4d1.jpg similarity index 100% rename from Laravel/public/admin/assets/user-adbdc4d1.jpg rename to Laravel/public/dist/assets/user-adbdc4d1.jpg diff --git a/Laravel/public/admin/favicon.ico b/Laravel/public/dist/favicon.ico similarity index 100% rename from Laravel/public/admin/favicon.ico rename to Laravel/public/dist/favicon.ico diff --git a/Laravel/public/admin/index.html b/Laravel/public/dist/index.html similarity index 82% rename from Laravel/public/admin/index.html rename to Laravel/public/dist/index.html index ef8cf14..1b901a1 100644 --- a/Laravel/public/admin/index.html +++ b/Laravel/public/dist/index.html @@ -5,7 +5,7 @@ 秦皇岛市中医医院-医技预约 - +