import{_ as gt,Y as Be,o as xt,r as J,c as bt,d as D,e as M,i as h,k as C,v as V,q as N,x as P,j as se,w as v,h as je,f as x,F as De,t as Ce,Z as Je,l as H,y as Ie,g as k,$ as ht,E as L,a0 as vt,a1 as yt,a2 as me,N as ae,a3 as wt,a4 as Fe,a5 as St,a6 as kt}from"./index-fe49e5b0.js";const Et={class:"YuYue202506"},Dt={key:0,class:"patientInfo"},Ct={class:"item"},It={class:"name"},Tt={class:"item"},Mt={class:"value"},Nt={class:"item"},Vt={class:"value"},Bt={key:0,class:"item"},Rt={class:"value"},Pt={key:1,class:"item"},zt={class:"value"},Yt={key:2,class:"item"},Ot={class:"value"},Lt={key:1},Ut={class:"entrustList"},$t={key:0,style:{"font-size":"12px",color:"#909399"}},Ht={style:{"margin-right":"4px",color:"#999"}},jt={key:0,class:"errMsg"},Jt={key:1},Ft={key:0},Gt={key:1},At={key:0,style:{color:"orangered"}},Wt={key:1},Zt={key:0},qt={key:0},Kt={key:1},Qt={class:"planInfo"},Xt={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-top":"8px","margin-bottom":"8px"}},ed={style:{display:"flex","align-items":"center"}},td=["onClick"],dd={style:{display:"flex","flex-direction":"column","margin-left":"12px"}},nd={style:{border:"1px solid #efefef"}},sd={class:"planTable"},ad={key:0,style:{"background-color":"#f1f1f1"}},id={style:{"font-weight":"700"}},ld=["onClick"],od={key:0},rd={key:0},ud={key:1,style:{"background-color":"#fff"}},pd={class:"dialog-footer"},_d={style:{display:"flex","align-items":"flex-start",gap:"12px"}},md=["innerHTML"],cd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},fd=["innerHTML"],gd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},xd=["innerHTML"],bd={style:{display:"flex","align-items":"flex-start",gap:"12px"}},hd=["innerHTML"],vd=`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(Ge){const S=Ge;let U=k(null),Y=k(null),_=k([]),ie=k([]),X=k(!1),O=k(!1),ne=k(["1"]),Te=k(!0),ce=k([]),B=k(""),R=k(0),z=k([]),$=k([]),b=k([]),G=k(!0),fe=k([]),A=k([]),ge=k("add"),le=k(""),xe=k([]),be=k([]),oe=k([]),Ae=k(0),Re=k(!1),re=k(!0),ee=k(!1),F=k(!1),ue=k(""),pe=k(null),_e=k(null),te=k(!1),Pe=k(""),de=k(!1),ze=k(""),W=k(!1),he=k("");const We=a=>{let e=["周日","周一","周二","周三","周四","周五","周六"];const d=new Date(a).getDay();return e[d]},Ye=Be(()=>{const a=b.value.map(d=>{var s;return(s=d.department_resources)==null?void 0:s.department_resources_name}).filter(Boolean),e=[...new Set(a)];if(e.length!==1)return 0;const t=e[0];return _.value.filter(d=>{var s;return((s=d.department_resources)==null?void 0:s.department_resources_name)===t}).length}),Oe=Be(()=>S.special_privileges.includes("emergency")),Ze=Be(()=>{const a=_.value.filter(t=>!!(t.list_status===1&&t.reservation_date||t.list_status===0&&t.temp_plan_id&&t.reservation_date));return a.length<2?!1:new Set(a.map(t=>t.reservation_date)).size>1});let ve=null;const qe=()=>{ve&&clearTimeout(ve),ve=setTimeout(()=>{K(),ve=null},500)},Ke=a=>{var t,d,s,i,l,n,r,m,p,g;if(z.value=[],$.value=[],ce.value=[],ie.value=[],B.value="",b.value=a,console.log("11111",b.value),b.value.forEach((f,y)=>{z.value.push(f.id),$.value.push(f.entrust_id)}),b.value.every(f=>{var y;return f.roster_id===((y=b.value[0])==null?void 0:y.roster_id)}))R.value=(t=b.value[0])==null?void 0:t.roster_id,R.value!==0&&R.value&&(le.value=(d=b.value[0])==null?void 0:d.reservation_date,ct($e(),(s=b.value[0])==null?void 0:s.reservation_date)&&((i=b.value[0])!=null&&i.reservation_date)?q.value=Se((l=b.value[0])==null?void 0:l.reservation_date):q.value=Se($e()),B.value=(r=(n=b.value[0])==null?void 0:n.department_resources)==null?void 0:r.department_resources_name);else if(R.value=0,b.value.length>0){const f=(p=(m=b.value[0])==null?void 0:m.department_resources)==null?void 0:p.execute_department_id;if(f&&b.value.every(c=>{var E;return((E=c.department_resources)==null?void 0:E.execute_department_id)===f})){const c=(g=b.value[0].department_resources)==null?void 0:g.department_resources_name;c&&(B.value=c)}}fe.value.forEach(f=>{b.value.find(y=>y===f)||(ge.value="cancel")}),b.value.length==0&&(ge.value="add",fe.value=[]),console.log(ge.value),$.value.length>0&&G.value&&(ge.value==="add"&&b.value[0].list_status==0?re.value?dt():K():qe()),pe.value&&_.value.findIndex(y=>z.value.includes(y.id))+1===pe.value.idx&&(ue.value=pe.value.html,F.value=!0,pe.value=null),_e.value&&_.value.findIndex(y=>z.value.includes(y.id))+1===_e.value.idx&&(he.value=_e.value.html,W.value=!0,_e.value=null),Qe()},Qe=()=>{var t,d;if(b.value.length===0){Te.value=!0;return}const a=(d=(t=b.value[0])==null?void 0:t.department_resources)==null?void 0:d.execute_department_id;if(a==null){Te.value=!0;return}const e=b.value.every(s=>{var i;return((i=s.department_resources)==null?void 0:i.execute_department_id)===a});Te.value=!e},Xe=a=>b.value.findIndex(e=>e.id===a.id)>-1,et=({row:a,rowIndex:e})=>{if(a.tishi_msg!="")return"disabled-row";if(Xe(a))return"selected-row"},tt=(a,e)=>a.tishi_msg=="";let ye=k([]);const we=(a,e)=>{let t=z.value;_.value=[],X.value=!0,ht({regnum:S.reg_num,entrustid:S.entrust_ids,episodeid:S.episode_id,appointment_type:S.appointment_type}).then(d=>{var s;if(X.value=!1,d.status){if(d.data.info.length>0){let i=d.data.info;if(Y.value=i[0].maininfo,i.forEach((l,n)=>{var m,p;let r=l.maininfo;r.tishi_msg=l.msg,r.limosis=(m=l.iteminfo[0])==null?void 0:m.limosis,_.value.push(r),l.msg!=""&&l.msg!=null&&ye.value.push({msg:l.msg,item_name:(p=l.iteminfo[0])==null?void 0:p.item_name})}),t.length>0&&!e)t.forEach((l,n)=>{_.value.forEach((r,m)=>{l==r.id&&U.value.toggleRowSelection(_.value[m],!0)})});else{for(let l=0;l<_.value.length;l++)if(_.value[l].tishi_msg==""&&_.value[l].list_status===0){U.value.toggleRowSelection(_.value[l],!0);const n=(s=_.value[l].department_resources)==null?void 0:s.department_resources_name;n&&_.value.forEach(r=>{var m;r.id!==_.value[l].id&&r.list_status===0&&r.tishi_msg===""&&((m=r.department_resources)==null?void 0:m.department_resources_name)===n&&U.value.toggleRowSelection(r,!0)}),_.value[l].roster_id!=null&&(R.value=_.value[l].roster_id,B.value=n);break}if(z.value.length===0){const l=_.value.find(n=>n.tishi_msg==="");l&&(G.value=!1,e&&t.length>0?t.forEach(n=>{const r=_.value.find(m=>m.id===n);r&&U.value.toggleRowSelection(r,!0)}):U.value.toggleRowSelection(l,!0),G.value=!0)}}Ve.value&&(Ve.value=!1,ye.value.length>0&&(console.log("22222222222222",ye.value),ee.value=!0)),be.value=JSON.parse(JSON.stringify(_.value)),a&&a()}}else L.error(d.msg)})},dt=()=>{let a=[],e=b.value.length;if(b.value[e-1].list_status!=0)return!1;_.value.forEach((t,d)=>{t.list_status==0&&t.tishi_msg==""&&(t.id==b.value[e-1].id?a.push({name:t.entrust,rowid:d,first:1}):a.push({name:t.entrust,rowid:d,first:0}))}),a.length>=2?(X.value=!0,vt({items:a}).then(t=>{X.value=!1,t.status?(a.forEach((s,i)=>{G.value=!1,U.value.toggleRowSelection(_.value[s.rowid],!1)}),t.data.rowids.forEach((s,i)=>{G.value=!1,U.value.toggleRowSelection(_.value[s],!0)}),fe.value=b.value,K()):L.error(t.msg),G.value=!0})):(fe.value=b.value,K())};let q=k([]);const K=()=>{if($.value.length==0)return L.error("请选择检查项目"),!1;O.value=!0,yt({regnum:S.reg_num,entrustid:$.value,episodeid:S.episode_id,appointment_type:S.appointment_type,date:q.value,scope:S.scope,do_user:S.do_user}).then(a=>{if(O.value=!1,ie.value=[],ce.value=[],a.status){let e=a.data.plan_list,t=a.data.zhanWeiCount,d=a.data.is_emergency;if(oe.value=e,Ae.value=t,e.length>0){e.some(m=>m.department_resources_name===B.value)||(B.value=e[0].department_resources_name);const i=new Set,l=new Set;e.forEach(m=>{if(m.department_resources_name==B.value){const p=`${m.begin_time.substring(0,5)}-${m.end_time.substring(0,5)}`;i.add(p)}l.add(m.department_resources_name)}),ce.value=l,Array.from(i).sort().forEach(m=>{const p={time_range:m};q.value.forEach(g=>{const f=e.find(c=>`${c.begin_time.substring(0,5)}-${c.end_time.substring(0,5)}`===m&&c.date===g&&c.department_resources_name==B.value);let y=!1;f?(f.plan_enable===!0&&(y=!0),d===!0&&f.plan_enable===!0&&Oe.value==!0&&(y=!0),p[g]={use_count:`${f.used_count}/${f.count}`,id:f.id,enable:y}):p[g]={use_count:"0/0",id:null,enable:y}}),ie.value.push(p)}),R.value=0;const r=Le();if(r.length>0)A.value=r,R.value=r[0];else{A.value=[];const m=e.find(p=>p.department_resources_name==B.value&&p.plan_enable===!0);m&&(R.value=m.id)}if(!Re.value){Re.value=!0;const m=_.value.filter(p=>p.list_status===0);if(m.length>0){const p=m.map(g=>{var f;return{id:g.id,entrust_id:g.entrust_id,department_resources_name:((f=g.department_resources)==null?void 0:f.department_resources_name)||"",date:g.reservation_date||"",begin_time:g.period_begin_time||"",end_time:g.period_end_time||""}});me({type:"optimal_time",regnum:S.reg_num,entrustid:$.value,episodeid:S.episode_id,appointment_type:S.appointment_type,items:p,scope:S.scope,do_user:S.do_user}).then(g=>{if(g.status){g.data.forEach(u=>{const w=_.value.find(T=>T.id===u.id);w&&(w.department_resources||(w.department_resources={}),w.department_resources.department_resources_name=u.department_resources_name,w.reservation_date=u.date,w.period_begin_time=u.begin_time,w.period_end_time=u.end_time,w.temp_plan_id=u.plan_id)});const f={};g.data.forEach(u=>{var T,j;const w=u.department_resources_name;f[w]||(f[w]={items:[],timeSlots:new Set,dates:new Set}),f[w].items.push(u),f[w].timeSlots.add(((T=u.begin_time)==null?void 0:T.substring(0,5))+"-"+((j=u.end_time)==null?void 0:j.substring(0,5))),f[w].dates.add(u.date)});const y=[];for(const[u,w]of Object.entries(f))(w.timeSlots.size>1||w.dates.size>1)&&w.items.forEach(T=>{var ke,I,Z;const j=_.value.findIndex(Q=>Q.id===T.id);y.push({idx:j!==-1?j+1:"",room:T.department_resources_name,date:T.date,timeSlot:((ke=T.begin_time)==null?void 0:ke.substring(0,5))+"-"+((I=T.end_time)==null?void 0:I.substring(0,5)),entrust:((Z=_.value.find(Q=>Q.id===T.id))==null?void 0:Z.entrust)||""})});if(y.length>0){let u='';u+='';let w="",T="#f5f5f5";y.sort((I,Z)=>I.idx-Z.idx).forEach(I=>{I.timeSlot!==w&&(T=T==="#fff"?"#d5dce6":"#fff",w=I.timeSlot),u+='"}),u+="
序号项目名称检查室日期时间段
'+I.idx+''+I.entrust+''+I.room+''+I.date+''+I.timeSlot+"
";const j=Math.min(...y.map(I=>I.idx));_.value.findIndex(I=>z.value.includes(I.id))+1===j?(ue.value=u,F.value=!0):pe.value={html:u,idx:j}}const c=new Set(g.data.map(u=>u.id)),E=p.filter(u=>!c.has(u.id));if(E.length>0){let u='';u+='';let w=1;g.data.forEach(I=>{var Q,Ee,He;const Z=((Q=_.value.find(ft=>ft.id===I.id))==null?void 0:Q.entrust)||"";u+=''}),E.forEach(I=>{var Q;const Z=((Q=_.value.find(Ee=>Ee.id===I.id))==null?void 0:Q.entrust)||"";u+=''}),u+="
序号项目名称排班资源日期时间段结果
'+w+++''+Z+''+I.department_resources_name+''+I.date+''+((Ee=I.begin_time)==null?void 0:Ee.substring(0,5))+"-"+((He=I.end_time)==null?void 0:He.substring(0,5))+'✅ 成功匹配
'+w+++''+Z+'❌ 未找到合适号源
";const T=E.map(I=>_.value.findIndex(Z=>Z.id===I.id)+1).filter(I=>I>0),j=Math.min(...T);_.value.findIndex(I=>z.value.includes(I.id))+1===j?(he.value=u,W.value=!0):_e.value={html:u,idx:j}}const o=Le();o.length>0&&(A.value=o,R.value=o[0])}})}}}}else L.error(a.msg)})},nt=a=>{B.value=a,R.value=0,A.value=[],K()},Le=()=>{const a=[];for(const e of _.value)if(z.value.includes(e.id)&&e.list_status===0&&e.temp_plan_id){const t=oe.value.find(d=>d.id===e.temp_plan_id&&d.department_resources_name===B.value);t&&!a.includes(t.id)&&a.push(t.id)}for(const e of _.value)if(z.value.includes(e.id)&&e.list_status===1&&e.roster_id){const t=oe.value.find(d=>d.id===e.roster_id&&d.department_resources_name===B.value);t&&!a.includes(t.id)&&a.push(t.id)}return a},st=a=>{if(console.log(a),a==null)return;const e=oe.value.find(t=>t.id===a);e&&(R.value=a,A.value=[a],ot(),b.value.forEach(t=>{const d=_.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=a)}))},at=()=>{if($.value.length===0){L.error("请选择检查项目");return}O.value=!0,b.value.forEach(t=>{const d=be.value.find(i=>i.id===t.id);if(!d)return;const s=_.value.find(i=>i.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 a=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=_.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:S.reg_num,entrustid:$.value,episodeid:S.episode_id,appointment_type:S.appointment_type,items:a,occupied_plan_ids:e,scope:S.scope,do_user:S.do_user}).then(t=>{if(O.value=!1,t.status){t.data.forEach(n=>{const r=_.value.find(m=>m.id===n.id);r&&(r.department_resources||(r.department_resources={}),r.department_resources.department_resources_name=n.department_resources_name,r.reservation_date=n.date,r.period_begin_time=n.begin_time,r.period_end_time=n.end_time,r.temp_plan_id=n.plan_id)});const d={};t.data.forEach(n=>{var m,p;const r=n.department_resources_name;d[r]||(d[r]={items:[],timeSlots:new Set,dates:new Set}),d[r].items.push(n),d[r].timeSlots.add(((m=n.begin_time)==null?void 0:m.substring(0,5))+"-"+((p=n.end_time)==null?void 0:p.substring(0,5))),d[r].dates.add(n.date)});const s=[];for(const[n,r]of Object.entries(d))(r.timeSlots.size>1||r.dates.size>1)&&r.items.forEach(m=>{var g,f,y;const p=_.value.findIndex(c=>c.id===m.id);s.push({idx:p!==-1?p+1:"",room:m.department_resources_name,date:m.date,timeSlot:((g=m.begin_time)==null?void 0:g.substring(0,5))+"-"+((f=m.end_time)==null?void 0:f.substring(0,5)),entrust:((y=_.value.find(c=>c.id===m.id))==null?void 0:y.entrust)||""})});if(s.length>0){let n='';n+='';let r="",m="#f5f5f5";s.sort((p,g)=>p.idx-g.idx).forEach(p=>{p.timeSlot!==r&&(m=m==="#fff"?"#d5dce6":"#fff",r=p.timeSlot),n+='"}),n+="
序号项目名称检查室日期时间段
'+p.idx+''+p.entrust+''+p.room+''+p.date+''+p.timeSlot+"
",ue.value=n,F.value=!0}const i=new Set(t.data.map(n=>n.id)),l=a.filter(n=>!i.has(n.id));if(l.length>0){let n='';n+='';let r=1;t.data.forEach(m=>{var g,f,y;const p=((g=_.value.find(c=>c.id===m.id))==null?void 0:g.entrust)||"";n+=''}),l.forEach(m=>{var g;const p=((g=_.value.find(f=>f.id===m.id))==null?void 0:g.entrust)||"";n+=''}),n+="
序号项目名称排班资源日期时间段结果
'+r+++''+p+''+m.department_resources_name+''+m.date+''+((f=m.begin_time)==null?void 0:f.substring(0,5))+"-"+((y=m.end_time)==null?void 0:y.substring(0,5))+'✅ 成功匹配
'+r+++''+p+'❌ 未找到合适号源
",he.value=n,W.value=!0}else t.data.length===0&&ae.confirm("所有项目均未匹配到合适号源,请重新选择号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1});t.data.length>0&&(B.value=t.data[0].department_resources_name,A.value=t.data.map(n=>n.plan_id),R.value=t.data[0].plan_id)}else L.error(t.msg)})},it=()=>{if($.value.length===0){L.error("请选择检查项目");return}O.value=!0,b.value.forEach(t=>{const d=be.value.find(i=>i.id===t.id);if(!d)return;const s=_.value.find(i=>i.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 a=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=_.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:S.reg_num,entrustid:$.value,episodeid:S.episode_id,appointment_type:S.appointment_type,items:a,occupied_plan_ids:e,scope:S.scope,do_user:S.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.forEach(d=>{const s=_.value.find(i=>i.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(i=>{var n,r;const l=i.department_resources_name;d[l]||(d[l]={items:[],timeSlots:new Set,dates:new Set}),d[l].items.push(i),d[l].timeSlots.add(((n=i.begin_time)==null?void 0:n.substring(0,5))+"-"+((r=i.end_time)==null?void 0:r.substring(0,5))),d[l].dates.add(i.date)});const s=[];for(const[i,l]of Object.entries(d))(l.timeSlots.size>1||l.dates.size>1)&&l.items.forEach(n=>{var m,p,g;const r=_.value.findIndex(f=>f.id===n.id);s.push({idx:r!==-1?r+1:"",room:n.department_resources_name,date:n.date,timeSlot:((m=n.begin_time)==null?void 0:m.substring(0,5))+"-"+((p=n.end_time)==null?void 0:p.substring(0,5)),entrust:((g=_.value.find(f=>f.id===n.id))==null?void 0:g.entrust)||""})});if(s.length>0){let i='';i+='';let l="",n="#f5f5f5";s.sort((r,m)=>r.idx-m.idx).forEach(r=>{r.timeSlot!==l&&(n=n==="#fff"?"#d5dce6":"#fff",l=r.timeSlot),i+='"}),i+="
序号项目名称检查室日期时间段
'+r.idx+''+r.entrust+''+r.room+''+r.date+''+r.timeSlot+"
",ue.value=i,F.value=!0}B.value=t.data[0].department_resources_name,A.value=t.data.map(i=>i.plan_id),R.value=t.data[0].plan_id}else ae.confirm("未找到任何一天可满足所有检查项目的号源","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else L.error(t.msg)})},lt=()=>{if($.value.length===0){L.error("请选择检查项目");return}O.value=!0,b.value.forEach(t=>{const d=be.value.find(i=>i.id===t.id);if(!d)return;const s=_.value.find(i=>i.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 a=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=_.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:S.reg_num,entrustid:$.value,episodeid:S.episode_id,appointment_type:S.appointment_type,items:a,occupied_plan_ids:e,scope:S.scope,do_user:S.do_user}).then(t=>{if(O.value=!1,t.status)if(t.data.length>0){const d={};t.data.forEach(i=>{var n,r;const l=i.department_resources_name;d[l]||(d[l]={timeSlots:new Set}),d[l].timeSlots.add(((n=i.begin_time)==null?void 0:n.substring(0,5))+"-"+((r=i.end_time)==null?void 0:r.substring(0,5)))});let s=!1;for(const i of Object.values(d))if(i.timeSlots.size>1){s=!0;break}if(s){ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});return}t.data.forEach(i=>{const l=_.value.find(n=>n.id===i.id);l&&(l.department_resources||(l.department_resources={}),l.department_resources.department_resources_name=i.department_resources_name,l.reservation_date=i.date,l.period_begin_time=i.begin_time,l.period_end_time=i.end_time,l.temp_plan_id=i.plan_id)}),B.value=t.data[0].department_resources_name,A.value=t.data.map(i=>i.plan_id),R.value=t.data[0].plan_id}else ae.confirm("未找到同一时段号源,无法匹配","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",showCancelButton:!1});else L.error(t.msg)})},ot=()=>{O.value=!0;const a=oe.value.find(s=>s.id===R.value);if(!a){O.value=!1;return}const e=a.date+" "+a.begin_time,t=a.date+" "+a.end_time,d=a.department_resources_name;wt({reg_num:S.reg_num,planid:R.value}).then(s=>{var l;O.value=!1;let i=[];if(!s.status&&((l=s.data)!=null&&l.conflicts)&&(i=i.concat(s.data.conflicts.filter(n=>n.room_name!==d))),_.value.forEach(n=>{var g,f,y,c;if(n.list_status!==0||!n.temp_plan_id||!n.reservation_date||((g=n.department_resources)==null?void 0:g.department_resources_name)===d)return;const m=n.reservation_date+" "+n.period_begin_time,p=n.reservation_date+" "+n.period_end_time;m<=t&&e<=p&&(i.some(o=>o.entrust===n.entrust&&o.date===n.reservation_date)||i.push({entrust:n.entrust,date:n.reservation_date,begin_time:(f=n.period_begin_time)==null?void 0:f.substring(0,5),end_time:(y=n.period_end_time)==null?void 0:y.substring(0,5),room_name:((c=n.department_resources)==null?void 0:c.department_resources_name)||""}))}),i.length>0){let n='';n+='',i.forEach((r,m)=>{n+='"}),n+="
序号项目名称检查室日期时间段
'+(m+1)+''+r.entrust+''+(r.room_name||"")+''+r.date+''+r.begin_time+"-"+r.end_time+"
",Pe.value=n,te.value=!0}})},Me=a=>{if($.length==0)return L.error("请选择检查项目"),!1;if(R.value==0||R.value==""||R.value==null)return L.error("请选择号源"),!1;let e="确定预约此时间吗?";a==2&&(e="确定改约至此时间吗?"),ae.confirm(e,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{rt(a)}).catch(()=>{})},rt=async a=>{O.value=!0;const e={};_.value.forEach(p=>{var g;!z.value.includes(p.id)&&p.temp_plan_id&&(e[p.id]={temp_plan_id:p.temp_plan_id,department_resources_name:(g=p.department_resources)==null?void 0:g.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 d=!1;if(z.value.forEach(p=>{const g=_.value.find(y=>y.id===p),f=(g==null?void 0:g.temp_plan_id)||(g==null?void 0:g.roster_id);if(!f){d=!0;return}t[f]||(t[f]=[]),t[f].push(p)}),d){O.value=!1,L.error("存在未分配号源的项目,请先选择号源");return}const s=Object.keys(t);if(s.length===1){const p=Number(s[0]),g=t[p];Fe({mainlistid:g,planid:p,appointment_type:S.appointment_type,dotype:a,do_user:S.do_user,is_emergency:a==111?1:null}).then(f=>{O.value=!1,f.status?(xe.value.forEach((y,c)=>{y.label=="开启申请单pdf"&&y.value}),we(()=>{var o;G.value=!1;const y=[...z.value],c=_.value.filter(u=>u.list_status===0&&u.tishi_msg==="");if(c.length===0)y.forEach(u=>{const w=_.value.find(T=>T.id===u);w&&U.value.toggleRowSelection(w,!0)});else{U.value.clearSelection();const u=new Set(c.map(w=>{var T;return(T=w.department_resources)==null?void 0:T.department_resources_name}).filter(Boolean));_.value.forEach(w=>{var T;w.tishi_msg===""&&(w.list_status===0||u.has((T=w.department_resources)==null?void 0:T.department_resources_name))&&U.value.toggleRowSelection(w,!0)})}if(G.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),b.value.length>0){const u=(o=b.value[0].department_resources)==null?void 0:o.department_resources_name;u&&(B.value=u)}if(b.value.some(u=>u.list_status===0)||K(),ne.value.length>0){const u=b.value.filter(w=>w.list_status===1).map(w=>w.entrust_id);u.length>0&&Ne(u)}},!0)):ae.confirm(f.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"error",showCancelButton:!1}).then(()=>{}).catch(()=>{})});return}const i=[],l=[],n=[];for(const p of s){const g=Number(p),f=t[p];try{const y=await Fe({mainlistid:f,planid:g,appointment_type:S.appointment_type,dotype:a,do_user:S.do_user,is_emergency:a==111?1:null});y.status?f.forEach(c=>{var o;const E=_.value.find(u=>u.id===c);if(E){const u=(E.period_begin_time?E.period_begin_time.substring(0,5):"")+"-"+(E.period_end_time?E.period_end_time.substring(0,5):"");i.push({name:E.entrust,room:((o=E.department_resources)==null?void 0:o.department_resources_name)||"",date:E.reservation_date||"",time:u}),n.push(E.entrust_id)}}):f.forEach(c=>{const E=_.value.find(o=>o.id===c);E&&l.push({name:E.entrust,msg:y.msg})})}catch{f.forEach(c=>{const E=_.value.find(o=>o.id===c);E&&l.push({name:E.entrust,msg:"请求异常"})})}}O.value=!1;let r='';r+='';let m=1;i.forEach(p=>{r+=''}),l.forEach(p=>{r+='"}),r+="
序号项目名称检查室日期时间段结果
'+m+++''+p.name+''+p.room+''+p.date+''+p.time+'预约成功
'+m+++''+p.name+''+p.msg+"
",ze.value=r,de.value=!0,i.length>0&&(we(()=>{var y;G.value=!1;const p=[...z.value],g=_.value.filter(c=>c.list_status===0&&c.tishi_msg==="");if(g.length===0)p.forEach(c=>{const E=_.value.find(o=>o.id===c);E&&U.value.toggleRowSelection(E,!0)});else{U.value.clearSelection();const c=new Set(g.map(E=>{var o;return(o=E.department_resources)==null?void 0:o.department_resources_name}).filter(Boolean));_.value.forEach(E=>{var o;E.tishi_msg===""&&(E.list_status===0||c.has((o=E.department_resources)==null?void 0:o.department_resources_name))&&U.value.toggleRowSelection(E,!0)})}if(G.value=!0,_.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(_.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(_.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=(y=b.value[0].department_resources)==null?void 0:y.department_resources_name;c&&(B.value=c)}b.value.some(c=>c.list_status===0)||K(),ne.value.length>0&&Ne(n)},!0),xe.value.forEach((p,g)=>{p.label=="开启申请单pdf"&&p.value}))},ut=()=>{ae.confirm("确定取消预约吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const a={};_.value.forEach(d=>{var s;!z.value.includes(d.id)&&d.temp_plan_id&&(a[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||""}});X.value=!0;const t=await St({ids:b.value.map(d=>d.id),reg_num:b.value[0].reg_num,do_user:S.do_user});t.status?(L.success("取消成功"),X.value=!1,we(()=>{_.value.forEach(s=>{a[s.id]&&(s.temp_plan_id=a[s.id].temp_plan_id,s.department_resources||(s.department_resources={}),s.department_resources.department_resources_name=a[s.id].department_resources_name,s.reservation_date=a[s.id].reservation_date,s.period_begin_time=a[s.id].period_begin_time,s.period_end_time=a[s.id].period_end_time)});const d=e;if(d.length>0){const s=_.value.filter(i=>!d.find(l=>l.id===i.id)&&i.list_status===0&&i.temp_plan_id).map(i=>i.temp_plan_id);me({type:"optimal_time",regnum:S.reg_num,entrustid:d.map(i=>i.entrust_id),episodeid:S.episode_id,appointment_type:S.appointment_type,items:d,occupied_plan_ids:s,scope:S.scope,do_user:S.do_user}).then(i=>{i.status&&i.data.length>0&&(i.data.forEach(l=>{const n=_.value.find(r=>r.id===l.id);n&&(n.department_resources||(n.department_resources={}),n.department_resources.department_resources_name=l.department_resources_name,n.reservation_date=l.date,n.period_begin_time=l.begin_time,n.period_end_time=l.end_time,n.temp_plan_id=l.plan_id)}),B.value=i.data[0].department_resources_name,A.value=i.data.map(l=>l.plan_id),R.value=i.data[0].plan_id)})}},!0)):(L.error(t.msg||"取消失败"),X.value=!1)})},pt=()=>{kt({config_arrs:["开启申请单pdf","医生端打印"]}).then(a=>{a.status&&(xe.value=a.data.list,xe.value.forEach((e,t)=>{console.log(S.appointment_type),e.label=="医生端打印"&&e.value==="0"&&S.appointment_type==1&&(ne.value=[])}))})},Ne=a=>{const e=a||$.value,t=b.value.filter(i=>e.includes(i.entrust_id)&&i.list_status!=1);if(t.length>0){L.error(t.map(i=>i.entrust).join("、")+" 不可打印,请重新选择");return}const s="https://yj.dev.cjy.net.cn/api/GetCheckPdf?Dev=1&Type=group&"+e.map(i=>"OrderNoList[]="+i).join("&");fetch(s).then(i=>i.blob()).then(i=>{const l=URL.createObjectURL(i),n=document.createElement("iframe");n.style.display="none",n.src=l,n.onload=()=>{n.contentWindow.print(),URL.revokeObjectURL(l)},document.body.appendChild(n)})},_t=()=>{B.value="",q.value=Se(le.value),console.log(q.value),K()};function mt(a){const e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}function Se(a=new Date,e=15){const t=new Date(a),d=[];if(isNaN(t.getTime()))throw new Error("无效的日期格式");for(let s=0;s15}function $e(){const a=new Date,e=a.getFullYear(),t=String(a.getMonth()+1).padStart(2,"0"),d=String(a.getDate()).padStart(2,"0");return`${e}-${t}-${d}`}let Ve=k(!1);return xt(()=>{Ve.value=!0,pt(),q.value=Se(),we(()=>{b.value.some(e=>e.list_status===0)||K()})}),(a,e)=>{var E;const t=J("el-alert"),d=J("el-table-column"),s=J("el-tag"),i=J("el-table"),l=J("el-button"),n=J("el-checkbox"),r=J("el-checkbox-group"),m=J("el-tooltip"),p=J("el-date-picker"),g=J("el-empty"),f=J("el-dialog"),y=J("el-icon"),c=bt("loading");return D(),M("div",Et,[h(Y)?(D(),M("div",Dt,[C("div",Ct,[C("span",It,V(h(Y).user_name),1),N("("+V(h(Y).user_sex_label)+" "+V(h(Y).age)+"岁)",1)]),C("div",Tt,[N(V(h(Y).patient_type_label)+"号:",1),C("span",Mt,V(h(Y).patient_type==0?(E=h(Y).episodeid)==null?void 0:E.slice(-10):h(Y).reg_num),1)]),C("div",Nt,[e[19]||(e[19]=N("电话:",-1)),C("span",Vt,V(h(Y).user_phone),1)]),h(Y).warddesc?(D(),M("div",Bt,[e[20]||(e[20]=N("病区:",-1)),C("span",Rt,V(h(Y).warddesc),1)])):P("",!0),h(Y).bedno?(D(),M("div",Pt,[e[21]||(e[21]=N("床号:",-1)),C("span",zt,V(h(Y).bedno),1)])):P("",!0),h(Y).diagnosisName?(D(),M("div",Yt,[e[22]||(e[22]=N("诊断:",-1)),C("span",Ot,V(h(Y).diagnosisName),1)])):P("",!0)])):(D(),M("div",Lt," 获取患者信息失败 ")),Ze.value?(D(),se(t,{key:2,type:"danger",closable:!1,"show-icon":"",style:{"margin-bottom":"8px"}},{title:v(()=>[...e[23]||(e[23]=[C("span",{style:{"font-weight":"700",color:"#f56c6c"}},"患者所有检查项目未预约至同一天,请注意是否需手动调整预约",-1)])]),_:1})):P("",!0),C("div",Ut,[je((D(),se(i,{data:h(_),style:{width:"100%"},"row-key":"id",ref_key:"entrustTableRef",ref:U,"row-class-name":et,onSelectionChange:Ke},{default:v(()=>[x(d,{type:"selection",width:"36",selectable:tt}),x(d,{prop:"tishi_msg",width:"200"},{header:v(()=>[C("div",null,[C("div",null,"共 "+V(h(_).length)+" 项,已选 "+V(h(z).length)+" 项",1),Ye.value>0?(D(),M("div",$t,"同检查室项目 "+V(Ye.value)+" 项",1)):P("",!0)])]),default:v(o=>[C("span",Ht,V(o.$index+1),1),o.row.tishi_msg!=""?(D(),M("span",jt,V(o.row.tishi_msg),1)):(D(),M("span",Jt,"正常"))]),_:1}),x(d,{prop:"list_status",label:"预约状态",width:"80"},{default:v(o=>[o.row.list_status===0?(D(),se(s,{key:0,class:"ml-2",type:"info"},{default:v(()=>[...e[24]||(e[24]=[N("未预约",-1)])]),_:1})):P("",!0),o.row.list_status===1?(D(),se(s,{key:1,class:"ml-2",type:"success"},{default:v(()=>[...e[25]||(e[25]=[N("已预约",-1)])]),_:1})):P("",!0),o.row.list_status===2?(D(),se(s,{key:2,class:"ml-2"},{default:v(()=>[...e[26]||(e[26]=[N("登记",-1)])]),_:1})):P("",!0),o.row.list_status===3?(D(),se(s,{key:3,class:"ml-2",type:"warning"},{default:v(()=>[...e[27]||(e[27]=[N("完成",-1)])]),_:1})):P("",!0)]),_:1}),x(d,{prop:"entrust",label:"项目","show-overflow-tooltip":""}),x(d,{prop:"is_pay",label:"是否交费",width:"60",align:"center"},{default:v(o=>[o.row.is_pay==1?(D(),M("span",Ft,"是")):P("",!0),o.row.is_pay==0?(D(),M("span",Gt,"否")):P("",!0)]),_:1}),x(d,{prop:"his_is_emergency",label:"是否加急",width:"60",align:"center"},{default:v(o=>[o.row.his_is_emergency==1?(D(),M("span",At,"是")):P("",!0),o.row.his_is_emergency==0?(D(),M("span",Wt,"否")):P("",!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:v(o=>[o.row.period_begin_time&&o.row.period_end_time?(D(),M("span",Zt,V(o.row.period_begin_time.substring(0,5))+"~"+V(o.row.period_end_time.substring(0,5)),1)):P("",!0)]),_:1}),x(d,{prop:"limosis",label:"是否空腹",width:"60",align:"center"},{default:v(o=>[o.row.limosis==0?(D(),M("span",qt,"否")):(D(),M("span",Kt,"是"))]),_:1}),x(d,{prop:"reservation_department",label:"申请科室",width:"150"}),x(d,{prop:"",label:"医嘱时间",width:"200"},{default:v(o=>[N(V(o.row.entrust_date)+" "+V(o.row.entrust_time),1)]),_:1}),x(d,{prop:"docotr",label:"申请医生",width:"80"})]),_:1},8,["data"])),[[c,h(X)]])]),C("div",Qt,[C("div",Xt,[C("div",ed,[(D(!0),M(De,null,Ce(h(ce),(o,u)=>(D(),M("div",{key:u,class:Je({"ZhenShiButton zhenshiButton_active":h(B)===o,ZhenShiButton:h(B)!==o}),onClick:w=>nt(o)},V(o),11,td))),128)),e[38]||(e[38]=C("div",{class:"shuxian"},null,-1)),Oe.value?(D(),se(l,{key:0,class:"do_button",type:"danger",onClick:e[0]||(e[0]=o=>Me(111))},{default:v(()=>[...e[28]||(e[28]=[N("加急预约",-1)])]),_:1})):P("",!0),x(l,{class:"do_button",type:"success",onClick:e[1]||(e[1]=o=>Me(1))},{default:v(()=>[...e[29]||(e[29]=[N("预约",-1)])]),_:1}),x(l,{class:"do_button",type:"warning",onClick:e[2]||(e[2]=o=>Me(2))},{default:v(()=>[...e[30]||(e[30]=[N("更改预约时间",-1)])]),_:1}),x(l,{class:"do_button",type:"danger",onClick:e[3]||(e[3]=o=>ut())},{default:v(()=>[...e[31]||(e[31]=[N("取消预约",-1)])]),_:1}),x(l,{onClick:e[4]||(e[4]=o=>Ne())},{default:v(()=>[...e[32]||(e[32]=[N("打印申请单",-1)])]),_:1}),C("div",dd,[x(r,{modelValue:h(ne),"onUpdate:modelValue":e[5]||(e[5]=o=>H(ne)?ne.value=o:ne=o)},{default:v(()=>[x(n,{label:"1"},{default:v(()=>[...e[33]||(e[33]=[N("预约完成后打印申请单",-1)])]),_:1})]),_:1},8,["modelValue"]),x(m,{placement:"top",content:vd,"popper-class":"tip-pre-line"},{default:v(()=>[x(n,{modelValue:h(re),"onUpdate:modelValue":e[6]||(e[6]=o=>H(re)?re.value=o:re=o)},{default:v(()=>[...e[34]||(e[34]=[N("自动选中能一起预约的检查项目",-1)])]),_:1},8,["modelValue"])]),_:1})]),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近能用的时间段号源,多个检查项目可能会跨天跨时间段","popper-class":"tip-pre-line"},{default:v(()=>[x(l,{class:"do_button_recommend",type:"primary",style:{"margin-left":"20px",width:"120px"},onClick:at},{default:v(()=>[...e[35]||(e[35]=[N("推荐最近时间号源",-1)])]),_:1})]),_:1}),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天完成检查的号源","popper-class":"tip-pre-line"},{default:v(()=>[x(l,{class:"do_button_recommend",type:"primary",style:{width:"120px"},onClick:it},{default:v(()=>[...e[36]||(e[36]=[N("推荐同一天号源",-1)])]),_:1})]),_:1}),x(m,{placement:"top",content:"点击此按钮,系统会推荐最近的能在同一天同一时间段完成检查的号源","popper-class":"tip-pre-line"},{default:v(()=>[x(l,{class:"do_button_recommend",type:"primary",onClick:lt},{default:v(()=>[...e[37]||(e[37]=[N("推荐同一天同一时间段号源",-1)])]),_:1})]),_:1})]),C("div",null,[x(p,{modelValue:h(le),"onUpdate:modelValue":e[7]||(e[7]=o=>H(le)?le.value=o:le=o),type:"date",placeholder:"跳转日期",onChange:e[8]||(e[8]=o=>_t())},null,8,["modelValue"])])]),je((D(),M("div",nd,[C("table",sd,[h(b).length>0?(D(),M("tr",ad,[e[39]||(e[39]=C("td",{style:{width:"120px"}},null,-1)),(D(!0),M(De,null,Ce(h(q),(o,u)=>(D(),M("td",id,V(o.substring(5,10))+" "+V(We(o)),1))),256))])):P("",!0),h(q).length>0&&h(ie).length>0?(D(!0),M(De,{key:1},Ce(h(ie),(o,u)=>(D(),M("tr",{key:u,class:"table_plan_row"},[(D(!0),M(De,null,Ce(o,(w,T)=>(D(),M("td",{key:T,class:Je({planActive:h(A).includes(w.id)&&w.id!==0&&w.id,plandisable:!w.enable&&T!=="time_range"}),onClick:j=>st(w.id)},[T=="time_range"?(D(),M("span",od,V(w),1)):P("",!0),C("span",null,V(w.use_count),1)],10,ld))),128))]))),128)):P("",!0)]),h(b).length==0?(D(),M("div",rd,[x(g,{description:"请选择项目"})])):P("",!0),h(b).length>0&&h(ie).length==0?(D(),M("div",ud,[x(g,{description:"暂无号源"})])):P("",!0)])),[[c,h(O)]])]),x(f,{modelValue:h(ee),"onUpdate:modelValue":e[10]||(e[10]=o=>H(ee)?ee.value=o:ee=o),title:"提示",width:"500"},{footer:v(()=>[C("div",pd,[x(l,{type:"primary",onClick:e[9]||(e[9]=o=>H(ee)?ee.value=!1:ee=!1)},{default:v(()=>[...e[40]||(e[40]=[N(" 确定 ",-1)])]),_:1})])]),default:v(()=>[x(i,{data:h(ye),style:{width:"100%"},"row-key":"id"},{default:v(()=>[x(d,{prop:"item_name",label:"项目名称"}),x(d,{prop:"msg",label:"异常提示"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),x(f,{modelValue:h(F),"onUpdate:modelValue":e[12]||(e[12]=o=>H(F)?F.value=o:F=o),title:"提示",width:"800"},{footer:v(()=>[x(l,{type:"primary",onClick:e[11]||(e[11]=o=>H(F)?F.value=!1:F=!1)},{default:v(()=>[...e[42]||(e[42]=[N("确定",-1)])]),_:1})]),default:v(()=>[C("div",_d,[x(y,{class:"el-icon-warning",style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:v(()=>[x(h(Ie))]),_:1}),C("div",null,[e[41]||(e[41]=C("p",{style:{margin:"0 0 12px 0","font-weight":"700"}},"最近可用的同一时间段号源数量不足,无法把当前全部检查项目预约在同一时间段,系统已经自动拆分。",-1)),C("div",{innerHTML:h(ue)},null,8,md)])])]),_:1},8,["modelValue"]),x(f,{modelValue:h(te),"onUpdate:modelValue":e[14]||(e[14]=o=>H(te)?te.value=o:te=o),title:"时段冲突",width:"800"},{footer:v(()=>[x(l,{type:"primary",onClick:e[13]||(e[13]=o=>H(te)?te.value=!1:te=!1)},{default:v(()=>[...e[44]||(e[44]=[N("确定",-1)])]),_:1})]),default:v(()=>[C("div",cd,[x(y,{style:{color:"#F56C6C","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:v(()=>[x(h(Ie))]),_: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,fd)])])]),_:1},8,["modelValue"]),x(f,{modelValue:h(de),"onUpdate:modelValue":e[16]||(e[16]=o=>H(de)?de.value=o:de=o),title:"预约结果",width:"800"},{footer:v(()=>[x(l,{type:"primary",onClick:e[15]||(e[15]=o=>H(de)?de.value=!1:de=!1)},{default:v(()=>[...e[45]||(e[45]=[N("确定",-1)])]),_:1})]),default:v(()=>[C("div",gd,[x(y,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:v(()=>[x(h(Ie))]),_:1}),C("div",{innerHTML:h(ze)},null,8,xd)])]),_:1},8,["modelValue"]),x(f,{modelValue:h(W),"onUpdate:modelValue":e[18]||(e[18]=o=>H(W)?W.value=o:W=o),title:"预约推荐结果",width:"800"},{footer:v(()=>[x(l,{type:"primary",onClick:e[17]||(e[17]=o=>H(W)?W.value=!1:W=!1)},{default:v(()=>[...e[46]||(e[46]=[N("确定",-1)])]),_:1})]),default:v(()=>[C("div",bd,[x(y,{style:{color:"#e6a23c","font-size":"24px","flex-shrink":"0","margin-top":"2px"}},{default:v(()=>[x(h(Ie))]),_:1}),C("div",{innerHTML:h(he)},null,8,hd)])]),_:1},8,["modelValue"])])}}},Sd=gt(yd,[["__scopeId","data-v-7b24af5b"]]);export{Sd as Y};