diff --git a/Laravel/public/admin/assets/AppointmentTj-137c0f80.js b/Laravel/public/admin/assets/AppointmentTj-88b70052.js similarity index 97% rename from Laravel/public/admin/assets/AppointmentTj-137c0f80.js rename to Laravel/public/admin/assets/AppointmentTj-88b70052.js index e893908..eb80478 100644 --- a/Laravel/public/admin/assets/AppointmentTj-137c0f80.js +++ b/Laravel/public/admin/assets/AppointmentTj-88b70052.js @@ -1 +1 @@ -import{_ as L,Y 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,by as z,D as G,E as U,q,g as n,bz as J}from"./index-b8bae120.js";const O={class:"head"},$={style:{display:"flex"}},H={key:0,style:{"margin-right":"10px"}},K={class:"shuangyue_table",style:{width:"200px"}},P={key:1,id:"MonthCount",class:"MonthCount"},Q={__name:"AppointmentTj",setup(W){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),Y=n("");const w=()=>{F().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);o.value.dateRange=[t,t],b()}})};let u=n([]),_=n([]);const b=()=>{m.value=!0,z({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,Y.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&&G(()=>{k()})):U.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=>b()),style:{"margin-left":"10px"}},{default:p(()=>[...t[4]||(t[4]=[q("搜索",-1)])]),_:1})]),_:1})]),a("div",$,[l(u).length>0?(r(),c("div",H,[t[8]||(t[8]=a("div",{style:{"font-size":"18px","font-weight":"900",color:"#666"}},"爽约率(时间范围内)",-1)),a("table",K,[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(Y)),1)])])])):D("",!0),l(u).length>0?(r(),c("div",P)):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)}}},Z=L(Q,[["__scopeId","data-v-81c62635"]]);export{Z as default}; +import{_ as L,Y 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,by as z,D as G,E as U,q,g as n,bz as J}from"./index-612fedfe.js";const O={class:"head"},$={style:{display:"flex"}},H={key:0,style:{"margin-right":"10px"}},K={class:"shuangyue_table",style:{width:"200px"}},P={key:1,id:"MonthCount",class:"MonthCount"},Q={__name:"AppointmentTj",setup(W){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),Y=n("");const w=()=>{F().then(e=>{if(e.status){let t=e.data.datetime.substr(0,10);o.value.dateRange=[t,t],b()}})};let u=n([]),_=n([]);const b=()=>{m.value=!0,z({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,Y.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&&G(()=>{k()})):U.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=>b()),style:{"margin-left":"10px"}},{default:p(()=>[...t[4]||(t[4]=[q("搜索",-1)])]),_:1})]),_:1})]),a("div",$,[l(u).length>0?(r(),c("div",H,[t[8]||(t[8]=a("div",{style:{"font-size":"18px","font-weight":"900",color:"#666"}},"爽约率(时间范围内)",-1)),a("table",K,[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(Y)),1)])])])):D("",!0),l(u).length>0?(r(),c("div",P)):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)}}},Z=L(Q,[["__scopeId","data-v-81c62635"]]);export{Z as default}; diff --git a/Laravel/public/admin/assets/AutoLogin-04948ca7.js b/Laravel/public/admin/assets/AutoLogin-1f9eb8f3.js similarity index 96% rename from Laravel/public/admin/assets/AutoLogin-04948ca7.js rename to Laravel/public/admin/assets/AutoLogin-1f9eb8f3.js index 54fcabf..8096928 100644 --- a/Laravel/public/admin/assets/AutoLogin-04948ca7.js +++ b/Laravel/public/admin/assets/AutoLogin-1f9eb8f3.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-b8bae120.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-612fedfe.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-ae5f76c0.js b/Laravel/public/admin/assets/CasLogin-3ce7d4fe.js similarity index 96% rename from Laravel/public/admin/assets/CasLogin-ae5f76c0.js rename to Laravel/public/admin/assets/CasLogin-3ce7d4fe.js index c9ed3bc..1f7c282 100644 --- a/Laravel/public/admin/assets/CasLogin-ae5f76c0.js +++ b/Laravel/public/admin/assets/CasLogin-3ce7d4fe.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-b8bae120.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-612fedfe.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-001154e0.js b/Laravel/public/admin/assets/CheckItemConfig-001154e0.js new file mode 100644 index 0000000..0e85889 --- /dev/null +++ b/Laravel/public/admin/assets/CheckItemConfig-001154e0.js @@ -0,0 +1 @@ +import{_ as dl,Y 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 g,g as d,a8 as Le,I as ve,a9 as fl,q as r,F as U,t as D,v as S,x as M,aa as gl,ab as _l,ac as yl,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 Ul}from"./index-612fedfe.js";const Dl={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:"row"},Ml={class:"dialog-footer"},Pl={style:{"font-weight":"900","font-size":"16px"}},jl={style:{display:"flex","margin-top":"20px"}},Yl={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},ql={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},Jl={style:{display:"flex","margin-bottom":"8px"}},Kl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Ql={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Wl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},Xl={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},Zl={key:0,id:"huchi_table"},et={key:0,style:{display:"flex"}},lt={key:1,style:{display:"flex"}},tt={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},at={style:{"margin-right":"12px"}},st={style:{"margin-left":"12px",width:"250px"}},ot={style:{"margin-bottom":"12px"}},it={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},nt={style:{"font-weight":"700","margin-right":"12px"}},ut={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},dt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},rt={style:{display:"flex","align-items":"center"}},mt={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},pt={__name:"CheckItemConfig",setup(vt){let h=d(!1),C=d({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:"",appointmentDeptOnly:!1}),f=d({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1,is_share_slot:0}),ge=d([]),_e=d([]),ye=d([]),ce=d([]);const P=(t="")=>{let e={};e={...C.value},t=="Dialog"&&(e.bigClass=K.value),h.value=!0,vl({searchInfo:e}).then(n=>{h.value=!1,n.status?(t=="Dialog"?(ye.value=n.data.bigClass,ce.value=n.data.smallClass):(ge.value=n.data.bigClass,_e.value=n.data.smallClass),T()):g.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 g.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),W=d(!1),G=d(!1),ke=d(""),Ce=d(""),q=d(""),I=d([]),ie=d(null);const He=rl(()=>W.value?"批量关联排班":"关联排班"),Be=t=>{I.value=t},ze=()=>{h.value=!0,_l({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=>{W.value=!1,H.value=[],R.value=!0,f.value.id=t.id,ve({hisExecDepts:t.hisExecDepts}).then(e=>{e.status&&(X.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){X.value.find(function(m){return m.id==n.id})&&H.value.push(n.id)})})},$e=()=>{if(I.value.length===0){g.error("请先勾选要批量关联的检查项目");return}W.value=!0;const t=I.value[0].hisExecDepts;ve({hisExecDepts:t}).then(e=>{e.status&&(X.value=e.data);let n=[];if(I.value.length>0){n=I.value[0].devicesInfo.map(m=>m.id);for(let m=1;mb.id);n=n.filter(b=>y.includes(b))}}H.value=n,R.value=!0})};let H=d([]),ne=d(0),ue=d(!1);const Ge=async()=>{const t=e=>Ul({item_id:e,device_ids:H.value});if(W.value){ue.value=!0,ne.value=0;const e=I.value.length;let n=0,m=0;for(let y=0;y{ue.value=!1},1500),m===0?g.success(`批量关联成功,共${e}项`):g.warning(`完成${n}项,失败${m}项`),R.value=!1,H.value=[],P()}else t(f.value.id).then(e=>{e.status?(R.value=!1,H.value=[],P()):g.error(e.msg)})},Ve=t=>{if(I.value.length===0){g.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};I.value.forEach(y=>{const b=(y[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,m="";Object.entries(e).forEach(([y,b])=>{b>n&&(n=b,m=y)}),q.value=m,G.value=!0},Ne=()=>{const t=I.value.map(e=>e.id);h.value=!0,yl({item_ids:t,field:ke.value,value:q.value}).then(e=>{h.value=!1,e.status?(G.value=!1,g.success(e.msg),T()):g.error(e.msg)})};let X=d([]);const Oe=()=>{ve({}).then(t=>{t.status?X.value=t.data:g.error(t.msg)})},Ae=t=>{$.value=!0,f.value.id=t.id,f.value.item_name=t.item_name,f.value.limosis=t.limosis,f.value.reservation_method=t.reservation_method,f.value.check_time=t.check_time,f.value.use_seats=t.use_seats||1,f.value.is_share_slot=t.is_share_slot??0,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),f.value.check_begin_time=t.check_begin_time,f.value.check_notice=t.check_notice,f.value.warm_tips=t.warm_tips};let de=d("");const Fe=()=>{fl({}).then(t=>{t.status?de.value=t.data:g.error(t.msg)})},Me=()=>{cl({Info:f.value}).then(t=>{t.status?($.value=!1,T()):g.error(t.msg)})};let Z=d(!1),J=d(""),ee=d(null),K=d(null),O=d(null),te=d(!1),ae=d([]),B=d(!1),A=d([]),z=d({code:"",name:""});const Pe=t=>{Z.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,O.value=[],J.value="",P("Dialog"),we()},he=()=>{B.value=!0,ae.value=[],Le({searchInfo:{name:J.value,bigClass:K.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:g.error("未找到相关项目"):g.error(t.msg)})},je=()=>{console.log(A.value);let t=[],e=[],n=!0;if(V.value.forEach(function(m,y){A.value.forEach(function(b,L){m.code2==b&&(g.error(m.code2_item_name+" 已经存在于右侧,不能重复添加"),n=!1)})}),!n)return!1;O.value.forEach(m=>{A.value.includes(m.item_code)?V.value.push({code2:m.item_code,code2_item_name:m.item_name}):t.push(m)}),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,m=0)=>{B.value=!0,bl({id:m,code1:t,code2:e,time:n}).then(y=>{B.value=!1,y.status?(g({message:y.msg,type:"success"}),V.value.forEach(function(b,L){b.code2==y.data.code2&&(console.log(333),V.value[L].id=y.data.id)})):g.error(y.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:g.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?(g({message:e.msg,type:"success"}),we()):g.error(e.msg)})})},Je=()=>{fe.confirm("确定从his同步分类吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Cl().then(t=>{h.value=!1,t.status?(g({message:t.msg,type:"success"}),P()):g.error(t.msg)})})},Ke=()=>{fe.confirm("确定从his同步检查项目吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Vl({termClassId:155}).then(t=>{h.value=!1,t.status?(g({message:t.msg,type:"success"}),T()):g.error(t.msg)})})};let N=d(!1),le=d(!1),me=d({id:null,item_name:""}),F=d([]),Ie=d([]);const Qe=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],We=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||""})):g.error(e.msg)})},Xe=()=>{F.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Ze=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?(g.success("保存成功"),N.value=!1):g.error(e.msg)})};return ml(()=>{P(),Oe(),Fe()}),(t,e)=>{const n=x("el-tag"),m=x("el-option"),y=x("el-select"),b=x("el-checkbox"),L=x("el-input"),_=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"),Q=x("el-dialog"),pe=x("el-checkbox-group"),il=x("el-input-number"),nl=x("DArrowLeft"),Ue=x("el-icon"),ul=x("DArrowRight"),De=x("el-time-select"),se=pl("loading");return oe((u(),c("div",null,[i("div",Dl,[a(ll,null,{default:o(()=>[i("div",Ll,[a(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[46]||(e[46]=[r("医嘱类别",-1)])]),_:1}),a(y,{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(U,null,D(s(ge),(l,p)=>(u(),w(m,{key:p,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(y,{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(U,null,D(s(_e),(l,p)=>(u(),w(m,{key:p,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(y,{clearable:"",modelValue:s(C).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>s(C).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[a(m,{label:"全部",value:""}),a(m,{label:"已关联排班",value:1}),a(m,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),a(y,{clearable:"",modelValue:s(C).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>s(C).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[a(m,{label:"全部",value:""}),a(m,{label:"有执行科室",value:"1"}),a(m,{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[47]||(e[47]=[r("只显示参与预约科室的项目",-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(_,{type:"primary",onClick:e[7]||(e[7]=l=>T()),style:{"margin-left":"10px"}},{default:o(()=>[...e[48]||(e[48]=[r("查询",-1)])]),_:1}),a(_,{type:"warning",onClick:e[8]||(e[8]=l=>Je()),style:{"margin-left":"40px"}},{default:o(()=>[...e[49]||(e[49]=[r("同步分类",-1)])]),_:1}),a(_,{type:"warning",onClick:e[9]||(e[9]=l=>Ke()),style:{"margin-left":"10px"}},{default:o(()=>[...e[50]||(e[50]=[r("同步检查项目",-1)])]),_:1}),a(_,{type:"primary",onClick:e[10]||(e[10]=l=>$e()),style:{"margin-left":"10px"}},{default:o(()=>[...e[51]||(e[51]=[r("批量关联排班",-1)])]),_:1}),a(_,{type:"primary",onClick:e[11]||(e[11]=l=>Ve("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[52]||(e[52]=[r("批量设置检查须知",-1)])]),_:1}),a(_,{type:"primary",onClick:e[12]||(e[12]=l=>Ve("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[53]||(e[53]=[r("批量设置温馨提示",-1)])]),_:1}),a(_,{type:"success",onClick:e[13]||(e[13]=l=>ze()),style:{"margin-left":"10px"}},{default:o(()=>[...e[54]||(e[54]=[r("导出",-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(U,null,D(l.row.his_exec_dept_names,(p,v)=>(u(),w(n,{key:v,class:"ml-2",style:{"margin-bottom":"2px","margin-right":"4px"}},{default:o(()=>[r(S(p),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[55]||(e[55]=[r("是",-1)])]),_:1})):M("",!0),l.row.limosis==0?(u(),w(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[56]||(e[56]=[r("否",-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(U,null,D(l.row.devicesInfo,(p,v)=>(u(),c("span",{key:v},[p.status==1&&p.is_del==0?(u(),w(n,{key:0,class:"ml-2",type:"success"},{default:o(()=>[r(S(p.device_name),1)]),_:2},1024)):M("",!0),p.status==0||p.is_del==1?(u(),w(n,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[r(S(p.device_name),1)]),_:2},1024)):M("",!0)]))),128))]),_:1}),a(E,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[a(_,{size:"small",onClick:p=>Te(l.row)},{default:o(()=>[...e[57]||(e[57]=[r("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),a(E,{prop:"",label:"操作",width:"220"},{default:o(l=>[a(_,{type:"primary",onClick:p=>Ae(l.row),size:"small"},{default:o(()=>[...e[58]||(e[58]=[r("修改",-1)])]),_:1},8,["onClick"]),a(_,{type:"warning",onClick:p=>Pe(l.row),size:"small"},{default:o(()=>[...e[59]||(e[59]=[r("互斥",-1)])]),_:1},8,["onClick"]),a(_,{type:"success",onClick:p=>We(l.row),size:"small"},{default:o(()=>[...e[60]||(e[60]=[r("规则",-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(Q,{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(_,{onClick:e[17]||(e[17]=l=>k(R)?R.value=!1:R=!1)},{default:o(()=>[...e[61]||(e[61]=[r("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[18]||(e[18]=l=>Ge())},{default:o(()=>[...e[62]||(e[62]=[r(" 确定 ",-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(X)},null,8,["modelValue","data"])]),s(W)&&s(ue)?(u(),c("div",El,[a(ol,{percentage:s(ne),"stroke-width":14},null,8,["percentage"])])):M("",!0)]),_:1},8,["modelValue","title"]),a(Q,{modelValue:s($),"onUpdate:modelValue":e[30]||(e[30]=l=>k($)?$.value=l:$=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",Ml,[a(_,{onClick:e[28]||(e[28]=l=>k($)?$.value=!1:$=!1)},{default:o(()=>[...e[75]||(e[75]=[r("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:e[29]||(e[29]=l=>Me())},{default:o(()=>[...e[76]||(e[76]=[r(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Bl,[e[63]||(e[63]=i("span",{class:"title"},"医嘱名称:",-1)),r(S(s(f).item_name),1)]),i("div",zl,[e[64]||(e[64]=i("span",{class:"title"},"预约方式:",-1)),s(de)?(u(),w(pe,{key:0,modelValue:s(f).reservation_method,"onUpdate:modelValue":e[20]||(e[20]=l=>s(f).reservation_method=l)},{default:o(()=>[(u(!0),c(U,null,D(s(de),(l,p)=>(u(),w(b,{label:l.id,value:l.id,key:p},{default:o(()=>[r(S(l.name),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])):M("",!0)]),i("div",Tl,[e[65]||(e[65]=i("span",{class:"title"},"空腹:",-1)),a(y,{filterable:!0,clearable:"",modelValue:s(f).limosis,"onUpdate:modelValue":e[21]||(e[21]=l=>s(f).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[a(m,{label:"否",value:0}),a(m,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",$l,[e[66]||(e[66]=i("span",{class:"title"},"检查时间:",-1)),a(L,{modelValue:s(f).check_time,"onUpdate:modelValue":e[22]||(e[22]=l=>s(f).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Gl,[e[67]||(e[67]=i("span",{class:"title"},"占用号源:",-1)),a(il,{modelValue:s(f).use_seats,"onUpdate:modelValue":e[23]||(e[23]=l=>s(f).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[68]||(e[68]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Nl,[e[70]||(e[70]=i("span",{class:"title"},"共享号源:",-1)),a(b,{modelValue:s(f).is_share_slot,"onUpdate:modelValue":e[24]||(e[24]=l=>s(f).is_share_slot=l),"true-value":1,"false-value":0},{default:o(()=>[...e[69]||(e[69]=[r(" 项目按人数占用号源 ",-1)])]),_:1},8,["modelValue"])]),i("div",Ol,[e[71]||(e[71]=i("span",{class:"title"},"等待时间:",-1)),a(L,{modelValue:s(f).check_begin_time,"onUpdate:modelValue":e[25]||(e[25]=l=>s(f).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[72]||(e[72]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",Al,[e[73]||(e[73]=i("span",{class:"title"},"检查须知:",-1)),a(L,{modelValue:s(f).check_notice,"onUpdate:modelValue":e[26]||(e[26]=l=>s(f).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",Fl,[e[74]||(e[74]=i("span",{class:"title"},"温馨提示:",-1)),a(L,{modelValue:s(f).warm_tips,"onUpdate:modelValue":e[27]||(e[27]=l=>s(f).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),a(Q,{modelValue:s(G),"onUpdate:modelValue":e[33]||(e[33]=l=>k(G)?G.value=l:G=l),title:s(Ce),width:"40%"},{footer:o(()=>[a(_,{onClick:e[32]||(e[32]=l=>k(G)?G.value=!1:G=!1)},{default:o(()=>[...e[77]||(e[77]=[r("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:Ne},{default:o(()=>[...e[78]||(e[78]=[r("确定",-1)])]),_:1})]),default:o(()=>[a(L,{modelValue:s(q),"onUpdate:modelValue":e[31]||(e[31]=l=>k(q)?q.value=l:q=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"]),a(Q,{modelValue:s(Z),"onUpdate:modelValue":e[42]||(e[42]=l=>k(Z)?Z.value=l:Z=l),title:"为 "+s(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[85]||(e[85]=r(" 请输入想要与 ",-1)),i("span",Pl,S(s(z).name),1),e[86]||(e[86]=r(" 互斥的项目名称 ",-1)),i("div",jl,[i("div",Yl,[oe((u(),c("div",ql,[i("div",Jl,[a(y,{clearable:"",filterable:!0,modelValue:s(K),"onUpdate:modelValue":e[34]||(e[34]=l=>k(K)?K.value=l:K=l),onChange:e[35]||(e[35]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(u(!0),c(U,null,D(s(ye),(l,p)=>(u(),w(m,{key:p,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),a(y,{filterable:!0,clearable:"",modelValue:s(ee),"onUpdate:modelValue":e[36]||(e[36]=l=>k(ee)?ee.value=l:ee=l),placeholder:"所有医嘱小类",onChange:e[37]||(e[37]=l=>he()),style:{"margin-left":"10px"}},{default:o(()=>[(u(!0),c(U,null,D(s(ce),(l,p)=>(u(),w(m,{key:p,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[a(L,{modelValue:s(J),"onUpdate:modelValue":e[38]||(e[38]=l=>k(J)?J.value=l:J=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),a(_,{type:"success",style:{"margin-left":"8px"},onClick:e[39]||(e[39]=l=>he())},{default:o(()=>[...e[79]||(e[79]=[r("查询",-1)])]),_:1})])])),[[se,s(B)]]),i("div",Kl,[a(pe,{modelValue:s(A),"onUpdate:modelValue":e[40]||(e[40]=l=>k(A)?A.value=l:A=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(u(!0),c(U,null,D(s(O),(l,p)=>(u(),w(b,{key:p,label:l.item_code},{default:o(()=>[r(S(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Ql,[a(_,{type:"primary",icon:s(gl),circle:"",onClick:e[41]||(e[41]=l=>je())},null,8,["icon"])]),i("div",Wl,[i("div",Xl,"已经存在互斥项("+S(s(V).length)+")",1),s(V).length>0?(u(),c("table",Zl,[(u(!0),c(U,null,D(s(V),(l,p)=>(u(),c("tr",{key:p},[i("td",null,S(l.code2_item_name),1),i("td",null,[a(L,{modelValue:s(V)[p].time,"onUpdate:modelValue":v=>s(V)[p].time=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[80]||(e[80]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(u(),c("span",et,[a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>qe(l.id)},{default:o(()=>[...e[81]||(e[81]=[r("解除",-1)])]),_:1},8,["onClick"]),a(_,{type:"primary",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[p].time,l.id)},{default:o(()=>[...e[82]||(e[82]=[r("更新",-1)])]),_:1},8,["onClick"])])):(u(),c("span",lt,[a(_,{type:"success",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.code2,s(V)[p].time)},{default:o(()=>[...e[83]||(e[83]=[r("保存",-1)])]),_:1},8,["onClick"]),a(_,{style:{"margin-left":"8px"},onClick:v=>Ye(l)},{default:o(()=>[...e[84]||(e[84]=[r("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(u(),c("div",tt," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(Q,{modelValue:s(te),"onUpdate:modelValue":e[43]||(e[43]=l=>k(te)?te.value=l:te=l),title:"为 "+s(z).name+" 设置互斥",width:"50%"},{default:o(()=>[oe((u(),c("div",null,[e[88]||(e[88]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(u(!0),c(U,null,D(s(O),(l,p)=>(u(),c("div",{class:"row",key:p},[i("div",at,S(s(z).name),1),a(Ue,null,{default:o(()=>[a(nl)]),_:1}),a(Ue,null,{default:o(()=>[a(ul)]),_:1}),i("div",st,S(l.item_name),1),a(L,{modelValue:s(ae)[p],"onUpdate:modelValue":v=>s(ae)[p]=v,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),a(_,{type:"danger",style:{"margin-left":"8px"},onClick:v=>re(s(z).code,l.item_code,s(ae)[p])},{default:o(()=>[...e[87]||(e[87]=[r("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[se,s(B)]])]),_:1},8,["modelValue","title"]),oe((u(),w(Q,{modelValue:s(N),"onUpdate:modelValue":e[45]||(e[45]=l=>k(N)?N.value=l:N=l),title:"时段规则 - "+s(me).item_name,width:"700px"},{footer:o(()=>[a(_,{onClick:e[44]||(e[44]=l=>k(N)?N.value=!1:N=!1)},{default:o(()=>[...e[97]||(e[97]=[r("取消",-1)])]),_:1}),a(_,{type:"primary",onClick:el},{default:o(()=>[...e[98]||(e[98]=[r("保存",-1)])]),_:1})]),default:o(()=>[i("div",ot,[a(_,{type:"primary",size:"small",onClick:Xe},{default:o(()=>[...e[89]||(e[89]=[r("添加规则",-1)])]),_:1}),e[90]||(e[90]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(u(!0),c(U,null,D(s(F),(l,p)=>(u(),c("div",{key:p,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",it,[i("span",nt,"规则 "+S(p+1),1),a(_,{type:"danger",size:"small",onClick:v=>Ze(p)},{default:o(()=>[...e[91]||(e[91]=[r("删除",-1)])]),_:1},8,["onClick"])]),i("div",ut,[e[92]||(e[92]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),a(pe,{modelValue:l.days,"onUpdate:modelValue":v=>l.days=v},{default:o(()=>[(u(),c(U,null,D(Qe,v=>a(b,{key:v,label:v,value:v},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",dt,[e[93]||(e[93]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),a(y,{modelValue:l.resources_id,"onUpdate:modelValue":v=>l.resources_id=v,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(u(!0),c(U,null,D(s(Ie),v=>(u(),w(m,{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[94]||(e[94]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",rt,[e[95]||(e[95]=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[96]||(e[96]=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(F).length===0?(u(),c("div",mt," 暂未设置时段限制 ")):M("",!0)]),_:1},8,["modelValue","title"])),[[se,s(le)]])])),[[se,s(h)]])}}},gt=dl(pt,[["__scopeId","data-v-881ad646"]]);export{gt as default}; diff --git a/Laravel/public/admin/assets/CheckItemConfig-969d6535.css b/Laravel/public/admin/assets/CheckItemConfig-969d6535.css new file mode 100644 index 0000000..835f60e --- /dev/null +++ b/Laravel/public/admin/assets/CheckItemConfig-969d6535.css @@ -0,0 +1 @@ +.page[data-v-881ad646]{display:flex;justify-content:flex-end;margin-top:10px}.chuansuokuang[data-v-881ad646]{display:flex;justify-content:center}.row[data-v-881ad646]{display:flex;align-items:center;margin-left:20px;margin-top:12px}.title[data-v-881ad646]{font-weight:700;white-space:nowrap;width:100px;text-align:left}.col[data-v-881ad646]{border:1px solid #ddd;padding:4px;width:400px}#huchi_table[data-v-881ad646]{width:100%;border:1px solid #ccc;border-collapse:collapse}#huchi_table tr[data-v-881ad646]{border:1px solid #ccc}#huchi_table td[data-v-881ad646]{border:1px solid #ccc;padding:4px 8px} diff --git a/Laravel/public/admin/assets/CheckItemConfig-a986daf7.js b/Laravel/public/admin/assets/CheckItemConfig-a986daf7.js deleted file mode 100644 index c7c5426..0000000 --- a/Laravel/public/admin/assets/CheckItemConfig-a986daf7.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as dl,Y 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-b8bae120.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"}},Jl={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Kl={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},Ql={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},Wl={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},Xl={key:0,id:"huchi_table"},Zl={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=K.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),W=d(!1),G=d(!1),ke=d(""),Ce=d(""),q=d(""),I=d([]),ie=d(null);const He=rl(()=>W.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=>{W.value=!1,H.value=[],R.value=!0,y.value.id=t.id,ve({hisExecDepts:t.hisExecDepts}).then(e=>{e.status&&(X.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){X.value.find(function(r){return r.id==n.id})&&H.value.push(n.id)})})},$e=()=>{if(I.value.length===0){f.error("请先勾选要批量关联的检查项目");return}W.value=!0;const t=I.value[0].hisExecDepts;ve({hisExecDepts:t}).then(e=>{e.status&&(X.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(W.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 X=d([]);const Oe=()=>{ve({}).then(t=>{t.status?X.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 Z=d(!1),J=d(""),ee=d(null),K=d(null),O=d(null),te=d(!1),ae=d([]),B=d(!1),A=d([]),z=d({code:"",name:""});const Pe=t=>{Z.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,O.value=[],J.value="",P("Dialog"),we()},he=()=>{B.value=!0,ae.value=[],Le({searchInfo:{name:J.value,bigClass:K.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)})})},Je=()=>{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)})})},Ke=()=>{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 Qe=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],We=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)})},Xe=()=>{F.value.push({days:[],start_time:"",end_time:"",resources_id:""})},Ze=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"),Q=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=>Je()),style:{"margin-left":"40px"}},{default:o(()=>[...e[48]||(e[48]=[p("同步分类",-1)])]),_:1}),a(g,{type:"warning",onClick:e[9]||(e[9]=l=>Ke()),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=>We(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(Q,{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(X)},null,8,["modelValue","data"])]),s(W)&&s(ue)?(u(),c("div",El,[a(ol,{percentage:s(ne),"stroke-width":14},null,8,["percentage"])])):M("",!0)]),_:1},8,["modelValue","title"]),a(Q,{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(Q,{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(Q,{modelValue:s(Z),"onUpdate:modelValue":e[41]||(e[41]=l=>k(Z)?Z.value=l:Z=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(K),"onUpdate:modelValue":e[33]||(e[33]=l=>k(K)?K.value=l:K=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(J),"onUpdate:modelValue":e[37]||(e[37]=l=>k(J)?J.value=l:J=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",Jl,[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",Kl,[a(g,{type:"primary",icon:s(gl),circle:"",onClick:e[40]||(e[40]=l=>je())},null,8,["icon"])]),i("div",Ql,[i("div",Wl,"已经存在互斥项("+S(s(V).length)+")",1),s(V).length>0?(u(),c("table",Xl,[(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",Zl,[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(Q,{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(Q,{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:Xe},{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=>Ze(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(Qe,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/CheckItemConfig-e77282ab.css b/Laravel/public/admin/assets/CheckItemConfig-e77282ab.css deleted file mode 100644 index 348ea27..0000000 --- a/Laravel/public/admin/assets/CheckItemConfig-e77282ab.css +++ /dev/null @@ -1 +0,0 @@ -.page[data-v-d46f9281]{display:flex;justify-content:flex-end;margin-top:10px}.chuansuokuang[data-v-d46f9281]{display:flex;justify-content:center}.row[data-v-d46f9281]{display:flex;align-items:center;margin-left:20px;margin-top:12px}.title[data-v-d46f9281]{font-weight:700;white-space:nowrap;width:100px;text-align:left}.col[data-v-d46f9281]{border:1px solid #ddd;padding:4px;width:400px}#huchi_table[data-v-d46f9281]{width:100%;border:1px solid #ccc;border-collapse:collapse}#huchi_table tr[data-v-d46f9281]{border:1px solid #ccc}#huchi_table td[data-v-d46f9281]{border:1px solid #ccc;padding:4px 8px} diff --git a/Laravel/public/admin/assets/DepartmentConfig-9bc7d6a2.js b/Laravel/public/admin/assets/DepartmentConfig-f7592cdd.js similarity index 98% rename from Laravel/public/admin/assets/DepartmentConfig-9bc7d6a2.js rename to Laravel/public/admin/assets/DepartmentConfig-f7592cdd.js index 85bac1d..5ed1eb2 100644 --- a/Laravel/public/admin/assets/DepartmentConfig-9bc7d6a2.js +++ b/Laravel/public/admin/assets/DepartmentConfig-f7592cdd.js @@ -1 +1 @@ -import{_ as De,Y 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-b8bae120.js";import{_ as Pe}from"./DepartmentResourcesSave-aa6681b0.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"}},Ye={style:{color:"#00aaff","font-size":"12px"}},Ke={class:"page"},Qe={class:"dialog-footer"},We={class:"dialog-footer"},Xe={class:"dialog-footer"},Ze={__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}),Y=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?(Y.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=[]}Z()},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=[],Z()};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)})},Z=()=>{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(Y),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",Ye,"已关联 "+$(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(Ze,[["__scopeId","data-v-eef12383"]]);export{lt as default}; +import{_ as De,Y 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-612fedfe.js";import{_ as Pe}from"./DepartmentResourcesSave-4f972dd5.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"}},Ye={style:{color:"#00aaff","font-size":"12px"}},Ke={class:"page"},Qe={class:"dialog-footer"},We={class:"dialog-footer"},Xe={class:"dialog-footer"},Ze={__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}),Y=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?(Y.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=[]}Z()},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=[],Z()};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)})},Z=()=>{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(Y),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",Ye,"已关联 "+$(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(Ze,[["__scopeId","data-v-eef12383"]]);export{lt as default}; diff --git a/Laravel/public/admin/assets/DepartmentResources-cbc407ad.js b/Laravel/public/admin/assets/DepartmentResources-e772bcdc.js similarity index 97% rename from Laravel/public/admin/assets/DepartmentResources-cbc407ad.js rename to Laravel/public/admin/assets/DepartmentResources-e772bcdc.js index 9e33778..912ce48 100644 --- a/Laravel/public/admin/assets/DepartmentResources-cbc407ad.js +++ b/Laravel/public/admin/assets/DepartmentResources-e772bcdc.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,W 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-b8bae120.js";import{_ as ce}from"./DepartmentResourcesSave-aa6681b0.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 W=()=>{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"},X=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(),W(),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:_=>X(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,W 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-612fedfe.js";import{_ as ce}from"./DepartmentResourcesSave-4f972dd5.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 W=()=>{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"},X=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(),W(),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:_=>X(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-aa6681b0.js b/Laravel/public/admin/assets/DepartmentResourcesSave-4f972dd5.js similarity index 99% rename from Laravel/public/admin/assets/DepartmentResourcesSave-aa6681b0.js rename to Laravel/public/admin/assets/DepartmentResourcesSave-4f972dd5.js index fe223dd..ad39775 100644 --- a/Laravel/public/admin/assets/DepartmentResourcesSave-aa6681b0.js +++ b/Laravel/public/admin/assets/DepartmentResourcesSave-4f972dd5.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,W as oe,E as D,aJ as re,aK as de}from"./index-b8bae120.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)})},W=G,w=()=>{W("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"),X=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(X,{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,W as oe,E as D,aJ as re,aK as de}from"./index-612fedfe.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)})},W=G,w=()=>{W("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"),X=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(X,{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-8f3a58b2.css b/Laravel/public/admin/assets/DeptCheckItemConfig-8f3a58b2.css deleted file mode 100644 index 310c1fe..0000000 --- a/Laravel/public/admin/assets/DeptCheckItemConfig-8f3a58b2.css +++ /dev/null @@ -1 +0,0 @@ -.page[data-v-1481c833]{display:flex;justify-content:flex-end;margin-top:10px}.chuansuokuang[data-v-1481c833]{display:flex;justify-content:center}.row[data-v-1481c833]{display:flex;align-items:center;margin-left:20px;margin-top:12px}.title[data-v-1481c833]{font-weight:700;white-space:nowrap;width:100px;text-align:left}.col[data-v-1481c833]{border:1px solid #ddd;padding:4px;width:400px}#huchi_table[data-v-1481c833]{width:100%;border:1px solid #ccc;border-collapse:collapse}#huchi_table tr[data-v-1481c833]{border:1px solid #ccc}#huchi_table td[data-v-1481c833]{border:1px solid #ccc;padding:4px 8px} diff --git a/Laravel/public/admin/assets/DeptCheckItemConfig-9a72935b.css b/Laravel/public/admin/assets/DeptCheckItemConfig-9a72935b.css new file mode 100644 index 0000000..5b76dd2 --- /dev/null +++ b/Laravel/public/admin/assets/DeptCheckItemConfig-9a72935b.css @@ -0,0 +1 @@ +.page[data-v-c0e214d3]{display:flex;justify-content:flex-end;margin-top:10px}.chuansuokuang[data-v-c0e214d3]{display:flex;justify-content:center}.row[data-v-c0e214d3]{display:flex;align-items:center;margin-left:20px;margin-top:12px}.title[data-v-c0e214d3]{font-weight:700;white-space:nowrap;width:100px;text-align:left}.col[data-v-c0e214d3]{border:1px solid #ddd;padding:4px;width:400px}#huchi_table[data-v-c0e214d3]{width:100%;border:1px solid #ccc;border-collapse:collapse}#huchi_table tr[data-v-c0e214d3]{border:1px solid #ccc}#huchi_table td[data-v-c0e214d3]{border:1px solid #ccc;padding:4px 8px} diff --git a/Laravel/public/admin/assets/DeptCheckItemConfig-c8606032.js b/Laravel/public/admin/assets/DeptCheckItemConfig-c8606032.js deleted file mode 100644 index c06a362..0000000 --- a/Laravel/public/admin/assets/DeptCheckItemConfig-c8606032.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as sl,Y 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-b8bae120.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"},Jl={key:0,style:{display:"flex"}},Kl={key:1,style:{display:"flex"}},Ql={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},Wl={style:{"margin-right":"12px"}},Xl={style:{"margin-left":"12px",width:"250px"}},Zl={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=J.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),Q=u(!1),w=u([]),oe=u(null),E=u(!1),ke=u(""),Ce=u(""),j=u("");const Re=ol(()=>Q.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=>{Q.value=!1,S.value=[],U.value=!0,g.value.id=t.id,ve({}).then(e=>{e.status&&(W.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){W.value.find(function(f){return f.id==n.id})&&S.value.push(n.id)})})},Ee=()=>{if(w.value.length===0){c.error("请先勾选要批量关联的检查项目");return}Q.value=!0,ve({}).then(t=>{t.status&&(W.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(Q.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 W=u([]);const $e=()=>{ve({}).then(t=>{t.status?W.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 X=u(!1),q=u(""),Z=u(null),J=u(null),$=u(null),le=u(!1),te=u([]),R=u(!1),M=u([]),z=u({code:"",name:""});const Ae=t=>{X.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:J.value,smallClass:Z.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:""})},Je=t=>{N.value.splice(t,1)},Ke=()=>{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"),Qe=k("el-row"),H=k("el-table-column"),We=k("el-table"),Xe=k("el-pagination"),Ze=k("el-transfer"),el=k("el-progress"),K=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(Qe,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(We,{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(Xe,{"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(K,{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(Ze,{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(W)},null,8,["modelValue","data"])]),s(Q)&&s(ne)?(d(),y("div",Dl,[a(el,{percentage:s(ie),"stroke-width":14},null,8,["percentage"])])):G("",!0)]),_:1},8,["modelValue","title"]),a(K,{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(K,{modelValue:s(X),"onUpdate:modelValue":e[34]||(e[34]=l=>C(X)?X.value=l:X=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(J),"onUpdate:modelValue":e[26]||(e[26]=l=>C(J)?J.value=l:J=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(Z),"onUpdate:modelValue":e[28]||(e[28]=l=>C(Z)?Z.value=l:Z=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",Jl,[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",Kl,[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",Ql," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),a(K,{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",Wl,L(s(z).name),1),a(Ie,null,{default:o(()=>[a(tl)]),_:1}),a(Ie,null,{default:o(()=>[a(al)]),_:1}),i("div",Xl,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(K,{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:Ke},{default:o(()=>[...e[85]||(e[85]=[m("保存",-1)])]),_:1})]),default:o(()=>[i("div",Zl,[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=>Je(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(K,{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-d211bc94.js b/Laravel/public/admin/assets/DeptCheckItemConfig-d211bc94.js new file mode 100644 index 0000000..cfcec8f --- /dev/null +++ b/Laravel/public/admin/assets/DeptCheckItemConfig-d211bc94.js @@ -0,0 +1 @@ +import{_ as sl,Y as ol,o as il,r as k,c as nl,h as oe,i as a,d,e as y,k as i,f as s,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 Vl}from"./index-612fedfe.js";const xl={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:"row"},Nl={class:"dialog-footer"},Gl={style:{"font-weight":"900","font-size":"16px"}},Fl={style:{display:"flex","margin-top":"20px"}},Al={style:{width:"30%","border-right":"1px solid #ccc",padding:"4px 20px"}},Ml={style:{"border-bottom":"1px solid #ccc","padding-bottom":"12px","margin-bottom":"20px"}},Pl={style:{display:"flex","margin-bottom":"8px"}},Ol={style:{"padding-left":"40px","max-height":"400px","overflow-y":"scroll"}},Yl={style:{width:"100px","border-right":"1px solid #ccc","text-align":"center",height:"400px","line-height":"400px"}},jl={style:{width:"60%","padding-left":"20px","max-height":"450px","overflow-y":"scroll"}},ql={style:{color:"#999","margin-bottom":"4px","font-size":"12px"}},Jl={key:0,id:"huchi_table"},Kl={key:0,style:{display:"flex"}},Ql={key:1,style:{display:"flex"}},Wl={key:1,style:{"text-align":"center","margin-top":"20px",color:"#bbb"}},Xl={style:{"margin-right":"12px"}},Zl={style:{"margin-left":"12px",width:"250px"}},et={style:{"margin-bottom":"12px"}},lt={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},tt={style:{"font-weight":"700","margin-right":"12px"}},at={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},st={style:{display:"flex","align-items":"center","margin-bottom":"8px"}},ot={style:{display:"flex","align-items":"center"}},it={key:0,style:{"text-align":"center",color:"#bbb",padding:"20px"}},nt={__name:"DeptCheckItemConfig",setup(ut){let F=u(!1),V=u({bigClass:"",smallClass:"",name:"",orderField:"",orderDirection:"",hisExecDepts:"1",deviceBind:""}),p=u({id:null,item_name:"",limosis:"",reservation_method:"",check_time:"",check_begin_time:"",check_notice:"",warm_tips:"",use_seats:1,is_share_slot:0}),fe=u([]),ge=u([]),_e=u([]),ye=u([]);const P=(t="")=>{let e={};e={...V.value},t=="Dialog"&&(e.bigClass=J.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=()=>{ie.value&&ie.value.clearSelection(),w.value=[],F.value=!0,dl({searchInfo:V.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})=>{V.value.orderField=t||"",V.value.orderDirection=e||"",A()},Le=t=>{Y.value=t,A()},Se=t=>{O.value=t,A()};let U=u(!1),B=u(!1),Q=u(!1),w=u([]),ie=u(null),E=u(!1),ke=u(""),Ce=u(""),j=u("");const Re=ol(()=>Q.value?"批量关联排班":"关联排班"),ze=t=>{w.value=t},Ve=t=>{if(w.value.length===0){c.error("请先勾选要批量设置的检查项目");return}ke.value=t,Ce.value=t==="check_notice"?"批量设置检查须知":"批量设置温馨提示";const e={};w.value.forEach(v=>{const b=(v[t]||"").trim();b&&(e[b]=(e[b]||0)+1)});let n=0,g="";Object.entries(e).forEach(([v,b])=>{b>n&&(n=b,g=v)}),j.value=g,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=>{Q.value=!1,S.value=[],U.value=!0,p.value.id=t.id,ve({}).then(e=>{e.status&&(W.value=e.data),t.devicesInfo&&t.devicesInfo.length>0&&t.devicesInfo.forEach(function(n){W.value.find(function(g){return g.id==n.id})&&S.value.push(n.id)})})},Ee=()=>{if(w.value.length===0){c.error("请先勾选要批量关联的检查项目");return}Q.value=!0,ve({}).then(t=>{t.status&&(W.value=t.data);let e=[];if(w.value.length>0){e=w.value[0].devicesInfo.map(n=>n.id);for(let n=1;nv.id);e=e.filter(v=>g.includes(v))}}S.value=e,U.value=!0})};let S=u([]),ne=u(0),ue=u(!1);const Te=async()=>{const t=e=>Vl({item_id:e,device_ids:S.value});if(Q.value){ue.value=!0,ne.value=0;const e=w.value.length;let n=0,g=0;for(let v=0;v{ue.value=!1},1500),g===0?c.success(`批量关联成功,共${e}项`):c.warning(`完成${n}项,失败${g}项`),U.value=!1,S.value=[],P()}else t(p.value.id).then(e=>{e.status?(U.value=!1,S.value=[],P()):c.error(e.msg)})};let W=u([]);const $e=()=>{ve({}).then(t=>{t.status?W.value=t.data:c.error(t.msg)})},Ne=t=>{B.value=!0,p.value.id=t.id,p.value.item_name=t.item_name,p.value.limosis=t.limosis,p.value.reservation_method=t.reservation_method,p.value.check_time=t.check_time,p.value.use_seats=t.use_seats||1,p.value.is_share_slot=t.is_share_slot??0,(t.check_begin_time==""||t.check_begin_time==null)&&(t.check_begin_time=0),p.value.check_begin_time=t.check_begin_time,p.value.check_notice=t.check_notice,p.value.warm_tips=t.warm_tips};let de=u("");const Ge=()=>{rl({}).then(t=>{t.status?de.value=t.data:c.error(t.msg)})},Fe=()=>{vl({Info:p.value}).then(t=>{t.status?(B.value=!1,A()):c.error(t.msg)})};let X=u(!1),q=u(""),Z=u(null),J=u(null),$=u(null),le=u(!1),te=u([]),R=u(!1),M=u([]),z=u({code:"",name:""});const Ae=t=>{X.value=!0,z.value.name=t.item_name,z.value.code=t.item_code,$.value=[],q.value="",P("Dialog"),he()},xe=()=>{R.value=!0,te.value=[],fl({searchInfo:{name:q.value,bigClass:J.value,smallClass:Z.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(x.value.forEach(function(n,g){M.value.forEach(function(v,b){n.code2==v&&(c.error(n.code2_item_name+" 已经存在于右侧,不能重复添加"),e=!1)})}),!e)return!1;$.value.forEach(n=>{M.value.includes(n.item_code)?x.value.push({code2:n.item_code,code2_item_name:n.item_name}):t.push(n)}),$.value=t,M.value=[]},Pe=t=>{x.value=x.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})},re=(t,e,n,g=0)=>{R.value=!0,gl({id:g,code1:t,code2:e,time:n}).then(v=>{R.value=!1,v.status?(c({message:v.msg,type:"success"}),x.value.forEach(function(b,_){b.code2==v.data.code2&&(x.value[_].id=v.data.id)})):c.error(v.msg)})};let x=u([]);const he=()=>{R.value=!0,_l({code:z.value.code}).then(t=>{R.value=!1,t.status?x.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),me=u({id:null,item_name:""}),N=u([]),we=u([]);const Ye=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],je=t=>{me.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:""})},Je=t=>{N.value.splice(t,1)},Ke=()=>{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:me.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"),g=k("el-option"),v=k("el-select"),b=k("el-input"),_=k("el-button"),Qe=k("el-row"),H=k("el-table-column"),We=k("el-table"),Xe=k("el-pagination"),Ze=k("el-transfer"),el=k("el-progress"),K=k("el-dialog"),ae=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"),se=nl("loading");return oe((d(),y("div",null,[i("div",xl,[s(Qe,null,{default:o(()=>[i("div",hl,[s(n,{class:"ml-2",type:"success",style:{"margin-right":"20px"}},{default:o(()=>[...e[42]||(e[42]=[m("医嘱类别",-1)])]),_:1}),s(v,{clearable:"",filterable:!0,modelValue:a(V).bigClass,"onUpdate:modelValue":e[0]||(e[0]=l=>a(V).bigClass=l),onChange:e[1]||(e[1]=l=>P()),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(a(fe),(l,r)=>(d(),h(g,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s(v,{filterable:!0,clearable:"",modelValue:a(V).smallClass,"onUpdate:modelValue":e[2]||(e[2]=l=>a(V).smallClass=l),placeholder:"所有医嘱小类",style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(a(ge),(l,r)=>(d(),h(g,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s(v,{clearable:"",modelValue:a(V).deviceBind,"onUpdate:modelValue":e[3]||(e[3]=l=>a(V).deviceBind=l),placeholder:"关联排班",style:{"margin-left":"10px"}},{default:o(()=>[s(g,{label:"全部",value:""}),s(g,{label:"已关联排班",value:1}),s(g,{label:"未关联排班",value:0})]),_:1},8,["modelValue"]),s(v,{clearable:"",modelValue:a(V).hisExecDepts,"onUpdate:modelValue":e[4]||(e[4]=l=>a(V).hisExecDepts=l),placeholder:"执行科室",style:{"margin-left":"10px"}},{default:o(()=>[s(g,{label:"全部",value:""}),s(g,{label:"有执行科室",value:"1"}),s(g,{label:"无执行科室",value:"0"})]),_:1},8,["modelValue"]),s(b,{modelValue:a(V).name,"onUpdate:modelValue":e[5]||(e[5]=l=>a(V).name=l),placeholder:"请输入项目编号/名称",style:{"margin-left":"10px"}},null,8,["modelValue"])]),s(_,{type:"primary",onClick:e[6]||(e[6]=l=>A()),style:{"margin-left":"10px"}},{default:o(()=>[...e[43]||(e[43]=[m("查询",-1)])]),_:1}),s(_,{type:"primary",onClick:e[7]||(e[7]=l=>Ee()),style:{"margin-left":"10px"}},{default:o(()=>[...e[44]||(e[44]=[m("批量关联排班",-1)])]),_:1}),s(_,{type:"primary",onClick:e[8]||(e[8]=l=>Ve("check_notice")),style:{"margin-left":"10px"}},{default:o(()=>[...e[45]||(e[45]=[m("批量设置检查须知",-1)])]),_:1}),s(_,{type:"primary",onClick:e[9]||(e[9]=l=>Ve("warm_tips")),style:{"margin-left":"10px"}},{default:o(()=>[...e[46]||(e[46]=[m("批量设置温馨提示",-1)])]),_:1})]),_:1})]),s(We,{ref_key:"checkItemTableRef",ref:ie,data:a(ce),style:{width:"100%","margin-top":"10px"},"row-key":"id",onSortChange:Ue,onSelectionChange:ze},{default:o(()=>[s(H,{type:"selection",width:"50"}),s(H,{prop:"item_code",label:"检查项目编号",width:"160",sortable:"custom"}),s(H,{prop:"item_name",label:"检查项目名称",sortable:"custom"}),s(H,{prop:"reservation_method_name",label:"预约方式"}),s(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[47]||(e[47]=[m("是",-1)])]),_:1})):G("",!0),l.row.limosis==0?(d(),h(n,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[48]||(e[48]=[m("否",-1)])]),_:1})):G("",!0)]),_:1}),G("",!0),s(H,{prop:"check_time",label:"检查时间",width:"100"}),s(H,{prop:"check_begin_time",label:"开始预约时间",width:"120"}),s(H,{prop:"devicesInfo",label:"关联排班"},{default:o(l=>[(d(!0),y(I,null,D(l.row.devicesInfo,(r,f)=>(d(),y("span",{key:f},[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}),s(H,{prop:"",label:"医嘱关联排班",width:"150"},{default:o(l=>[s(_,{size:"small",onClick:r=>Be(l.row)},{default:o(()=>[...e[49]||(e[49]=[m("关联排班",-1)])]),_:1},8,["onClick"])]),_:1}),s(H,{prop:"",label:"操作",width:"220"},{default:o(l=>[s(_,{type:"primary",onClick:r=>Ne(l.row),size:"small"},{default:o(()=>[...e[50]||(e[50]=[m("修改",-1)])]),_:1},8,["onClick"]),s(_,{type:"warning",onClick:r=>Ae(l.row),size:"small"},{default:o(()=>[...e[51]||(e[51]=[m("互斥",-1)])]),_:1},8,["onClick"]),s(_,{type:"success",onClick:r=>je(l.row),size:"small"},{default:o(()=>[...e[52]||(e[52]=[m("规则",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),i("div",wl,[s(Xe,{"current-page":a(O),"onUpdate:currentPage":e[10]||(e[10]=l=>C(O)?O.value=l:O=l),"page-size":a(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:a(be),onSizeChange:Le,onCurrentChange:Se},null,8,["current-page","page-size","total"])]),s(K,{modelValue:a(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,[s(_,{onClick:e[13]||(e[13]=l=>C(U)?U.value=!1:U=!1)},{default:o(()=>[...e[53]||(e[53]=[m("取消",-1)])]),_:1}),s(_,{type:"primary",onClick:e[14]||(e[14]=l=>Te())},{default:o(()=>[...e[54]||(e[54]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Il,[s(Ze,{modelValue:a(S),"onUpdate:modelValue":e[12]||(e[12]=l=>C(S)?S.value=l:S=l),titles:["可选排班","已关联排班"],props:{key:"id",label:"device_name"},data:a(W)},null,8,["modelValue","data"])]),a(Q)&&a(ue)?(d(),y("div",Dl,[s(el,{percentage:a(ne),"stroke-width":14},null,8,["percentage"])])):G("",!0)]),_:1},8,["modelValue","title"]),s(K,{modelValue:a(B),"onUpdate:modelValue":e[26]||(e[26]=l=>C(B)?B.value=l:B=l),title:"编辑项目",width:"40%"},{footer:o(()=>[i("span",Nl,[s(_,{onClick:e[24]||(e[24]=l=>C(B)?B.value=!1:B=!1)},{default:o(()=>[...e[67]||(e[67]=[m("取消",-1)])]),_:1}),s(_,{type:"primary",onClick:e[25]||(e[25]=l=>Fe())},{default:o(()=>[...e[68]||(e[68]=[m(" 确定 ",-1)])]),_:1})])]),default:o(()=>[i("div",Ll,[e[55]||(e[55]=i("span",{class:"title"},"医嘱名称:",-1)),m(L(a(p).item_name),1)]),i("div",Sl,[e[56]||(e[56]=i("span",{class:"title"},"预约方式:",-1)),a(de)?(d(),h(pe,{key:0,modelValue:a(p).reservation_method,"onUpdate:modelValue":e[16]||(e[16]=l=>a(p).reservation_method=l)},{default:o(()=>[(d(!0),y(I,null,D(a(de),(l,r)=>(d(),h(ae,{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[57]||(e[57]=i("span",{class:"title"},"空腹:",-1)),s(v,{filterable:!0,clearable:"",modelValue:a(p).limosis,"onUpdate:modelValue":e[17]||(e[17]=l=>a(p).limosis=l),placeholder:"是否空腹",style:{width:"100px"}},{default:o(()=>[s(g,{label:"否",value:0}),s(g,{label:"是",value:1})]),_:1},8,["modelValue"])]),i("div",zl,[e[58]||(e[58]=i("span",{class:"title"},"检查时间:",-1)),s(b,{modelValue:a(p).check_time,"onUpdate:modelValue":e[18]||(e[18]=l=>a(p).check_time=l),placeholder:"请输入此项检查的时长",style:{width:"200px"}},null,8,["modelValue"])]),i("div",Hl,[e[59]||(e[59]=i("span",{class:"title"},"占用号源:",-1)),s(ll,{modelValue:a(p).use_seats,"onUpdate:modelValue":e[19]||(e[19]=l=>a(p).use_seats=l),min:1,max:99,style:{width:"200px"}},null,8,["modelValue"]),e[60]||(e[60]=i("div",{style:{"margin-left":"4px"}},"预约时占用的号源数量,默认1",-1))]),i("div",Bl,[e[62]||(e[62]=i("span",{class:"title"},"共享号源:",-1)),s(ae,{modelValue:a(p).is_share_slot,"onUpdate:modelValue":e[20]||(e[20]=l=>a(p).is_share_slot=l),"true-value":1,"false-value":0},{default:o(()=>[...e[61]||(e[61]=[m(" 项目按人数占用号源 ",-1)])]),_:1},8,["modelValue"])]),i("div",El,[e[63]||(e[63]=i("span",{class:"title"},"等待时间:",-1)),s(b,{modelValue:a(p).check_begin_time,"onUpdate:modelValue":e[21]||(e[21]=l=>a(p).check_begin_time=l),placeholder:"开医嘱后,等待时间",style:{width:"200px"}},null,8,["modelValue"]),e[64]||(e[64]=i("div",{style:{"margin-left":"4px"}},"医嘱开具后,预约时间需在设定的等待期之后,单位分钟",-1))]),i("div",Tl,[e[65]||(e[65]=i("span",{class:"title"},"检查须知:",-1)),s(b,{modelValue:a(p).check_notice,"onUpdate:modelValue":e[22]||(e[22]=l=>a(p).check_notice=l),type:"textarea",placeholder:"请输入检查须知",style:{width:"500px"},rows:8},null,8,["modelValue"])]),i("div",$l,[e[66]||(e[66]=i("span",{class:"title"},"温馨提示:",-1)),s(b,{modelValue:a(p).warm_tips,"onUpdate:modelValue":e[23]||(e[23]=l=>a(p).warm_tips=l),type:"textarea",placeholder:"请输入温馨提示",style:{width:"500px"},rows:8},null,8,["modelValue"])])]),_:1},8,["modelValue"]),s(K,{modelValue:a(X),"onUpdate:modelValue":e[35]||(e[35]=l=>C(X)?X.value=l:X=l),title:"为 "+a(z).name+" 设置互斥",width:"80%"},{default:o(()=>[e[75]||(e[75]=m(" 请输入想要与 ",-1)),i("span",Gl,L(a(z).name),1),e[76]||(e[76]=m(" 互斥的项目名称 ",-1)),i("div",Fl,[i("div",Al,[oe((d(),y("div",Ml,[i("div",Pl,[s(v,{clearable:"",filterable:!0,modelValue:a(J),"onUpdate:modelValue":e[27]||(e[27]=l=>C(J)?J.value=l:J=l),onChange:e[28]||(e[28]=l=>P("Dialog")),placeholder:"所有医嘱大类"},{default:o(()=>[(d(!0),y(I,null,D(a(_e),(l,r)=>(d(),h(g,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s(v,{filterable:!0,clearable:"",modelValue:a(Z),"onUpdate:modelValue":e[29]||(e[29]=l=>C(Z)?Z.value=l:Z=l),placeholder:"所有医嘱小类",onChange:e[30]||(e[30]=l=>xe()),style:{"margin-left":"10px"}},{default:o(()=>[(d(!0),y(I,null,D(a(ye),(l,r)=>(d(),h(g,{key:r,label:l.item_class_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),i("div",null,[s(b,{modelValue:a(q),"onUpdate:modelValue":e[31]||(e[31]=l=>C(q)?q.value=l:q=l),placeholder:"项目搜索",style:{width:"200px"}},null,8,["modelValue"]),s(_,{type:"success",style:{"margin-left":"8px"},onClick:e[32]||(e[32]=l=>xe())},{default:o(()=>[...e[69]||(e[69]=[m("查询",-1)])]),_:1})])])),[[se,a(R)]]),i("div",Ol,[s(pe,{modelValue:a(M),"onUpdate:modelValue":e[33]||(e[33]=l=>C(M)?M.value=l:M=l),style:{display:"flex","flex-direction":"column"}},{default:o(()=>[(d(!0),y(I,null,D(a($),(l,r)=>(d(),h(ae,{key:r,label:l.item_code},{default:o(()=>[m(L(l.item_name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),i("div",Yl,[s(_,{type:"primary",icon:a(ml),circle:"",onClick:e[34]||(e[34]=l=>Me())},null,8,["icon"])]),i("div",jl,[i("div",ql,"已经存在互斥项("+L(a(x).length)+")",1),a(x).length>0?(d(),y("table",Jl,[(d(!0),y(I,null,D(a(x),(l,r)=>(d(),y("tr",{key:r},[i("td",null,L(l.code2_item_name),1),i("td",null,[s(b,{modelValue:a(x)[r].time,"onUpdate:modelValue":f=>a(x)[r].time=f,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),e[70]||(e[70]=i("span",{style:{"font-size":"12px",color:"#bbb"}}," 小时",-1))]),i("td",null,[l.id?(d(),y("span",Kl,[s(_,{type:"danger",style:{"margin-left":"8px"},onClick:f=>Oe(l.id)},{default:o(()=>[...e[71]||(e[71]=[m("解除",-1)])]),_:1},8,["onClick"]),s(_,{type:"primary",style:{"margin-left":"8px"},onClick:f=>re(a(z).code,l.code2,a(x)[r].time,l.id)},{default:o(()=>[...e[72]||(e[72]=[m("更新",-1)])]),_:1},8,["onClick"])])):(d(),y("span",Ql,[s(_,{type:"success",style:{"margin-left":"8px"},onClick:f=>re(a(z).code,l.code2,a(x)[r].time)},{default:o(()=>[...e[73]||(e[73]=[m("保存",-1)])]),_:1},8,["onClick"]),s(_,{style:{"margin-left":"8px"},onClick:f=>Pe(l)},{default:o(()=>[...e[74]||(e[74]=[m("移除",-1)])]),_:1},8,["onClick"])]))])]))),128))])):(d(),y("div",Wl," -- 暂未设置互斥项 -- "))])])]),_:1},8,["modelValue","title"]),s(K,{modelValue:a(le),"onUpdate:modelValue":e[36]||(e[36]=l=>C(le)?le.value=l:le=l),title:"为 "+a(z).name+" 设置互斥",width:"50%"},{default:o(()=>[oe((d(),y("div",null,[e[78]||(e[78]=i("span",{style:{"font-weight":"900"}},"设置互斥时间,单位小时,0为永久互斥",-1)),(d(!0),y(I,null,D(a($),(l,r)=>(d(),y("div",{class:"row",key:r},[i("div",Xl,L(a(z).name),1),s(Ie,null,{default:o(()=>[s(tl)]),_:1}),s(Ie,null,{default:o(()=>[s(al)]),_:1}),i("div",Zl,L(l.item_name),1),s(b,{modelValue:a(te)[r],"onUpdate:modelValue":f=>a(te)[r]=f,placeholder:"时间,0为永久互斥",style:{width:"150px"}},null,8,["modelValue","onUpdate:modelValue"]),s(_,{type:"danger",style:{"margin-left":"8px"},onClick:f=>re(a(z).code,l.item_code,a(te)[r])},{default:o(()=>[...e[77]||(e[77]=[m("添加",-1)])]),_:1},8,["onClick"])]))),128))])),[[se,a(R)]])]),_:1},8,["modelValue","title"]),oe((d(),h(K,{modelValue:a(T),"onUpdate:modelValue":e[38]||(e[38]=l=>C(T)?T.value=l:T=l),title:"时段规则 - "+a(me).item_name,width:"700px"},{footer:o(()=>[s(_,{onClick:e[37]||(e[37]=l=>C(T)?T.value=!1:T=!1)},{default:o(()=>[...e[87]||(e[87]=[m("取消",-1)])]),_:1}),s(_,{type:"primary",onClick:Ke},{default:o(()=>[...e[88]||(e[88]=[m("保存",-1)])]),_:1})]),default:o(()=>[i("div",et,[s(_,{type:"primary",size:"small",onClick:qe},{default:o(()=>[...e[79]||(e[79]=[m("添加规则",-1)])]),_:1}),e[80]||(e[80]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"无规则表示不限制预约时段",-1))]),(d(!0),y(I,null,D(a(N),(l,r)=>(d(),y("div",{key:r,style:{border:"1px solid #ddd","border-radius":"4px",padding:"12px","margin-bottom":"10px"}},[i("div",lt,[i("span",tt,"规则 "+L(r+1),1),s(_,{type:"danger",size:"small",onClick:f=>Je(r)},{default:o(()=>[...e[81]||(e[81]=[m("删除",-1)])]),_:1},8,["onClick"])]),i("div",at,[e[82]||(e[82]=i("span",{style:{width:"80px","font-weight":"500"}},"允许星期",-1)),s(pe,{modelValue:l.days,"onUpdate:modelValue":f=>l.days=f},{default:o(()=>[(d(),y(I,null,D(Ye,f=>s(ae,{key:f,label:f,value:f},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"])]),i("div",st,[e[83]||(e[83]=i("span",{style:{width:"80px","font-weight":"500"}},"排班资源",-1)),s(v,{modelValue:l.resources_id,"onUpdate:modelValue":f=>l.resources_id=f,placeholder:"不限(规则跳过)",clearable:"",style:{width:"300px"}},{default:o(()=>[(d(!0),y(I,null,D(a(we),f=>(d(),h(g,{key:f.id,label:f.department_resources_name+(f.department_name?"("+f.department_name+")":""),value:f.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue"]),e[84]||(e[84]=i("span",{style:{"margin-left":"8px",color:"#999","font-size":"12px"}},"为空时规则跳过,不生效",-1))]),i("div",ot,[e[85]||(e[85]=i("span",{style:{width:"80px","font-weight":"500"}},"允许时段",-1)),s(De,{modelValue:l.start_time,"onUpdate:modelValue":f=>l.start_time=f,"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[86]||(e[86]=i("span",{style:{margin:"0 8px"}},"~",-1)),s(De,{modelValue:l.end_time,"onUpdate:modelValue":f=>l.end_time=f,"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)),a(N).length===0?(d(),y("div",it," 暂未设置时段限制 ")):G("",!0)]),_:1},8,["modelValue","title"])),[[se,a(ee)]]),s(K,{modelValue:a(E),"onUpdate:modelValue":e[41]||(e[41]=l=>C(E)?E.value=l:E=l),title:a(Ce),width:"40%"},{footer:o(()=>[s(_,{onClick:e[40]||(e[40]=l=>C(E)?E.value=!1:E=!1)},{default:o(()=>[...e[89]||(e[89]=[m("取消",-1)])]),_:1}),s(_,{type:"primary",onClick:He},{default:o(()=>[...e[90]||(e[90]=[m("确定",-1)])]),_:1})]),default:o(()=>[s(b,{modelValue:a(j),"onUpdate:modelValue":e[39]||(e[39]=l=>C(j)?j.value=l:j=l),type:"textarea",placeholder:"请输入内容",style:{width:"100%"},rows:8},null,8,["modelValue"])]),_:1},8,["modelValue","title"])])),[[se,a(F)]])}}},rt=sl(nt,[["__scopeId","data-v-c0e214d3"]]);export{rt as default}; diff --git a/Laravel/public/admin/assets/DeptResourceConfig-9b50ddf5.js b/Laravel/public/admin/assets/DeptResourceConfig-3e0db999.js similarity index 97% rename from Laravel/public/admin/assets/DeptResourceConfig-9b50ddf5.js rename to Laravel/public/admin/assets/DeptResourceConfig-3e0db999.js index b72a8b9..cbc267c 100644 --- a/Laravel/public/admin/assets/DeptResourceConfig-9b50ddf5.js +++ b/Laravel/public/admin/assets/DeptResourceConfig-3e0db999.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-b8bae120.js";import{_ as ae}from"./DepartmentResourcesSave-aa6681b0.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-612fedfe.js";import{_ as ae}from"./DepartmentResourcesSave-4f972dd5.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/DeviceCheckItemBind-152c18a0.js b/Laravel/public/admin/assets/DeviceCheckItemBind-f8d136ab.js similarity index 98% rename from Laravel/public/admin/assets/DeviceCheckItemBind-152c18a0.js rename to Laravel/public/admin/assets/DeviceCheckItemBind-f8d136ab.js index 4c49b50..d4be802 100644 --- a/Laravel/public/admin/assets/DeviceCheckItemBind-152c18a0.js +++ b/Laravel/public/admin/assets/DeviceCheckItemBind-f8d136ab.js @@ -1 +1 @@ -import{_ as ee,Y 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,Z as oe,q as C,aM as de,aN as ue,N as ce,aO as re}from"./index-b8bae120.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),q=()=>{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})},K=()=>{k.value=!0,p.value="",o.value=1,f()},O=()=>{T&&clearTimeout(T),T=setTimeout(()=>{o.value=1,f()},300)},Y=()=>{o.value=1,f()},Z=()=>{f()},$=t=>{o.value=t,f()},A=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})},H=()=>{p.value="",g.value=[],B.value=0,o.value=1},J=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(()=>{q()}),(t,e)=>{const v=h("el-button"),u=h("el-table-column"),M=h("el-table"),Q=h("el-input"),W=h("el-pagination"),X=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:K},{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=>J(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(X,{modelValue:l(k),"onUpdate:modelValue":e[3]||(e[3]=a=>V(k)?k.value=a:k=a),title:"添加检查项目绑定",width:"60%",onClosed:H},{default:c(()=>[i("div",null,[i("div",we,[n(Q,{modelValue:l(p),"onUpdate:modelValue":e[0]||(e[0]=a=>V(p)?p.value=a:p=a),placeholder:"输入项目编号/名称搜索",clearable:"",style:{flex:"1"},onInput:O},null,8,["modelValue"]),n(v,{type:"primary",onClick:Y},{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=>A(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(W,{"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:$},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,Y 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,Z as oe,q as C,aM as de,aN as ue,N as ce,aO as re}from"./index-612fedfe.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),q=()=>{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})},K=()=>{k.value=!0,p.value="",o.value=1,f()},O=()=>{T&&clearTimeout(T),T=setTimeout(()=>{o.value=1,f()},300)},Y=()=>{o.value=1,f()},Z=()=>{f()},$=t=>{o.value=t,f()},A=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})},H=()=>{p.value="",g.value=[],B.value=0,o.value=1},J=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(()=>{q()}),(t,e)=>{const v=h("el-button"),u=h("el-table-column"),M=h("el-table"),Q=h("el-input"),W=h("el-pagination"),X=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:K},{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=>J(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(X,{modelValue:l(k),"onUpdate:modelValue":e[3]||(e[3]=a=>V(k)?k.value=a:k=a),title:"添加检查项目绑定",width:"60%",onClosed:H},{default:c(()=>[i("div",null,[i("div",we,[n(Q,{modelValue:l(p),"onUpdate:modelValue":e[0]||(e[0]=a=>V(p)?p.value=a:p=a),placeholder:"输入项目编号/名称搜索",clearable:"",style:{flex:"1"},onInput:O},null,8,["modelValue"]),n(v,{type:"primary",onClick:Y},{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=>A(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(W,{"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:$},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/DevicesConfig-cd316c87.js b/Laravel/public/admin/assets/DevicesConfig-d233ee9c.js similarity index 98% rename from Laravel/public/admin/assets/DevicesConfig-cd316c87.js rename to Laravel/public/admin/assets/DevicesConfig-d233ee9c.js index ac14334..e179868 100644 --- a/Laravel/public/admin/assets/DevicesConfig-cd316c87.js +++ b/Laravel/public/admin/assets/DevicesConfig-d233ee9c.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-b8bae120.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-612fedfe.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/DoctorYuYue-baec47d9.js b/Laravel/public/admin/assets/DoctorYuYue-11b61b07.js similarity index 73% rename from Laravel/public/admin/assets/DoctorYuYue-baec47d9.js rename to Laravel/public/admin/assets/DoctorYuYue-11b61b07.js index f29309d..963e14f 100644 --- a/Laravel/public/admin/assets/DoctorYuYue-baec47d9.js +++ b/Laravel/public/admin/assets/DoctorYuYue-11b61b07.js @@ -1 +1 @@ -import{Y as a}from"./YuYue202506-5be4eb25.js";import{_ as d,u as p,a as c,d as l,e as i,f as m,i as e,g as t}from"./index-b8bae120.js";const y={class:"DoctorYuYue"},Y={__name:"DoctorYuYue",setup(f){const o=p();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(a,{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"])]))}},x=d(Y,[["__scopeId","data-v-180477f8"]]);export{x as default}; +import{Y as a}from"./YuYue202506-e5e6b7e2.js";import{_ as d,u as p,a as c,d as l,e as i,f as m,i as e,g as t}from"./index-612fedfe.js";const y={class:"DoctorYuYue"},Y={__name:"DoctorYuYue",setup(f){const o=p();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(a,{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"])]))}},x=d(Y,[["__scopeId","data-v-180477f8"]]);export{x as default}; diff --git a/Laravel/public/admin/assets/EntrustList-631c3476.js b/Laravel/public/admin/assets/EntrustList-dbab71a1.js similarity index 99% rename from Laravel/public/admin/assets/EntrustList-631c3476.js rename to Laravel/public/admin/assets/EntrustList-dbab71a1.js index c8511f0..6e29e7f 100644 --- a/Laravel/public/admin/assets/EntrustList-631c3476.js +++ b/Laravel/public/admin/assets/EntrustList-dbab71a1.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,W as pe,F as z,t as G,q as f,x as d,v as h,bx as me,P as _e,O as fe}from"./index-b8bae120.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)})},W=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 X=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:W,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=>X(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,W as pe,F as z,t as G,q as f,x as d,v as h,bx as me,P as _e,O as fe}from"./index-612fedfe.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)})},W=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 X=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:W,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=>X(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-e984d71c.js b/Laravel/public/admin/assets/HisLogin-45100a3a.js similarity index 96% rename from Laravel/public/admin/assets/HisLogin-e984d71c.js rename to Laravel/public/admin/assets/HisLogin-45100a3a.js index 185bcf2..e19a585 100644 --- a/Laravel/public/admin/assets/HisLogin-e984d71c.js +++ b/Laravel/public/admin/assets/HisLogin-45100a3a.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-b8bae120.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-612fedfe.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-1ac9dc59.js b/Laravel/public/admin/assets/HolidayMngr-938c8a14.js similarity index 98% rename from Laravel/public/admin/assets/HolidayMngr-1ac9dc59.js rename to Laravel/public/admin/assets/HolidayMngr-938c8a14.js index 7c5f9f3..3e53763 100644 --- a/Laravel/public/admin/assets/HolidayMngr-1ac9dc59.js +++ b/Laravel/public/admin/assets/HolidayMngr-938c8a14.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,bp as W,E as k,q as r,x as H,N as X,bq as Z,br as h}from"./index-b8bae120.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)})})},q=()=>{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:j=>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:j=>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:q},{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,bp as W,E as k,q as r,x as H,N as X,bq as Z,br as h}from"./index-612fedfe.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)})})},q=()=>{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:j=>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:j=>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:q},{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-6873bcb9.js b/Laravel/public/admin/assets/InpatientWardConfig-f8a03f04.js similarity index 98% rename from Laravel/public/admin/assets/InpatientWardConfig-6873bcb9.js rename to Laravel/public/admin/assets/InpatientWardConfig-f8a03f04.js index 06bc1d3..ddca3f1 100644 --- a/Laravel/public/admin/assets/InpatientWardConfig-6873bcb9.js +++ b/Laravel/public/admin/assets/InpatientWardConfig-f8a03f04.js @@ -1 +1 @@ -import{_ as te,Y 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,bt 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,bu as me,bv as fe}from"./index-b8bae120.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=""},Y=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"),Z=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=>Y(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(Z,{"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,Y 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,bt 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,bu as me,bv as fe}from"./index-612fedfe.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=""},Y=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"),Z=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=>Y(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(Z,{"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-1038223c.css b/Laravel/public/admin/assets/MainList-1038223c.css new file mode 100644 index 0000000..11ca8ce --- /dev/null +++ b/Laravel/public/admin/assets/MainList-1038223c.css @@ -0,0 +1 @@ +.iframe{border:0px;width:100%;height:100%;margin-top:-20px}.iframeDialog{margin-top:40px;height:90%;width:90%;overflow:auto}.el-table__header-wrapper .el-checkbox[aria-label=选择所有行]{display:none}.batch-print-table .el-checkbox[aria-label=选择所有行]{display:inline-flex}.el-dialog.is-fullscreen{display:flex;flex-direction:column}.el-dialog.is-fullscreen .el-dialog__body{flex:1;overflow:hidden;display:flex;flex-direction:column}.dialogitem[data-v-f28143eb]{cursor:pointer;display:flex;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc}.dialogitem[data-v-f28143eb]:hover{background-color:#008b8b;color:#fff} diff --git a/Laravel/public/admin/assets/MainList-32a84508.css b/Laravel/public/admin/assets/MainList-32a84508.css deleted file mode 100644 index 4a048be..0000000 --- a/Laravel/public/admin/assets/MainList-32a84508.css +++ /dev/null @@ -1 +0,0 @@ -.iframe{border:0px;width:100%;height:100%;margin-top:-20px}.iframeDialog{margin-top:40px;height:90%;width:90%;overflow:auto}.el-table__header-wrapper .el-checkbox[aria-label=选择所有行]{display:none}.el-dialog.is-fullscreen{display:flex;flex-direction:column}.el-dialog.is-fullscreen .el-dialog__body{flex:1;overflow:hidden;display:flex;flex-direction:column}.dialogitem[data-v-ee334775]{cursor:pointer;display:flex;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc}.dialogitem[data-v-ee334775]:hover{background-color:#008b8b;color:#fff} diff --git a/Laravel/public/admin/assets/MainList-d9d9907a.js b/Laravel/public/admin/assets/MainList-d9d9907a.js new file mode 100644 index 0000000..7dc57a0 --- /dev/null +++ b/Laravel/public/admin/assets/MainList-d9d9907a.js @@ -0,0 +1 @@ +import{_ as Ne,z as Oe,u as qe,o as Fe,A as $e,r as S,c as ve,h as ye,i as s,d as o,e as p,f as l,w as n,l as U,k as y,j as k,g as f,B as Je,E as c,D as He,I as Ae,J as Ke,x as d,F as z,t as P,q as m,K as We,v as b,M as Qe,N as ce,O as Xe,P as Ze,Q as et,R as tt,T as lt,V as at}from"./index-612fedfe.js";import{Y as nt}from"./YuYue202506-e5e6b7e2.js";const st=["src"],ot={class:"head"},ut={key:0},rt={key:0},it={key:0},dt={key:1},pt={key:0},_t={key:1},ft={key:0},mt={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"],kt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},xt={style:{"margin-left":"8px",width:"200px"}},Vt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},Ct={style:{"margin-top":"-30px"}},St={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},Lt={key:0},Ut={key:0},It={key:0},Dt={key:1},Et={key:0},Rt={key:1},Tt={key:0},Mt={key:0},Yt={key:1},Bt={key:2},zt={key:3},Pt={__name:"MainList",setup(jt){let ae=Oe();const we=qe();let j=f(!1),W=f(0),Q=f(0),w=f(!1),ne=f(""),g=f({dateType:"reservation_date",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),G=f(""),E=f([]),X=f(null),T=f(1),M=f(15),se=0,q=f([]);const be=((a,e)=>{let i=null;return function(...u){clearTimeout(i),i=setTimeout(()=>a.apply(this,u),e)}})(a=>{if(!a){q.value=[];return}at({keyword:a}).then(e=>{e.status?q.value=e.data.list:q.value=[]})},300),D=()=>{w.value=!0,Qe({searchInfo:g.value,page:T.value,pageSize:M.value}).then(a=>{w.value=!1,a.status?(E.value=a.data.list,se=a.data.count):c.error(a.msg)})},he=a=>{M.value=a,D()},ke=a=>{T.value=a,D()};let _=f([]);const xe=a=>{if(a.length>1){const i=a[0].list_status;a.every(v=>v.list_status===i)||(Y(),a=[a[a.length-1]])}a[a.length-1].list_status!=0&&(Y(),a=[a[a.length-1]]);let e=_.value?_.value.length:0;F(a),e>_.value.length||Ve()},Y=()=>{X.value.clearSelection(),_.value=[]},F=a=>{a?(a.forEach(e=>{e!=null&&X.value.toggleRowSelection(e,!0)}),_.value=a):Y()};let B=f(!1),Z=f(null);const Ve=()=>{console.log(_.value),_.value.reverse();let a="",e=!1;if(_.value.forEach((u,v)=>{a==""&&(a=u.reg_num),a!=""&&a!=u.reg_num&&(e=!0)}),e===!0){let u=_.value[0];Y(),F([u])}console.log(_.value);let i=[];if(_.value[0].list_status!=0)return!1;E.value.forEach((u,v)=>{u.list_status==0&&u.reg_num==_.value[0].reg_num&&u.episodeid==_.value[0].episodeid&&(u.id==_.value[0].id?i.push({name:u.entrust,rowid:v,first:1}):i.push({name:u.entrust,rowid:v,first:0}))}),i.length>=2&&(w.value=!0,Je({items:i}).then(u=>{if(w.value=!1,u.status){let v=u.data.group;if(v.length>1e9)B.value=!0,Z.value=v;else{Y();let h=[];v[0].forEach((A,K)=>{h.push(E.value[A.rowid])}),F(h)}}else c.error(u.msg)}))},Ce=a=>{Y();let e=[];a.forEach((i,u)=>{e.push(E.value[i.rowid])}),F(e),B.value=!1};let ee=f(""),Se="https://yj.dev.cjy.net.cn/",$=f(!1);const oe=a=>{console.log(_.value);let e=[];if(Q.value=a,console.log(_.value),_.value.length===0)return c.error("请勾选1条记录"),!1;let i=!0;if(_.value.forEach((u,v)=>{a==1&&u.list_status!=0&&(c.error(u.entrust+" 不可进行预约操作"),i=!1),a==2&&u.list_status!=1&&(c.error(u.entrust+" 不可进行改约操作"),i=!1),e.push(u.entrust_id)}),i==!1)return!1;W.value++,ne.value=e.join(","),j.value=!0,ee.value=Se+"/jq_page/appointment.html?regnum="+encodeURIComponent(_.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(_.value[0].episodeid)+"&dotype="+Q.value+"&appointment_type=4",console.log(ee.value)},Le=()=>{He(()=>{const a=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;a.style.height=e-105+"px"})},Ue=()=>{if(_.value.length===0)return c.error("请勾选1条记录"),!1;let a=!0;if(_.value.forEach(i=>{i.list_status!=1&&(c.error(`${i.entrus} 无需取消`),a=!1)}),!a)return!1;w.value=!0;const e=i=>{tt({MainListId:_.value[0].id,reg_num:_.value[0].reg_num,do_user:x.value.id,password:i}).then(u=>{w.value=!1,u.status?(c({message:u.msg,type:"success"}),D()):c.error(u.msg)}).catch(u=>{w.value=!1,console.error(u)})};G.value==="SysLogin"?ce.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:i})=>{e(i)}).catch(()=>{w.value=!1}):G.value==="HisLogin"||G.value==="CasLogin"?ce.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{w.value=!1}):(w.value=!1,c.error("未知的操作类型配置"))};let Ie=f([]);const De=()=>{w.value=!0,Ae().then(a=>{w.value=!1,a.status?Ie.value=a.data:c.error(a.msg)})};let ue=f([]);const Ee=()=>{w.value=!0,Xe().then(a=>{w.value=!1,a.status&&(ue.value=a.data)})},re=()=>{Ke().then(a=>{if(a.status){let e=a.data.datetime.substr(0,10);g.value.dateRange=[e,e],D()}})};let N=f(!1),ie=f(null),O=f(!1);const Re=a=>{N.value=!0,Ze({id:a.id}).then(e=>{e.status&&(ie.value=e.data)})};let de=f("");const Te=a=>{O.value=!0,de.value=a};let x=f(null);const Me=()=>{if(_.value.length!==1){c.error("请选择1项进行打印");return}const a=_.value[0];if(a.list_status!=1){c.error(a.entrust+" 不可打印,请重新选择");return}const i="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+a.entrust_id);fetch(i).then(u=>u.blob()).then(u=>{const v=URL.createObjectURL(u),h=document.createElement("iframe");h.style.display="none",h.src=v,h.onload=()=>{h.contentWindow.print(),URL.revokeObjectURL(v)},document.body.appendChild(h)})};let I=f(!1),te=f([]),Ye=f(null);const Be=()=>{if(E.value.filter(e=>e.list_status===1).length===0){c.info("当前列表中没有可打印的已预约项目");return}I.value=!0},ze=a=>{te.value=a},Pe=()=>{if(te.value.length===0){c.error("请选择至少1项进行打印");return}const e="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=group&"+te.value.map(i=>"OrderNoList[]="+i.entrust_id).join("&");fetch(e).then(i=>i.blob()).then(i=>{const u=URL.createObjectURL(i),v=document.createElement("iframe");v.style.display="none",v.src=u,v.onload=()=>{v.contentWindow.print(),URL.revokeObjectURL(u)},document.body.appendChild(v),I.value=!1})},pe=()=>{D()};let R=f(!1),J=f([]),H=f([]);const je=()=>{if(_.value.length===0)return c.error("请勾选1条记录"),!1;let a=[];_.value.forEach((e,i)=>{a.push(e.id)}),w.value=!0,et({MainListIds:a}).then(e=>{w.value=!1,e.status?(e.data.success.length==a.length?(c({message:"签到成功",type:"success"}),R.value=!0,J.value=e.data.success,H.value=e.data.fail):(R.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):c.error(e.msg)})},Ot=()=>{if(_.value.length===0)return c.error("请勾选1条记录"),!1;let a=[];_.value.forEach((e,i)=>{a.push(e.id)}),w.value=!0,lt({MainListIds:a}).then(e=>{w.value=!1,e.status?(e.data.success.length==a.length?c({message:"取消成功",type:"success"}):(R.value=!0,J.value=e.data.success,H.value=e.data.fail),D()):c.error(e.msg)})},_e=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(x.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),x.value&&x.value.group!=2&&Ee(),x.value&&x.value.group==7||G.value==="HisLogin"){g.value.doctor=x.value.cn_name;let a=sessionStorage.getItem("default_reg_num");a&&a!="null"&&a!=""&&(g.value.reg_num=a)}we.query.type==="doctor"&&(g.value.dateType="both")};return Fe(()=>{if(G.value=sessionStorage.getItem("LoginType"),De(),ae.baseInfoStatus)_e(),re();else{const a=$e(()=>ae.baseInfoStatus,e=>{e&&(console.log(e),console.log("66666",x.value),_e(),re(),a())})}}),(a,e)=>{const i=S("el-dialog"),u=S("el-option"),v=S("el-select"),h=S("el-form-item"),A=S("el-date-picker"),K=S("el-input"),L=S("el-button"),fe=S("el-row"),r=S("el-table-column"),C=S("el-tag"),le=S("el-table"),Ge=S("el-pagination"),qt=ve("print"),me=ve("loading");return ye((o(),p("div",null,[l(i,{title:"预约列表",class:"iframeDialog",modelValue:s($),"onUpdate:modelValue":e[0]||(e[0]=t=>U($)?$.value=t:$=t),onOpened:Le,onClosed:e[1]||(e[1]=t=>pe())},{default:n(()=>[(o(),p("iframe",{id:"bdIframe",src:s(ee),class:"iframe",key:s(W),scrolling:"auto"},null,8,st))]),_:1},8,["modelValue"]),l(i,{modelValue:s(j),"onUpdate:modelValue":e[2]||(e[2]=t=>U(j)?j.value=t:j=t),fullscreen:"",onClose:e[3]||(e[3]=t=>pe())},{default:n(()=>[(o(),k(nt,{reg_num:s(_)[0].reg_num,entrust_ids:s(ne),key:s(W),episode_id:s(_)[0].episodeid,appointment_type:"4",dotype:s(Q),do_user:s(x).id,special_privileges:s(x).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),y("div",ot,[l(fe,null,{default:n(()=>[l(h,null,{default:n(()=>[l(v,{modelValue:s(g).dateType,"onUpdate:modelValue":e[4]||(e[4]=t=>s(g).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[l(u,{label:"预约日期",value:"reservation_date"}),l(u,{label:"医嘱日期",value:"entrust_date"}),l(u,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),l(h,null,{default:n(()=>[l(A,{style:{"margin-left":"8px",width:"150px"},modelValue:s(g).dateRange[0],"onUpdate:modelValue":e[5]||(e[5]=t=>s(g).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[30]||(e[30]=y("span",{style:{margin:"0 4px"}},"至",-1)),l(A,{style:{width:"150px"},modelValue:s(g).dateRange[1],"onUpdate:modelValue":e[6]||(e[6]=t=>s(g).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),l(h,null,{default:n(()=>[l(v,{filterable:!0,clearable:"",modelValue:s(g).list_status,"onUpdate:modelValue":e[7]||(e[7]=t=>s(g).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[l(u,{label:"申请中",value:"0"}),l(u,{label:"已预约",value:"1"}),l(u,{label:"已报道",value:"2"}),l(u,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),s(x)&&s(x).group!=2?(o(),k(h,{key:0},{default:n(()=>[l(v,{filterable:!0,clearable:"",modelValue:s(g).patient_type,"onUpdate:modelValue":e[8]||(e[8]=t=>s(g).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[l(u,{label:"住院",value:"0"}),l(u,{label:"门诊",value:"1"}),l(u,{label:"急诊",value:"2"}),l(u,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1})):d("",!0),s(x)&&s(x).group!=2?(o(),k(h,{key:1},{default:n(()=>[l(v,{multiple:"",filterable:!0,clearable:"",modelValue:s(g).resources,"onUpdate:modelValue":e[9]||(e[9]=t=>s(g).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:n(()=>[(o(!0),p(z,null,P(s(ue),(t,V)=>(o(),k(u,{key:V,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):d("",!0),l(h,null,{default:n(()=>[l(K,{modelValue:s(g).reg_num,"onUpdate:modelValue":e[10]||(e[10]=t=>s(g).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(h,null,{default:n(()=>[l(K,{modelValue:s(g).user_name,"onUpdate:modelValue":e[11]||(e[11]=t=>s(g).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),l(h,null,{default:n(()=>[l(v,{modelValue:s(g).apply_department,"onUpdate:modelValue":e[12]||(e[12]=t=>s(g).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":s(be)},{default:n(()=>[(o(!0),p(z,null,P(s(q),t=>(o(),k(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}),s(x)?(o(),k(h,{key:2},{default:n(()=>[l(K,{modelValue:s(g).doctor,"onUpdate:modelValue":e[13]||(e[13]=t=>s(g).doctor=t),disabled:s(x).group==7,placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue","disabled"])]),_:1})):d("",!0),l(h,null,{default:n(()=>[l(L,{type:"primary",onClick:e[14]||(e[14]=t=>D()),style:{"margin-left":"10px"}},{default:n(()=>[...e[31]||(e[31]=[m("查询",-1)])]),_:1})]),_:1})]),_:1}),l(fe,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:n(()=>[l(L,{type:"success",onClick:e[15]||(e[15]=We(t=>oe(1),["prevent"]))},{default:n(()=>[...e[32]||(e[32]=[m("预 约",-1)])]),_:1}),l(L,{type:"danger",onClick:e[16]||(e[16]=t=>Ue())},{default:n(()=>[...e[33]||(e[33]=[m("取消预约",-1)])]),_:1}),l(L,{type:"warning",onClick:e[17]||(e[17]=t=>oe(2))},{default:n(()=>[...e[34]||(e[34]=[m("更改预约时间",-1)])]),_:1}),l(L,{type:"primary",onClick:e[18]||(e[18]=t=>je()),style:{"margin-left":"40px"}},{default:n(()=>[...e[35]||(e[35]=[m("报到",-1)])]),_:1}),d("",!0),l(L,{onClick:e[20]||(e[20]=t=>Me())},{default:n(()=>[...e[37]||(e[37]=[m("打印申请单",-1)])]),_:1}),l(L,{onClick:e[21]||(e[21]=t=>Be())},{default:n(()=>[...e[38]||(e[38]=[m("批量打印申请单",-1)])]),_:1}),d("",!0)]),_:1})]),ye((o(),k(le,{data:s(E),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:X,onSelect:xe},{default:n(()=>[l(r,{type:"selection",width:"50"},{header:n(()=>[...e[40]||(e[40]=[y("span",null,null,-1)])]),_:1}),l(r,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(o(),k(C,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[41]||(e[41]=[m("申请中",-1)])]),_:1})):d("",!0),t.row.list_status===1?(o(),k(C,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[42]||(e[42]=[m("已预约",-1)])]),_:1})):d("",!0),t.row.list_status===2?(o(),k(C,{key:2,class:"ml-2"},{default:n(()=>[...e[43]||(e[43]=[m("登记",-1)])]),_:1})):d("",!0),t.row.list_status===3?(o(),k(C,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[44]||(e[44]=[m("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(o(),p("span",ut,b(t.row.reg_num),1)):d("",!0)]),_:1}),l(r,{label:"住院号",width:"120"},{default:n(t=>{var V;return[t.row.patient_type==0?(o(),p("span",rt,b((V=t.row.episodeid)==null?void 0:V.slice(-10)),1)):d("",!0)]}),_:1}),l(r,{prop:"user_name",label:"姓名"}),l(r,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(o(),p("span",it,"男")):d("",!0),t.row.user_sex==2?(o(),p("span",dt,"女")):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:n(t=>[t.row.is_pay==1?(o(),p("span",pt,"是")):d("",!0),t.row.is_pay==0?(o(),p("span",_t,"否")):d("",!0)]),_:1}),l(r,{prop:"reservation_date",label:"预约日期",width:"120"}),l(r,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(o(),p("span",ft,b(t.row.period_begin_time.substring(0,5))+"~"+b(t.row.period_end_time.substring(0,5)),1)):d("",!0)]),_:1}),l(r,{prop:"department_resources_name",label:"排班",width:"120"}),l(r,{prop:"reservation_department",label:"申请科室",width:"120"}),l(r,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[m(b(t.row.entrust_date)+" "+b(t.row.entrust_time),1)]),_:1}),l(r,{prop:"docotr",label:"申请医生",width:"80"}),l(r,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(o(),p("span",mt,"住院")):d("",!0),t.row.patient_type==1?(o(),p("span",gt,"门诊")):d("",!0),t.row.patient_type==2?(o(),p("span",vt,"急诊")):d("",!0),t.row.patient_type==3?(o(),p("span",yt,"体检")):d("",!0)]),_:1}),l(r,{prop:"user_phone",label:"电话",width:"120"}),l(r,{prop:"department_resources_name",label:"操作",width:"120"},{default:n(t=>[l(L,{onClick:V=>Re(t.row),size:"small"},{default:n(()=>[...e[45]||(e[45]=[m("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[me,s(w)]]),y("div",ct,[l(Ge,{"current-page":s(T),"onUpdate:currentPage":e[22]||(e[22]=t=>U(T)?T.value=t:T=t),"page-size":s(M),"onUpdate:pageSize":e[23]||(e[23]=t=>U(M)?M.value=t:M=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:s(se),onSizeChange:he,onCurrentChange:ke},null,8,["current-page","page-size","total"])]),l(i,{modelValue:s(N),"onUpdate:modelValue":e[24]||(e[24]=t=>U(N)?N.value=t:N=t),title:"变更记录",width:"50%"},{default:n(()=>[y("div",null,[l(le,{data:s(ie),style:{width:"100%"},"row-key":"id"},{default:n(()=>[l(r,{prop:"list_status",label:"状态",width:"100"},{default:n(t=>[t.row.new_status==0?(o(),k(C,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[46]||(e[46]=[m("申请中",-1)])]),_:1})):d("",!0),t.row.new_status==1?(o(),k(C,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[47]||(e[47]=[m("已预约",-1)])]),_:1})):d("",!0),t.row.new_status==2?(o(),k(C,{key:2,class:"ml-2"},{default:n(()=>[...e[48]||(e[48]=[m("登记",-1)])]),_:1})):d("",!0),t.row.new_status==3?(o(),k(C,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[49]||(e[49]=[m("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{prop:"reg_num",label:"登记号"}),l(r,{prop:"note",label:"说明"}),l(r,{prop:"create_user",label:"操作人/ID"}),l(r,{prop:"created_at",label:"记录时间"}),l(r,{prop:"data",label:"状态",width:"100"},{default:n(t=>[l(L,{onClick:V=>Te(t.row.data),size:"small"},{default:n(()=>[...e[50]||(e[50]=[m("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),l(i,{modelValue:s(O),"onUpdate:modelValue":e[25]||(e[25]=t=>U(O)?O.value=t:O=t),title:"查看dataJson",width:"40%"},{default:n(()=>[y("div",wt,b(s(de)),1)]),_:1},8,["modelValue"]),l(i,{modelValue:s(B),"onUpdate:modelValue":e[26]||(e[26]=t=>U(B)?B.value=t:B=t),title:"选择可一起预约的项目",width:"40%"},{default:n(()=>[s(Z).length>0?(o(),p("div",bt,[e[51]||(e[51]=y("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[y("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),y("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(o(!0),p(z,null,P(s(Z),(t,V)=>(o(),p("div",{key:V,class:"dialogitem",onClick:ge=>Ce(t)},[y("div",kt,[(o(!0),p(z,null,P(t,(ge,Ft)=>(o(),p("div",null,[y("span",xt,b(ge.item_name),1)]))),256))]),y("div",Vt,[y("div",null,b(t[0].device_name),1)])],8,ht))),128))])):d("",!0)]),_:1},8,["modelValue"]),l(i,{modelValue:s(R),"onUpdate:modelValue":e[27]||(e[27]=t=>U(R)?R.value=t:R=t),title:"提示",width:"40%"},{default:n(()=>[(o(!0),p(z,null,P(s(J),(t,V)=>(o(),p("div",{key:V,style:{"font-size":"16px"}},[y("table",Ct,[y("tr",null,[y("td",St,[m(b(t.entrus),1),l(C,{type:"success",size:"large"},{default:n(()=>[...e[52]||(e[52]=[m("预约成功",-1)])]),_:1})])]),y("tr",null,[e[53]||(e[53]=y("td",{style:{"font-weight":"700"}},"体检号:",-1)),y("td",null,b(t.signInData[0].checkNo),1)]),y("tr",null,[e[54]||(e[54]=y("td",{style:{"font-weight":"700"}},"排队号:",-1)),y("td",null,b(t.signInData[0].queueNo),1)]),y("tr",null,[e[55]||(e[55]=y("td",{style:{"font-weight":"700"}},"等待人数:",-1)),y("td",null,b(t.signInData[0].currentNum),1)])])]))),128)),(o(!0),p(z,null,P(s(H),(t,V)=>(o(),p("div",{key:V+200,style:{color:"crimson"}},b(t),1))),128))]),_:1},8,["modelValue"]),l(i,{modelValue:s(I),"onUpdate:modelValue":e[29]||(e[29]=t=>U(I)?I.value=t:I=t),title:"批量打印申请单",width:"95%"},{footer:n(()=>[l(L,{onClick:e[28]||(e[28]=t=>U(I)?I.value=!1:I=!1)},{default:n(()=>[...e[60]||(e[60]=[m("取消",-1)])]),_:1}),l(L,{type:"primary",onClick:Pe},{default:n(()=>[...e[61]||(e[61]=[m("确认打印",-1)])]),_:1})]),default:n(()=>[l(le,{data:s(E).filter(t=>t.list_status===1),ref_key:"batchPrintTableRef",ref:Ye,onSelectionChange:ze,"row-key":"id",class:"batch-print-table"},{default:n(()=>[l(r,{type:"selection",width:"50"}),l(r,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(o(),k(C,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[56]||(e[56]=[m("申请中",-1)])]),_:1})):d("",!0),t.row.list_status===1?(o(),k(C,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[57]||(e[57]=[m("已预约",-1)])]),_:1})):d("",!0),t.row.list_status===2?(o(),k(C,{key:2,class:"ml-2"},{default:n(()=>[...e[58]||(e[58]=[m("登记",-1)])]),_:1})):d("",!0),t.row.list_status===3?(o(),k(C,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[59]||(e[59]=[m("完成",-1)])]),_:1})):d("",!0)]),_:1}),l(r,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(o(),p("span",Lt,b(t.row.reg_num),1)):d("",!0)]),_:1}),l(r,{label:"住院号",width:"120"},{default:n(t=>{var V;return[t.row.patient_type==0?(o(),p("span",Ut,b((V=t.row.episodeid)==null?void 0:V.slice(-10)),1)):d("",!0)]}),_:1}),l(r,{prop:"user_name",label:"姓名"}),l(r,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(o(),p("span",It,"男")):d("",!0),t.row.user_sex==2?(o(),p("span",Dt,"女")):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:n(t=>[t.row.is_pay==1?(o(),p("span",Et,"是")):d("",!0),t.row.is_pay==0?(o(),p("span",Rt,"否")):d("",!0)]),_:1}),l(r,{prop:"reservation_date",label:"预约日期",width:"120"}),l(r,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(o(),p("span",Tt,b(t.row.period_begin_time.substring(0,5))+"~"+b(t.row.period_end_time.substring(0,5)),1)):d("",!0)]),_:1}),l(r,{prop:"department_resources_name",label:"排班",width:"120"}),l(r,{prop:"reservation_department",label:"申请科室",width:"120"}),l(r,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[m(b(t.row.entrust_date)+" "+b(t.row.entrust_time),1)]),_:1}),l(r,{prop:"docotr",label:"申请医生",width:"80"}),l(r,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(o(),p("span",Mt,"住院")):d("",!0),t.row.patient_type==1?(o(),p("span",Yt,"门诊")):d("",!0),t.row.patient_type==2?(o(),p("span",Bt,"急诊")):d("",!0),t.row.patient_type==3?(o(),p("span",zt,"体检")):d("",!0)]),_:1}),l(r,{prop:"user_phone",label:"电话",width:"120"})]),_:1},8,["data"])]),_:1},8,["modelValue"])])),[[me,s(w)]])}}},Ht=Ne(Pt,[["__scopeId","data-v-f28143eb"]]);export{Ht as default}; diff --git a/Laravel/public/admin/assets/MainList-e33ccac6.js b/Laravel/public/admin/assets/MainList-e33ccac6.js deleted file mode 100644 index b85a7d2..0000000 --- a/Laravel/public/admin/assets/MainList-e33ccac6.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as Ye,z as ze,u as Be,o as Ge,A as Ne,r as C,c as _e,h as ge,i as n,d as u,e as g,f as a,w as s,l as D,k as f,j as x,g as d,B as je,E as w,D as Pe,I as qe,J as Fe,x as m,F as Y,t as z,q as b,K as Oe,v as k,M as Je,N as ve,O as $e,P as He,Q as Ae,R as Ke,T as Qe,V as We}from"./index-b8bae120.js";import{Y as Xe}from"./YuYue202506-5be4eb25.js";const Ze=["src"],et={class:"head"},tt={key:0},lt={key:0},at={key:0},nt={key:1},st={key:0},ot={key:1},ut={key:0},rt={key:0},it={key:1},dt={key:2},pt={key:3},ft={class:"page"},mt={style:{"word-break":"break-all"}},_t={key:0},gt=["onClick"],vt={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},ct={style:{"margin-left":"8px",width:"200px"}},yt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},wt={style:{"margin-top":"-30px"}},bt={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},ht={__name:"MainList",setup(xt){let ee=ze();const ce=Be();let B=d(!1),K=d(0),Q=d(0),v=d(!1),te=d(""),p=d({dateType:"reservation_date",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),G=d(""),N=d([]),W=d(null),E=d(1),T=d(15),le=0,q=d([]);const ye=((l,e)=>{let r=null;return function(...o){clearTimeout(r),r=setTimeout(()=>l.apply(this,o),e)}})(l=>{if(!l){q.value=[];return}We({keyword:l}).then(e=>{e.status?q.value=e.data.list:q.value=[]})},300),I=()=>{v.value=!0,Je({searchInfo:p.value,page:E.value,pageSize:T.value}).then(l=>{v.value=!1,l.status?(N.value=l.data.list,le=l.data.count):w.error(l.msg)})},we=l=>{T.value=l,I()},be=l=>{E.value=l,I()};let i=d([]);const he=l=>{if(l.length>1){const r=l[0].list_status;l.every(c=>c.list_status===r)||(R(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(R(),l=[l[l.length-1]]);let e=i.value?i.value.length:0;F(l),e>i.value.length||xe()},R=()=>{W.value.clearSelection(),i.value=[]},F=l=>{l?(l.forEach(e=>{e!=null&&W.value.toggleRowSelection(e,!0)}),i.value=l):R()};let M=d(!1),X=d(null);const xe=()=>{console.log(i.value),i.value.reverse();let l="",e=!1;if(i.value.forEach((o,c)=>{l==""&&(l=o.reg_num),l!=""&&l!=o.reg_num&&(e=!0)}),e===!0){let o=i.value[0];R(),F([o])}console.log(i.value);let r=[];if(i.value[0].list_status!=0)return!1;N.value.forEach((o,c)=>{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:c,first:1}):r.push({name:o.entrust,rowid:c,first:0}))}),r.length>=2&&(v.value=!0,je({items:r}).then(o=>{if(v.value=!1,o.status){let c=o.data.group;if(c.length>1e9)M.value=!0,X.value=c;else{R();let y=[];c[0].forEach((H,A)=>{y.push(N.value[H.rowid])}),F(y)}}else w.error(o.msg)}))},ke=l=>{R();let e=[];l.forEach((r,o)=>{e.push(N.value[r.rowid])}),F(e),M.value=!1};let Z=d(""),Ve="https://yj.dev.cjy.net.cn/",O=d(!1);const ae=l=>{console.log(i.value);let e=[];if(Q.value=l,console.log(i.value),i.value.length===0)return w.error("请勾选1条记录"),!1;let r=!0;if(i.value.forEach((o,c)=>{l==1&&o.list_status!=0&&(w.error(o.entrust+" 不可进行预约操作"),r=!1),l==2&&o.list_status!=1&&(w.error(o.entrust+" 不可进行改约操作"),r=!1),e.push(o.entrust_id)}),r==!1)return!1;K.value++,te.value=e.join(","),B.value=!0,Z.value=Ve+"/jq_page/appointment.html?regnum="+encodeURIComponent(i.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(i.value[0].episodeid)+"&dotype="+Q.value+"&appointment_type=4",console.log(Z.value)},Ce=()=>{Pe(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Se=()=>{if(i.value.length===0)return w.error("请勾选1条记录"),!1;let l=!0;if(i.value.forEach(r=>{r.list_status!=1&&(w.error(`${r.entrus} 无需取消`),l=!1)}),!l)return!1;v.value=!0;const e=r=>{Ke({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:h.value.id,password:r}).then(o=>{v.value=!1,o.status?(w({message:o.msg,type:"success"}),I()):w.error(o.msg)}).catch(o=>{v.value=!1,console.error(o)})};G.value==="SysLogin"?ve.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:r})=>{e(r)}).catch(()=>{v.value=!1}):G.value==="HisLogin"||G.value==="CasLogin"?ve.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{v.value=!1}):(v.value=!1,w.error("未知的操作类型配置"))};let Ie=d([]);const Le=()=>{v.value=!0,qe().then(l=>{v.value=!1,l.status?Ie.value=l.data:w.error(l.msg)})};let ne=d([]);const De=()=>{v.value=!0,$e().then(l=>{v.value=!1,l.status&&(ne.value=l.data)})},se=()=>{Fe().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);p.value.dateRange=[e,e],I()}})};let j=d(!1),oe=d(null),P=d(!1);const Ue=l=>{j.value=!0,He({id:l.id}).then(e=>{e.status&&(oe.value=e.data)})};let ue=d("");const Ee=l=>{P.value=!0,ue.value=l};let h=d(null);const Te=()=>{if(i.value.length!==1){w.error("请选择1项进行打印");return}const l=i.value[0];if(l.list_status!=1){w.error(l.entrust+" 不可打印,请重新选择");return}const r="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+l.entrust_id);fetch(r).then(o=>o.blob()).then(o=>{const c=URL.createObjectURL(o),y=document.createElement("iframe");y.style.display="none",y.src=c,y.onload=()=>{y.contentWindow.print(),URL.revokeObjectURL(c)},document.body.appendChild(y)})},re=()=>{I()};let U=d(!1),J=d([]),$=d([]);const Re=()=>{if(i.value.length===0)return w.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,Ae({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?(w({message:"签到成功",type:"success"}),U.value=!0,J.value=e.data.success,$.value=e.data.fail):(U.value=!0,J.value=e.data.success,$.value=e.data.fail),I()):w.error(e.msg)})},Ct=()=>{if(i.value.length===0)return w.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),v.value=!0,Qe({MainListIds:l}).then(e=>{v.value=!1,e.status?(e.data.success.length==l.length?w({message:"取消成功",type:"success"}):(U.value=!0,J.value=e.data.success,$.value=e.data.fail),I()):w.error(e.msg)})},ie=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(h.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),h.value&&h.value.group!=2&&De(),h.value&&h.value.group==7||G.value==="HisLogin"){p.value.doctor=h.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(p.value.reg_num=l)}ce.query.type==="doctor"&&(p.value.dateType="both")};return Ge(()=>{if(G.value=sessionStorage.getItem("LoginType"),Le(),ee.baseInfoStatus)ie(),se();else{const l=Ne(()=>ee.baseInfoStatus,e=>{e&&(console.log(e),console.log("66666",h.value),ie(),se(),l())})}}),(l,e)=>{const r=C("el-dialog"),o=C("el-option"),c=C("el-select"),y=C("el-form-item"),H=C("el-date-picker"),A=C("el-input"),L=C("el-button"),de=C("el-row"),_=C("el-table-column"),S=C("el-tag"),pe=C("el-table"),Me=C("el-pagination"),St=_e("print"),fe=_e("loading");return ge((u(),g("div",null,[a(r,{title:"预约列表",class:"iframeDialog",modelValue:n(O),"onUpdate:modelValue":e[0]||(e[0]=t=>D(O)?O.value=t:O=t),onOpened:Ce,onClosed:e[1]||(e[1]=t=>re())},{default:s(()=>[(u(),g("iframe",{id:"bdIframe",src:n(Z),class:"iframe",key:n(K),scrolling:"auto"},null,8,Ze))]),_:1},8,["modelValue"]),a(r,{modelValue:n(B),"onUpdate:modelValue":e[2]||(e[2]=t=>D(B)?B.value=t:B=t),fullscreen:"",onClose:e[3]||(e[3]=t=>re())},{default:s(()=>[(u(),x(Xe,{reg_num:n(i)[0].reg_num,entrust_ids:n(te),key:n(K),episode_id:n(i)[0].episodeid,appointment_type:"4",dotype:n(Q),do_user:n(h).id,special_privileges:n(h).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),f("div",et,[a(de,null,{default:s(()=>[a(y,null,{default:s(()=>[a(c,{modelValue:n(p).dateType,"onUpdate:modelValue":e[4]||(e[4]=t=>n(p).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(y,null,{default:s(()=>[a(H,{style:{"margin-left":"8px",width:"150px"},modelValue:n(p).dateRange[0],"onUpdate:modelValue":e[5]||(e[5]=t=>n(p).dateRange[0]=t),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=f("span",{style:{margin:"0 4px"}},"至",-1)),a(H,{style:{width:"150px"},modelValue:n(p).dateRange[1],"onUpdate:modelValue":e[6]||(e[6]=t=>n(p).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(y,null,{default:s(()=>[a(c,{filterable:!0,clearable:"",modelValue:n(p).list_status,"onUpdate:modelValue":e[7]||(e[7]=t=>n(p).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(h)&&n(h).group!=2?(u(),x(y,{key:0},{default:s(()=>[a(c,{filterable:!0,clearable:"",modelValue:n(p).patient_type,"onUpdate:modelValue":e[8]||(e[8]=t=>n(p).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})):m("",!0),n(h)&&n(h).group!=2?(u(),x(y,{key:1},{default:s(()=>[a(c,{multiple:"",filterable:!0,clearable:"",modelValue:n(p).resources,"onUpdate:modelValue":e[9]||(e[9]=t=>n(p).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:s(()=>[(u(!0),g(Y,null,z(n(ne),(t,V)=>(u(),x(o,{key:V,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):m("",!0),a(y,null,{default:s(()=>[a(A,{modelValue:n(p).reg_num,"onUpdate:modelValue":e[10]||(e[10]=t=>n(p).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:s(()=>[a(A,{modelValue:n(p).user_name,"onUpdate:modelValue":e[11]||(e[11]=t=>n(p).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:s(()=>[a(c,{modelValue:n(p).apply_department,"onUpdate:modelValue":e[12]||(e[12]=t=>n(p).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":n(ye)},{default:s(()=>[(u(!0),g(Y,null,z(n(q),t=>(u(),x(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(h)?(u(),x(y,{key:2},{default:s(()=>[a(A,{modelValue:n(p).doctor,"onUpdate:modelValue":e[13]||(e[13]=t=>n(p).doctor=t),disabled:n(h).group==7,placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue","disabled"])]),_:1})):m("",!0),a(y,null,{default:s(()=>[a(L,{type:"primary",onClick:e[14]||(e[14]=t=>I()),style:{"margin-left":"10px"}},{default:s(()=>[...e[28]||(e[28]=[b("查询",-1)])]),_:1})]),_:1})]),_:1}),a(de,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:s(()=>[a(L,{type:"success",onClick:e[15]||(e[15]=Oe(t=>ae(1),["prevent"]))},{default:s(()=>[...e[29]||(e[29]=[b("预 约",-1)])]),_:1}),a(L,{type:"danger",onClick:e[16]||(e[16]=t=>Se())},{default:s(()=>[...e[30]||(e[30]=[b("取消预约",-1)])]),_:1}),a(L,{type:"warning",onClick:e[17]||(e[17]=t=>ae(2))},{default:s(()=>[...e[31]||(e[31]=[b("更改预约时间",-1)])]),_:1}),a(L,{type:"primary",onClick:e[18]||(e[18]=t=>Re()),style:{"margin-left":"40px"}},{default:s(()=>[...e[32]||(e[32]=[b("报到",-1)])]),_:1}),m("",!0),a(L,{onClick:e[20]||(e[20]=t=>Te())},{default:s(()=>[...e[34]||(e[34]=[b("打印申请单",-1)])]),_:1}),m("",!0)]),_:1})]),ge((u(),x(pe,{data:n(N),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:W,onSelect:he},{default:s(()=>[a(_,{type:"selection",width:"50"},{header:s(()=>[...e[36]||(e[36]=[f("span",null,null,-1)])]),_:1}),a(_,{prop:"list_status",label:"状态",width:"80"},{default:s(t=>[t.row.list_status===0?(u(),x(S,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[37]||(e[37]=[b("申请中",-1)])]),_:1})):m("",!0),t.row.list_status===1?(u(),x(S,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[38]||(e[38]=[b("已预约",-1)])]),_:1})):m("",!0),t.row.list_status===2?(u(),x(S,{key:2,class:"ml-2"},{default:s(()=>[...e[39]||(e[39]=[b("登记",-1)])]),_:1})):m("",!0),t.row.list_status===3?(u(),x(S,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[40]||(e[40]=[b("完成",-1)])]),_:1})):m("",!0)]),_:1}),a(_,{label:"门诊号",width:"120"},{default:s(t=>[t.row.patient_type!=0?(u(),g("span",tt,k(t.row.reg_num),1)):m("",!0)]),_:1}),a(_,{label:"住院号",width:"120"},{default:s(t=>{var V;return[t.row.patient_type==0?(u(),g("span",lt,k((V=t.row.episodeid)==null?void 0:V.slice(-10)),1)):m("",!0)]}),_:1}),a(_,{prop:"user_name",label:"姓名"}),a(_,{prop:"user_sex",label:"性别",width:"60"},{default:s(t=>[t.row.user_sex==1?(u(),g("span",at,"男")):m("",!0),t.row.user_sex==2?(u(),g("span",nt,"女")):m("",!0)]),_:1}),a(_,{prop:"age",label:"年龄",width:"115"}),a(_,{prop:"entrust",label:"医嘱",width:"200"}),a(_,{prop:"is_pay",label:"是否交费",width:"80"},{default:s(t=>[t.row.is_pay==1?(u(),g("span",st,"是")):m("",!0),t.row.is_pay==0?(u(),g("span",ot,"否")):m("",!0)]),_:1}),a(_,{prop:"reservation_date",label:"预约日期",width:"120"}),a(_,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:s(t=>[t.row.period_begin_time&&t.row.period_end_time?(u(),g("span",ut,k(t.row.period_begin_time.substring(0,5))+"~"+k(t.row.period_end_time.substring(0,5)),1)):m("",!0)]),_:1}),a(_,{prop:"department_resources_name",label:"排班",width:"120"}),a(_,{prop:"reservation_department",label:"申请科室",width:"120"}),a(_,{prop:"",label:"医嘱时间",width:"160"},{default:s(t=>[b(k(t.row.entrust_date)+" "+k(t.row.entrust_time),1)]),_:1}),a(_,{prop:"docotr",label:"申请医生",width:"80"}),a(_,{prop:"patient_type",label:"病人类型",width:"80"},{default:s(t=>[t.row.patient_type==0?(u(),g("span",rt,"住院")):m("",!0),t.row.patient_type==1?(u(),g("span",it,"门诊")):m("",!0),t.row.patient_type==2?(u(),g("span",dt,"急诊")):m("",!0),t.row.patient_type==3?(u(),g("span",pt,"体检")):m("",!0)]),_:1}),a(_,{prop:"user_phone",label:"电话",width:"120"}),a(_,{prop:"department_resources_name",label:"操作",width:"120"},{default:s(t=>[a(L,{onClick:V=>Ue(t.row),size:"small"},{default:s(()=>[...e[41]||(e[41]=[b("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[fe,n(v)]]),f("div",ft,[a(Me,{"current-page":n(E),"onUpdate:currentPage":e[21]||(e[21]=t=>D(E)?E.value=t:E=t),"page-size":n(T),"onUpdate:pageSize":e[22]||(e[22]=t=>D(T)?T.value=t:T=t),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:n(le),onSizeChange:we,onCurrentChange:be},null,8,["current-page","page-size","total"])]),a(r,{modelValue:n(j),"onUpdate:modelValue":e[23]||(e[23]=t=>D(j)?j.value=t:j=t),title:"变更记录",width:"50%"},{default:s(()=>[f("div",null,[a(pe,{data:n(oe),style:{width:"100%"},"row-key":"id"},{default:s(()=>[a(_,{prop:"list_status",label:"状态",width:"100"},{default:s(t=>[t.row.new_status==0?(u(),x(S,{key:0,class:"ml-2",type:"info"},{default:s(()=>[...e[42]||(e[42]=[b("申请中",-1)])]),_:1})):m("",!0),t.row.new_status==1?(u(),x(S,{key:1,class:"ml-2",type:"success"},{default:s(()=>[...e[43]||(e[43]=[b("已预约",-1)])]),_:1})):m("",!0),t.row.new_status==2?(u(),x(S,{key:2,class:"ml-2"},{default:s(()=>[...e[44]||(e[44]=[b("登记",-1)])]),_:1})):m("",!0),t.row.new_status==3?(u(),x(S,{key:3,class:"ml-2",type:"warning"},{default:s(()=>[...e[45]||(e[45]=[b("完成",-1)])]),_:1})):m("",!0)]),_:1}),a(_,{prop:"reg_num",label:"登记号"}),a(_,{prop:"note",label:"说明"}),a(_,{prop:"create_user",label:"操作人/ID"}),a(_,{prop:"created_at",label:"记录时间"}),a(_,{prop:"data",label:"状态",width:"100"},{default:s(t=>[a(L,{onClick:V=>Ee(t.row.data),size:"small"},{default:s(()=>[...e[46]||(e[46]=[b("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(r,{modelValue:n(P),"onUpdate:modelValue":e[24]||(e[24]=t=>D(P)?P.value=t:P=t),title:"查看dataJson",width:"40%"},{default:s(()=>[f("div",mt,k(n(ue)),1)]),_:1},8,["modelValue"]),a(r,{modelValue:n(M),"onUpdate:modelValue":e[25]||(e[25]=t=>D(M)?M.value=t:M=t),title:"选择可一起预约的项目",width:"40%"},{default:s(()=>[n(X).length>0?(u(),g("div",_t,[e[47]||(e[47]=f("div",{style:{display:"flex",border:"1px solid #ccc",color:"#999"}},[f("div",{style:{width:"50%","border-right":"1px solid #ccc",padding:"8px","text-align":"center"}}," 可一起预约项目 "),f("div",{style:{width:"50%",padding:"8px","text-align":"center"}}," 关联的排班 ")],-1)),(u(!0),g(Y,null,z(n(X),(t,V)=>(u(),g("div",{key:V,class:"dialogitem",onClick:me=>ke(t)},[f("div",vt,[(u(!0),g(Y,null,z(t,(me,It)=>(u(),g("div",null,[f("span",ct,k(me.item_name),1)]))),256))]),f("div",yt,[f("div",null,k(t[0].device_name),1)])],8,gt))),128))])):m("",!0)]),_:1},8,["modelValue"]),a(r,{modelValue:n(U),"onUpdate:modelValue":e[26]||(e[26]=t=>D(U)?U.value=t:U=t),title:"提示",width:"40%"},{default:s(()=>[(u(!0),g(Y,null,z(n(J),(t,V)=>(u(),g("div",{key:V,style:{"font-size":"16px"}},[f("table",wt,[f("tr",null,[f("td",bt,[b(k(t.entrus),1),a(S,{type:"success",size:"large"},{default:s(()=>[...e[48]||(e[48]=[b("预约成功",-1)])]),_:1})])]),f("tr",null,[e[49]||(e[49]=f("td",{style:{"font-weight":"700"}},"体检号:",-1)),f("td",null,k(t.signInData[0].checkNo),1)]),f("tr",null,[e[50]||(e[50]=f("td",{style:{"font-weight":"700"}},"排队号:",-1)),f("td",null,k(t.signInData[0].queueNo),1)]),f("tr",null,[e[51]||(e[51]=f("td",{style:{"font-weight":"700"}},"等待人数:",-1)),f("td",null,k(t.signInData[0].currentNum),1)])])]))),128)),(u(!0),g(Y,null,z(n($),(t,V)=>(u(),g("div",{key:V+200,style:{color:"crimson"}},k(t),1))),128))]),_:1},8,["modelValue"])])),[[fe,n(v)]])}}},Ut=Ye(ht,[["__scopeId","data-v-ee334775"]]);export{Ut as default}; diff --git a/Laravel/public/admin/assets/MainListWithDept-fca20830.js b/Laravel/public/admin/assets/MainListWithDept-1d57f4a3.js similarity index 99% rename from Laravel/public/admin/assets/MainListWithDept-fca20830.js rename to Laravel/public/admin/assets/MainListWithDept-1d57f4a3.js index 0aead67..0688d54 100644 --- a/Laravel/public/admin/assets/MainListWithDept-fca20830.js +++ b/Laravel/public/admin/assets/MainListWithDept-1d57f4a3.js @@ -1 +1 @@ -import{_ as Ge,z as Be,o as Ne,A as je,r as V,c as Pe,h as ye,i as s,d as u,e as m,f as a,w as n,l as L,k as _,j as k,g as d,B as qe,E as b,D as Oe,I as Fe,O as We,W as Je,J as He,F as U,t as E,q as w,K as $e,x as c,v as x,X as Ae,N as ce,P as Ke,Q as Qe,R as Xe,V as Ze}from"./index-b8bae120.js";import{Y as et}from"./YuYue202506-5be4eb25.js";const tt=["src"],lt={class:"head"},at={key:0},nt={key:0},st={key:0},ot={key:1},ut={key:0},rt={key:1},it={key:0},dt={key:0},pt={key:1},mt={key:2},ft={key:3},_t={class:"page"},gt={style:{"word-break":"break-all"}},vt={key:0},yt=["onClick"],ct={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},wt={style:{"margin-left":"8px",width:"200px"}},bt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},ht={style:{"margin-top":"-30px"}},xt={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},kt={__name:"MainListWithDept",setup(Vt){let ae=Be(),B=d(!1),$=d(0),A=d(0),g=d(!1),ne=d(""),p=d({dateType:"both",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),N=d(""),j=d([]),K=d(null),R=d(1),Y=d(15),se=0,O=d([]),M=d(0),oe=d([]);const we=((l,e)=>{let r=null;return function(...o){clearTimeout(r),r=setTimeout(()=>l.apply(this,o),e)}})(l=>{if(!l){O.value=[];return}Ze({keyword:l}).then(e=>{e.status?O.value=e.data.list:O.value=[]})},300),C=()=>{g.value=!0,Ae({searchInfo:p.value,page:R.value,pageSize:Y.value,department_id:M.value}).then(l=>{g.value=!1,l.status?(j.value=l.data.list,se=l.data.count):b.error(l.msg)})},be=l=>{Y.value=l,C()},he=l=>{R.value=l,C()};let i=d([]);const xe=l=>{if(l.length>1){const r=l[0].list_status;l.every(v=>v.list_status===r)||(T(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(T(),l=[l[l.length-1]]);let e=i.value?i.value.length:0;F(l),e>i.value.length||ke()},T=()=>{K.value.clearSelection(),i.value=[]},F=l=>{l?(l.forEach(e=>{e!=null&&K.value.toggleRowSelection(e,!0)}),i.value=l):T()};let z=d(!1),Q=d(null);const ke=()=>{console.log(i.value),i.value.reverse();let l="",e=!1;if(i.value.forEach((o,v)=>{l==""&&(l=o.reg_num),l!=""&&l!=o.reg_num&&(e=!0)}),e===!0){let o=i.value[0];T(),F([o])}console.log(i.value);let r=[];if(i.value[0].list_status!=0)return!1;j.value.forEach((o,v)=>{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:v,first:1}):r.push({name:o.entrust,rowid:v,first:0}))}),r.length>=2&&(g.value=!0,qe({items:r}).then(o=>{if(g.value=!1,o.status){let v=o.data.group;if(v.length>1e9)z.value=!0,Q.value=v;else{T();let y=[];v[0].forEach((J,H)=>{y.push(j.value[J.rowid])}),F(y)}}else b.error(o.msg)}))},Ve=l=>{T();let e=[];l.forEach((r,o)=>{e.push(j.value[r.rowid])}),F(e),z.value=!1};let X=d(""),De="https://yj.dev.cjy.net.cn/",W=d(!1);const ue=l=>{console.log(i.value);let e=[];if(A.value=l,console.log(i.value),i.value.length===0)return b.error("请勾选1条记录"),!1;let r=!0;if(i.value.forEach((o,v)=>{l==1&&o.list_status!=0&&(b.error(o.entrust+" 不可进行预约操作"),r=!1),l==2&&o.list_status!=1&&(b.error(o.entrust+" 不可进行改约操作"),r=!1),e.push(o.entrust_id)}),r==!1)return!1;$.value++,ne.value=e.join(","),B.value=!0,X.value=De+"/jq_page/appointment.html?regnum="+encodeURIComponent(i.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(i.value[0].episodeid)+"&dotype="+A.value+"&appointment_type=4",console.log(X.value)},Le=()=>{Oe(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Ce=()=>{if(i.value.length===0)return b.error("请勾选1条记录"),!1;let l=!0;if(i.value.forEach(r=>{r.list_status!=1&&(b.error(`${r.entrust} 无需取消`),l=!1)}),!l)return!1;g.value=!0;const e=r=>{Xe({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:S.value.id,password:r}).then(o=>{g.value=!1,o.status?(b({message:o.msg,type:"success"}),C()):b.error(o.msg)}).catch(o=>{g.value=!1,console.error(o)})};N.value==="SysLogin"?ce.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:r})=>{e(r)}).catch(()=>{g.value=!1}):N.value==="HisLogin"||N.value==="CasLogin"?ce.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{g.value=!1}):(g.value=!1,b.error("未知的操作类型配置"))};let Ie=d([]);const Se=()=>{g.value=!0,Fe().then(l=>{g.value=!1,l.status?Ie.value=l.data:b.error(l.msg)})};let Z=d([]);const ee=()=>{g.value=!0,We({department_id:M.value||void 0}).then(l=>{g.value=!1,l.status&&(Z.value=l.data)})},Ue=()=>{g.value=!0,Je({}).then(l=>{g.value=!1,l.status?oe.value=l.data.list:b.error(l.msg)})},Ee=()=>{p.value.resources=[],Z.value=[],ee(),C()},re=()=>{He().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);p.value.dateRange=[e,e],C()}})};let P=d(!1),ie=d(null),q=d(!1);const Re=l=>{P.value=!0,Ke({id:l.id}).then(e=>{e.status&&(ie.value=e.data)})};let de=d("");const Ye=l=>{q.value=!0,de.value=l};let S=d(null);const Me=()=>{if(i.value.length!==1){b.error("请选择1项进行打印");return}const l=i.value[0];if(l.list_status!=1){b.error(l.entrust+" 不可打印,请重新选择");return}const r="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+l.entrust_id);fetch(r).then(o=>o.blob()).then(o=>{const v=URL.createObjectURL(o),y=document.createElement("iframe");y.style.display="none",y.src=v,y.onload=()=>{y.contentWindow.print(),URL.revokeObjectURL(v)},document.body.appendChild(y)})},pe=()=>{C()};let G=d(!1),te=d([]),le=d([]);const Te=()=>{if(i.value.length===0)return b.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),g.value=!0,Qe({MainListIds:l}).then(e=>{g.value=!1,e.status?(e.data.success.length==l.length?(b({message:"签到成功",type:"success"}),G.value=!0,te.value=e.data.success,le.value=e.data.fail):(G.value=!0,te.value=e.data.success,le.value=e.data.fail),C()):b.error(e.msg)})},me=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(S.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),S.value&&S.value.group==7||N.value==="HisLogin"){p.value.doctor=S.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(p.value.reg_num=l)}};return Ne(()=>{if(N.value=sessionStorage.getItem("LoginType"),Se(),Ue(),ae.baseInfoStatus)me(),ee(),re();else{const l=je(()=>ae.baseInfoStatus,e=>{e&&(me(),ee(),re(),l())})}}),(l,e)=>{const r=V("el-dialog"),o=V("el-option"),v=V("el-select"),y=V("el-form-item"),J=V("el-date-picker"),H=V("el-input"),I=V("el-button"),fe=V("el-row"),f=V("el-table-column"),D=V("el-tag"),_e=V("el-table"),ze=V("el-pagination"),ge=Pe("loading");return ye((u(),m("div",null,[a(r,{title:"预约列表",class:"iframeDialog",modelValue:s(W),"onUpdate:modelValue":e[0]||(e[0]=t=>L(W)?W.value=t:W=t),onOpened:Le,onClosed:e[1]||(e[1]=t=>pe())},{default:n(()=>[(u(),m("iframe",{id:"bdIframe",src:s(X),class:"iframe",key:s($),scrolling:"auto"},null,8,tt))]),_:1},8,["modelValue"]),a(r,{modelValue:s(B),"onUpdate:modelValue":e[2]||(e[2]=t=>L(B)?B.value=t:B=t),fullscreen:"",onClose:e[3]||(e[3]=t=>pe())},{default:n(()=>[(u(),k(et,{reg_num:s(i)[0].reg_num,entrust_ids:s(ne),key:s($),episode_id:s(i)[0].episodeid,appointment_type:"4",dotype:s(A),do_user:s(S).id,special_privileges:s(S).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",lt,[a(fe,null,{default:n(()=>[a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(M),"onUpdate:modelValue":e[4]||(e[4]=t=>L(M)?M.value=t:M=t),placeholder:"选择科室",onChange:Ee,style:{"margin-left":"8px",width:"180px"}},{default:n(()=>[a(o,{label:"全部科室",value:0}),(u(!0),m(U,null,E(s(oe),(t,h)=>(u(),k(o,{key:h,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{modelValue:s(p).dateType,"onUpdate:modelValue":e[5]||(e[5]=t=>s(p).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"预约日期",value:"reservation_date"}),a(o,{label:"医嘱日期",value:"entrust_date"}),a(o,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(J,{style:{"margin-left":"8px",width:"150px"},modelValue:s(p).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=t=>s(p).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(J,{style:{width:"150px"},modelValue:s(p).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=t=>s(p).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(p).list_status,"onUpdate:modelValue":e[8]||(e[8]=t=>s(p).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"申请中",value:"0"}),a(o,{label:"已预约",value:"1"}),a(o,{label:"已报道",value:"2"}),a(o,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(p).patient_type,"onUpdate:modelValue":e[9]||(e[9]=t=>s(p).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"住院",value:"0"}),a(o,{label:"门诊",value:"1"}),a(o,{label:"急诊",value:"2"}),a(o,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{multiple:"",filterable:!0,clearable:"",modelValue:s(p).resources,"onUpdate:modelValue":e[10]||(e[10]=t=>s(p).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:n(()=>[(u(!0),m(U,null,E(s(Z),(t,h)=>(u(),k(o,{key:h,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).reg_num,"onUpdate:modelValue":e[11]||(e[11]=t=>s(p).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).user_name,"onUpdate:modelValue":e[12]||(e[12]=t=>s(p).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{modelValue:s(p).apply_department,"onUpdate:modelValue":e[13]||(e[13]=t=>s(p).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":s(we)},{default:n(()=>[(u(!0),m(U,null,E(s(O),t=>(u(),k(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}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).doctor,"onUpdate:modelValue":e[14]||(e[14]=t=>s(p).doctor=t),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(I,{type:"primary",onClick:e[15]||(e[15]=t=>C()),style:{"margin-left":"10px"}},{default:n(()=>[...e[28]||(e[28]=[w("查询",-1)])]),_:1})]),_:1})]),_:1}),a(fe,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:n(()=>[a(I,{type:"success",onClick:e[16]||(e[16]=$e(t=>ue(1),["prevent"]))},{default:n(()=>[...e[29]||(e[29]=[w("预 约",-1)])]),_:1}),a(I,{type:"danger",onClick:e[17]||(e[17]=t=>Ce())},{default:n(()=>[...e[30]||(e[30]=[w("取消预约",-1)])]),_:1}),a(I,{type:"warning",onClick:e[18]||(e[18]=t=>ue(2))},{default:n(()=>[...e[31]||(e[31]=[w("更改预约时间",-1)])]),_:1}),a(I,{type:"primary",onClick:e[19]||(e[19]=t=>Te()),style:{"margin-left":"40px"}},{default:n(()=>[...e[32]||(e[32]=[w("报到",-1)])]),_:1}),a(I,{onClick:e[20]||(e[20]=t=>Me())},{default:n(()=>[...e[33]||(e[33]=[w("打印申请单",-1)])]),_:1})]),_:1})]),ye((u(),k(_e,{data:s(j),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:K,onSelect:xe},{default:n(()=>[a(f,{type:"selection",width:"50"}),a(f,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(u(),k(D,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[34]||(e[34]=[w("申请中",-1)])]),_:1})):c("",!0),t.row.list_status===1?(u(),k(D,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[35]||(e[35]=[w("已预约",-1)])]),_:1})):c("",!0),t.row.list_status===2?(u(),k(D,{key:2,class:"ml-2"},{default:n(()=>[...e[36]||(e[36]=[w("登记",-1)])]),_:1})):c("",!0),t.row.list_status===3?(u(),k(D,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[37]||(e[37]=[w("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(f,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(u(),m("span",at,x(t.row.reg_num),1)):c("",!0)]),_:1}),a(f,{label:"住院号",width:"120"},{default:n(t=>{var h;return[t.row.patient_type==0?(u(),m("span",nt,x((h=t.row.episodeid)==null?void 0:h.slice(-10)),1)):c("",!0)]}),_:1}),a(f,{prop:"user_name",label:"姓名"}),a(f,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(u(),m("span",st,"男")):c("",!0),t.row.user_sex==2?(u(),m("span",ot,"女")):c("",!0)]),_:1}),a(f,{prop:"age",label:"年龄",width:"115"}),a(f,{prop:"entrust",label:"医嘱",width:"200"}),a(f,{prop:"is_pay",label:"是否交费",width:"80"},{default:n(t=>[t.row.is_pay==1?(u(),m("span",ut,"是")):c("",!0),t.row.is_pay==0?(u(),m("span",rt,"否")):c("",!0)]),_:1}),a(f,{prop:"reservation_date",label:"预约日期",width:"120"}),a(f,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(u(),m("span",it,x(t.row.period_begin_time.substring(0,5))+"~"+x(t.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(f,{prop:"department_resources_name",label:"排班",width:"120"}),a(f,{prop:"reservation_department",label:"申请科室",width:"120"}),a(f,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[w(x(t.row.entrust_date)+" "+x(t.row.entrust_time),1)]),_:1}),a(f,{prop:"docotr",label:"申请医生",width:"80"}),a(f,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(u(),m("span",dt,"住院")):c("",!0),t.row.patient_type==1?(u(),m("span",pt,"门诊")):c("",!0),t.row.patient_type==2?(u(),m("span",mt,"急诊")):c("",!0),t.row.patient_type==3?(u(),m("span",ft,"体检")):c("",!0)]),_:1}),a(f,{prop:"user_phone",label:"电话",width:"120"}),a(f,{prop:"department_resources_name",label:"操作",width:"120"},{default:n(t=>[a(I,{onClick:h=>Re(t.row),size:"small"},{default:n(()=>[...e[38]||(e[38]=[w("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ge,s(g)]]),_("div",_t,[a(ze,{"current-page":s(R),"onUpdate:currentPage":e[21]||(e[21]=t=>L(R)?R.value=t:R=t),"page-size":s(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:s(se),onSizeChange:be,onCurrentChange:he},null,8,["current-page","page-size","total"])]),a(r,{modelValue:s(P),"onUpdate:modelValue":e[23]||(e[23]=t=>L(P)?P.value=t:P=t),title:"变更记录",width:"50%"},{default:n(()=>[_("div",null,[a(_e,{data:s(ie),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(f,{prop:"list_status",label:"状态",width:"100"},{default:n(t=>[t.row.new_status==0?(u(),k(D,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[39]||(e[39]=[w("申请中",-1)])]),_:1})):c("",!0),t.row.new_status==1?(u(),k(D,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[40]||(e[40]=[w("已预约",-1)])]),_:1})):c("",!0),t.row.new_status==2?(u(),k(D,{key:2,class:"ml-2"},{default:n(()=>[...e[41]||(e[41]=[w("登记",-1)])]),_:1})):c("",!0),t.row.new_status==3?(u(),k(D,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[42]||(e[42]=[w("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(f,{prop:"reg_num",label:"登记号"}),a(f,{prop:"note",label:"说明"}),a(f,{prop:"create_user",label:"操作人/ID"}),a(f,{prop:"created_at",label:"记录时间"}),a(f,{prop:"data",label:"状态",width:"100"},{default:n(t=>[a(I,{onClick:h=>Ye(t.row.data),size:"small"},{default:n(()=>[...e[43]||(e[43]=[w("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(r,{modelValue:s(q),"onUpdate:modelValue":e[24]||(e[24]=t=>L(q)?q.value=t:q=t),title:"查看dataJson",width:"40%"},{default:n(()=>[_("div",gt,x(s(de)),1)]),_:1},8,["modelValue"]),a(r,{modelValue:s(z),"onUpdate:modelValue":e[25]||(e[25]=t=>L(z)?z.value=t:z=t),title:"选择可一起预约的项目",width:"40%"},{default:n(()=>[s(Q).length>0?(u(),m("div",vt,[e[44]||(e[44]=_("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),m(U,null,E(s(Q),(t,h)=>(u(),m("div",{key:h,class:"dialogitem",onClick:ve=>Ve(t)},[_("div",ct,[(u(!0),m(U,null,E(t,(ve,Ct)=>(u(),m("div",null,[_("span",wt,x(ve.item_name),1)]))),256))]),_("div",bt,[_("div",null,x(t[0].device_name),1)])],8,yt))),128))])):c("",!0)]),_:1},8,["modelValue"]),a(r,{modelValue:s(G),"onUpdate:modelValue":e[26]||(e[26]=t=>L(G)?G.value=t:G=t),title:"提示",width:"40%"},{default:n(()=>[(u(!0),m(U,null,E(s(te),(t,h)=>(u(),m("div",{key:h,style:{"font-size":"16px"}},[_("table",ht,[_("tr",null,[_("td",xt,[w(x(t.entrust),1),a(D,{type:"success",size:"large"},{default:n(()=>[...e[45]||(e[45]=[w("预约成功",-1)])]),_:1})])]),_("tr",null,[e[46]||(e[46]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,x(t.signInData[0].checkNo),1)]),_("tr",null,[e[47]||(e[47]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,x(t.signInData[0].queueNo),1)]),_("tr",null,[e[48]||(e[48]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,x(t.signInData[0].currentNum),1)])])]))),128)),(u(!0),m(U,null,E(s(le),(t,h)=>(u(),m("div",{key:h+200,style:{color:"crimson"}},x(t),1))),128))]),_:1},8,["modelValue"])])),[[ge,s(g)]])}}},Ut=Ge(kt,[["__scopeId","data-v-96a70835"]]);export{Ut as default}; +import{_ as Ge,z as Be,o as Ne,A as je,r as V,c as Pe,h as ye,i as s,d as u,e as m,f as a,w as n,l as L,k as _,j as k,g as d,B as qe,E as b,D as Oe,I as Fe,O as We,W as Je,J as He,F as U,t as E,q as w,K as $e,x as c,v as x,X as Ae,N as ce,P as Ke,Q as Qe,R as Xe,V as Ze}from"./index-612fedfe.js";import{Y as et}from"./YuYue202506-e5e6b7e2.js";const tt=["src"],lt={class:"head"},at={key:0},nt={key:0},st={key:0},ot={key:1},ut={key:0},rt={key:1},it={key:0},dt={key:0},pt={key:1},mt={key:2},ft={key:3},_t={class:"page"},gt={style:{"word-break":"break-all"}},vt={key:0},yt=["onClick"],ct={style:{width:"50%",display:"flex","border-right":"1px solid #ccc",padding:"8px"}},wt={style:{"margin-left":"8px",width:"200px"}},bt={style:{"margin-left":"8px",padding:"8px",display:"flex"}},ht={style:{"margin-top":"-30px"}},xt={colspan:"2",style:{"font-weight":"700","font-size":"18px",color:"#4b6493"}},kt={__name:"MainListWithDept",setup(Vt){let ae=Be(),B=d(!1),$=d(0),A=d(0),g=d(!1),ne=d(""),p=d({dateType:"both",dateRange:[],list_status:null,patient_type:null,resources:[],services_group:null,reg_num:null,user_name:null,apply_department:null}),N=d(""),j=d([]),K=d(null),R=d(1),Y=d(15),se=0,O=d([]),M=d(0),oe=d([]);const we=((l,e)=>{let r=null;return function(...o){clearTimeout(r),r=setTimeout(()=>l.apply(this,o),e)}})(l=>{if(!l){O.value=[];return}Ze({keyword:l}).then(e=>{e.status?O.value=e.data.list:O.value=[]})},300),C=()=>{g.value=!0,Ae({searchInfo:p.value,page:R.value,pageSize:Y.value,department_id:M.value}).then(l=>{g.value=!1,l.status?(j.value=l.data.list,se=l.data.count):b.error(l.msg)})},be=l=>{Y.value=l,C()},he=l=>{R.value=l,C()};let i=d([]);const xe=l=>{if(l.length>1){const r=l[0].list_status;l.every(v=>v.list_status===r)||(T(),l=[l[l.length-1]])}l[l.length-1].list_status!=0&&(T(),l=[l[l.length-1]]);let e=i.value?i.value.length:0;F(l),e>i.value.length||ke()},T=()=>{K.value.clearSelection(),i.value=[]},F=l=>{l?(l.forEach(e=>{e!=null&&K.value.toggleRowSelection(e,!0)}),i.value=l):T()};let z=d(!1),Q=d(null);const ke=()=>{console.log(i.value),i.value.reverse();let l="",e=!1;if(i.value.forEach((o,v)=>{l==""&&(l=o.reg_num),l!=""&&l!=o.reg_num&&(e=!0)}),e===!0){let o=i.value[0];T(),F([o])}console.log(i.value);let r=[];if(i.value[0].list_status!=0)return!1;j.value.forEach((o,v)=>{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:v,first:1}):r.push({name:o.entrust,rowid:v,first:0}))}),r.length>=2&&(g.value=!0,qe({items:r}).then(o=>{if(g.value=!1,o.status){let v=o.data.group;if(v.length>1e9)z.value=!0,Q.value=v;else{T();let y=[];v[0].forEach((J,H)=>{y.push(j.value[J.rowid])}),F(y)}}else b.error(o.msg)}))},Ve=l=>{T();let e=[];l.forEach((r,o)=>{e.push(j.value[r.rowid])}),F(e),z.value=!1};let X=d(""),De="https://yj.dev.cjy.net.cn/",W=d(!1);const ue=l=>{console.log(i.value);let e=[];if(A.value=l,console.log(i.value),i.value.length===0)return b.error("请勾选1条记录"),!1;let r=!0;if(i.value.forEach((o,v)=>{l==1&&o.list_status!=0&&(b.error(o.entrust+" 不可进行预约操作"),r=!1),l==2&&o.list_status!=1&&(b.error(o.entrust+" 不可进行改约操作"),r=!1),e.push(o.entrust_id)}),r==!1)return!1;$.value++,ne.value=e.join(","),B.value=!0,X.value=De+"/jq_page/appointment.html?regnum="+encodeURIComponent(i.value[0].reg_num)+"&entrustid="+encodeURIComponent(e)+"&episodeid="+encodeURIComponent(i.value[0].episodeid)+"&dotype="+A.value+"&appointment_type=4",console.log(X.value)},Le=()=>{Oe(()=>{const l=document.getElementById("bdIframe"),e=document.getElementsByClassName("el-dialog")[0].clientHeight;l.style.height=e-105+"px"})},Ce=()=>{if(i.value.length===0)return b.error("请勾选1条记录"),!1;let l=!0;if(i.value.forEach(r=>{r.list_status!=1&&(b.error(`${r.entrust} 无需取消`),l=!1)}),!l)return!1;g.value=!0;const e=r=>{Xe({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:S.value.id,password:r}).then(o=>{g.value=!1,o.status?(b({message:o.msg,type:"success"}),C()):b.error(o.msg)}).catch(o=>{g.value=!1,console.error(o)})};N.value==="SysLogin"?ce.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPattern:/.+/,inputErrorMessage:"密码不能为空"}).then(({value:r})=>{e(r)}).catch(()=>{g.value=!1}):N.value==="HisLogin"||N.value==="CasLogin"?ce.confirm("确定要执行取消操作吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{e("noPassword")}).catch(()=>{g.value=!1}):(g.value=!1,b.error("未知的操作类型配置"))};let Ie=d([]);const Se=()=>{g.value=!0,Fe().then(l=>{g.value=!1,l.status?Ie.value=l.data:b.error(l.msg)})};let Z=d([]);const ee=()=>{g.value=!0,We({department_id:M.value||void 0}).then(l=>{g.value=!1,l.status&&(Z.value=l.data)})},Ue=()=>{g.value=!0,Je({}).then(l=>{g.value=!1,l.status?oe.value=l.data.list:b.error(l.msg)})},Ee=()=>{p.value.resources=[],Z.value=[],ee(),C()},re=()=>{He().then(l=>{if(l.status){let e=l.data.datetime.substr(0,10);p.value.dateRange=[e,e],C()}})};let P=d(!1),ie=d(null),q=d(!1);const Re=l=>{P.value=!0,Ke({id:l.id}).then(e=>{e.status&&(ie.value=e.data)})};let de=d("");const Ye=l=>{q.value=!0,de.value=l};let S=d(null);const Me=()=>{if(i.value.length!==1){b.error("请选择1项进行打印");return}const l=i.value[0];if(l.list_status!=1){b.error(l.entrust+" 不可打印,请重新选择");return}const r="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+l.entrust_id);fetch(r).then(o=>o.blob()).then(o=>{const v=URL.createObjectURL(o),y=document.createElement("iframe");y.style.display="none",y.src=v,y.onload=()=>{y.contentWindow.print(),URL.revokeObjectURL(v)},document.body.appendChild(y)})},pe=()=>{C()};let G=d(!1),te=d([]),le=d([]);const Te=()=>{if(i.value.length===0)return b.error("请勾选1条记录"),!1;let l=[];i.value.forEach((e,r)=>{l.push(e.id)}),g.value=!0,Qe({MainListIds:l}).then(e=>{g.value=!1,e.status?(e.data.success.length==l.length?(b({message:"签到成功",type:"success"}),G.value=!0,te.value=e.data.success,le.value=e.data.fail):(G.value=!0,te.value=e.data.success,le.value=e.data.fail),C()):b.error(e.msg)})},me=()=>{if(sessionStorage.getItem("LoginUserInfo")&&(S.value=JSON.parse(sessionStorage.getItem("LoginUserInfo"))),S.value&&S.value.group==7||N.value==="HisLogin"){p.value.doctor=S.value.cn_name;let l=sessionStorage.getItem("default_reg_num");l&&l!="null"&&l!=""&&(p.value.reg_num=l)}};return Ne(()=>{if(N.value=sessionStorage.getItem("LoginType"),Se(),Ue(),ae.baseInfoStatus)me(),ee(),re();else{const l=je(()=>ae.baseInfoStatus,e=>{e&&(me(),ee(),re(),l())})}}),(l,e)=>{const r=V("el-dialog"),o=V("el-option"),v=V("el-select"),y=V("el-form-item"),J=V("el-date-picker"),H=V("el-input"),I=V("el-button"),fe=V("el-row"),f=V("el-table-column"),D=V("el-tag"),_e=V("el-table"),ze=V("el-pagination"),ge=Pe("loading");return ye((u(),m("div",null,[a(r,{title:"预约列表",class:"iframeDialog",modelValue:s(W),"onUpdate:modelValue":e[0]||(e[0]=t=>L(W)?W.value=t:W=t),onOpened:Le,onClosed:e[1]||(e[1]=t=>pe())},{default:n(()=>[(u(),m("iframe",{id:"bdIframe",src:s(X),class:"iframe",key:s($),scrolling:"auto"},null,8,tt))]),_:1},8,["modelValue"]),a(r,{modelValue:s(B),"onUpdate:modelValue":e[2]||(e[2]=t=>L(B)?B.value=t:B=t),fullscreen:"",onClose:e[3]||(e[3]=t=>pe())},{default:n(()=>[(u(),k(et,{reg_num:s(i)[0].reg_num,entrust_ids:s(ne),key:s($),episode_id:s(i)[0].episodeid,appointment_type:"4",dotype:s(A),do_user:s(S).id,special_privileges:s(S).special_privileges,scope:"department"},null,8,["reg_num","entrust_ids","episode_id","dotype","do_user","special_privileges"]))]),_:1},8,["modelValue"]),_("div",lt,[a(fe,null,{default:n(()=>[a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(M),"onUpdate:modelValue":e[4]||(e[4]=t=>L(M)?M.value=t:M=t),placeholder:"选择科室",onChange:Ee,style:{"margin-left":"8px",width:"180px"}},{default:n(()=>[a(o,{label:"全部科室",value:0}),(u(!0),m(U,null,E(s(oe),(t,h)=>(u(),k(o,{key:h,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{modelValue:s(p).dateType,"onUpdate:modelValue":e[5]||(e[5]=t=>s(p).dateType=t),placeholder:"时间筛选类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"预约日期",value:"reservation_date"}),a(o,{label:"医嘱日期",value:"entrust_date"}),a(o,{label:"同时生效",value:"both"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(J,{style:{"margin-left":"8px",width:"150px"},modelValue:s(p).dateRange[0],"onUpdate:modelValue":e[6]||(e[6]=t=>s(p).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(J,{style:{width:"150px"},modelValue:s(p).dateRange[1],"onUpdate:modelValue":e[7]||(e[7]=t=>s(p).dateRange[1]=t),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(p).list_status,"onUpdate:modelValue":e[8]||(e[8]=t=>s(p).list_status=t),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"申请中",value:"0"}),a(o,{label:"已预约",value:"1"}),a(o,{label:"已报道",value:"2"}),a(o,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{filterable:!0,clearable:"",modelValue:s(p).patient_type,"onUpdate:modelValue":e[9]||(e[9]=t=>s(p).patient_type=t),placeholder:"患者类型",style:{"margin-left":"8px",width:"150px"}},{default:n(()=>[a(o,{label:"住院",value:"0"}),a(o,{label:"门诊",value:"1"}),a(o,{label:"急诊",value:"2"}),a(o,{label:"体检",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{multiple:"",filterable:!0,clearable:"",modelValue:s(p).resources,"onUpdate:modelValue":e[10]||(e[10]=t=>s(p).resources=t),placeholder:"资源",style:{"margin-left":"8px",width:"250px"}},{default:n(()=>[(u(!0),m(U,null,E(s(Z),(t,h)=>(u(),k(o,{key:h,label:t.department_resources_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).reg_num,"onUpdate:modelValue":e[11]||(e[11]=t=>s(p).reg_num=t),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).user_name,"onUpdate:modelValue":e[12]||(e[12]=t=>s(p).user_name=t),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(v,{modelValue:s(p).apply_department,"onUpdate:modelValue":e[13]||(e[13]=t=>s(p).apply_department=t),filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"申请科室",style:{width:"200px","margin-left":"8px"},"remote-method":s(we)},{default:n(()=>[(u(!0),m(U,null,E(s(O),t=>(u(),k(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}),a(y,null,{default:n(()=>[a(H,{modelValue:s(p).doctor,"onUpdate:modelValue":e[14]||(e[14]=t=>s(p).doctor=t),placeholder:"医生",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(y,null,{default:n(()=>[a(I,{type:"primary",onClick:e[15]||(e[15]=t=>C()),style:{"margin-left":"10px"}},{default:n(()=>[...e[28]||(e[28]=[w("查询",-1)])]),_:1})]),_:1})]),_:1}),a(fe,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:n(()=>[a(I,{type:"success",onClick:e[16]||(e[16]=$e(t=>ue(1),["prevent"]))},{default:n(()=>[...e[29]||(e[29]=[w("预 约",-1)])]),_:1}),a(I,{type:"danger",onClick:e[17]||(e[17]=t=>Ce())},{default:n(()=>[...e[30]||(e[30]=[w("取消预约",-1)])]),_:1}),a(I,{type:"warning",onClick:e[18]||(e[18]=t=>ue(2))},{default:n(()=>[...e[31]||(e[31]=[w("更改预约时间",-1)])]),_:1}),a(I,{type:"primary",onClick:e[19]||(e[19]=t=>Te()),style:{"margin-left":"40px"}},{default:n(()=>[...e[32]||(e[32]=[w("报到",-1)])]),_:1}),a(I,{onClick:e[20]||(e[20]=t=>Me())},{default:n(()=>[...e[33]||(e[33]=[w("打印申请单",-1)])]),_:1})]),_:1})]),ye((u(),k(_e,{data:s(j),id:"tablelist",style:{width:"100%"},"row-key":"id",ref_key:"tableref",ref:K,onSelect:xe},{default:n(()=>[a(f,{type:"selection",width:"50"}),a(f,{prop:"list_status",label:"状态",width:"80"},{default:n(t=>[t.row.list_status===0?(u(),k(D,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[34]||(e[34]=[w("申请中",-1)])]),_:1})):c("",!0),t.row.list_status===1?(u(),k(D,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[35]||(e[35]=[w("已预约",-1)])]),_:1})):c("",!0),t.row.list_status===2?(u(),k(D,{key:2,class:"ml-2"},{default:n(()=>[...e[36]||(e[36]=[w("登记",-1)])]),_:1})):c("",!0),t.row.list_status===3?(u(),k(D,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[37]||(e[37]=[w("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(f,{label:"门诊号",width:"120"},{default:n(t=>[t.row.patient_type!=0?(u(),m("span",at,x(t.row.reg_num),1)):c("",!0)]),_:1}),a(f,{label:"住院号",width:"120"},{default:n(t=>{var h;return[t.row.patient_type==0?(u(),m("span",nt,x((h=t.row.episodeid)==null?void 0:h.slice(-10)),1)):c("",!0)]}),_:1}),a(f,{prop:"user_name",label:"姓名"}),a(f,{prop:"user_sex",label:"性别",width:"60"},{default:n(t=>[t.row.user_sex==1?(u(),m("span",st,"男")):c("",!0),t.row.user_sex==2?(u(),m("span",ot,"女")):c("",!0)]),_:1}),a(f,{prop:"age",label:"年龄",width:"115"}),a(f,{prop:"entrust",label:"医嘱",width:"200"}),a(f,{prop:"is_pay",label:"是否交费",width:"80"},{default:n(t=>[t.row.is_pay==1?(u(),m("span",ut,"是")):c("",!0),t.row.is_pay==0?(u(),m("span",rt,"否")):c("",!0)]),_:1}),a(f,{prop:"reservation_date",label:"预约日期",width:"120"}),a(f,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:n(t=>[t.row.period_begin_time&&t.row.period_end_time?(u(),m("span",it,x(t.row.period_begin_time.substring(0,5))+"~"+x(t.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(f,{prop:"department_resources_name",label:"排班",width:"120"}),a(f,{prop:"reservation_department",label:"申请科室",width:"120"}),a(f,{prop:"",label:"医嘱时间",width:"160"},{default:n(t=>[w(x(t.row.entrust_date)+" "+x(t.row.entrust_time),1)]),_:1}),a(f,{prop:"docotr",label:"申请医生",width:"80"}),a(f,{prop:"patient_type",label:"病人类型",width:"80"},{default:n(t=>[t.row.patient_type==0?(u(),m("span",dt,"住院")):c("",!0),t.row.patient_type==1?(u(),m("span",pt,"门诊")):c("",!0),t.row.patient_type==2?(u(),m("span",mt,"急诊")):c("",!0),t.row.patient_type==3?(u(),m("span",ft,"体检")):c("",!0)]),_:1}),a(f,{prop:"user_phone",label:"电话",width:"120"}),a(f,{prop:"department_resources_name",label:"操作",width:"120"},{default:n(t=>[a(I,{onClick:h=>Re(t.row),size:"small"},{default:n(()=>[...e[38]||(e[38]=[w("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ge,s(g)]]),_("div",_t,[a(ze,{"current-page":s(R),"onUpdate:currentPage":e[21]||(e[21]=t=>L(R)?R.value=t:R=t),"page-size":s(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:s(se),onSizeChange:be,onCurrentChange:he},null,8,["current-page","page-size","total"])]),a(r,{modelValue:s(P),"onUpdate:modelValue":e[23]||(e[23]=t=>L(P)?P.value=t:P=t),title:"变更记录",width:"50%"},{default:n(()=>[_("div",null,[a(_e,{data:s(ie),style:{width:"100%"},"row-key":"id"},{default:n(()=>[a(f,{prop:"list_status",label:"状态",width:"100"},{default:n(t=>[t.row.new_status==0?(u(),k(D,{key:0,class:"ml-2",type:"info"},{default:n(()=>[...e[39]||(e[39]=[w("申请中",-1)])]),_:1})):c("",!0),t.row.new_status==1?(u(),k(D,{key:1,class:"ml-2",type:"success"},{default:n(()=>[...e[40]||(e[40]=[w("已预约",-1)])]),_:1})):c("",!0),t.row.new_status==2?(u(),k(D,{key:2,class:"ml-2"},{default:n(()=>[...e[41]||(e[41]=[w("登记",-1)])]),_:1})):c("",!0),t.row.new_status==3?(u(),k(D,{key:3,class:"ml-2",type:"warning"},{default:n(()=>[...e[42]||(e[42]=[w("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(f,{prop:"reg_num",label:"登记号"}),a(f,{prop:"note",label:"说明"}),a(f,{prop:"create_user",label:"操作人/ID"}),a(f,{prop:"created_at",label:"记录时间"}),a(f,{prop:"data",label:"状态",width:"100"},{default:n(t=>[a(I,{onClick:h=>Ye(t.row.data),size:"small"},{default:n(()=>[...e[43]||(e[43]=[w("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(r,{modelValue:s(q),"onUpdate:modelValue":e[24]||(e[24]=t=>L(q)?q.value=t:q=t),title:"查看dataJson",width:"40%"},{default:n(()=>[_("div",gt,x(s(de)),1)]),_:1},8,["modelValue"]),a(r,{modelValue:s(z),"onUpdate:modelValue":e[25]||(e[25]=t=>L(z)?z.value=t:z=t),title:"选择可一起预约的项目",width:"40%"},{default:n(()=>[s(Q).length>0?(u(),m("div",vt,[e[44]||(e[44]=_("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),m(U,null,E(s(Q),(t,h)=>(u(),m("div",{key:h,class:"dialogitem",onClick:ve=>Ve(t)},[_("div",ct,[(u(!0),m(U,null,E(t,(ve,Ct)=>(u(),m("div",null,[_("span",wt,x(ve.item_name),1)]))),256))]),_("div",bt,[_("div",null,x(t[0].device_name),1)])],8,yt))),128))])):c("",!0)]),_:1},8,["modelValue"]),a(r,{modelValue:s(G),"onUpdate:modelValue":e[26]||(e[26]=t=>L(G)?G.value=t:G=t),title:"提示",width:"40%"},{default:n(()=>[(u(!0),m(U,null,E(s(te),(t,h)=>(u(),m("div",{key:h,style:{"font-size":"16px"}},[_("table",ht,[_("tr",null,[_("td",xt,[w(x(t.entrust),1),a(D,{type:"success",size:"large"},{default:n(()=>[...e[45]||(e[45]=[w("预约成功",-1)])]),_:1})])]),_("tr",null,[e[46]||(e[46]=_("td",{style:{"font-weight":"700"}},"体检号:",-1)),_("td",null,x(t.signInData[0].checkNo),1)]),_("tr",null,[e[47]||(e[47]=_("td",{style:{"font-weight":"700"}},"排队号:",-1)),_("td",null,x(t.signInData[0].queueNo),1)]),_("tr",null,[e[48]||(e[48]=_("td",{style:{"font-weight":"700"}},"等待人数:",-1)),_("td",null,x(t.signInData[0].currentNum),1)])])]))),128)),(u(!0),m(U,null,E(s(le),(t,h)=>(u(),m("div",{key:h+200,style:{color:"crimson"}},x(t),1))),128))]),_:1},8,["modelValue"])])),[[ge,s(g)]])}}},Ut=Ge(kt,[["__scopeId","data-v-96a70835"]]);export{Ut as default}; diff --git a/Laravel/public/admin/assets/MainList_ZhuYuan-5b090c49.css b/Laravel/public/admin/assets/MainList_ZhuYuan-5b090c49.css new file mode 100644 index 0000000..0f43380 --- /dev/null +++ b/Laravel/public/admin/assets/MainList_ZhuYuan-5b090c49.css @@ -0,0 +1 @@ +.entrustList[data-v-cb2e7df3]{margin-top:20px}.entrustList .errMsg[data-v-cb2e7df3]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo .planTable[data-v-cb2e7df3]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-cb2e7df3]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-cb2e7df3]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-cb2e7df3]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-cb2e7df3]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-cb2e7df3]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-cb2e7df3]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-cb2e7df3]{width:100px}.ZhenShiButton[data-v-cb2e7df3]{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-cb2e7df3]{background-color:#5bc0de;color:#fff}[data-v-cb2e7df3] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-cb2e7df3] .el-table .selected-row{background-color:#9cd0de}.el-table__body tr.current-row>td.el-table__cell{background-color:#8cdbf3!important;color:#3b5e67}.head[data-v-07ba882d]{margin:10px auto} diff --git a/Laravel/public/admin/assets/MainList_ZhuYuan-7d4a4cf1.css b/Laravel/public/admin/assets/MainList_ZhuYuan-7d4a4cf1.css deleted file mode 100644 index c6328fe..0000000 --- a/Laravel/public/admin/assets/MainList_ZhuYuan-7d4a4cf1.css +++ /dev/null @@ -1 +0,0 @@ -.entrustList[data-v-cc902609]{margin-top:20px}.entrustList .errMsg[data-v-cc902609]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo .planTable[data-v-cc902609]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-cc902609]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-cc902609]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-cc902609]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-cc902609]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-cc902609]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-cc902609]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-cc902609]{width:100px}.ZhenShiButton[data-v-cc902609]{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-cc902609]{background-color:#5bc0de;color:#fff}[data-v-cc902609] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-cc902609] .el-table .selected-row{background-color:#9cd0de}.el-table__body tr.current-row>td.el-table__cell{background-color:#8cdbf3!important;color:#3b5e67}.head[data-v-07ba882d]{margin:10px auto} diff --git a/Laravel/public/admin/assets/MainList_ZhuYuan-d198a806.js b/Laravel/public/admin/assets/MainList_ZhuYuan-d53128a9.js similarity index 53% rename from Laravel/public/admin/assets/MainList_ZhuYuan-d198a806.js rename to Laravel/public/admin/assets/MainList_ZhuYuan-d53128a9.js index f48639a..b0c5aea 100644 --- a/Laravel/public/admin/assets/MainList_ZhuYuan-d198a806.js +++ b/Laravel/public/admin/assets/MainList_ZhuYuan-d53128a9.js @@ -1,3 +1,3 @@ -import{_ as De,o as Ye,r as v,c as be,d,e as f,k as C,h as _e,i as _,j as S,w as u,f as a,v as D,q as g,x as c,F as le,t as ae,Z as xe,l as N,g as p,bw as Ve,D as $e,E as h,a1 as Le,a3 as Ee,N as ne,a4 as Te,a5 as Ue,z as Me,A as Re,M as Be,B as Se,J as Pe,K as ze,R as je,P as Ne}from"./index-b8bae120.js";const Ge={class:"YuYue"},Oe={class:"entrustList"},Fe={key:0,class:"errMsg"},qe={key:1},Ze={key:0},Ae={key:1},Je={key:0,style:{color:"orangered"}},We={key:1},Ke={key:0},He={key:0},Qe={key:1},Xe={class:"planInfo"},et={style:{display:"flex","justify-content":"space-between","margin-top":"8px","margin-bottom":"8px"}},tt={style:{display:"flex"}},lt=["onClick"],at={style:{border:"1px solid #efefef"}},nt={class:"planTable"},st={key:0,style:{"background-color":"#f1f1f1"}},ot=["onClick"],rt={key:0},ut={key:1},it={key:0},dt={key:1,style:{"background-color":"#fff"}},_t={__name:"YuYue",props:{YuYueInfo:{type:Object},ServiceDate:{type:String},do_user:{type:[String,Number],default:null}},setup(we){const P=we;let F=p(!1),M=p(!1),V=p(null),k=p([]),R=p(null),Y=p([]),$=p([]),q=p([]),L=p(""),b=p(0),i=p([]),E=p([]),H=p([]),G=p(""),U=p(!1),Z=p([]),B=p(["1"]);const se=t=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const r=new Date(t).getDay();return e[r]};function pe(t){const e=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${e}-${l}-${r}`}function Q(t=new Date,e=15){const l=new Date(t),r=[];if(isNaN(l.getTime()))throw new Error("无效的日期格式");for(let s=0;s15}const oe=()=>{k.value=[],V.value&&V.value.forEach((t,e)=>{const l=t.mainInfo||{};t.itemInfo.forEach(r=>{var x;const s=r.entrust||{},m=r.item||{};k.value.push({patient_name:l.user_name||"",user_sex:l.user_sex||"",user_sex_label:l.user_sex==1?"男":l.user_sex==2?"女":"",age:l.age||"",reg_num:l.reg_num||"",episodeid:l.episodeid||"",user_phone:l.user_phone||"",id:s.id,entrust_id:s.entrust_id,entrust:s.entrust,list_status:s.list_status,docotr:s.docotr,is_pay:s.is_pay,his_is_emergency:s.his_is_emergency,reservation_date:s.reservation_date,period_begin_time:s.period_begin_time,period_end_time:s.period_end_time,reservation_department:s.reservation_department,entrust_date:s.entrust_date,entrust_time:s.entrust_time,department_resources_name:((x=s.department_resources)==null?void 0:x.department_resources_name)||"",roster_id:s.roster_id,app_num:s.app_num,barcode:s.barcode,limosis:m.limosis,use_seats:m.use_seats,item_name:m.item_name,tishi_msg:r.msg||"",msg:r.msg||"",patientIndex:e})})})},X=()=>{let t=H.value;F.value=!0,Ve({entrustInfo:P.YuYueInfo.entrustInfo,appointment_type:P.YuYueInfo.appointment_type}).then(e=>{F.value=!1,e.status?(V.value=e.data.info,oe(),$e(()=>{if(t.length>0)t.forEach(l=>{const r=k.value.findIndex(s=>s.id==l);r>-1&&R.value.toggleRowSelection(k.value[r],!0)});else for(let l=0;lt.tishi_msg=="",ce=({row:t})=>{if(t.tishi_msg!="")return"disabled-row"},ge=t=>{var e;H.value=[],E.value=[],q.value=[],$.value=[],L.value="",i.value=t,i.value.forEach(l=>{H.value.push(l.id),E.value.push(l.entrust_id)}),i.value.length>0&&(i.value.every(r=>{var s;return r.roster_id===((s=i.value[0])==null?void 0:s.roster_id)})&&((e=i.value[0])!=null&&e.roster_id)?(b.value=i.value[0].roster_id,G.value=i.value[0].reservation_date,fe(z(),i.value[0].reservation_date)&&i.value[0].reservation_date?Y.value=Q(i.value[0].reservation_date):Y.value=Q(z()),L.value=i.value[0].department_resources_name):b.value=0),E.value.length>0&&ee()},ee=()=>{if(E.value.length==0)return h.error("请选择检查项目"),!1;M.value=!0;const t=i.value[0];let e=0;i.value.forEach(l=>{l.use_seats&&(e+=l.use_seats)}),Le({regnum:t.reg_num,entrustid:E.value,episodeid:t.episodeid,appointment_type:P.YuYueInfo.appointment_type,date:Y.value}).then(l=>{if(M.value=!1,$.value=[],q.value=[],l.status){let r=l.data.plan_list,s=l.data.zhanWeiCount;if(r&&r.length>0){L.value==""&&(L.value=r[0].department_resources_name);const m=new Set,x=new Set;r.forEach(w=>{if(w.department_resources_name==L.value){const T=`${w.begin_time.substring(0,5)}-${w.end_time.substring(0,5)}`;m.add(T)}x.add(w.department_resources_name)}),q.value=x,Array.from(m).sort().forEach(w=>{const T={time_range:w};Y.value.forEach(K=>{const I=r.find(y=>`${y.begin_time.substring(0,5)}-${y.end_time.substring(0,5)}`===w&&y.date===K&&y.department_resources_name==L.value);let n=!1;if(I){const y=I.count-I.used_count;y>=s&&y>=e&&I.plan_enable===!0&&(n=!0),(b.value==0||b.value==""||b.value==null)&&I.id==l.data.earliestPlan&&(b.value=I.id),T[K]={use_count:`${I.used_count}/${I.count}`,id:I.id,enable:n}}else T[K]={use_count:"0/0",id:null,enable:n}}),$.value.push(T)})}}else h.error(l.msg)})},re=t=>{L.value=t,b.value=0,ee()},J=t=>{t!=null&&t!=null&&(b.value=t,ue())},ue=()=>{const t=i.value[0];t&&(M.value=!0,Ee({reg_num:t.reg_num,planid:b.value}).then(e=>{M.value=!1,e.status||ne.confirm(e.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})}))},O=t=>{if(E.value.length==0)return h.error("请选择检查项目"),!1;if(b.value==0||b.value==""||b.value==null)return h.error("请选择号源"),!1;let e="确定预约此时间吗?";t==2&&(e="确定改约至此时间吗?");const l={};i.value.forEach(s=>{l[s.patient_name]||(l[s.patient_name]=[]),l[s.patient_name].push(s.entrust)});let r=Object.entries(l).map(([s,m])=>`${s}:${m.join("、")}`).join(` +import{_ as De,o as Ye,r as v,c as be,d,e as f,k as Y,h as _e,i as _,j as x,w as u,f as a,v as S,q as g,x as c,F as le,t as ae,Z as xe,l as G,g as p,bw as Ve,D as $e,E as h,a1 as Le,a3 as Ee,N as ne,a4 as Te,a5 as Ue,z as Me,A as Re,M as Be,B as Se,J as Pe,K as ze,R as je,P as Ne}from"./index-612fedfe.js";const Ge={class:"YuYue"},Oe={class:"entrustList"},Fe={key:0,class:"errMsg"},qe={key:1},Ze={key:0},Ae={key:1},Je={key:0,style:{color:"orangered"}},We={key:1},Ke={key:0},He={key:0},Qe={key:1},Xe={class:"planInfo"},et={style:{display:"flex","justify-content":"space-between","margin-top":"8px","margin-bottom":"8px"}},tt={style:{display:"flex"}},lt=["onClick"],at={style:{border:"1px solid #efefef"}},nt={class:"planTable"},st={key:0,style:{"background-color":"#f1f1f1"}},ot=["onClick"],rt={key:0},ut={key:1},it={key:0},dt={key:1,style:{"background-color":"#fff"}},_t={__name:"YuYue",props:{YuYueInfo:{type:Object},ServiceDate:{type:String},do_user:{type:[String,Number],default:null}},setup(we){const z=we;let Z=p(!1),M=p(!1),V=p(null),b=p([]),R=p(null),D=p([]),$=p([]),A=p([]),L=p(""),y=p(0),i=p([]),E=p([]),H=p([]),O=p(""),T=p(!1),J=p([]),B=p(["1"]);const se=t=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const r=new Date(t).getDay();return e[r]};function pe(t){const e=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${e}-${l}-${r}`}function Q(t=new Date,e=15){const l=new Date(t),r=[];if(isNaN(l.getTime()))throw new Error("无效的日期格式");for(let s=0;s15}const oe=()=>{b.value=[],V.value&&V.value.forEach((t,e)=>{const l=t.mainInfo||{};t.itemInfo.forEach(r=>{var k;const s=r.entrust||{},m=r.item||{};b.value.push({patient_name:l.user_name||"",user_sex:l.user_sex||"",user_sex_label:l.user_sex==1?"男":l.user_sex==2?"女":"",age:l.age||"",reg_num:l.reg_num||"",episodeid:l.episodeid||"",user_phone:l.user_phone||"",id:s.id,entrust_id:s.entrust_id,entrust:s.entrust,list_status:s.list_status,docotr:s.docotr,is_pay:s.is_pay,his_is_emergency:s.his_is_emergency,reservation_date:s.reservation_date,period_begin_time:s.period_begin_time,period_end_time:s.period_end_time,reservation_department:s.reservation_department,entrust_date:s.entrust_date,entrust_time:s.entrust_time,department_resources_name:((k=s.department_resources)==null?void 0:k.department_resources_name)||"",roster_id:s.roster_id,app_num:s.app_num,barcode:s.barcode,limosis:m.limosis,use_seats:m.use_seats,item_name:m.item_name,tishi_msg:r.msg||"",msg:r.msg||"",patientIndex:e})})})},X=()=>{let t=H.value;Z.value=!0,Ve({entrustInfo:z.YuYueInfo.entrustInfo,appointment_type:z.YuYueInfo.appointment_type}).then(e=>{Z.value=!1,e.status?(V.value=e.data.info,oe(),$e(()=>{if(t.length>0)t.forEach(l=>{const r=b.value.findIndex(s=>s.id==l);r>-1&&R.value.toggleRowSelection(b.value[r],!0)});else for(let l=0;lt.tishi_msg=="",ce=({row:t})=>{if(t.tishi_msg!="")return"disabled-row"},ge=t=>{var e;H.value=[],E.value=[],A.value=[],$.value=[],L.value="",i.value=t,i.value.forEach(l=>{H.value.push(l.id),E.value.push(l.entrust_id)}),i.value.length>0&&(i.value.every(r=>{var s;return r.roster_id===((s=i.value[0])==null?void 0:s.roster_id)})&&((e=i.value[0])!=null&&e.roster_id)?(y.value=i.value[0].roster_id,O.value=i.value[0].reservation_date,fe(j(),i.value[0].reservation_date)&&i.value[0].reservation_date?D.value=Q(i.value[0].reservation_date):D.value=Q(j()),L.value=i.value[0].department_resources_name):y.value=0),E.value.length>0&&ee()},ee=()=>{if(E.value.length==0)return h.error("请选择检查项目"),!1;M.value=!0;const t=i.value[0];let e=0;i.value.forEach(l=>{l.use_seats&&(e+=l.use_seats)}),Le({regnum:t.reg_num,entrustid:E.value,episodeid:t.episodeid,appointment_type:z.YuYueInfo.appointment_type,date:D.value}).then(l=>{if(M.value=!1,$.value=[],A.value=[],l.status){let r=l.data.plan_list;if(l.data.zhanWeiCount,r&&r.length>0){L.value==""&&(L.value=r[0].department_resources_name);const s=new Set,m=new Set;r.forEach(C=>{if(C.department_resources_name==L.value){const w=`${C.begin_time.substring(0,5)}-${C.end_time.substring(0,5)}`;s.add(w)}m.add(C.department_resources_name)}),A.value=m,Array.from(s).sort().forEach(C=>{const w={time_range:C};D.value.forEach(P=>{const U=r.find(n=>`${n.begin_time.substring(0,5)}-${n.end_time.substring(0,5)}`===C&&n.date===P&&n.department_resources_name==L.value);let q=!1;U?(U.plan_enable===!0&&(q=!0),(y.value==0||y.value==""||y.value==null)&&U.id==l.data.earliestPlan&&(y.value=U.id),w[P]={use_count:`${U.used_count}/${U.count}`,id:U.id,enable:q}):w[P]={use_count:"0/0",id:null,enable:q}}),$.value.push(w)})}}else h.error(l.msg)})},re=t=>{L.value=t,y.value=0,ee()},K=t=>{t!=null&&t!=null&&(y.value=t,ue())},ue=()=>{const t=i.value[0];t&&(M.value=!0,Ee({reg_num:t.reg_num,planid:y.value}).then(e=>{M.value=!1,e.status||ne.confirm(e.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{}).catch(()=>{})}))},F=t=>{if(E.value.length==0)return h.error("请选择检查项目"),!1;if(y.value==0||y.value==""||y.value==null)return h.error("请选择号源"),!1;let e="确定预约此时间吗?";t==2&&(e="确定改约至此时间吗?");const l={};i.value.forEach(s=>{l[s.patient_name]||(l[s.patient_name]=[]),l[s.patient_name].push(s.entrust)});let r=Object.entries(l).map(([s,m])=>`${s}:${m.join("、")}`).join(` `);ne.confirm(`${e} -${r}`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ve(t)}).catch(()=>{})},ve=t=>{M.value=!0,Te({mainlistid:H.value,planid:b.value,appointment_type:P.YuYueInfo.appointment_type,dotype:t,do_user:P.do_user}).then(e=>{M.value=!1,e.status?(h({message:"预约成功",type:"success"}),X(),B.value.length>0&&de()):ne.confirm(e.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})})},ie=()=>{if(i.value.length==0)return h.error("请选择要取消的记录"),!1;ne.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{F.value=!0;const t=i.value.map(e=>Ue({MainListId:e.id,reg_num:e.reg_num,do_user:P.do_user}).then(l=>{l.status?h.success("取消成功"):h.error(l.msg)}).catch(l=>{h.error("取消失败"),console.error(l)}));await Promise.all(t),F.value=!1,X()})},he=()=>{L.value="",b.value=0,Y.value=Q(G.value),ee()},de=()=>{const t=i.value.filter(s=>s.list_status!=1);if(t.length>0){h.error(t.map(s=>s.entrust).join("、")+" 不可打印,请重新选择");return}const r="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+i.value.map(s=>s.entrust_id).map(s=>"OrderNoList[]="+s).join("&");fetch(r).then(s=>s.blob()).then(s=>{const m=URL.createObjectURL(s),x=document.createElement("iframe");x.style.display="none",x.src=m,x.onload=()=>{x.contentWindow.print(),URL.revokeObjectURL(m)},document.body.appendChild(x)})};return Ye(()=>{Y.value=Q(),X()}),(t,e)=>{const l=v("el-table-column"),r=v("el-tag"),s=v("el-table"),m=v("el-button"),x=v("el-checkbox"),W=v("el-checkbox-group"),w=v("el-date-picker"),T=v("el-empty"),K=v("el-dialog"),I=be("loading");return d(),f("div",Ge,[C("div",Oe,[_e((d(),S(s,{data:_(k),style:{width:"100%"},height:"300","row-key":"id",ref_key:"entrustTableRef",ref:R,"row-class-name":ce,onSelectionChange:ge},{default:u(()=>[a(l,{type:"selection",width:"50",selectable:me}),a(l,{prop:"tishi_msg",label:"",width:"100"},{default:u(n=>[n.row.tishi_msg!=""?(d(),f("span",Fe,D(n.row.tishi_msg),1)):(d(),f("span",qe,"正常"))]),_:1}),a(l,{prop:"list_status",label:"医嘱状态",width:"80"},{default:u(n=>[n.row.list_status===0?(d(),S(r,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[8]||(e[8]=[g("申请中",-1)])]),_:1})):c("",!0),n.row.list_status===1?(d(),S(r,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[9]||(e[9]=[g("已预约",-1)])]),_:1})):c("",!0),n.row.list_status===2?(d(),S(r,{key:2,class:"ml-2"},{default:u(()=>[...e[10]||(e[10]=[g("登记",-1)])]),_:1})):c("",!0),n.row.list_status===3?(d(),S(r,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[11]||(e[11]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(l,{prop:"patient_name",label:"患者姓名",width:"140"}),a(l,{prop:"user_sex_label",label:"性别",width:"60"}),a(l,{prop:"age",label:"年龄",width:"60"}),a(l,{prop:"entrust",label:"项目",width:"250"}),a(l,{prop:"is_pay",label:"是否交费",width:"80"},{default:u(n=>[n.row.is_pay==1?(d(),f("span",Ze,"是")):c("",!0),n.row.is_pay==0?(d(),f("span",Ae,"否")):c("",!0)]),_:1}),a(l,{prop:"his_is_emergency",label:"是否加急",width:"80"},{default:u(n=>[n.row.his_is_emergency==1?(d(),f("span",Je,"是")):c("",!0),n.row.his_is_emergency==0?(d(),f("span",We,"否")):c("",!0)]),_:1}),a(l,{prop:"department_resources_name",label:"预约资源",width:"120"}),a(l,{prop:"reservation_date",label:"预约日期",width:"120"}),a(l,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:u(n=>[n.row.period_begin_time&&n.row.period_end_time?(d(),f("span",Ke,D(n.row.period_begin_time.substring(0,5))+"~"+D(n.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(l,{prop:"limosis",label:"是否空腹",width:"80"},{default:u(n=>[n.row.limosis==0?(d(),f("span",He,"否")):(d(),f("span",Qe,"是"))]),_:1}),a(l,{prop:"reservation_department",label:"申请科室",width:"120"}),a(l,{prop:"",label:"医嘱时间",width:"160"},{default:u(n=>[g(D(n.row.entrust_date)+" "+D(n.row.entrust_time),1)]),_:1}),a(l,{prop:"docotr",label:"申请医生"})]),_:1},8,["data"])),[[I,_(F)]])]),C("div",Xe,[C("div",et,[C("div",tt,[(d(!0),f(le,null,ae(_(q),(n,y)=>(d(),f("div",{key:y,class:xe({"ZhenShiButton zhenshiButton_active":_(L)===n,ZhenShiButton:_(L)!==n}),onClick:j=>re(n)},D(n),11,lt))),128)),e[17]||(e[17]=C("div",{class:"shuxian"},null,-1)),a(m,{class:"do_button",type:"success",onClick:e[0]||(e[0]=n=>O(1))},{default:u(()=>[...e[12]||(e[12]=[g("预约",-1)])]),_:1}),a(m,{class:"do_button",type:"warning",onClick:e[1]||(e[1]=n=>O(2))},{default:u(()=>[...e[13]||(e[13]=[g("更改预约时间",-1)])]),_:1}),a(m,{class:"do_button",type:"danger",onClick:e[2]||(e[2]=n=>ie())},{default:u(()=>[...e[14]||(e[14]=[g("取消预约",-1)])]),_:1}),a(m,{onClick:e[3]||(e[3]=n=>de())},{default:u(()=>[...e[15]||(e[15]=[g("打印申请单",-1)])]),_:1}),a(W,{modelValue:_(B),"onUpdate:modelValue":e[4]||(e[4]=n=>N(B)?B.value=n:B=n),style:{"margin-left":"12px"}},{default:u(()=>[a(x,{label:"1"},{default:u(()=>[...e[16]||(e[16]=[g("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"])]),C("div",null,[a(w,{modelValue:_(G),"onUpdate:modelValue":e[5]||(e[5]=n=>N(G)?G.value=n:G=n),type:"date",placeholder:"跳转日期",onChange:e[6]||(e[6]=n=>he())},null,8,["modelValue"])])]),_e((d(),f("div",at,[C("table",nt,[_(i).length>0?(d(),f("tr",st,[e[18]||(e[18]=C("td",{style:{width:"120px"}},null,-1)),(d(!0),f(le,null,ae(_(Y),(n,y)=>(d(),f("td",{style:{"font-weight":"700"},key:y},D(n.substring(5,10))+" "+D(se(n)),1))),128))])):c("",!0),_(Y).length>0&&_($).length>0?(d(!0),f(le,{key:1},ae(_($),(n,y)=>(d(),f("tr",{key:y,class:"table_plan_row"},[(d(!0),f(le,null,ae(n,(j,te)=>(d(),f("td",{key:te,class:xe({planActive:_(b)===j.id&&_(b)!==0&&_(b),plandisable:!j.enable&&te!=="time_range"}),onClick:ke=>J(j.id)},[te=="time_range"?(d(),f("span",rt,D(j),1)):(d(),f("span",ut,D(j.use_count),1))],10,ot))),128))]))),128)):c("",!0)]),_(i).length==0?(d(),f("div",it,[a(T,{description:"请选择项目"})])):c("",!0),_(i).length>0&&_($).length==0?(d(),f("div",dt,[a(T,{description:"暂无号源"})])):c("",!0)])),[[I,_(M)]])]),a(K,{modelValue:_(U),"onUpdate:modelValue":e[7]||(e[7]=n=>N(U)?U.value=n:U=n),title:"号源占用详情",width:"50%"},{default:u(()=>[C("div",null,[a(s,{data:_(Z),style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(l,{prop:"user_name",label:"姓名"}),a(l,{prop:"user_phone",label:"电话"}),a(l,{prop:"reg_num",label:"登记号"}),a(l,{prop:"reservation_department",label:"申请科室"}),a(l,{prop:"entrust",label:"项目"}),a(l,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])])]),_:1},8,["modelValue"])])}}},pt=De(_t,[["__scopeId","data-v-cc902609"]]);const ft={class:"head"},mt={class:"head"},ct={key:0},gt={key:1},vt={key:0},ht={key:1},yt={key:0},bt={style:{"white-space":"nowrap"}},wt={key:0},kt={key:1},xt={key:2},St={key:3},Dt={class:"page"},Yt={style:{"word-break":"break-all"}},Ct={__name:"MainList_ZhuYuan",setup(we){let P=Me(),F=p(""),M=p(null),V=p(!1),k=p({}),R=p([]),Y=p(1),$=p(15),q=0,L=p(0),b=p(null),i=p([]),E=p([]);const H=t=>{$.value=t,U()},G=t=>{Y.value=t,U()},U=()=>{i.value=[],V.value=!0,Be({searchInfo:k.value,page:Y.value,pageSize:$.value}).then(t=>{V.value=!1,t.status?(R.value=t.data.list,q=t.data.count):h.error(t.msg)})};let Z=p(!1),B=p({});const se=t=>{if(i.value.length==0)return h.error("请勾选项目"),!1;if(t==1&&!i.value.every(e=>e.list_status===0))return h.error("当前勾选项目,不能预约"),!1;if(t==2&&!i.value.every(e=>e.list_status===1))return h.error("当前勾选项目,不能改约预约"),!1;B.value.entrustInfo=ce(i.value),L.value++,B.value.dotype=t,B.value.appointment_type=4,Z.value=!0},pe=()=>{if(i.value.length===0)return h.error("请勾选1条记录"),!1;let t=!0;if(i.value.forEach((e,l)=>{e.list_status!=1&&(h.error(e.entrust+" 无需取消"),t=!1)}),t==!1)return!1;ne.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password"}).then(({value:e})=>{V.value=!0,je({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:M.value.id,password:e}).then(l=>{V.value=!1,l.status?(h({message:l.msg,type:"success"}),U()):h.error(l.msg)})}).catch(()=>{})},Q=t=>{if(t.length>1){const l=t[0].list_status;t.every(s=>s.list_status===l)||(z(),t=[t[t.length-1]])}t[t.length-1].list_status!=0&&(z(),t=[t[t.length-1]]);let e=i.value?i.value.length:0;A(t),e>i.value.length||(E.value.length==0&&me(),E.value.length==1&&fe())},z=()=>{b.value.clearSelection(),i.value=[]},A=t=>{t?(t.forEach(e=>{e!=null&&b.value.toggleRowSelection(e,!0)}),i.value=t):z()},fe=()=>{console.log(i.value),i.value.reverse();let t=[];if(i.value[0].list_status!=0)return!1;R.value.forEach((e,l)=>{e.list_status==0&&(e.id==i.value[0].id?t.push({name:e.entrust,rowid:l,first:1}):t.push({name:e.entrust,rowid:l,first:0}))}),t.length>=2&&(V.value=!0,Se({items:t}).then(e=>{if(V.value=!1,e.status){let l=e.data.group;if(l.length>1)oe.value=!0,X.value=l;else{z();let r=[];l[0].forEach((s,m)=>{s.rowid.forEach((x,W)=>{r.push(R.value[x])})}),A(r)}}else h.error(e.msg)}))};let oe=p(!1),X=p(null);const me=()=>{console.log("开始匹配个人项目"),i.value.reverse();let t="",e=!1;if(i.value.forEach((r,s)=>{t==""&&(t=r.reg_num),t!=""&&t!=r.reg_num&&(e=!0)}),e===!0){let r=i.value[0];z(),A([r])}console.log(i.value);let l=[];if(i.value[0].list_status!=0)return!1;R.value.forEach((r,s)=>{r.list_status==0&&r.reg_num==i.value[0].reg_num&&r.episodeid==i.value[0].episodeid&&(r.id==i.value[0].id?l.push({name:r.entrust,rowid:s,first:1}):l.push({name:r.entrust,rowid:s,first:0}))}),l.length>=2&&(V.value=!0,Se({items:l}).then(r=>{if(V.value=!1,r.status){let s=r.data.group;if(s.length>1e7)oe.value=!0,X.value=s;else{z();let m=[];s[0].forEach((x,W)=>{x.rowid.forEach((w,T)=>{m.push(R.value[w])})}),A(m)}}else h.error(r.msg)}))};function ce(t){return t.reduce((e,l)=>{const r=e.find(s=>s.reg_num===l.reg_num);return r?r.entrustid.push(l.entrust_id):e.push({entrustid:[l.entrust_id],reg_num:l.reg_num,episodeid:l.episodeid}),e},[])}const ge=()=>{U()};let ee=p("");const re=()=>{Pe().then(t=>{if(t.status){ee.value=t.data.datetime;let e=t.data.datetime.substr(0,10);k.value.dateRange=[e,e],U()}})};let J=p(!1),ue=p(null),O=p(!1);const ve=t=>{J.value=!0,Ne({id:t.id}).then(e=>{e.status&&(ue.value=e.data)})};let ie=p("");const he=t=>{O.value=!0,ie.value=t},de=()=>{if(i.value.length!==1){h.error("请选择1项进行打印");return}const t=i.value[0];if(t.list_status!=1){h.error(t.entrust+" 不可打印,请重新选择");return}const l="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+t.entrust_id);fetch(l).then(r=>r.blob()).then(r=>{const s=URL.createObjectURL(r),m=document.createElement("iframe");m.style.display="none",m.src=s,m.onload=()=>{m.contentWindow.print(),URL.revokeObjectURL(s)},document.body.appendChild(m)})};return Ye(()=>{if(F.value=sessionStorage.getItem("LoginType"),P.baseInfoStatus)getStorageData(),re();else{const t=Re(()=>P.baseInfoStatus,e=>{e&&(getStorageData(),re(),t())})}}),(t,e)=>{const l=v("el-dialog"),r=v("el-date-picker"),s=v("el-form-item"),m=v("el-option"),x=v("el-select"),W=v("el-input"),w=v("el-button"),T=v("el-row"),K=v("el-checkbox"),I=v("el-checkbox-group"),n=v("el-table-column"),y=v("el-tag"),j=v("el-table"),te=v("el-pagination"),ke=be("print"),Ce=be("loading");return d(),f("div",null,[a(l,{modelValue:_(Z),"onUpdate:modelValue":e[0]||(e[0]=o=>N(Z)?Z.value=o:Z=o),width:"100%",onClose:e[1]||(e[1]=o=>ge())},{default:u(()=>[(d(),S(pt,{style:{"margin-top":"-30px"},key:_(L),YuYueInfo:_(B),ServiceDate:_(ee).substr(0,10),do_user:_(M).id},null,8,["YuYueInfo","ServiceDate","do_user"]))]),_:1},8,["modelValue"]),C("div",ft,[C("div",mt,[a(T,null,{default:u(()=>[a(s,null,{default:u(()=>[a(r,{style:{"margin-left":"8px",width:"300px"},modelValue:_(k).dateRange,"onUpdate:modelValue":e[2]||(e[2]=o=>_(k).dateRange=o),type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(x,{filterable:!0,clearable:"",modelValue:_(k).list_status,"onUpdate:modelValue":e[3]||(e[3]=o=>_(k).list_status=o),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:u(()=>[a(m,{label:"申请中",value:"0"}),a(m,{label:"已预约",value:"1"}),a(m,{label:"已报道",value:"2"}),a(m,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(W,{modelValue:_(k).reg_num,"onUpdate:modelValue":e[4]||(e[4]=o=>_(k).reg_num=o),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(W,{modelValue:_(k).user_name,"onUpdate:modelValue":e[5]||(e[5]=o=>_(k).user_name=o),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(w,{type:"primary",onClick:e[6]||(e[6]=o=>U()),style:{"margin-left":"10px"}},{default:u(()=>[...e[16]||(e[16]=[g("查询",-1)])]),_:1})]),_:1})])]),a(T,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:u(()=>[a(w,{type:"success",onClick:e[7]||(e[7]=ze(o=>se(1),["prevent"]))},{default:u(()=>[...e[17]||(e[17]=[g("预 约",-1)])]),_:1}),a(w,{type:"danger",onClick:e[8]||(e[8]=o=>pe())},{default:u(()=>[...e[18]||(e[18]=[g("取消预约",-1)])]),_:1}),a(w,{type:"warning",onClick:e[9]||(e[9]=o=>se(2))},{default:u(()=>[...e[19]||(e[19]=[g("更改预约时间",-1)])]),_:1}),a(w,{onClick:e[10]||(e[10]=o=>de())},{default:u(()=>[...e[20]||(e[20]=[g("打印申请单",-1)])]),_:1}),_e((d(),S(w,null,{default:u(()=>[...e[21]||(e[21]=[g("打印表格",-1)])]),_:1})),[[ke,"#tablelist"]]),a(I,{modelValue:_(E),"onUpdate:modelValue":e[11]||(e[11]=o=>N(E)?E.value=o:E=o),style:{"margin-left":"12px"}},{default:u(()=>[a(K,{label:"1"},{default:u(()=>[...e[22]||(e[22]=[g("自动选择多人",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),_e((d(),S(j,{data:_(R),onSelect:Q,id:"tablelist",ref_key:"tableref",ref:b,style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(n,{type:"selection",width:"50"}),a(n,{prop:"list_status",label:"状态",width:"80"},{default:u(o=>[o.row.list_status===0?(d(),S(y,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[23]||(e[23]=[g("申请中",-1)])]),_:1})):c("",!0),o.row.list_status===1?(d(),S(y,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[24]||(e[24]=[g("已预约",-1)])]),_:1})):c("",!0),o.row.list_status===2?(d(),S(y,{key:2,class:"ml-2"},{default:u(()=>[...e[25]||(e[25]=[g("登记",-1)])]),_:1})):c("",!0),o.row.list_status===3?(d(),S(y,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[26]||(e[26]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(n,{prop:"reg_num",label:"登记号",width:"100"}),a(n,{prop:"user_name",label:"姓名"}),a(n,{prop:"user_sex",label:"性别",width:"60"},{default:u(o=>[o.row.user_sex==1?(d(),f("span",ct,"男")):c("",!0),o.row.user_sex==2?(d(),f("span",gt,"女")):c("",!0)]),_:1}),a(n,{prop:"age",label:"年龄",width:"115"}),a(n,{prop:"entrust",label:"医嘱",width:"200"}),a(n,{prop:"is_pay",label:"是否交费",width:"80"},{default:u(o=>[o.row.is_pay==1?(d(),f("span",vt,"是")):c("",!0),o.row.is_pay==0?(d(),f("span",ht,"否")):c("",!0)]),_:1}),a(n,{prop:"reservation_date",label:"预约日期",width:"120"}),a(n,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:u(o=>[o.row.period_begin_time&&o.row.period_end_time?(d(),f("span",yt,D(o.row.period_begin_time.substring(0,5))+"~"+D(o.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(n,{prop:"department_resources_name",label:"预约资源",width:"120"}),a(n,{prop:"devices",label:"服务组"},{default:u(o=>[C("div",bt,[(d(!0),f(le,null,ae(o.row.devices,(ye,Ie)=>(d(),f("span",{key:Ie},D(ye.device_name+" "),1))),128))])]),_:1}),a(n,{prop:"reservation_department",label:"申请科室",width:"120"}),a(n,{prop:"",label:"医嘱时间",width:"160"},{default:u(o=>[g(D(o.row.entrust_date)+" "+D(o.row.entrust_time),1)]),_:1}),a(n,{prop:"docotr",label:"申请医生",width:"80"}),a(n,{prop:"patient_type",label:"病人类型",width:"80"},{default:u(o=>[o.row.patient_type==0?(d(),f("span",wt,"住院")):c("",!0),o.row.patient_type==1?(d(),f("span",kt,"门诊")):c("",!0),o.row.patient_type==2?(d(),f("span",xt,"急诊")):c("",!0),o.row.patient_type==3?(d(),f("span",St,"体检")):c("",!0)]),_:1}),a(n,{prop:"user_phone",label:"电话",width:"120"}),a(n,{prop:"department_resources_name",label:"操作",width:"120"},{default:u(o=>[a(w,{onClick:ye=>ve(o.row),size:"small"},{default:u(()=>[...e[27]||(e[27]=[g("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Ce,_(V)]]),C("div",Dt,[a(te,{"current-page":_(Y),"onUpdate:currentPage":e[12]||(e[12]=o=>N(Y)?Y.value=o:Y=o),"page-size":_($),"onUpdate:pageSize":e[13]||(e[13]=o=>N($)?$.value=o:$=o),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:_(q),onSizeChange:H,onCurrentChange:G},null,8,["current-page","page-size","total"])]),a(l,{modelValue:_(J),"onUpdate:modelValue":e[14]||(e[14]=o=>N(J)?J.value=o:J=o),title:"变更记录",width:"50%"},{default:u(()=>[C("div",null,[a(j,{data:_(ue),style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(n,{prop:"list_status",label:"状态",width:"100"},{default:u(o=>[o.row.new_status==0?(d(),S(y,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[28]||(e[28]=[g("申请中",-1)])]),_:1})):c("",!0),o.row.new_status==1?(d(),S(y,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[29]||(e[29]=[g("已预约",-1)])]),_:1})):c("",!0),o.row.new_status==2?(d(),S(y,{key:2,class:"ml-2"},{default:u(()=>[...e[30]||(e[30]=[g("登记",-1)])]),_:1})):c("",!0),o.row.new_status==3?(d(),S(y,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[31]||(e[31]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(n,{prop:"reg_num",label:"登记号"}),a(n,{prop:"note",label:"说明"}),a(n,{prop:"created_at",label:"记录时间"}),a(n,{prop:"data",label:"状态",width:"100"},{default:u(o=>[a(w,{onClick:ye=>he(o.row.data),size:"small"},{default:u(()=>[...e[32]||(e[32]=[g("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(l,{modelValue:_(O),"onUpdate:modelValue":e[15]||(e[15]=o=>N(O)?O.value=o:O=o),title:"查看dataJson",width:"40%"},{default:u(()=>[C("div",Yt,D(_(ie)),1)]),_:1},8,["modelValue"])])}}},Vt=De(Ct,[["__scopeId","data-v-07ba882d"]]);export{Vt as default}; +${r}`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ve(t)}).catch(()=>{})},ve=t=>{M.value=!0,Te({mainlistid:H.value,planid:y.value,appointment_type:z.YuYueInfo.appointment_type,dotype:t,do_user:z.do_user}).then(e=>{M.value=!1,e.status?(h({message:"预约成功",type:"success"}),X(),B.value.length>0&&de()):ne.confirm(e.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})})},ie=()=>{if(i.value.length==0)return h.error("请选择要取消的记录"),!1;ne.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{Z.value=!0;const t=i.value.map(e=>Ue({MainListId:e.id,reg_num:e.reg_num,do_user:z.do_user}).then(l=>{l.status?h.success("取消成功"):h.error(l.msg)}).catch(l=>{h.error("取消失败"),console.error(l)}));await Promise.all(t),Z.value=!1,X()})},he=()=>{L.value="",y.value=0,D.value=Q(O.value),ee()},de=()=>{const t=i.value.filter(s=>s.list_status!=1);if(t.length>0){h.error(t.map(s=>s.entrust).join("、")+" 不可打印,请重新选择");return}const r="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+i.value.map(s=>s.entrust_id).map(s=>"OrderNoList[]="+s).join("&");fetch(r).then(s=>s.blob()).then(s=>{const m=URL.createObjectURL(s),k=document.createElement("iframe");k.style.display="none",k.src=m,k.onload=()=>{k.contentWindow.print(),URL.revokeObjectURL(m)},document.body.appendChild(k)})};return Ye(()=>{D.value=Q(),X()}),(t,e)=>{const l=v("el-table-column"),r=v("el-tag"),s=v("el-table"),m=v("el-button"),k=v("el-checkbox"),C=v("el-checkbox-group"),w=v("el-date-picker"),P=v("el-empty"),U=v("el-dialog"),q=be("loading");return d(),f("div",Ge,[Y("div",Oe,[_e((d(),x(s,{data:_(b),style:{width:"100%"},height:"300","row-key":"id",ref_key:"entrustTableRef",ref:R,"row-class-name":ce,onSelectionChange:ge},{default:u(()=>[a(l,{type:"selection",width:"50",selectable:me}),a(l,{prop:"tishi_msg",label:"",width:"100"},{default:u(n=>[n.row.tishi_msg!=""?(d(),f("span",Fe,S(n.row.tishi_msg),1)):(d(),f("span",qe,"正常"))]),_:1}),a(l,{prop:"list_status",label:"医嘱状态",width:"80"},{default:u(n=>[n.row.list_status===0?(d(),x(r,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[8]||(e[8]=[g("申请中",-1)])]),_:1})):c("",!0),n.row.list_status===1?(d(),x(r,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[9]||(e[9]=[g("已预约",-1)])]),_:1})):c("",!0),n.row.list_status===2?(d(),x(r,{key:2,class:"ml-2"},{default:u(()=>[...e[10]||(e[10]=[g("登记",-1)])]),_:1})):c("",!0),n.row.list_status===3?(d(),x(r,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[11]||(e[11]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(l,{prop:"patient_name",label:"患者姓名",width:"140"}),a(l,{prop:"user_sex_label",label:"性别",width:"60"}),a(l,{prop:"age",label:"年龄",width:"60"}),a(l,{prop:"entrust",label:"项目",width:"250"}),a(l,{prop:"is_pay",label:"是否交费",width:"80"},{default:u(n=>[n.row.is_pay==1?(d(),f("span",Ze,"是")):c("",!0),n.row.is_pay==0?(d(),f("span",Ae,"否")):c("",!0)]),_:1}),a(l,{prop:"his_is_emergency",label:"是否加急",width:"80"},{default:u(n=>[n.row.his_is_emergency==1?(d(),f("span",Je,"是")):c("",!0),n.row.his_is_emergency==0?(d(),f("span",We,"否")):c("",!0)]),_:1}),a(l,{prop:"department_resources_name",label:"预约资源",width:"120"}),a(l,{prop:"reservation_date",label:"预约日期",width:"120"}),a(l,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:u(n=>[n.row.period_begin_time&&n.row.period_end_time?(d(),f("span",Ke,S(n.row.period_begin_time.substring(0,5))+"~"+S(n.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(l,{prop:"limosis",label:"是否空腹",width:"80"},{default:u(n=>[n.row.limosis==0?(d(),f("span",He,"否")):(d(),f("span",Qe,"是"))]),_:1}),a(l,{prop:"reservation_department",label:"申请科室",width:"120"}),a(l,{prop:"",label:"医嘱时间",width:"160"},{default:u(n=>[g(S(n.row.entrust_date)+" "+S(n.row.entrust_time),1)]),_:1}),a(l,{prop:"docotr",label:"申请医生"})]),_:1},8,["data"])),[[q,_(Z)]])]),Y("div",Xe,[Y("div",et,[Y("div",tt,[(d(!0),f(le,null,ae(_(A),(n,I)=>(d(),f("div",{key:I,class:xe({"ZhenShiButton zhenshiButton_active":_(L)===n,ZhenShiButton:_(L)!==n}),onClick:N=>re(n)},S(n),11,lt))),128)),e[17]||(e[17]=Y("div",{class:"shuxian"},null,-1)),a(m,{class:"do_button",type:"success",onClick:e[0]||(e[0]=n=>F(1))},{default:u(()=>[...e[12]||(e[12]=[g("预约",-1)])]),_:1}),a(m,{class:"do_button",type:"warning",onClick:e[1]||(e[1]=n=>F(2))},{default:u(()=>[...e[13]||(e[13]=[g("更改预约时间",-1)])]),_:1}),a(m,{class:"do_button",type:"danger",onClick:e[2]||(e[2]=n=>ie())},{default:u(()=>[...e[14]||(e[14]=[g("取消预约",-1)])]),_:1}),a(m,{onClick:e[3]||(e[3]=n=>de())},{default:u(()=>[...e[15]||(e[15]=[g("打印申请单",-1)])]),_:1}),a(C,{modelValue:_(B),"onUpdate:modelValue":e[4]||(e[4]=n=>G(B)?B.value=n:B=n),style:{"margin-left":"12px"}},{default:u(()=>[a(k,{label:"1"},{default:u(()=>[...e[16]||(e[16]=[g("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"])]),Y("div",null,[a(w,{modelValue:_(O),"onUpdate:modelValue":e[5]||(e[5]=n=>G(O)?O.value=n:O=n),type:"date",placeholder:"跳转日期",onChange:e[6]||(e[6]=n=>he())},null,8,["modelValue"])])]),_e((d(),f("div",at,[Y("table",nt,[_(i).length>0?(d(),f("tr",st,[e[18]||(e[18]=Y("td",{style:{width:"120px"}},null,-1)),(d(!0),f(le,null,ae(_(D),(n,I)=>(d(),f("td",{style:{"font-weight":"700"},key:I},S(n.substring(5,10))+" "+S(se(n)),1))),128))])):c("",!0),_(D).length>0&&_($).length>0?(d(!0),f(le,{key:1},ae(_($),(n,I)=>(d(),f("tr",{key:I,class:"table_plan_row"},[(d(!0),f(le,null,ae(n,(N,te)=>(d(),f("td",{key:te,class:xe({planActive:_(y)===N.id&&_(y)!==0&&_(y),plandisable:!N.enable&&te!=="time_range"}),onClick:ke=>K(N.id)},[te=="time_range"?(d(),f("span",rt,S(N),1)):(d(),f("span",ut,S(N.use_count),1))],10,ot))),128))]))),128)):c("",!0)]),_(i).length==0?(d(),f("div",it,[a(P,{description:"请选择项目"})])):c("",!0),_(i).length>0&&_($).length==0?(d(),f("div",dt,[a(P,{description:"暂无号源"})])):c("",!0)])),[[q,_(M)]])]),a(U,{modelValue:_(T),"onUpdate:modelValue":e[7]||(e[7]=n=>G(T)?T.value=n:T=n),title:"号源占用详情",width:"50%"},{default:u(()=>[Y("div",null,[a(s,{data:_(J),style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(l,{prop:"user_name",label:"姓名"}),a(l,{prop:"user_phone",label:"电话"}),a(l,{prop:"reg_num",label:"登记号"}),a(l,{prop:"reservation_department",label:"申请科室"}),a(l,{prop:"entrust",label:"项目"}),a(l,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])])]),_:1},8,["modelValue"])])}}},pt=De(_t,[["__scopeId","data-v-cb2e7df3"]]);const ft={class:"head"},mt={class:"head"},ct={key:0},gt={key:1},vt={key:0},ht={key:1},yt={key:0},bt={style:{"white-space":"nowrap"}},wt={key:0},kt={key:1},xt={key:2},St={key:3},Dt={class:"page"},Yt={style:{"word-break":"break-all"}},Ct={__name:"MainList_ZhuYuan",setup(we){let z=Me(),Z=p(""),M=p(null),V=p(!1),b=p({}),R=p([]),D=p(1),$=p(15),A=0,L=p(0),y=p(null),i=p([]),E=p([]);const H=t=>{$.value=t,T()},O=t=>{D.value=t,T()},T=()=>{i.value=[],V.value=!0,Be({searchInfo:b.value,page:D.value,pageSize:$.value}).then(t=>{V.value=!1,t.status?(R.value=t.data.list,A=t.data.count):h.error(t.msg)})};let J=p(!1),B=p({});const se=t=>{if(i.value.length==0)return h.error("请勾选项目"),!1;if(t==1&&!i.value.every(e=>e.list_status===0))return h.error("当前勾选项目,不能预约"),!1;if(t==2&&!i.value.every(e=>e.list_status===1))return h.error("当前勾选项目,不能改约预约"),!1;B.value.entrustInfo=ce(i.value),L.value++,B.value.dotype=t,B.value.appointment_type=4,J.value=!0},pe=()=>{if(i.value.length===0)return h.error("请勾选1条记录"),!1;let t=!0;if(i.value.forEach((e,l)=>{e.list_status!=1&&(h.error(e.entrust+" 无需取消"),t=!1)}),t==!1)return!1;ne.prompt("请输入登录密码后再操作","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password"}).then(({value:e})=>{V.value=!0,je({MainListId:i.value[0].id,reg_num:i.value[0].reg_num,do_user:M.value.id,password:e}).then(l=>{V.value=!1,l.status?(h({message:l.msg,type:"success"}),T()):h.error(l.msg)})}).catch(()=>{})},Q=t=>{if(t.length>1){const l=t[0].list_status;t.every(s=>s.list_status===l)||(j(),t=[t[t.length-1]])}t[t.length-1].list_status!=0&&(j(),t=[t[t.length-1]]);let e=i.value?i.value.length:0;W(t),e>i.value.length||(E.value.length==0&&me(),E.value.length==1&&fe())},j=()=>{y.value.clearSelection(),i.value=[]},W=t=>{t?(t.forEach(e=>{e!=null&&y.value.toggleRowSelection(e,!0)}),i.value=t):j()},fe=()=>{console.log(i.value),i.value.reverse();let t=[];if(i.value[0].list_status!=0)return!1;R.value.forEach((e,l)=>{e.list_status==0&&(e.id==i.value[0].id?t.push({name:e.entrust,rowid:l,first:1}):t.push({name:e.entrust,rowid:l,first:0}))}),t.length>=2&&(V.value=!0,Se({items:t}).then(e=>{if(V.value=!1,e.status){let l=e.data.group;if(l.length>1)oe.value=!0,X.value=l;else{j();let r=[];l[0].forEach((s,m)=>{s.rowid.forEach((k,C)=>{r.push(R.value[k])})}),W(r)}}else h.error(e.msg)}))};let oe=p(!1),X=p(null);const me=()=>{console.log("开始匹配个人项目"),i.value.reverse();let t="",e=!1;if(i.value.forEach((r,s)=>{t==""&&(t=r.reg_num),t!=""&&t!=r.reg_num&&(e=!0)}),e===!0){let r=i.value[0];j(),W([r])}console.log(i.value);let l=[];if(i.value[0].list_status!=0)return!1;R.value.forEach((r,s)=>{r.list_status==0&&r.reg_num==i.value[0].reg_num&&r.episodeid==i.value[0].episodeid&&(r.id==i.value[0].id?l.push({name:r.entrust,rowid:s,first:1}):l.push({name:r.entrust,rowid:s,first:0}))}),l.length>=2&&(V.value=!0,Se({items:l}).then(r=>{if(V.value=!1,r.status){let s=r.data.group;if(s.length>1e7)oe.value=!0,X.value=s;else{j();let m=[];s[0].forEach((k,C)=>{k.rowid.forEach((w,P)=>{m.push(R.value[w])})}),W(m)}}else h.error(r.msg)}))};function ce(t){return t.reduce((e,l)=>{const r=e.find(s=>s.reg_num===l.reg_num);return r?r.entrustid.push(l.entrust_id):e.push({entrustid:[l.entrust_id],reg_num:l.reg_num,episodeid:l.episodeid}),e},[])}const ge=()=>{T()};let ee=p("");const re=()=>{Pe().then(t=>{if(t.status){ee.value=t.data.datetime;let e=t.data.datetime.substr(0,10);b.value.dateRange=[e,e],T()}})};let K=p(!1),ue=p(null),F=p(!1);const ve=t=>{K.value=!0,Ne({id:t.id}).then(e=>{e.status&&(ue.value=e.data)})};let ie=p("");const he=t=>{F.value=!0,ie.value=t},de=()=>{if(i.value.length!==1){h.error("请选择1项进行打印");return}const t=i.value[0];if(t.list_status!=1){h.error(t.entrust+" 不可打印,请重新选择");return}const l="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+("OrderNoList[]="+t.entrust_id);fetch(l).then(r=>r.blob()).then(r=>{const s=URL.createObjectURL(r),m=document.createElement("iframe");m.style.display="none",m.src=s,m.onload=()=>{m.contentWindow.print(),URL.revokeObjectURL(s)},document.body.appendChild(m)})};return Ye(()=>{if(Z.value=sessionStorage.getItem("LoginType"),z.baseInfoStatus)getStorageData(),re();else{const t=Re(()=>z.baseInfoStatus,e=>{e&&(getStorageData(),re(),t())})}}),(t,e)=>{const l=v("el-dialog"),r=v("el-date-picker"),s=v("el-form-item"),m=v("el-option"),k=v("el-select"),C=v("el-input"),w=v("el-button"),P=v("el-row"),U=v("el-checkbox"),q=v("el-checkbox-group"),n=v("el-table-column"),I=v("el-tag"),N=v("el-table"),te=v("el-pagination"),ke=be("print"),Ce=be("loading");return d(),f("div",null,[a(l,{modelValue:_(J),"onUpdate:modelValue":e[0]||(e[0]=o=>G(J)?J.value=o:J=o),width:"100%",onClose:e[1]||(e[1]=o=>ge())},{default:u(()=>[(d(),x(pt,{style:{"margin-top":"-30px"},key:_(L),YuYueInfo:_(B),ServiceDate:_(ee).substr(0,10),do_user:_(M).id},null,8,["YuYueInfo","ServiceDate","do_user"]))]),_:1},8,["modelValue"]),Y("div",ft,[Y("div",mt,[a(P,null,{default:u(()=>[a(s,null,{default:u(()=>[a(r,{style:{"margin-left":"8px",width:"300px"},modelValue:_(b).dateRange,"onUpdate:modelValue":e[2]||(e[2]=o=>_(b).dateRange=o),type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(k,{filterable:!0,clearable:"",modelValue:_(b).list_status,"onUpdate:modelValue":e[3]||(e[3]=o=>_(b).list_status=o),placeholder:"状态",style:{"margin-left":"8px",width:"150px"}},{default:u(()=>[a(m,{label:"申请中",value:"0"}),a(m,{label:"已预约",value:"1"}),a(m,{label:"已报道",value:"2"}),a(m,{label:"已结束",value:"3"})]),_:1},8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(C,{modelValue:_(b).reg_num,"onUpdate:modelValue":e[4]||(e[4]=o=>_(b).reg_num=o),placeholder:"登记号",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(s,null,{default:u(()=>[a(C,{modelValue:_(b).user_name,"onUpdate:modelValue":e[5]||(e[5]=o=>_(b).user_name=o),placeholder:"患者姓名",style:{width:"200px","margin-left":"8px"}},null,8,["modelValue"])]),_:1}),a(w,{type:"primary",onClick:e[6]||(e[6]=o=>T()),style:{"margin-left":"10px"}},{default:u(()=>[...e[16]||(e[16]=[g("查询",-1)])]),_:1})]),_:1})])]),a(P,{style:{margin:"0px 0px 8px 8px","border-top":"1px solid #ccc","padding-top":"8px"}},{default:u(()=>[a(w,{type:"success",onClick:e[7]||(e[7]=ze(o=>se(1),["prevent"]))},{default:u(()=>[...e[17]||(e[17]=[g("预 约",-1)])]),_:1}),a(w,{type:"danger",onClick:e[8]||(e[8]=o=>pe())},{default:u(()=>[...e[18]||(e[18]=[g("取消预约",-1)])]),_:1}),a(w,{type:"warning",onClick:e[9]||(e[9]=o=>se(2))},{default:u(()=>[...e[19]||(e[19]=[g("更改预约时间",-1)])]),_:1}),a(w,{onClick:e[10]||(e[10]=o=>de())},{default:u(()=>[...e[20]||(e[20]=[g("打印申请单",-1)])]),_:1}),_e((d(),x(w,null,{default:u(()=>[...e[21]||(e[21]=[g("打印表格",-1)])]),_:1})),[[ke,"#tablelist"]]),a(q,{modelValue:_(E),"onUpdate:modelValue":e[11]||(e[11]=o=>G(E)?E.value=o:E=o),style:{"margin-left":"12px"}},{default:u(()=>[a(U,{label:"1"},{default:u(()=>[...e[22]||(e[22]=[g("自动选择多人",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),_e((d(),x(N,{data:_(R),onSelect:Q,id:"tablelist",ref_key:"tableref",ref:y,style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(n,{type:"selection",width:"50"}),a(n,{prop:"list_status",label:"状态",width:"80"},{default:u(o=>[o.row.list_status===0?(d(),x(I,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[23]||(e[23]=[g("申请中",-1)])]),_:1})):c("",!0),o.row.list_status===1?(d(),x(I,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[24]||(e[24]=[g("已预约",-1)])]),_:1})):c("",!0),o.row.list_status===2?(d(),x(I,{key:2,class:"ml-2"},{default:u(()=>[...e[25]||(e[25]=[g("登记",-1)])]),_:1})):c("",!0),o.row.list_status===3?(d(),x(I,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[26]||(e[26]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(n,{prop:"reg_num",label:"登记号",width:"100"}),a(n,{prop:"user_name",label:"姓名"}),a(n,{prop:"user_sex",label:"性别",width:"60"},{default:u(o=>[o.row.user_sex==1?(d(),f("span",ct,"男")):c("",!0),o.row.user_sex==2?(d(),f("span",gt,"女")):c("",!0)]),_:1}),a(n,{prop:"age",label:"年龄",width:"115"}),a(n,{prop:"entrust",label:"医嘱",width:"200"}),a(n,{prop:"is_pay",label:"是否交费",width:"80"},{default:u(o=>[o.row.is_pay==1?(d(),f("span",vt,"是")):c("",!0),o.row.is_pay==0?(d(),f("span",ht,"否")):c("",!0)]),_:1}),a(n,{prop:"reservation_date",label:"预约日期",width:"120"}),a(n,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:u(o=>[o.row.period_begin_time&&o.row.period_end_time?(d(),f("span",yt,S(o.row.period_begin_time.substring(0,5))+"~"+S(o.row.period_end_time.substring(0,5)),1)):c("",!0)]),_:1}),a(n,{prop:"department_resources_name",label:"预约资源",width:"120"}),a(n,{prop:"devices",label:"服务组"},{default:u(o=>[Y("div",bt,[(d(!0),f(le,null,ae(o.row.devices,(ye,Ie)=>(d(),f("span",{key:Ie},S(ye.device_name+" "),1))),128))])]),_:1}),a(n,{prop:"reservation_department",label:"申请科室",width:"120"}),a(n,{prop:"",label:"医嘱时间",width:"160"},{default:u(o=>[g(S(o.row.entrust_date)+" "+S(o.row.entrust_time),1)]),_:1}),a(n,{prop:"docotr",label:"申请医生",width:"80"}),a(n,{prop:"patient_type",label:"病人类型",width:"80"},{default:u(o=>[o.row.patient_type==0?(d(),f("span",wt,"住院")):c("",!0),o.row.patient_type==1?(d(),f("span",kt,"门诊")):c("",!0),o.row.patient_type==2?(d(),f("span",xt,"急诊")):c("",!0),o.row.patient_type==3?(d(),f("span",St,"体检")):c("",!0)]),_:1}),a(n,{prop:"user_phone",label:"电话",width:"120"}),a(n,{prop:"department_resources_name",label:"操作",width:"120"},{default:u(o=>[a(w,{onClick:ye=>ve(o.row),size:"small"},{default:u(()=>[...e[27]||(e[27]=[g("查看日志",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Ce,_(V)]]),Y("div",Dt,[a(te,{"current-page":_(D),"onUpdate:currentPage":e[12]||(e[12]=o=>G(D)?D.value=o:D=o),"page-size":_($),"onUpdate:pageSize":e[13]||(e[13]=o=>G($)?$.value=o:$=o),"page-sizes":[15,50,100,200],layout:"total,sizes, prev, pager, next",total:_(A),onSizeChange:H,onCurrentChange:O},null,8,["current-page","page-size","total"])]),a(l,{modelValue:_(K),"onUpdate:modelValue":e[14]||(e[14]=o=>G(K)?K.value=o:K=o),title:"变更记录",width:"50%"},{default:u(()=>[Y("div",null,[a(N,{data:_(ue),style:{width:"100%"},"row-key":"id"},{default:u(()=>[a(n,{prop:"list_status",label:"状态",width:"100"},{default:u(o=>[o.row.new_status==0?(d(),x(I,{key:0,class:"ml-2",type:"info"},{default:u(()=>[...e[28]||(e[28]=[g("申请中",-1)])]),_:1})):c("",!0),o.row.new_status==1?(d(),x(I,{key:1,class:"ml-2",type:"success"},{default:u(()=>[...e[29]||(e[29]=[g("已预约",-1)])]),_:1})):c("",!0),o.row.new_status==2?(d(),x(I,{key:2,class:"ml-2"},{default:u(()=>[...e[30]||(e[30]=[g("登记",-1)])]),_:1})):c("",!0),o.row.new_status==3?(d(),x(I,{key:3,class:"ml-2",type:"warning"},{default:u(()=>[...e[31]||(e[31]=[g("完成",-1)])]),_:1})):c("",!0)]),_:1}),a(n,{prop:"reg_num",label:"登记号"}),a(n,{prop:"note",label:"说明"}),a(n,{prop:"created_at",label:"记录时间"}),a(n,{prop:"data",label:"状态",width:"100"},{default:u(o=>[a(w,{onClick:ye=>he(o.row.data),size:"small"},{default:u(()=>[...e[32]||(e[32]=[g("查看data",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),a(l,{modelValue:_(F),"onUpdate:modelValue":e[15]||(e[15]=o=>G(F)?F.value=o:F=o),title:"查看dataJson",width:"40%"},{default:u(()=>[Y("div",Yt,S(_(ie)),1)]),_:1},8,["modelValue"])])}}},Vt=De(Ct,[["__scopeId","data-v-07ba882d"]]);export{Vt as default}; diff --git a/Laravel/public/admin/assets/MakeListTj-ce1c55cc.js b/Laravel/public/admin/assets/MakeListTj-f7dcd02a.js similarity index 97% rename from Laravel/public/admin/assets/MakeListTj-ce1c55cc.js rename to Laravel/public/admin/assets/MakeListTj-f7dcd02a.js index 79416d4..bc3dfb2 100644 --- a/Laravel/public/admin/assets/MakeListTj-ce1c55cc.js +++ b/Laravel/public/admin/assets/MakeListTj-f7dcd02a.js @@ -1 +1 @@ -import{_ as D,Y as V,o as Y,r as n,c as R,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 A,bA as E,D as F,E as I,q as N,g as u,bz as S}from"./index-b8bae120.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=()=>{A().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,E({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&&F(()=>{M()})):I.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 Y(()=>{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=R("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]=[N("搜索",-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)}}},J=D(U,[["__scopeId","data-v-bfec251f"]]);export{J as default}; +import{_ as D,Y as V,o as Y,r as n,c as R,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 A,bA as E,D as F,E as I,q as N,g as u,bz as S}from"./index-612fedfe.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=()=>{A().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,E({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&&F(()=>{M()})):I.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 Y(()=>{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=R("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]=[N("搜索",-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)}}},J=D(U,[["__scopeId","data-v-bfec251f"]]);export{J as default}; diff --git a/Laravel/public/admin/assets/PlanList-04758f88.js b/Laravel/public/admin/assets/PlanList-04758f88.js deleted file mode 100644 index 28881e2..0000000 --- a/Laravel/public/admin/assets/PlanList-04758f88.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as gt,Y as Re,o as yt,b1 as bt,r as C,c as xt,d as r,e as c,k as f,f as n,w as o,F as D,t as E,i as a,h as ge,Z as ie,j as S,x as w,b2 as kt,q as d,l as P,g as m,I as ht,E as b,aP as wt,O as Vt,v,b3 as $e,b4 as It,b5 as Ct,p as Dt,b6 as Bt,b7 as Ue,b8 as Lt,N as ye,b9 as Et,ba as Mt,bb as St,bc as Pt,bd as zt,be as Tt,bf as Rt}from"./index-b8bae120.js";const $t={class:"head"},Ut={style:{display:"flex"},class:"planInfo"},Nt={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ot=["onClick"],Yt={key:0,class:"planTable"},At={style:{"background-color":"#f1f1f1",position:"relative"}},Ft={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},qt={style:{"min-width":"120px","font-size":"14px"}},Gt=["data-row","data-col","onMouseover","onMouseleave","onMousedown"],Xt={key:0},Zt={key:0,class:"hoverTools"},Wt=["onClick"],jt=["onClick"],Ht=["onClick"],Kt=["onClick"],Qt={class:"zong_row"},Jt={class:"qudao_title_zong"},el={class:"qudao_count_row"},tl={key:0},ll={key:0,class:"yellow bold-text"},nl={key:1},ol={class:"font_color"},al={class:"patient_type_row"},sl={class:"tps"},ul={key:2,style:{width:"100%","background-color":"#fff"}},il={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},dl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},rl={style:{"font-weight":"700"}},fl={style:{"margin-right":"16px"}},cl={class:"qudao_k_input"},pl={style:{width:"50px"}},vl={class:"qudao_k_input"},ml={class:"dialog-footer"},_l={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},gl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},yl={style:{"font-weight":"700"}},bl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},xl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},kl={style:{width:"80px"}},hl={style:{flex:"1"}},wl={style:{color:"#999","font-size":"12px"}},Vl={key:1,style:{color:"#999"}},Il={class:"dialog-footer"},Cl={style:{"margin-bottom":"16px",color:"#666"}},Dl={style:{"margin-bottom":"16px",color:"#666"}},Bl={style:{"margin-bottom":"10px"}},Ll={style:{color:"#67c23a","font-weight":"600"}},El={style:{color:"#f56c6c","font-weight":"600"}},Ml={key:0},Sl={__name:"PlanList",setup(Pl){let R=m([]),h=m(!1),Ne=m(1),Oe=m(9999),k=m([]),de=m([]),$=m(0),F=m({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),U=m(!1);const z=()=>{F.value.resources_id=q.value,de.value=mt(F.value.dateRange),h.value=!0,Bt({page:Ne.value,pageSize:Oe.value,searchInfo:F.value}).then(t=>{if(h.value=!1,t.status){R.value=[],k.value=[];let e=t.data.list;if(e.length>0){const s=new Set;e.forEach(u=>{if(u.resources_id==q.value){const p=`${u.begin_time.substring(0,5)}-${u.end_time.substring(0,5)}`;s.add(p)}}),Array.from(s).sort().forEach(u=>{const p={time_range:u};de.value.forEach(x=>{const L=e.find(M=>`${M.begin_time.substring(0,5)}-${M.end_time.substring(0,5)}`===u&&M.date===x&&M.resources_id==q.value);L?p[x]={countsInfo:L.countsInfo,patient_type_label:L.patient_type_label,status:L.status,id:L.id,resources_id:L.resources_id}:p[x]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),R.value.push(p)})}}else b.error(t.msg)})},Ye=()=>{$.value=$.value===0?1:0,$.value===0&&(k.value=[]),$.value===1&&R.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&k.value.push(t[s].id)})},Ae=t=>{k.value.indexOf(t)===-1?k.value.push(t):k.value=k.value.filter(s=>s!==t)};let be=m(null),j=m(!1),H=m({row:0,col:0,x:0,y:0}),xe=m({}),ke=m(null);const Fe=t=>{be.value=t},qe=t=>{be.value=null},Ge=(t,e,s,i)=>{j.value||Fe(e==null?void 0:e.id)},Xe=t=>{j.value||qe()},Ze=(t,e,s,i)=>{if(t.target.closest(".plan_checkbox")||i==="time_range"||!e||!e.id)return;const u=t.currentTarget,p=u.closest("tr");if(!p)return;const x=ke.value;if(!x)return;const L=x.getBoundingClientRect();j.value=!0,H.value={row:p.rowIndex,col:u.cellIndex,x:t.clientX-L.left,y:t.clientY-L.top},k.value=[e.id],$.value=0},Ie=t=>{var ve;if(!j.value)return;const e=ke.value;if(!e)return;const s=e.getBoundingClientRect(),i=t.clientX-s.left,u=t.clientY-s.top;xe.value={left:Math.min(H.value.x,i)+"px",top:Math.min(H.value.y,u)+"px",width:Math.abs(i-H.value.x)+"px",height:Math.abs(u-H.value.y)+"px"};const p=document.elementFromPoint(t.clientX,t.clientY);if(!p)return;const x=p.closest("td");if(!x)return;const L=x.closest("tr");if(!L||((ve=L.parentElement)==null?void 0:ve.tagName)==="THEAD")return;const M=L.rowIndex,X=x.cellIndex;if(X===0)return;const ce=H.value.row,Z=H.value.col,Ve=Math.min(ce,M),ne=Math.max(ce,M),W=Math.min(Z,X),pe=Math.max(Z,X);k.value=[];for(let T=Ve;T<=ne;T++){const me=R.value[T-1];if(me)for(let I=W;I<=pe;I++){if(I===0)continue;const te=de.value[I-1];if(!te)continue;const l=me[te];l&&l.id&&k.value.push(l.id)}}},Ce=()=>{j.value&&(j.value=!1,xe.value={})},We=t=>{q.value=t,$.value=0,k.value=[],z()},oe=t=>k.value.includes(t);let je=m([]);const He=()=>{h.value=!0,ht().then(t=>{h.value=!1,t.status?je.value=t.data:b.error(t.msg)})};let Ke=m([]);const Qe=()=>{h.value=!0,wt({}).then(t=>{h.value=!1,t.status?Ke.value=t.data.list:b.error(t.msg)})};let re=m([]),q=m(0);const Je=()=>{h.value=!0,Vt().then(t=>{h.value=!1,t.status?(re.value=t.data,re.value.length>0&&q.value==""&&(q.value=re.value[0].id,z())):b.error(t.msg)})};let g=m("");const et=t=>{U.value=!0,h.value=!0,Ue({id:t}).then(e=>{h.value=!1,e.status?g.value=e.data:b.error(e.msg)})},tt=t=>{console.log(t),(t===""||t==null||t===0)&&(g.value.max_total=0);let e=0,s=g.value.coutsInfo.length,i=-1;for(let u=0;u{let t=0;if(g.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(g.value.max_total))return b.error("各个渠道数量之和与当日总量不符"),!1;h.value=!0,Lt({PlanDetaiInfo:g.value}).then(e=>{h.value=!1,e.status?(U.value=!1,z()):b.error(e.msg)})},nt=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Et({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:t.msg,type:"success"}),z()):b.error(t.msg)})})},ot=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定批量禁用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Mt({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:"批量禁用成功",type:"success"}),z()):b.error(t.msg)})})},at=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定批量启用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,St({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:"批量启用成功",type:"success"}),z()):b.error(t.msg)})})};let N=m(!1),K=m(!1),De=m(0),Be=m(0),st=m(0),he=m(0),Q=m(!1),ae=m([]);const O=[{name:"医生",id:1},{name:"护士站",id:4},{name:"微信",id:2},{name:"自助机",id:3}];let G=m([]);const Le=()=>{G.value=O.map(t=>({appointment_type_id:t.id,count:""}))};Le();const Ee=Re(()=>G.value.reduce((t,e)=>t+(Number(e.count)||0),0)),ut=()=>{if(k.value.length==0){b.error("请至少勾选1条记录");return}Le();const t=new Set(k.value),e={};O.forEach(s=>{e[s.id]={count:[]}}),R.value.forEach(s=>{for(const i in s){if(i==="time_range")continue;const u=s[i];u&&u.id&&t.has(u.id)&&u.countsInfo&&u.countsInfo.forEach(p=>{e[p.appointment_type_id]&&e[p.appointment_type_id].count.push(p.count)})}}),G.value=O.map(s=>{const i=e[s.id],u=p=>p.length>0&&p.every(x=>x===p[0]);return{appointment_type_id:s.id,count:i.count.length>0&&u(i.count)?i.count[0]:""}}),De.value=0,Be.value=0,st.value=k.value.length,he.value=0,ae.value=[],K.value=!1,N.value=!0},it=async()=>{for(const u of G.value)if(Number(u.count)<0){b.error("数量不能为负数");return}if(G.value.every(u=>Number(u.count)===0)&&!await ye.confirm("所有渠道数量均为0,确定继续修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>!0).catch(()=>!1))return;const e=Ee.value;K.value=!0,De.value=0,Be.value=0,ae.value=[],he.value=0;const s=[...k.value],i=G.value.map(u=>({appointment_type_id:u.appointment_type_id,count:Number(u.count)||0}));try{const u=await Pt({ids:s,max_total:e,coutsInfo:i});K.value=!1,u&&u.status?(N.value=!1,b.success("批量修改完成"),z()):(b.error((u==null?void 0:u.msg)||"批量修改失败"),K.value=!1)}catch{K.value=!1,b.error("请求异常")}};let Y=m(!1),J=m(!1),ee=m([]),fe=m({});const Me=()=>{ee.value=O.map(t=>({appointment_type_id:t.id,locked_count:""}))};Me();const dt=Re(()=>ee.value.reduce((t,e)=>t+(Number(e.locked_count)||0),0)),rt=(t,e)=>{const s=O[t],i=fe.value[s.id];i!=null&&i.limited&&Number(e)>i.maxValue&&(ee.value[t].locked_count=i.maxValue)},ft=()=>{if(k.value.length==0){b.error("请至少勾选1条记录");return}Me();const t=new Set(k.value),e={};O.forEach(i=>{e[i.id]=[]}),R.value.forEach(i=>{for(const u in i){if(u==="time_range")continue;const p=i[u];p&&p.id&&t.has(p.id)&&p.countsInfo&&p.countsInfo.forEach(x=>{e[x.appointment_type_id]&&e[x.appointment_type_id].push(x.count)})}});const s={};O.forEach(i=>{const u=e[i.id];if(u.length>0){const p=u.every(x=>x===u[0]);s[i.id]={limited:p,maxValue:p?u[0]:null}}else s[i.id]={limited:!1,maxValue:null}}),fe.value=s,J.value=!1,Y.value=!0},ct=async()=>{for(const s of ee.value)if(Number(s.locked_count)<0){b.error("占用数量不能为负数");return}J.value=!0;const t=[...k.value],e=ee.value.map(s=>({appointment_type_id:s.appointment_type_id,locked_count:Number(s.locked_count)||0}));try{const s=await zt({ids:t,coutsInfo:e});J.value=!1,s&&s.status?(Y.value=!1,b.success("批量占位完成"),z()):(b.error((s==null?void 0:s.msg)||"批量占位失败"),J.value=!1)}catch{J.value=!1,b.error("请求异常")}};let se=m(!1),we=m(!1),Se=m(null),ue=m(null),le=m(null);const Pe=(t,e)=>{le.value=e,ue.value=t,se.value=!0,we.value=!0,Tt({planid:t.id,qudaoid:e}).then(s=>{we.value=!1,s.status?Se.value=s.data:b.error(s.msg)})};let A=m(!1),B=m(null);const pt=t=>{A.value=!0,h.value=!0,Ue({id:t.id}).then(e=>{h.value=!1,e.status?(B.value=e.data,B.value.coutsInfo.forEach(s=>{s.locked_count===null&&(s.locked_count=0)})):b.error(e.msg)})},vt=()=>{let t=[],e=!1;B.value.coutsInfo.forEach(s=>{if(e)return;const i=s.count-s.used_count;if(Number(s.locked_count)>i){b.error(`${s.name} 的占位数量不能大于剩余可用数量,最多${i}个`),e=!0;return}if(Number(s.locked_count)<0){b.error(`${s.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}),!e&&(h.value=!0,Rt({roster_detail_id:B.value.id,locked_counts:t}).then(s=>{h.value=!1,s.status?(A.value=!1,z(),b.success("占位设置保存成功")):b.error(s.msg)}))};function ze(t){const e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${i}`}function mt(t){const e=t.map(x=>new Date(x)).sort((x,L)=>x-L),s=e[0],i=e[e.length-1],u=[];let p=new Date(s);for(;p<=i;)u.push(p.toISOString().split("T")[0]),p.setDate(p.getDate()+1);return u}function _t(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return yt(()=>{const t=new Date,e=ze(t),s=new Date(t);s.setDate(t.getDate()+14);const i=ze(s);F.value.dateRange=[e,i],Qe(),Je(),He(),document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ce)}),bt(()=>{document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ce)}),(t,e)=>{const s=C("el-date-picker"),i=C("el-form-item"),u=C("el-button"),p=C("el-row"),x=C("el-icon"),L=C("el-empty"),M=C("el-tag"),X=C("el-checkbox"),ce=C("el-checkbox-group"),Z=C("el-input"),Ve=C("el-switch"),ne=C("el-form"),W=C("el-dialog"),pe=C("el-option"),ve=C("el-select"),T=C("el-table-column"),me=C("el-table"),I=C("el-col"),te=xt("loading");return r(),c("div",null,[f("div",$t,[n(p,null,{default:o(()=>[n(i,null,{default:o(()=>[n(s,{style:{"margin-left":"8px",width:"150px"},modelValue:a(F).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=l=>a(F).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=f("span",{style:{margin:"0 4px"}},"至",-1)),n(s,{style:{width:"150px"},modelValue:a(F).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=l=>a(F).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(u,{onClick:e[2]||(e[2]=l=>z()),style:{"margin-left":"10px"}},{default:o(()=>[...e[28]||(e[28]=[d("搜索",-1)])]),_:1}),n(u,{type:"danger",onClick:e[3]||(e[3]=l=>nt()),style:{"margin-left":"10px"}},{default:o(()=>[...e[29]||(e[29]=[d("删除",-1)])]),_:1}),n(u,{type:"warning",onClick:e[4]||(e[4]=l=>ot()),style:{"margin-left":"10px"}},{default:o(()=>[...e[30]||(e[30]=[d("批量禁用",-1)])]),_:1}),n(u,{type:"success",onClick:e[5]||(e[5]=l=>at()),style:{"margin-left":"10px"}},{default:o(()=>[...e[31]||(e[31]=[d("批量启用",-1)])]),_:1}),n(u,{type:"primary",onClick:e[6]||(e[6]=l=>ut()),style:{"margin-left":"10px"}},{default:o(()=>[...e[32]||(e[32]=[d("批量修改",-1)])]),_:1}),n(u,{type:"warning",onClick:e[7]||(e[7]=l=>ft()),style:{"margin-left":"10px"}},{default:o(()=>[...e[33]||(e[33]=[d("批量占位",-1)])]),_:1})]),_:1})]),f("div",Ut,[f("div",Nt,[(r(!0),c(D,null,E(a(re),(l,y)=>(r(),c("div",{key:y,onClick:_=>We(l.id),class:ie({"zhenshiButton zhenshiButtonActive":l.id===a(q),zhenshiButton:l.id!==a(q)})},v(l.department_resources_name),11,Ot))),128))]),ge((r(),c("div",{ref_key:"scrollContainer",ref:ke,style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto",position:"relative"}},[e[40]||(e[40]=f("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),a(R).length>0?(r(),c("table",Yt,[f("tr",At,[f("td",null,[f("div",Ft,[e[34]||(e[34]=f("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),f("div",{class:ie({"plan_checkAllbox plan_checkAllbox_active":a($)===1,"plan_checkAllbox ":a($)===0}),onClick:e[8]||(e[8]=l=>Ye())},[a($)===1?(r(),S(x,{key:0,color:"#ffffff"},{default:o(()=>[n(a($e))]),_:1})):w("",!0)],2)])]),(r(!0),c(D,null,E(a(de),(l,y)=>(r(),c("td",qt,v(l.substring(5,10))+" "+v(_t(l)),1))),256))]),(r(!0),c(D,null,E(a(R),(l,y)=>(r(),c("tr",{key:y},[(r(!0),c(D,null,E(l,(_,_e)=>(r(),c("td",{key:_e,"data-row":y,"data-col":_e,onMouseover:V=>Ge(V,_),onMouseleave:V=>Xe(_.id),onMousedown:V=>Ze(V,_,y,_e)},[f("div",null,[_e=="time_range"?(r(),c("span",Xt,v(_),1)):w("",!0),_.countsInfo&&_.countsInfo.length>0?(r(),c("div",{key:1,class:ie({planInfo_k:_.status==1,"planInfo_k planInfo_k_disabled":_.status==0,planInfo_k_selected:oe(_.id)&&_.status==1,planInfo_k_disabled_selected:oe(_.id)&&_.status==0})},[a(be)==_.id?(r(),c("div",Zt,[f("div",{class:"icon_k",onClick:V=>et(_.id)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(It))]),_:1}),e[35]||(e[35]=f("span",{class:"icon_text"},"编辑",-1))],8,Wt),f("div",{class:"icon_k",onClick:V=>Pe(_,0)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(Ct))]),_:1}),e[36]||(e[36]=f("span",{class:"icon_text"},"明细",-1))],8,jt),f("div",{class:"icon_k",onClick:V=>pt(_)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(Dt))]),_:1}),e[37]||(e[37]=f("span",{class:"icon_text"},"占位",-1))],8,Ht)])):w("",!0),f("div",{class:ie({"plan_checkbox plan_checkbox_active":oe(_.id),plan_checkbox:!oe(_.id)}),onClick:V=>Ae(_.id)},[oe(_.id)?(r(),S(x,{key:0,color:"#ffffff"},{default:o(()=>[n(a($e))]),_:1})):w("",!0)],10,Kt),f("div",Qt,[f("div",Jt,[e[38]||(e[38]=f("span",null,"总数:",-1)),d(v(_.countsInfo[0].max_total),1)])]),f("div",el,[(r(!0),c(D,null,E(_.countsInfo,(V,Te)=>(r(),c(D,{key:Te},[V&&!(V.count===0&&V.used_count===0)?(r(),c("div",tl,[f("span",null,v(V.jiancheng),1),f("span",null,[V.locked_count?(r(),c("span",ll,v(V.locked_count),1)):w("",!0),V.locked_count?(r(),c("span",nl,"/")):w("",!0),f("span",ol,v(V.used_count),1),d("/"+v(V.count),1)])])):w("",!0)],64))),128))]),f("div",al,[(r(!0),c(D,null,E(_.patient_type_label,(V,Te)=>(r(),c("div",sl,v(V),1))),256))])],2)):w("",!0)])],40,Gt))),128))]))),128))])):w("",!0),a(j)?(r(),c("div",{key:1,class:"drag-selection-overlay",style:kt(a(xe))},null,4)):w("",!0),a(R).length==0?(r(),c("div",ul,[e[39]||(e[39]=d("> ",-1)),n(L,{description:"暂无号源"})])):w("",!0)])),[[te,a(h)]])]),n(W,{modelValue:a(U),"onUpdate:modelValue":e[13]||(e[13]=l=>P(U)?U.value=l:U=l),title:"修改",width:"40%"},{footer:o(()=>[f("span",ml,[n(u,{onClick:e[12]||(e[12]=l=>P(U)?U.value=!1:U=!1)},{default:o(()=>[...e[50]||(e[50]=[d("取消",-1)])]),_:1}),n(u,{type:"primary",onClick:lt},{default:o(()=>[...e[51]||(e[51]=[d(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ge((r(),c("div",null,[a(g)?(r(),S(ne,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[n(i,{label:"日期:"},{default:o(()=>[d(v(a(g).date),1)]),_:1}),n(i,{label:"星期:"},{default:o(()=>[d(v(a(g).weekname),1)]),_:1}),n(i,{label:"科室:"},{default:o(()=>[d(v(a(g).department_name),1)]),_:1}),w("",!0),w("",!0),n(i,{label:"病人类型:"},{default:o(()=>[n(ce,{disabled:"",modelValue:a(g).patientType,"onUpdate:modelValue":e[9]||(e[9]=l=>a(g).patientType=l)},{default:o(()=>[n(X,{label:"0"},{default:o(()=>[...e[41]||(e[41]=[d("住院",-1)])]),_:1}),n(X,{label:"1"},{default:o(()=>[...e[42]||(e[42]=[d("门诊",-1)])]),_:1}),n(X,{label:"2"},{default:o(()=>[...e[43]||(e[43]=[d("急诊",-1)])]),_:1}),n(X,{label:"3"},{default:o(()=>[...e[44]||(e[44]=[d("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(i,{label:"时间段:"},{default:o(()=>[e[45]||(e[45]=d(" 开始时间:",-1)),f("span",il,v(a(g).begin_time),1),e[46]||(e[46]=d(" 结束时间:",-1)),f("span",dl,v(a(g).end_time),1),e[47]||(e[47]=d(" 停止预约时间:",-1)),f("span",rl,v(a(g).end_reservation_time),1)]),_:1}),a(g).coutsInfo?(r(),S(i,{key:2,label:"渠道名额:"},{default:o(()=>[f("div",fl,[e[48]||(e[48]=f("div",null,"当日总量",-1)),f("div",cl,[n(Z,{onInput:tt,type:"number",modelValue:a(g).max_total,"onUpdate:modelValue":e[10]||(e[10]=l=>a(g).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[49]||(e[49]=f("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),f("div",null,[(r(!0),c(D,null,E(a(g).coutsInfo,(l,y)=>(r(),c("div",{class:"qudao_k",key:y},[f("div",pl,v(l.name),1),f("div",vl,[n(Z,{type:"number",modelValue:a(g).coutsInfo[y].count,"onUpdate:modelValue":_=>a(g).coutsInfo[y].count=_,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):w("",!0),n(i,{label:"状态:"},{default:o(()=>[n(Ve,{modelValue:a(g).status,"onUpdate:modelValue":e[11]||(e[11]=l=>a(g).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(i,{label:"添加时间:"},{default:o(()=>[d(v(a(g).created_at),1)]),_:1})]),_:1})):w("",!0)])),[[te,a(h)]])]),_:1},8,["modelValue"]),n(W,{modelValue:a(se),"onUpdate:modelValue":e[16]||(e[16]=l=>P(se)?se.value=l:se=l),title:"预约明细",width:"60%"},{default:o(()=>[f("div",null,[f("div",_l,[d(v(a(ue).department_resources_name)+" ",1),(r(!0),c(D,null,E(a(ue).devices,(l,y)=>(r(),c("span",{key:y,class:ie(l.status==1&&l.is_del==0?"":"hongzi")},v(l.device_name),3))),128))]),n(i,{label:"渠道"},{default:o(()=>[n(ve,{filterable:!0,clearable:"",modelValue:a(le),"onUpdate:modelValue":e[14]||(e[14]=l=>P(le)?le.value=l:le=l),onChange:e[15]||(e[15]=l=>Pe(a(ue),a(le))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[n(pe,{label:"全部",value:0}),(r(!0),c(D,null,E(a(ue).countsInfo,(l,y)=>(r(),S(pe,{key:y,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ge((r(),S(me,{data:a(Se),style:{width:"100%"},"row-key":"id"},{default:o(()=>[n(T,{prop:"list_status",label:"状态",width:"100"},{default:o(l=>[l.row.list_status===0?(r(),S(M,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[52]||(e[52]=[d("申请中",-1)])]),_:1})):w("",!0),l.row.list_status===1?(r(),S(M,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[53]||(e[53]=[d("已预约",-1)])]),_:1})):w("",!0),l.row.list_status===2?(r(),S(M,{key:2,class:"ml-2"},{default:o(()=>[...e[54]||(e[54]=[d("登记",-1)])]),_:1})):w("",!0),l.row.list_status===3?(r(),S(M,{key:3,class:"ml-2",type:"warning"},{default:o(()=>[...e[55]||(e[55]=[d("完成",-1)])]),_:1})):w("",!0)]),_:1}),n(T,{prop:"user_name",label:"姓名"}),n(T,{prop:"user_phone",label:"电话"}),n(T,{prop:"reg_num",label:"登记号"}),n(T,{prop:"reservation_department",label:"申请科室"}),n(T,{prop:"entrust",label:"项目"}),n(T,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[te,a(we)]])])]),_:1},8,["modelValue"]),n(W,{modelValue:a(A),"onUpdate:modelValue":e[18]||(e[18]=l=>P(A)?A.value=l:A=l),title:"占位设置",width:"40%"},{footer:o(()=>[f("span",Il,[n(u,{onClick:e[17]||(e[17]=l=>P(A)?A.value=!1:A=!1)},{default:o(()=>[...e[58]||(e[58]=[d("取消",-1)])]),_:1}),n(u,{type:"primary",onClick:vt},{default:o(()=>[...e[59]||(e[59]=[d(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ge((r(),c("div",null,[a(B)?(r(),S(ne,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:o(()=>[n(i,{label:"日期:"},{default:o(()=>[d(v(a(B).date),1)]),_:1}),n(i,{label:"星期:"},{default:o(()=>[d(v(a(B).weekname),1)]),_:1}),n(i,{label:"科室:"},{default:o(()=>[d(v(a(B).department_name),1)]),_:1}),n(i,{label:"资源:"},{default:o(()=>[d(v(a(B).resources_name),1)]),_:1}),n(i,{label:"服务组:"},{default:o(()=>[(r(!0),c(D,null,E(a(B).devices,(l,y)=>(r(),S(M,{key:y,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:o(()=>[d(v(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),n(i,{label:"时间段:"},{default:o(()=>[e[56]||(e[56]=d(" 开始时间:",-1)),f("span",gl,v(a(B).begin_time),1),e[57]||(e[57]=d(" 结束时间:",-1)),f("span",yl,v(a(B).end_time),1)]),_:1}),n(i,{label:"渠道占位:"},{default:o(()=>[f("div",bl,[a(B).coutsInfo&&a(B).coutsInfo.length>0?(r(!0),c(D,{key:0},E(a(B).coutsInfo,(l,y)=>(r(),c(D,{key:y},[l&&!(l.count===0&&l.used_count===0)?(r(),c("div",xl,[f("div",kl,v(l.name),1),f("div",hl,[n(Z,{type:"number",modelValue:a(B).coutsInfo[y].locked_count,"onUpdate:modelValue":_=>a(B).coutsInfo[y].locked_count=_,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),f("div",wl," 剩余可用: "+v(l.count-l.used_count),1)])):w("",!0)],64))),128)):(r(),c("div",Vl," 暂无渠道数据 "))])]),_:1})]),_:1})):w("",!0)])),[[te,a(h)]])]),_:1},8,["modelValue"]),n(W,{modelValue:a(N),"onUpdate:modelValue":e[21]||(e[21]=l=>P(N)?N.value=l:N=l),title:"批量修改",width:"45%","close-on-click-modal":!1},{footer:o(()=>[n(u,{onClick:e[19]||(e[19]=l=>P(N)?N.value=!1:N=!1),disabled:a(K)},{default:o(()=>[...e[63]||(e[63]=[d("取消",-1)])]),_:1},8,["disabled"]),n(u,{type:"primary",onClick:e[20]||(e[20]=l=>it()),disabled:a(K)},{default:o(()=>[...e[64]||(e[64]=[d("确定修改",-1)])]),_:1},8,["disabled"])]),default:o(()=>[f("div",null,[f("div",Cl,"已选 "+v(a(k).length)+" 条号源明细",1),n(ne,{"label-width":"100px"},{default:o(()=>[n(p,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[n(I,{span:6},{default:o(()=>[...e[60]||(e[60]=[d("渠道名称",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[61]||(e[61]=[d("数量",-1)])]),_:1})]),_:1}),(r(),c(D,null,E(O,(l,y)=>n(p,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px"}},{default:o(()=>[d(v(l.name),1)]),_:2},1024),n(I,{span:8},{default:o(()=>[n(Z,{modelValue:a(G)[y].count,"onUpdate:modelValue":_=>a(G)[y].count=_,modelModifiers:{number:!0},placeholder:"数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)),64)),n(p,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[62]||(e[62]=[d("合计",-1)])]),_:1}),n(I,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[d("数量: "+v(Ee.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(W,{modelValue:a(Y),"onUpdate:modelValue":e[24]||(e[24]=l=>P(Y)?Y.value=l:Y=l),title:"批量占位",width:"45%","close-on-click-modal":!1},{footer:o(()=>[n(u,{onClick:e[22]||(e[22]=l=>P(Y)?Y.value=!1:Y=!1),disabled:a(J)},{default:o(()=>[...e[69]||(e[69]=[d("取消",-1)])]),_:1},8,["disabled"]),n(u,{type:"warning",onClick:e[23]||(e[23]=l=>ct()),disabled:a(J)},{default:o(()=>[...e[70]||(e[70]=[d("确定占位",-1)])]),_:1},8,["disabled"])]),default:o(()=>[f("div",null,[f("div",Dl,"已选 "+v(a(k).length)+" 条号源明细",1),n(ne,{"label-width":"100px"},{default:o(()=>[n(p,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[n(I,{span:6},{default:o(()=>[...e[65]||(e[65]=[d("渠道名称",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[66]||(e[66]=[d("占用数量",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[67]||(e[67]=[d("提示",-1)])]),_:1})]),_:1}),(r(),c(D,null,E(O,(l,y)=>n(p,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px"}},{default:o(()=>[d(v(l.name),1)]),_:2},1024),n(I,{span:8},{default:o(()=>[n(Z,{modelValue:a(ee)[y].locked_count,"onUpdate:modelValue":_=>a(ee)[y].locked_count=_,modelModifiers:{number:!0},placeholder:"占用数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')",onInput:_=>rt(y,_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),n(I,{span:8,style:{"line-height":"32px","font-size":"12px",color:"#999"}},{default:o(()=>{var _;return[(_=a(fe)[l.id])!=null&&_.limited?(r(),c(D,{key:0},[d(" 最大可占: "+v(a(fe)[l.id].maxValue),1)],64)):(r(),c(D,{key:1},[d(" 剩余数量不一致 ")],64))]}),_:2},1024)]),_:2},1024)),64)),n(p,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[68]||(e[68]=[d("合计",-1)])]),_:1}),n(I,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[d("占用: "+v(dt.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(W,{modelValue:a(Q),"onUpdate:modelValue":e[26]||(e[26]=l=>P(Q)?Q.value=l:Q=l),title:"修改结果",width:"40%"},{footer:o(()=>[n(u,{type:"primary",onClick:e[25]||(e[25]=l=>{P(Q)?Q.value=!1:Q=!1,z()})},{default:o(()=>[...e[74]||(e[74]=[d("确定",-1)])]),_:1})]),default:o(()=>[f("div",null,[f("div",Bl,[e[71]||(e[71]=d(" 成功: ",-1)),f("span",Ll,v(a(he)),1),e[72]||(e[72]=d(" 条 失败: ",-1)),f("span",El,v(a(ae).length),1),e[73]||(e[73]=d(" 条 ",-1))]),a(ae).length>0?(r(),c("div",Ml,[(r(!0),c(D,null,E(a(ae),(l,y)=>(r(),c("div",{key:y,style:{padding:"4px 0","font-size":"13px",color:"#f56c6c"}}," 第 "+v(l.index+1)+" 条(ID: "+v(l.id)+") → "+v(l.msg),1))),128))])):w("",!0)])]),_:1},8,["modelValue"])])}}},Tl=gt(Sl,[["__scopeId","data-v-94df6353"]]);export{Tl as default}; diff --git a/Laravel/public/admin/assets/PlanList-58efd447.css b/Laravel/public/admin/assets/PlanList-58efd447.css deleted file mode 100644 index 54a7f5d..0000000 --- a/Laravel/public/admin/assets/PlanList-58efd447.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-94df6353]{display:flex}.type_count div[data-v-94df6353]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-94df6353]{display:flex}.qudao_k_input[data-v-94df6353]{width:150px}.hongzi[data-v-94df6353]{color:#b25252}.yiyong[data-v-94df6353]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-94df6353]:hover{color:#666}.zhenshiButton[data-v-94df6353]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-94df6353]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-94df6353]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-94df6353]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-94df6353]{background-color:#ffd6d2}.planInfo_k[data-v-94df6353]{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-94df6353]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-94df6353]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-94df6353]{font-weight:500}.planInfo_k .plan_checkbox[data-v-94df6353]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-94df6353]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-94df6353]{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-94df6353]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-94df6353]{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-94df6353]{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-94df6353]{display:flex}.planInfo_k .qudao_count_row div[data-v-94df6353]{margin-left:6px}.planInfo .planTable[data-v-94df6353]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333;user-select:none;-webkit-user-select:none}.planInfo .planTable td[data-v-94df6353]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-94df6353]:first-child,.planInfo .planTable th[data-v-94df6353]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-94df6353]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-94df6353]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-94df6353]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-94df6353]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-94df6353]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-94df6353]{width:100px}.yellow[data-v-94df6353]{color:#ffaa7f}.red[data-v-94df6353]{color:#c81e00}.bold-text[data-v-94df6353]{font-weight:700}.drag-selection-overlay[data-v-94df6353]{position:absolute;top:0;left:0;background:rgba(64,158,255,.12);border:1px solid rgba(64,158,255,.5);pointer-events:none;z-index:10}.planInfo_k_selected[data-v-94df6353]{background-color:#e6f7ff;outline:2px solid #409eff;outline-offset:-2px;border-radius:4px}.planInfo_k_disabled_selected[data-v-94df6353]{background-color:#f3e8ff;outline:2px solid #7c3aed;outline-offset:-2px;border-radius:4px} diff --git a/Laravel/public/admin/assets/PlanList-75bd7e04.css b/Laravel/public/admin/assets/PlanList-75bd7e04.css new file mode 100644 index 0000000..b30bad1 --- /dev/null +++ b/Laravel/public/admin/assets/PlanList-75bd7e04.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-0b17152b]{display:flex}.type_count div[data-v-0b17152b]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-0b17152b]{display:flex}.qudao_k_input[data-v-0b17152b]{width:150px}.hongzi[data-v-0b17152b]{color:#b25252}.yiyong[data-v-0b17152b]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-0b17152b]:hover{color:#666}.zhenshiButton[data-v-0b17152b]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-0b17152b]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-0b17152b]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-0b17152b]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-0b17152b]{background-color:#ffd6d2}.planInfo_k[data-v-0b17152b]{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-0b17152b]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-0b17152b]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-0b17152b]{font-weight:500}.planInfo_k .plan_checkbox[data-v-0b17152b]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-0b17152b]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-0b17152b]{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-0b17152b]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-0b17152b]{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-0b17152b]{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-0b17152b]{display:flex}.planInfo_k .qudao_count_row div[data-v-0b17152b]{margin-left:6px}.planInfo .planTable[data-v-0b17152b]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333;user-select:none;-webkit-user-select:none}.planInfo .planTable td[data-v-0b17152b]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-0b17152b]:first-child,.planInfo .planTable th[data-v-0b17152b]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-0b17152b]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-0b17152b]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-0b17152b]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-0b17152b]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-0b17152b]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-0b17152b]{width:100px}.yellow[data-v-0b17152b]{color:#ffaa7f}.red[data-v-0b17152b]{color:#c81e00}.bold-text[data-v-0b17152b]{font-weight:700}.drag-selection-overlay[data-v-0b17152b]{position:absolute;top:0;left:0;background:rgba(64,158,255,.12);border:1px solid rgba(64,158,255,.5);pointer-events:none;z-index:10}.planInfo_k_selected[data-v-0b17152b]{background-color:#e6f7ff;outline:2px solid #409eff;outline-offset:-2px;border-radius:4px}.planInfo_k_disabled_selected[data-v-0b17152b]{background-color:#f3e8ff;outline:2px solid #7c3aed;outline-offset:-2px;border-radius:4px} diff --git a/Laravel/public/admin/assets/PlanList-432a9fa0.js b/Laravel/public/admin/assets/PlanList-78af4c26.js similarity index 99% rename from Laravel/public/admin/assets/PlanList-432a9fa0.js rename to Laravel/public/admin/assets/PlanList-78af4c26.js index 204db36..82b2757 100644 --- a/Laravel/public/admin/assets/PlanList-432a9fa0.js +++ b/Laravel/public/admin/assets/PlanList-78af4c26.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 F,i as a,j as c,l as P,g,b6 as ce,I as xe,E as h,W as we,F as V,t as C,q as i,v as m,x as w,Z as J,b7 as ke,b8 as Ve,be as Ce,O as De}from"./index-b8bae120.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"},Fe={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Xe={__name:"PlanList",setup(Te){let k=g(!1),X=g([]),L=g(1),U=g(15),T=0;const K=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=>{X.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}]),j=g([]);const ne=()=>{k.value=!0,xe().then(u=>{k.value=!1,u.status?j.value=u.data:h.error(u.msg)})};let A=g([]);const oe=()=>{k.value=!0,we({is_all:!0}).then(u=>{k.value=!1,u.status?A.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),O=g(null),E=g(null),z=g(null);const Q=(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?O.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"),W=y("el-date-picker"),R=y("el-button"),pe=y("el-row"),r=y("el-table-column"),I=y("el-tag"),Z=y("el-table"),me=y("el-pagination"),S=y("el-checkbox"),_e=y("el-checkbox-group"),$=y("el-input"),fe=y("el-switch"),ve=y("el-form"),H=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(A),(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(j),(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(W,{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(W,{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})]),F((s(),c(Z,{data:a(X),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:J(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:je=>Q(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:K,onCurrentChange:ee},null,8,["current-page","page-size","total"])]),t(H,{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(()=>[F((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($,{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($,{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(H,{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",Fe,[i(m(a(E).department_resources_name)+" ",1),(s(!0),_(V,null,C(a(E).devices,(l,d)=>(s(),_("span",{key:d,class:J(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=>Q(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}),F((s(),c(Z,{data:a(O),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"])])}}},Oe=ge(Xe,[["__scopeId","data-v-903303d6"]]);export{Oe 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 F,i as a,j as c,l as P,g,b6 as ce,I as xe,E as h,W as we,F as V,t as C,q as i,v as m,x as w,Z as J,b7 as ke,b8 as Ve,be as Ce,O as De}from"./index-612fedfe.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"},Fe={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},Xe={__name:"PlanList",setup(Te){let k=g(!1),X=g([]),L=g(1),U=g(15),T=0;const K=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=>{X.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}]),j=g([]);const ne=()=>{k.value=!0,xe().then(u=>{k.value=!1,u.status?j.value=u.data:h.error(u.msg)})};let A=g([]);const oe=()=>{k.value=!0,we({is_all:!0}).then(u=>{k.value=!1,u.status?A.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),O=g(null),E=g(null),z=g(null);const Q=(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?O.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"),W=y("el-date-picker"),R=y("el-button"),pe=y("el-row"),r=y("el-table-column"),I=y("el-tag"),Z=y("el-table"),me=y("el-pagination"),S=y("el-checkbox"),_e=y("el-checkbox-group"),$=y("el-input"),fe=y("el-switch"),ve=y("el-form"),H=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(A),(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(j),(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(W,{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(W,{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})]),F((s(),c(Z,{data:a(X),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:J(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:je=>Q(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:K,onCurrentChange:ee},null,8,["current-page","page-size","total"])]),t(H,{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(()=>[F((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($,{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($,{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(H,{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",Fe,[i(m(a(E).department_resources_name)+" ",1),(s(!0),_(V,null,C(a(E).devices,(l,d)=>(s(),_("span",{key:d,class:J(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=>Q(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}),F((s(),c(Z,{data:a(O),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"])])}}},Oe=ge(Xe,[["__scopeId","data-v-903303d6"]]);export{Oe as default}; diff --git a/Laravel/public/admin/assets/PlanList-d925a6cb.js b/Laravel/public/admin/assets/PlanList-d925a6cb.js new file mode 100644 index 0000000..f1a585b --- /dev/null +++ b/Laravel/public/admin/assets/PlanList-d925a6cb.js @@ -0,0 +1 @@ +import{_ as gt,Y as Re,o as yt,b1 as bt,r as C,c as xt,d as f,e as v,k as d,f as n,w as o,F as L,t as M,i as a,h as ge,Z as oe,j as S,x as w,b2 as kt,l as P,g as m,I as ht,E as b,aP as wt,O as Vt,q as r,v as c,b3 as $e,b4 as It,b5 as Ct,p as Dt,b6 as Bt,b7 as Ue,b8 as Lt,N as ye,b9 as Mt,ba as Et,bb as St,bc as Pt,bd as zt,be as Tt,bf as Rt}from"./index-612fedfe.js";const $t={class:"head"},Ut={style:{display:"flex"},class:"planInfo"},Nt={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ot=["onClick"],Yt={style:{flex:"1","min-width":"0"}},At={key:0,class:"planTable"},Ft={style:{"background-color":"#f1f1f1",position:"relative"}},qt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},Gt={style:{"min-width":"120px","font-size":"14px"}},Xt=["data-row","data-col","onMouseover","onMouseleave","onMousedown"],Zt={key:0},Wt={key:0,class:"hoverTools"},jt=["onClick"],Ht=["onClick"],Kt=["onClick"],Qt=["onClick"],Jt={class:"zong_row"},el={class:"qudao_title_zong"},tl={class:"qudao_count_row"},ll={key:0},nl={class:"font_color"},ol={class:"patient_type_row"},al={class:"tps"},sl={key:2,style:{width:"100%","background-color":"#fff"}},ul={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},il={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},dl={style:{"font-weight":"700"}},rl={style:{"margin-right":"16px"}},fl={class:"qudao_k_input"},cl={style:{width:"50px"}},pl={class:"qudao_k_input"},vl={class:"dialog-footer"},ml={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},_l={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},gl={style:{"font-weight":"700"}},yl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},bl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},xl={style:{width:"80px"}},kl={style:{flex:"1"}},hl={style:{color:"#999","font-size":"12px"}},wl={key:1,style:{color:"#999"}},Vl={class:"dialog-footer"},Il={style:{"margin-bottom":"16px",color:"#666"}},Cl={style:{"margin-bottom":"16px",color:"#666"}},Dl={style:{"margin-bottom":"10px"}},Bl={style:{color:"#67c23a","font-weight":"600"}},Ll={style:{color:"#f56c6c","font-weight":"600"}},Ml={key:0},El={__name:"PlanList",setup(Sl){let R=m([]),h=m(!1),Ne=m(1),Oe=m(9999),k=m([]),de=m([]),$=m(0),F=m({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),U=m(!1);const z=()=>{F.value.resources_id=q.value,de.value=mt(F.value.dateRange),h.value=!0,Bt({page:Ne.value,pageSize:Oe.value,searchInfo:F.value}).then(t=>{if(h.value=!1,t.status){R.value=[],k.value=[];let e=t.data.list;if(e.length>0){const s=new Set;e.forEach(u=>{if(u.resources_id==q.value){const p=`${u.begin_time.substring(0,5)}-${u.end_time.substring(0,5)}`;s.add(p)}}),Array.from(s).sort().forEach(u=>{const p={time_range:u};de.value.forEach(x=>{const B=e.find(E=>`${E.begin_time.substring(0,5)}-${E.end_time.substring(0,5)}`===u&&E.date===x&&E.resources_id==q.value);B?p[x]={countsInfo:B.countsInfo,patient_type_label:B.patient_type_label,status:B.status,id:B.id,resources_id:B.resources_id}:p[x]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),R.value.push(p)})}}else b.error(t.msg)})},Ye=()=>{$.value=$.value===0?1:0,$.value===0&&(k.value=[]),$.value===1&&R.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&k.value.push(t[s].id)})},Ae=t=>{k.value.indexOf(t)===-1?k.value.push(t):k.value=k.value.filter(s=>s!==t)};let be=m(null),j=m(!1),H=m({row:0,col:0,x:0,y:0}),xe=m({}),ke=m(null);const Fe=t=>{be.value=t},qe=t=>{be.value=null},Ge=(t,e,s,i)=>{j.value||Fe(e==null?void 0:e.id)},Xe=t=>{j.value||qe()},Ze=(t,e,s,i)=>{if(t.target.closest(".plan_checkbox")||i==="time_range"||!e||!e.id)return;const u=t.currentTarget,p=u.closest("tr");if(!p)return;const x=ke.value;if(!x)return;const B=x.getBoundingClientRect();j.value=!0,H.value={row:p.rowIndex,col:u.cellIndex,x:t.clientX-B.left+x.scrollLeft,y:t.clientY-B.top+x.scrollTop},k.value=[e.id],$.value=0},Ie=t=>{var ve;if(!j.value)return;const e=ke.value;if(!e)return;const s=e.getBoundingClientRect(),i=t.clientX-s.left+e.scrollLeft,u=t.clientY-s.top+e.scrollTop;xe.value={left:Math.min(H.value.x,i)+"px",top:Math.min(H.value.y,u)+"px",width:Math.abs(i-H.value.x)+"px",height:Math.abs(u-H.value.y)+"px"};const p=document.elementFromPoint(t.clientX,t.clientY);if(!p)return;const x=p.closest("td");if(!x)return;const B=x.closest("tr");if(!B||((ve=B.parentElement)==null?void 0:ve.tagName)==="THEAD")return;const E=B.rowIndex,X=x.cellIndex;if(X===0)return;const ce=H.value.row,Z=H.value.col,Ve=Math.min(ce,E),ne=Math.max(ce,E),W=Math.min(Z,X),pe=Math.max(Z,X);k.value=[];for(let T=Ve;T<=ne;T++){const me=R.value[T-1];if(me)for(let I=W;I<=pe;I++){if(I===0)continue;const te=de.value[I-1];if(!te)continue;const l=me[te];l&&l.id&&k.value.push(l.id)}}},Ce=()=>{j.value&&(j.value=!1,xe.value={})},We=t=>{q.value=t,$.value=0,k.value=[],z()},ae=t=>k.value.includes(t);let je=m([]);const He=()=>{h.value=!0,ht().then(t=>{h.value=!1,t.status?je.value=t.data:b.error(t.msg)})};let Ke=m([]);const Qe=()=>{h.value=!0,wt({}).then(t=>{h.value=!1,t.status?Ke.value=t.data.list:b.error(t.msg)})};let re=m([]),q=m(0);const Je=()=>{h.value=!0,Vt().then(t=>{h.value=!1,t.status?(re.value=t.data,re.value.length>0&&q.value==""&&(q.value=re.value[0].id,z())):b.error(t.msg)})};let g=m("");const et=t=>{U.value=!0,h.value=!0,Ue({id:t}).then(e=>{h.value=!1,e.status?g.value=e.data:b.error(e.msg)})},tt=t=>{console.log(t),(t===""||t==null||t===0)&&(g.value.max_total=0);let e=0,s=g.value.coutsInfo.length,i=-1;for(let u=0;u{let t=0;if(g.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(g.value.max_total))return b.error("各个渠道数量之和与当日总量不符"),!1;h.value=!0,Lt({PlanDetaiInfo:g.value}).then(e=>{h.value=!1,e.status?(U.value=!1,z()):b.error(e.msg)})},nt=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Mt({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:t.msg,type:"success"}),z()):b.error(t.msg)})})},ot=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定批量禁用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Et({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:"批量禁用成功",type:"success"}),z()):b.error(t.msg)})})},at=()=>{if(k.value.length==0)return b.error("请至少勾选1条记录"),!1;ye.confirm("确定批量启用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,St({ids:k.value}).then(t=>{h.value=!1,t.status?(b({message:"批量启用成功",type:"success"}),z()):b.error(t.msg)})})};let N=m(!1),K=m(!1),De=m(0),Be=m(0),st=m(0),he=m(0),Q=m(!1),se=m([]);const O=[{name:"医生",id:1},{name:"护士站",id:4},{name:"微信",id:2},{name:"自助机",id:3}];let G=m([]);const Le=()=>{G.value=O.map(t=>({appointment_type_id:t.id,count:""}))};Le();const Me=Re(()=>G.value.reduce((t,e)=>t+(Number(e.count)||0),0)),ut=()=>{if(k.value.length==0){b.error("请至少勾选1条记录");return}Le();const t=new Set(k.value),e={};O.forEach(s=>{e[s.id]={count:[]}}),R.value.forEach(s=>{for(const i in s){if(i==="time_range")continue;const u=s[i];u&&u.id&&t.has(u.id)&&u.countsInfo&&u.countsInfo.forEach(p=>{e[p.appointment_type_id]&&e[p.appointment_type_id].count.push(p.count)})}}),G.value=O.map(s=>{const i=e[s.id],u=p=>p.length>0&&p.every(x=>x===p[0]);return{appointment_type_id:s.id,count:i.count.length>0&&u(i.count)?i.count[0]:""}}),De.value=0,Be.value=0,st.value=k.value.length,he.value=0,se.value=[],K.value=!1,N.value=!0},it=async()=>{for(const u of G.value)if(Number(u.count)<0){b.error("数量不能为负数");return}if(G.value.every(u=>Number(u.count)===0)&&!await ye.confirm("所有渠道数量均为0,确定继续修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>!0).catch(()=>!1))return;const e=Me.value;K.value=!0,De.value=0,Be.value=0,se.value=[],he.value=0;const s=[...k.value],i=G.value.map(u=>({appointment_type_id:u.appointment_type_id,count:Number(u.count)||0}));try{const u=await Pt({ids:s,max_total:e,coutsInfo:i});K.value=!1,u&&u.status?(N.value=!1,b.success("批量修改完成"),z()):(b.error((u==null?void 0:u.msg)||"批量修改失败"),K.value=!1)}catch{K.value=!1,b.error("请求异常")}};let Y=m(!1),J=m(!1),ee=m([]),fe=m({});const Ee=()=>{ee.value=O.map(t=>({appointment_type_id:t.id,locked_count:""}))};Ee();const dt=Re(()=>ee.value.reduce((t,e)=>t+(Number(e.locked_count)||0),0)),rt=(t,e)=>{const s=O[t],i=fe.value[s.id];i!=null&&i.limited&&Number(e)>i.maxValue&&(ee.value[t].locked_count=i.maxValue)},ft=()=>{if(k.value.length==0){b.error("请至少勾选1条记录");return}Ee();const t=new Set(k.value),e={};O.forEach(i=>{e[i.id]=[]}),R.value.forEach(i=>{for(const u in i){if(u==="time_range")continue;const p=i[u];p&&p.id&&t.has(p.id)&&p.countsInfo&&p.countsInfo.forEach(x=>{e[x.appointment_type_id]&&e[x.appointment_type_id].push(x.count-x.used_count)})}});const s={};O.forEach(i=>{const u=e[i.id];if(u.length>0){const p=Math.min(...u);s[i.id]={limited:!0,maxValue:p}}else s[i.id]={limited:!1,maxValue:null}}),fe.value=s,J.value=!1,Y.value=!0},ct=async()=>{for(const s of ee.value)if(Number(s.locked_count)<0){b.error("占用数量不能为负数");return}J.value=!0;const t=[...k.value],e=ee.value.map(s=>({appointment_type_id:s.appointment_type_id,locked_count:Number(s.locked_count)||0}));try{const s=await zt({ids:t,coutsInfo:e});J.value=!1,s&&s.status?(Y.value=!1,b.success("批量占位完成"),z()):(b.error((s==null?void 0:s.msg)||"批量占位失败"),J.value=!1)}catch{J.value=!1,b.error("请求异常")}};let ue=m(!1),we=m(!1),Se=m(null),ie=m(null),le=m(null);const Pe=(t,e)=>{le.value=e,ie.value=t,ue.value=!0,we.value=!0,Tt({planid:t.id,qudaoid:e}).then(s=>{we.value=!1,s.status?Se.value=s.data:b.error(s.msg)})};let A=m(!1),D=m(null);const pt=t=>{A.value=!0,h.value=!0,Ue({id:t.id}).then(e=>{h.value=!1,e.status?(D.value=e.data,D.value.coutsInfo.forEach(s=>{s.locked_count===null&&(s.locked_count=0)})):b.error(e.msg)})},vt=()=>{let t=[],e=!1;D.value.coutsInfo.forEach(s=>{if(e)return;const i=s.count-s.used_count;if(Number(s.locked_count)>i){b.error(`${s.name} 的占位数量不能大于剩余可用数量,最多${i}个`),e=!0;return}if(Number(s.locked_count)<0){b.error(`${s.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}),!e&&(h.value=!0,Rt({roster_detail_id:D.value.id,locked_counts:t}).then(s=>{h.value=!1,s.status?(A.value=!1,z(),b.success("占位设置保存成功")):b.error(s.msg)}))};function ze(t){const e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${i}`}function mt(t){const e=t.map(x=>new Date(x)).sort((x,B)=>x-B),s=e[0],i=e[e.length-1],u=[];let p=new Date(s);for(;p<=i;)u.push(p.toISOString().split("T")[0]),p.setDate(p.getDate()+1);return u}function _t(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return yt(()=>{const t=new Date,e=ze(t),s=new Date(t);s.setDate(t.getDate()+14);const i=ze(s);F.value.dateRange=[e,i],Qe(),Je(),He(),document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ce)}),bt(()=>{document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ce)}),(t,e)=>{const s=C("el-date-picker"),i=C("el-form-item"),u=C("el-button"),p=C("el-row"),x=C("el-icon"),B=C("el-empty"),E=C("el-tag"),X=C("el-checkbox"),ce=C("el-checkbox-group"),Z=C("el-input"),Ve=C("el-switch"),ne=C("el-form"),W=C("el-dialog"),pe=C("el-option"),ve=C("el-select"),T=C("el-table-column"),me=C("el-table"),I=C("el-col"),te=xt("loading");return f(),v("div",null,[d("div",$t,[n(p,null,{default:o(()=>[n(i,null,{default:o(()=>[n(s,{style:{"margin-left":"8px",width:"150px"},modelValue:a(F).dateRange[0],"onUpdate:modelValue":e[0]||(e[0]=l=>a(F).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[27]||(e[27]=d("span",{style:{margin:"0 4px"}},"至",-1)),n(s,{style:{width:"150px"},modelValue:a(F).dateRange[1],"onUpdate:modelValue":e[1]||(e[1]=l=>a(F).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(u,{onClick:e[2]||(e[2]=l=>z()),style:{"margin-left":"10px"}},{default:o(()=>[...e[28]||(e[28]=[r("搜索",-1)])]),_:1}),n(u,{type:"danger",onClick:e[3]||(e[3]=l=>nt()),style:{"margin-left":"10px"}},{default:o(()=>[...e[29]||(e[29]=[r("删除",-1)])]),_:1}),n(u,{type:"warning",onClick:e[4]||(e[4]=l=>ot()),style:{"margin-left":"10px"}},{default:o(()=>[...e[30]||(e[30]=[r("批量禁用",-1)])]),_:1}),n(u,{type:"success",onClick:e[5]||(e[5]=l=>at()),style:{"margin-left":"10px"}},{default:o(()=>[...e[31]||(e[31]=[r("批量启用",-1)])]),_:1}),n(u,{type:"primary",onClick:e[6]||(e[6]=l=>ut()),style:{"margin-left":"10px"}},{default:o(()=>[...e[32]||(e[32]=[r("批量修改",-1)])]),_:1}),n(u,{type:"warning",onClick:e[7]||(e[7]=l=>ft()),style:{"margin-left":"10px"}},{default:o(()=>[...e[33]||(e[33]=[r("批量占位",-1)])]),_:1})]),_:1})]),d("div",Ut,[d("div",Nt,[(f(!0),v(L,null,M(a(re),(l,y)=>(f(),v("div",{key:y,onClick:_=>We(l.id),class:oe({"zhenshiButton zhenshiButtonActive":l.id===a(q),zhenshiButton:l.id!==a(q)})},c(l.department_resources_name),11,Ot))),128))]),d("div",Yt,[e[40]||(e[40]=d("div",{style:{"text-align":"right",padding:"4px 8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),ge((f(),v("div",{ref_key:"scrollContainer",ref:ke,style:{border:"1px solid #efefef","overflow-x":"auto",position:"relative"}},[a(R).length>0?(f(),v("table",At,[d("tr",Ft,[d("td",null,[d("div",qt,[e[34]||(e[34]=d("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),d("div",{class:oe({"plan_checkAllbox plan_checkAllbox_active":a($)===1,"plan_checkAllbox ":a($)===0}),onClick:e[8]||(e[8]=l=>Ye())},[a($)===1?(f(),S(x,{key:0,color:"#ffffff"},{default:o(()=>[n(a($e))]),_:1})):w("",!0)],2)])]),(f(!0),v(L,null,M(a(de),(l,y)=>(f(),v("td",Gt,c(l.substring(5,10))+" "+c(_t(l)),1))),256))]),(f(!0),v(L,null,M(a(R),(l,y)=>(f(),v("tr",{key:y},[(f(!0),v(L,null,M(l,(_,_e)=>(f(),v("td",{key:_e,"data-row":y,"data-col":_e,onMouseover:V=>Ge(V,_),onMouseleave:V=>Xe(_.id),onMousedown:V=>Ze(V,_,y,_e)},[d("div",null,[_e=="time_range"?(f(),v("span",Zt,c(_),1)):w("",!0),_.countsInfo&&_.countsInfo.length>0?(f(),v("div",{key:1,class:oe({planInfo_k:_.status==1,"planInfo_k planInfo_k_disabled":_.status==0,planInfo_k_selected:ae(_.id)&&_.status==1,planInfo_k_disabled_selected:ae(_.id)&&_.status==0})},[a(be)==_.id?(f(),v("div",Wt,[d("div",{class:"icon_k",onClick:V=>et(_.id)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(It))]),_:1}),e[35]||(e[35]=d("span",{class:"icon_text"},"编辑",-1))],8,jt),d("div",{class:"icon_k",onClick:V=>Pe(_,0)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(Ct))]),_:1}),e[36]||(e[36]=d("span",{class:"icon_text"},"明细",-1))],8,Ht),d("div",{class:"icon_k",onClick:V=>pt(_)},[n(x,{color:"#409eff",size:"20"},{default:o(()=>[n(a(Dt))]),_:1}),e[37]||(e[37]=d("span",{class:"icon_text"},"占位",-1))],8,Kt)])):w("",!0),d("div",{class:oe({"plan_checkbox plan_checkbox_active":ae(_.id),plan_checkbox:!ae(_.id)}),onClick:V=>Ae(_.id)},[ae(_.id)?(f(),S(x,{key:0,color:"#ffffff"},{default:o(()=>[n(a($e))]),_:1})):w("",!0)],10,Qt),d("div",Jt,[d("div",el,[e[38]||(e[38]=d("span",null,"总数:",-1)),r(c(_.countsInfo[0].max_total),1)])]),d("div",tl,[(f(!0),v(L,null,M(_.countsInfo,(V,Te)=>(f(),v(L,{key:Te},[V&&!(V.count===0&&V.used_count===0)?(f(),v("div",ll,[d("span",null,c(V.jiancheng),1),d("span",null,[d("span",{class:oe({"yellow bold-text":V.locked_count>0})},c(V.locked_count!=null?V.locked_count:0),3),e[39]||(e[39]=d("span",null,"/",-1)),d("span",nl,c(V.used_count),1),r("/"+c(V.count),1)])])):w("",!0)],64))),128))]),d("div",ol,[(f(!0),v(L,null,M(_.patient_type_label,(V,Te)=>(f(),v("div",al,c(V),1))),256))])],2)):w("",!0)])],40,Xt))),128))]))),128))])):w("",!0),a(j)?(f(),v("div",{key:1,class:"drag-selection-overlay",style:kt(a(xe))},null,4)):w("",!0),a(R).length==0?(f(),v("div",sl,[n(B,{description:"暂无号源"})])):w("",!0)])),[[te,a(h)]])])]),n(W,{modelValue:a(U),"onUpdate:modelValue":e[13]||(e[13]=l=>P(U)?U.value=l:U=l),title:"修改",width:"40%"},{footer:o(()=>[d("span",vl,[n(u,{onClick:e[12]||(e[12]=l=>P(U)?U.value=!1:U=!1)},{default:o(()=>[...e[50]||(e[50]=[r("取消",-1)])]),_:1}),n(u,{type:"primary",onClick:lt},{default:o(()=>[...e[51]||(e[51]=[r(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ge((f(),v("div",null,[a(g)?(f(),S(ne,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[n(i,{label:"日期:"},{default:o(()=>[r(c(a(g).date),1)]),_:1}),n(i,{label:"星期:"},{default:o(()=>[r(c(a(g).weekname),1)]),_:1}),n(i,{label:"科室:"},{default:o(()=>[r(c(a(g).department_name),1)]),_:1}),w("",!0),w("",!0),n(i,{label:"病人类型:"},{default:o(()=>[n(ce,{disabled:"",modelValue:a(g).patientType,"onUpdate:modelValue":e[9]||(e[9]=l=>a(g).patientType=l)},{default:o(()=>[n(X,{label:"0"},{default:o(()=>[...e[41]||(e[41]=[r("住院",-1)])]),_:1}),n(X,{label:"1"},{default:o(()=>[...e[42]||(e[42]=[r("门诊",-1)])]),_:1}),n(X,{label:"2"},{default:o(()=>[...e[43]||(e[43]=[r("急诊",-1)])]),_:1}),n(X,{label:"3"},{default:o(()=>[...e[44]||(e[44]=[r("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(i,{label:"时间段:"},{default:o(()=>[e[45]||(e[45]=r(" 开始时间:",-1)),d("span",ul,c(a(g).begin_time),1),e[46]||(e[46]=r(" 结束时间:",-1)),d("span",il,c(a(g).end_time),1),e[47]||(e[47]=r(" 停止预约时间:",-1)),d("span",dl,c(a(g).end_reservation_time),1)]),_:1}),a(g).coutsInfo?(f(),S(i,{key:2,label:"渠道名额:"},{default:o(()=>[d("div",rl,[e[48]||(e[48]=d("div",null,"当日总量",-1)),d("div",fl,[n(Z,{onInput:tt,type:"number",modelValue:a(g).max_total,"onUpdate:modelValue":e[10]||(e[10]=l=>a(g).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[49]||(e[49]=d("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),d("div",null,[(f(!0),v(L,null,M(a(g).coutsInfo,(l,y)=>(f(),v("div",{class:"qudao_k",key:y},[d("div",cl,c(l.name),1),d("div",pl,[n(Z,{type:"number",modelValue:a(g).coutsInfo[y].count,"onUpdate:modelValue":_=>a(g).coutsInfo[y].count=_,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):w("",!0),n(i,{label:"状态:"},{default:o(()=>[n(Ve,{modelValue:a(g).status,"onUpdate:modelValue":e[11]||(e[11]=l=>a(g).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(i,{label:"添加时间:"},{default:o(()=>[r(c(a(g).created_at),1)]),_:1})]),_:1})):w("",!0)])),[[te,a(h)]])]),_:1},8,["modelValue"]),n(W,{modelValue:a(ue),"onUpdate:modelValue":e[16]||(e[16]=l=>P(ue)?ue.value=l:ue=l),title:"预约明细",width:"60%"},{default:o(()=>[d("div",null,[d("div",ml,[r(c(a(ie).department_resources_name)+" ",1),(f(!0),v(L,null,M(a(ie).devices,(l,y)=>(f(),v("span",{key:y,class:oe(l.status==1&&l.is_del==0?"":"hongzi")},c(l.device_name),3))),128))]),n(i,{label:"渠道"},{default:o(()=>[n(ve,{filterable:!0,clearable:"",modelValue:a(le),"onUpdate:modelValue":e[14]||(e[14]=l=>P(le)?le.value=l:le=l),onChange:e[15]||(e[15]=l=>Pe(a(ie),a(le))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[n(pe,{label:"全部",value:0}),(f(!0),v(L,null,M(a(ie).countsInfo,(l,y)=>(f(),S(pe,{key:y,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ge((f(),S(me,{data:a(Se),style:{width:"100%"},"row-key":"id"},{default:o(()=>[n(T,{prop:"list_status",label:"状态",width:"100"},{default:o(l=>[l.row.list_status===0?(f(),S(E,{key:0,class:"ml-2",type:"info"},{default:o(()=>[...e[52]||(e[52]=[r("申请中",-1)])]),_:1})):w("",!0),l.row.list_status===1?(f(),S(E,{key:1,class:"ml-2",type:"success"},{default:o(()=>[...e[53]||(e[53]=[r("已预约",-1)])]),_:1})):w("",!0),l.row.list_status===2?(f(),S(E,{key:2,class:"ml-2"},{default:o(()=>[...e[54]||(e[54]=[r("登记",-1)])]),_:1})):w("",!0),l.row.list_status===3?(f(),S(E,{key:3,class:"ml-2",type:"warning"},{default:o(()=>[...e[55]||(e[55]=[r("完成",-1)])]),_:1})):w("",!0)]),_:1}),n(T,{prop:"user_name",label:"姓名"}),n(T,{prop:"user_phone",label:"电话"}),n(T,{prop:"reg_num",label:"登记号"}),n(T,{prop:"reservation_department",label:"申请科室"}),n(T,{prop:"entrust",label:"项目"}),n(T,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[te,a(we)]])])]),_:1},8,["modelValue"]),n(W,{modelValue:a(A),"onUpdate:modelValue":e[18]||(e[18]=l=>P(A)?A.value=l:A=l),title:"占位设置",width:"40%"},{footer:o(()=>[d("span",Vl,[n(u,{onClick:e[17]||(e[17]=l=>P(A)?A.value=!1:A=!1)},{default:o(()=>[...e[58]||(e[58]=[r("取消",-1)])]),_:1}),n(u,{type:"primary",onClick:vt},{default:o(()=>[...e[59]||(e[59]=[r(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ge((f(),v("div",null,[a(D)?(f(),S(ne,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:o(()=>[n(i,{label:"日期:"},{default:o(()=>[r(c(a(D).date),1)]),_:1}),n(i,{label:"星期:"},{default:o(()=>[r(c(a(D).weekname),1)]),_:1}),n(i,{label:"科室:"},{default:o(()=>[r(c(a(D).department_name),1)]),_:1}),n(i,{label:"资源:"},{default:o(()=>[r(c(a(D).resources_name),1)]),_:1}),n(i,{label:"服务组:"},{default:o(()=>[(f(!0),v(L,null,M(a(D).devices,(l,y)=>(f(),S(E,{key:y,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:o(()=>[r(c(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),n(i,{label:"时间段:"},{default:o(()=>[e[56]||(e[56]=r(" 开始时间:",-1)),d("span",_l,c(a(D).begin_time),1),e[57]||(e[57]=r(" 结束时间:",-1)),d("span",gl,c(a(D).end_time),1)]),_:1}),n(i,{label:"渠道占位:"},{default:o(()=>[d("div",yl,[a(D).coutsInfo&&a(D).coutsInfo.length>0?(f(!0),v(L,{key:0},M(a(D).coutsInfo,(l,y)=>(f(),v(L,{key:y},[l&&!(l.count===0&&l.used_count===0)?(f(),v("div",bl,[d("div",xl,c(l.name),1),d("div",kl,[n(Z,{type:"number",modelValue:a(D).coutsInfo[y].locked_count,"onUpdate:modelValue":_=>a(D).coutsInfo[y].locked_count=_,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),d("div",hl," 剩余可用: "+c(l.count-l.used_count),1)])):w("",!0)],64))),128)):(f(),v("div",wl," 暂无渠道数据 "))])]),_:1})]),_:1})):w("",!0)])),[[te,a(h)]])]),_:1},8,["modelValue"]),n(W,{modelValue:a(N),"onUpdate:modelValue":e[21]||(e[21]=l=>P(N)?N.value=l:N=l),title:"批量修改",width:"45%","close-on-click-modal":!1},{footer:o(()=>[n(u,{onClick:e[19]||(e[19]=l=>P(N)?N.value=!1:N=!1),disabled:a(K)},{default:o(()=>[...e[63]||(e[63]=[r("取消",-1)])]),_:1},8,["disabled"]),n(u,{type:"primary",onClick:e[20]||(e[20]=l=>it()),disabled:a(K)},{default:o(()=>[...e[64]||(e[64]=[r("确定修改",-1)])]),_:1},8,["disabled"])]),default:o(()=>[d("div",null,[d("div",Il,"已选 "+c(a(k).length)+" 条号源明细",1),n(ne,{"label-width":"100px"},{default:o(()=>[n(p,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[n(I,{span:6},{default:o(()=>[...e[60]||(e[60]=[r("渠道名称",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[61]||(e[61]=[r("数量",-1)])]),_:1})]),_:1}),(f(),v(L,null,M(O,(l,y)=>n(p,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px"}},{default:o(()=>[r(c(l.name),1)]),_:2},1024),n(I,{span:8},{default:o(()=>[n(Z,{modelValue:a(G)[y].count,"onUpdate:modelValue":_=>a(G)[y].count=_,modelModifiers:{number:!0},placeholder:"数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)),64)),n(p,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[62]||(e[62]=[r("合计",-1)])]),_:1}),n(I,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[r("数量: "+c(Me.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(W,{modelValue:a(Y),"onUpdate:modelValue":e[24]||(e[24]=l=>P(Y)?Y.value=l:Y=l),title:"批量占位",width:"45%","close-on-click-modal":!1},{footer:o(()=>[n(u,{onClick:e[22]||(e[22]=l=>P(Y)?Y.value=!1:Y=!1),disabled:a(J)},{default:o(()=>[...e[69]||(e[69]=[r("取消",-1)])]),_:1},8,["disabled"]),n(u,{type:"warning",onClick:e[23]||(e[23]=l=>ct()),disabled:a(J)},{default:o(()=>[...e[70]||(e[70]=[r("确定占位",-1)])]),_:1},8,["disabled"])]),default:o(()=>[d("div",null,[d("div",Cl,"已选 "+c(a(k).length)+" 条号源明细",1),n(ne,{"label-width":"100px"},{default:o(()=>[n(p,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[n(I,{span:6},{default:o(()=>[...e[65]||(e[65]=[r("渠道名称",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[66]||(e[66]=[r("占用数量",-1)])]),_:1}),n(I,{span:8},{default:o(()=>[...e[67]||(e[67]=[r("提示",-1)])]),_:1})]),_:1}),(f(),v(L,null,M(O,(l,y)=>n(p,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px"}},{default:o(()=>[r(c(l.name),1)]),_:2},1024),n(I,{span:8},{default:o(()=>[n(Z,{modelValue:a(ee)[y].locked_count,"onUpdate:modelValue":_=>a(ee)[y].locked_count=_,modelModifiers:{number:!0},placeholder:"占用数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')",onInput:_=>rt(y,_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),n(I,{span:8,style:{"line-height":"32px","font-size":"12px",color:"#999"}},{default:o(()=>{var _;return[((_=a(fe)[l.id])==null?void 0:_.maxValue)!==null?(f(),v(L,{key:0},[r(" 最大可占: "+c(a(fe)[l.id].maxValue),1)],64)):w("",!0)]}),_:2},1024)]),_:2},1024)),64)),n(p,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[n(I,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[68]||(e[68]=[r("合计",-1)])]),_:1}),n(I,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[r("占用: "+c(dt.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(W,{modelValue:a(Q),"onUpdate:modelValue":e[26]||(e[26]=l=>P(Q)?Q.value=l:Q=l),title:"修改结果",width:"40%"},{footer:o(()=>[n(u,{type:"primary",onClick:e[25]||(e[25]=l=>{P(Q)?Q.value=!1:Q=!1,z()})},{default:o(()=>[...e[74]||(e[74]=[r("确定",-1)])]),_:1})]),default:o(()=>[d("div",null,[d("div",Dl,[e[71]||(e[71]=r(" 成功: ",-1)),d("span",Bl,c(a(he)),1),e[72]||(e[72]=r(" 条 失败: ",-1)),d("span",Ll,c(a(se).length),1),e[73]||(e[73]=r(" 条 ",-1))]),a(se).length>0?(f(),v("div",Ml,[(f(!0),v(L,null,M(a(se),(l,y)=>(f(),v("div",{key:y,style:{padding:"4px 0","font-size":"13px",color:"#f56c6c"}}," 第 "+c(l.index+1)+" 条(ID: "+c(l.id)+") → "+c(l.msg),1))),128))])):w("",!0)])]),_:1},8,["modelValue"])])}}},zl=gt(El,[["__scopeId","data-v-0b17152b"]]);export{zl as default}; diff --git a/Laravel/public/admin/assets/PlanListAdmin-0bae3808.css b/Laravel/public/admin/assets/PlanListAdmin-0bae3808.css deleted file mode 100644 index 25a0dc5..0000000 --- a/Laravel/public/admin/assets/PlanListAdmin-0bae3808.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.type_count[data-v-7a5d10fb]{display:flex}.type_count div[data-v-7a5d10fb]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-7a5d10fb]{display:flex}.qudao_k_input[data-v-7a5d10fb]{width:150px}.hongzi[data-v-7a5d10fb]{color:#b25252}.yiyong[data-v-7a5d10fb]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-7a5d10fb]:hover{color:#666}.zhenshiButton[data-v-7a5d10fb]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-7a5d10fb]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-7a5d10fb]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-7a5d10fb]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-7a5d10fb]{background-color:#ffd6d2}.planInfo_k[data-v-7a5d10fb]{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-7a5d10fb]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-7a5d10fb]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-7a5d10fb]{font-weight:500}.planInfo_k .plan_checkbox[data-v-7a5d10fb]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-7a5d10fb]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-7a5d10fb]{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-7a5d10fb]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-7a5d10fb]{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-7a5d10fb]{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-7a5d10fb]{display:flex}.planInfo_k .qudao_count_row div[data-v-7a5d10fb]{margin-left:6px}.planInfo .planTable[data-v-7a5d10fb]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333;user-select:none;-webkit-user-select:none}.planInfo .planTable td[data-v-7a5d10fb]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-7a5d10fb]:first-child,.planInfo .planTable th[data-v-7a5d10fb]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-7a5d10fb]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-7a5d10fb]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-7a5d10fb]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-7a5d10fb]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-7a5d10fb]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-7a5d10fb]{width:100px}.yellow[data-v-7a5d10fb]{color:#ffaa7f}.red[data-v-7a5d10fb]{color:#c81e00}.bold-text[data-v-7a5d10fb]{font-weight:700}.drag-selection-overlay[data-v-7a5d10fb]{position:absolute;top:0;left:0;background:rgba(64,158,255,.12);border:1px solid rgba(64,158,255,.5);pointer-events:none;z-index:10}.planInfo_k_selected[data-v-7a5d10fb]{background-color:#e6f7ff;outline:2px solid #409eff;outline-offset:-2px;border-radius:4px}.planInfo_k_disabled_selected[data-v-7a5d10fb]{background-color:#f3e8ff;outline:2px solid #7c3aed;outline-offset:-2px;border-radius:4px} diff --git a/Laravel/public/admin/assets/PlanListAdmin-5d69daaf.js b/Laravel/public/admin/assets/PlanListAdmin-5d69daaf.js deleted file mode 100644 index 4dbed47..0000000 --- a/Laravel/public/admin/assets/PlanListAdmin-5d69daaf.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as yt,Y as $e,o as bt,b1 as xt,r as L,c as kt,d,e as p,k as r,f as n,w as a,F as B,t as E,i as o,h as ge,Z as re,j as z,x as V,b2 as ht,q as i,l as P,g as m,I as wt,E as x,W as Vt,O as It,v as c,b3 as Ne,b4 as Ct,b5 as Dt,p as Bt,b6 as Lt,b7 as Ae,bl as Mt,N as ye,bm as Et,bn as St,bo as zt,bc as Pt,bd as Tt,be as Rt,bf as Ut}from"./index-b8bae120.js";const $t={class:"head"},Nt={style:{display:"flex"},class:"planInfo"},At={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ot=["onClick"],Yt={key:0,class:"planTable"},Ft={style:{"background-color":"#f1f1f1",position:"relative"}},qt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},Gt={style:{"min-width":"120px","font-size":"14px"}},Xt=["data-row","data-col","onMouseover","onMouseleave","onMousedown"],Zt={key:0},Wt={key:0,class:"hoverTools"},jt=["onClick"],Ht=["onClick"],Kt=["onClick"],Qt=["onClick"],Jt={class:"zong_row"},el={class:"qudao_title_zong"},tl={class:"qudao_count_row"},ll={key:0},nl={key:0,class:"yellow bold-text"},ol={key:1},al={class:"font_color"},sl={class:"patient_type_row"},ul={class:"tps"},il={key:2,style:{width:"100%","background-color":"#fff"}},dl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},rl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},fl={style:{"font-weight":"700"}},pl={style:{"margin-right":"16px"}},cl={class:"qudao_k_input"},ml={style:{width:"50px"}},vl={class:"qudao_k_input"},_l={class:"dialog-footer"},gl={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},yl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},bl={style:{"font-weight":"700"}},xl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},kl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},hl={style:{width:"80px"}},wl={style:{flex:"1"}},Vl={style:{color:"#999","font-size":"12px"}},Il={key:1,style:{color:"#999"}},Cl={class:"dialog-footer"},Dl={style:{"margin-bottom":"16px",color:"#666"}},Bl={style:{"margin-bottom":"16px",color:"#666"}},Ll={style:{"margin-bottom":"10px"}},Ml={style:{color:"#67c23a","font-weight":"600"}},El={style:{color:"#f56c6c","font-weight":"600"}},Sl={key:0},zl={__name:"PlanListAdmin",setup(Pl){let U=m([]),h=m(!1),Oe=m(1),Ye=m(9999),k=m([]),fe=m([]),$=m(0),C=m({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),N=m(!1);const T=()=>{C.value.resources_id=A.value,fe.value=_t(C.value.dateRange),h.value=!0,Lt({page:Oe.value,pageSize:Ye.value,searchInfo:C.value}).then(t=>{if(h.value=!1,t.status){U.value=[],k.value=[];let e=t.data.list;if(e.length>0){const u=new Set;e.forEach(s=>{if(s.resources_id==A.value){const g=`${s.begin_time.substring(0,5)}-${s.end_time.substring(0,5)}`;u.add(g)}}),Array.from(u).sort().forEach(s=>{const g={time_range:s};fe.value.forEach(v=>{const w=e.find(S=>`${S.begin_time.substring(0,5)}-${S.end_time.substring(0,5)}`===s&&S.date===v&&S.resources_id==A.value);w?g[v]={countsInfo:w.countsInfo,patient_type_label:w.patient_type_label,status:w.status,id:w.id,resources_id:w.resources_id}:g[v]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),U.value.push(g)})}}else x.error(t.msg)})},Fe=()=>{$.value=$.value===0?1:0,$.value===0&&(k.value=[]),$.value===1&&U.value.forEach((t,e)=>{console.log(t);for(let u in t)u!="time_range"&&k.value.push(t[u].id)})},qe=t=>{k.value.indexOf(t)===-1?k.value.push(t):k.value=k.value.filter(u=>u!==t)};let be=m(null),W=m(!1),j=m({row:0,col:0,x:0,y:0}),xe=m({}),ke=m(null);const Ge=t=>{be.value=t},Xe=t=>{be.value=null},Ze=(t,e,u,f)=>{W.value||Ge(e==null?void 0:e.id)},We=t=>{W.value||Xe()},je=(t,e,u,f)=>{if(t.target.closest(".plan_checkbox")||f==="time_range"||!e||!e.id)return;const s=t.currentTarget,g=s.closest("tr");if(!g)return;const v=ke.value;if(!v)return;const w=v.getBoundingClientRect();W.value=!0,j.value={row:g.rowIndex,col:s.cellIndex,x:t.clientX-w.left,y:t.clientY-w.top},k.value=[e.id],$.value=0},Ce=t=>{var G;if(!W.value)return;const e=ke.value;if(!e)return;const u=e.getBoundingClientRect(),f=t.clientX-u.left,s=t.clientY-u.top;xe.value={left:Math.min(j.value.x,f)+"px",top:Math.min(j.value.y,s)+"px",width:Math.abs(f-j.value.x)+"px",height:Math.abs(s-j.value.y)+"px"};const g=document.elementFromPoint(t.clientX,t.clientY);if(!g)return;const v=g.closest("td");if(!v)return;const w=v.closest("tr");if(!w||((G=w.parentElement)==null?void 0:G.tagName)==="THEAD")return;const S=w.rowIndex,de=v.cellIndex;if(de===0)return;const Z=j.value.row,ee=j.value.col,Ve=Math.min(Z,S),te=Math.max(Z,S),Ie=Math.min(ee,de),oe=Math.max(ee,de);k.value=[];for(let R=Ve;R<=te;R++){const ve=U.value[R-1];if(ve)for(let D=Ie;D<=oe;D++){if(D===0)continue;const le=fe.value[D-1];if(!le)continue;const l=ve[le];l&&l.id&&k.value.push(l.id)}}},De=()=>{W.value&&(W.value=!1,xe.value={})},He=t=>{A.value=t,$.value=0,k.value=[],T()},ae=t=>k.value.includes(t);let Ke=m([]);const Qe=()=>{h.value=!0,wt().then(t=>{h.value=!1,t.status?Ke.value=t.data:x.error(t.msg)})};let pe=m([]);const Je=()=>{h.value=!0,Vt({}).then(t=>{h.value=!1,t.status?(pe.value=t.data.list,pe.value.length>0&&(C.value.department_id=pe.value[0].id,Be())):x.error(t.msg)})},et=()=>{C.value.resources_id=null,A.value=0,Be()};let ce=m([]),A=m(0);const Be=()=>{h.value=!0,It({department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(ce.value=t.data,ce.value.length>0&&A.value==""&&(A.value=ce.value[0].id,T())):x.error(t.msg)})};let y=m("");const tt=t=>{N.value=!0,h.value=!0,Ae({id:t}).then(e=>{h.value=!1,e.status?y.value=e.data:x.error(e.msg)})},lt=t=>{console.log(t),(t===""||t==null||t===0)&&(y.value.max_total=0);let e=0,u=y.value.coutsInfo.length,f=-1;for(let s=0;s{let t=0;if(y.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(y.value.max_total))return x.error("各个渠道数量之和与当日总量不符"),!1;h.value=!0,Mt({PlanDetaiInfo:y.value,department_id:C.value.department_id}).then(e=>{h.value=!1,e.status?(N.value=!1,T()):x.error(e.msg)})},ot=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Et({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:t.msg,type:"success"}),T()):x.error(t.msg)})})},at=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定批量禁用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,St({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:"批量禁用成功",type:"success"}),T()):x.error(t.msg)})})},st=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定批量启用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,zt({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:"批量启用成功",type:"success"}),T()):x.error(t.msg)})})};let O=m(!1),H=m(!1),Le=m(0),Me=m(0),ut=m(0),he=m(0),K=m(!1),se=m([]);const Y=[{name:"医生",id:1},{name:"护士站",id:4},{name:"微信",id:2},{name:"自助机",id:3}];let X=m([]);const Ee=()=>{X.value=Y.map(t=>({appointment_type_id:t.id,count:""}))};Ee();const Se=$e(()=>X.value.reduce((t,e)=>t+(Number(e.count)||0),0)),it=()=>{if(k.value.length==0){x.error("请至少勾选1条记录");return}Ee();const t=new Set(k.value),e={};Y.forEach(u=>{e[u.id]={count:[]}}),U.value.forEach(u=>{for(const f in u){if(f==="time_range")continue;const s=u[f];s&&s.id&&t.has(s.id)&&s.countsInfo&&s.countsInfo.forEach(g=>{e[g.appointment_type_id]&&e[g.appointment_type_id].count.push(g.count)})}}),X.value=Y.map(u=>{const f=e[u.id],s=g=>g.length>0&&g.every(v=>v===g[0]);return{appointment_type_id:u.id,count:f.count.length>0&&s(f.count)?f.count[0]:""}}),Le.value=0,Me.value=0,ut.value=k.value.length,he.value=0,se.value=[],H.value=!1,O.value=!0},dt=async()=>{for(const s of X.value)if(Number(s.count)<0){x.error("数量不能为负数");return}if(X.value.every(s=>Number(s.count)===0)&&!await ye.confirm("所有渠道数量均为0,确定继续修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>!0).catch(()=>!1))return;const e=Se.value;H.value=!0,Le.value=0,Me.value=0,se.value=[],he.value=0;const u=[...k.value],f=X.value.map(s=>({appointment_type_id:s.appointment_type_id,count:Number(s.count)||0}));try{const s=await Pt({ids:u,max_total:e,coutsInfo:f,department_id:C.value.department_id});H.value=!1,s&&s.status?(O.value=!1,x.success("批量修改完成"),T()):(x.error((s==null?void 0:s.msg)||"批量修改失败"),H.value=!1)}catch{H.value=!1,x.error("请求异常")}};let F=m(!1),Q=m(!1),J=m([]),me=m({});const ze=()=>{J.value=Y.map(t=>({appointment_type_id:t.id,locked_count:""}))};ze();const rt=$e(()=>J.value.reduce((t,e)=>t+(Number(e.locked_count)||0),0)),ft=(t,e)=>{const u=Y[t],f=me.value[u.id];f!=null&&f.limited&&Number(e)>f.maxValue&&(J.value[t].locked_count=f.maxValue)},pt=()=>{if(k.value.length==0){x.error("请至少勾选1条记录");return}ze();const t=new Set(k.value),e={};Y.forEach(f=>{e[f.id]=[]}),U.value.forEach(f=>{for(const s in f){if(s==="time_range")continue;const g=f[s];g&&g.id&&t.has(g.id)&&g.countsInfo&&g.countsInfo.forEach(v=>{e[v.appointment_type_id]&&e[v.appointment_type_id].push(v.count)})}});const u={};Y.forEach(f=>{const s=e[f.id];if(s.length>0){const g=s.every(v=>v===s[0]);u[f.id]={limited:g,maxValue:g?s[0]:null}}else u[f.id]={limited:!1,maxValue:null}}),me.value=u,Q.value=!1,F.value=!0},ct=async()=>{for(const u of J.value)if(Number(u.locked_count)<0){x.error("占用数量不能为负数");return}Q.value=!0;const t=[...k.value],e=J.value.map(u=>({appointment_type_id:u.appointment_type_id,locked_count:Number(u.locked_count)||0}));try{const u=await Tt({ids:t,coutsInfo:e,department_id:C.value.department_id});Q.value=!1,u&&u.status?(F.value=!1,x.success("批量占位完成"),T()):(x.error((u==null?void 0:u.msg)||"批量占位失败"),Q.value=!1)}catch{Q.value=!1,x.error("请求异常")}};let ue=m(!1),we=m(!1),Pe=m(null),ie=m(null),ne=m(null);const Te=(t,e)=>{ne.value=e,ie.value=t,ue.value=!0,we.value=!0,Rt({planid:t.id,qudaoid:e}).then(u=>{we.value=!1,u.status?Pe.value=u.data:x.error(u.msg)})};let q=m(!1),M=m(null);const mt=t=>{q.value=!0,h.value=!0,Ae({id:t.id}).then(e=>{h.value=!1,e.status?(M.value=e.data,M.value.coutsInfo.forEach(u=>{u.locked_count===null&&(u.locked_count=0)})):x.error(e.msg)})},vt=()=>{let t=[],e=!1;M.value.coutsInfo.forEach(u=>{if(e)return;const f=u.count-u.used_count;if(Number(u.locked_count)>f){x.error(`${u.name} 的占位数量不能大于剩余可用数量,最多${f}个`),e=!0;return}if(Number(u.locked_count)<0){x.error(`${u.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:u.appointment_type_id,locked_count:u.locked_count||0})}),!e&&(h.value=!0,Ut({roster_detail_id:M.value.id,locked_counts:t}).then(u=>{h.value=!1,u.status?(q.value=!1,T(),x.success("占位设置保存成功")):x.error(u.msg)}))};function Re(t){const e=t.getFullYear(),u=String(t.getMonth()+1).padStart(2,"0"),f=String(t.getDate()).padStart(2,"0");return`${e}-${u}-${f}`}function _t(t){const e=t.map(v=>new Date(v)).sort((v,w)=>v-w),u=e[0],f=e[e.length-1],s=[];let g=new Date(u);for(;g<=f;)s.push(g.toISOString().split("T")[0]),g.setDate(g.getDate()+1);return s}function gt(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return bt(()=>{const t=new Date,e=Re(t),u=new Date(t);u.setDate(t.getDate()+14);const f=Re(u);C.value.dateRange=[e,f],Je(),Qe(),document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",De)}),xt(()=>{document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",De)}),(t,e)=>{const u=L("el-option"),f=L("el-select"),s=L("el-form-item"),g=L("el-date-picker"),v=L("el-button"),w=L("el-row"),S=L("el-icon"),de=L("el-empty"),Z=L("el-tag"),ee=L("el-checkbox"),Ve=L("el-checkbox-group"),te=L("el-input"),Ie=L("el-switch"),oe=L("el-form"),G=L("el-dialog"),R=L("el-table-column"),ve=L("el-table"),D=L("el-col"),le=kt("loading");return d(),p("div",null,[r("div",$t,[n(w,null,{default:a(()=>[n(s,null,{default:a(()=>[n(f,{filterable:!0,clearable:"",modelValue:o(C).department_id,"onUpdate:modelValue":e[0]||(e[0]=l=>o(C).department_id=l),placeholder:"选择科室",onChange:et,style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(d(!0),p(B,null,E(o(pe),(l,b)=>(d(),z(u,{key:b,label:l.department_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(s,null,{default:a(()=>[n(g,{style:{"margin-left":"8px",width:"150px"},modelValue:o(C).dateRange[0],"onUpdate:modelValue":e[1]||(e[1]=l=>o(C).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[28]||(e[28]=r("span",{style:{margin:"0 4px"}},"至",-1)),n(g,{style:{width:"150px"},modelValue:o(C).dateRange[1],"onUpdate:modelValue":e[2]||(e[2]=l=>o(C).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(v,{onClick:e[3]||(e[3]=l=>T()),style:{"margin-left":"10px"}},{default:a(()=>[...e[29]||(e[29]=[i("搜索",-1)])]),_:1}),n(v,{type:"danger",onClick:e[4]||(e[4]=l=>ot()),style:{"margin-left":"10px"}},{default:a(()=>[...e[30]||(e[30]=[i("删除",-1)])]),_:1}),n(v,{type:"warning",onClick:e[5]||(e[5]=l=>at()),style:{"margin-left":"10px"}},{default:a(()=>[...e[31]||(e[31]=[i("批量禁用",-1)])]),_:1}),n(v,{type:"success",onClick:e[6]||(e[6]=l=>st()),style:{"margin-left":"10px"}},{default:a(()=>[...e[32]||(e[32]=[i("批量启用",-1)])]),_:1}),n(v,{type:"primary",onClick:e[7]||(e[7]=l=>it()),style:{"margin-left":"10px"}},{default:a(()=>[...e[33]||(e[33]=[i("批量修改",-1)])]),_:1}),n(v,{type:"warning",onClick:e[8]||(e[8]=l=>pt()),style:{"margin-left":"10px"}},{default:a(()=>[...e[34]||(e[34]=[i("批量占位",-1)])]),_:1})]),_:1})]),r("div",Nt,[r("div",At,[(d(!0),p(B,null,E(o(ce),(l,b)=>(d(),p("div",{key:b,onClick:_=>He(l.id),class:re({"zhenshiButton zhenshiButtonActive":l.id===o(A),zhenshiButton:l.id!==o(A)})},c(l.department_resources_name),11,Ot))),128))]),ge((d(),p("div",{ref_key:"scrollContainer",ref:ke,style:{border:"1px solid #efefef",width:"100%","overflow-x":"auto",position:"relative"}},[e[41]||(e[41]=r("div",{style:{"text-align":"right",padding:"8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),o(U).length>0?(d(),p("table",Yt,[r("tr",Ft,[r("td",null,[r("div",qt,[e[35]||(e[35]=r("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),r("div",{class:re({"plan_checkAllbox plan_checkAllbox_active":o($)===1,"plan_checkAllbox ":o($)===0}),onClick:e[9]||(e[9]=l=>Fe())},[o($)===1?(d(),z(S,{key:0,color:"#ffffff"},{default:a(()=>[n(o(Ne))]),_:1})):V("",!0)],2)])]),(d(!0),p(B,null,E(o(fe),(l,b)=>(d(),p("td",Gt,c(l.substring(5,10))+" "+c(gt(l)),1))),256))]),(d(!0),p(B,null,E(o(U),(l,b)=>(d(),p("tr",{key:b},[(d(!0),p(B,null,E(l,(_,_e)=>(d(),p("td",{key:_e,"data-row":b,"data-col":_e,onMouseover:I=>Ze(I,_),onMouseleave:I=>We(_.id),onMousedown:I=>je(I,_,b,_e)},[r("div",null,[_e=="time_range"?(d(),p("span",Zt,c(_),1)):V("",!0),_.countsInfo&&_.countsInfo.length>0?(d(),p("div",{key:1,class:re({planInfo_k:_.status==1,"planInfo_k planInfo_k_disabled":_.status==0,planInfo_k_selected:ae(_.id)&&_.status==1,planInfo_k_disabled_selected:ae(_.id)&&_.status==0})},[o(be)==_.id?(d(),p("div",Wt,[r("div",{class:"icon_k",onClick:I=>tt(_.id)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Ct))]),_:1}),e[36]||(e[36]=r("span",{class:"icon_text"},"编辑",-1))],8,jt),r("div",{class:"icon_k",onClick:I=>Te(_,0)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Dt))]),_:1}),e[37]||(e[37]=r("span",{class:"icon_text"},"明细",-1))],8,Ht),r("div",{class:"icon_k",onClick:I=>mt(_)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Bt))]),_:1}),e[38]||(e[38]=r("span",{class:"icon_text"},"占位",-1))],8,Kt)])):V("",!0),r("div",{class:re({"plan_checkbox plan_checkbox_active":ae(_.id),plan_checkbox:!ae(_.id)}),onClick:I=>qe(_.id)},[ae(_.id)?(d(),z(S,{key:0,color:"#ffffff"},{default:a(()=>[n(o(Ne))]),_:1})):V("",!0)],10,Qt),r("div",Jt,[r("div",el,[e[39]||(e[39]=r("span",null,"总数:",-1)),i(c(_.countsInfo[0].max_total),1)])]),r("div",tl,[(d(!0),p(B,null,E(_.countsInfo,(I,Ue)=>(d(),p(B,{key:Ue},[I&&!(I.count===0&&I.used_count===0)?(d(),p("div",ll,[r("span",null,c(I.jiancheng),1),r("span",null,[I.locked_count?(d(),p("span",nl,c(I.locked_count),1)):V("",!0),I.locked_count?(d(),p("span",ol,"/")):V("",!0),r("span",al,c(I.used_count),1),i("/"+c(I.count),1)])])):V("",!0)],64))),128))]),r("div",sl,[(d(!0),p(B,null,E(_.patient_type_label,(I,Ue)=>(d(),p("div",ul,c(I),1))),256))])],2)):V("",!0)])],40,Xt))),128))]))),128))])):V("",!0),o(W)?(d(),p("div",{key:1,class:"drag-selection-overlay",style:ht(o(xe))},null,4)):V("",!0),o(U).length==0?(d(),p("div",il,[e[40]||(e[40]=i("> ",-1)),n(de,{description:"暂无号源"})])):V("",!0)])),[[le,o(h)]])]),n(G,{modelValue:o(N),"onUpdate:modelValue":e[14]||(e[14]=l=>P(N)?N.value=l:N=l),title:"修改",width:"40%"},{footer:a(()=>[r("span",_l,[n(v,{onClick:e[13]||(e[13]=l=>P(N)?N.value=!1:N=!1)},{default:a(()=>[...e[51]||(e[51]=[i("取消",-1)])]),_:1}),n(v,{type:"primary",onClick:nt},{default:a(()=>[...e[52]||(e[52]=[i(" 确定 ",-1)])]),_:1})])]),default:a(()=>[ge((d(),p("div",null,[o(y)?(d(),z(oe,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[n(s,{label:"日期:"},{default:a(()=>[i(c(o(y).date),1)]),_:1}),n(s,{label:"星期:"},{default:a(()=>[i(c(o(y).weekname),1)]),_:1}),n(s,{label:"科室:"},{default:a(()=>[i(c(o(y).department_name),1)]),_:1}),V("",!0),V("",!0),n(s,{label:"病人类型:"},{default:a(()=>[n(Ve,{disabled:"",modelValue:o(y).patientType,"onUpdate:modelValue":e[10]||(e[10]=l=>o(y).patientType=l)},{default:a(()=>[n(ee,{label:"0"},{default:a(()=>[...e[42]||(e[42]=[i("住院",-1)])]),_:1}),n(ee,{label:"1"},{default:a(()=>[...e[43]||(e[43]=[i("门诊",-1)])]),_:1}),n(ee,{label:"2"},{default:a(()=>[...e[44]||(e[44]=[i("急诊",-1)])]),_:1}),n(ee,{label:"3"},{default:a(()=>[...e[45]||(e[45]=[i("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(s,{label:"时间段:"},{default:a(()=>[e[46]||(e[46]=i(" 开始时间:",-1)),r("span",dl,c(o(y).begin_time),1),e[47]||(e[47]=i(" 结束时间:",-1)),r("span",rl,c(o(y).end_time),1),e[48]||(e[48]=i(" 停止预约时间:",-1)),r("span",fl,c(o(y).end_reservation_time),1)]),_:1}),o(y).coutsInfo?(d(),z(s,{key:2,label:"渠道名额:"},{default:a(()=>[r("div",pl,[e[49]||(e[49]=r("div",null,"当日总量",-1)),r("div",cl,[n(te,{onInput:lt,type:"number",modelValue:o(y).max_total,"onUpdate:modelValue":e[11]||(e[11]=l=>o(y).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[50]||(e[50]=r("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),r("div",null,[(d(!0),p(B,null,E(o(y).coutsInfo,(l,b)=>(d(),p("div",{class:"qudao_k",key:b},[r("div",ml,c(l.name),1),r("div",vl,[n(te,{type:"number",modelValue:o(y).coutsInfo[b].count,"onUpdate:modelValue":_=>o(y).coutsInfo[b].count=_,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):V("",!0),n(s,{label:"状态:"},{default:a(()=>[n(Ie,{modelValue:o(y).status,"onUpdate:modelValue":e[12]||(e[12]=l=>o(y).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(s,{label:"添加时间:"},{default:a(()=>[i(c(o(y).created_at),1)]),_:1})]),_:1})):V("",!0)])),[[le,o(h)]])]),_:1},8,["modelValue"]),n(G,{modelValue:o(ue),"onUpdate:modelValue":e[17]||(e[17]=l=>P(ue)?ue.value=l:ue=l),title:"预约明细",width:"60%"},{default:a(()=>[r("div",null,[r("div",gl,[i(c(o(ie).department_resources_name)+" ",1),(d(!0),p(B,null,E(o(ie).devices,(l,b)=>(d(),p("span",{key:b,class:re(l.status==1&&l.is_del==0?"":"hongzi")},c(l.device_name),3))),128))]),n(s,{label:"渠道"},{default:a(()=>[n(f,{filterable:!0,clearable:"",modelValue:o(ne),"onUpdate:modelValue":e[15]||(e[15]=l=>P(ne)?ne.value=l:ne=l),onChange:e[16]||(e[16]=l=>Te(o(ie),o(ne))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[n(u,{label:"全部",value:0}),(d(!0),p(B,null,E(o(ie).countsInfo,(l,b)=>(d(),z(u,{key:b,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ge((d(),z(ve,{data:o(Pe),style:{width:"100%"},"row-key":"id"},{default:a(()=>[n(R,{prop:"list_status",label:"状态",width:"100"},{default:a(l=>[l.row.list_status===0?(d(),z(Z,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[53]||(e[53]=[i("申请中",-1)])]),_:1})):V("",!0),l.row.list_status===1?(d(),z(Z,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[54]||(e[54]=[i("已预约",-1)])]),_:1})):V("",!0),l.row.list_status===2?(d(),z(Z,{key:2,class:"ml-2"},{default:a(()=>[...e[55]||(e[55]=[i("登记",-1)])]),_:1})):V("",!0),l.row.list_status===3?(d(),z(Z,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...e[56]||(e[56]=[i("完成",-1)])]),_:1})):V("",!0)]),_:1}),n(R,{prop:"user_name",label:"姓名"}),n(R,{prop:"user_phone",label:"电话"}),n(R,{prop:"reg_num",label:"登记号"}),n(R,{prop:"reservation_department",label:"申请科室"}),n(R,{prop:"entrust",label:"项目"}),n(R,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[le,o(we)]])])]),_:1},8,["modelValue"]),n(G,{modelValue:o(q),"onUpdate:modelValue":e[19]||(e[19]=l=>P(q)?q.value=l:q=l),title:"占位设置",width:"40%"},{footer:a(()=>[r("span",Cl,[n(v,{onClick:e[18]||(e[18]=l=>P(q)?q.value=!1:q=!1)},{default:a(()=>[...e[59]||(e[59]=[i("取消",-1)])]),_:1}),n(v,{type:"primary",onClick:vt},{default:a(()=>[...e[60]||(e[60]=[i(" 确定 ",-1)])]),_:1})])]),default:a(()=>[ge((d(),p("div",null,[o(M)?(d(),z(oe,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:a(()=>[n(s,{label:"日期:"},{default:a(()=>[i(c(o(M).date),1)]),_:1}),n(s,{label:"星期:"},{default:a(()=>[i(c(o(M).weekname),1)]),_:1}),n(s,{label:"科室:"},{default:a(()=>[i(c(o(M).department_name),1)]),_:1}),n(s,{label:"资源:"},{default:a(()=>[i(c(o(M).resources_name),1)]),_:1}),n(s,{label:"服务组:"},{default:a(()=>[(d(!0),p(B,null,E(o(M).devices,(l,b)=>(d(),z(Z,{key:b,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:a(()=>[i(c(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),n(s,{label:"时间段:"},{default:a(()=>[e[57]||(e[57]=i(" 开始时间:",-1)),r("span",yl,c(o(M).begin_time),1),e[58]||(e[58]=i(" 结束时间:",-1)),r("span",bl,c(o(M).end_time),1)]),_:1}),n(s,{label:"渠道占位:"},{default:a(()=>[r("div",xl,[o(M).coutsInfo&&o(M).coutsInfo.length>0?(d(!0),p(B,{key:0},E(o(M).coutsInfo,(l,b)=>(d(),p(B,{key:b},[l&&!(l.count===0&&l.used_count===0)?(d(),p("div",kl,[r("div",hl,c(l.name),1),r("div",wl,[n(te,{type:"number",modelValue:o(M).coutsInfo[b].locked_count,"onUpdate:modelValue":_=>o(M).coutsInfo[b].locked_count=_,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),r("div",Vl," 剩余可用: "+c(l.count-l.used_count),1)])):V("",!0)],64))),128)):(d(),p("div",Il," 暂无渠道数据 "))])]),_:1})]),_:1})):V("",!0)])),[[le,o(h)]])]),_:1},8,["modelValue"]),n(G,{modelValue:o(O),"onUpdate:modelValue":e[22]||(e[22]=l=>P(O)?O.value=l:O=l),title:"批量修改",width:"45%","close-on-click-modal":!1},{footer:a(()=>[n(v,{onClick:e[20]||(e[20]=l=>P(O)?O.value=!1:O=!1),disabled:o(H)},{default:a(()=>[...e[64]||(e[64]=[i("取消",-1)])]),_:1},8,["disabled"]),n(v,{type:"primary",onClick:e[21]||(e[21]=l=>dt()),disabled:o(H)},{default:a(()=>[...e[65]||(e[65]=[i("确定修改",-1)])]),_:1},8,["disabled"])]),default:a(()=>[r("div",null,[r("div",Dl,"已选 "+c(o(k).length)+" 条号源明细",1),n(oe,{"label-width":"100px"},{default:a(()=>[n(w,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:a(()=>[n(D,{span:6},{default:a(()=>[...e[61]||(e[61]=[i("渠道名称",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[62]||(e[62]=[i("数量",-1)])]),_:1})]),_:1}),(d(),p(B,null,E(Y,(l,b)=>n(w,{key:b,gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px"}},{default:a(()=>[i(c(l.name),1)]),_:2},1024),n(D,{span:8},{default:a(()=>[n(te,{modelValue:o(X)[b].count,"onUpdate:modelValue":_=>o(X)[b].count=_,modelModifiers:{number:!0},placeholder:"数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)),64)),n(w,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[...e[63]||(e[63]=[i("合计",-1)])]),_:1}),n(D,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[i("数量: "+c(Se.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(G,{modelValue:o(F),"onUpdate:modelValue":e[25]||(e[25]=l=>P(F)?F.value=l:F=l),title:"批量占位",width:"45%","close-on-click-modal":!1},{footer:a(()=>[n(v,{onClick:e[23]||(e[23]=l=>P(F)?F.value=!1:F=!1),disabled:o(Q)},{default:a(()=>[...e[70]||(e[70]=[i("取消",-1)])]),_:1},8,["disabled"]),n(v,{type:"warning",onClick:e[24]||(e[24]=l=>ct()),disabled:o(Q)},{default:a(()=>[...e[71]||(e[71]=[i("确定占位",-1)])]),_:1},8,["disabled"])]),default:a(()=>[r("div",null,[r("div",Bl,"已选 "+c(o(k).length)+" 条号源明细",1),n(oe,{"label-width":"100px"},{default:a(()=>[n(w,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:a(()=>[n(D,{span:6},{default:a(()=>[...e[66]||(e[66]=[i("渠道名称",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[67]||(e[67]=[i("占用数量",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[68]||(e[68]=[i("提示",-1)])]),_:1})]),_:1}),(d(),p(B,null,E(Y,(l,b)=>n(w,{key:b,gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px"}},{default:a(()=>[i(c(l.name),1)]),_:2},1024),n(D,{span:8},{default:a(()=>[n(te,{modelValue:o(J)[b].locked_count,"onUpdate:modelValue":_=>o(J)[b].locked_count=_,modelModifiers:{number:!0},placeholder:"占用数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')",onInput:_=>ft(b,_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),n(D,{span:8,style:{"line-height":"32px","font-size":"12px",color:"#999"}},{default:a(()=>{var _;return[(_=o(me)[l.id])!=null&&_.limited?(d(),p(B,{key:0},[i(" 最大可占: "+c(o(me)[l.id].maxValue),1)],64)):(d(),p(B,{key:1},[i(" 剩余数量不一致 ")],64))]}),_:2},1024)]),_:2},1024)),64)),n(w,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[...e[69]||(e[69]=[i("合计",-1)])]),_:1}),n(D,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[i("占用: "+c(rt.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(G,{modelValue:o(K),"onUpdate:modelValue":e[27]||(e[27]=l=>P(K)?K.value=l:K=l),title:"修改结果",width:"40%"},{footer:a(()=>[n(v,{type:"primary",onClick:e[26]||(e[26]=l=>{P(K)?K.value=!1:K=!1,T()})},{default:a(()=>[...e[75]||(e[75]=[i("确定",-1)])]),_:1})]),default:a(()=>[r("div",null,[r("div",Ll,[e[72]||(e[72]=i(" 成功: ",-1)),r("span",Ml,c(o(he)),1),e[73]||(e[73]=i(" 条 失败: ",-1)),r("span",El,c(o(se).length),1),e[74]||(e[74]=i(" 条 ",-1))]),o(se).length>0?(d(),p("div",Sl,[(d(!0),p(B,null,E(o(se),(l,b)=>(d(),p("div",{key:b,style:{padding:"4px 0","font-size":"13px",color:"#f56c6c"}}," 第 "+c(l.index+1)+" 条(ID: "+c(l.id)+") → "+c(l.msg),1))),128))])):V("",!0)])]),_:1},8,["modelValue"])])}}},Rl=yt(zl,[["__scopeId","data-v-7a5d10fb"]]);export{Rl as default}; diff --git a/Laravel/public/admin/assets/PlanListAdmin-7c6cf53e.js b/Laravel/public/admin/assets/PlanListAdmin-7c6cf53e.js new file mode 100644 index 0000000..d1d4f73 --- /dev/null +++ b/Laravel/public/admin/assets/PlanListAdmin-7c6cf53e.js @@ -0,0 +1 @@ +import{_ as yt,Y as $e,o as bt,b1 as xt,r as B,c as kt,d as r,e as c,k as i,f as n,w as a,F as L,t as E,i as o,h as ge,Z as ae,j as z,x as V,b2 as ht,l as P,g as v,I as wt,E as x,W as Vt,O as It,q as d,v as p,b3 as Ne,b4 as Ct,b5 as Dt,p as Bt,b6 as Lt,b7 as Ae,bl as Mt,N as ye,bm as Et,bn as St,bo as zt,bc as Pt,bd as Tt,be as Rt,bf as Ut}from"./index-612fedfe.js";const $t={class:"head"},Nt={style:{display:"flex"},class:"planInfo"},At={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Ot=["onClick"],Yt={style:{flex:"1","min-width":"0"}},Ft={key:0,class:"planTable"},qt={style:{"background-color":"#f1f1f1",position:"relative"}},Gt={style:{width:"120px",display:"flex","font-size":"12px","justify-content":"center","align-items":"center"}},Xt={style:{"min-width":"120px","font-size":"14px"}},Zt=["data-row","data-col","onMouseover","onMouseleave","onMousedown"],Wt={key:0},jt={key:0,class:"hoverTools"},Ht=["onClick"],Kt=["onClick"],Qt=["onClick"],Jt=["onClick"],el={class:"zong_row"},tl={class:"qudao_title_zong"},ll={class:"qudao_count_row"},nl={key:0},ol={class:"font_color"},al={class:"patient_type_row"},sl={class:"tps"},ul={key:2,style:{width:"100%","background-color":"#fff"}},il={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},dl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},rl={style:{"font-weight":"700"}},fl={style:{"margin-right":"16px"}},pl={class:"qudao_k_input"},cl={style:{width:"50px"}},ml={class:"qudao_k_input"},vl={class:"dialog-footer"},_l={style:{"text-align":"center","font-size":"16px","margin-top":"-30px","margin-bottom":"10px"}},gl={style:{"font-weight":"700",display:"inline-block","margin-right":"8px"}},yl={style:{"font-weight":"700"}},bl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},xl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},kl={style:{width:"80px"}},hl={style:{flex:"1"}},wl={style:{color:"#999","font-size":"12px"}},Vl={key:1,style:{color:"#999"}},Il={class:"dialog-footer"},Cl={style:{"margin-bottom":"16px",color:"#666"}},Dl={style:{"margin-bottom":"16px",color:"#666"}},Bl={style:{"margin-bottom":"10px"}},Ll={style:{color:"#67c23a","font-weight":"600"}},Ml={style:{color:"#f56c6c","font-weight":"600"}},El={key:0},Sl={__name:"PlanListAdmin",setup(zl){let U=v([]),h=v(!1),Oe=v(1),Ye=v(9999),k=v([]),fe=v([]),$=v(0),C=v({department_id:null,resources_id:null,device_id:null,xingqi:null,status:null,dateRange:[]}),N=v(!1);const T=()=>{C.value.resources_id=A.value,fe.value=_t(C.value.dateRange),h.value=!0,Lt({page:Oe.value,pageSize:Ye.value,searchInfo:C.value}).then(t=>{if(h.value=!1,t.status){U.value=[],k.value=[];let e=t.data.list;if(e.length>0){const s=new Set;e.forEach(u=>{if(u.resources_id==A.value){const y=`${u.begin_time.substring(0,5)}-${u.end_time.substring(0,5)}`;s.add(y)}}),Array.from(s).sort().forEach(u=>{const y={time_range:u};fe.value.forEach(m=>{const w=e.find(S=>`${S.begin_time.substring(0,5)}-${S.end_time.substring(0,5)}`===u&&S.date===m&&S.resources_id==A.value);w?y[m]={countsInfo:w.countsInfo,patient_type_label:w.patient_type_label,status:w.status,id:w.id,resources_id:w.resources_id}:y[m]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),U.value.push(y)})}}else x.error(t.msg)})},Fe=()=>{$.value=$.value===0?1:0,$.value===0&&(k.value=[]),$.value===1&&U.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&k.value.push(t[s].id)})},qe=t=>{k.value.indexOf(t)===-1?k.value.push(t):k.value=k.value.filter(s=>s!==t)};let be=v(null),W=v(!1),j=v({row:0,col:0,x:0,y:0}),xe=v({}),ke=v(null);const Ge=t=>{be.value=t},Xe=t=>{be.value=null},Ze=(t,e,s,f)=>{W.value||Ge(e==null?void 0:e.id)},We=t=>{W.value||Xe()},je=(t,e,s,f)=>{if(t.target.closest(".plan_checkbox")||f==="time_range"||!e||!e.id)return;const u=t.currentTarget,y=u.closest("tr");if(!y)return;const m=ke.value;if(!m)return;const w=m.getBoundingClientRect();W.value=!0,j.value={row:y.rowIndex,col:u.cellIndex,x:t.clientX-w.left+m.scrollLeft,y:t.clientY-w.top+m.scrollTop},k.value=[e.id],$.value=0},Ce=t=>{var G;if(!W.value)return;const e=ke.value;if(!e)return;const s=e.getBoundingClientRect(),f=t.clientX-s.left+e.scrollLeft,u=t.clientY-s.top+e.scrollTop;xe.value={left:Math.min(j.value.x,f)+"px",top:Math.min(j.value.y,u)+"px",width:Math.abs(f-j.value.x)+"px",height:Math.abs(u-j.value.y)+"px"};const y=document.elementFromPoint(t.clientX,t.clientY);if(!y)return;const m=y.closest("td");if(!m)return;const w=m.closest("tr");if(!w||((G=w.parentElement)==null?void 0:G.tagName)==="THEAD")return;const S=w.rowIndex,re=m.cellIndex;if(re===0)return;const Z=j.value.row,ee=j.value.col,Ve=Math.min(Z,S),te=Math.max(Z,S),Ie=Math.min(ee,re),oe=Math.max(ee,re);k.value=[];for(let R=Ve;R<=te;R++){const ve=U.value[R-1];if(ve)for(let D=Ie;D<=oe;D++){if(D===0)continue;const le=fe.value[D-1];if(!le)continue;const l=ve[le];l&&l.id&&k.value.push(l.id)}}},De=()=>{W.value&&(W.value=!1,xe.value={})},He=t=>{A.value=t,$.value=0,k.value=[],T()},se=t=>k.value.includes(t);let Ke=v([]);const Qe=()=>{h.value=!0,wt().then(t=>{h.value=!1,t.status?Ke.value=t.data:x.error(t.msg)})};let pe=v([]);const Je=()=>{h.value=!0,Vt({}).then(t=>{h.value=!1,t.status?(pe.value=t.data.list,pe.value.length>0&&(C.value.department_id=pe.value[0].id,Be())):x.error(t.msg)})},et=()=>{C.value.resources_id=null,A.value=0,Be()};let ce=v([]),A=v(0);const Be=()=>{h.value=!0,It({department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(ce.value=t.data,ce.value.length>0&&A.value==""&&(A.value=ce.value[0].id,T())):x.error(t.msg)})};let g=v("");const tt=t=>{N.value=!0,h.value=!0,Ae({id:t}).then(e=>{h.value=!1,e.status?g.value=e.data:x.error(e.msg)})},lt=t=>{console.log(t),(t===""||t==null||t===0)&&(g.value.max_total=0);let e=0,s=g.value.coutsInfo.length,f=-1;for(let u=0;u{let t=0;if(g.value.coutsInfo.forEach(e=>{t=t+Number(e.count)}),t!==Number(g.value.max_total))return x.error("各个渠道数量之和与当日总量不符"),!1;h.value=!0,Mt({PlanDetaiInfo:g.value,department_id:C.value.department_id}).then(e=>{h.value=!1,e.status?(N.value=!1,T()):x.error(e.msg)})},ot=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,Et({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:t.msg,type:"success"}),T()):x.error(t.msg)})})},at=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定批量禁用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,St({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:"批量禁用成功",type:"success"}),T()):x.error(t.msg)})})},st=()=>{if(k.value.length==0)return x.error("请至少勾选1条记录"),!1;ye.confirm("确定批量启用勾选的号源吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{h.value=!0,zt({ids:k.value,department_id:C.value.department_id}).then(t=>{h.value=!1,t.status?(x({message:"批量启用成功",type:"success"}),T()):x.error(t.msg)})})};let O=v(!1),H=v(!1),Le=v(0),Me=v(0),ut=v(0),he=v(0),K=v(!1),ue=v([]);const Y=[{name:"医生",id:1},{name:"护士站",id:4},{name:"微信",id:2},{name:"自助机",id:3}];let X=v([]);const Ee=()=>{X.value=Y.map(t=>({appointment_type_id:t.id,count:""}))};Ee();const Se=$e(()=>X.value.reduce((t,e)=>t+(Number(e.count)||0),0)),it=()=>{if(k.value.length==0){x.error("请至少勾选1条记录");return}Ee();const t=new Set(k.value),e={};Y.forEach(s=>{e[s.id]={count:[]}}),U.value.forEach(s=>{for(const f in s){if(f==="time_range")continue;const u=s[f];u&&u.id&&t.has(u.id)&&u.countsInfo&&u.countsInfo.forEach(y=>{e[y.appointment_type_id]&&e[y.appointment_type_id].count.push(y.count)})}}),X.value=Y.map(s=>{const f=e[s.id],u=y=>y.length>0&&y.every(m=>m===y[0]);return{appointment_type_id:s.id,count:f.count.length>0&&u(f.count)?f.count[0]:""}}),Le.value=0,Me.value=0,ut.value=k.value.length,he.value=0,ue.value=[],H.value=!1,O.value=!0},dt=async()=>{for(const u of X.value)if(Number(u.count)<0){x.error("数量不能为负数");return}if(X.value.every(u=>Number(u.count)===0)&&!await ye.confirm("所有渠道数量均为0,确定继续修改吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>!0).catch(()=>!1))return;const e=Se.value;H.value=!0,Le.value=0,Me.value=0,ue.value=[],he.value=0;const s=[...k.value],f=X.value.map(u=>({appointment_type_id:u.appointment_type_id,count:Number(u.count)||0}));try{const u=await Pt({ids:s,max_total:e,coutsInfo:f,department_id:C.value.department_id});H.value=!1,u&&u.status?(O.value=!1,x.success("批量修改完成"),T()):(x.error((u==null?void 0:u.msg)||"批量修改失败"),H.value=!1)}catch{H.value=!1,x.error("请求异常")}};let F=v(!1),Q=v(!1),J=v([]),me=v({});const ze=()=>{J.value=Y.map(t=>({appointment_type_id:t.id,locked_count:""}))};ze();const rt=$e(()=>J.value.reduce((t,e)=>t+(Number(e.locked_count)||0),0)),ft=(t,e)=>{const s=Y[t],f=me.value[s.id];f!=null&&f.limited&&Number(e)>f.maxValue&&(J.value[t].locked_count=f.maxValue)},pt=()=>{if(k.value.length==0){x.error("请至少勾选1条记录");return}ze();const t=new Set(k.value),e={};Y.forEach(f=>{e[f.id]=[]}),U.value.forEach(f=>{for(const u in f){if(u==="time_range")continue;const y=f[u];y&&y.id&&t.has(y.id)&&y.countsInfo&&y.countsInfo.forEach(m=>{e[m.appointment_type_id]&&e[m.appointment_type_id].push(m.count-m.used_count)})}});const s={};Y.forEach(f=>{const u=e[f.id];if(u.length>0){const y=Math.min(...u);s[f.id]={limited:!0,maxValue:y}}else s[f.id]={limited:!1,maxValue:null}}),me.value=s,Q.value=!1,F.value=!0},ct=async()=>{for(const s of J.value)if(Number(s.locked_count)<0){x.error("占用数量不能为负数");return}Q.value=!0;const t=[...k.value],e=J.value.map(s=>({appointment_type_id:s.appointment_type_id,locked_count:Number(s.locked_count)||0}));try{const s=await Tt({ids:t,coutsInfo:e,department_id:C.value.department_id});Q.value=!1,s&&s.status?(F.value=!1,x.success("批量占位完成"),T()):(x.error((s==null?void 0:s.msg)||"批量占位失败"),Q.value=!1)}catch{Q.value=!1,x.error("请求异常")}};let ie=v(!1),we=v(!1),Pe=v(null),de=v(null),ne=v(null);const Te=(t,e)=>{ne.value=e,de.value=t,ie.value=!0,we.value=!0,Rt({planid:t.id,qudaoid:e}).then(s=>{we.value=!1,s.status?Pe.value=s.data:x.error(s.msg)})};let q=v(!1),M=v(null);const mt=t=>{q.value=!0,h.value=!0,Ae({id:t.id}).then(e=>{h.value=!1,e.status?(M.value=e.data,M.value.coutsInfo.forEach(s=>{s.locked_count===null&&(s.locked_count=0)})):x.error(e.msg)})},vt=()=>{let t=[],e=!1;M.value.coutsInfo.forEach(s=>{if(e)return;const f=s.count-s.used_count;if(Number(s.locked_count)>f){x.error(`${s.name} 的占位数量不能大于剩余可用数量,最多${f}个`),e=!0;return}if(Number(s.locked_count)<0){x.error(`${s.name} 的占位数量不能为负数`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}),!e&&(h.value=!0,Ut({roster_detail_id:M.value.id,locked_counts:t}).then(s=>{h.value=!1,s.status?(q.value=!1,T(),x.success("占位设置保存成功")):x.error(s.msg)}))};function Re(t){const e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),f=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${f}`}function _t(t){const e=t.map(m=>new Date(m)).sort((m,w)=>m-w),s=e[0],f=e[e.length-1],u=[];let y=new Date(s);for(;y<=f;)u.push(y.toISOString().split("T")[0]),y.setDate(y.getDate()+1);return u}function gt(t){const e=new Date(t);return isNaN(e)?"无效日期":["周日","周一","周二","周三","周四","周五","周六"][e.getDay()]}return bt(()=>{const t=new Date,e=Re(t),s=new Date(t);s.setDate(t.getDate()+14);const f=Re(s);C.value.dateRange=[e,f],Je(),Qe(),document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",De)}),xt(()=>{document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",De)}),(t,e)=>{const s=B("el-option"),f=B("el-select"),u=B("el-form-item"),y=B("el-date-picker"),m=B("el-button"),w=B("el-row"),S=B("el-icon"),re=B("el-empty"),Z=B("el-tag"),ee=B("el-checkbox"),Ve=B("el-checkbox-group"),te=B("el-input"),Ie=B("el-switch"),oe=B("el-form"),G=B("el-dialog"),R=B("el-table-column"),ve=B("el-table"),D=B("el-col"),le=kt("loading");return r(),c("div",null,[i("div",$t,[n(w,null,{default:a(()=>[n(u,null,{default:a(()=>[n(f,{filterable:!0,clearable:"",modelValue:o(C).department_id,"onUpdate:modelValue":e[0]||(e[0]=l=>o(C).department_id=l),placeholder:"选择科室",onChange:et,style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[(r(!0),c(L,null,E(o(pe),(l,b)=>(r(),z(s,{key:b,label:l.department_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(u,null,{default:a(()=>[n(y,{style:{"margin-left":"8px",width:"150px"},modelValue:o(C).dateRange[0],"onUpdate:modelValue":e[1]||(e[1]=l=>o(C).dateRange[0]=l),type:"date",placeholder:"开始时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"]),e[28]||(e[28]=i("span",{style:{margin:"0 4px"}},"至",-1)),n(y,{style:{width:"150px"},modelValue:o(C).dateRange[1],"onUpdate:modelValue":e[2]||(e[2]=l=>o(C).dateRange[1]=l),type:"date",placeholder:"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),n(m,{onClick:e[3]||(e[3]=l=>T()),style:{"margin-left":"10px"}},{default:a(()=>[...e[29]||(e[29]=[d("搜索",-1)])]),_:1}),n(m,{type:"danger",onClick:e[4]||(e[4]=l=>ot()),style:{"margin-left":"10px"}},{default:a(()=>[...e[30]||(e[30]=[d("删除",-1)])]),_:1}),n(m,{type:"warning",onClick:e[5]||(e[5]=l=>at()),style:{"margin-left":"10px"}},{default:a(()=>[...e[31]||(e[31]=[d("批量禁用",-1)])]),_:1}),n(m,{type:"success",onClick:e[6]||(e[6]=l=>st()),style:{"margin-left":"10px"}},{default:a(()=>[...e[32]||(e[32]=[d("批量启用",-1)])]),_:1}),n(m,{type:"primary",onClick:e[7]||(e[7]=l=>it()),style:{"margin-left":"10px"}},{default:a(()=>[...e[33]||(e[33]=[d("批量修改",-1)])]),_:1}),n(m,{type:"warning",onClick:e[8]||(e[8]=l=>pt()),style:{"margin-left":"10px"}},{default:a(()=>[...e[34]||(e[34]=[d("批量占位",-1)])]),_:1})]),_:1})]),i("div",Nt,[i("div",At,[(r(!0),c(L,null,E(o(ce),(l,b)=>(r(),c("div",{key:b,onClick:_=>He(l.id),class:ae({"zhenshiButton zhenshiButtonActive":l.id===o(A),zhenshiButton:l.id!==o(A)})},p(l.department_resources_name),11,Ot))),128))]),i("div",Yt,[e[41]||(e[41]=i("div",{style:{"text-align":"right",padding:"4px 8px","font-size":"12px",color:"#999"}},"数据格式:占位/已用/总数",-1)),ge((r(),c("div",{ref_key:"scrollContainer",ref:ke,style:{border:"1px solid #efefef","overflow-x":"auto",position:"relative"}},[o(U).length>0?(r(),c("table",Ft,[i("tr",qt,[i("td",null,[i("div",Gt,[e[35]||(e[35]=i("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),i("div",{class:ae({"plan_checkAllbox plan_checkAllbox_active":o($)===1,"plan_checkAllbox ":o($)===0}),onClick:e[9]||(e[9]=l=>Fe())},[o($)===1?(r(),z(S,{key:0,color:"#ffffff"},{default:a(()=>[n(o(Ne))]),_:1})):V("",!0)],2)])]),(r(!0),c(L,null,E(o(fe),(l,b)=>(r(),c("td",Xt,p(l.substring(5,10))+" "+p(gt(l)),1))),256))]),(r(!0),c(L,null,E(o(U),(l,b)=>(r(),c("tr",{key:b},[(r(!0),c(L,null,E(l,(_,_e)=>(r(),c("td",{key:_e,"data-row":b,"data-col":_e,onMouseover:I=>Ze(I,_),onMouseleave:I=>We(_.id),onMousedown:I=>je(I,_,b,_e)},[i("div",null,[_e=="time_range"?(r(),c("span",Wt,p(_),1)):V("",!0),_.countsInfo&&_.countsInfo.length>0?(r(),c("div",{key:1,class:ae({planInfo_k:_.status==1,"planInfo_k planInfo_k_disabled":_.status==0,planInfo_k_selected:se(_.id)&&_.status==1,planInfo_k_disabled_selected:se(_.id)&&_.status==0})},[o(be)==_.id?(r(),c("div",jt,[i("div",{class:"icon_k",onClick:I=>tt(_.id)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Ct))]),_:1}),e[36]||(e[36]=i("span",{class:"icon_text"},"编辑",-1))],8,Ht),i("div",{class:"icon_k",onClick:I=>Te(_,0)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Dt))]),_:1}),e[37]||(e[37]=i("span",{class:"icon_text"},"明细",-1))],8,Kt),i("div",{class:"icon_k",onClick:I=>mt(_)},[n(S,{color:"#409eff",size:"20"},{default:a(()=>[n(o(Bt))]),_:1}),e[38]||(e[38]=i("span",{class:"icon_text"},"占位",-1))],8,Qt)])):V("",!0),i("div",{class:ae({"plan_checkbox plan_checkbox_active":se(_.id),plan_checkbox:!se(_.id)}),onClick:I=>qe(_.id)},[se(_.id)?(r(),z(S,{key:0,color:"#ffffff"},{default:a(()=>[n(o(Ne))]),_:1})):V("",!0)],10,Jt),i("div",el,[i("div",tl,[e[39]||(e[39]=i("span",null,"总数:",-1)),d(p(_.countsInfo[0].max_total),1)])]),i("div",ll,[(r(!0),c(L,null,E(_.countsInfo,(I,Ue)=>(r(),c(L,{key:Ue},[I&&!(I.count===0&&I.used_count===0)?(r(),c("div",nl,[i("span",null,p(I.jiancheng),1),i("span",null,[i("span",{class:ae({"yellow bold-text":I.locked_count>0})},p(I.locked_count!=null?I.locked_count:0),3),e[40]||(e[40]=i("span",null,"/",-1)),i("span",ol,p(I.used_count),1),d("/"+p(I.count),1)])])):V("",!0)],64))),128))]),i("div",al,[(r(!0),c(L,null,E(_.patient_type_label,(I,Ue)=>(r(),c("div",sl,p(I),1))),256))])],2)):V("",!0)])],40,Zt))),128))]))),128))])):V("",!0),o(W)?(r(),c("div",{key:1,class:"drag-selection-overlay",style:ht(o(xe))},null,4)):V("",!0),o(U).length==0?(r(),c("div",ul,[n(re,{description:"暂无号源"})])):V("",!0)])),[[le,o(h)]])])]),n(G,{modelValue:o(N),"onUpdate:modelValue":e[14]||(e[14]=l=>P(N)?N.value=l:N=l),title:"修改",width:"40%"},{footer:a(()=>[i("span",vl,[n(m,{onClick:e[13]||(e[13]=l=>P(N)?N.value=!1:N=!1)},{default:a(()=>[...e[51]||(e[51]=[d("取消",-1)])]),_:1}),n(m,{type:"primary",onClick:nt},{default:a(()=>[...e[52]||(e[52]=[d(" 确定 ",-1)])]),_:1})])]),default:a(()=>[ge((r(),c("div",null,[o(g)?(r(),z(oe,{key:0,"label-width":"100px",style:{"padding-right":"40px"}},{default:a(()=>[n(u,{label:"日期:"},{default:a(()=>[d(p(o(g).date),1)]),_:1}),n(u,{label:"星期:"},{default:a(()=>[d(p(o(g).weekname),1)]),_:1}),n(u,{label:"科室:"},{default:a(()=>[d(p(o(g).department_name),1)]),_:1}),V("",!0),V("",!0),n(u,{label:"病人类型:"},{default:a(()=>[n(Ve,{disabled:"",modelValue:o(g).patientType,"onUpdate:modelValue":e[10]||(e[10]=l=>o(g).patientType=l)},{default:a(()=>[n(ee,{label:"0"},{default:a(()=>[...e[42]||(e[42]=[d("住院",-1)])]),_:1}),n(ee,{label:"1"},{default:a(()=>[...e[43]||(e[43]=[d("门诊",-1)])]),_:1}),n(ee,{label:"2"},{default:a(()=>[...e[44]||(e[44]=[d("急诊",-1)])]),_:1}),n(ee,{label:"3"},{default:a(()=>[...e[45]||(e[45]=[d("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(u,{label:"时间段:"},{default:a(()=>[e[46]||(e[46]=d(" 开始时间:",-1)),i("span",il,p(o(g).begin_time),1),e[47]||(e[47]=d(" 结束时间:",-1)),i("span",dl,p(o(g).end_time),1),e[48]||(e[48]=d(" 停止预约时间:",-1)),i("span",rl,p(o(g).end_reservation_time),1)]),_:1}),o(g).coutsInfo?(r(),z(u,{key:2,label:"渠道名额:"},{default:a(()=>[i("div",fl,[e[49]||(e[49]=i("div",null,"当日总量",-1)),i("div",pl,[n(te,{onInput:lt,type:"number",modelValue:o(g).max_total,"onUpdate:modelValue":e[11]||(e[11]=l=>o(g).max_total=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])]),e[50]||(e[50]=i("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),i("div",null,[(r(!0),c(L,null,E(o(g).coutsInfo,(l,b)=>(r(),c("div",{class:"qudao_k",key:b},[i("div",cl,p(l.name),1),i("div",ml,[n(te,{type:"number",modelValue:o(g).coutsInfo[b].count,"onUpdate:modelValue":_=>o(g).coutsInfo[b].count=_,min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1})):V("",!0),n(u,{label:"状态:"},{default:a(()=>[n(Ie,{modelValue:o(g).status,"onUpdate:modelValue":e[12]||(e[12]=l=>o(g).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1}),n(u,{label:"添加时间:"},{default:a(()=>[d(p(o(g).created_at),1)]),_:1})]),_:1})):V("",!0)])),[[le,o(h)]])]),_:1},8,["modelValue"]),n(G,{modelValue:o(ie),"onUpdate:modelValue":e[17]||(e[17]=l=>P(ie)?ie.value=l:ie=l),title:"预约明细",width:"60%"},{default:a(()=>[i("div",null,[i("div",_l,[d(p(o(de).department_resources_name)+" ",1),(r(!0),c(L,null,E(o(de).devices,(l,b)=>(r(),c("span",{key:b,class:ae(l.status==1&&l.is_del==0?"":"hongzi")},p(l.device_name),3))),128))]),n(u,{label:"渠道"},{default:a(()=>[n(f,{filterable:!0,clearable:"",modelValue:o(ne),"onUpdate:modelValue":e[15]||(e[15]=l=>P(ne)?ne.value=l:ne=l),onChange:e[16]||(e[16]=l=>Te(o(de),o(ne))),placeholder:"选择渠道",style:{"margin-left":"8px",width:"150px"}},{default:a(()=>[n(s,{label:"全部",value:0}),(r(!0),c(L,null,E(o(de).countsInfo,(l,b)=>(r(),z(s,{key:b,label:l.name,value:l.appointment_type_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),ge((r(),z(ve,{data:o(Pe),style:{width:"100%"},"row-key":"id"},{default:a(()=>[n(R,{prop:"list_status",label:"状态",width:"100"},{default:a(l=>[l.row.list_status===0?(r(),z(Z,{key:0,class:"ml-2",type:"info"},{default:a(()=>[...e[53]||(e[53]=[d("申请中",-1)])]),_:1})):V("",!0),l.row.list_status===1?(r(),z(Z,{key:1,class:"ml-2",type:"success"},{default:a(()=>[...e[54]||(e[54]=[d("已预约",-1)])]),_:1})):V("",!0),l.row.list_status===2?(r(),z(Z,{key:2,class:"ml-2"},{default:a(()=>[...e[55]||(e[55]=[d("登记",-1)])]),_:1})):V("",!0),l.row.list_status===3?(r(),z(Z,{key:3,class:"ml-2",type:"warning"},{default:a(()=>[...e[56]||(e[56]=[d("完成",-1)])]),_:1})):V("",!0)]),_:1}),n(R,{prop:"user_name",label:"姓名"}),n(R,{prop:"user_phone",label:"电话"}),n(R,{prop:"reg_num",label:"登记号"}),n(R,{prop:"reservation_department",label:"申请科室"}),n(R,{prop:"entrust",label:"项目"}),n(R,{prop:"qudao_name",label:"渠道"})]),_:1},8,["data"])),[[le,o(we)]])])]),_:1},8,["modelValue"]),n(G,{modelValue:o(q),"onUpdate:modelValue":e[19]||(e[19]=l=>P(q)?q.value=l:q=l),title:"占位设置",width:"40%"},{footer:a(()=>[i("span",Il,[n(m,{onClick:e[18]||(e[18]=l=>P(q)?q.value=!1:q=!1)},{default:a(()=>[...e[59]||(e[59]=[d("取消",-1)])]),_:1}),n(m,{type:"primary",onClick:vt},{default:a(()=>[...e[60]||(e[60]=[d(" 确定 ",-1)])]),_:1})])]),default:a(()=>[ge((r(),c("div",null,[o(M)?(r(),z(oe,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:a(()=>[n(u,{label:"日期:"},{default:a(()=>[d(p(o(M).date),1)]),_:1}),n(u,{label:"星期:"},{default:a(()=>[d(p(o(M).weekname),1)]),_:1}),n(u,{label:"科室:"},{default:a(()=>[d(p(o(M).department_name),1)]),_:1}),n(u,{label:"资源:"},{default:a(()=>[d(p(o(M).resources_name),1)]),_:1}),n(u,{label:"服务组:"},{default:a(()=>[(r(!0),c(L,null,E(o(M).devices,(l,b)=>(r(),z(Z,{key:b,type:l.status===1&&l.is_del===0?"":"danger",style:{"margin-left":"8px"}},{default:a(()=>[d(p(l.device_name),1)]),_:2},1032,["type"]))),128))]),_:1}),n(u,{label:"时间段:"},{default:a(()=>[e[57]||(e[57]=d(" 开始时间:",-1)),i("span",gl,p(o(M).begin_time),1),e[58]||(e[58]=d(" 结束时间:",-1)),i("span",yl,p(o(M).end_time),1)]),_:1}),n(u,{label:"渠道占位:"},{default:a(()=>[i("div",bl,[o(M).coutsInfo&&o(M).coutsInfo.length>0?(r(!0),c(L,{key:0},E(o(M).coutsInfo,(l,b)=>(r(),c(L,{key:b},[l&&!(l.count===0&&l.used_count===0)?(r(),c("div",xl,[i("div",kl,p(l.name),1),i("div",hl,[n(te,{type:"number",modelValue:o(M).coutsInfo[b].locked_count,"onUpdate:modelValue":_=>o(M).coutsInfo[b].locked_count=_,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),i("div",wl," 剩余可用: "+p(l.count-l.used_count),1)])):V("",!0)],64))),128)):(r(),c("div",Vl," 暂无渠道数据 "))])]),_:1})]),_:1})):V("",!0)])),[[le,o(h)]])]),_:1},8,["modelValue"]),n(G,{modelValue:o(O),"onUpdate:modelValue":e[22]||(e[22]=l=>P(O)?O.value=l:O=l),title:"批量修改",width:"45%","close-on-click-modal":!1},{footer:a(()=>[n(m,{onClick:e[20]||(e[20]=l=>P(O)?O.value=!1:O=!1),disabled:o(H)},{default:a(()=>[...e[64]||(e[64]=[d("取消",-1)])]),_:1},8,["disabled"]),n(m,{type:"primary",onClick:e[21]||(e[21]=l=>dt()),disabled:o(H)},{default:a(()=>[...e[65]||(e[65]=[d("确定修改",-1)])]),_:1},8,["disabled"])]),default:a(()=>[i("div",null,[i("div",Cl,"已选 "+p(o(k).length)+" 条号源明细",1),n(oe,{"label-width":"100px"},{default:a(()=>[n(w,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:a(()=>[n(D,{span:6},{default:a(()=>[...e[61]||(e[61]=[d("渠道名称",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[62]||(e[62]=[d("数量",-1)])]),_:1})]),_:1}),(r(),c(L,null,E(Y,(l,b)=>n(w,{key:b,gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px"}},{default:a(()=>[d(p(l.name),1)]),_:2},1024),n(D,{span:8},{default:a(()=>[n(te,{modelValue:o(X)[b].count,"onUpdate:modelValue":_=>o(X)[b].count=_,modelModifiers:{number:!0},placeholder:"数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)),64)),n(w,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[...e[63]||(e[63]=[d("合计",-1)])]),_:1}),n(D,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[d("数量: "+p(Se.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(G,{modelValue:o(F),"onUpdate:modelValue":e[25]||(e[25]=l=>P(F)?F.value=l:F=l),title:"批量占位",width:"45%","close-on-click-modal":!1},{footer:a(()=>[n(m,{onClick:e[23]||(e[23]=l=>P(F)?F.value=!1:F=!1),disabled:o(Q)},{default:a(()=>[...e[70]||(e[70]=[d("取消",-1)])]),_:1},8,["disabled"]),n(m,{type:"warning",onClick:e[24]||(e[24]=l=>ct()),disabled:o(Q)},{default:a(()=>[...e[71]||(e[71]=[d("确定占位",-1)])]),_:1},8,["disabled"])]),default:a(()=>[i("div",null,[i("div",Dl,"已选 "+p(o(k).length)+" 条号源明细",1),n(oe,{"label-width":"100px"},{default:a(()=>[n(w,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:a(()=>[n(D,{span:6},{default:a(()=>[...e[66]||(e[66]=[d("渠道名称",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[67]||(e[67]=[d("占用数量",-1)])]),_:1}),n(D,{span:8},{default:a(()=>[...e[68]||(e[68]=[d("提示",-1)])]),_:1})]),_:1}),(r(),c(L,null,E(Y,(l,b)=>n(w,{key:b,gutter:10,style:{"margin-bottom":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px"}},{default:a(()=>[d(p(l.name),1)]),_:2},1024),n(D,{span:8},{default:a(()=>[n(te,{modelValue:o(J)[b].locked_count,"onUpdate:modelValue":_=>o(J)[b].locked_count=_,modelModifiers:{number:!0},placeholder:"占用数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')",onInput:_=>ft(b,_)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),n(D,{span:8,style:{"line-height":"32px","font-size":"12px",color:"#999"}},{default:a(()=>{var _;return[((_=o(me)[l.id])==null?void 0:_.maxValue)!==null?(r(),c(L,{key:0},[d(" 最大可占: "+p(o(me)[l.id].maxValue),1)],64)):V("",!0)]}),_:2},1024)]),_:2},1024)),64)),n(w,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:a(()=>[n(D,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[...e[69]||(e[69]=[d("合计",-1)])]),_:1}),n(D,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:a(()=>[d("占用: "+p(rt.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"]),n(G,{modelValue:o(K),"onUpdate:modelValue":e[27]||(e[27]=l=>P(K)?K.value=l:K=l),title:"修改结果",width:"40%"},{footer:a(()=>[n(m,{type:"primary",onClick:e[26]||(e[26]=l=>{P(K)?K.value=!1:K=!1,T()})},{default:a(()=>[...e[75]||(e[75]=[d("确定",-1)])]),_:1})]),default:a(()=>[i("div",null,[i("div",Bl,[e[72]||(e[72]=d(" 成功: ",-1)),i("span",Ll,p(o(he)),1),e[73]||(e[73]=d(" 条 失败: ",-1)),i("span",Ml,p(o(ue).length),1),e[74]||(e[74]=d(" 条 ",-1))]),o(ue).length>0?(r(),c("div",El,[(r(!0),c(L,null,E(o(ue),(l,b)=>(r(),c("div",{key:b,style:{padding:"4px 0","font-size":"13px",color:"#f56c6c"}}," 第 "+p(l.index+1)+" 条(ID: "+p(l.id)+") → "+p(l.msg),1))),128))])):V("",!0)])]),_:1},8,["modelValue"])])}}},Tl=yt(Sl,[["__scopeId","data-v-0f67a3f8"]]);export{Tl as default}; diff --git a/Laravel/public/admin/assets/PlanListAdmin-f396cfeb.css b/Laravel/public/admin/assets/PlanListAdmin-f396cfeb.css new file mode 100644 index 0000000..21bd523 --- /dev/null +++ b/Laravel/public/admin/assets/PlanListAdmin-f396cfeb.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-0f67a3f8]{display:flex}.type_count div[data-v-0f67a3f8]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-0f67a3f8]{display:flex}.qudao_k_input[data-v-0f67a3f8]{width:150px}.hongzi[data-v-0f67a3f8]{color:#b25252}.yiyong[data-v-0f67a3f8]{font-weight:700;color:#f5a96c;cursor:pointer}.yiyong[data-v-0f67a3f8]:hover{color:#666}.zhenshiButton[data-v-0f67a3f8]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-0f67a3f8]{background-color:#5bc0de;color:#fff}.plan_checkAllbox[data-v-0f67a3f8]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-0f67a3f8]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k_disabled[data-v-0f67a3f8]{background-color:#ffd6d2}.planInfo_k[data-v-0f67a3f8]{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-0f67a3f8]{text-align:right}.planInfo_k .zong_row .qudao_title_zong[data-v-0f67a3f8]{font-weight:600}.planInfo_k .zong_row .qudao_title_zong span[data-v-0f67a3f8]{font-weight:500}.planInfo_k .plan_checkbox[data-v-0f67a3f8]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-0f67a3f8]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .hoverTools[data-v-0f67a3f8]{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-0f67a3f8]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-0f67a3f8]{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-0f67a3f8]{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-0f67a3f8]{display:flex}.planInfo_k .qudao_count_row div[data-v-0f67a3f8]{margin-left:6px}.planInfo .planTable[data-v-0f67a3f8]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333;user-select:none;-webkit-user-select:none}.planInfo .planTable td[data-v-0f67a3f8]{border:1px solid #f1f1f1}.planInfo .planTable td[data-v-0f67a3f8]:first-child,.planInfo .planTable th[data-v-0f67a3f8]:first-child{position:sticky;left:0;background-color:#fafafa;z-index:1}.planInfo .table_plan_row td[data-v-0f67a3f8]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-0f67a3f8]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-0f67a3f8]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-0f67a3f8]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-0f67a3f8]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-0f67a3f8]{width:100px}.yellow[data-v-0f67a3f8]{color:#ffaa7f}.red[data-v-0f67a3f8]{color:#c81e00}.bold-text[data-v-0f67a3f8]{font-weight:700}.drag-selection-overlay[data-v-0f67a3f8]{position:absolute;top:0;left:0;background:rgba(64,158,255,.12);border:1px solid rgba(64,158,255,.5);pointer-events:none;z-index:10}.planInfo_k_selected[data-v-0f67a3f8]{background-color:#e6f7ff;outline:2px solid #409eff;outline-offset:-2px;border-radius:4px}.planInfo_k_disabled_selected[data-v-0f67a3f8]{background-color:#f3e8ff;outline:2px solid #7c3aed;outline-offset:-2px;border-radius:4px} diff --git a/Laravel/public/admin/assets/PlanModel-567f1307.css b/Laravel/public/admin/assets/PlanModel-567f1307.css deleted file mode 100644 index 6b8d289..0000000 --- a/Laravel/public/admin/assets/PlanModel-567f1307.css +++ /dev/null @@ -1 +0,0 @@ -@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/admin/assets/PlanModel-8f8b4b5d.js b/Laravel/public/admin/assets/PlanModel-8f8b4b5d.js new file mode 100644 index 0000000..5c3c162 --- /dev/null +++ b/Laravel/public/admin/assets/PlanModel-8f8b4b5d.js @@ -0,0 +1 @@ +import{_ as dl,o as rl,r as x,c as _l,d,e as r,k as i,f as n,w as u,i as a,F as P,t as U,h as Q,Z as ee,j as E,x as g,l as L,g as p,I as pl,E as V,aP as vl,O as fl,J as ml,q as f,v as w,aT as cl,N as fe,aU as gl,aV as yl,aW as bl,aX as kl,aY as xl,aZ as hl,a_ as Te,a$ as Vl,b0 as wl}from"./index-612fedfe.js";const Cl={class:"head"},ql={key:0,style:{display:"flex"},class:"planInfo"},Il={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},El=["onClick"],Tl={style:{border:"1px solid #efefef",width:"100%"}},Dl={key:0,class:"planTable"},Bl={style:{"background-color":"#f1f1f1",position:"relative"}},Pl={style:{width:"120px",display:"flex","font-size":"12px"}},Ul={style:{"font-weight":"700"}},Ll=["onMouseover","onMouseleave"],Sl={key:0},Ml={key:0,class:"hoverTools"},zl=["onClick"],$l=["onClick"],Al=["onClick"],Gl={class:"qudao_count_row"},Rl={class:"qudao_title_zong"},Nl={class:"patient_type_row"},Fl={class:"tps"},Zl={key:1,class:"locked_count_row"},Ol={key:1,style:{width:"100%","background-color":"#fff"}},Wl={key:0,class:"type_count"},Yl={key:0,class:"type_count"},jl={style:{"font-weight":"700"}},Hl={style:{"margin-right":"26px"}},Jl={class:"qudao_k_input"},Xl={style:{width:"50px"}},Kl={class:"qudao_k_input",style:{display:"flex"}},Ql={style:{"margin-left":"4px",color:"#ccc"}},et={style:{display:"flex"}},lt={style:{display:"flex"}},tt={class:"qudao_k_input"},at={style:{display:"flex"}},ot={class:"qudao_k_input"},nt={style:{"margin-left":"8px"}},ut={style:{display:"flex"}},st={class:"qudao_k_input"},it={style:{display:"flex"}},dt={class:"qudao_k_input"};const rt={class:"dialog-footer"},_t={class:"dialog-footer"},pt={class:"dialog-footer"},vt={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},ft={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},mt={style:{width:"80px"}},ct={style:{flex:"1"}},gt={style:{color:"#999","font-size":"12px"}},yt={key:1,style:{color:"#999"}},bt={class:"dialog-footer"},kt={__name:"PlanModel",setup(xt){let R=p("1"),_=p(!1),De=p(1),Be=p(15),S=p([]),M=p({}),W=p([]),q=p([]),N=p(0),me=p([]),O=p([]),z=p(!1),F=p(!1),ce=p([]),$=p(!1),C=p(null);const Pe=()=>{if(q.value.length===0)return V.error("请至少勾选1条记录"),!1;z.value=!0},oe=(t,e)=>{h.value.type=0,j.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,Y()},Ue=()=>{N.value=N.value===0?1:0,N.value===0&&(q.value=[]),N.value===1&&W.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&q.value.push(t[s].id)})};let ne=p(null);const Le=t=>{ne.value=t},Se=t=>{ne.value=null},ue=t=>q.value.includes(t),Me=t=>{q.value.indexOf(t)===-1?q.value.push(t):q.value=q.value.filter(s=>s!==t)},ze=()=>{if(O.value.length===0)return V.error("请选择日期范围"),!1;cl({dateRange:O.value,ids:q.value,HolidayEnable:J.value,date_type:h.value.date_type}).then(t=>{t.status?(z.value=!1,V({message:t.msg,type:"success"})):t.data&&t.data.conflicts&&t.data.conflicts.length>0?(ce.value=t.data.conflicts,F.value=!0):fe.alert(t.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let h=p({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),J=p(1),se=p("工作日"),A=p(!1);const Y=()=>{_.value=!0,gl({page:De.value,pageSize:Be.value,searchInfo:h.value}).then(t=>{if(_.value=!1,t.status){W.value=[],q.value=[];let e=t.data.list;if(me.value=e,e.length>0){const s=new Set;e.forEach((v,T)=>{if(v.department_resources_name==M.value.department_resources_name){const y=`${v.begin_time.substring(0,5)}-${v.end_time.substring(0,5)}`;s.add(y)}v.resources_id}),Array.from(s).sort().forEach(v=>{const T={time_range:v};ie.value.forEach(y=>{const b=e.find(D=>`${D.begin_time.substring(0,5)}-${D.end_time.substring(0,5)}`===v&&D.weekname===y.label&&D.department_resources_name==M.value.department_resources_name);b?T[y.label]={countsInfo:b.countsInfo,patient_type_label:b.patient_type_label,status:b.status,id:b.id,resources_id:b.resources_id}:T[y.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),W.value.push(T)})}}})};let ie=p([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),$e=p(null);const ge=()=>({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=p(ge()),le=p(0);const de=(t=null)=>{be.value=[],X.value=!1,A.value=!0,o.value=ge(),le.value=0,Ye(),je(),t?(o.value.resources_id=t.resources_id,ke(),setTimeout(()=>{console.log("编辑"),Je(t.id)},500)):M.value.id&&(o.value.resources_id=M.value.id,ke())},Ae=()=>{h.value.date_type==1&&(se.value="工作日",S.value.length>0&&oe(S.value[0].resources_name,S.value[0].resources_id)),h.value.date_type==2&&(se.value="节假日",h.value.type=0,h.value.resources_id=null,Y())},Ge=()=>{Y()},Re=()=>{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;fe.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,yl({date_type:h.value.date_type,planInfo:o.value}).then(e=>{_.value=!1,e.status?(A.value=!1,Y()):V.error(e.msg)})})},Ne=()=>{if(q.value.length==0)return V.error("请至少勾选1条记录"),!1;fe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.value=!0,bl({ids:q.value}).then(t=>{_.value=!1,t.status?(V({message:t.msg,type:"success"}),Y()):V.error(t.msg)})})};let Fe=p([]);const Ze=()=>{_.value=!0,pl().then(t=>{_.value=!1,t.status?Fe.value=t.data:V.error(t.msg)})};let Oe=p([]);const We=()=>{_.value=!0,vl({}).then(t=>{_.value=!1,t.status?Oe.value=t.data.list:V.error(t.msg)})},Ye=()=>{_.value=!0,kl({}).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)})},re=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-D.ratio);let T=null;for(let b=0;b0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-v),v<0&&y>0&&(o.value.qudao_total[y-1].count=o.value.qudao_total[y-1].count-v),v<0&&y==0&&(o.value.qudao_total[y].count=o.value.qudao_total[y].count-v),o.value.qudao_total.sort((b,D)=>D.ratio-b.ratio)}};let ye=p([]);const je=()=>{_.value=!0,xl({date_type:h.value.date_type}).then(t=>{_.value=!1,t.status?ye.value=t.data:V.error(t.msg)})},He=()=>{_.value=!0,hl({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)})},Je=t=>{_.value=!0,Te({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=j.value.find(k=>k.id===o.value.resources_id);le.value=s&&s.time_mode||0}else V.error(e.msg)})};let j=p([]);const Xe=()=>{S.value=[],_.value=!0,fl().then(t=>{_.value=!1,t.status?(j.value=t.data,j.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&&oe(S.value[0].resources_name,S.value[0].resources_id)):V.error(t.msg)})};let be=p([]);const ke=()=>{o.value.devices=[];const t=j.value.find(e=>e.id===o.value.resources_id);le.value=t&&t.time_mode||0,_.value=!0,Vl({resource_id:o.value.resources_id}).then(e=>{_.value=!1,e.status?(be.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):V.error(e.msg)})},Ke=()=>{ml().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,v=e.getFullYear()+((s+1)/12|0),T=e.getDate(),y=new Date(v,k,T);y.getMonth()!==k&&(y=new Date(v,k,0));let D=y.toISOString().split("T")[0];O.value=[b,D]}})};let X=p(!1);const Qe=t=>{t?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},el=t=>{R.value=t,re(0),xe(0)},ll=t=>{q.value=[],t.forEach((e,s)=>{q.value.push(e.id)}),console.log(q.value)},xe=t=>{if(R.value==2){if(o.value.begin_time==""||o.value.end_time=="")return V.error("请先设置时段"),o.value.max_total=0,!1;tl(t)}},tl=t=>{let e=al(o.value.begin_time,o.value.end_time,t);o.value.max_total=e,re(e)};function al(t,e,s){function k(D){const[_e,pe]=D.split(":").map(Number);return _e*60+pe}const v=k(t),y=k(e)-v;return Math.floor(y/s)}const he=t=>!t||!Array.isArray(t)?0:t.reduce((e,s)=>e+(Number(s.locked_count)||0),0),ol=t=>{$.value=!0,_.value=!0,Te({id:t.id}).then(e=>{if(_.value=!1,e.status){C.value=e.data;const s=j.value.find(v=>v.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(v=>{v.locked_count===null&&(v.locked_count=0)})}else V.error(e.msg)})},nl=()=>{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,wl({roster_id:C.value.id,locked_counts:t}).then(s=>{_.value=!1,s.status?($.value=!1,V.success("占位设置保存成功"),Y()):V.error(s.msg)}))};return rl(()=>{h.value.date_type=1,We(),Xe(),Ze(),Ke()}),(t,e)=>{const s=x("el-button"),k=x("el-row"),v=x("el-radio-button"),T=x("el-radio-group"),y=x("Select"),b=x("el-icon"),D=x("Edit"),_e=x("Lock"),pe=x("el-empty"),I=x("el-table-column"),Ve=x("el-tag"),we=x("el-table"),H=x("el-checkbox"),Ce=x("el-checkbox-group"),B=x("el-form-item"),te=x("el-radio"),Z=x("el-input"),ul=x("el-option"),sl=x("el-select"),qe=x("el-switch"),ve=x("el-form"),ae=x("el-dialog"),il=x("el-date-picker"),K=_l("loading");return d(),r("div",null,[i("div",Cl,[n(k,{style:{display:"flex","justify-content":"end"}},{default:u(()=>[n(s,{type:"primary",onClick:e[0]||(e[0]=l=>de()),style:{"margin-left":"10px"}},{default:u(()=>[...e[33]||(e[33]=[f("添加",-1)])]),_:1}),n(s,{type:"danger",onClick:e[1]||(e[1]=l=>Ne()),style:{"margin-left":"10px"}},{default:u(()=>[...e[34]||(e[34]=[f("删除",-1)])]),_:1}),n(s,{type:"success",onClick:e[2]||(e[2]=l=>Pe()),style:{"margin-left":"20px"}},{default:u(()=>[...e[35]||(e[35]=[f("生成选中的计划",-1)])]),_:1})]),_:1})]),n(k,null,{default:u(()=>[n(T,{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=>Ae())},{default:u(()=>[n(v,{label:1},{default:u(()=>[...e[36]||(e[36]=[f("工作日",-1)])]),_:1}),n(v,{label:2},{default:u(()=>[...e[37]||(e[37]=[f("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),a(M).time_mode==1&&a(h).date_type==1?(d(),E(T,{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=>Ge())},{default:u(()=>[n(v,{label:1},{default:u(()=>[...e[38]||(e[38]=[f("夏令时",-1)])]),_:1}),n(v,{label:2},{default:u(()=>[...e[39]||(e[39]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):g("",!0)]),_:1}),a(h).date_type==1?(d(),r("div",ql,[i("div",Il,[(d(!0),r(P,null,U(a(S),(l,c)=>(d(),r("div",{key:c,onClick:m=>oe(l.resources_name,l.resources_id),class:ee({"zhenshiButton zhenshiButtonActive":l.resources_name===a(M).department_resources_name,zhenshiButton:l.resources_name!==a(M).department_resources_name})},w(l.resources_name),11,El))),128))]),Q((d(),r("div",Tl,[a(W).length>0?(d(),r("table",Dl,[i("tr",Bl,[i("td",Pl,[e[40]||(e[40]=i("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),i("div",{class:ee({"plan_checkAllbox plan_checkAllbox_active":a(N)===1,"plan_checkAllbox ":a(N)===0}),onClick:e[7]||(e[7]=l=>Ue())},[a(N)===1?(d(),E(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],2)]),(d(!0),r(P,null,U(a(ie),(l,c)=>(d(),r("td",Ul,w(l.label),1))),256))]),(d(!0),r(P,null,U(a(W),(l,c)=>(d(),r("tr",{key:c},[(d(!0),r(P,null,U(l,(m,Ie)=>(d(),r("td",{key:Ie,onMouseover:G=>Le(m.id),onMouseleave:G=>Se(m.id)},[Ie=="time_range"?(d(),r("span",Sl,w(m),1)):g("",!0),m.countsInfo&&m.countsInfo.length>0?(d(),r("div",{key:1,class:ee({planInfo_k:m.status==1,"planInfo_k planInfo_k_disabled":m.status==0})},[a(ne)==m.id?(d(),r("div",Ml,[i("div",{class:"icon_k",onClick:G=>de(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(D)]),_:1}),e[41]||(e[41]=i("span",{class:"icon_text"},"编辑",-1))],8,zl),i("div",{class:"icon_k",onClick:G=>ol(m)},[n(b,{color:"#409eff",size:"20"},{default:u(()=>[n(_e)]),_:1}),e[42]||(e[42]=i("span",{class:"icon_text"},"占位",-1))],8,$l)])):g("",!0),i("div",{class:ee({"plan_checkbox plan_checkbox_active":ue(m.id),plan_checkbox:!ue(m.id)}),onClick:G=>Me(m.id)},[ue(m.id)?(d(),E(b,{key:0,color:"#ffffff"},{default:u(()=>[n(y)]),_:1})):g("",!0)],10,Al),i("div",Gl,[i("div",Rl,[e[43]||(e[43]=i("span",null,"总",-1)),f(w(m.countsInfo[0].max_total),1)]),(d(!0),r(P,null,U(m.countsInfo,(G,Ee)=>(d(),r("div",{key:Ee},[i("span",null,w(G.jiancheng),1),i("span",null,w(G.count),1)]))),128))]),i("div",Nl,[(d(!0),r(P,null,U(m.patient_type_label,(G,Ee)=>(d(),r("div",Fl,w(G),1))),256))]),he(m.countsInfo)>0?(d(),r("div",Zl," 占:"+w(he(m.countsInfo)),1)):g("",!0)],2)):g("",!0)],40,Ll))),128))]))),128))])):g("",!0),a(W).length==0?(d(),r("div",Ol,[n(pe,{description:"暂无"})])):g("",!0)])),[[K,a(_)]])])):g("",!0),a(h).date_type==2?Q((d(),E(we,{key:1,data:a(me),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:ll},{default:u(()=>[n(I,{type:"selection",width:"55"}),n(I,{prop:"id",label:"Id",width:"70"}),a(h).date_type==1?(d(),E(I,{key:0,prop:"weekname",label:"星期",width:"80"})):g("",!0),g("",!0),n(I,{prop:"department_resources_name",label:"资源",width:"150"}),n(I,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(l=>[l.row.devices.length>0?(d(),r("div",Wl,[(d(!0),r(P,null,U(l.row.devices,(c,m)=>(d(),r("div",{key:m,class:ee(c.status==1&&c.is_del==0?"":"hongzi")},w(c.device_name),3))),128))])):g("",!0)]),_:1}),n(I,{prop:"period_name",label:"时段",width:"100"}),n(I,{prop:"begin_time",label:"开始时间",width:"100"}),n(I,{prop:"end_time",label:"结束时间",width:"100"}),n(I,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(l=>[l.row.countsInfo.length>0?(d(),r("div",Yl,[i("div",jl,"最大数量:"+w(l.row.countsInfo[0].max_total),1),(d(!0),r(P,null,U(l.row.countsInfo,(c,m)=>(d(),r("div",{key:m},w(c.name)+":"+w(c.count),1))),128))])):g("",!0)]),_:1}),n(I,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(I,{prop:"roster_status",label:"状态",width:"80"},{default:u(l=>[l.row.status===1?(d(),E(Ve,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[44]||(e[44]=[f("正常",-1)])]),_:1})):g("",!0),l.row.status===0?(d(),E(Ve,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[45]||(e[45]=[f("关闭",-1)])]),_:1})):g("",!0)]),_:1}),n(I,{prop:"",label:"操作",width:"80"},{default:u(l=>[n(s,{type:"primary",onClick:c=>de(l.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[46]||(e[46]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[K,a(_)]]):g("",!0),n(ae,{modelValue:a(A),"onUpdate:modelValue":e[24]||(e[24]=l=>L(A)?A.value=l:A=l),title:"时间段("+a(se)+")",width:"45%"},{footer:u(()=>[i("span",rt,[n(s,{onClick:e[23]||(e[23]=l=>L(A)?A.value=!1:A=!1)},{default:u(()=>[...e[62]||(e[62]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:Re},{default:u(()=>[...e[63]||(e[63]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[Q((d(),E(ve,{ref_key:"PlanInfoForm",ref:$e,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(h).date_type==1?(d(),E(B,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(H,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(X),"onUpdate:modelValue":e[8]||(e[8]=l=>L(X)?X.value=l:X=l),onChange:Qe,label:"全选"},{default:u(()=>[...e[47]||(e[47]=[i("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(Ce,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[9]||(e[9]=l=>a(o).xingqi=l)},{default:u(()=>[(d(!0),r(P,null,U(a(ie),(l,c)=>(d(),E(H,{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",Hl,[i("div",null,[n(T,{modelValue:a(R),"onUpdate:modelValue":e[10]||(e[10]=l=>L(R)?R.value=l:R=l),onChange:el},{default:u(()=>[n(te,{label:"1"},{default:u(()=>[...e[48]||(e[48]=[f("根据总量",-1)])]),_:1}),n(te,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[49]||(e[49]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),i("div",Jl,[a(R)==1?(d(),E(Z,{key:0,style:{width:"220px"},onInput:re,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(),E(Z,{key:1,style:{width:"220px"},onInput:xe,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[50]||(e[50]=i("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),i("div",null,[(d(!0),r(P,null,U(a(o).qudao_total,(l,c)=>(d(),r("div",{class:"qudao_k",key:c},[i("div",Xl,w(l.name),1),i("div",Kl,[n(Z,{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",Ql,w(l.ratio)+"%",1)])]))),128))])]),_:1}),n(B,{label:"时间设置:"},{default:u(()=>[i("div",null,[e[55]||(e[55]=f("选择时段: ",-1)),n(sl,{filterable:!0,clearable:"",modelValue:a(o).period_id,"onUpdate:modelValue":e[13]||(e[13]=l=>a(o).period_id=l),onChange:He,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(d(!0),r(P,null,U(a(ye),(l,c)=>(d(),E(ul,{key:c,label:l.period_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),i("div",et,[i("div",null,[i("div",lt,[e[51]||(e[51]=i("div",{style:{width:"70px"}},"开始时间:",-1)),i("div",tt,[n(Z,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[14]||(e[14]=l=>a(o).begin_time=l),placeholder:"开始时间"},null,8,["modelValue"])])]),i("div",at,[e[52]||(e[52]=i("div",{style:{width:"70px"}},"结束时间:",-1)),i("div",ot,[n(Z,{modelValue:a(o).end_time,"onUpdate:modelValue":e[15]||(e[15]=l=>a(o).end_time=l),placeholder:"结束时间"},null,8,["modelValue"])])])]),i("div",nt,[i("div",ut,[e[53]||(e[53]=i("div",{style:{width:"90px"}},"停止预约时间:",-1)),i("div",st,[n(Z,{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",it,[e[54]||(e[54]=i("div",{style:{width:"90px"}},"可用时间长度:",-1)),i("div",dt,[n(Z,{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(le)===1&&a(h).date_type===1?(d(),E(B,{key:2,label:"时令:"},{default:u(()=>[n(T,{modelValue:a(o).type,"onUpdate:modelValue":e[19]||(e[19]=l=>a(o).type=l)},{default:u(()=>[n(te,{label:1},{default:u(()=>[...e[56]||(e[56]=[i("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(te,{label:2},{default:u(()=>[...e[57]||(e[57]=[i("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):g("",!0),g("",!0),n(B,{label:"病人类型:"},{default:u(()=>[n(Ce,{modelValue:a(o).patientType,"onUpdate:modelValue":e[21]||(e[21]=l=>a(o).patientType=l)},{default:u(()=>[n(H,{label:"0"},{default:u(()=>[...e[58]||(e[58]=[f("住院",-1)])]),_:1}),n(H,{label:"1"},{default:u(()=>[...e[59]||(e[59]=[f("门诊",-1)])]),_:1}),n(H,{label:"2"},{default:u(()=>[...e[60]||(e[60]=[f("急诊",-1)])]),_:1}),n(H,{label:"3"},{default:u(()=>[...e[61]||(e[61]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(B,{label:"状态:"},{default:u(()=>[n(qe,{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"])),[[K,a(_)]])]),_:1},8,["modelValue","title"]),n(ae,{modelValue:a(z),"onUpdate:modelValue":e[28]||(e[28]=l=>L(z)?z.value=l:z=l),title:"生成计划",width:"50%"},{footer:u(()=>[i("span",_t,[n(s,{onClick:e[27]||(e[27]=l=>L(z)?z.value=!1:z=!1)},{default:u(()=>[...e[64]||(e[64]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:ze},{default:u(()=>[...e[65]||(e[65]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[Q((d(),E(ve,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(B,{label:"选择时间范围:"},{default:u(()=>[n(il,{modelValue:a(O),"onUpdate:modelValue":e[25]||(e[25]=l=>L(O)?O.value=l:O=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(qe,{modelValue:a(J),"onUpdate:modelValue":e[26]||(e[26]=l=>L(J)?J.value=l:J=l),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[K,a(_)]])]),_:1},8,["modelValue"]),n(ae,{modelValue:a(F),"onUpdate:modelValue":e[30]||(e[30]=l=>L(F)?F.value=l:F=l),title:"时段冲突 - 生成失败",width:"60%"},{footer:u(()=>[i("span",pt,[n(s,{type:"primary",onClick:e[29]||(e[29]=l=>L(F)?F.value=!1:F=!1)},{default:u(()=>[...e[66]||(e[66]=[f("确定",-1)])]),_:1})])]),default:u(()=>[e[67]||(e[67]=i("div",{style:{"margin-bottom":"12px",color:"#f56c6c"}}," 以下模板与已有号源存在时段冲突,生成已取消,请调整后重试: ",-1)),n(we,{data:a(ce),border:"",stripe:"","max-height":"400"},{default:u(()=>[n(I,{prop:"date",label:"日期",width:"120"}),n(I,{prop:"weekname",label:"星期",width:"80"}),n(I,{prop:"new_time",label:"模板时段",width:"150"}),n(I,{prop:"existing_time",label:"已有号源时段",width:"150"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),n(ae,{modelValue:a($),"onUpdate:modelValue":e[32]||(e[32]=l=>L($)?$.value=l:$=l),title:"占位设置",width:"40%"},{footer:u(()=>[i("span",bt,[n(s,{onClick:e[31]||(e[31]=l=>L($)?$.value=!1:$=!1)},{default:u(()=>[...e[68]||(e[68]=[f("取消",-1)])]),_:1}),n(s,{type:"primary",onClick:nl},{default:u(()=>[...e[69]||(e[69]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[Q((d(),r("div",null,[a(C)?(d(),E(ve,{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",vt,[a(C).qudao_total&&a(C).qudao_total.length>0?(d(!0),r(P,{key:0},U(a(C).qudao_total,(l,c)=>(d(),r(P,{key:c},[l&&l.count!==0?(d(),r("div",ft,[i("div",mt,w(l.name),1),i("div",ct,[n(Z,{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",gt," 可用: "+w(l.count),1)])):g("",!0)],64))),128)):(d(),r("div",yt," 暂无渠道数据 "))])]),_:1})]),_:1})):g("",!0)])),[[K,a(_)]])]),_:1},8,["modelValue"])])}}},Vt=dl(kt,[["__scopeId","data-v-80344549"]]);export{Vt as default}; diff --git a/Laravel/public/admin/assets/PlanModel-c7ae9cd7.css b/Laravel/public/admin/assets/PlanModel-c7ae9cd7.css new file mode 100644 index 0000000..358295d --- /dev/null +++ b/Laravel/public/admin/assets/PlanModel-c7ae9cd7.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-80344549]{display:flex}.type_count div[data-v-80344549]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-80344549]{display:flex}.qudao_k_input[data-v-80344549]{width:150px}.hongzi[data-v-80344549]{color:#b25252}.planInfo .planTable[data-v-80344549]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-80344549]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-80344549]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-80344549]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-80344549]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-80344549]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-80344549]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-80344549]{width:100px}.zhenshiButton[data-v-80344549]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-80344549]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-80344549]{background-color:#ffd6d2}.planInfo_k[data-v-80344549]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-80344549]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-80344549]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-80344549]{display:flex}.planInfo_k .qudao_count_row div[data-v-80344549]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-80344549],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-80344549]{font-weight:700}.planInfo_k .patient_type_row[data-v-80344549]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-80344549]{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-80344549]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-80344549]{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-80344549]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-80344549]{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-80344549]{font-size:11px;color:#409eff;background-color:#fff;padding:1px 4px;border-radius:3px;margin-top:3px;white-space:nowrap}.plan_checkAllbox[data-v-80344549]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-80344549]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/admin/assets/PlanModel-fe02eea6.js b/Laravel/public/admin/assets/PlanModel-fe02eea6.js deleted file mode 100644 index 38449fd..0000000 --- a/Laravel/public/admin/assets/PlanModel-fe02eea6.js +++ /dev/null @@ -1 +0,0 @@ -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,Z 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-b8bae120.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/admin/assets/PlanModelAdmin-544f34be.js b/Laravel/public/admin/assets/PlanModelAdmin-544f34be.js new file mode 100644 index 0000000..1301097 --- /dev/null +++ b/Laravel/public/admin/assets/PlanModelAdmin-544f34be.js @@ -0,0 +1 @@ +import{_ as rt,o as _t,r as h,c as pt,d,e as _,k as s,f as n,w as u,i as a,F as B,t as P,h as X,Z as ee,j as D,x as y,l as U,g as v,I as mt,E as w,W as vt,O as ft,J as ct,q as f,v as C,bg as gt,N as ve,aU as yt,bh as bt,bi as kt,bj as xt,bk as ht,aZ as Vt,a_ as Te,a$ as wt,b0 as Ct}from"./index-612fedfe.js";const qt={class:"head"},It={key:0,style:{display:"flex"},class:"planInfo"},Dt={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},Et=["onClick"],Tt={style:{border:"1px solid #efefef",width:"100%"}},Bt={key:0,class:"planTable"},Pt={style:{"background-color":"#f1f1f1",position:"relative"}},Ut={style:{width:"120px",display:"flex","font-size":"12px"}},Lt={style:{"font-weight":"700"}},At=["onMouseover","onMouseleave"],St={key:0},Mt={key:0,class:"hoverTools"},zt=["onClick"],$t=["onClick"],Gt=["onClick"],Rt={class:"qudao_count_row"},Nt={class:"qudao_title_zong"},Ft={class:"patient_type_row"},Zt={class:"tps"},Ot={key:1,class:"locked_count_row"},Wt={key:1,style:{width:"100%","background-color":"#fff"}},jt={key:0,class:"type_count"},Yt={key:0,class:"type_count"},Ht={style:{"font-weight":"700"}},Jt={style:{"margin-right":"26px"}},Kt={class:"qudao_k_input"},Qt={style:{width:"50px"}},Xt={class:"qudao_k_input",style:{display:"flex"}},el={style:{"margin-left":"4px",color:"#ccc"}},tl={style:{display:"flex"}},ll={style:{display:"flex"}},al={class:"qudao_k_input"},ol={style:{display:"flex"}},nl={class:"qudao_k_input"},ul={style:{"margin-left":"8px"}},dl={style:{display:"flex"}},sl={class:"qudao_k_input"},il={style:{display:"flex"}},rl={class:"qudao_k_input"};const _l={class:"dialog-footer"},pl={class:"dialog-footer"},ml={class:"dialog-footer"},vl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},fl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},cl={style:{width:"80px"}},gl={style:{flex:"1"}},yl={style:{color:"#999","font-size":"12px"}},bl={key:1,style:{color:"#999"}},kl={class:"dialog-footer"},xl={__name:"PlanModelAdmin",setup(hl){let G=v("1"),m=v(!1),Be=v(1),Pe=v(15),A=v([]),L=v({}),O=v([]),E=v([]),R=v(0),fe=v([]),Z=v([]),S=v(!1),N=v(!1),ce=v([]),M=v(!1),q=v(null);const Ue=()=>{if(E.value.length===0)return w.error("请至少勾选1条记录"),!1;S.value=!0},ue=(l,e)=>{p.value.type=0,j.value.forEach((i,x)=>{i.id===e&&(L.value=i,i.time_mode==1&&(p.value.type=1))}),R.value=0,E.value=[],p.value.resources_id=e,W()},Le=()=>{R.value=R.value===0?1:0,R.value===0&&(E.value=[]),R.value===1&&O.value.forEach((l,e)=>{console.log(l);for(let i in l)i!="time_range"&&E.value.push(l[i].id)})};let de=v(null);const Ae=l=>{de.value=l},Se=l=>{de.value=null},se=l=>E.value.includes(l),Me=l=>{E.value.indexOf(l)===-1?E.value.push(l):E.value=E.value.filter(i=>i!==l)},ze=()=>{if(Z.value.length===0)return w.error("请选择日期范围"),!1;gt({dateRange:Z.value,ids:E.value,HolidayEnable:J.value,date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{l.status?(S.value=!1,w({message:l.msg,type:"success"})):l.data&&l.data.conflicts&&l.data.conflicts.length>0?(ce.value=l.data.conflicts,N.value=!0):ve.alert(l.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let p=v({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),J=v(1),ie=v("工作日"),z=v(!1);const W=()=>{m.value=!0,yt({page:Be.value,pageSize:Pe.value,searchInfo:p.value}).then(l=>{if(m.value=!1,l.status){O.value=[],E.value=[];let e=l.data.list;if(fe.value=e,e.length>0){const i=new Set;e.forEach((r,V)=>{if(r.department_resources_name==L.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 V={time_range:r};re.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==L.value.department_resources_name);k?V[b.label]={countsInfo:k.countsInfo,patient_type_label:k.patient_type_label,status:k.status,id:k.id,resources_id:k.resources_id}:V[b.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),O.value.push(V)})}}})};let re=v([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),$e=v(null);const ge=()=>({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(ge()),te=v(0);const _e=(l=null)=>{ke.value=[],K.value=!1,z.value=!0,o.value=ge(),te.value=0,Ye(),He(),l?(o.value.resources_id=l.resources_id,xe(),setTimeout(()=>{console.log("编辑"),Ke(l.id)},500)):L.value.id&&(o.value.resources_id=L.value.id,xe())},Ge=()=>{p.value.date_type==1&&(ie.value="工作日",A.value.length>0&&ue(A.value[0].resources_name,A.value[0].resources_id)),p.value.date_type==2&&(ie.value="节假日",p.value.type=0,p.value.resources_id=null,W())},Re=()=>{W()},Ne=()=>{let l=0;if(o.value.qudao_total.forEach(e=>{l=l+Number(e.count)}),l!==Number(o.value.max_total))return w.error("各个渠道数量之和与当日总量不符"),!1;ve.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,bt({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,W()):w.error(e.msg)})})},Fe=()=>{if(E.value.length==0)return w.error("请至少勾选1条记录"),!1;ve.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{m.value=!0,kt({ids:E.value,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(w({message:l.msg,type:"success"}),W()):w.error(l.msg)})})};let Ze=v([]);const Oe=()=>{m.value=!0,mt().then(l=>{m.value=!1,l.status?Ze.value=l.data:w.error(l.msg)})};let le=v([]);const We=()=>{m.value=!0,vt({}).then(l=>{m.value=!1,l.status?(le.value=l.data.list,le.value.length>0&&(p.value.department_id=le.value[0].id,be())):w.error(l.msg)})},je=()=>{p.value.resources_id=null,L.value={},be()},Ye=()=>{m.value=!0,xt({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})):w.error(l.msg)})},pe=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 V=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 ye=v([]);const He=()=>{m.value=!0,ht({date_type:p.value.date_type,department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?ye.value=l.data:w.error(l.msg)})},Je=()=>{m.value=!0,Vt({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):w.error(l.msg)})},Ke=l=>{m.value=!0,Te({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=j.value.find(x=>x.id===o.value.resources_id);te.value=i&&i.time_mode||0}else w.error(e.msg)})};let j=v([]);const be=()=>{A.value=[],p.value.department_id&&(m.value=!0,ft({department_id:p.value.department_id}).then(l=>{m.value=!1,l.status?(j.value=l.data,j.value.forEach((e,i)=>{A.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),L.value.department_resources_name==null&&A.value.length>0&&ue(A.value[0].resources_name,A.value[0].resources_id)):w.error(l.msg)}))};let ke=v([]);const xe=()=>{o.value.devices=[];const l=j.value.find(e=>e.id===o.value.resources_id);te.value=l&&l.time_mode||0,m.value=!0,wt({resource_id:o.value.resources_id}).then(e=>{m.value=!1,e.status?(ke.value=e.data,o.value.devices.length===0&&e.data.length>0&&(o.value.devices=[e.data[0].id])):w.error(e.msg)})},Qe=()=>{ct().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),V=e.getDate(),b=new Date(r,x,V);b.getMonth()!==x&&(b=new Date(r,x,0));let I=b.toISOString().split("T")[0];Z.value=[k,I]}})};let K=v(!1);const Xe=l=>{l?o.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:o.value.xingqi=[]},et=l=>{G.value=l,pe(0),he(0)},tt=l=>{E.value=[],l.forEach((e,i)=>{E.value.push(e.id)}),console.log(E.value)},he=l=>{if(G.value==2){if(o.value.begin_time==""||o.value.end_time=="")return w.error("请先设置时段"),o.value.max_total=0,!1;lt(l)}},lt=l=>{let e=at(o.value.begin_time,o.value.end_time,l);o.value.max_total=e,pe(e)};function at(l,e,i){function x(I){const[ae,Y]=I.split(":").map(Number);return ae*60+Y}const r=x(l),b=x(e)-r;return Math.floor(b/i)}const Ve=l=>!l||!Array.isArray(l)?0:l.reduce((e,i)=>e+(Number(i.locked_count)||0),0),ot=l=>{M.value=!0,m.value=!0,Te({id:l.id}).then(e=>{if(m.value=!1,e.status){q.value=e.data;const i=j.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 w.error(e.msg)})},nt=()=>{let l=[],e=!1;q.value.qudao_total.forEach(i=>{if(!e){if(Number(i.locked_count)<0){w.error(`${i.name} 的占位数量不能为负数`),e=!0;return}if(Number(i.locked_count)>i.count){w.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,Ct({roster_id:q.value.id,locked_counts:l}).then(i=>{m.value=!1,i.status?(M.value=!1,w.success("占位设置保存成功"),W()):w.error(i.msg)}))};return _t(()=>{p.value.date_type=1,We(),Oe(),Qe()}),(l,e)=>{const i=h("el-option"),x=h("el-select"),r=h("el-form-item"),V=h("el-button"),b=h("el-row"),k=h("el-radio-button"),I=h("el-radio-group"),ae=h("Select"),Y=h("el-icon"),ut=h("Edit"),dt=h("Lock"),st=h("el-empty"),T=h("el-table-column"),we=h("el-tag"),Ce=h("el-table"),H=h("el-checkbox"),qe=h("el-checkbox-group"),oe=h("el-radio"),F=h("el-input"),Ie=h("el-switch"),me=h("el-form"),ne=h("el-dialog"),it=h("el-date-picker"),Q=pt("loading");return d(),_("div",null,[s("div",qt,[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:je,style:{"margin-left":"8px",width:"150px"}},{default:u(()=>[(d(!0),_(B,null,P(a(le),(t,c)=>(d(),D(i,{key:c,label:t.department_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(V,{type:"primary",onClick:e[1]||(e[1]=t=>_e()),style:{"margin-left":"10px"}},{default:u(()=>[...e[34]||(e[34]=[f("添加",-1)])]),_:1}),n(V,{type:"danger",onClick:e[2]||(e[2]=t=>Fe()),style:{"margin-left":"10px"}},{default:u(()=>[...e[35]||(e[35]=[f("删除",-1)])]),_:1}),n(V,{type:"success",onClick:e[3]||(e[3]=t=>Ue()),style:{"margin-left":"20px"}},{default:u(()=>[...e[36]||(e[36]=[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=>Ge())},{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"]),a(L).time_mode==1&&a(p).date_type==1?(d(),D(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=>Re())},{default:u(()=>[n(k,{label:1},{default:u(()=>[...e[39]||(e[39]=[f("夏令时",-1)])]),_:1}),n(k,{label:2},{default:u(()=>[...e[40]||(e[40]=[f("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):y("",!0)]),_:1}),a(p).date_type==1?(d(),_("div",It,[s("div",Dt,[(d(!0),_(B,null,P(a(A),(t,c)=>(d(),_("div",{key:c,onClick:g=>ue(t.resources_name,t.resources_id),class:ee({"zhenshiButton zhenshiButtonActive":t.resources_name===a(L).department_resources_name,zhenshiButton:t.resources_name!==a(L).department_resources_name})},C(t.resources_name),11,Et))),128))]),X((d(),_("div",Tt,[a(O).length>0?(d(),_("table",Bt,[s("tr",Pt,[s("td",Ut,[e[41]||(e[41]=s("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),s("div",{class:ee({"plan_checkAllbox plan_checkAllbox_active":a(R)===1,"plan_checkAllbox ":a(R)===0}),onClick:e[8]||(e[8]=t=>Le())},[a(R)===1?(d(),D(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(ae)]),_:1})):y("",!0)],2)]),(d(!0),_(B,null,P(a(re),(t,c)=>(d(),_("td",Lt,C(t.label),1))),256))]),(d(!0),_(B,null,P(a(O),(t,c)=>(d(),_("tr",{key:c},[(d(!0),_(B,null,P(t,(g,De)=>(d(),_("td",{key:De,onMouseover:$=>Ae(g.id),onMouseleave:$=>Se(g.id)},[De=="time_range"?(d(),_("span",St,C(g),1)):y("",!0),g.countsInfo&&g.countsInfo.length>0?(d(),_("div",{key:1,class:ee({planInfo_k:g.status==1,"planInfo_k planInfo_k_disabled":g.status==0})},[a(de)==g.id?(d(),_("div",Mt,[s("div",{class:"icon_k",onClick:$=>_e(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(ut)]),_:1}),e[42]||(e[42]=s("span",{class:"icon_text"},"编辑",-1))],8,zt),s("div",{class:"icon_k",onClick:$=>ot(g)},[n(Y,{color:"#409eff",size:"20"},{default:u(()=>[n(dt)]),_:1}),e[43]||(e[43]=s("span",{class:"icon_text"},"占位",-1))],8,$t)])):y("",!0),s("div",{class:ee({"plan_checkbox plan_checkbox_active":se(g.id),plan_checkbox:!se(g.id)}),onClick:$=>Me(g.id)},[se(g.id)?(d(),D(Y,{key:0,color:"#ffffff"},{default:u(()=>[n(ae)]),_:1})):y("",!0)],10,Gt),s("div",Rt,[s("div",Nt,[e[44]||(e[44]=s("span",null,"总",-1)),f(C(g.countsInfo[0].max_total),1)]),(d(!0),_(B,null,P(g.countsInfo,($,Ee)=>(d(),_("div",{key:Ee},[s("span",null,C($.jiancheng),1),s("span",null,C($.count),1)]))),128))]),s("div",Ft,[(d(!0),_(B,null,P(g.patient_type_label,($,Ee)=>(d(),_("div",Zt,C($),1))),256))]),Ve(g.countsInfo)>0?(d(),_("div",Ot," 占:"+C(Ve(g.countsInfo)),1)):y("",!0)],2)):y("",!0)],40,At))),128))]))),128))])):y("",!0),a(O).length==0?(d(),_("div",Wt,[n(st,{description:"暂无"})])):y("",!0)])),[[Q,a(m)]])])):y("",!0),a(p).date_type==2?X((d(),D(Ce,{key:1,data:a(fe),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:tt},{default:u(()=>[n(T,{type:"selection",width:"55"}),n(T,{prop:"id",label:"Id",width:"70"}),a(p).date_type==1?(d(),D(T,{key:0,prop:"weekname",label:"星期",width:"80"})):y("",!0),y("",!0),n(T,{prop:"department_resources_name",label:"资源",width:"150"}),n(T,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:u(t=>[t.row.devices.length>0?(d(),_("div",jt,[(d(!0),_(B,null,P(t.row.devices,(c,g)=>(d(),_("div",{key:g,class:ee(c.status==1&&c.is_del==0?"":"hongzi")},C(c.device_name),3))),128))])):y("",!0)]),_:1}),n(T,{prop:"period_name",label:"时段",width:"100"}),n(T,{prop:"begin_time",label:"开始时间",width:"100"}),n(T,{prop:"end_time",label:"结束时间",width:"100"}),n(T,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:u(t=>[t.row.countsInfo.length>0?(d(),_("div",Yt,[s("div",Ht,"最大数量:"+C(t.row.countsInfo[0].max_total),1),(d(!0),_(B,null,P(t.row.countsInfo,(c,g)=>(d(),_("div",{key:g},C(c.name)+":"+C(c.count),1))),128))])):y("",!0)]),_:1}),n(T,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),n(T,{prop:"roster_status",label:"状态",width:"80"},{default:u(t=>[t.row.status===1?(d(),D(we,{key:0,class:"ml-2",type:"success"},{default:u(()=>[...e[45]||(e[45]=[f("正常",-1)])]),_:1})):y("",!0),t.row.status===0?(d(),D(we,{key:1,class:"ml-2",type:"danger"},{default:u(()=>[...e[46]||(e[46]=[f("关闭",-1)])]),_:1})):y("",!0)]),_:1}),n(T,{prop:"",label:"操作",width:"80"},{default:u(t=>[n(V,{type:"primary",onClick:c=>_e(t.row),size:"small",style:{"margin-left":"10px"}},{default:u(()=>[...e[47]||(e[47]=[f("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[Q,a(m)]]):y("",!0),n(ne,{modelValue:a(z),"onUpdate:modelValue":e[25]||(e[25]=t=>U(z)?z.value=t:z=t),title:"时间段("+a(ie)+")",width:"45%"},{footer:u(()=>[s("span",_l,[n(V,{onClick:e[24]||(e[24]=t=>U(z)?z.value=!1:z=!1)},{default:u(()=>[...e[63]||(e[63]=[f("取消",-1)])]),_:1}),n(V,{type:"primary",onClick:Ne},{default:u(()=>[...e[64]||(e[64]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[X((d(),D(me,{ref_key:"PlanInfoForm",ref:$e,model:a(o),"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[a(p).date_type==1?(d(),D(r,{key:0,label:"星期:",prop:"xingqi"},{default:u(()=>[n(H,{disabled:a(o).id!=0,style:{"margin-right":"8px"},modelValue:a(K),"onUpdate:modelValue":e[9]||(e[9]=t=>U(K)?K.value=t:K=t),onChange:Xe,label:"全选"},{default:u(()=>[...e[48]||(e[48]=[s("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),n(qe,{modelValue:a(o).xingqi,"onUpdate:modelValue":e[10]||(e[10]=t=>a(o).xingqi=t)},{default:u(()=>[(d(!0),_(B,null,P(a(re),(t,c)=>(d(),D(H,{disabled:a(o).id!=0,key:c,label:t.label},{default:u(()=>[f(C(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=>U(G)?G.value=t:G=t),onChange:et},{default:u(()=>[n(oe,{label:"1"},{default:u(()=>[...e[49]||(e[49]=[f("根据总量",-1)])]),_:1}),n(oe,{style:{"margin-left":"-10px"},label:"2"},{default:u(()=>[...e[50]||(e[50]=[f("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),s("div",Kt,[a(G)==1?(d(),D(F,{key:0,style:{width:"220px"},onInput:pe,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(),D(F,{key:1,style:{width:"220px"},onInput:he,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[51]||(e[51]=s("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),s("div",null,[(d(!0),_(B,null,P(a(o).qudao_total,(t,c)=>(d(),_("div",{class:"qudao_k",key:c},[s("div",Qt,C(t.name),1),s("div",Xt,[n(F,{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",el,C(t.ratio)+"%",1)])]))),128))])]),_:1}),n(r,{label:"时间设置:"},{default:u(()=>[s("div",null,[e[56]||(e[56]=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:Je,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:u(()=>[(d(!0),_(B,null,P(a(ye),(t,c)=>(d(),D(i,{key:c,label:t.period_name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s("div",tl,[s("div",null,[s("div",ll,[e[52]||(e[52]=s("div",{style:{width:"70px"}},"开始时间:",-1)),s("div",al,[n(F,{modelValue:a(o).begin_time,"onUpdate:modelValue":e[15]||(e[15]=t=>a(o).begin_time=t),placeholder:"开始时间"},null,8,["modelValue"])])]),s("div",ol,[e[53]||(e[53]=s("div",{style:{width:"70px"}},"结束时间:",-1)),s("div",nl,[n(F,{modelValue:a(o).end_time,"onUpdate:modelValue":e[16]||(e[16]=t=>a(o).end_time=t),placeholder:"结束时间"},null,8,["modelValue"])])])]),s("div",ul,[s("div",dl,[e[54]||(e[54]=s("div",{style:{width:"90px"}},"停止预约时间:",-1)),s("div",sl,[n(F,{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",il,[e[55]||(e[55]=s("div",{style:{width:"90px"}},"可用时间长度:",-1)),s("div",rl,[n(F,{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(te)===1&&a(p).date_type===1?(d(),D(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(oe,{label:1},{default:u(()=>[...e[57]||(e[57]=[s("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),n(oe,{label:2},{default:u(()=>[...e[58]||(e[58]=[s("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):y("",!0),y("",!0),n(r,{label:"病人类型:"},{default:u(()=>[n(qe,{modelValue:a(o).patientType,"onUpdate:modelValue":e[22]||(e[22]=t=>a(o).patientType=t)},{default:u(()=>[n(H,{label:"0"},{default:u(()=>[...e[59]||(e[59]=[f("住院",-1)])]),_:1}),n(H,{label:"1"},{default:u(()=>[...e[60]||(e[60]=[f("门诊",-1)])]),_:1}),n(H,{label:"2"},{default:u(()=>[...e[61]||(e[61]=[f("急诊",-1)])]),_:1}),n(H,{label:"3"},{default:u(()=>[...e[62]||(e[62]=[f("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),n(r,{label:"状态:"},{default:u(()=>[n(Ie,{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"])),[[Q,a(m)]])]),_:1},8,["modelValue","title"]),n(ne,{modelValue:a(S),"onUpdate:modelValue":e[29]||(e[29]=t=>U(S)?S.value=t:S=t),title:"生成计划",width:"50%"},{footer:u(()=>[s("span",pl,[n(V,{onClick:e[28]||(e[28]=t=>U(S)?S.value=!1:S=!1)},{default:u(()=>[...e[65]||(e[65]=[f("取消",-1)])]),_:1}),n(V,{type:"primary",onClick:ze},{default:u(()=>[...e[66]||(e[66]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[X((d(),D(me,{"label-width":"100px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"选择时间范围:"},{default:u(()=>[n(it,{modelValue:a(Z),"onUpdate:modelValue":e[26]||(e[26]=t=>U(Z)?Z.value=t:Z=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(Ie,{modelValue:a(J),"onUpdate:modelValue":e[27]||(e[27]=t=>U(J)?J.value=t:J=t),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[Q,a(m)]])]),_:1},8,["modelValue"]),n(ne,{modelValue:a(N),"onUpdate:modelValue":e[31]||(e[31]=t=>U(N)?N.value=t:N=t),title:"时段冲突 - 生成失败",width:"60%"},{footer:u(()=>[s("span",ml,[n(V,{type:"primary",onClick:e[30]||(e[30]=t=>U(N)?N.value=!1:N=!1)},{default:u(()=>[...e[67]||(e[67]=[f("确定",-1)])]),_:1})])]),default:u(()=>[e[68]||(e[68]=s("div",{style:{"margin-bottom":"12px",color:"#f56c6c"}}," 以下模板与已有号源存在时段冲突,生成已取消,请调整后重试: ",-1)),n(Ce,{data:a(ce),border:"",stripe:"","max-height":"400"},{default:u(()=>[n(T,{prop:"date",label:"日期",width:"120"}),n(T,{prop:"weekname",label:"星期",width:"80"}),n(T,{prop:"new_time",label:"模板时段",width:"150"}),n(T,{prop:"existing_time",label:"已有号源时段",width:"150"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),n(ne,{modelValue:a(M),"onUpdate:modelValue":e[33]||(e[33]=t=>U(M)?M.value=t:M=t),title:"占位设置",width:"40%"},{footer:u(()=>[s("span",kl,[n(V,{onClick:e[32]||(e[32]=t=>U(M)?M.value=!1:M=!1)},{default:u(()=>[...e[69]||(e[69]=[f("取消",-1)])]),_:1}),n(V,{type:"primary",onClick:nt},{default:u(()=>[...e[70]||(e[70]=[f(" 确定 ",-1)])]),_:1})])]),default:u(()=>[X((d(),_("div",null,[a(q)?(d(),D(me,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:u(()=>[n(r,{label:"模板ID:"},{default:u(()=>[f(C(a(q).id),1)]),_:1}),n(r,{label:"资源:"},{default:u(()=>[f(C(a(q).resources_name),1)]),_:1}),n(r,{label:"时间段:"},{default:u(()=>[f(C(a(q).begin_time?a(q).begin_time.substring(0,5):"")+" - "+C(a(q).end_time?a(q).end_time.substring(0,5):""),1)]),_:1}),n(r,{label:"星期:"},{default:u(()=>[f(C(a(q).weekname),1)]),_:1}),n(r,{label:"渠道占位:"},{default:u(()=>[s("div",vl,[a(q).qudao_total&&a(q).qudao_total.length>0?(d(!0),_(B,{key:0},P(a(q).qudao_total,(t,c)=>(d(),_(B,{key:c},[t&&t.count!==0?(d(),_("div",fl,[s("div",cl,C(t.name),1),s("div",gl,[n(F,{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",yl," 可用: "+C(t.count),1)])):y("",!0)],64))),128)):(d(),_("div",bl," 暂无渠道数据 "))])]),_:1})]),_:1})):y("",!0)])),[[Q,a(m)]])]),_:1},8,["modelValue"])])}}},wl=rt(xl,[["__scopeId","data-v-4d36322d"]]);export{wl as default}; diff --git a/Laravel/public/admin/assets/PlanModelAdmin-6e2edf94.css b/Laravel/public/admin/assets/PlanModelAdmin-6e2edf94.css new file mode 100644 index 0000000..acfa574 --- /dev/null +++ b/Laravel/public/admin/assets/PlanModelAdmin-6e2edf94.css @@ -0,0 +1 @@ +@charset "UTF-8";.type_count[data-v-4d36322d]{display:flex}.type_count div[data-v-4d36322d]{white-space:nowrap;margin-right:10px}.qudao_k[data-v-4d36322d]{display:flex}.qudao_k_input[data-v-4d36322d]{width:150px}.hongzi[data-v-4d36322d]{color:#b25252}.planInfo .planTable[data-v-4d36322d]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-4d36322d]{border:1px solid #f1f1f1}.planInfo .table_plan_row td[data-v-4d36322d]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-4d36322d]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-4d36322d]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-4d36322d]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-4d36322d]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button[data-v-4d36322d]{width:100px}.zhenshiButton[data-v-4d36322d]{width:150px;border:1px solid #e8e8e8;text-align:center;margin-top:4px;border-radius:4px;cursor:default;padding:6px}.zhenshiButtonActive[data-v-4d36322d]{background-color:#5bc0de;color:#fff}.planInfo_k_disabled[data-v-4d36322d]{background-color:#ffd6d2}.planInfo_k[data-v-4d36322d]{font-size:14px;color:#333;position:relative;min-height:60px;padding-top:18px;padding-bottom:10px}.planInfo_k .plan_checkbox[data-v-4d36322d]{position:absolute;top:2px;left:2px;height:16px;width:16px;border:1px solid #98c4cc;border-radius:4px}.planInfo_k .plan_checkbox_active[data-v-4d36322d]{background-color:#409eff;justify-content:center;align-items:center;display:flex}.planInfo_k .qudao_count_row[data-v-4d36322d]{display:flex}.planInfo_k .qudao_count_row div[data-v-4d36322d]{margin-left:6px}.planInfo_k .qudao_count_row .qudao_title_zong[data-v-4d36322d],.planInfo_k .qudao_count_row .qudao_title_zong span[data-v-4d36322d]{font-weight:700}.planInfo_k .patient_type_row[data-v-4d36322d]{display:flex;margin-top:4px;justify-content:center}.planInfo_k .patient_type_row .tps[data-v-4d36322d]{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-4d36322d]{position:absolute;top:2px;right:4px;color:#ff9800;font-size:12px;font-weight:700}.planInfo_k .hoverTools[data-v-4d36322d]{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-4d36322d]{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0 4px}.planInfo_k .hoverTools .icon_k .el-icon[data-v-4d36322d]{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-4d36322d]{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-4d36322d]{height:20px;width:20px;border:1px solid #7cccc7;border-radius:4px}.plan_checkAllbox_active[data-v-4d36322d]{background-color:#409eff;justify-content:center;align-items:center;display:flex} diff --git a/Laravel/public/admin/assets/PlanModelAdmin-d2f13b19.js b/Laravel/public/admin/assets/PlanModelAdmin-d2f13b19.js deleted file mode 100644 index fe046f0..0000000 --- a/Laravel/public/admin/assets/PlanModelAdmin-d2f13b19.js +++ /dev/null @@ -1 +0,0 @@ -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 Q,Z as X,j as E,x as y,l as L,g as v,I as _t,E as V,W as pt,O as mt,J as vt,q as f,v as w,bg as ft,N as me,aU as ct,bh as gt,bi as yt,bj as bt,bk as kt,aZ as xt,a_ as Ie,a$ as ht,b0 as Vt}from"./index-b8bae120.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"},jt={style:{"font-weight":"700"}},Yt={style:{"margin-right":"26px"}},Ht={class:"qudao_k_input"},Jt={style:{width:"50px"}},Kt={class:"qudao_k_input",style:{display:"flex"}},Qt={style:{"margin-left":"4px",color:"#ccc"}},Xt={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("编辑"),Ye(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)})},je=()=>{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)})},Ye=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=[]},Ke=l=>{G.value=l,re(0),ke(0)},Qe=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;Xe(l)}},Xe=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,j]=I.split(":").map(Number);return le*60+j}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"),j=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"),Y=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"),K=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:X({"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))]),Q((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:X({"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(j,{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:X({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(j,{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(j,{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:X({"plan_checkbox plan_checkbox_active":ue(g.id),plan_checkbox:!ue(g.id)}),onClick:$=>Le(g.id)},[ue(g.id)?(d(),E(j,{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)])),[[K,a(m)]])])):y("",!0),a(p).date_type==2?Q((d(),E(ut,{key:1,data:a(ve),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Qe},{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:X(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",jt,"最大数量:"+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"])),[[K,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(()=>[Q((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(Y,{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(Y,{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",Yt,[s("div",null,[n(I,{modelValue:a(G),"onUpdate:modelValue":e[11]||(e[11]=t=>L(G)?G.value=t:G=t),onChange:Ke},{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",Kt,[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",Qt,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:je,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",Xt,[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(Y,{label:"0"},{default:u(()=>[...e[57]||(e[57]=[f("住院",-1)])]),_:1}),n(Y,{label:"1"},{default:u(()=>[...e[58]||(e[58]=[f("门诊",-1)])]),_:1}),n(Y,{label:"2"},{default:u(()=>[...e[59]||(e[59]=[f("急诊",-1)])]),_:1}),n(Y,{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"])),[[K,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(()=>[Q((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})),[[K,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(()=>[Q((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)])),[[K,a(m)]])]),_:1},8,["modelValue"])])}}},xl=st(yl,[["__scopeId","data-v-498c2bd3"]]);export{xl as default}; diff --git a/Laravel/public/admin/assets/PlanModelAdmin-f76fb455.css b/Laravel/public/admin/assets/PlanModelAdmin-f76fb455.css deleted file mode 100644 index 31e6925..0000000 --- a/Laravel/public/admin/assets/PlanModelAdmin-f76fb455.css +++ /dev/null @@ -1 +0,0 @@ -@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-724956b9.js b/Laravel/public/admin/assets/PlanTj-c04feca0.js similarity index 97% rename from Laravel/public/admin/assets/PlanTj-724956b9.js rename to Laravel/public/admin/assets/PlanTj-c04feca0.js index bbda73f..78064a2 100644 --- a/Laravel/public/admin/assets/PlanTj-724956b9.js +++ b/Laravel/public/admin/assets/PlanTj-c04feca0.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,bB as P,D as S,E as j,q as E,g as d,bz as N}from"./index-b8bae120.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"),B=o("el-button"),h=o("el-row"),i=o("el-table-column"),C=o("el-table"),D=R("loading");return p(),g("div",null,[b("div",U,[a(h,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(B,{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,bB as P,D as S,E as j,q as E,g as d,bz as N}from"./index-612fedfe.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"),B=o("el-button"),h=o("el-row"),i=o("el-table-column"),C=o("el-table"),D=R("loading");return p(),g("div",null,[b("div",U,[a(h,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(B,{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/RatioMngr-3ceeca1c.js b/Laravel/public/admin/assets/RatioMngr-39263071.js similarity index 97% rename from Laravel/public/admin/assets/RatioMngr-3ceeca1c.js rename to Laravel/public/admin/assets/RatioMngr-39263071.js index 781f7b7..a4b222b 100644 --- a/Laravel/public/admin/assets/RatioMngr-3ceeca1c.js +++ b/Laravel/public/admin/assets/RatioMngr-39263071.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,bs as A,F as b,t as V,j as w,g as R}from"./index-b8bae120.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,bs as A,F as b,t as V,j as w,g as R}from"./index-612fedfe.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/SystemConfig-a84b4c94.js b/Laravel/public/admin/assets/SystemConfig-38492ca7.js similarity index 98% rename from Laravel/public/admin/assets/SystemConfig-a84b4c94.js rename to Laravel/public/admin/assets/SystemConfig-38492ca7.js index f20370b..e9c0cee 100644 --- a/Laravel/public/admin/assets/SystemConfig-a84b4c94.js +++ b/Laravel/public/admin/assets/SystemConfig-38492ca7.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-b8bae120.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-612fedfe.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-1da513f6.js b/Laravel/public/admin/assets/TimePeriodMngr-9c457f00.js similarity index 98% rename from Laravel/public/admin/assets/TimePeriodMngr-1da513f6.js rename to Laravel/public/admin/assets/TimePeriodMngr-9c457f00.js index c407c65..a5aa877 100644 --- a/Laravel/public/admin/assets/TimePeriodMngr-1da513f6.js +++ b/Laravel/public/admin/assets/TimePeriodMngr-9c457f00.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-b8bae120.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-612fedfe.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/admin/assets/YuYue202506-0ee802aa.css b/Laravel/public/admin/assets/YuYue202506-0ee802aa.css new file mode 100644 index 0000000..1116972 --- /dev/null +++ b/Laravel/public/admin/assets/YuYue202506-0ee802aa.css @@ -0,0 +1 @@ +@charset "UTF-8";.YuYue202506[data-v-79c62221]{display:flex;flex-direction:column;height:100%}.patientInfo[data-v-79c62221]{display:flex;align-items:center;flex-shrink:0}.patientInfo .item[data-v-79c62221]{margin-right:18px}.patientInfo .name[data-v-79c62221]{font-size:20px;font-weight:700}.patientInfo .value[data-v-79c62221]{font-size:18px;font-weight:700}.entrustList[data-v-79c62221]{flex:1;min-height:0;overflow:auto}.entrustList .errMsg[data-v-79c62221]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo[data-v-79c62221]{max-height:600px;overflow:auto;flex-shrink:0}.planInfo .planTable[data-v-79c62221]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-79c62221]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-79c62221]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-79c62221]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-79c62221]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-79c62221]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-79c62221]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button_recommend[data-v-79c62221]{width:180px}.planInfo .do_button[data-v-79c62221]{width:100px}.ZhenShiButton[data-v-79c62221]{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-79c62221]{background-color:#5bc0de;color:#fff}[data-v-79c62221] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-79c62221] .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-5be4eb25.js b/Laravel/public/admin/assets/YuYue202506-5be4eb25.js deleted file mode 100644 index 1ab7afa..0000000 --- a/Laravel/public/admin/assets/YuYue202506-5be4eb25.js +++ /dev/null @@ -1,3 +0,0 @@ -import{_ as mt,Y as Ve,o as ct,r as U,c as ft,d as E,e as T,i as x,k as D,v as N,q as M,x as P,j as ne,w as b,h as je,f as g,F as ke,t as Ee,Z as Ue,l as H,y as De,g as S,$ as gt,E as z,a0 as xt,a1 as bt,a2 as me,N as se,a3 as ht,a4 as Je,a5 as yt,a6 as vt}from"./index-b8bae120.js";const wt={class:"YuYue202506"},St={key:0,class:"patientInfo"},kt={class:"item"},Et={class:"name"},Dt={class:"item"},Ct={class:"value"},It={class:"item"},Tt={class:"value"},Mt={key:0,class:"item"},Nt={class:"value"},Vt={key:1,class:"item"},Bt={class:"value"},Pt={key:2,class:"item"},Rt={class:"value"},zt={key:1},Yt={class:"entrustList"},Ot={key:0,style:{"font-size":"12px",color:"#909399"}},$t={style:{"margin-right":"4px",color:"#999"}},Lt={key:0,class:"errMsg"},Ht={key:1},jt={key:0},Ut={key:1},Jt={key:0,style:{color:"orangered"}},Ft={key:1},Gt={key:0},At={key:0},Wt={key:1},Zt={class:"planInfo"},qt={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"8px","margin-bottom":"8px"}},Kt={style:{display:"flex","align-items":"center"}},Qt=["onClick"],Xt={style:{display:"flex","flex-direction":"column","margin-left":"12px"}},ed={style:{border:"1px solid #efefef"}},td={class:"planTable"},dd={key:0,style:{"background-color":"#f1f1f1"}},nd={style:{"font-weight":"700"}},sd=["onClick"],ad={key:0},id={key:0},ld={key:1,style:{"background-color":"#fff"}},rd={class:"dialog-footer"},od={style:{display:"flex","align-items":"flex-start",gap:"12px"}},pd=["innerHTML"],ud={style:{display:"flex","align-items":"flex-start",gap:"12px"}},_d=["innerHTML"],md={style:{display:"flex","align-items":"flex-start",gap:"12px"}},cd=["innerHTML"],fd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},gd=["innerHTML"],xd=`1.未预约状态,如果多个检查项目能在同一个检查室进行检查,系统会自动选中能一起预约的项目,只需要点击一次预约按钮即可完成预约 -2.已预约状态,预约到同一个时段的同一个检查室的项目,系统会自动选中,更改预约或取消预约只需点击一次 -3.不同状态的预约的预约项目无法一起选中`,bd={__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(Fe){const y=Fe;let j=S(null),Y=S(null),_=S([]),ae=S([]),te=S(!1),O=S(!1),de=S(["1"]),Ce=S(!0),ce=S([]),V=S(""),B=S(0),R=S([]),L=S([]),h=S([]),q=S(!0),fe=S([]),F=S([]),ge=S("add"),ie=S(""),xe=S([]),be=S([]),le=S([]),Ie=S(0),Be=S(!1),re=S(!0),K=S(!1),J=S(!1),oe=S(""),pe=S(null),ue=S(null),Q=S(!1),Pe=S(""),X=S(!1),Re=S(""),G=S(!1),he=S("");const Ge=l=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const n=new Date(l).getDay();return e[n]},ze=Ve(()=>{const l=h.value.map(n=>{var s;return(s=n.department_resources)==null?void 0:s.department_resources_name}).filter(Boolean),e=[...new Set(l)];if(e.length!==1)return 0;const t=e[0];return _.value.filter(n=>{var s;return((s=n.department_resources)==null?void 0:s.department_resources_name)===t}).length}),Ye=Ve(()=>y.special_privileges.includes("emergency")),Ae=Ve(()=>{const l=_.value.filter(t=>!!(t.list_status===1&&t.reservation_date||t.list_status===0&&t.temp_plan_id&&t.reservation_date));return l.length<2?!1:new Set(l.map(t=>t.reservation_date)).size>1}),We=l=>{var t,n,s,i,r,a,o,m,p,c;if(R.value=[],L.value=[],ce.value=[],ae.value=[],V.value="",h.value=l,console.log("11111",h.value),h.value.forEach((f,u)=>{R.value.push(f.id),L.value.push(f.entrust_id)}),h.value.every(f=>{var u;return f.roster_id===((u=h.value[0])==null?void 0:u.roster_id)}))B.value=(t=h.value[0])==null?void 0:t.roster_id,B.value!==0&&B.value&&(ie.value=(n=h.value[0])==null?void 0:n.reservation_date,ut(Le(),(s=h.value[0])==null?void 0:s.reservation_date)&&((i=h.value[0])!=null&&i.reservation_date)?W.value=we((r=h.value[0])==null?void 0:r.reservation_date):W.value=we(Le()),V.value=(o=(a=h.value[0])==null?void 0:a.department_resources)==null?void 0:o.department_resources_name);else if(B.value=0,h.value.length>0){const f=(p=(m=h.value[0])==null?void 0:m.department_resources)==null?void 0:p.execute_department_id;if(f&&h.value.every(w=>{var k;return((k=w.department_resources)==null?void 0:k.execute_department_id)===f})){const w=(c=h.value[0].department_resources)==null?void 0:c.department_resources_name;w&&(V.value=w)}}fe.value.forEach(f=>{h.value.find(u=>u===f)||(ge.value="cancel")}),h.value.length==0&&(ge.value="add",fe.value=[]),console.log(ge.value),L.value.length>0&&q.value&&(ge.value==="add"&&h.value[0].list_status==0&&re.value?Xe():ee()),pe.value&&_.value.findIndex(u=>R.value.includes(u.id))+1===pe.value.idx&&(oe.value=pe.value.html,J.value=!0,pe.value=null),ue.value&&_.value.findIndex(u=>R.value.includes(u.id))+1===ue.value.idx&&(he.value=ue.value.html,G.value=!0,ue.value=null),Ze()},Ze=()=>{var t,n;if(h.value.length===0){Ce.value=!0;return}const l=(n=(t=h.value[0])==null?void 0:t.department_resources)==null?void 0:n.execute_department_id;if(l==null){Ce.value=!0;return}const e=h.value.every(s=>{var i;return((i=s.department_resources)==null?void 0:i.execute_department_id)===l});Ce.value=!e},qe=l=>h.value.findIndex(e=>e.id===l.id)>-1,Ke=({row:l,rowIndex:e})=>{if(l.tishi_msg!="")return"disabled-row";if(qe(l))return"selected-row"},Qe=(l,e)=>l.tishi_msg=="";let ye=S([]);const ve=(l,e)=>{let t=R.value;_.value=[],te.value=!0,gt({regnum:y.reg_num,entrustid:y.entrust_ids,episodeid:y.episode_id,appointment_type:y.appointment_type}).then(n=>{var s;if(te.value=!1,n.status){if(n.data.info.length>0){let i=n.data.info;if(Y.value=i[0].maininfo,i.forEach((r,a)=>{var m,p;let o=r.maininfo;o.tishi_msg=r.msg,o.limosis=(m=r.iteminfo[0])==null?void 0:m.limosis,_.value.push(o),r.msg!=""&&r.msg!=null&&ye.value.push({msg:r.msg,item_name:(p=r.iteminfo[0])==null?void 0:p.item_name})}),t.length>0&&!e)t.forEach((r,a)=>{_.value.forEach((o,m)=>{r==o.id&&j.value.toggleRowSelection(_.value[m],!0)})});else for(let r=0;r<_.value.length;r++)if(_.value[r].tishi_msg==""&&_.value[r].list_status===0){j.value.toggleRowSelection(_.value[r],!0);const a=(s=_.value[r].department_resources)==null?void 0:s.department_resources_name;a&&_.value.forEach(o=>{var m;o.id!==_.value[r].id&&o.list_status===0&&o.tishi_msg===""&&((m=o.department_resources)==null?void 0:m.department_resources_name)===a&&j.value.toggleRowSelection(o,!0)}),_.value[r].roster_id!=null&&(B.value=_.value[r].roster_id,V.value=a);break}Ne.value&&(Ne.value=!1,ye.value.length>0&&(console.log("22222222222222",ye.value),K.value=!0)),be.value=JSON.parse(JSON.stringify(_.value)),l&&l()}}else z.error(n.msg)})},Xe=()=>{let l=[],e=h.value.length;if(h.value[e-1].list_status!=0)return!1;_.value.forEach((t,n)=>{t.list_status==0&&t.tishi_msg==""&&(t.id==h.value[e-1].id?l.push({name:t.entrust,rowid:n,first:1}):l.push({name:t.entrust,rowid:n,first:0}))}),l.length>=2?(te.value=!0,xt({items:l}).then(t=>{te.value=!1,t.status?(l.forEach((s,i)=>{q.value=!1,j.value.toggleRowSelection(_.value[s.rowid],!1)}),t.data.rowids.forEach((s,i)=>{q.value=!1,j.value.toggleRowSelection(_.value[s],!0)}),fe.value=h.value,ee()):z.error(t.msg),q.value=!0})):(fe.value=h.value,ee())};let W=S([]);const ee=()=>{if(L.value.length==0)return z.error("请选择检查项目"),!1;O.value=!0,bt({regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,date:W.value,scope:y.scope,do_user:y.do_user}).then(l=>{if(O.value=!1,ae.value=[],ce.value=[],l.status){let e=l.data.plan_list,t=l.data.zhanWeiCount,n=l.data.is_emergency;if(le.value=e,Ie.value=t,e.length>0){V.value==""&&(V.value=e[0].department_resources_name);const s=new Set,i=new Set;e.forEach(o=>{if(o.department_resources_name==V.value){const m=`${o.begin_time.substring(0,5)}-${o.end_time.substring(0,5)}`;s.add(m)}i.add(o.department_resources_name)}),ce.value=i,Array.from(s).sort().forEach(o=>{const m={time_range:o};W.value.forEach(p=>{const c=e.find(u=>`${u.begin_time.substring(0,5)}-${u.end_time.substring(0,5)}`===o&&u.date===p&&u.department_resources_name==V.value);let f=!1;c?(c.count-c.used_count>=t&&c.plan_enable===!0&&(f=!0),n===!0&&c.plan_enable===!0&&Ye.value==!0&&(f=!0),m[p]={use_count:`${c.used_count}/${c.count}`,id:c.id,enable:f}):m[p]={use_count:"0/0",id:null,enable:f}}),ae.value.push(m)}),B.value=0;const a=Oe();if(a.length>0)F.value=a,B.value=a[0];else{F.value=[];const o=e.find(m=>m.department_resources_name==V.value&&m.count-m.used_count>=t&&m.plan_enable===!0);o&&(B.value=o.id)}if(!Be.value){Be.value=!0;const o=_.value.filter(m=>m.list_status===0);if(o.length>0){const m=o.map(p=>{var c;return{id:p.id,entrust_id:p.entrust_id,department_resources_name:((c=p.department_resources)==null?void 0:c.department_resources_name)||"",date:p.reservation_date||"",begin_time:p.period_begin_time||"",end_time:p.period_end_time||""}});me({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:m,scope:y.scope,do_user:y.do_user}).then(p=>{if(p.status){p.data.forEach(d=>{const v=_.value.find(C=>C.id===d.id);v&&(v.department_resources||(v.department_resources={}),v.department_resources.department_resources_name=d.department_resources_name,v.reservation_date=d.date,v.period_begin_time=d.begin_time,v.period_end_time=d.end_time,v.temp_plan_id=d.plan_id)});const c={};p.data.forEach(d=>{var C,$;const v=d.department_resources_name;c[v]||(c[v]={items:[],timeSlots:new Set,dates:new Set}),c[v].items.push(d),c[v].timeSlots.add(((C=d.begin_time)==null?void 0:C.substring(0,5))+"-"+(($=d.end_time)==null?void 0:$.substring(0,5))),c[v].dates.add(d.date)});const f=[];for(const[d,v]of Object.entries(c))(v.timeSlots.size>1||v.dates.size>1)&&v.items.forEach(C=>{var _e,I,A;const $=_.value.findIndex(Z=>Z.id===C.id);f.push({idx:$!==-1?$+1:"",room:C.department_resources_name,date:C.date,timeSlot:((_e=C.begin_time)==null?void 0:_e.substring(0,5))+"-"+((I=C.end_time)==null?void 0:I.substring(0,5)),entrust:((A=_.value.find(Z=>Z.id===C.id))==null?void 0:A.entrust)||""})});if(f.length>0){let d='';d+='';let v="",C="#f5f5f5";f.sort((I,A)=>I.idx-A.idx).forEach(I=>{I.timeSlot!==v&&(C=C==="#fff"?"#d5dce6":"#fff",v=I.timeSlot),d+='"}),d+="
序号项目名称检查室日期时间段
'+I.idx+''+I.entrust+''+I.room+''+I.date+''+I.timeSlot+"
";const $=Math.min(...f.map(I=>I.idx));_.value.findIndex(I=>R.value.includes(I.id))+1===$?(oe.value=d,J.value=!0):pe.value={html:d,idx:$}}const u=new Set(p.data.map(d=>d.id)),w=m.filter(d=>!u.has(d.id));if(w.length>0){let d='';d+='';let v=1;p.data.forEach(I=>{var Z,Se,He;const A=((Z=_.value.find(_t=>_t.id===I.id))==null?void 0:Z.entrust)||"";d+=''}),w.forEach(I=>{var Z;const A=((Z=_.value.find(Se=>Se.id===I.id))==null?void 0:Z.entrust)||"";d+=''}),d+="
序号项目名称排班资源日期时间段结果
'+v+++''+A+''+I.department_resources_name+''+I.date+''+((Se=I.begin_time)==null?void 0:Se.substring(0,5))+"-"+((He=I.end_time)==null?void 0:He.substring(0,5))+'✅ 成功匹配
'+v+++''+A+'❌ 未找到合适号源
";const C=w.map(I=>_.value.findIndex(A=>A.id===I.id)+1).filter(I=>I>0),$=Math.min(...C);_.value.findIndex(I=>R.value.includes(I.id))+1===$?(he.value=d,G.value=!0):ue.value={html:d,idx:$}}const k=Oe();k.length>0&&(F.value=k,B.value=k[0])}})}}}}else z.error(l.msg)})},et=l=>{V.value=l,B.value=0,F.value=[],ee()},Oe=()=>{const l=[];for(const e of _.value)if(R.value.includes(e.id)&&e.list_status===0&&e.temp_plan_id){const t=le.value.find(n=>n.id===e.temp_plan_id&&n.department_resources_name===V.value);t&&!l.includes(t.id)&&l.push(t.id)}for(const e of _.value)if(R.value.includes(e.id)&&e.list_status===1&&e.roster_id){const t=le.value.find(n=>n.id===e.roster_id&&n.department_resources_name===V.value);t&&!l.includes(t.id)&&l.push(t.id)}return l},tt=l=>{if(console.log(l),l==null)return;const e=le.value.find(n=>n.id===l);if(!e)return;const t=e.count-e.used_count;if(t{const s=_.value.find(i=>i.id===n.id);s&&(s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=e.department_resources_name,s.reservation_date=e.date,s.period_begin_time=e.begin_time,s.period_end_time=e.end_time,s.temp_plan_id=l)})},dt=()=>{if(L.value.length===0){z.error("请选择检查项目");return}O.value=!0,h.value.forEach(t=>{const n=be.value.find(i=>i.id===t.id);if(!n)return;const s=_.value.find(i=>i.id===t.id);s&&(s.department_resources=n.department_resources,s.reservation_date=n.reservation_date,s.period_begin_time=n.period_begin_time,s.period_end_time=n.period_end_time,s.temp_plan_id=void 0)});const l=h.value.filter(t=>t.list_status===0).map(t=>{var n;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((n=t.department_resources)==null?void 0:n.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=_.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"optimal_time",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:l,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status){t.data.forEach(a=>{const o=_.value.find(m=>m.id===a.id);o&&(o.department_resources||(o.department_resources={}),o.department_resources.department_resources_name=a.department_resources_name,o.reservation_date=a.date,o.period_begin_time=a.begin_time,o.period_end_time=a.end_time,o.temp_plan_id=a.plan_id)});const n={};t.data.forEach(a=>{var m,p;const o=a.department_resources_name;n[o]||(n[o]={items:[],timeSlots:new Set,dates:new Set}),n[o].items.push(a),n[o].timeSlots.add(((m=a.begin_time)==null?void 0:m.substring(0,5))+"-"+((p=a.end_time)==null?void 0:p.substring(0,5))),n[o].dates.add(a.date)});const s=[];for(const[a,o]of Object.entries(n))(o.timeSlots.size>1||o.dates.size>1)&&o.items.forEach(m=>{var c,f,u;const p=_.value.findIndex(w=>w.id===m.id);s.push({idx:p!==-1?p+1:"",room:m.department_resources_name,date:m.date,timeSlot:((c=m.begin_time)==null?void 0:c.substring(0,5))+"-"+((f=m.end_time)==null?void 0:f.substring(0,5)),entrust:((u=_.value.find(w=>w.id===m.id))==null?void 0:u.entrust)||""})});if(s.length>0){let a='';a+='';let o="",m="#f5f5f5";s.sort((p,c)=>p.idx-c.idx).forEach(p=>{p.timeSlot!==o&&(m=m==="#fff"?"#d5dce6":"#fff",o=p.timeSlot),a+='"}),a+="
序号项目名称检查室日期时间段
'+p.idx+''+p.entrust+''+p.room+''+p.date+''+p.timeSlot+"
",oe.value=a,J.value=!0}const i=new Set(t.data.map(a=>a.id)),r=l.filter(a=>!i.has(a.id));if(r.length>0){let a='';a+='';let o=1;t.data.forEach(m=>{var c,f,u;const p=((c=_.value.find(w=>w.id===m.id))==null?void 0:c.entrust)||"";a+=''}),r.forEach(m=>{var c;const p=((c=_.value.find(f=>f.id===m.id))==null?void 0:c.entrust)||"";a+=''}),a+="
序号项目名称排班资源日期时间段结果
'+o+++''+p+''+m.department_resources_name+''+m.date+''+((f=m.begin_time)==null?void 0:f.substring(0,5))+"-"+((u=m.end_time)==null?void 0:u.substring(0,5))+'✅ 成功匹配
'+o+++''+p+'❌ 未找到合适号源
",he.value=a,G.value=!0}else t.data.length===0&&se.confirm("所有项目均未匹配到合适号源,请重新选择号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1});t.data.length>0&&(V.value=t.data[0].department_resources_name,F.value=t.data.map(a=>a.plan_id),B.value=t.data[0].plan_id)}else z.error(t.msg)})},nt=()=>{if(L.value.length===0){z.error("请选择检查项目");return}O.value=!0,h.value.forEach(t=>{const n=be.value.find(i=>i.id===t.id);if(!n)return;const s=_.value.find(i=>i.id===t.id);s&&(s.department_resources=n.department_resources,s.reservation_date=n.reservation_date,s.period_begin_time=n.period_begin_time,s.period_end_time=n.period_end_time,s.temp_plan_id=void 0)});const l=h.value.filter(t=>t.list_status===0).map(t=>{var n;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((n=t.department_resources)==null?void 0:n.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=_.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"full_day",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:l,occupied_plan_ids:e,scope:y.scope,do_user:y.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.forEach(n=>{const s=_.value.find(i=>i.id===n.id);s&&(s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=n.department_resources_name,s.reservation_date=n.date,s.period_begin_time=n.begin_time,s.period_end_time=n.end_time,s.temp_plan_id=n.plan_id)}),t.data.length>0){const n={};t.data.forEach(i=>{var a,o;const r=i.department_resources_name;n[r]||(n[r]={items:[],timeSlots:new Set,dates:new Set}),n[r].items.push(i),n[r].timeSlots.add(((a=i.begin_time)==null?void 0:a.substring(0,5))+"-"+((o=i.end_time)==null?void 0:o.substring(0,5))),n[r].dates.add(i.date)});const s=[];for(const[i,r]of Object.entries(n))(r.timeSlots.size>1||r.dates.size>1)&&r.items.forEach(a=>{var m,p,c;const o=_.value.findIndex(f=>f.id===a.id);s.push({idx:o!==-1?o+1:"",room:a.department_resources_name,date:a.date,timeSlot:((m=a.begin_time)==null?void 0:m.substring(0,5))+"-"+((p=a.end_time)==null?void 0:p.substring(0,5)),entrust:((c=_.value.find(f=>f.id===a.id))==null?void 0:c.entrust)||""})});if(s.length>0){let i='';i+='';let r="",a="#f5f5f5";s.sort((o,m)=>o.idx-m.idx).forEach(o=>{o.timeSlot!==r&&(a=a==="#fff"?"#d5dce6":"#fff",r=o.timeSlot),i+='"}),i+="
序号项目名称检查室日期时间段
'+o.idx+''+o.entrust+''+o.room+''+o.date+''+o.timeSlot+"
",oe.value=i,J.value=!0}V.value=t.data[0].department_resources_name,F.value=t.data.map(i=>i.plan_id),B.value=t.data[0].plan_id}else se.confirm("未找到任何一天可满足所有检查项目的号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else z.error(t.msg)})},st=()=>{if(L.value.length===0){z.error("请选择检查项目");return}O.value=!0,h.value.forEach(t=>{const n=be.value.find(i=>i.id===t.id);if(!n)return;const s=_.value.find(i=>i.id===t.id);s&&(s.department_resources=n.department_resources,s.reservation_date=n.reservation_date,s.period_begin_time=n.period_begin_time,s.period_end_time=n.period_end_time,s.temp_plan_id=void 0)});const l=h.value.filter(t=>t.list_status===0).map(t=>{var n;return{id:t.id,entrust_id:t.entrust_id,department_resources_name:((n=t.department_resources)==null?void 0:n.department_resources_name)||"",date:t.reservation_date||"",begin_time:t.period_begin_time||"",end_time:t.period_end_time||""}}),e=_.value.filter(t=>!R.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"same_day_slot",regnum:y.reg_num,entrustid:L.value,episodeid:y.episode_id,appointment_type:y.appointment_type,items:l,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 n={};t.data.forEach(i=>{var a,o;const r=i.department_resources_name;n[r]||(n[r]={timeSlots:new Set}),n[r].timeSlots.add(((a=i.begin_time)==null?void 0:a.substring(0,5))+"-"+((o=i.end_time)==null?void 0:o.substring(0,5)))});let s=!1;for(const i of Object.values(n))if(i.timeSlots.size>1){s=!0;break}if(s){se.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});return}t.data.forEach(i=>{const r=_.value.find(a=>a.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)}),V.value=t.data[0].department_resources_name,F.value=t.data.map(i=>i.plan_id),B.value=t.data[0].plan_id}else se.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else z.error(t.msg)})},at=()=>{O.value=!0;const l=le.value.find(s=>s.id===B.value);if(!l){O.value=!1;return}const e=l.date+" "+l.begin_time,t=l.date+" "+l.end_time,n=l.department_resources_name;ht({reg_num:y.reg_num,planid:B.value}).then(s=>{var r;O.value=!1;let i=[];if(!s.status&&((r=s.data)!=null&&r.conflicts)&&(i=i.concat(s.data.conflicts.filter(a=>a.room_name!==n))),_.value.forEach(a=>{var c,f,u,w;if(a.list_status!==0||!a.temp_plan_id||!a.reservation_date||((c=a.department_resources)==null?void 0:c.department_resources_name)===n)return;const m=a.reservation_date+" "+a.period_begin_time,p=a.reservation_date+" "+a.period_end_time;m<=t&&e<=p&&(i.some(d=>d.entrust===a.entrust&&d.date===a.reservation_date)||i.push({entrust:a.entrust,date:a.reservation_date,begin_time:(f=a.period_begin_time)==null?void 0:f.substring(0,5),end_time:(u=a.period_end_time)==null?void 0:u.substring(0,5),room_name:((w=a.department_resources)==null?void 0:w.department_resources_name)||""}))}),i.length>0){let a='';a+='',i.forEach((o,m)=>{a+='"}),a+="
序号项目名称检查室日期时间段
'+(m+1)+''+o.entrust+''+(o.room_name||"")+''+o.date+''+o.begin_time+"-"+o.end_time+"
",Pe.value=a,Q.value=!0}})},Te=l=>{if(L.length==0)return z.error("请选择检查项目"),!1;if(B.value==0||B.value==""||B.value==null)return z.error("请选择号源"),!1;let e="确定预约此时间吗?";l==2&&(e="确定改约至此时间吗?"),se.confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{it(l)}).catch(()=>{})},it=async l=>{O.value=!0;const e={};_.value.forEach(p=>{var c;!R.value.includes(p.id)&&p.temp_plan_id&&(e[p.id]={temp_plan_id:p.temp_plan_id,department_resources_name:(c=p.department_resources)==null?void 0:c.department_resources_name,reservation_date:p.reservation_date,period_begin_time:p.period_begin_time,period_end_time:p.period_end_time})}),console.log("tempPlanCache 缓存:",JSON.parse(JSON.stringify(e)));const t={};let n=!1;if(R.value.forEach(p=>{const c=_.value.find(u=>u.id===p),f=(c==null?void 0:c.temp_plan_id)||(c==null?void 0:c.roster_id);if(!f){n=!0;return}t[f]||(t[f]=[]),t[f].push(p)}),n){O.value=!1,z.error("存在未分配号源的项目,请先选择号源");return}const s=Object.keys(t);if(s.length===1){const p=Number(s[0]),c=t[p];Je({mainlistid:c,planid:p,appointment_type:y.appointment_type,dotype:l,do_user:y.do_user,is_emergency:l==111?1:null}).then(f=>{O.value=!1,f.status?(xe.value.forEach((u,w)=>{u.label=="开启申请单pdf"&&u.value}),ve(()=>{var k;q.value=!1;const u=[...R.value],w=_.value.filter(d=>d.list_status===0&&d.tishi_msg==="");if(w.length===0)u.forEach(d=>{const v=_.value.find(C=>C.id===d);v&&j.value.toggleRowSelection(v,!0)});else{j.value.clearSelection();const d=new Set(w.map(v=>{var C;return(C=v.department_resources)==null?void 0:C.department_resources_name}).filter(Boolean));_.value.forEach(v=>{var C;v.tishi_msg===""&&(v.list_status===0||d.has((C=v.department_resources)==null?void 0:C.department_resources_name))&&j.value.toggleRowSelection(v,!0)})}if(q.value=!0,_.value.forEach(d=>{e[d.id]&&(console.log("回填 temp_plan_id:",d.id,e[d.id].temp_plan_id),d.temp_plan_id=e[d.id].temp_plan_id,d.department_resources||(d.department_resources={}),d.department_resources.department_resources_name=e[d.id].department_resources_name,d.reservation_date=e[d.id].reservation_date,d.period_begin_time=e[d.id].period_begin_time,d.period_end_time=e[d.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(_.value.map(d=>({id:d.id,temp_plan_id:d.temp_plan_id,list_status:d.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(_.value.map(d=>({id:d.id,temp_plan_id:d.temp_plan_id,list_status:d.list_status})))))},2e3),h.value.length>0){const d=(k=h.value[0].department_resources)==null?void 0:k.department_resources_name;d&&(V.value=d),ee()}},!0),de.value.length>0&&Me()):se.confirm(f.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})});return}const i=[],r=[],a=[];for(const p of s){const c=Number(p),f=t[p];try{const u=await Je({mainlistid:f,planid:c,appointment_type:y.appointment_type,dotype:l,do_user:y.do_user,is_emergency:l==111?1:null});u.status?f.forEach(w=>{var d;const k=_.value.find(v=>v.id===w);if(k){const v=(k.period_begin_time?k.period_begin_time.substring(0,5):"")+"-"+(k.period_end_time?k.period_end_time.substring(0,5):"");i.push({name:k.entrust,room:((d=k.department_resources)==null?void 0:d.department_resources_name)||"",date:k.reservation_date||"",time:v}),a.push(k.entrust_id)}}):f.forEach(w=>{const k=_.value.find(d=>d.id===w);k&&r.push({name:k.entrust,msg:u.msg})})}catch{f.forEach(w=>{const k=_.value.find(d=>d.id===w);k&&r.push({name:k.entrust,msg:"请求异常"})})}}O.value=!1;let o='';o+='';let m=1;i.forEach(p=>{o+=''}),r.forEach(p=>{o+='"}),o+="
序号项目名称检查室日期时间段结果
'+m+++''+p.name+''+p.room+''+p.date+''+p.time+'预约成功
'+m+++''+p.name+''+p.msg+"
",Re.value=o,X.value=!0,i.length>0&&(ve(()=>{var f;q.value=!1;const p=[...R.value],c=_.value.filter(u=>u.list_status===0&&u.tishi_msg==="");if(c.length===0)p.forEach(u=>{const w=_.value.find(k=>k.id===u);w&&j.value.toggleRowSelection(w,!0)});else{j.value.clearSelection();const u=new Set(c.map(w=>{var k;return(k=w.department_resources)==null?void 0:k.department_resources_name}).filter(Boolean));_.value.forEach(w=>{var k;w.tishi_msg===""&&(w.list_status===0||u.has((k=w.department_resources)==null?void 0:k.department_resources_name))&&j.value.toggleRowSelection(w,!0)})}if(q.value=!0,_.value.forEach(u=>{e[u.id]&&(console.log("回填 temp_plan_id:",u.id,e[u.id].temp_plan_id),u.temp_plan_id=e[u.id].temp_plan_id,u.department_resources||(u.department_resources={}),u.department_resources.department_resources_name=e[u.id].department_resources_name,u.reservation_date=e[u.id].reservation_date,u.period_begin_time=e[u.id].period_begin_time,u.period_end_time=e[u.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(_.value.map(u=>({id:u.id,temp_plan_id:u.temp_plan_id,list_status:u.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(_.value.map(u=>({id:u.id,temp_plan_id:u.temp_plan_id,list_status:u.list_status})))))},2e3),h.value.length>0){const u=(f=h.value[0].department_resources)==null?void 0:f.department_resources_name;u&&(V.value=u)}ee()},!0),xe.value.forEach((p,c)=>{p.label=="开启申请单pdf"&&p.value}),de.value.length>0&&Me(a))},lt=()=>{se.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const l={};_.value.forEach(n=>{var s;!R.value.includes(n.id)&&n.temp_plan_id&&(l[n.id]={temp_plan_id:n.temp_plan_id,department_resources_name:(s=n.department_resources)==null?void 0:s.department_resources_name,reservation_date:n.reservation_date,period_begin_time:n.period_begin_time,period_end_time:n.period_end_time})});const e=h.value.map(n=>{var s;return{id:n.id,entrust_id:n.entrust_id,department_resources_name:((s=n.department_resources)==null?void 0:s.department_resources_name)||"",date:n.reservation_date||"",begin_time:n.period_begin_time||"",end_time:n.period_end_time||""}});te.value=!0;const t=h.value.map(n=>yt({MainListId:n.id,reg_num:n.reg_num,do_user:y.do_user}).then(s=>{s.status?z.success("取消成功"):z.error(s.msg)}).catch(s=>{z.error("取消失败"),console.error(s)}));await Promise.all(t),te.value=!1,ve(()=>{_.value.forEach(s=>{l[s.id]&&(s.temp_plan_id=l[s.id].temp_plan_id,s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=l[s.id].department_resources_name,s.reservation_date=l[s.id].reservation_date,s.period_begin_time=l[s.id].period_begin_time,s.period_end_time=l[s.id].period_end_time)});const n=e;if(n.length>0){const s=_.value.filter(i=>!n.find(r=>r.id===i.id)&&i.list_status===0&&i.temp_plan_id).map(i=>i.temp_plan_id);me({type:"optimal_time",regnum:y.reg_num,entrustid:n.map(i=>i.entrust_id),episodeid:y.episode_id,appointment_type:y.appointment_type,items:n,occupied_plan_ids:s,scope:y.scope,do_user:y.do_user}).then(i=>{i.status&&i.data.length>0&&(i.data.forEach(r=>{const a=_.value.find(o=>o.id===r.id);a&&(a.department_resources||(a.department_resources={}),a.department_resources.department_resources_name=r.department_resources_name,a.reservation_date=r.date,a.period_begin_time=r.begin_time,a.period_end_time=r.end_time,a.temp_plan_id=r.plan_id)}),V.value=i.data[0].department_resources_name,F.value=i.data.map(r=>r.plan_id),B.value=i.data[0].plan_id)})}},!0)})},rt=()=>{vt({config_arrs:["开启申请单pdf","医生端打印"]}).then(l=>{l.status&&(xe.value=l.data.list,xe.value.forEach((e,t)=>{console.log(y.appointment_type),e.label=="医生端打印"&&e.value==="0"&&y.appointment_type==1&&(de.value=[])}))})},Me=l=>{const e=l||L.value,t=h.value.filter(i=>e.includes(i.entrust_id)&&i.list_status!=1);if(t.length>0){z.error(t.map(i=>i.entrust).join("、")+" 不可打印,请重新选择");return}const s="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=single&"+e.map(i=>"OrderNoList[]="+i).join("&");fetch(s).then(i=>i.blob()).then(i=>{const r=URL.createObjectURL(i),a=document.createElement("iframe");a.style.display="none",a.src=r,a.onload=()=>{a.contentWindow.print(),URL.revokeObjectURL(r)},document.body.appendChild(a)})},ot=()=>{V.value="",W.value=we(ie.value),console.log(W.value),ee()};function pt(l){const e=l.getFullYear(),t=String(l.getMonth()+1).padStart(2,"0"),n=String(l.getDate()).padStart(2,"0");return`${e}-${t}-${n}`}function we(l=new Date,e=15){const t=new Date(l),n=[];if(isNaN(t.getTime()))throw new Error("无效的日期格式");for(let s=0;s15}function Le(){const l=new Date,e=l.getFullYear(),t=String(l.getMonth()+1).padStart(2,"0"),n=String(l.getDate()).padStart(2,"0");return`${e}-${t}-${n}`}let Ne=S(!1);return ct(()=>{Ne.value=!0,rt(),W.value=we(),ve()}),(l,e)=>{var k;const t=U("el-alert"),n=U("el-table-column"),s=U("el-tag"),i=U("el-table"),r=U("el-button"),a=U("el-checkbox"),o=U("el-checkbox-group"),m=U("el-tooltip"),p=U("el-date-picker"),c=U("el-empty"),f=U("el-dialog"),u=U("el-icon"),w=ft("loading");return E(),T("div",wt,[x(Y)?(E(),T("div",St,[D("div",kt,[D("span",Et,N(x(Y).user_name),1),M("("+N(x(Y).user_sex_label)+" "+N(x(Y).age)+"岁)",1)]),D("div",Dt,[M(N(x(Y).patient_type_label)+"号:",1),D("span",Ct,N(x(Y).patient_type==0?(k=x(Y).episodeid)==null?void 0:k.slice(-10):x(Y).reg_num),1)]),D("div",It,[e[19]||(e[19]=M("电话:",-1)),D("span",Tt,N(x(Y).user_phone),1)]),x(Y).warddesc?(E(),T("div",Mt,[e[20]||(e[20]=M("病区:",-1)),D("span",Nt,N(x(Y).warddesc),1)])):P("",!0),x(Y).bedno?(E(),T("div",Vt,[e[21]||(e[21]=M("床号:",-1)),D("span",Bt,N(x(Y).bedno),1)])):P("",!0),x(Y).diagnosisName?(E(),T("div",Pt,[e[22]||(e[22]=M("诊断:",-1)),D("span",Rt,N(x(Y).diagnosisName),1)])):P("",!0)])):(E(),T("div",zt," 获取患者信息失败 ")),Ae.value?(E(),ne(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})):P("",!0),D("div",Yt,[je((E(),ne(i,{data:x(_),style:{width:"100%"},"row-key":"id",ref_key:"entrustTableRef",ref:j,"row-class-name":Ke,onSelectionChange:We},{default:b(()=>[g(n,{type:"selection",width:"36",selectable:Qe}),g(n,{prop:"tishi_msg",width:"200"},{header:b(()=>[D("div",null,[D("div",null,"共 "+N(x(_).length)+" 项,已选 "+N(x(R).length)+" 项",1),ze.value>0?(E(),T("div",Ot,"同检查室项目 "+N(ze.value)+" 项",1)):P("",!0)])]),default:b(d=>[D("span",$t,N(d.$index+1),1),d.row.tishi_msg!=""?(E(),T("span",Lt,N(d.row.tishi_msg),1)):(E(),T("span",Ht,"正常"))]),_:1}),g(n,{prop:"list_status",label:"预约状态",width:"80"},{default:b(d=>[d.row.list_status===0?(E(),ne(s,{key:0,class:"ml-2",type:"info"},{default:b(()=>[...e[24]||(e[24]=[M("未预约",-1)])]),_:1})):P("",!0),d.row.list_status===1?(E(),ne(s,{key:1,class:"ml-2",type:"success"},{default:b(()=>[...e[25]||(e[25]=[M("已预约",-1)])]),_:1})):P("",!0),d.row.list_status===2?(E(),ne(s,{key:2,class:"ml-2"},{default:b(()=>[...e[26]||(e[26]=[M("登记",-1)])]),_:1})):P("",!0),d.row.list_status===3?(E(),ne(s,{key:3,class:"ml-2",type:"warning"},{default:b(()=>[...e[27]||(e[27]=[M("完成",-1)])]),_:1})):P("",!0)]),_:1}),g(n,{prop:"entrust",label:"项目","show-overflow-tooltip":""}),g(n,{prop:"is_pay",label:"是否交费",width:"60",align:"center"},{default:b(d=>[d.row.is_pay==1?(E(),T("span",jt,"是")):P("",!0),d.row.is_pay==0?(E(),T("span",Ut,"否")):P("",!0)]),_:1}),g(n,{prop:"his_is_emergency",label:"是否加急",width:"60",align:"center"},{default:b(d=>[d.row.his_is_emergency==1?(E(),T("span",Jt,"是")):P("",!0),d.row.his_is_emergency==0?(E(),T("span",Ft,"否")):P("",!0)]),_:1}),g(n,{prop:"department_resources.department_resources_name",label:"排班",width:"220"}),g(n,{prop:"reservation_date",label:"预约日期",width:"120"}),g(n,{prop:"check_begin_time",label:"预约时间",width:"120"},{default:b(d=>[d.row.period_begin_time&&d.row.period_end_time?(E(),T("span",Gt,N(d.row.period_begin_time.substring(0,5))+"~"+N(d.row.period_end_time.substring(0,5)),1)):P("",!0)]),_:1}),g(n,{prop:"limosis",label:"是否空腹",width:"60",align:"center"},{default:b(d=>[d.row.limosis==0?(E(),T("span",At,"否")):(E(),T("span",Wt,"是"))]),_:1}),g(n,{prop:"reservation_department",label:"申请科室",width:"150"}),g(n,{prop:"",label:"医嘱时间",width:"200"},{default:b(d=>[M(N(d.row.entrust_date)+" "+N(d.row.entrust_time),1)]),_:1}),g(n,{prop:"docotr",label:"申请医生",width:"80"})]),_:1},8,["data"])),[[w,x(te)]])]),D("div",Zt,[D("div",qt,[D("div",Kt,[(E(!0),T(ke,null,Ee(x(ce),(d,v)=>(E(),T("div",{key:v,class:Ue({"ZhenShiButton zhenshiButton_active":x(V)===d,ZhenShiButton:x(V)!==d}),onClick:C=>et(d)},N(d),11,Qt))),128)),e[38]||(e[38]=D("div",{class:"shuxian"},null,-1)),Ye.value?(E(),ne(r,{key:0,class:"do_button",type:"danger",onClick:e[0]||(e[0]=d=>Te(111))},{default:b(()=>[...e[28]||(e[28]=[M("加急预约",-1)])]),_:1})):P("",!0),g(r,{class:"do_button",type:"success",onClick:e[1]||(e[1]=d=>Te(1))},{default:b(()=>[...e[29]||(e[29]=[M("预约",-1)])]),_:1}),g(r,{class:"do_button",type:"warning",onClick:e[2]||(e[2]=d=>Te(2))},{default:b(()=>[...e[30]||(e[30]=[M("更改预约时间",-1)])]),_:1}),g(r,{class:"do_button",type:"danger",onClick:e[3]||(e[3]=d=>lt())},{default:b(()=>[...e[31]||(e[31]=[M("取消预约",-1)])]),_:1}),g(r,{onClick:e[4]||(e[4]=d=>Me())},{default:b(()=>[...e[32]||(e[32]=[M("打印申请单",-1)])]),_:1}),D("div",Xt,[g(o,{modelValue:x(de),"onUpdate:modelValue":e[5]||(e[5]=d=>H(de)?de.value=d:de=d)},{default:b(()=>[g(a,{label:"1"},{default:b(()=>[...e[33]||(e[33]=[M("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"]),g(m,{placement:"top",content:xd,"popper-class":"tip-pre-line"},{default:b(()=>[g(a,{modelValue:x(re),"onUpdate:modelValue":e[6]||(e[6]=d=>H(re)?re.value=d:re=d)},{default:b(()=>[...e[34]||(e[34]=[M("自动选中能一起预约的检查项目",-1)])]),_:1},8,["modelValue"])]),_:1})]),g(m,{placement:"top",content:"点击此按钮,系统会推荐最近能用的时间段号源,多个检查项目可能会跨天跨时间段","popper-class":"tip-pre-line"},{default:b(()=>[g(r,{class:"do_button_recommend",type:"primary",style:{"margin-left":"20px",width:"120px"},onClick:dt},{default:b(()=>[...e[35]||(e[35]=[M("推荐最近时间号源",-1)])]),_:1})]),_:1}),g(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[g(r,{class:"do_button_recommend",type:"primary",style:{width:"120px"},onClick:nt},{default:b(()=>[...e[36]||(e[36]=[M("推荐同一天号源",-1)])]),_:1})]),_:1}),g(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天同一时间段完成检查的号源","popper-class":"tip-pre-line"},{default:b(()=>[g(r,{class:"do_button_recommend",type:"primary",onClick:st},{default:b(()=>[...e[37]||(e[37]=[M("推荐同一天同一时间段号源",-1)])]),_:1})]),_:1})]),D("div",null,[g(p,{modelValue:x(ie),"onUpdate:modelValue":e[7]||(e[7]=d=>H(ie)?ie.value=d:ie=d),type:"date",placeholder:"跳转日期",onChange:e[8]||(e[8]=d=>ot())},null,8,["modelValue"])])]),je((E(),T("div",ed,[D("table",td,[x(h).length>0?(E(),T("tr",dd,[e[39]||(e[39]=D("td",{style:{width:"120px"}},null,-1)),(E(!0),T(ke,null,Ee(x(W),(d,v)=>(E(),T("td",nd,N(d.substring(5,10))+" "+N(Ge(d)),1))),256))])):P("",!0),x(W).length>0&&x(ae).length>0?(E(!0),T(ke,{key:1},Ee(x(ae),(d,v)=>(E(),T("tr",{key:v,class:"table_plan_row"},[(E(!0),T(ke,null,Ee(d,(C,$)=>(E(),T("td",{key:$,class:Ue({planActive:x(F).includes(C.id)&&C.id!==0&&C.id,plandisable:!C.enable&&$!=="time_range"}),onClick:_e=>tt(C.id)},[$=="time_range"?(E(),T("span",ad,N(C),1)):P("",!0),D("span",null,N(C.use_count),1)],10,sd))),128))]))),128)):P("",!0)]),x(h).length==0?(E(),T("div",id,[g(c,{description:"请选择项目"})])):P("",!0),x(h).length>0&&x(ae).length==0?(E(),T("div",ld,[g(c,{description:"暂无号源"})])):P("",!0)])),[[w,x(O)]])]),g(f,{modelValue:x(K),"onUpdate:modelValue":e[10]||(e[10]=d=>H(K)?K.value=d:K=d),title:"提示",width:"500"},{footer:b(()=>[D("div",rd,[g(r,{type:"primary",onClick:e[9]||(e[9]=d=>H(K)?K.value=!1:K=!1)},{default:b(()=>[...e[40]||(e[40]=[M(" 确定 ",-1)])]),_:1})])]),default:b(()=>[g(i,{data:x(ye),style:{width:"100%"},"row-key":"id"},{default:b(()=>[g(n,{prop:"item_name",label:"项目名称"}),g(n,{prop:"msg",label:"异常提示"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),g(f,{modelValue:x(J),"onUpdate:modelValue":e[12]||(e[12]=d=>H(J)?J.value=d:J=d),title:"提示",width:"800"},{footer:b(()=>[g(r,{type:"primary",onClick:e[11]||(e[11]=d=>H(J)?J.value=!1:J=!1)},{default:b(()=>[...e[42]||(e[42]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",od,[g(u,{class:"el-icon-warning",style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[g(x(De))]),_:1}),D("div",null,[e[41]||(e[41]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}},"最近可用的同一时间段号源数量不足,无法把当前全部检查项目预约在同一时间段,系统已经自动拆分。",-1)),D("div",{innerHTML:x(oe)},null,8,pd)])])]),_:1},8,["modelValue"]),g(f,{modelValue:x(Q),"onUpdate:modelValue":e[14]||(e[14]=d=>H(Q)?Q.value=d:Q=d),title:"时段冲突",width:"800"},{footer:b(()=>[g(r,{type:"primary",onClick:e[13]||(e[13]=d=>H(Q)?Q.value=!1:Q=!1)},{default:b(()=>[...e[44]||(e[44]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",ud,[g(u,{style:{color:"#F56C6C","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[g(x(De))]),_:1}),D("div",null,[e[43]||(e[43]=D("p",{style:{margin:"0 0 12px 0","font-weight":"700"}}," 以下项目与当前选择的时间段存在冲突,请确认是否继续预约: ",-1)),D("div",{innerHTML:x(Pe)},null,8,_d)])])]),_:1},8,["modelValue"]),g(f,{modelValue:x(X),"onUpdate:modelValue":e[16]||(e[16]=d=>H(X)?X.value=d:X=d),title:"预约结果",width:"800"},{footer:b(()=>[g(r,{type:"primary",onClick:e[15]||(e[15]=d=>H(X)?X.value=!1:X=!1)},{default:b(()=>[...e[45]||(e[45]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",md,[g(u,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[g(x(De))]),_:1}),D("div",{innerHTML:x(Re)},null,8,cd)])]),_:1},8,["modelValue"]),g(f,{modelValue:x(G),"onUpdate:modelValue":e[18]||(e[18]=d=>H(G)?G.value=d:G=d),title:"预约推荐结果",width:"800"},{footer:b(()=>[g(r,{type:"primary",onClick:e[17]||(e[17]=d=>H(G)?G.value=!1:G=!1)},{default:b(()=>[...e[46]||(e[46]=[M("确定",-1)])]),_:1})]),default:b(()=>[D("div",fd,[g(u,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:b(()=>[g(x(De))]),_:1}),D("div",{innerHTML:x(he)},null,8,gd)])]),_:1},8,["modelValue"])])}}},yd=mt(bd,[["__scopeId","data-v-dd28a4d5"]]);export{yd as Y}; diff --git a/Laravel/public/admin/assets/YuYue202506-96867674.css b/Laravel/public/admin/assets/YuYue202506-96867674.css deleted file mode 100644 index c758882..0000000 --- a/Laravel/public/admin/assets/YuYue202506-96867674.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.YuYue202506[data-v-dd28a4d5]{display:flex;flex-direction:column;height:100%}.patientInfo[data-v-dd28a4d5]{display:flex;align-items:center;flex-shrink:0}.patientInfo .item[data-v-dd28a4d5]{margin-right:18px}.patientInfo .name[data-v-dd28a4d5]{font-size:20px;font-weight:700}.patientInfo .value[data-v-dd28a4d5]{font-size:18px;font-weight:700}.entrustList[data-v-dd28a4d5]{flex:1;min-height:0;overflow:auto}.entrustList .errMsg[data-v-dd28a4d5]{color:#f27d7d;font-weight:700;opacity:1!important}.planInfo[data-v-dd28a4d5]{max-height:600px;overflow:auto;flex-shrink:0}.planInfo .planTable[data-v-dd28a4d5]{width:100%;background-color:#fff;text-align:center;border:1px solid #f1f1f1;border-collapse:collapse;color:#333}.planInfo .planTable td[data-v-dd28a4d5]{border:1px solid #f1f1f1;padding:6px}.planInfo .table_plan_row td[data-v-dd28a4d5]:first-child{background-color:#f1f1f1;border-bottom:1px solid #e8e8e8}.planInfo .table_plan_row[data-v-dd28a4d5]>:not(:first-child):hover{background-color:#aeebf0;cursor:pointer;color:#fff}.planInfo .planActive[data-v-dd28a4d5]{background-color:#5bc0de;color:#fff}.planInfo .plandisable[data-v-dd28a4d5]{pointer-events:none;opacity:.4}.planInfo .shuxian[data-v-dd28a4d5]{border-left:1px solid #dfdfdf;margin-left:40px;margin-right:40px}.planInfo .do_button_recommend[data-v-dd28a4d5]{width:180px}.planInfo .do_button[data-v-dd28a4d5]{width:100px}.ZhenShiButton[data-v-dd28a4d5]{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-dd28a4d5]{background-color:#5bc0de;color:#fff}[data-v-dd28a4d5] .el-table .disabled-row{background-color:#f2e3e2;opacity:.6}[data-v-dd28a4d5] .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-e5e6b7e2.js b/Laravel/public/admin/assets/YuYue202506-e5e6b7e2.js new file mode 100644 index 0000000..473497b --- /dev/null +++ b/Laravel/public/admin/assets/YuYue202506-e5e6b7e2.js @@ -0,0 +1,3 @@ +import{_ as ft,Y as Ve,o as gt,r as j,c as xt,d as D,e as T,i as h,k as C,v as V,q as M,x as R,j as ne,w as y,h as He,f as x,F as Ee,t as De,Z as je,l as H,y as Ce,g as k,$ as bt,E as Y,a0 as ht,a1 as yt,a2 as me,N as se,a3 as vt,a4 as Je,a5 as wt,a6 as St}from"./index-612fedfe.js";const kt={class:"YuYue202506"},Et={key:0,class:"patientInfo"},Dt={class:"item"},Ct={class:"name"},It={class:"item"},Tt={class:"value"},Mt={class:"item"},Nt={class:"value"},Vt={key:0,class:"item"},Bt={class:"value"},Pt={key:1,class:"item"},Rt={class:"value"},zt={key:2,class:"item"},Yt={class:"value"},Ot={key:1},Lt={class:"entrustList"},Ut={key:0,style:{"font-size":"12px",color:"#909399"}},$t={style:{"margin-right":"4px",color:"#999"}},Ht={key:0,class:"errMsg"},jt={key:1},Jt={key:0},Ft={key:1},Gt={key:0,style:{color:"orangered"}},At={key:1},Wt={key:0},Zt={key:0},qt={key:1},Kt={class:"planInfo"},Qt={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"8px","margin-bottom":"8px"}},Xt={style:{display:"flex","align-items":"center"}},ed=["onClick"],td={style:{display:"flex","flex-direction":"column","margin-left":"12px"}},dd={style:{border:"1px solid #efefef"}},nd={class:"planTable"},sd={key:0,style:{"background-color":"#f1f1f1"}},ad={style:{"font-weight":"700"}},id=["onClick"],ld={key:0},od={key:0},rd={key:1,style:{"background-color":"#fff"}},ud={class:"dialog-footer"},pd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},_d=["innerHTML"],md={style:{display:"flex","align-items":"flex-start",gap:"12px"}},cd=["innerHTML"],fd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},gd=["innerHTML"],xd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},bd=["innerHTML"],hd=`1.未预约状态,如果多个检查项目能在同一个检查室进行检查,系统会自动选中能一起预约的项目,只需要点击一次预约按钮即可完成预约 +2.已预约状态,预约到同一个时段的同一个检查室的项目,系统会自动选中,更改预约或取消预约只需点击一次 +3.不同状态的预约的预约项目无法一起选中`,yd={__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(Fe){const w=Fe;let U=k(null),O=k(null),p=k([]),ae=k([]),te=k(!1),L=k(!1),de=k(["1"]),Ie=k(!0),ce=k([]),B=k(""),P=k(0),z=k([]),$=k([]),b=k([]),F=k(!0),fe=k([]),G=k([]),ge=k("add"),ie=k(""),xe=k([]),be=k([]),le=k([]),Ge=k(0),Be=k(!1),oe=k(!0),Q=k(!1),J=k(!1),re=k(""),ue=k(null),pe=k(null),X=k(!1),Pe=k(""),ee=k(!1),Re=k(""),A=k(!1),he=k("");const Ae=i=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const d=new Date(i).getDay();return e[d]},ze=Ve(()=>{const i=b.value.map(d=>{var s;return(s=d.department_resources)==null?void 0:s.department_resources_name}).filter(Boolean),e=[...new Set(i)];if(e.length!==1)return 0;const t=e[0];return p.value.filter(d=>{var s;return((s=d.department_resources)==null?void 0:s.department_resources_name)===t}).length}),Ye=Ve(()=>w.special_privileges.includes("emergency")),We=Ve(()=>{const i=p.value.filter(t=>!!(t.list_status===1&&t.reservation_date||t.list_status===0&&t.temp_plan_id&&t.reservation_date));return i.length<2?!1:new Set(i.map(t=>t.reservation_date)).size>1});let ye=null;const Ze=()=>{ye&&clearTimeout(ye),ye=setTimeout(()=>{q(),ye=null},500)},qe=i=>{var t,d,s,l,o,a,r,m,u,f;if(z.value=[],$.value=[],ce.value=[],ae.value=[],B.value="",b.value=i,console.log("11111",b.value),b.value.forEach((g,v)=>{z.value.push(g.id),$.value.push(g.entrust_id)}),b.value.every(g=>{var v;return g.roster_id===((v=b.value[0])==null?void 0:v.roster_id)}))P.value=(t=b.value[0])==null?void 0:t.roster_id,P.value!==0&&P.value&&(ie.value=(d=b.value[0])==null?void 0:d.reservation_date,mt(Ue(),(s=b.value[0])==null?void 0:s.reservation_date)&&((l=b.value[0])!=null&&l.reservation_date)?Z.value=Se((o=b.value[0])==null?void 0:o.reservation_date):Z.value=Se(Ue()),B.value=(r=(a=b.value[0])==null?void 0:a.department_resources)==null?void 0:r.department_resources_name);else if(P.value=0,b.value.length>0){const g=(u=(m=b.value[0])==null?void 0:m.department_resources)==null?void 0:u.execute_department_id;if(g&&b.value.every(c=>{var E;return((E=c.department_resources)==null?void 0:E.execute_department_id)===g})){const c=(f=b.value[0].department_resources)==null?void 0:f.department_resources_name;c&&(B.value=c)}}fe.value.forEach(g=>{b.value.find(v=>v===g)||(ge.value="cancel")}),b.value.length==0&&(ge.value="add",fe.value=[]),console.log(ge.value),$.value.length>0&&F.value&&(ge.value==="add"&&b.value[0].list_status==0?oe.value?tt():q():Ze()),ue.value&&p.value.findIndex(v=>z.value.includes(v.id))+1===ue.value.idx&&(re.value=ue.value.html,J.value=!0,ue.value=null),pe.value&&p.value.findIndex(v=>z.value.includes(v.id))+1===pe.value.idx&&(he.value=pe.value.html,A.value=!0,pe.value=null),Ke()},Ke=()=>{var t,d;if(b.value.length===0){Ie.value=!0;return}const i=(d=(t=b.value[0])==null?void 0:t.department_resources)==null?void 0:d.execute_department_id;if(i==null){Ie.value=!0;return}const e=b.value.every(s=>{var l;return((l=s.department_resources)==null?void 0:l.execute_department_id)===i});Ie.value=!e},Qe=i=>b.value.findIndex(e=>e.id===i.id)>-1,Xe=({row:i,rowIndex:e})=>{if(i.tishi_msg!="")return"disabled-row";if(Qe(i))return"selected-row"},et=(i,e)=>i.tishi_msg=="";let ve=k([]);const we=(i,e)=>{let t=z.value;p.value=[],te.value=!0,bt({regnum:w.reg_num,entrustid:w.entrust_ids,episodeid:w.episode_id,appointment_type:w.appointment_type}).then(d=>{var s;if(te.value=!1,d.status){if(d.data.info.length>0){let l=d.data.info;if(O.value=l[0].maininfo,l.forEach((o,a)=>{var m,u;let r=o.maininfo;r.tishi_msg=o.msg,r.limosis=(m=o.iteminfo[0])==null?void 0:m.limosis,p.value.push(r),o.msg!=""&&o.msg!=null&&ve.value.push({msg:o.msg,item_name:(u=o.iteminfo[0])==null?void 0:u.item_name})}),t.length>0&&!e)t.forEach((o,a)=>{p.value.forEach((r,m)=>{o==r.id&&U.value.toggleRowSelection(p.value[m],!0)})});else{for(let o=0;o{var m;r.id!==p.value[o].id&&r.list_status===0&&r.tishi_msg===""&&((m=r.department_resources)==null?void 0:m.department_resources_name)===a&&U.value.toggleRowSelection(r,!0)}),p.value[o].roster_id!=null&&(P.value=p.value[o].roster_id,B.value=a);break}if(z.value.length===0){const o=p.value.find(a=>a.tishi_msg==="");o&&(F.value=!1,e&&t.length>0?t.forEach(a=>{const r=p.value.find(m=>m.id===a);r&&U.value.toggleRowSelection(r,!0)}):U.value.toggleRowSelection(o,!0),F.value=!0)}}Ne.value&&(Ne.value=!1,ve.value.length>0&&(console.log("22222222222222",ve.value),Q.value=!0)),be.value=JSON.parse(JSON.stringify(p.value)),i&&i()}}else Y.error(d.msg)})},tt=()=>{let i=[],e=b.value.length;if(b.value[e-1].list_status!=0)return!1;p.value.forEach((t,d)=>{t.list_status==0&&t.tishi_msg==""&&(t.id==b.value[e-1].id?i.push({name:t.entrust,rowid:d,first:1}):i.push({name:t.entrust,rowid:d,first:0}))}),i.length>=2?(te.value=!0,ht({items:i}).then(t=>{te.value=!1,t.status?(i.forEach((s,l)=>{F.value=!1,U.value.toggleRowSelection(p.value[s.rowid],!1)}),t.data.rowids.forEach((s,l)=>{F.value=!1,U.value.toggleRowSelection(p.value[s],!0)}),fe.value=b.value,q()):Y.error(t.msg),F.value=!0})):(fe.value=b.value,q())};let Z=k([]);const q=()=>{if($.value.length==0)return Y.error("请选择检查项目"),!1;L.value=!0,yt({regnum:w.reg_num,entrustid:$.value,episodeid:w.episode_id,appointment_type:w.appointment_type,date:Z.value,scope:w.scope,do_user:w.do_user}).then(i=>{if(L.value=!1,ae.value=[],ce.value=[],i.status){let e=i.data.plan_list,t=i.data.zhanWeiCount,d=i.data.is_emergency;if(le.value=e,Ge.value=t,e.length>0){B.value==""&&(B.value=e[0].department_resources_name);const s=new Set,l=new Set;e.forEach(r=>{if(r.department_resources_name==B.value){const m=`${r.begin_time.substring(0,5)}-${r.end_time.substring(0,5)}`;s.add(m)}l.add(r.department_resources_name)}),ce.value=l,Array.from(s).sort().forEach(r=>{const m={time_range:r};Z.value.forEach(u=>{const f=e.find(v=>`${v.begin_time.substring(0,5)}-${v.end_time.substring(0,5)}`===r&&v.date===u&&v.department_resources_name==B.value);let g=!1;f?(f.plan_enable===!0&&(g=!0),d===!0&&f.plan_enable===!0&&Ye.value==!0&&(g=!0),m[u]={use_count:`${f.used_count}/${f.count}`,id:f.id,enable:g}):m[u]={use_count:"0/0",id:null,enable:g}}),ae.value.push(m)}),P.value=0;const a=Oe();if(a.length>0)G.value=a,P.value=a[0];else{G.value=[];const r=e.find(m=>m.department_resources_name==B.value&&m.plan_enable===!0);r&&(P.value=r.id)}if(!Be.value){Be.value=!0;const r=p.value.filter(m=>m.list_status===0);if(r.length>0){const m=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||""}});me({type:"optimal_time",regnum:w.reg_num,entrustid:$.value,episodeid:w.episode_id,appointment_type:w.appointment_type,items:m,scope:w.scope,do_user:w.do_user}).then(u=>{if(u.status){u.data.forEach(n=>{const _=p.value.find(S=>S.id===n.id);_&&(_.department_resources||(_.department_resources={}),_.department_resources.department_resources_name=n.department_resources_name,_.reservation_date=n.date,_.period_begin_time=n.begin_time,_.period_end_time=n.end_time,_.temp_plan_id=n.plan_id)});const f={};u.data.forEach(n=>{var S,N;const _=n.department_resources_name;f[_]||(f[_]={items:[],timeSlots:new Set,dates:new Set}),f[_].items.push(n),f[_].timeSlots.add(((S=n.begin_time)==null?void 0:S.substring(0,5))+"-"+((N=n.end_time)==null?void 0:N.substring(0,5))),f[_].dates.add(n.date)});const g=[];for(const[n,_]of Object.entries(f))(_.timeSlots.size>1||_.dates.size>1)&&_.items.forEach(S=>{var _e,I,W;const N=p.value.findIndex(K=>K.id===S.id);g.push({idx:N!==-1?N+1:"",room:S.department_resources_name,date:S.date,timeSlot:((_e=S.begin_time)==null?void 0:_e.substring(0,5))+"-"+((I=S.end_time)==null?void 0:I.substring(0,5)),entrust:((W=p.value.find(K=>K.id===S.id))==null?void 0:W.entrust)||""})});if(g.length>0){let n='';n+='';let _="",S="#f5f5f5";g.sort((I,W)=>I.idx-W.idx).forEach(I=>{I.timeSlot!==_&&(S=S==="#fff"?"#d5dce6":"#fff",_=I.timeSlot),n+='"}),n+="
序号项目名称检查室日期时间段
'+I.idx+''+I.entrust+''+I.room+''+I.date+''+I.timeSlot+"
";const N=Math.min(...g.map(I=>I.idx));p.value.findIndex(I=>z.value.includes(I.id))+1===N?(re.value=n,J.value=!0):ue.value={html:n,idx:N}}const v=new Set(u.data.map(n=>n.id)),c=m.filter(n=>!v.has(n.id));if(c.length>0){let n='';n+='';let _=1;u.data.forEach(I=>{var K,ke,$e;const W=((K=p.value.find(ct=>ct.id===I.id))==null?void 0:K.entrust)||"";n+=''}),c.forEach(I=>{var K;const W=((K=p.value.find(ke=>ke.id===I.id))==null?void 0:K.entrust)||"";n+=''}),n+="
序号项目名称排班资源日期时间段结果
'+_+++''+W+''+I.department_resources_name+''+I.date+''+((ke=I.begin_time)==null?void 0:ke.substring(0,5))+"-"+(($e=I.end_time)==null?void 0:$e.substring(0,5))+'✅ 成功匹配
'+_+++''+W+'❌ 未找到合适号源
";const S=c.map(I=>p.value.findIndex(W=>W.id===I.id)+1).filter(I=>I>0),N=Math.min(...S);p.value.findIndex(I=>z.value.includes(I.id))+1===N?(he.value=n,A.value=!0):pe.value={html:n,idx:N}}const E=Oe();E.length>0&&(G.value=E,P.value=E[0])}})}}}}else Y.error(i.msg)})},dt=i=>{B.value=i,P.value=0,G.value=[],q()},Oe=()=>{const i=[];for(const e of p.value)if(z.value.includes(e.id)&&e.list_status===0&&e.temp_plan_id){const t=le.value.find(d=>d.id===e.temp_plan_id&&d.department_resources_name===B.value);t&&!i.includes(t.id)&&i.push(t.id)}for(const e of p.value)if(z.value.includes(e.id)&&e.list_status===1&&e.roster_id){const t=le.value.find(d=>d.id===e.roster_id&&d.department_resources_name===B.value);t&&!i.includes(t.id)&&i.push(t.id)}return i},nt=i=>{if(console.log(i),i==null)return;const e=le.value.find(t=>t.id===i);e&&(P.value=i,G.value=[i],lt(),b.value.forEach(t=>{const d=p.value.find(s=>s.id===t.id);d&&(d.department_resources||(d.department_resources={}),d.department_resources.department_resources_name=e.department_resources_name,d.reservation_date=e.date,d.period_begin_time=e.begin_time,d.period_end_time=e.end_time,d.temp_plan_id=i)}))},st=()=>{if($.value.length===0){Y.error("请选择检查项目");return}L.value=!0,b.value.forEach(t=>{const d=be.value.find(l=>l.id===t.id);if(!d)return;const s=p.value.find(l=>l.id===t.id);s&&(s.department_resources=d.department_resources,s.reservation_date=d.reservation_date,s.period_begin_time=d.period_begin_time,s.period_end_time=d.period_end_time,s.temp_plan_id=void 0)});const i=b.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=p.value.filter(t=>!z.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"optimal_time",regnum:w.reg_num,entrustid:$.value,episodeid:w.episode_id,appointment_type:w.appointment_type,items:i,occupied_plan_ids:e,scope:w.scope,do_user:w.do_user}).then(t=>{if(L.value=!1,t.status){t.data.forEach(a=>{const r=p.value.find(m=>m.id===a.id);r&&(r.department_resources||(r.department_resources={}),r.department_resources.department_resources_name=a.department_resources_name,r.reservation_date=a.date,r.period_begin_time=a.begin_time,r.period_end_time=a.end_time,r.temp_plan_id=a.plan_id)});const d={};t.data.forEach(a=>{var m,u;const r=a.department_resources_name;d[r]||(d[r]={items:[],timeSlots:new Set,dates:new Set}),d[r].items.push(a),d[r].timeSlots.add(((m=a.begin_time)==null?void 0:m.substring(0,5))+"-"+((u=a.end_time)==null?void 0:u.substring(0,5))),d[r].dates.add(a.date)});const s=[];for(const[a,r]of Object.entries(d))(r.timeSlots.size>1||r.dates.size>1)&&r.items.forEach(m=>{var f,g,v;const u=p.value.findIndex(c=>c.id===m.id);s.push({idx:u!==-1?u+1:"",room:m.department_resources_name,date:m.date,timeSlot:((f=m.begin_time)==null?void 0:f.substring(0,5))+"-"+((g=m.end_time)==null?void 0:g.substring(0,5)),entrust:((v=p.value.find(c=>c.id===m.id))==null?void 0:v.entrust)||""})});if(s.length>0){let a='';a+='';let r="",m="#f5f5f5";s.sort((u,f)=>u.idx-f.idx).forEach(u=>{u.timeSlot!==r&&(m=m==="#fff"?"#d5dce6":"#fff",r=u.timeSlot),a+='"}),a+="
序号项目名称检查室日期时间段
'+u.idx+''+u.entrust+''+u.room+''+u.date+''+u.timeSlot+"
",re.value=a,J.value=!0}const l=new Set(t.data.map(a=>a.id)),o=i.filter(a=>!l.has(a.id));if(o.length>0){let a='';a+='';let r=1;t.data.forEach(m=>{var f,g,v;const u=((f=p.value.find(c=>c.id===m.id))==null?void 0:f.entrust)||"";a+=''}),o.forEach(m=>{var f;const u=((f=p.value.find(g=>g.id===m.id))==null?void 0:f.entrust)||"";a+=''}),a+="
序号项目名称排班资源日期时间段结果
'+r+++''+u+''+m.department_resources_name+''+m.date+''+((g=m.begin_time)==null?void 0:g.substring(0,5))+"-"+((v=m.end_time)==null?void 0:v.substring(0,5))+'✅ 成功匹配
'+r+++''+u+'❌ 未找到合适号源
",he.value=a,A.value=!0}else t.data.length===0&&se.confirm("所有项目均未匹配到合适号源,请重新选择号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1});t.data.length>0&&(B.value=t.data[0].department_resources_name,G.value=t.data.map(a=>a.plan_id),P.value=t.data[0].plan_id)}else Y.error(t.msg)})},at=()=>{if($.value.length===0){Y.error("请选择检查项目");return}L.value=!0,b.value.forEach(t=>{const d=be.value.find(l=>l.id===t.id);if(!d)return;const s=p.value.find(l=>l.id===t.id);s&&(s.department_resources=d.department_resources,s.reservation_date=d.reservation_date,s.period_begin_time=d.period_begin_time,s.period_end_time=d.period_end_time,s.temp_plan_id=void 0)});const i=b.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=p.value.filter(t=>!z.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"full_day",regnum:w.reg_num,entrustid:$.value,episodeid:w.episode_id,appointment_type:w.appointment_type,items:i,occupied_plan_ids:e,scope:w.scope,do_user:w.do_user}).then(t=>{if(L.value=!1,t.status)if(t.data.forEach(d=>{const s=p.value.find(l=>l.id===d.id);s&&(s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=d.department_resources_name,s.reservation_date=d.date,s.period_begin_time=d.begin_time,s.period_end_time=d.end_time,s.temp_plan_id=d.plan_id)}),t.data.length>0){const d={};t.data.forEach(l=>{var a,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(((a=l.begin_time)==null?void 0:a.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5))),d[o].dates.add(l.date)});const s=[];for(const[l,o]of Object.entries(d))(o.timeSlots.size>1||o.dates.size>1)&&o.items.forEach(a=>{var m,u,f;const r=p.value.findIndex(g=>g.id===a.id);s.push({idx:r!==-1?r+1:"",room:a.department_resources_name,date:a.date,timeSlot:((m=a.begin_time)==null?void 0:m.substring(0,5))+"-"+((u=a.end_time)==null?void 0:u.substring(0,5)),entrust:((f=p.value.find(g=>g.id===a.id))==null?void 0:f.entrust)||""})});if(s.length>0){let l='';l+='';let o="",a="#f5f5f5";s.sort((r,m)=>r.idx-m.idx).forEach(r=>{r.timeSlot!==o&&(a=a==="#fff"?"#d5dce6":"#fff",o=r.timeSlot),l+='"}),l+="
序号项目名称检查室日期时间段
'+r.idx+''+r.entrust+''+r.room+''+r.date+''+r.timeSlot+"
",re.value=l,J.value=!0}B.value=t.data[0].department_resources_name,G.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else se.confirm("未找到任何一天可满足所有检查项目的号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},it=()=>{if($.value.length===0){Y.error("请选择检查项目");return}L.value=!0,b.value.forEach(t=>{const d=be.value.find(l=>l.id===t.id);if(!d)return;const s=p.value.find(l=>l.id===t.id);s&&(s.department_resources=d.department_resources,s.reservation_date=d.reservation_date,s.period_begin_time=d.period_begin_time,s.period_end_time=d.period_end_time,s.temp_plan_id=void 0)});const i=b.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=p.value.filter(t=>!z.value.includes(t.id)&&t.list_status===0&&t.temp_plan_id).map(t=>t.temp_plan_id);me({type:"same_day_slot",regnum:w.reg_num,entrustid:$.value,episodeid:w.episode_id,appointment_type:w.appointment_type,items:i,occupied_plan_ids:e,scope:w.scope,do_user:w.do_user}).then(t=>{if(L.value=!1,t.status)if(t.data.length>0){const d={};t.data.forEach(l=>{var a,r;const o=l.department_resources_name;d[o]||(d[o]={timeSlots:new Set}),d[o].timeSlots.add(((a=l.begin_time)==null?void 0:a.substring(0,5))+"-"+((r=l.end_time)==null?void 0:r.substring(0,5)))});let s=!1;for(const l of Object.values(d))if(l.timeSlots.size>1){s=!0;break}if(s){se.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});return}t.data.forEach(l=>{const o=p.value.find(a=>a.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)}),B.value=t.data[0].department_resources_name,G.value=t.data.map(l=>l.plan_id),P.value=t.data[0].plan_id}else se.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else Y.error(t.msg)})},lt=()=>{L.value=!0;const i=le.value.find(s=>s.id===P.value);if(!i){L.value=!1;return}const e=i.date+" "+i.begin_time,t=i.date+" "+i.end_time,d=i.department_resources_name;vt({reg_num:w.reg_num,planid:P.value}).then(s=>{var o;L.value=!1;let l=[];if(!s.status&&((o=s.data)!=null&&o.conflicts)&&(l=l.concat(s.data.conflicts.filter(a=>a.room_name!==d))),p.value.forEach(a=>{var f,g,v,c;if(a.list_status!==0||!a.temp_plan_id||!a.reservation_date||((f=a.department_resources)==null?void 0:f.department_resources_name)===d)return;const m=a.reservation_date+" "+a.period_begin_time,u=a.reservation_date+" "+a.period_end_time;m<=t&&e<=u&&(l.some(n=>n.entrust===a.entrust&&n.date===a.reservation_date)||l.push({entrust:a.entrust,date:a.reservation_date,begin_time:(g=a.period_begin_time)==null?void 0:g.substring(0,5),end_time:(v=a.period_end_time)==null?void 0:v.substring(0,5),room_name:((c=a.department_resources)==null?void 0:c.department_resources_name)||""}))}),l.length>0){let a='';a+='',l.forEach((r,m)=>{a+='"}),a+="
序号项目名称检查室日期时间段
'+(m+1)+''+r.entrust+''+(r.room_name||"")+''+r.date+''+r.begin_time+"-"+r.end_time+"
",Pe.value=a,X.value=!0}})},Te=i=>{if($.length==0)return Y.error("请选择检查项目"),!1;if(P.value==0||P.value==""||P.value==null)return Y.error("请选择号源"),!1;let e="确定预约此时间吗?";i==2&&(e="确定改约至此时间吗?"),se.confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ot(i)}).catch(()=>{})},ot=async i=>{L.value=!0;const e={};p.value.forEach(u=>{var f;!z.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(z.value.forEach(u=>{const f=p.value.find(v=>v.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){L.value=!1,Y.error("存在未分配号源的项目,请先选择号源");return}const s=Object.keys(t);if(s.length===1){const u=Number(s[0]),f=t[u];Je({mainlistid:f,planid:u,appointment_type:w.appointment_type,dotype:i,do_user:w.do_user,is_emergency:i==111?1:null}).then(g=>{L.value=!1,g.status?(xe.value.forEach((v,c)=>{v.label=="开启申请单pdf"&&v.value}),we(()=>{var n;F.value=!1;const v=[...z.value],c=p.value.filter(_=>_.list_status===0&&_.tishi_msg==="");if(c.length===0)v.forEach(_=>{const S=p.value.find(N=>N.id===_);S&&U.value.toggleRowSelection(S,!0)});else{U.value.clearSelection();const _=new Set(c.map(S=>{var N;return(N=S.department_resources)==null?void 0:N.department_resources_name}).filter(Boolean));p.value.forEach(S=>{var N;S.tishi_msg===""&&(S.list_status===0||_.has((N=S.department_resources)==null?void 0:N.department_resources_name))&&U.value.toggleRowSelection(S,!0)})}if(F.value=!0,p.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(p.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(p.value.map(_=>({id:_.id,temp_plan_id:_.temp_plan_id,list_status:_.list_status})))))},2e3),b.value.length>0){const _=(n=b.value[0].department_resources)==null?void 0:n.department_resources_name;_&&(B.value=_)}if(b.value.some(_=>_.list_status===0)||q(),de.value.length>0){const _=b.value.filter(S=>S.list_status===1).map(S=>S.entrust_id);_.length>0&&Me(_)}},!0)):se.confirm(g.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})});return}const l=[],o=[],a=[];for(const u of s){const f=Number(u),g=t[u];try{const v=await Je({mainlistid:g,planid:f,appointment_type:w.appointment_type,dotype:i,do_user:w.do_user,is_emergency:i==111?1:null});v.status?g.forEach(c=>{var n;const E=p.value.find(_=>_.id===c);if(E){const _=(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:((n=E.department_resources)==null?void 0:n.department_resources_name)||"",date:E.reservation_date||"",time:_}),a.push(E.entrust_id)}}):g.forEach(c=>{const E=p.value.find(n=>n.id===c);E&&o.push({name:E.entrust,msg:v.msg})})}catch{g.forEach(c=>{const E=p.value.find(n=>n.id===c);E&&o.push({name:E.entrust,msg:"请求异常"})})}}L.value=!1;let r='';r+='';let m=1;l.forEach(u=>{r+=''}),o.forEach(u=>{r+='"}),r+="
序号项目名称检查室日期时间段结果
'+m+++''+u.name+''+u.room+''+u.date+''+u.time+'预约成功
'+m+++''+u.name+''+u.msg+"
",Re.value=r,ee.value=!0,l.length>0&&(we(()=>{var v;F.value=!1;const u=[...z.value],f=p.value.filter(c=>c.list_status===0&&c.tishi_msg==="");if(f.length===0)u.forEach(c=>{const E=p.value.find(n=>n.id===c);E&&U.value.toggleRowSelection(E,!0)});else{U.value.clearSelection();const c=new Set(f.map(E=>{var n;return(n=E.department_resources)==null?void 0:n.department_resources_name}).filter(Boolean));p.value.forEach(E=>{var n;E.tishi_msg===""&&(E.list_status===0||c.has((n=E.department_resources)==null?void 0:n.department_resources_name))&&U.value.toggleRowSelection(E,!0)})}if(F.value=!0,p.value.forEach(c=>{e[c.id]&&(console.log("回填 temp_plan_id:",c.id,e[c.id].temp_plan_id),c.temp_plan_id=e[c.id].temp_plan_id,c.department_resources||(c.department_resources={}),c.department_resources.department_resources_name=e[c.id].department_resources_name,c.reservation_date=e[c.id].reservation_date,c.period_begin_time=e[c.id].period_begin_time,c.period_end_time=e[c.id].period_end_time)}),console.log("回填后 entrustTableDate:",JSON.parse(JSON.stringify(p.value.map(c=>({id:c.id,temp_plan_id:c.temp_plan_id,list_status:c.list_status}))))),setTimeout(()=>{console.log("延迟检查 temp_plan_id:",JSON.parse(JSON.stringify(p.value.map(c=>({id:c.id,temp_plan_id:c.temp_plan_id,list_status:c.list_status})))))},2e3),b.value.length>0){const c=(v=b.value[0].department_resources)==null?void 0:v.department_resources_name;c&&(B.value=c)}b.value.some(c=>c.list_status===0)||q(),de.value.length>0&&Me(a)},!0),xe.value.forEach((u,f)=>{u.label=="开启申请单pdf"&&u.value}))},rt=()=>{se.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const i={};p.value.forEach(d=>{var s;!z.value.includes(d.id)&&d.temp_plan_id&&(i[d.id]={temp_plan_id:d.temp_plan_id,department_resources_name:(s=d.department_resources)==null?void 0:s.department_resources_name,reservation_date:d.reservation_date,period_begin_time:d.period_begin_time,period_end_time:d.period_end_time})});const e=b.value.map(d=>{var s;return{id:d.id,entrust_id:d.entrust_id,department_resources_name:((s=d.department_resources)==null?void 0:s.department_resources_name)||"",date:d.reservation_date||"",begin_time:d.period_begin_time||"",end_time:d.period_end_time||""}});te.value=!0;const t=b.value.map(d=>wt({MainListId:d.id,reg_num:d.reg_num,do_user:w.do_user}).then(s=>{s.status?Y.success("取消成功"):Y.error(s.msg)}).catch(s=>{Y.error("取消失败"),console.error(s)}));await Promise.all(t),te.value=!1,we(()=>{p.value.forEach(s=>{i[s.id]&&(s.temp_plan_id=i[s.id].temp_plan_id,s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=i[s.id].department_resources_name,s.reservation_date=i[s.id].reservation_date,s.period_begin_time=i[s.id].period_begin_time,s.period_end_time=i[s.id].period_end_time)});const d=e;if(d.length>0){const s=p.value.filter(l=>!d.find(o=>o.id===l.id)&&l.list_status===0&&l.temp_plan_id).map(l=>l.temp_plan_id);me({type:"optimal_time",regnum:w.reg_num,entrustid:d.map(l=>l.entrust_id),episodeid:w.episode_id,appointment_type:w.appointment_type,items:d,occupied_plan_ids:s,scope:w.scope,do_user:w.do_user}).then(l=>{l.status&&l.data.length>0&&(l.data.forEach(o=>{const a=p.value.find(r=>r.id===o.id);a&&(a.department_resources||(a.department_resources={}),a.department_resources.department_resources_name=o.department_resources_name,a.reservation_date=o.date,a.period_begin_time=o.begin_time,a.period_end_time=o.end_time,a.temp_plan_id=o.plan_id)}),B.value=l.data[0].department_resources_name,G.value=l.data.map(o=>o.plan_id),P.value=l.data[0].plan_id)})}},!0)})},ut=()=>{St({config_arrs:["开启申请单pdf","医生端打印"]}).then(i=>{i.status&&(xe.value=i.data.list,xe.value.forEach((e,t)=>{console.log(w.appointment_type),e.label=="医生端打印"&&e.value==="0"&&w.appointment_type==1&&(de.value=[])}))})},Me=i=>{const e=i||$.value,t=b.value.filter(l=>e.includes(l.entrust_id)&&l.list_status!=1);if(t.length>0){Y.error(t.map(l=>l.entrust).join("、")+" 不可打印,请重新选择");return}const s="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=group&"+e.map(l=>"OrderNoList[]="+l).join("&");fetch(s).then(l=>l.blob()).then(l=>{const o=URL.createObjectURL(l),a=document.createElement("iframe");a.style.display="none",a.src=o,a.onload=()=>{a.contentWindow.print(),URL.revokeObjectURL(o)},document.body.appendChild(a)})},pt=()=>{B.value="",Z.value=Se(ie.value),console.log(Z.value),q()};function _t(i){const e=i.getFullYear(),t=String(i.getMonth()+1).padStart(2,"0"),d=String(i.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}function Se(i=new Date,e=15){const t=new Date(i),d=[];if(isNaN(t.getTime()))throw new Error("无效的日期格式");for(let s=0;s15}function Ue(){const i=new Date,e=i.getFullYear(),t=String(i.getMonth()+1).padStart(2,"0"),d=String(i.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}let Ne=k(!1);return gt(()=>{Ne.value=!0,ut(),Z.value=Se(),we(()=>{b.value.some(e=>e.list_status===0)||q()})}),(i,e)=>{var E;const t=j("el-alert"),d=j("el-table-column"),s=j("el-tag"),l=j("el-table"),o=j("el-button"),a=j("el-checkbox"),r=j("el-checkbox-group"),m=j("el-tooltip"),u=j("el-date-picker"),f=j("el-empty"),g=j("el-dialog"),v=j("el-icon"),c=xt("loading");return D(),T("div",kt,[h(O)?(D(),T("div",Et,[C("div",Dt,[C("span",Ct,V(h(O).user_name),1),M("("+V(h(O).user_sex_label)+" "+V(h(O).age)+"岁)",1)]),C("div",It,[M(V(h(O).patient_type_label)+"号:",1),C("span",Tt,V(h(O).patient_type==0?(E=h(O).episodeid)==null?void 0:E.slice(-10):h(O).reg_num),1)]),C("div",Mt,[e[19]||(e[19]=M("电话:",-1)),C("span",Nt,V(h(O).user_phone),1)]),h(O).warddesc?(D(),T("div",Vt,[e[20]||(e[20]=M("病区:",-1)),C("span",Bt,V(h(O).warddesc),1)])):R("",!0),h(O).bedno?(D(),T("div",Pt,[e[21]||(e[21]=M("床号:",-1)),C("span",Rt,V(h(O).bedno),1)])):R("",!0),h(O).diagnosisName?(D(),T("div",zt,[e[22]||(e[22]=M("诊断:",-1)),C("span",Yt,V(h(O).diagnosisName),1)])):R("",!0)])):(D(),T("div",Ot," 获取患者信息失败 ")),We.value?(D(),ne(t,{key:2,type:"danger",closable:!1,"show-icon":"",style:{"margin-bottom":"8px"}},{title:y(()=>[...e[23]||(e[23]=[C("span",{style:{"font-weight":"700",color:"#f56c6c"}},"患者所有检查项目未预约至同一天,请注意是否需手动调整预约",-1)])]),_:1})):R("",!0),C("div",Lt,[He((D(),ne(l,{data:h(p),style:{width:"100%"},"row-key":"id",ref_key:"entrustTableRef",ref:U,"row-class-name":Xe,onSelectionChange:qe},{default:y(()=>[x(d,{type:"selection",width:"36",selectable:et}),x(d,{prop:"tishi_msg",width:"200"},{header:y(()=>[C("div",null,[C("div",null,"共 "+V(h(p).length)+" 项,已选 "+V(h(z).length)+" 项",1),ze.value>0?(D(),T("div",Ut,"同检查室项目 "+V(ze.value)+" 项",1)):R("",!0)])]),default:y(n=>[C("span",$t,V(n.$index+1),1),n.row.tishi_msg!=""?(D(),T("span",Ht,V(n.row.tishi_msg),1)):(D(),T("span",jt,"正常"))]),_:1}),x(d,{prop:"list_status",label:"预约状态",width:"80"},{default:y(n=>[n.row.list_status===0?(D(),ne(s,{key:0,class:"ml-2",type:"info"},{default:y(()=>[...e[24]||(e[24]=[M("未预约",-1)])]),_:1})):R("",!0),n.row.list_status===1?(D(),ne(s,{key:1,class:"ml-2",type:"success"},{default:y(()=>[...e[25]||(e[25]=[M("已预约",-1)])]),_:1})):R("",!0),n.row.list_status===2?(D(),ne(s,{key:2,class:"ml-2"},{default:y(()=>[...e[26]||(e[26]=[M("登记",-1)])]),_:1})):R("",!0),n.row.list_status===3?(D(),ne(s,{key:3,class:"ml-2",type:"warning"},{default:y(()=>[...e[27]||(e[27]=[M("完成",-1)])]),_:1})):R("",!0)]),_:1}),x(d,{prop:"entrust",label:"项目","show-overflow-tooltip":""}),x(d,{prop:"is_pay",label:"是否交费",width:"60",align:"center"},{default:y(n=>[n.row.is_pay==1?(D(),T("span",Jt,"是")):R("",!0),n.row.is_pay==0?(D(),T("span",Ft,"否")):R("",!0)]),_:1}),x(d,{prop:"his_is_emergency",label:"是否加急",width:"60",align:"center"},{default:y(n=>[n.row.his_is_emergency==1?(D(),T("span",Gt,"是")):R("",!0),n.row.his_is_emergency==0?(D(),T("span",At,"否")):R("",!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:y(n=>[n.row.period_begin_time&&n.row.period_end_time?(D(),T("span",Wt,V(n.row.period_begin_time.substring(0,5))+"~"+V(n.row.period_end_time.substring(0,5)),1)):R("",!0)]),_:1}),x(d,{prop:"limosis",label:"是否空腹",width:"60",align:"center"},{default:y(n=>[n.row.limosis==0?(D(),T("span",Zt,"否")):(D(),T("span",qt,"是"))]),_:1}),x(d,{prop:"reservation_department",label:"申请科室",width:"150"}),x(d,{prop:"",label:"医嘱时间",width:"200"},{default:y(n=>[M(V(n.row.entrust_date)+" "+V(n.row.entrust_time),1)]),_:1}),x(d,{prop:"docotr",label:"申请医生",width:"80"})]),_:1},8,["data"])),[[c,h(te)]])]),C("div",Kt,[C("div",Qt,[C("div",Xt,[(D(!0),T(Ee,null,De(h(ce),(n,_)=>(D(),T("div",{key:_,class:je({"ZhenShiButton zhenshiButton_active":h(B)===n,ZhenShiButton:h(B)!==n}),onClick:S=>dt(n)},V(n),11,ed))),128)),e[38]||(e[38]=C("div",{class:"shuxian"},null,-1)),Ye.value?(D(),ne(o,{key:0,class:"do_button",type:"danger",onClick:e[0]||(e[0]=n=>Te(111))},{default:y(()=>[...e[28]||(e[28]=[M("加急预约",-1)])]),_:1})):R("",!0),x(o,{class:"do_button",type:"success",onClick:e[1]||(e[1]=n=>Te(1))},{default:y(()=>[...e[29]||(e[29]=[M("预约",-1)])]),_:1}),x(o,{class:"do_button",type:"warning",onClick:e[2]||(e[2]=n=>Te(2))},{default:y(()=>[...e[30]||(e[30]=[M("更改预约时间",-1)])]),_:1}),x(o,{class:"do_button",type:"danger",onClick:e[3]||(e[3]=n=>rt())},{default:y(()=>[...e[31]||(e[31]=[M("取消预约",-1)])]),_:1}),x(o,{onClick:e[4]||(e[4]=n=>Me())},{default:y(()=>[...e[32]||(e[32]=[M("打印申请单",-1)])]),_:1}),C("div",td,[x(r,{modelValue:h(de),"onUpdate:modelValue":e[5]||(e[5]=n=>H(de)?de.value=n:de=n)},{default:y(()=>[x(a,{label:"1"},{default:y(()=>[...e[33]||(e[33]=[M("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"]),x(m,{placement:"top",content:hd,"popper-class":"tip-pre-line"},{default:y(()=>[x(a,{modelValue:h(oe),"onUpdate:modelValue":e[6]||(e[6]=n=>H(oe)?oe.value=n:oe=n)},{default:y(()=>[...e[34]||(e[34]=[M("自动选中能一起预约的检查项目",-1)])]),_:1},8,["modelValue"])]),_:1})]),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近能用的时间段号源,多个检查项目可能会跨天跨时间段","popper-class":"tip-pre-line"},{default:y(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{"margin-left":"20px",width:"120px"},onClick:st},{default:y(()=>[...e[35]||(e[35]=[M("推荐最近时间号源",-1)])]),_:1})]),_:1}),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天完成检查的号源","popper-class":"tip-pre-line"},{default:y(()=>[x(o,{class:"do_button_recommend",type:"primary",style:{width:"120px"},onClick:at},{default:y(()=>[...e[36]||(e[36]=[M("推荐同一天号源",-1)])]),_:1})]),_:1}),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天同一时间段完成检查的号源","popper-class":"tip-pre-line"},{default:y(()=>[x(o,{class:"do_button_recommend",type:"primary",onClick:it},{default:y(()=>[...e[37]||(e[37]=[M("推荐同一天同一时间段号源",-1)])]),_:1})]),_:1})]),C("div",null,[x(u,{modelValue:h(ie),"onUpdate:modelValue":e[7]||(e[7]=n=>H(ie)?ie.value=n:ie=n),type:"date",placeholder:"跳转日期",onChange:e[8]||(e[8]=n=>pt())},null,8,["modelValue"])])]),He((D(),T("div",dd,[C("table",nd,[h(b).length>0?(D(),T("tr",sd,[e[39]||(e[39]=C("td",{style:{width:"120px"}},null,-1)),(D(!0),T(Ee,null,De(h(Z),(n,_)=>(D(),T("td",ad,V(n.substring(5,10))+" "+V(Ae(n)),1))),256))])):R("",!0),h(Z).length>0&&h(ae).length>0?(D(!0),T(Ee,{key:1},De(h(ae),(n,_)=>(D(),T("tr",{key:_,class:"table_plan_row"},[(D(!0),T(Ee,null,De(n,(S,N)=>(D(),T("td",{key:N,class:je({planActive:h(G).includes(S.id)&&S.id!==0&&S.id,plandisable:!S.enable&&N!=="time_range"}),onClick:_e=>nt(S.id)},[N=="time_range"?(D(),T("span",ld,V(S),1)):R("",!0),C("span",null,V(S.use_count),1)],10,id))),128))]))),128)):R("",!0)]),h(b).length==0?(D(),T("div",od,[x(f,{description:"请选择项目"})])):R("",!0),h(b).length>0&&h(ae).length==0?(D(),T("div",rd,[x(f,{description:"暂无号源"})])):R("",!0)])),[[c,h(L)]])]),x(g,{modelValue:h(Q),"onUpdate:modelValue":e[10]||(e[10]=n=>H(Q)?Q.value=n:Q=n),title:"提示",width:"500"},{footer:y(()=>[C("div",ud,[x(o,{type:"primary",onClick:e[9]||(e[9]=n=>H(Q)?Q.value=!1:Q=!1)},{default:y(()=>[...e[40]||(e[40]=[M(" 确定 ",-1)])]),_:1})])]),default:y(()=>[x(l,{data:h(ve),style:{width:"100%"},"row-key":"id"},{default:y(()=>[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]=n=>H(J)?J.value=n:J=n),title:"提示",width:"800"},{footer:y(()=>[x(o,{type:"primary",onClick:e[11]||(e[11]=n=>H(J)?J.value=!1:J=!1)},{default:y(()=>[...e[42]||(e[42]=[M("确定",-1)])]),_:1})]),default:y(()=>[C("div",pd,[x(v,{class:"el-icon-warning",style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:y(()=>[x(h(Ce))]),_:1}),C("div",null,[e[41]||(e[41]=C("p",{style:{margin:"0 0 12px 0","font-weight":"700"}},"最近可用的同一时间段号源数量不足,无法把当前全部检查项目预约在同一时间段,系统已经自动拆分。",-1)),C("div",{innerHTML:h(re)},null,8,_d)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(X),"onUpdate:modelValue":e[14]||(e[14]=n=>H(X)?X.value=n:X=n),title:"时段冲突",width:"800"},{footer:y(()=>[x(o,{type:"primary",onClick:e[13]||(e[13]=n=>H(X)?X.value=!1:X=!1)},{default:y(()=>[...e[44]||(e[44]=[M("确定",-1)])]),_:1})]),default:y(()=>[C("div",md,[x(v,{style:{color:"#F56C6C","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:y(()=>[x(h(Ce))]),_:1}),C("div",null,[e[43]||(e[43]=C("p",{style:{margin:"0 0 12px 0","font-weight":"700"}}," 以下项目与当前选择的时间段存在冲突,请确认是否继续预约: ",-1)),C("div",{innerHTML:h(Pe)},null,8,cd)])])]),_:1},8,["modelValue"]),x(g,{modelValue:h(ee),"onUpdate:modelValue":e[16]||(e[16]=n=>H(ee)?ee.value=n:ee=n),title:"预约结果",width:"800"},{footer:y(()=>[x(o,{type:"primary",onClick:e[15]||(e[15]=n=>H(ee)?ee.value=!1:ee=!1)},{default:y(()=>[...e[45]||(e[45]=[M("确定",-1)])]),_:1})]),default:y(()=>[C("div",fd,[x(v,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:y(()=>[x(h(Ce))]),_:1}),C("div",{innerHTML:h(Re)},null,8,gd)])]),_:1},8,["modelValue"]),x(g,{modelValue:h(A),"onUpdate:modelValue":e[18]||(e[18]=n=>H(A)?A.value=n:A=n),title:"预约推荐结果",width:"800"},{footer:y(()=>[x(o,{type:"primary",onClick:e[17]||(e[17]=n=>H(A)?A.value=!1:A=!1)},{default:y(()=>[...e[46]||(e[46]=[M("确定",-1)])]),_:1})]),default:y(()=>[C("div",xd,[x(v,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:y(()=>[x(h(Ce))]),_:1}),C("div",{innerHTML:h(he)},null,8,bd)])]),_:1},8,["modelValue"])])}}},wd=ft(yd,[["__scopeId","data-v-79c62221"]]);export{wd as Y}; diff --git a/Laravel/public/admin/assets/index-b8bae120.js b/Laravel/public/admin/assets/index-612fedfe.js similarity index 99% rename from Laravel/public/admin/assets/index-b8bae120.js rename to Laravel/public/admin/assets/index-612fedfe.js index e34a223..a253b94 100644 --- a/Laravel/public/admin/assets/index-b8bae120.js +++ b/Laravel/public/admin/assets/index-612fedfe.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=He(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=f,b&&(h=Z_(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"||He(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!He(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()})),He(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}(Cr);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;He(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}(Cr);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=We(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(){J2(v,"_"+n.get("target"))}),p&&h.on("click",function(){J2(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}(Cr);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}(Cr);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)&&!He(t.coord)&&He(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||!He(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}(Cr);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=We(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=We(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(He(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 Cb(e){return!isNaN(e)&&!isFinite(e)}function xN(e,t,n,r){var a=1-e,i=r.dimensions[e];return Cb(t[a])&&Cb(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;Cb(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):Cb(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");He(p)||(p=[p,p]),He(g)||(g=[g,g]),He(m)||(m=[m,m]),He(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=We(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=We(n.get("data"),Qt(pot,t,e,n));e&&(s=zn(s,Qt(got,e)));var l=fJ(!!e,r);return a.initData(We(s,function(u){return u[0]}),null,l),i.initData(We(s,function(u){return u[1]}),null,l),o.initData(We(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 Tb(e){return!isNaN(e)&&!isFinite(e)}function CN(e,t,n,r){var a=1-e;return Tb(t[a])&&Tb(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);Tb(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):Tb(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=We(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=We(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=$2(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)?$2(p.fill,1):"#000"}),ga(f,v),xr(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=We(e&&e.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Oe(Oe({},d),{name:u,ordinalMeta:null})});a=We(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=We(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"]),He(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}(Cr);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");!tb[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&&He(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=He,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||["<",">"],He(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 Mb=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):He(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",Wy(v[0],a)),this._dispatchHighDown("highlight",Wy(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=We(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(Mb.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}(Mb),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:Wy(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=We(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 Ab(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);Ab(e,i[0],a,r),Ab(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 Ib(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=We(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=We(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(kb(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 He(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}),He(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(He(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-04948ca7.js"),["./AutoLogin-04948ca7.js","./AutoLogin-7dee6c11.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/caslogin",name:"CasLogin",component:()=>ar(()=>import("./CasLogin-ae5f76c0.js"),[],import.meta.url),meta:{requiresAuth:!1}},{path:"/hislogin",name:"HisLogin",component:()=>ar(()=>import("./HisLogin-e984d71c.js"),["./HisLogin-e984d71c.js","./HisLogin-2d68b6ea.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/doctorappointment",name:"DoctorAppointment",component:()=>ar(()=>import("./DoctorYuYue-baec47d9.js"),["./DoctorYuYue-baec47d9.js","./YuYue202506-5be4eb25.js","./YuYue202506-96867674.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-a84b4c94.js"),["./SystemConfig-a84b4c94.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-e33ccac6.js"),["./MainList-e33ccac6.js","./YuYue202506-5be4eb25.js","./YuYue202506-96867674.css","./MainList-32a84508.css"],import.meta.url),meta:{title:"主工作列表"}},{path:"/yewu/mainListWithDept",name:"YewuMainListWithDept",component:()=>ar(()=>import("./MainListWithDept-fca20830.js"),["./MainListWithDept-fca20830.js","./YuYue202506-5be4eb25.js","./YuYue202506-96867674.css","./MainListWithDept-4369db48.css"],import.meta.url),meta:{title:"主工作列表(科室)"}},{path:"/yewu/CheckItemConfig",name:"YewuCheckItemConfig",component:()=>ar(()=>import("./CheckItemConfig-a986daf7.js"),["./CheckItemConfig-a986daf7.js","./CheckItemConfig-e77282ab.css"],import.meta.url),meta:{title:"检查项目设置"}},{path:"/yewu/deptCheckItemConfig",name:"YewuDeptCheckItemConfig",component:()=>ar(()=>import("./DeptCheckItemConfig-c8606032.js"),["./DeptCheckItemConfig-c8606032.js","./DeptCheckItemConfig-8f3a58b2.css"],import.meta.url),meta:{title:"检查项目管理"}},{path:"/yewu/deptDeviceConfig",name:"YewuDeptResourceConfig",component:()=>ar(()=>import("./DeptResourceConfig-9b50ddf5.js"),["./DeptResourceConfig-9b50ddf5.js","./DepartmentResourcesSave-aa6681b0.js","./DeptResourceConfig-5d6863d0.css"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/devicesConfig",name:"YewuDevicesConfig",component:()=>ar(()=>import("./DevicesConfig-cd316c87.js"),["./DevicesConfig-cd316c87.js","./DevicesConfig-cb91914b.css"],import.meta.url),meta:{title:"服务组设置"}},{path:"/yewu/departmentConfig",name:"YewuDepartmentConfig",component:()=>ar(()=>import("./DepartmentConfig-9bc7d6a2.js"),["./DepartmentConfig-9bc7d6a2.js","./DepartmentResourcesSave-aa6681b0.js","./DepartmentConfig-46f236fe.css"],import.meta.url),meta:{title:"科室管理"}},{path:"/yewu/departmentResources",name:"YewuDepartmentResources",component:()=>ar(()=>import("./DepartmentResources-cbc407ad.js"),["./DepartmentResources-cbc407ad.js","./DepartmentResourcesSave-aa6681b0.js"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/deviceCheckItemBind",name:"YewuDeviceCheckItemBind",component:()=>ar(()=>import("./DeviceCheckItemBind-152c18a0.js"),["./DeviceCheckItemBind-152c18a0.js","./DeviceCheckItemBind-c1dc67c4.css"],import.meta.url),meta:{title:"排班项目管理"}},{path:"/appointmentmngr/timeperiodmngr",name:"AppointmentMngrTimePeriodMngr",component:()=>ar(()=>import("./TimePeriodMngr-1da513f6.js"),[],import.meta.url),meta:{title:"时间段管理"}},{path:"/appointmentmngr/planmodel",name:"AppointmentMngrPlanModel",component:()=>ar(()=>import("./PlanModel-fe02eea6.js"),["./PlanModel-fe02eea6.js","./PlanModel-567f1307.css"],import.meta.url),meta:{title:"预约资源计划"}},{path:"/appointmentmngr/planlist",name:"AppointmentMngrPlanList",component:()=>ar(()=>import("./PlanList-04758f88.js"),["./PlanList-04758f88.js","./PlanList-58efd447.css"],import.meta.url),meta:{title:"预约资源明细"}},{path:"/appointmentmngr/planmodeladmin",name:"AppointmentMngrPlanModelAdmin",component:()=>ar(()=>import("./PlanModelAdmin-d2f13b19.js"),["./PlanModelAdmin-d2f13b19.js","./PlanModelAdmin-f76fb455.css"],import.meta.url),meta:{title:"号源计划管理"}},{path:"/appointmentmngr/planlistadmin",name:"AppointmentMngrPlanListAdmin",component:()=>ar(()=>import("./PlanListAdmin-5d69daaf.js"),["./PlanListAdmin-5d69daaf.js","./PlanListAdmin-0bae3808.css"],import.meta.url),meta:{title:"号源明细管理"}},{path:"/appointmentmngr/holidayMngr",name:"AppointmentMngrHolidayMngr",component:()=>ar(()=>import("./HolidayMngr-1ac9dc59.js"),["./HolidayMngr-1ac9dc59.js","./HolidayMngr-27e47c57.css"],import.meta.url),meta:{title:"节假日管理"}},{path:"/appointmentmngr/ratio",name:"AppointmentmngrRatio",component:()=>ar(()=>import("./RatioMngr-3ceeca1c.js"),["./RatioMngr-3ceeca1c.js","./RatioMngr-f72113b2.css"],import.meta.url),meta:{title:"各渠道比例设置"}},{path:"/yewu/inpatientwardconfig",name:"InpatientWardConfig",component:()=>ar(()=>import("./InpatientWardConfig-6873bcb9.js"),["./InpatientWardConfig-6873bcb9.js","./InpatientWardConfig-3498d829.css"],import.meta.url),meta:{title:"病区管理"}},{path:"/yewu/MainList_ZhuYuan",name:"MainList_ZhuYuan",component:()=>ar(()=>import("./MainList_ZhuYuan-d198a806.js"),["./MainList_ZhuYuan-d198a806.js","./MainList_ZhuYuan-7d4a4cf1.css"],import.meta.url),meta:{title:"主工作列表(住院)"}},{path:"/info/EntrustList",name:"EntrustList",component:()=>ar(()=>import("./EntrustList-631c3476.js"),[],import.meta.url),meta:{title:"医嘱信息列表"}},{path:"/info/PlanList",name:"InfoPlanList",component:()=>ar(()=>import("./PlanList-432a9fa0.js"),["./PlanList-432a9fa0.js","./PlanList-e85d2b91.css"],import.meta.url),meta:{title:"资源信息列表"}},{path:"/info/AppointmentTj",name:"InfoAppointmentTj",component:()=>ar(()=>import("./AppointmentTj-137c0f80.js"),["./AppointmentTj-137c0f80.js","./AppointmentTj-80d105dd.css"],import.meta.url),meta:{title:"预约统计"}},{path:"/info/MakeListTj",name:"InfoMakeListTj",component:()=>ar(()=>import("./MakeListTj-ce1c55cc.js"),["./MakeListTj-ce1c55cc.js","./MakeListTj-088f49c5.css"],import.meta.url),meta:{title:"开单统计"}},{path:"/info/PlanTj",name:"infoPlanTj",component:()=>ar(()=>import("./PlanTj-724956b9.js"),["./PlanTj-724956b9.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&&i.status?n():(_r.error((i==null?void 0:i.msg)||"权限验证失败"),n("/login"))}).catch(()=>{n("/login")})}});/*! 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{cct as $,pe as A,lct as B,K7e as C,$e as D,_r as E,Ue as F,U7e as G,Act as H,Glt as I,ict as J,lt as K,T7e as L,Yut as M,E2 as N,vut as O,sct as P,vct as Q,Jut as R,Nlt as S,pct as T,G7e as U,Xut as V,sut as W,qut as X,L as Y,z as Z,Fs as _,WW as a,put as a$,uct as a0,yct as a1,bct as a2,wct as a3,_ct as a4,Sct as a5,Olt as a6,Vlt as a7,Blt as a8,Xlt as a9,iut as aA,P7e as aB,gut as aC,uut as aD,lut as aE,cut as aF,dut as aG,yut as aH,Az as aI,fut as aJ,Zut as aK,jlt as aL,qlt as aM,Klt as aN,Ylt as aO,out as aP,_ut as aQ,but as aR,Cut as aS,Rut as aT,Tut as aU,Mut as aV,Lut as aW,kut as aX,wut as aY,xut as aZ,Iut as a_,da as aa,$lt as ab,Jlt as ac,Zlt as ad,Qut as ae,tct as af,ect as ag,Tct as ah,Mct as ai,act as aj,nct as ak,rct as al,Wlt as am,Qlt as an,eut as ao,Ult as ap,rut as aq,nut as ar,tut as as,hut as at,mut as au,zlt as av,Hlt as aw,Flt as ax,aut as ay,gU as az,xU as b,Ict as b0,ev as b1,et as b2,gme as b3,Ez as b4,kz as b5,Nut as b6,Vut as b7,But as b8,zut as b9,Cct as bA,kct as bB,Hut as ba,Wut as bb,jut as bc,Kut as bd,oct as be,Ect as bf,Out as bg,Aut as bh,Dut as bi,Eut as bj,Sut as bk,$ut as bl,Fut as bm,Gut as bn,Uut as bo,Lct as bp,Pct as bq,Dct as br,Put as bs,dct as bt,hct as bu,fct as bv,mct as bw,gct as bx,xct as by,IP as bz,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=He(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");!tb[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&&He(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=He,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||["<",">"],He(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 Mb=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):He(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",Wy(v[0],a)),this._dispatchHighDown("highlight",Wy(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=We(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(Mb.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}(Mb),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:Wy(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=We(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 Ab(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);Ab(e,i[0],a,r),Ab(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 Ib(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=We(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=We(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(kb(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 He(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}),He(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(He(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-1f9eb8f3.js"),["./AutoLogin-1f9eb8f3.js","./AutoLogin-7dee6c11.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/caslogin",name:"CasLogin",component:()=>ar(()=>import("./CasLogin-3ce7d4fe.js"),[],import.meta.url),meta:{requiresAuth:!1}},{path:"/hislogin",name:"HisLogin",component:()=>ar(()=>import("./HisLogin-45100a3a.js"),["./HisLogin-45100a3a.js","./HisLogin-2d68b6ea.css"],import.meta.url),meta:{requiresAuth:!1}},{path:"/doctorappointment",name:"DoctorAppointment",component:()=>ar(()=>import("./DoctorYuYue-11b61b07.js"),["./DoctorYuYue-11b61b07.js","./YuYue202506-e5e6b7e2.js","./YuYue202506-0ee802aa.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-38492ca7.js"),["./SystemConfig-38492ca7.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-d9d9907a.js"),["./MainList-d9d9907a.js","./YuYue202506-e5e6b7e2.js","./YuYue202506-0ee802aa.css","./MainList-1038223c.css"],import.meta.url),meta:{title:"主工作列表"}},{path:"/yewu/mainListWithDept",name:"YewuMainListWithDept",component:()=>ar(()=>import("./MainListWithDept-1d57f4a3.js"),["./MainListWithDept-1d57f4a3.js","./YuYue202506-e5e6b7e2.js","./YuYue202506-0ee802aa.css","./MainListWithDept-4369db48.css"],import.meta.url),meta:{title:"主工作列表(科室)"}},{path:"/yewu/CheckItemConfig",name:"YewuCheckItemConfig",component:()=>ar(()=>import("./CheckItemConfig-001154e0.js"),["./CheckItemConfig-001154e0.js","./CheckItemConfig-969d6535.css"],import.meta.url),meta:{title:"检查项目设置"}},{path:"/yewu/deptCheckItemConfig",name:"YewuDeptCheckItemConfig",component:()=>ar(()=>import("./DeptCheckItemConfig-d211bc94.js"),["./DeptCheckItemConfig-d211bc94.js","./DeptCheckItemConfig-9a72935b.css"],import.meta.url),meta:{title:"检查项目管理"}},{path:"/yewu/deptDeviceConfig",name:"YewuDeptResourceConfig",component:()=>ar(()=>import("./DeptResourceConfig-3e0db999.js"),["./DeptResourceConfig-3e0db999.js","./DepartmentResourcesSave-4f972dd5.js","./DeptResourceConfig-5d6863d0.css"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/devicesConfig",name:"YewuDevicesConfig",component:()=>ar(()=>import("./DevicesConfig-d233ee9c.js"),["./DevicesConfig-d233ee9c.js","./DevicesConfig-cb91914b.css"],import.meta.url),meta:{title:"服务组设置"}},{path:"/yewu/departmentConfig",name:"YewuDepartmentConfig",component:()=>ar(()=>import("./DepartmentConfig-f7592cdd.js"),["./DepartmentConfig-f7592cdd.js","./DepartmentResourcesSave-4f972dd5.js","./DepartmentConfig-46f236fe.css"],import.meta.url),meta:{title:"科室管理"}},{path:"/yewu/departmentResources",name:"YewuDepartmentResources",component:()=>ar(()=>import("./DepartmentResources-e772bcdc.js"),["./DepartmentResources-e772bcdc.js","./DepartmentResourcesSave-4f972dd5.js"],import.meta.url),meta:{title:"排班管理"}},{path:"/yewu/deviceCheckItemBind",name:"YewuDeviceCheckItemBind",component:()=>ar(()=>import("./DeviceCheckItemBind-f8d136ab.js"),["./DeviceCheckItemBind-f8d136ab.js","./DeviceCheckItemBind-c1dc67c4.css"],import.meta.url),meta:{title:"排班项目管理"}},{path:"/appointmentmngr/timeperiodmngr",name:"AppointmentMngrTimePeriodMngr",component:()=>ar(()=>import("./TimePeriodMngr-9c457f00.js"),[],import.meta.url),meta:{title:"时间段管理"}},{path:"/appointmentmngr/planmodel",name:"AppointmentMngrPlanModel",component:()=>ar(()=>import("./PlanModel-8f8b4b5d.js"),["./PlanModel-8f8b4b5d.js","./PlanModel-c7ae9cd7.css"],import.meta.url),meta:{title:"预约资源计划"}},{path:"/appointmentmngr/planlist",name:"AppointmentMngrPlanList",component:()=>ar(()=>import("./PlanList-d925a6cb.js"),["./PlanList-d925a6cb.js","./PlanList-75bd7e04.css"],import.meta.url),meta:{title:"预约资源明细"}},{path:"/appointmentmngr/planmodeladmin",name:"AppointmentMngrPlanModelAdmin",component:()=>ar(()=>import("./PlanModelAdmin-544f34be.js"),["./PlanModelAdmin-544f34be.js","./PlanModelAdmin-6e2edf94.css"],import.meta.url),meta:{title:"号源计划管理"}},{path:"/appointmentmngr/planlistadmin",name:"AppointmentMngrPlanListAdmin",component:()=>ar(()=>import("./PlanListAdmin-7c6cf53e.js"),["./PlanListAdmin-7c6cf53e.js","./PlanListAdmin-f396cfeb.css"],import.meta.url),meta:{title:"号源明细管理"}},{path:"/appointmentmngr/holidayMngr",name:"AppointmentMngrHolidayMngr",component:()=>ar(()=>import("./HolidayMngr-938c8a14.js"),["./HolidayMngr-938c8a14.js","./HolidayMngr-27e47c57.css"],import.meta.url),meta:{title:"节假日管理"}},{path:"/appointmentmngr/ratio",name:"AppointmentmngrRatio",component:()=>ar(()=>import("./RatioMngr-39263071.js"),["./RatioMngr-39263071.js","./RatioMngr-f72113b2.css"],import.meta.url),meta:{title:"各渠道比例设置"}},{path:"/yewu/inpatientwardconfig",name:"InpatientWardConfig",component:()=>ar(()=>import("./InpatientWardConfig-f8a03f04.js"),["./InpatientWardConfig-f8a03f04.js","./InpatientWardConfig-3498d829.css"],import.meta.url),meta:{title:"病区管理"}},{path:"/yewu/MainList_ZhuYuan",name:"MainList_ZhuYuan",component:()=>ar(()=>import("./MainList_ZhuYuan-d53128a9.js"),["./MainList_ZhuYuan-d53128a9.js","./MainList_ZhuYuan-5b090c49.css"],import.meta.url),meta:{title:"主工作列表(住院)"}},{path:"/info/EntrustList",name:"EntrustList",component:()=>ar(()=>import("./EntrustList-dbab71a1.js"),[],import.meta.url),meta:{title:"医嘱信息列表"}},{path:"/info/PlanList",name:"InfoPlanList",component:()=>ar(()=>import("./PlanList-78af4c26.js"),["./PlanList-78af4c26.js","./PlanList-e85d2b91.css"],import.meta.url),meta:{title:"资源信息列表"}},{path:"/info/AppointmentTj",name:"InfoAppointmentTj",component:()=>ar(()=>import("./AppointmentTj-88b70052.js"),["./AppointmentTj-88b70052.js","./AppointmentTj-80d105dd.css"],import.meta.url),meta:{title:"预约统计"}},{path:"/info/MakeListTj",name:"InfoMakeListTj",component:()=>ar(()=>import("./MakeListTj-f7dcd02a.js"),["./MakeListTj-f7dcd02a.js","./MakeListTj-088f49c5.css"],import.meta.url),meta:{title:"开单统计"}},{path:"/info/PlanTj",name:"infoPlanTj",component:()=>ar(()=>import("./PlanTj-c04feca0.js"),["./PlanTj-c04feca0.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&&i.status?n():(_r.error((i==null?void 0:i.msg)||"权限验证失败"),n("/login"))}).catch(()=>{n("/login")})}});/*! 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{cct as $,pe as A,lct as B,K7e as C,$e as D,_r as E,Ue as F,U7e as G,Act as H,Glt as I,ict as J,lt as K,T7e as L,Yut as M,E2 as N,vut as O,sct as P,vct as Q,Jut as R,Nlt as S,pct as T,G7e as U,Xut as V,sut as W,qut as X,L as Y,z as Z,Fs as _,WW as a,put as a$,uct as a0,yct as a1,bct as a2,wct as a3,_ct as a4,Sct as a5,Olt as a6,Vlt as a7,Blt as a8,Xlt as a9,iut as aA,P7e as aB,gut as aC,uut as aD,lut as aE,cut as aF,dut as aG,yut as aH,Az as aI,fut as aJ,Zut as aK,jlt as aL,qlt as aM,Klt as aN,Ylt as aO,out as aP,_ut as aQ,but as aR,Cut as aS,Rut as aT,Tut as aU,Mut as aV,Lut as aW,kut as aX,wut as aY,xut as aZ,Iut as a_,da as aa,$lt as ab,Jlt as ac,Zlt as ad,Qut as ae,tct as af,ect as ag,Tct as ah,Mct as ai,act as aj,nct as ak,rct as al,Wlt as am,Qlt as an,eut as ao,Ult as ap,rut as aq,nut as ar,tut as as,hut as at,mut as au,zlt as av,Hlt as aw,Flt as ax,aut as ay,gU as az,xU as b,Ict as b0,ev as b1,et as b2,gme as b3,Ez as b4,kz as b5,Nut as b6,Vut as b7,But as b8,zut as b9,Cct as bA,kct as bB,Hut as ba,Wut as bb,jut as bc,Kut as bd,oct as be,Ect as bf,Out as bg,Aut as bh,Dut as bi,Eut as bj,Sut as bk,$ut as bl,Fut as bm,Gut as bn,Uut as bo,Lct as bp,Pct as bq,Dct as br,Put as bs,dct as bt,hct as bu,fct as bv,mct as bw,gct as bx,xct as by,IP as bz,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/index.html b/Laravel/public/admin/index.html index 13a3a1a..e9e4727 100644 --- a/Laravel/public/admin/index.html +++ b/Laravel/public/admin/index.html @@ -5,7 +5,7 @@ 秦皇岛市中医医院-医技预约 - +