You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
36 KiB
JavaScript

import{_ as Nt,Y as Ke,o as Ft,aX as Ot,r as I,c as Gt,d as r,e as g,k as p,f as a,w as o,i as n,F as E,t as L,h as ye,Z as be,j as B,x as C,aY as Yt,l as D,g as _,I as Zt,E as b,W as jt,O as Ht,J as Wt,q as v,v as V,N as xe,bo as Xt,bp as Kt,bq as Jt,br as Qt,b1 as el,bs as tl,bt as ll,bu as al,bv as ol,bw as nl,b7 as ul,b8 as Je,b9 as sl,ba as il}from"./index-2a066d66.js";const dl={class:"head"},rl={key:0,style:{display:"flex"},class:"planInfo"},pl={style:{"border-right":"1px solid #dadada","padding-right":"4px"}},fl=["onClick"],ml={key:0,class:"planTable"},vl={style:{"background-color":"#f1f1f1",position:"relative"}},_l={style:{width:"120px",display:"flex","font-size":"12px"}},cl={style:{"font-weight":"700"}},gl=["data-row","data-col","onMouseover","onMouseleave","onMousedown"],yl={key:0},bl={key:0,class:"hoverTools"},xl=["onClick"],kl=["onClick"],hl=["onClick"],wl={class:"qudao_count_row"},Vl={class:"qudao_title_zong"},Cl={class:"patient_type_row"},Il={class:"tps"},ql={key:1,class:"locked_count_row"},Ml={key:2,style:{width:"100%","background-color":"#fff"}},Bl={key:0,class:"type_count"},Tl={key:0,class:"type_count"},El={style:{"font-weight":"700"}},Dl={style:{"margin-right":"26px"}},Ul={class:"qudao_k_input"},Ll={style:{width:"50px"}},Pl={class:"qudao_k_input",style:{display:"flex"}},Sl={style:{"margin-left":"4px",color:"#ccc"}},Al={style:{display:"flex"}},zl={style:{display:"flex"}},Rl={class:"qudao_k_input"},$l={style:{display:"flex"}},Nl={class:"qudao_k_input"},Fl={style:{"margin-left":"8px"}},Ol={style:{display:"flex"}},Gl={class:"qudao_k_input"},Yl={style:{display:"flex"}},Zl={class:"qudao_k_input"};const jl={class:"dialog-footer"},Hl={class:"dialog-footer"},Wl={class:"dialog-footer"},Xl={style:{display:"flex","flex-direction":"column",gap:"10px",width:"100%"}},Kl={key:0,style:{display:"flex","align-items":"center",gap:"10px"}},Jl={style:{width:"80px"}},Ql={style:{flex:"1"}},ea={style:{color:"#999","font-size":"12px"}},ta={key:1,style:{color:"#999"}},la={class:"dialog-footer"},aa={style:{"margin-bottom":"16px",color:"#666"}},oa={style:{"margin-top":"16px","padding-top":"12px","border-top":"1px solid #eee"}},na={style:{"margin-bottom":"16px",color:"#666"}},ua={__name:"PlanModelAdmin",setup(sa){let X=_("1"),x=_(!1),Qe=_(1),et=_(15),$=_([]),z=_({}),N=_([]),w=_([]),F=_(0),ze=_([]),Q=_([]),O=_(!1),K=_(!1),Re=_([]),G=_(!1),q=_(null);const tt=()=>{if(w.value.length===0)return b.error("请至少勾选1条记录"),!1;O.value=!0},Me=(t,e)=>{h.value.type=0,de.value.forEach((s,d)=>{s.id===e&&(z.value=s,s.time_mode==1&&(h.value.type=1))}),F.value=0,w.value=[],h.value.resources_id=e,R()},lt=()=>{F.value=F.value===0?1:0,F.value===0&&(w.value=[]),F.value===1&&N.value.forEach((t,e)=>{console.log(t);for(let s in t)s!="time_range"&&w.value.push(t[s].id)})};let Be=_(null),ee=_(!1),te=_({row:0,col:0,x:0,y:0}),Te=_({}),Ee=_(null);const at=t=>{Be.value=t},ot=t=>{Be.value=null},nt=(t,e,s,d)=>{ee.value||at(e==null?void 0:e.id)},ut=t=>{ee.value||ot()},st=(t,e,s,d)=>{if(t.target.closest(".plan_checkbox")||d==="time_range"||!e||!e.id)return;const i=t.currentTarget,m=i.closest("tr");if(!m)return;const f=Ee.value;if(!f)return;const k=f.getBoundingClientRect();ee.value=!0,te.value={row:m.rowIndex,col:i.cellIndex,x:t.clientX-k.left+f.scrollLeft,y:t.clientY-k.top+f.scrollTop},w.value=[e.id],F.value=0},$e=t=>{var _e,S;if(!ee.value)return;const e=Ee.value;if(!e)return;const s=e.getBoundingClientRect(),d=t.clientX-s.left+e.scrollLeft,i=t.clientY-s.top+e.scrollTop;Te.value={left:Math.min(te.value.x,d)+"px",top:Math.min(te.value.y,i)+"px",width:Math.abs(d-te.value.x)+"px",height:Math.abs(i-te.value.y)+"px"};const m=document.elementFromPoint(t.clientX,t.clientY);if(!m)return;const f=m.closest("td");if(!f)return;const k=f.closest("tr");if(!k||((_e=k.parentElement)==null?void 0:_e.tagName)==="THEAD")return;const M=k.rowIndex,J=f.cellIndex;if(J===0)return;const H=te.value.row,Ce=te.value.col,Se=Math.min(H,M),Ae=Math.max(H,M),T=Math.min(Ce,J),Ie=Math.max(Ce,J);w.value=[];for(let se=Se;se<=Ae;se++){const ie=N.value[se-1];if(ie)for(let U=T;U<=Ie;U++){if(U===0)continue;const ce=(S=he.value[U-1])==null?void 0:S.label;if(!ce)continue;const W=ie[ce];W&&W.id&&w.value.push(W.id)}}},Ne=()=>{ee.value&&(ee.value=!1,Te.value={})};let Y=_(!1),le=_(!1),De=_([]),ae=_([]),oe=_([]);const Fe=Ke(()=>ae.value.reduce((t,e)=>t+(Number(e.count)||0),0));let Z=_(!1),ne=_(!1),pe=_([]),ue=_([]),ke=_({});const it=Ke(()=>ue.value.reduce((t,e)=>t+(Number(e.locked_count)||0),0)),fe=t=>w.value.includes(t),dt=t=>{w.value.indexOf(t)===-1?w.value.push(t):w.value=w.value.filter(s=>s!==t)},rt=()=>{if(w.value.length==0)return b.error("请至少勾选1条记录"),!1;xe.confirm("确定批量禁用勾选的计划模板吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{x.value=!0,Xt({ids:w.value}).then(t=>{x.value=!1,t.status?(b({message:"批量禁用成功",type:"success"}),R()):b.error(t.msg)})})},pt=()=>{if(w.value.length==0)return b.error("请至少勾选1条记录"),!1;xe.confirm("确定批量启用勾选的计划模板吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{x.value=!0,Kt({ids:w.value}).then(t=>{x.value=!1,t.status?(b({message:"批量启用成功",type:"success"}),R()):b.error(t.msg)})})},ft=()=>{if(w.value.length==0){b.error("请至少勾选1条记录");return}const t=new Set(w.value),e=new Map,s=[];N.value.forEach(d=>{for(const i in d){if(i==="time_range")continue;const m=d[i];m&&m.id&&t.has(m.id)&&m.countsInfo&&(m.countsInfo.forEach(f=>{e.has(f.appointment_type_id)||e.set(f.appointment_type_id,{name:f.name,jiancheng:f.jiancheng,counts:[]}),e.get(f.appointment_type_id).counts.push(f.count)}),m.patient_type&&s.push(new Set(m.patient_type)))}}),De.value=[],ae.value=[];for(const[d,i]of e){De.value.push({id:d,name:i.name});const m=i.counts.length>0&&i.counts.every(f=>f===i.counts[0]);ae.value.push({appointment_type_id:d,count:m?i.counts[0]:""})}if(s.length>0){const d=s.reduce((i,m)=>{const f=new Set;for(const k of i)m.has(k)&&f.add(k);return f});oe.value=Array.from(d)}else oe.value=[];le.value=!1,Y.value=!0},mt=async()=>{for(const d of ae.value)if(Number(d.count)<0){b.error("数量不能为负数");return}const t=Fe.value;le.value=!0;const e=[...w.value],s=ae.value.map(d=>({appointment_type_id:d.appointment_type_id,count:Number(d.count)||0}));try{const d=await Jt({ids:e,max_total:t,coutsInfo:s,patientType:oe.value});le.value=!1,d&&d.status?(Y.value=!1,b.success("批量修改完成"),R()):(b.error((d==null?void 0:d.msg)||"批量修改失败"),le.value=!1)}catch{le.value=!1,b.error("请求异常")}},vt=()=>{if(Q.value.length===0)return b.error("请选择日期范围"),!1;Qt({dateRange:Q.value,ids:w.value,HolidayEnable:me.value,date_type:h.value.date_type,department_id:h.value.department_id}).then(t=>{t.status?(O.value=!1,b({message:t.msg,type:"success"})):t.data&&t.data.conflicts&&t.data.conflicts.length>0?(Re.value=t.data.conflicts,K.value=!0):xe.alert(t.msg,"提示",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0})})};let h=_({department_id:null,resources_id:null,device_id:null,xingqi:null,type:0,status:null}),me=_(1),Ue=_("工作日"),j=_(!1);const R=()=>{x.value=!0,el({page:Qe.value,pageSize:et.value,searchInfo:h.value}).then(t=>{if(x.value=!1,t.status){N.value=[],w.value=[];let e=t.data.list;if(ze.value=e,e.length>0){const s=new Set;e.forEach((i,m)=>{if(i.department_resources_name==z.value.department_resources_name){const f=`${i.begin_time.substring(0,5)}-${i.end_time.substring(0,5)}`;s.add(f)}i.resources_id}),Array.from(s).sort().forEach(i=>{const m={time_range:i};he.value.forEach(f=>{const k=e.find(M=>`${M.begin_time.substring(0,5)}-${M.end_time.substring(0,5)}`===i&&M.weekname===f.label&&M.department_resources_name==z.value.department_resources_name);k?m[f.label]={countsInfo:k.countsInfo,patient_type_label:k.patient_type_label,status:k.status,id:k.id,resources_id:k.resources_id}:m[f.label]={countsInfo:null,patient_type_label:null,status:null,id:null,resources_id:null}}),N.value.push(m)})}}})};let he=_([{label:"星期一",value:1},{label:"星期二",value:2},{label:"星期三",value:3},{label:"星期四",value:4},{label:"星期五",value:5},{label:"星期六",value:6},{label:"星期日",value:7}]),_t=_(null);const Oe=()=>({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 u=_(Oe()),we=_(0);const Le=(t=null)=>{Ze.value=[],ve.value=!1,j.value=!0,u.value=Oe(),we.value=0,Mt(),Bt(),t?(u.value.resources_id=t.resources_id,je(),setTimeout(()=>{console.log("编辑"),Et(t.id)},500)):z.value.id&&(u.value.resources_id=z.value.id,je())},ct=()=>{h.value.date_type==1&&(Ue.value="工作日",$.value.length>0&&Me($.value[0].resources_name,$.value[0].resources_id)),h.value.date_type==2&&(Ue.value="节假日",h.value.type=0,h.value.resources_id=null,R())},gt=()=>{R()},yt=()=>{let t=0;if(u.value.qudao_total.forEach(e=>{t=t+Number(e.count)}),t!==Number(u.value.max_total))return b.error("各个渠道数量之和与当日总量不符"),!1;xe.confirm("确定保存吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{x.value=!0,tl({date_type:h.value.date_type,planInfo:u.value,department_id:h.value.department_id}).then(e=>{x.value=!1,e.status?(j.value=!1,R()):b.error(e.msg)})})},bt=()=>{if(w.value.length==0)return b.error("请至少勾选1条记录"),!1;xe.confirm("确定删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{x.value=!0,ll({ids:w.value,department_id:h.value.department_id}).then(t=>{x.value=!1,t.status?(b({message:t.msg,type:"success"}),R()):b.error(t.msg)})})},xt=()=>{ue.value=pe.value.map(t=>({appointment_type_id:t.id,locked_count:""}))},kt=(t,e)=>{const s=pe.value[t],d=ke.value[s.id];d!=null&&d.limited&&Number(e)>d.maxValue&&(ue.value[t].locked_count=d.maxValue)},ht=()=>{if(w.value.length==0){b.error("请至少勾选1条记录");return}const t=new Set(w.value),e=new Map;N.value.forEach(d=>{for(const i in d){if(i==="time_range")continue;const m=d[i];m&&m.id&&t.has(m.id)&&m.countsInfo&&m.countsInfo.forEach(f=>{e.has(f.appointment_type_id)||e.set(f.appointment_type_id,{name:f.name,counts:[]}),e.get(f.appointment_type_id).counts.push(f.count)})}}),pe.value=[];const s={};for(const[d,i]of e){pe.value.push({id:d,name:i.name});const m=Math.min(...i.counts);s[d]={limited:!0,maxValue:m}}ke.value=s,xt(),ne.value=!1,Z.value=!0},wt=async()=>{for(const s of ue.value)if(Number(s.locked_count)<0){b.error("占用数量不能为负数");return}ne.value=!0;const t=[...w.value],e=ue.value.map(s=>({appointment_type_id:s.appointment_type_id,locked_count:Number(s.locked_count)||0}));try{const s=await al({ids:t,coutsInfo:e});ne.value=!1,s&&s.status?(Z.value=!1,b.success("批量占用完成"),R()):(b.error((s==null?void 0:s.msg)||"批量占用失败"),ne.value=!1)}catch{ne.value=!1,b.error("请求异常")}};let Vt=_([]);const Ct=()=>{x.value=!0,Zt().then(t=>{x.value=!1,t.status?Vt.value=t.data:b.error(t.msg)})};let Ve=_([]);const It=()=>{x.value=!0,jt({}).then(t=>{x.value=!1,t.status?(Ve.value=t.data.list,Ve.value.length>0&&(h.value.department_id=Ve.value[0].id,Ye())):b.error(t.msg)})},qt=()=>{h.value.resources_id=null,z.value={},Ye()},Mt=()=>{x.value=!0,ol({department_id:h.value.department_id}).then(t=>{x.value=!1,t.status?(u.value.qudao_total=t.data,u.value.qudao_total.forEach((e,s)=>{u.value.qudao_total[s].count=0})):b.error(t.msg)})},Pe=t=>{(t===""||t==null||t===0)&&(u.value.max_total=0);let e=0,s=u.value.qudao_total.length;console.log(u.value.qudao_total);for(let d=0;d<s;d++)if(u.value.qudao_total[d].ratio!==0&&(u.value.qudao_total[d].count=Math.round(u.value.max_total*(u.value.qudao_total[d].ratio/100)),e=e+u.value.qudao_total[d].count,d===s-1&&e!==u.value.max_total)){let i=e-u.value.max_total;u.value.qudao_total.sort((k,M)=>k.ratio-M.ratio);let m=null;for(let k=0;k<u.value.qudao_total.length;k++)if(u.value.qudao_total[k].count!==0){m=u.value.qudao_total[k];break}let f=u.value.qudao_total.indexOf(m);console.log("最小且非零项在原数组中的位置:",f),console.log(i),i>0&&(u.value.qudao_total[f].count=u.value.qudao_total[f].count-i),i<0&&f>0&&(u.value.qudao_total[f-1].count=u.value.qudao_total[f-1].count-i),i<0&&f==0&&(u.value.qudao_total[f].count=u.value.qudao_total[f].count-i),u.value.qudao_total.sort((k,M)=>M.ratio-k.ratio)}};let Ge=_([]);const Bt=()=>{x.value=!0,nl({date_type:h.value.date_type,department_id:h.value.department_id}).then(t=>{x.value=!1,t.status?Ge.value=t.data:b.error(t.msg)})},Tt=()=>{x.value=!0,ul({id:u.value.period_id}).then(t=>{x.value=!1,t.status?(u.value.begin_time=t.data.period_begin_time,u.value.end_time=t.data.period_end_time,u.value.end_reservation_time=t.data.period_deadline):b.error(t.msg)})},Et=t=>{x.value=!0,Je({id:t}).then(e=>{if(x.value=!1,e.status){u.value=e.data,u.value.max_total=e.data.qudao_total[0].max_total,u.value.xingqi=[e.data.weekname],u.value.devices=e.data.devices;const s=de.value.find(d=>d.id===u.value.resources_id);we.value=s&&s.time_mode||0}else b.error(e.msg)})};let de=_([]);const Ye=()=>{$.value=[],h.value.department_id&&(x.value=!0,Ht({department_id:h.value.department_id}).then(t=>{x.value=!1,t.status?(de.value=t.data,de.value.forEach((e,s)=>{$.value.push({resources_id:e.id,resources_name:e.department_resources_name})}),z.value.department_resources_name==null&&$.value.length>0&&Me($.value[0].resources_name,$.value[0].resources_id)):b.error(t.msg)}))};let Ze=_([]);const je=()=>{u.value.devices=[];const t=de.value.find(e=>e.id===u.value.resources_id);we.value=t&&t.time_mode||0,x.value=!0,sl({resource_id:u.value.resources_id}).then(e=>{x.value=!1,e.status?(Ze.value=e.data,u.value.devices.length===0&&e.data.length>0&&(u.value.devices=[e.data[0].id])):b.error(e.msg)})},Dt=()=>{Wt().then(t=>{if(t.status){let k=t.data.datetime.substring(0,10);var e=new Date(k),s=e.getMonth(),d=(s+1)%12,i=e.getFullYear()+((s+1)/12|0),m=e.getDate(),f=new Date(i,d,m);f.getMonth()!==d&&(f=new Date(i,d,0));let M=f.toISOString().split("T")[0];Q.value=[k,M]}})};let ve=_(!1);const Ut=t=>{t?u.value.xingqi=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]:u.value.xingqi=[]},Lt=t=>{X.value=t,Pe(0),He(0)},Pt=t=>{w.value=[],t.forEach((e,s)=>{w.value.push(e.id)}),console.log(w.value)},He=t=>{if(X.value==2){if(u.value.begin_time==""||u.value.end_time=="")return b.error("请先设置时段"),u.value.max_total=0,!1;St(t)}},St=t=>{let e=At(u.value.begin_time,u.value.end_time,t);u.value.max_total=e,Pe(e)};function At(t,e,s){function d(M){const[J,H]=M.split(":").map(Number);return J*60+H}const i=d(t),f=d(e)-i;return Math.floor(f/s)}const We=t=>!t||!Array.isArray(t)?0:t.reduce((e,s)=>e+(Number(s.locked_count)||0),0),zt=t=>{G.value=!0,x.value=!0,Je({id:t.id}).then(e=>{if(x.value=!1,e.status){q.value=e.data;const s=de.value.find(i=>i.id===t.resources_id);q.value.resources_name=s?s.department_resources_name:"";const d=t.time_range||"";q.value.time_range=d,q.value.qudao_total&&q.value.qudao_total.forEach(i=>{i.locked_count===null&&(i.locked_count=0)})}else b.error(e.msg)})},Rt=()=>{let t=[],e=!1;q.value.qudao_total.forEach(s=>{if(!e){if(Number(s.locked_count)<0){b.error(`${s.name} 的占位数量不能为负数`),e=!0;return}if(Number(s.locked_count)>s.count){b.error(`${s.name} 的占位数量不能超过可用数量,最多${s.count}`),e=!0;return}t.push({appointment_type_id:s.appointment_type_id,locked_count:s.locked_count||0})}}),!e&&(x.value=!0,il({roster_id:q.value.id,locked_counts:t}).then(s=>{x.value=!1,s.status?(G.value=!1,b.success("占位设置保存成功"),R()):b.error(s.msg)}))};return Ft(()=>{h.value.date_type=1,It(),Ct(),Dt(),document.addEventListener("mousemove",$e),document.addEventListener("mouseup",Ne)}),Ot(()=>{document.removeEventListener("mousemove",$e),document.removeEventListener("mouseup",Ne)}),(t,e)=>{const s=I("el-option"),d=I("el-select"),i=I("el-form-item"),m=I("el-button"),f=I("el-row"),k=I("el-radio-button"),M=I("el-radio-group"),J=I("Select"),H=I("el-icon"),Ce=I("Edit"),Se=I("Lock"),Ae=I("el-empty"),T=I("el-table-column"),Ie=I("el-tag"),_e=I("el-table"),S=I("el-checkbox"),se=I("el-checkbox-group"),ie=I("el-radio"),U=I("el-input"),ce=I("el-switch"),W=I("el-form"),re=I("el-dialog"),$t=I("el-date-picker"),P=I("el-col"),ge=Gt("loading");return r(),g("div",null,[p("div",dl,[a(f,{style:{display:"flex","justify-content":"end"}},{default:o(()=>[a(i,null,{default:o(()=>[a(d,{filterable:!0,clearable:"",modelValue:n(h).department_id,"onUpdate:modelValue":e[0]||(e[0]=l=>n(h).department_id=l),placeholder:"选择科室",onChange:qt,style:{"margin-left":"8px",width:"150px"}},{default:o(()=>[(r(!0),g(E,null,L(n(Ve),(l,y)=>(r(),B(s,{key:y,label:l.department_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{type:"primary",onClick:e[1]||(e[1]=l=>Le()),style:{"margin-left":"10px"}},{default:o(()=>[...e[45]||(e[45]=[v("添加",-1)])]),_:1}),a(m,{type:"danger",onClick:e[2]||(e[2]=l=>bt()),style:{"margin-left":"10px"}},{default:o(()=>[...e[46]||(e[46]=[v("删除",-1)])]),_:1}),a(m,{type:"success",onClick:e[3]||(e[3]=l=>tt()),style:{"margin-left":"20px"}},{default:o(()=>[...e[47]||(e[47]=[v("生成选中的计划",-1)])]),_:1}),a(m,{type:"warning",onClick:e[4]||(e[4]=l=>rt()),style:{"margin-left":"10px"}},{default:o(()=>[...e[48]||(e[48]=[v("批量禁用",-1)])]),_:1}),a(m,{type:"success",onClick:e[5]||(e[5]=l=>pt()),style:{"margin-left":"10px"}},{default:o(()=>[...e[49]||(e[49]=[v("批量启用",-1)])]),_:1}),a(m,{type:"primary",onClick:e[6]||(e[6]=l=>ft()),style:{"margin-left":"10px"}},{default:o(()=>[...e[50]||(e[50]=[v("批量修改",-1)])]),_:1}),a(m,{type:"warning",onClick:e[7]||(e[7]=l=>ht()),style:{"margin-left":"10px"}},{default:o(()=>[...e[51]||(e[51]=[v("批量占用",-1)])]),_:1})]),_:1})]),a(f,null,{default:o(()=>[a(M,{style:{"margin-bottom":"8px"},modelValue:n(h).date_type,"onUpdate:modelValue":e[8]||(e[8]=l=>n(h).date_type=l),onChange:e[9]||(e[9]=l=>ct())},{default:o(()=>[a(k,{label:1},{default:o(()=>[...e[52]||(e[52]=[v("工作日",-1)])]),_:1}),a(k,{label:2},{default:o(()=>[...e[53]||(e[53]=[v("节假日",-1)])]),_:1})]),_:1},8,["modelValue"]),n(z).time_mode==1&&n(h).date_type==1?(r(),B(M,{key:0,style:{"margin-bottom":"8px","margin-left":"20px"},"text-color":"#fff",fill:"#62bf68",size:"small",modelValue:n(h).type,"onUpdate:modelValue":e[10]||(e[10]=l=>n(h).type=l),onChange:e[11]||(e[11]=l=>gt())},{default:o(()=>[a(k,{label:1},{default:o(()=>[...e[54]||(e[54]=[v("夏令时",-1)])]),_:1}),a(k,{label:2},{default:o(()=>[...e[55]||(e[55]=[v("冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])):C("",!0)]),_:1}),n(h).date_type==1?(r(),g("div",rl,[p("div",pl,[(r(!0),g(E,null,L(n($),(l,y)=>(r(),g("div",{key:y,onClick:c=>Me(l.resources_name,l.resources_id),class:be({"zhenshiButton zhenshiButtonActive":l.resources_name===n(z).department_resources_name,zhenshiButton:l.resources_name!==n(z).department_resources_name})},V(l.resources_name),11,fl))),128))]),ye((r(),g("div",{ref_key:"scrollContainer",ref:Ee,style:{border:"1px solid #efefef",width:"100%",position:"relative","overflow-x":"auto"}},[n(N).length>0?(r(),g("table",ml,[p("tr",vl,[p("td",_l,[e[56]||(e[56]=p("div",{style:{"margin-left":"30px","margin-right":"6px"}},"全选",-1)),p("div",{class:be({"plan_checkAllbox plan_checkAllbox_active":n(F)===1,"plan_checkAllbox ":n(F)===0}),onClick:e[12]||(e[12]=l=>lt())},[n(F)===1?(r(),B(H,{key:0,color:"#ffffff"},{default:o(()=>[a(J)]),_:1})):C("",!0)],2)]),(r(!0),g(E,null,L(n(he),(l,y)=>(r(),g("td",cl,V(l.label),1))),256))]),(r(!0),g(E,null,L(n(N),(l,y)=>(r(),g("tr",{key:y},[(r(!0),g(E,null,L(l,(c,qe)=>(r(),g("td",{key:qe,"data-row":y,"data-col":qe,onMouseover:A=>nt(A,c),onMouseleave:A=>ut(c==null?void 0:c.id),onMousedown:A=>st(A,c,y,qe)},[qe=="time_range"?(r(),g("span",yl,V(c),1)):C("",!0),c.countsInfo&&c.countsInfo.length>0?(r(),g("div",{key:1,class:be({planInfo_k:c.status==1,"planInfo_k planInfo_k_disabled":c.status==0,planInfo_k_selected:fe(c.id)&&c.status==1,planInfo_k_disabled_selected:fe(c.id)&&c.status==0})},[n(Be)==c.id?(r(),g("div",bl,[p("div",{class:"icon_k",onClick:A=>Le(c)},[a(H,{color:"#409eff",size:"20"},{default:o(()=>[a(Ce)]),_:1}),e[57]||(e[57]=p("span",{class:"icon_text"},"编辑",-1))],8,xl),p("div",{class:"icon_k",onClick:A=>zt(c)},[a(H,{color:"#409eff",size:"20"},{default:o(()=>[a(Se)]),_:1}),e[58]||(e[58]=p("span",{class:"icon_text"},"占位",-1))],8,kl)])):C("",!0),p("div",{class:be({"plan_checkbox plan_checkbox_active":fe(c.id),plan_checkbox:!fe(c.id)}),onClick:A=>dt(c.id)},[fe(c.id)?(r(),B(H,{key:0,color:"#ffffff"},{default:o(()=>[a(J)]),_:1})):C("",!0)],10,hl),p("div",wl,[p("div",Vl,[e[59]||(e[59]=p("span",null,"总",-1)),v(V(c.countsInfo[0].max_total),1)]),(r(!0),g(E,null,L(c.countsInfo,(A,Xe)=>(r(),g("div",{key:Xe},[p("span",null,V(A.jiancheng),1),p("span",null,V(A.count),1)]))),128))]),p("div",Cl,[(r(!0),g(E,null,L(c.patient_type_label,(A,Xe)=>(r(),g("div",Il,V(A),1))),256))]),We(c.countsInfo)>0?(r(),g("div",ql," 占:"+V(We(c.countsInfo)),1)):C("",!0)],2)):C("",!0)],40,gl))),128))]))),128))])):C("",!0),n(ee)?(r(),g("div",{key:1,class:"drag-selection-overlay",style:Yt(n(Te))},null,4)):C("",!0),n(N).length==0?(r(),g("div",Ml,[a(Ae,{description:"暂无"})])):C("",!0)])),[[ge,n(x)]])])):C("",!0),n(h).date_type==2?ye((r(),B(_e,{key:1,data:n(ze),border:"",style:{width:"100%"},"row-key":"id",onSelectionChange:Pt},{default:o(()=>[a(T,{type:"selection",width:"55"}),a(T,{prop:"id",label:"Id",width:"70"}),n(h).date_type==1?(r(),B(T,{key:0,prop:"weekname",label:"星期",width:"80"})):C("",!0),C("",!0),a(T,{prop:"department_resources_name",label:"资源",width:"150"}),a(T,{prop:"",label:"服务组","show-overflow-tooltip":"",width:"150"},{default:o(l=>[l.row.devices.length>0?(r(),g("div",Bl,[(r(!0),g(E,null,L(l.row.devices,(y,c)=>(r(),g("div",{key:c,class:be(y.status==1&&y.is_del==0?"":"hongzi")},V(y.device_name),3))),128))])):C("",!0)]),_:1}),a(T,{prop:"period_name",label:"时段",width:"100"}),a(T,{prop:"begin_time",label:"开始时间",width:"100"}),a(T,{prop:"end_time",label:"结束时间",width:"100"}),a(T,{prop:"",label:"类型数量","show-overflow-tooltip":""},{default:o(l=>[l.row.countsInfo.length>0?(r(),g("div",Tl,[p("div",El,"最大数量:"+V(l.row.countsInfo[0].max_total),1),(r(!0),g(E,null,L(l.row.countsInfo,(y,c)=>(r(),g("div",{key:c},V(y.name)+":"+V(y.count),1))),128))])):C("",!0)]),_:1}),a(T,{prop:"end_reservation_time",label:"预约截止时间",width:"120"}),a(T,{prop:"roster_status",label:"状态",width:"80"},{default:o(l=>[l.row.status===1?(r(),B(Ie,{key:0,class:"ml-2",type:"success"},{default:o(()=>[...e[60]||(e[60]=[v("正常",-1)])]),_:1})):C("",!0),l.row.status===0?(r(),B(Ie,{key:1,class:"ml-2",type:"danger"},{default:o(()=>[...e[61]||(e[61]=[v("关闭",-1)])]),_:1})):C("",!0)]),_:1}),a(T,{prop:"",label:"操作",width:"80"},{default:o(l=>[a(m,{type:"primary",onClick:y=>Le(l.row),size:"small",style:{"margin-left":"10px"}},{default:o(()=>[...e[62]||(e[62]=[v("修改 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ge,n(x)]]):C("",!0),a(re,{modelValue:n(j),"onUpdate:modelValue":e[29]||(e[29]=l=>D(j)?j.value=l:j=l),title:"时间段("+n(Ue)+")",width:"45%"},{footer:o(()=>[p("span",jl,[a(m,{onClick:e[28]||(e[28]=l=>D(j)?j.value=!1:j=!1)},{default:o(()=>[...e[78]||(e[78]=[v("取消",-1)])]),_:1}),a(m,{type:"primary",onClick:yt},{default:o(()=>[...e[79]||(e[79]=[v(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ye((r(),B(W,{ref_key:"PlanInfoForm",ref:_t,model:n(u),"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[n(h).date_type==1?(r(),B(i,{key:0,label:"星期:",prop:"xingqi"},{default:o(()=>[a(S,{disabled:n(u).id!=0,style:{"margin-right":"8px"},modelValue:n(ve),"onUpdate:modelValue":e[13]||(e[13]=l=>D(ve)?ve.value=l:ve=l),onChange:Ut,label:"全选"},{default:o(()=>[...e[63]||(e[63]=[p("span",{style:{"font-weight":"700",color:"#409eff"}},"全选",-1)])]),_:1},8,["disabled","modelValue"]),a(se,{modelValue:n(u).xingqi,"onUpdate:modelValue":e[14]||(e[14]=l=>n(u).xingqi=l)},{default:o(()=>[(r(!0),g(E,null,L(n(he),(l,y)=>(r(),B(S,{disabled:n(u).id!=0,key:y,label:l.label},{default:o(()=>[v(V(l.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])]),_:1})):C("",!0),a(i,{label:"渠道名额:"},{default:o(()=>[p("div",Dl,[p("div",null,[a(M,{modelValue:n(X),"onUpdate:modelValue":e[15]||(e[15]=l=>D(X)?X.value=l:X=l),onChange:Lt},{default:o(()=>[a(ie,{label:"1"},{default:o(()=>[...e[64]||(e[64]=[v("根据总量",-1)])]),_:1}),a(ie,{style:{"margin-left":"-10px"},label:"2"},{default:o(()=>[...e[65]||(e[65]=[v("根据时长(分钟)",-1)])]),_:1})]),_:1},8,["modelValue"])]),p("div",Ul,[n(X)==1?(r(),B(U,{key:0,style:{width:"220px"},onInput:Pe,type:"number",modelValue:n(u).max_total,"onUpdate:modelValue":e[16]||(e[16]=l=>n(u).max_total=l),min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue"])):C("",!0),n(X)==2?(r(),B(U,{key:1,style:{width:"220px"},onInput:He,type:"number",modelValue:n(u).time_long,"onUpdate:modelValue":e[17]||(e[17]=l=>n(u).time_long=l),min:1,placeholder:"0",oninput:"value=value.replace(/^0|[^0-9]/g, '')"},null,8,["modelValue"])):C("",!0)]),e[66]||(e[66]=p("div",{style:{"font-size":"12px",color:"#999"}},"设置渠道比例可自动分配",-1))]),p("div",null,[(r(!0),g(E,null,L(n(u).qudao_total,(l,y)=>(r(),g("div",{class:"qudao_k",key:y},[p("div",Ll,V(l.name),1),p("div",Pl,[a(U,{type:"number",modelValue:n(u).qudao_total[y].count,"onUpdate:modelValue":c=>n(u).qudao_total[y].count=c,min:0,placeholder:"0",oninput:"value=value.replace(/[^0-9]/g, '')"},null,8,["modelValue","onUpdate:modelValue"]),p("div",Sl,V(l.ratio)+"%",1)])]))),128))])]),_:1}),a(i,{label:"时间设置:"},{default:o(()=>[p("div",null,[e[71]||(e[71]=v("选择时段: ",-1)),a(d,{filterable:!0,clearable:"",modelValue:n(u).period_id,"onUpdate:modelValue":e[18]||(e[18]=l=>n(u).period_id=l),onChange:Tt,placeholder:"选择时段",style:{width:"200px","margin-left":"8px","margin-bottom":"4px"}},{default:o(()=>[(r(!0),g(E,null,L(n(Ge),(l,y)=>(r(),B(s,{key:y,label:l.period_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),p("div",Al,[p("div",null,[p("div",zl,[e[67]||(e[67]=p("div",{style:{width:"70px"}},"开始时间:",-1)),p("div",Rl,[a(U,{modelValue:n(u).begin_time,"onUpdate:modelValue":e[19]||(e[19]=l=>n(u).begin_time=l),placeholder:"开始时间"},null,8,["modelValue"])])]),p("div",$l,[e[68]||(e[68]=p("div",{style:{width:"70px"}},"结束时间:",-1)),p("div",Nl,[a(U,{modelValue:n(u).end_time,"onUpdate:modelValue":e[20]||(e[20]=l=>n(u).end_time=l),placeholder:"结束时间"},null,8,["modelValue"])])])]),p("div",Fl,[p("div",Ol,[e[69]||(e[69]=p("div",{style:{width:"90px"}},"停止预约时间:",-1)),p("div",Gl,[a(U,{modelValue:n(u).end_reservation_time,"onUpdate:modelValue":e[21]||(e[21]=l=>n(u).end_reservation_time=l),placeholder:"停止预约时间"},null,8,["modelValue"])])]),p("div",Yl,[e[70]||(e[70]=p("div",{style:{width:"90px"}},"可用时间长度:",-1)),p("div",Zl,[a(U,{modelValue:n(u).time_unit,"onUpdate:modelValue":e[22]||(e[22]=l=>n(u).time_unit=l),placeholder:"可用时间长度"},null,8,["modelValue"])])])])])])]),_:1}),C("",!0),n(we)===1&&n(h).date_type===1?(r(),B(i,{key:2,label:"时令:"},{default:o(()=>[a(M,{modelValue:n(u).type,"onUpdate:modelValue":e[24]||(e[24]=l=>n(u).type=l)},{default:o(()=>[a(ie,{label:1},{default:o(()=>[...e[72]||(e[72]=[p("span",{style:{color:"#E6A23C"}},"夏令时",-1)])]),_:1}),a(ie,{label:2},{default:o(()=>[...e[73]||(e[73]=[p("span",{style:{color:"#409EFF"}},"冬令时",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):C("",!0),C("",!0),a(i,{label:"病人类型:"},{default:o(()=>[a(se,{modelValue:n(u).patientType,"onUpdate:modelValue":e[26]||(e[26]=l=>n(u).patientType=l)},{default:o(()=>[a(S,{label:"0"},{default:o(()=>[...e[74]||(e[74]=[v("住院",-1)])]),_:1}),a(S,{label:"1"},{default:o(()=>[...e[75]||(e[75]=[v("门诊",-1)])]),_:1}),a(S,{label:"2"},{default:o(()=>[...e[76]||(e[76]=[v("急诊",-1)])]),_:1}),a(S,{label:"3"},{default:o(()=>[...e[77]||(e[77]=[v("体检",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"状态:"},{default:o(()=>[a(ce,{modelValue:n(u).status,"onUpdate:modelValue":e[27]||(e[27]=l=>n(u).status=l),size:"large","active-text":"正常","inactive-text":"关闭","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[ge,n(x)]])]),_:1},8,["modelValue","title"]),a(re,{modelValue:n(O),"onUpdate:modelValue":e[33]||(e[33]=l=>D(O)?O.value=l:O=l),title:"生成计划",width:"50%"},{footer:o(()=>[p("span",Hl,[a(m,{onClick:e[32]||(e[32]=l=>D(O)?O.value=!1:O=!1)},{default:o(()=>[...e[80]||(e[80]=[v("取消",-1)])]),_:1}),a(m,{type:"primary",onClick:vt},{default:o(()=>[...e[81]||(e[81]=[v(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ye((r(),B(W,{"label-width":"100px",style:{"padding-right":"40px"}},{default:o(()=>[a(i,{label:"选择时间范围:"},{default:o(()=>[a($t,{modelValue:n(Q),"onUpdate:modelValue":e[30]||(e[30]=l=>D(Q)?Q.value=l:Q=l),type:"daterange","range-separator":"To","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),a(i,{label:"节假日生成:"},{default:o(()=>[a(ce,{modelValue:n(me),"onUpdate:modelValue":e[31]||(e[31]=l=>D(me)?me.value=l:me=l),size:"large","active-text":"是","inactive-text":"否","active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1})),[[ge,n(x)]])]),_:1},8,["modelValue"]),a(re,{modelValue:n(K),"onUpdate:modelValue":e[35]||(e[35]=l=>D(K)?K.value=l:K=l),title:"时段冲突 - 生成失败",width:"60%"},{footer:o(()=>[p("span",Wl,[a(m,{type:"primary",onClick:e[34]||(e[34]=l=>D(K)?K.value=!1:K=!1)},{default:o(()=>[...e[82]||(e[82]=[v("确定",-1)])]),_:1})])]),default:o(()=>[e[83]||(e[83]=p("div",{style:{"margin-bottom":"12px",color:"#f56c6c"}}," 以下模板与已有号源存在时段冲突,生成已取消,请调整后重试: ",-1)),a(_e,{data:n(Re),border:"",stripe:"","max-height":"400"},{default:o(()=>[a(T,{prop:"date",label:"日期",width:"120"}),a(T,{prop:"weekname",label:"星期",width:"80"}),a(T,{prop:"new_time",label:"模板时段",width:"150"}),a(T,{prop:"existing_time",label:"已有号源时段",width:"150"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),a(re,{modelValue:n(G),"onUpdate:modelValue":e[37]||(e[37]=l=>D(G)?G.value=l:G=l),title:"占位设置",width:"40%"},{footer:o(()=>[p("span",la,[a(m,{onClick:e[36]||(e[36]=l=>D(G)?G.value=!1:G=!1)},{default:o(()=>[...e[84]||(e[84]=[v("取消",-1)])]),_:1}),a(m,{type:"primary",onClick:Rt},{default:o(()=>[...e[85]||(e[85]=[v(" 确定 ",-1)])]),_:1})])]),default:o(()=>[ye((r(),g("div",null,[n(q)?(r(),B(W,{key:0,"label-width":"120px",style:{"padding-right":"40px"}},{default:o(()=>[a(i,{label:"模板ID:"},{default:o(()=>[v(V(n(q).id),1)]),_:1}),a(i,{label:"资源:"},{default:o(()=>[v(V(n(q).resources_name),1)]),_:1}),a(i,{label:"时间段:"},{default:o(()=>[v(V(n(q).begin_time?n(q).begin_time.substring(0,5):"")+" - "+V(n(q).end_time?n(q).end_time.substring(0,5):""),1)]),_:1}),a(i,{label:"星期:"},{default:o(()=>[v(V(n(q).weekname),1)]),_:1}),a(i,{label:"渠道占位:"},{default:o(()=>[p("div",Xl,[n(q).qudao_total&&n(q).qudao_total.length>0?(r(!0),g(E,{key:0},L(n(q).qudao_total,(l,y)=>(r(),g(E,{key:y},[l&&l.count!==0?(r(),g("div",Kl,[p("div",Jl,V(l.name),1),p("div",Ql,[a(U,{type:"number",modelValue:n(q).qudao_total[y].locked_count,"onUpdate:modelValue":c=>n(q).qudao_total[y].locked_count=c,placeholder:"占位数量",min:"0",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),p("div",ea," 可用: "+V(l.count),1)])):C("",!0)],64))),128)):(r(),g("div",ta," 暂无渠道数据 "))])]),_:1})]),_:1})):C("",!0)])),[[ge,n(x)]])]),_:1},8,["modelValue"]),a(re,{modelValue:n(Y),"onUpdate:modelValue":e[41]||(e[41]=l=>D(Y)?Y.value=l:Y=l),title:"批量修改",width:"45%","close-on-click-modal":!1},{footer:o(()=>[a(m,{onClick:e[39]||(e[39]=l=>D(Y)?Y.value=!1:Y=!1),disabled:n(le)},{default:o(()=>[...e[94]||(e[94]=[v("取消",-1)])]),_:1},8,["disabled"]),a(m,{type:"primary",onClick:e[40]||(e[40]=l=>mt()),disabled:n(le)},{default:o(()=>[...e[95]||(e[95]=[v("确定修改",-1)])]),_:1},8,["disabled"])]),default:o(()=>[p("div",null,[p("div",aa,"已选 "+V(n(w).length)+" 条号源明细",1),a(W,{"label-width":"100px"},{default:o(()=>[a(f,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[a(P,{span:6},{default:o(()=>[...e[86]||(e[86]=[v("渠道名称",-1)])]),_:1}),a(P,{span:8},{default:o(()=>[...e[87]||(e[87]=[v("数量",-1)])]),_:1})]),_:1}),(r(!0),g(E,null,L(n(De),(l,y)=>(r(),B(f,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[a(P,{span:6,style:{"line-height":"32px"}},{default:o(()=>[v(V(l.name),1)]),_:2},1024),a(P,{span:8},{default:o(()=>[a(U,{modelValue:n(ae)[y].count,"onUpdate:modelValue":c=>n(ae)[y].count=c,modelModifiers:{number:!0},placeholder:"数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128)),a(f,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[a(P,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[88]||(e[88]=[v("合计",-1)])]),_:1}),a(P,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[v("数量: "+V(Fe.value),1)]),_:1})]),_:1})]),_:1}),p("div",oa,[e[93]||(e[93]=p("div",{style:{"margin-bottom":"8px","font-weight":"600",color:"#333","font-size":"13px"}},"病人类型",-1)),a(se,{modelValue:n(oe),"onUpdate:modelValue":e[38]||(e[38]=l=>D(oe)?oe.value=l:oe=l)},{default:o(()=>[a(S,{label:"0"},{default:o(()=>[...e[89]||(e[89]=[v("住院",-1)])]),_:1}),a(S,{label:"1"},{default:o(()=>[...e[90]||(e[90]=[v("门诊",-1)])]),_:1}),a(S,{label:"2"},{default:o(()=>[...e[91]||(e[91]=[v("急诊",-1)])]),_:1}),a(S,{label:"3"},{default:o(()=>[...e[92]||(e[92]=[v("体检",-1)])]),_:1})]),_:1},8,["modelValue"])])])]),_:1},8,["modelValue"]),a(re,{modelValue:n(Z),"onUpdate:modelValue":e[44]||(e[44]=l=>D(Z)?Z.value=l:Z=l),title:"批量占用",width:"45%","close-on-click-modal":!1},{footer:o(()=>[a(m,{onClick:e[42]||(e[42]=l=>D(Z)?Z.value=!1:Z=!1),disabled:n(ne)},{default:o(()=>[...e[100]||(e[100]=[v("取消",-1)])]),_:1},8,["disabled"]),a(m,{type:"warning",onClick:e[43]||(e[43]=l=>wt()),disabled:n(ne)},{default:o(()=>[...e[101]||(e[101]=[v("确定占用",-1)])]),_:1},8,["disabled"])]),default:o(()=>[p("div",null,[p("div",na,"已选 "+V(n(w).length)+" 条号源明细",1),a(W,{"label-width":"100px"},{default:o(()=>[a(f,{gutter:10,style:{"margin-bottom":"6px","font-weight":"600",color:"#333","font-size":"13px"}},{default:o(()=>[a(P,{span:6},{default:o(()=>[...e[96]||(e[96]=[v("渠道名称",-1)])]),_:1}),a(P,{span:8},{default:o(()=>[...e[97]||(e[97]=[v("占用数量",-1)])]),_:1}),a(P,{span:8},{default:o(()=>[...e[98]||(e[98]=[v("提示",-1)])]),_:1})]),_:1}),(r(!0),g(E,null,L(n(pe),(l,y)=>(r(),B(f,{key:y,gutter:10,style:{"margin-bottom":"10px"}},{default:o(()=>[a(P,{span:6,style:{"line-height":"32px"}},{default:o(()=>[v(V(l.name),1)]),_:2},1024),a(P,{span:8},{default:o(()=>[a(U,{modelValue:n(ue)[y].locked_count,"onUpdate:modelValue":c=>n(ue)[y].locked_count=c,modelModifiers:{number:!0},placeholder:"占用数量",size:"default",oninput:"value=value.replace(/[^0-9]/g,'')",onInput:c=>kt(y,c)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),_:2},1024),a(P,{span:8,style:{"line-height":"32px","font-size":"12px",color:"#999"}},{default:o(()=>{var c;return[((c=n(ke)[l.id])==null?void 0:c.maxValue)!==null?(r(),g(E,{key:0},[v(" 最大可占: "+V(n(ke)[l.id].maxValue),1)],64)):C("",!0)]}),_:2},1024)]),_:2},1024))),128)),a(f,{gutter:10,style:{"border-top":"1px solid #eee","padding-top":"10px"}},{default:o(()=>[a(P,{span:6,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[...e[99]||(e[99]=[v("合计",-1)])]),_:1}),a(P,{span:8,style:{"line-height":"32px","font-weight":"600"}},{default:o(()=>[v("占用: "+V(it.value),1)]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"])])}}},da=Nt(ua,[["__scopeId","data-v-7cfb3a92"]]);export{da as default};