@yxhl/specter-pui-vtk 1.0.47 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (function(j,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("axios"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","axios","pinia"],e):(j=typeof globalThis<"u"?globalThis:j||self,e(j.SpecterPuiVtk={},j.Vue,j.axios,j.Pinia))})(this,(function(j,e,it,ct){"use strict";var Ne=typeof document<"u"?document.currentScript:null;const le={},ye=(t="local")=>t=="local"?window.localStorage:window.sessionStorage;le.get=(t,o="local")=>{var a=ye(o).getItem(t);return/^[\\{|\\[].+[\\}|\\]]$/.test(a)?JSON.parse(a):a},le.set=(t,o,a="local")=>{o=o.constructor===Object?JSON.stringify(o):o,ye(a).setItem(t,o)},le.remove=(t,o="local")=>{ye(o).removeItem(t)},le.clear=(t="local")=>{ye(t).clear()};const oe=ct.defineStore("message",{state:()=>({alert:{isActive:!1,options:{title:"",text:"",color:"",width:500}},confirm:{isActive:!1,options:{title:"",text:"",color:"",width:400,cancelText:"取消",confirmText:"确定"}},loading:{isActive:!1,options:{title:"",text:"",color:"",width:300,indeterminate:!0,value:0,progressColor:"primary",size:64,circleWidth:6}},prompt:{isActive:!1,options:{title:"",text:"",color:"",width:500,label:"",placeholder:"",inputType:"text",cancelText:"取消",confirmText:"确定"}},toast:{isActive:!1,options:{text:"",color:"",timeout:3e3,position:"top"}}}),actions:{hide(t){this[t]&&(this[t].isActive=!1)},show(t,o){this[t]&&(this[t]={isActive:!0,options:o})}}}),G={alert(t){oe().show("alert",t)},confirm(t){oe().show("confirm",t)},loading:{show(t={}){const o=oe(),a={title:"",text:"",color:"",width:120,indeterminate:!0,progressColor:"primary",size:64,circleWidth:6};o.show("loading",{...a,...t})},hide(){oe().hide("loading")}},prompt(t){oe().show("prompt",t)},toast(t,o={}){const a=oe(),s=typeof t=="string"?{text:t,...o}:t;a.show("toast",s)},hide(t){oe().hide(t)}},Ce=it.create({baseURL:window.VITE_APP_API_URL||void 0||"",headers:{"X-Requested-With":"XMLHttpRequest"},withCredentials:!1,timeout:3e4});Ce.interceptors.request.use(t=>{var a,s;const o=((s=(a=window.VTK_CONFIG)==null?void 0:a.storageKeys)==null?void 0:s.token)||"_mis_acis_token";return le.get(o)&&(t.headers["X-Token"]="1b0679be72ad976ad5d491ad57a5eec0",t.headers.Authorization="Bearer "+le.get(o)),t},t=>(G.toast(t.message||"请求错误"),Promise.reject(t))),Ce.interceptors.response.use(t=>{let o=t.data,a=t.headers["content-disposition"];if(a!=null&&a.split(";")[0]=="attachment"&&(o=t),t.status!==200)return G.toast(o.message||"请求失败",{color:"error"}),Promise.reject(new Error(o.message||"请求失败"));if(o.meta&&!o.meta.success&&o.meta.message==="specter_authorize_exception"){le.clear();const s=()=>{const r=window.location.href,d=r.indexOf("#");let n;d>-1?n=r.substring(0,d)+"#/":n=r+"#/",window.location.href=n};G.confirm({title:"提示",text:"对不起,您的登录信息过期!",onConfirm:s,onCancel:s})}return Promise.resolve(o)},t=>(console.log("err"+t),G.toast(t.message||"网络错误",{color:"error"}),Promise.reject(t)));const W={};W.http=(t,o={},a="GET",s={"content-type":"application/x-www-form-urlencoded"},r=null)=>s["content-type"]==="application/x-www-form-urlencoded"?Ce({url:t,params:o,method:a,headers:s,responseType:r}):Ce({url:t,data:o,method:a,headers:s,responseType:r}),W.getForm=(t,o={})=>W.http(t,o),W.postForm=(t,o={})=>W.http(t,o,"POST"),W.getJson=(t,o={})=>W.http(t,o,"POST",{"content-type":"application/json"}),W.postJson=(t,o={})=>W.http(t,o,"POST",{"content-type":"application/json"}),W.imp=(t,o={})=>W.http(t,o,"POST",{"Content-Type":"multipart/form-data"}),W.exp=(t,o={})=>W.http(t,o,"POST",{"content-Type":"application/json"},"blob");const Q=(t,o)=>{const a=t.__vccOpts||t;for(const[s,r]of o)a[s]=r;return a},dt={class:"d-inline-block d-flex"},we=Q(Object.assign({name:"VtkArea",inheritAttrs:!1},{__name:"VtkArea",props:{maxArea:{type:Number,default:12},minArea:{type:Number,default:null},areaStyle:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:a}=e.getCurrentInstance(),s=o,r=e.reactive({area2:null,area4:null,area6:null,area9:null,area12:null,name2:"",name4:"",name6:"",name9:"",name12:""}),d=e.ref({areacode:""}),n=e.reactive({area2:[],area4:[],area6:[],area9:[],area12:[]});e.onMounted(()=>{var c,m;const l=((m=(c=window.VTK_CONFIG)==null?void 0:c.storageKeys)==null?void 0:m.user)||"_mis_acis_users";d.value=typeof a.$vtk.storage.get(l)!="object"?JSON.parse(a.$vtk.storage.get(l)):a.$vtk.storage.get(l)||"",d.value&&f()});const f=()=>{var l,c;try{a.$vtk.message.loading.show(),W.postForm(`/dict/area/show/${d.value.areacode}`).then(m=>{var w,P;a.$vtk.message.loading.hide(),m.meta.success?(r[`area${m.data.areaLeve}`]=m.data.areaCode,r.name2=m.data.province,r.name4=m.data.city,r.name6=m.data.district,r.name9=(w=m.data)==null?void 0:w.town,r.name12=(P=m.data)==null?void 0:P.village,V(d.value.areacode)):a.$vtk.message.toast(m.meta.message)}).catch(m=>{a.$vtk.message.loading.hide(),a.$vtk.message.toast("加载区域数据失败")})}catch(m){console.error("初始化区域数据失败:",m),(c=(l=a.$vtk.message)==null?void 0:l.loading)!=null&&c.hide&&a.$vtk.message.loading.hide()}},V=(l,c)=>{p(l),(l==null?void 0:l.length)<12&&W.postForm(`/dict/area/next/${l}`).then(m=>{a.$vtk.message.loading.hide(),m.meta.success?(c&&Object.keys(n).slice(c,5).forEach(w=>{n[w]=[],r[w]=null}),n[`area${m.data[0].areaLeve}`]=m.data):a.$vtk.message.toast(m.meta.message)}).catch(m=>{console.error("加载下级区域数据失败:",m),a.$vtk.message.toast("加载下级区域数据失败")})},g=l=>{let c=Object.keys(n);p(r[c[l-2]]),c.slice(l,5).forEach(m=>{n[m]=[],r[m]=null})},p=l=>{l&&s("update:modelValue",l)};return(l,c)=>{var w,P,A,_,k,h,b,$,z,B;const m=e.resolveComponent("VSelect");return e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(m,{modelValue:r.area2,"onUpdate:modelValue":[c[0]||(c[0]=y=>r.area2=y),c[1]||(c[1]=y=>V(r.area2,1))],"onClick:clear":c[2]||(c[2]=y=>g(1)),placeholder:((w=d.value.areacode)==null?void 0:w.length)>=2?r.name2:"---省级---",items:n.area2,"item-title":"areaName","item-value":"areaCode",class:"d-inline-block sel_box mr-3","hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((P=d.value.areacode)==null?void 0:P.length)>=2,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","disabled","style"]),t.maxArea>=4?(e.openBlock(),e.createBlock(m,{key:0,modelValue:r.area4,"onUpdate:modelValue":[c[3]||(c[3]=y=>r.area4=y),c[4]||(c[4]=y=>V(r.area4,2))],"onClick:clear":c[5]||(c[5]=y=>g(2)),placeholder:((A=d.value.areacode)==null?void 0:A.length)>=4?r.name4:"---市级---",items:n.area4,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>4&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((_=d.value.areacode)==null?void 0:_.length)>=4,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=6?(e.openBlock(),e.createBlock(m,{key:1,modelValue:r.area6,"onUpdate:modelValue":[c[6]||(c[6]=y=>r.area6=y),c[7]||(c[7]=y=>V(r.area6,3))],"onClick:clear":c[8]||(c[8]=y=>g(3)),placeholder:((k=d.value.areacode)==null?void 0:k.length)>=6?r.name6:"---区/县---",items:n.area6,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>6&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((h=d.value.areacode)==null?void 0:h.length)>=6,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=9?(e.openBlock(),e.createBlock(m,{key:2,modelValue:r.area9,"onUpdate:modelValue":[c[9]||(c[9]=y=>r.area9=y),c[10]||(c[10]=y=>V(r.area9,4))],"onClick:clear":c[11]||(c[11]=y=>g(4)),placeholder:((b=d.value.areacode)==null?void 0:b.length)>=9?r.name9:"---街/镇---",items:n.area9,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>9&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:(($=d.value.areacode)==null?void 0:$.length)>=9,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=12?(e.openBlock(),e.createBlock(m,{key:3,modelValue:r.area12,"onUpdate:modelValue":[c[12]||(c[12]=y=>r.area12=y),c[13]||(c[13]=y=>V(r.area12,5))],"onClick:clear":c[14]||(c[14]=y=>g(5)),placeholder:((z=d.value.areacode)==null?void 0:z.length)>=12?r.name12:"---村/社---",items:n.area12,"item-title":"areaName","item-value":"areaCode",class:"d-inline-block",style:e.normalizeStyle([{width:"188px"},t.areaStyle]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((B=d.value.areacode)==null?void 0:B.length)>=12,"menu-props":{offsetY:!0}},null,8,["modelValue","placeholder","items","disabled","style"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-644cffae"]]),mt={class:"btn-text"},pt={class:"pt-3 px-3"},be=Q({__name:"VtkAreaTabs",props:{modelValue:{type:String,default:null},minArea:{type:Number,default:null},areaNode:{type:Number,default:null}},emits:["update:modelValue","change"],setup(t,{emit:o}){const a=t,s=o,{proxy:r}=e.getCurrentInstance(),d=e.ref(!1),n=e.ref({}),f=e.ref(0),V=e.ref([]),g=e.ref([]),p=e.ref([]),l=e.ref([]),c=e.ref(null),m=e.ref(""),w=e.ref(""),P=B=>{r.$vtk.request.getForm(`/dict/area/show/${B}`).then(y=>{let D=y.data.province?`${y.data.province}`:"",U=y.data.city?`/${y.data.city}`:"",O=y.data.district?`/${y.data.district}`:"",I=y.data.town?`/${y.data.town}`:"",K=y.data.village?`/${y.data.village}`:"";w.value=`${D}${U}${O}${I}${K}`,a.areaNode&&a.areaNode>0&&(w.value=w.value.split("/").slice(-a.areaNode).join("/"))})},A=B=>{p.value=[...g.value[B]],B<l.value.length?c.value=p.value.findIndex(y=>y.areaCode==l.value[B].areaCode):c.value=null},_=(B,y)=>{l.value=l.value.slice(0,y),l.value.push(B),g.value=g.value.slice(0,y+1),V.value.length>f.value+1&&(!a.minArea||a.minArea>B.areaCode.length)&&(k(B.areaCode),f.value++)},k=B=>{r.$vtk.request.getForm(`/dict/area/next/${B}`).then(y=>{p.value=y.data,g.value.push(y.data),c.value=null,e.nextTick()})},h=B=>{l.value=[],V.value=[{text:"省级",leve:"2"},{text:"市级",leve:"4"},{text:"区县",leve:"6"},{text:"街镇",leve:"9"},{text:"村社",leve:"12"}].filter(y=>y.leve>=n.value.areacode.length),g.value=[],r.$vtk.request.getForm(`/dict/area/show/${B}`).then(y=>{p.value=[{areaName:y.data.areaName,areaCode:y.data.areaCode}],g.value.push(p.value),l.value.push(p.value[0])})},b=()=>{let B=[],y=[];l.value.forEach(D=>{B.push(D.areaName),y.push(D.areaCode),m.value=D.areaCode}),a.areaNode&&a.areaNode>0&&(B=B.slice(-a.areaNode)),w.value=B.join().replace(/,/g,"/"),s("update:modelValue",m.value),s("change"),z()},$=()=>{f.value=0,h(n.value.areacode),m.value=n.value.areacode,s("update:modelValue",m.value),s("change")},z=()=>{d.value=!1};return e.watch(()=>a.modelValue,(B,y)=>{B&&B!=y&&P(B)}),e.onMounted(()=>{var y,D;const B=((D=(y=window.VTK_CONFIG)==null?void 0:y.storageKeys)==null?void 0:D.user)||"_mis_acis_users";n.value=r.$vtk.storage.get(B)&&JSON.parse(r.$vtk.storage.get(B)),n.value&&n.value.areacode&&h(n.value.areacode),a.modelValue&&P(a.modelValue)}),(B,y)=>{const D=e.resolveComponent("v-icon"),U=e.resolveComponent("v-btn"),O=e.resolveComponent("v-tab"),I=e.resolveComponent("v-tabs"),K=e.resolveComponent("v-chip"),Y=e.resolveComponent("v-chip-group"),q=e.resolveComponent("v-sheet"),S=e.resolveComponent("v-spacer"),x=e.resolveComponent("v-card-actions"),F=e.resolveComponent("v-card"),R=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(R,{modelValue:d.value,"onUpdate:modelValue":y[2]||(y[2]=L=>d.value=L),"close-on-content-click":!1,"max-width":"520","min-width":"520"},{activator:e.withCtx(({props:L})=>[e.createVNode(U,e.mergeProps(L,{variant:"outlined",color:"primary",class:"area-select-btn",style:B.$attrs.styles}),{default:e.withCtx(()=>[e.createElementVNode("span",mt,e.toDisplayString(w.value||"选择地区"),1),w.value?(e.openBlock(),e.createBlock(D,{key:0,size:"small",onClick:e.withModifiers($,["stop"]),class:"ml-2"},{default:e.withCtx(()=>[...y[3]||(y[3]=[e.createTextVNode("mdi-close-circle",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1},16,["style"])]),default:e.withCtx(()=>[e.createVNode(F,{elevation:"0",style:{width:"350px"}},{default:e.withCtx(()=>[e.createElementVNode("p",pt,[e.createVNode(D,{color:"primary",class:"mr-1",size:"20"},{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("mdi-map-marker-radius",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,L=>(e.openBlock(),e.createElementBlock("span",{key:L.areaCode,class:"link text-body-2 text-primary"},e.toDisplayString(L.areaName),1))),128))]),e.createVNode(q,{class:"rounded-lg mx-3 mt-2",color:"#b1b1b117"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:f.value,"onUpdate:modelValue":[y[0]||(y[0]=L=>f.value=L),A],class:"pt-2 px-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(L,J)=>e.withDirectives((e.openBlock(),e.createBlock(O,{key:J,class:"mx-1",style:e.normalizeStyle(f.value==J&&"color:white;opacity:1"),disabled:g.value.length<=J+1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.text),1)]),_:2},1032,["style","disabled"])),[[e.vShow,t.minArea?t.minArea>=L.leve:!0]])),128))]),_:1},8,["modelValue"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(L,J)=>e.withDirectives((e.openBlock(),e.createBlock(q,{key:J,class:"px-3 py-1","min-height":"100",color:"rgba(0,0,0,0)"},{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:c.value,"onUpdate:modelValue":y[1]||(y[1]=ae=>c.value=ae),"selected-class":"chipActive",column:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,ae=>(e.openBlock(),e.createBlock(K,{key:ae.id,onClick:re=>_(ae,J),class:e.normalizeClass(["rounded",ae.areaCode==n.value.areacode&&"active"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ae.areaName),1)]),_:2},1032,["onClick","class"]))),128))]),_:2},1032,["modelValue"])]),_:2},1024)),[[e.vShow,J==f.value]])),128))]),_:1}),e.createVNode(x,{class:"pr-0 py-3"},{default:e.withCtx(()=>[e.createVNode(S),e.createVNode(U,{onClick:z,elevation:"0",size:"small"},{default:e.withCtx(()=>[e.createVNode(D,{class:"pt-1 pr-1"},{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("mdi-progress-close",-1)])]),_:1}),y[6]||(y[6]=e.createTextVNode(" 取消",-1))]),_:1}),e.createVNode(U,{onClick:b,class:"text-white mr-3",color:"primary",elevation:"0",size:"small"},{default:e.withCtx(()=>[e.createVNode(D,{class:"pt-1 pr-1"},{default:e.withCtx(()=>[...y[7]||(y[7]=[e.createTextVNode("mdi-progress-check",-1)])]),_:1}),y[8]||(y[8]=e.createTextVNode(" 确定",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-a19b8a88"]]),ft={class:"vtk-breadcrumb-wrapper d-flex align-center justify-space-between"},Se=Q({__name:"VtkBreadcrumb",props:{items:{type:Array,default:()=>[]},showBack:{type:Boolean,default:!0},backText:{type:String,default:"返回"},backTo:{type:[String,Object],default:null}},emits:["back"],setup(t,{emit:o}){const a=t,s=o,r=e.inject("router",null),d=e.inject("route",null),n=e.computed(()=>{var p,l;if(a.items&&a.items.length>0)return a.items.map((c,m)=>({title:c.title||c.text||c.name,to:c.to||c.path||c.href,disabled:c.disabled!==void 0?c.disabled:m===a.items.length-1}));if(!d)return[];const V=((p=d.matched)==null?void 0:p.filter(c=>c.meta&&c.meta.breadcrumb))||[];if(V.length>0)return V.map((c,m)=>({title:c.meta.breadcrumb,to:c.path,disabled:m===V.length-1}));const g=((l=d.path)==null?void 0:l.split("/").filter(c=>c))||[];return g.map((c,m)=>{const w="/"+g.slice(0,m+1).join("/");return{title:c.charAt(0).toUpperCase()+c.slice(1),to:w,disabled:m===g.length-1}})}),f=()=>{s("back"),r&&(a.backTo?(a.backTo,r.push(a.backTo)):r.back())};return(V,g)=>{const p=e.resolveComponent("v-icon"),l=e.resolveComponent("v-breadcrumbs-item"),c=e.resolveComponent("v-breadcrumbs"),m=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(c,{items:n.value,class:"pa-0"},{divider:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[...g[0]||(g[0]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),item:e.withCtx(({item:w})=>[e.createVNode(l,{title:w.title,to:w.to,disabled:w.disabled,class:e.normalizeClass({"text-primary":!w.disabled})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.title),1)]),_:2},1032,["title","to","disabled","class"])]),_:1},8,["items"]),t.showBack?(e.openBlock(),e.createBlock(m,{key:0,variant:"text",color:"primary","prepend-icon":"mdi-arrow-left",onClick:f,style:{height:"36px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.backText),1)]),_:1})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-e7eb4d1f"]]),Be=Q(Object.assign({name:"VtkCheckbox",inheritAttrs:!1},{__name:"VtkCheckbox",props:{list:{type:String,required:!0},inline:{type:Boolean,default:!1},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=o,r=e.ref([]),d=e.ref(!1),n=e.ref(!1);e.watch(()=>a.modelValue,w=>{if(n.value){n.value=!1;return}d.value=!0,Array.isArray(w)?r.value=[...w]:typeof w=="string"?r.value=w?[w]:[]:r.value=[]},{immediate:!0}),e.watch(r,w=>{if(d.value){d.value=!1;return}n.value=!0,s("update:modelValue",w)},{deep:!0});const f=e.useAttrs(),V=e.computed(()=>{const{list:w,inline:P,modelValue:A,..._}=f;return _}),g=e.computed(()=>{const{list:w,inline:P,modelValue:A,error:_,"error-messages":k,rules:h,hint:b,"persistent-hint":$,...z}=f;return z}),p=e.computed(()=>r.value&&r.value.length>0?r.value:null),l=e.ref([]),c=()=>{a.list.split("/").forEach(w=>{const[P,A]=w.split(":");l.value.push({code:P,codeValue:A})})},m=async()=>{try{const w=await W.getForm(`dict/misc/list/${a.list}`);l.value=w.data||[]}catch(w){console.error("[VtkCheckbox] Failed to load dictionary:",w),l.value=[]}};return e.onMounted(()=>{a.list.includes(":")?c():m()}),(w,P)=>{const A=e.resolveComponent("VCheckbox"),_=e.resolveComponent("VInput");return e.openBlock(),e.createBlock(_,e.mergeProps(V.value,{"model-value":p.value}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["checkGroup",t.inline?"d-flex flex-wrap align-top":"d-inline-block"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,k=>(e.openBlock(),e.createBlock(A,e.mergeProps({"hide-details":"",key:k.id||k.code,label:k.codeValue,value:k.code,modelValue:r.value,"onUpdate:modelValue":P[0]||(P[0]=h=>r.value=h)},{ref_for:!0},g.value,{class:t.inline?"mr-4":""}),null,16,["label","value","modelValue","class"]))),128))],2)]),_:1},16,["model-value"])}}}),[["__scopeId","data-v-d5ff7884"]]),gt={key:0,class:"prefix"},ut={class:"digits-container"},Vt={key:0,class:"digit-scroll"},kt={key:1,class:"separator"},ht={key:1,class:"suffix"},$e=Q(Object.assign({name:"VtkCount",inheritAttrs:!1},{__name:"VtkCount",props:{start:{type:Number,default:0},end:{type:Number,default:0},duration:{type:Number,default:2e3},autoplay:{type:Boolean,default:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},containerClass:{type:String,default:""},separator:{type:Boolean,default:!1},decimals:{type:Number,default:0},color:{type:String,default:"#1976d2"}},emits:["complete"],setup(t,{expose:o,emit:a}){const s=t,r=a,d=e.ref(s.start),n=e.ref([]),f=e.ref(0),V=e.ref(!1),g=k=>{let h=k.toFixed(s.decimals);return s.separator&&s.decimals===0&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,",")),h},p=e.computed(()=>g(s.end)),l=e.computed(()=>g(s.start)),c=e.computed(()=>{const k=p.value,h=l.value;return k.length>=h.length?k:h}),m=k=>k<n.value.length?n.value[k]:"0",w=()=>{p.value;const k=l.value;n.value=c.value.split("").map((h,b)=>{if(isNaN(h))return h;if(b<k.length){const $=k[b];return isNaN($)?"0":$}return"0"})},P=(k,h)=>{if(isNaN(k)||isNaN(h))return{transform:"translateY(0)"};const b=parseInt(k)||0,z=h-b;let B;return z>5?B=-(10-z)*100:z<-5?B=(10+z)*100:B=-z*100,{transform:`translateY(${B}%)`,transition:V.value?"transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none",color:s.color}},A=()=>{if(V.value)return;V.value=!0;const k=performance.now(),h=s.start,b=s.end,$=b-h;w();const z=B=>{const y=B-k,D=Math.min(y/s.duration,1),U=1-Math.pow(1-D,4);d.value=h+$*U,_(d.value),D<1?requestAnimationFrame(z):(d.value=b,_(b),V.value=!1,r("complete"))};requestAnimationFrame(z)},_=k=>{const h=g(k),b=c.value;for(let $=0;$<b.length;$++)$<h.length?n.value[$]=h[$]:n.value[$]=isNaN(b[$])?b[$]:"0"};return e.watch(()=>s.end,(k,h)=>{if(k!==h){const b=g(k),$=g(h);b.length!==$.length?(f.value+=1,e.nextTick(()=>{A()})):A()}}),e.onMounted(()=>{if(s.autoplay){const k=l.value,h=p.value;k.length!==h.length&&(f.value+=1),e.nextTick(()=>{A()})}}),o({startAnimation:A}),(k,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vtk-count",t.containerClass])},[e.createElementVNode("div",{class:"count-display",style:e.normalizeStyle({color:t.color})},[t.prefix?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(t.prefix),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(b,$)=>(e.openBlock(),e.createElementBlock("div",{key:`digit-${$}-${f.value}`,class:e.normalizeClass(["digit-wrapper",{"digit-separator":isNaN(b)}])},[isNaN(b)?(e.openBlock(),e.createElementBlock("div",kt,e.toDisplayString(b),1)):(e.openBlock(),e.createElementBlock("div",Vt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,z=>e.createElementVNode("div",{key:z,class:"digit-item",style:e.normalizeStyle(P(m($),z-1))},e.toDisplayString(z-1),5)),64))]))],2))),128))]),t.suffix?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(t.suffix),1)):e.createCommentVNode("",!0)],4)],2))}}),[["__scopeId","data-v-678ebca6"]]),yt={class:"vtk-date-range-picker"},Ct={class:"date-picker-container"},Ee=Q(Object.assign({name:"VtkDatePicker",inheritAttrs:!1},{__name:"VtkDatePicker",props:{modelValue:{type:[Array,String],default:()=>[]},placeholder:{type:String,default:"请选择日期范围"},disabled:{type:Boolean,default:!1},min:{type:String,default:void 0},max:{type:String,default:void 0},showCurrent:{type:[Boolean,String],default:!0},format:{type:String,default:"YYYY-MM-DD"},separator:{type:String,default:" 至 "}},emits:["update:modelValue","change"],setup(t,{emit:o}){const a=t,s=o,r=e.useAttrs(),d=e.ref(!1),n=e.ref([]),f=e.ref(null),V=e.ref(null),g=e.computed(()=>!n.value||n.value.length===0?"":n.value.length===1?l(n.value[0]):`${l(n.value[0])}${a.separator}${l(n.value[1])}`),p=e.computed(()=>{const{modelValue:h,placeholder:b,disabled:$,min:z,max:B,showCurrent:y,format:D,separator:U,...O}=r;return O}),l=h=>{if(!h)return"";if(typeof h=="string")return h;if(h instanceof Date){const b=h.getFullYear(),$=String(h.getMonth()+1).padStart(2,"0"),z=String(h.getDate()).padStart(2,"0");return`${b}-${$}-${z}`}return h},c=e.computed(()=>a.min),m=e.computed(()=>a.max);e.watch(()=>a.modelValue,h=>{if(Array.isArray(h)&&h.length>0)n.value=[...h],h[0]&&(f.value=h[0]),h[1]&&(V.value=h[1]);else if(typeof h=="string"&&h){const b=h.split(a.separator);b.length===2?(n.value=[b[0].trim(),b[1].trim()],f.value=b[0].trim(),V.value=b[1].trim()):(n.value=[],f.value=null,V.value=null)}else n.value=[],f.value=null,V.value=null},{immediate:!0});const w=h=>{h?n.value=[h,n.value[1]||null]:n.value.length>0&&(n.value=[null,n.value[1]||null])},P=h=>{h?n.value=[n.value[0]||null,h]:n.value.length>1&&(n.value=[n.value[0]||null,null])},A=()=>{n.value=[],f.value=null,V.value=null,s("update:modelValue",[]),s("change",[]),d.value=!1},_=()=>{Array.isArray(a.modelValue)?(n.value=[...a.modelValue],a.modelValue[0]&&(f.value=a.modelValue[0]),a.modelValue[1]&&(V.value=a.modelValue[1])):(n.value=[],f.value=null,V.value=null),d.value=!1},k=()=>{let h=[...n.value].filter(b=>b!==null);if(h.length===2){const b=new Date(h[0]),$=new Date(h[1]);b>$&&(h=[h[1],h[0]])}else h.length===1&&(h=[h[0],h[0]]);s("update:modelValue",h),s("change",h),d.value=!1};return(h,b)=>{const $=e.resolveComponent("VIcon"),z=e.resolveComponent("VTextField"),B=e.resolveComponent("VDatePicker"),y=e.resolveComponent("VCardText"),D=e.resolveComponent("VDivider"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("VBtn"),I=e.resolveComponent("VCardActions"),K=e.resolveComponent("VCard"),Y=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(Y,{modelValue:d.value,"onUpdate:modelValue":b[3]||(b[3]=q=>d.value=q),"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto",eager:""},{activator:e.withCtx(({props:q})=>[e.createVNode(z,e.mergeProps({...q,...p.value},{modelValue:g.value,"onUpdate:modelValue":b[0]||(b[0]=S=>g.value=S),placeholder:t.placeholder,disabled:t.disabled,readonly:"",clearable:"",density:"compact",variant:"outlined","onClick:clear":A}),{"prepend-inner":e.withCtx(()=>[e.createVNode($,{size:"small"},{default:e.withCtx(()=>[...b[4]||(b[4]=[e.createTextVNode("mdi-calendar",-1)])]),_:1})]),_:1},16,["modelValue","placeholder","disabled"])]),default:e.withCtx(()=>[e.createVNode(K,{style:{width:"650px"}},{default:e.withCtx(()=>[e.createVNode(y,{class:"pa-0"},{default:e.withCtx(()=>[e.createElementVNode("div",Ct,[e.createVNode(B,{modelValue:f.value,"onUpdate:modelValue":[b[1]||(b[1]=q=>f.value=q),w],"hide-header":"",min:c.value,max:m.value,"show-current":t.showCurrent,class:"date-picker-item"},null,8,["modelValue","min","max","show-current"]),e.createVNode(B,{modelValue:V.value,"onUpdate:modelValue":[b[2]||(b[2]=q=>V.value=q),P],"hide-header":"",min:c.value,max:m.value,"show-current":t.showCurrent,class:"date-picker-item"},null,8,["modelValue","min","max","show-current"])])]),_:1}),e.createVNode(D),e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(U),e.createVNode(O,{text:"",onClick:_},{default:e.withCtx(()=>[...b[5]||(b[5]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(O,{color:"primary",variant:"tonal",onClick:k},{default:e.withCtx(()=>[...b[6]||(b[6]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-4f7668c4"]]),xt={class:"vtk-date-selector"},_t=["value","placeholder","disabled"],Nt={key:0,class:"picker-header"},wt={class:"header-title"},bt={key:1,class:"picker-body"},St={class:"year-grid"},Bt=["onClick"],$t={key:2,class:"picker-body"},Et={key:0,class:"dual-calendar"},Dt={class:"calendar-panel"},Tt={class:"calendar-header"},At={class:"month-title"},Mt={class:"month-grid"},Pt=["onClick"],zt={class:"calendar-panel"},Ft={class:"calendar-header"},It={class:"month-title"},jt={class:"month-grid"},Ut=["onClick"],Lt={key:1},Ot={class:"month-grid"},Rt=["onClick"],Yt={key:3,class:"picker-body"},qt={class:"week-header"},Wt={class:"week-grid"},Kt=["onClick"],Jt={class:"week-number"},Ht={key:4,class:"picker-body"},Qt={key:0,class:"dual-calendar"},Gt={class:"calendar-panel"},Xt={class:"calendar-header"},Zt={class:"month-title"},vt={class:"week-header"},ea={class:"day-grid"},ta=["onClick"],aa={class:"calendar-panel"},oa={class:"calendar-header"},la={class:"month-title"},na={class:"week-header"},ra={class:"day-grid"},sa=["onClick"],ia={key:1},ca={class:"week-header"},da={class:"day-grid"},ma=["onClick"],pa={key:5,class:"range-display"},fa={class:"range-text"},ga={key:1,class:"placeholder-text"},De=Q(Object.assign({name:"VtkDateSelector"},{__name:"VtkDateSelector",props:{modelValue:{type:[String,Array],default:null},displayMode:{type:String,default:"day",validator:t=>["day","week","month","year"].includes(t)},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},placeholder:{type:String,default:"请选择日期"},disabled:{type:Boolean,default:!1},format:{type:String,default:"YYYY-MM-DD"},separator:{type:String,default:" 至 "},inline:{type:Boolean,default:!1},singlePanel:{type:Boolean,default:!1},onCancel:{type:Function,default:null},onConfirm:{type:Function,default:null}},emits:["update:modelValue","change","cancel","confirm"],setup(t,{emit:o}){const a=t,s=o,r=e.ref(!1),d=e.ref(a.displayMode),n=e.ref(new Date().getFullYear()),f=e.ref(new Date().getMonth()),V=e.ref(new Date().getFullYear()),g=e.ref(new Date().getMonth()+1),p=e.ref(null),l=e.ref(null),c=["日","一","二","三","四","五","六"],m=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],w=e.computed(()=>p.value?a.mode==="range"&&Array.isArray(p.value)?p.value.length===2?`${P(p.value[0])}${a.separator}${P(p.value[1])}`:"":P(p.value):""),P=N=>{if(!N)return"";if(a.displayMode==="year")return`${N}年`;if(a.displayMode==="month"){const[C,u]=N.split("-");return`${C}年${u}月`}else if(a.displayMode==="week"){const[C,u]=N.split("-W");return`${C}年第${u}周`}return N},A=e.computed(()=>{const N=Math.floor(n.value/12)*12;return Array.from({length:12},(C,u)=>N+u)}),_=e.computed(()=>{const N=[],C=new Date(n.value,f.value,1),u=new Date(n.value,f.value+1,0);let E=new Date(C);E.setDate(E.getDate()-E.getDay());let Z=y(E);for(;E<=u||E.getDay()!==0;){const H={weekNumber:Z,startDate:new Date(E),days:[]};for(let he=0;he<7;he++){const Ke={date:z(E),day:E.getDate(),month:E.getMonth(),year:E.getFullYear(),otherMonth:E.getMonth()!==f.value,isToday:B(E)};H.days.push(Ke),E.setDate(E.getDate()+1)}if(N.push(H),Z++,E>u&&E.getDay()===0)break}return N}),k=e.computed(()=>{const N=[],C=new Date(n.value,f.value,1),u=new Date(n.value,f.value+1,0),E=new Date(C);E.setDate(E.getDate()-E.getDay());const Z=new Date(u);Z.setDate(Z.getDate()+(6-Z.getDay()));let H=new Date(E);for(;H<=Z;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==f.value,isToday:B(H)}),H.setDate(H.getDate()+1);return N}),h=e.computed(()=>V.value),b=e.computed(()=>g.value),$=e.computed(()=>{const N=[],C=new Date(h.value,b.value,1),u=new Date(h.value,b.value+1,0),E=new Date(C);E.setDate(E.getDate()-E.getDay());const Z=new Date(u);Z.setDate(Z.getDate()+(6-Z.getDay()));let H=new Date(E);for(;H<=Z;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==b.value,isToday:B(H)}),H.setDate(H.getDate()+1);return N}),z=N=>{const C=N.getFullYear(),u=String(N.getMonth()+1).padStart(2,"0"),E=String(N.getDate()).padStart(2,"0");return`${C}-${u}-${E}`},B=N=>{const C=new Date;return N.getDate()===C.getDate()&&N.getMonth()===C.getMonth()&&N.getFullYear()===C.getFullYear()},y=N=>{const C=new Date(Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())),u=C.getUTCDay()||7;C.setUTCDate(C.getUTCDate()+4-u);const E=new Date(Date.UTC(C.getUTCFullYear(),0,1));return Math.ceil(((C-E)/864e5+1)/7)},D=N=>l.value?a.mode==="single"?l.value===N.toString():Array.isArray(l.value)&&l.value.length>0?l.value.some(C=>C&&C.startsWith(N.toString())):!1:!1,U=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const[C,u]=l.value.map(E=>parseInt(E));return N>C&&N<u},O=N=>{if(!l.value)return!1;const C=`${n.value}-${String(N+1).padStart(2,"0")}`;return a.mode==="single"?l.value===C:Array.isArray(l.value)?l.value.includes(C):!1},I=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${n.value}-${String(N+1).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},K=N=>{if(!l.value)return!1;const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return a.mode==="single"?l.value===C:Array.isArray(l.value)?l.value.includes(C):!1},Y=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},q=N=>l.value?a.mode==="single"?l.value===N.date:Array.isArray(l.value)?l.value.includes(N.date):!1:!1,S=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2?!1:N.date>l.value[0]&&N.date<l.value[1],x=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length===0?!1:N.date===l.value[0],F=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length<2?!1:N.date===l.value[1],R=N=>{const C=N.toString();if(a.mode==="single")l.value=C,(a.displayMode==="year"||a.inline)&&te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},L=N=>{const C=`${n.value}-${String(N+1).padStart(2,"0")}`;if(a.mode==="single")l.value=C,(a.displayMode==="month"||a.inline)&&te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},J=N=>{const C=`${V.value}-${String(N+1).padStart(2,"0")}`;if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},ae=N=>{if(!l.value)return!1;const C=`${V.value}-${String(N+1).padStart(2,"0")}`;return Array.isArray(l.value)?l.value.includes(C):!1},re=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${V.value}-${String(N+1).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},se=N=>{const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;if(a.mode==="single")l.value=C,te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},ne=N=>{if(a.mode==="single")l.value=N.date,a.inline&&te();else if(!l.value||!Array.isArray(l.value))l.value=[N.date];else if(l.value.length===1){const[C]=l.value;l.value=C<=N.date?[C,N.date]:[N.date,C],a.inline&&te()}else l.value=[N.date]},ie=()=>{d.value==="year"?n.value-=12:d.value==="month"?n.value-=1:f.value===0?(f.value=11,n.value-=1):f.value-=1},me=()=>{d.value==="year"?n.value+=12:d.value==="month"?n.value+=1:f.value===11?(f.value=0,n.value+=1):f.value+=1},pe=()=>{f.value===0?(f.value=11,n.value-=1):f.value-=1},fe=()=>{f.value===11?(f.value=0,n.value+=1):f.value+=1},ge=()=>{g.value===0?(g.value=11,V.value-=1):g.value-=1},ue=()=>{g.value===11?(g.value=0,V.value+=1):g.value+=1},Ve=()=>{n.value-=1},ke=()=>{n.value+=1},M=()=>{V.value-=1},i=()=>{V.value+=1},ee=N=>{a.displayMode==="year"&&N!=="year"||a.displayMode==="month"&&!["year","month"].includes(N)||(d.value=N)},de=()=>{a.disabled||(r.value=!r.value,r.value&&(l.value=p.value?Array.isArray(p.value)?[...p.value]:p.value:a.mode==="range"?[]:null,d.value=a.displayMode,a.displayMode==="month"?V.value=n.value+1:f.value===11?(V.value=n.value+1,g.value=0):(V.value=n.value,g.value=f.value+1)))};a.inline&&(l.value=p.value?Array.isArray(p.value)?[...p.value]:p.value:a.mode==="range"?[]:null,d.value=a.displayMode,a.displayMode==="month"?V.value=n.value+1:f.value===11?(V.value=n.value+1,g.value=0):(V.value=n.value,g.value=f.value+1));const ce=()=>{r.value=!1},qe=()=>{p.value=a.mode==="range"?[]:null,s("update:modelValue",p.value),s("change",p.value)},te=()=>{p.value=l.value,s("update:modelValue",p.value),s("change",p.value),ce()},We=()=>{a.onCancel?a.onCancel():(s("cancel"),ce())},xe=()=>{a.onConfirm?a.onConfirm(l.value):(s("confirm",l.value),te())};return e.watch(()=>a.modelValue,N=>{p.value=N},{immediate:!0}),(N,C)=>(e.openBlock(),e.createElementBlock("div",xt,[t.inline?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-input",onClick:de},[e.createElementVNode("input",{type:"text",value:w.value,placeholder:t.placeholder,disabled:t.disabled,readonly:"",class:"date-input-field"},null,8,_t),C[3]||(C[3]=e.createElementVNode("span",{class:"date-icon"},"📅",-1)),w.value&&!t.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:"clear-icon",onClick:e.withModifiers(qe,["stop"])},"✕")):e.createCommentVNode("",!0)])),r.value&&!t.inline?(e.openBlock(),e.createElementBlock("div",{key:1,class:"date-picker-mask",onClick:ce})):e.createCommentVNode("",!0),r.value||t.inline?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["date-picker-dropdown",{"inline-mode":t.inline}]),onClick:C[2]||(C[2]=e.withModifiers(()=>{},["stop"]))},[t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("button",{class:"nav-btn",onClick:ie},"‹"),e.createElementVNode("div",wt,[e.createElementVNode("span",{onClick:C[0]||(C[0]=u=>ee("year")),class:"clickable"},e.toDisplayString(n.value)+"年",1),t.displayMode!=="year"?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:C[1]||(C[1]=u=>ee("month")),class:"clickable"},e.toDisplayString(f.value+1)+"月",1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"nav-btn",onClick:me},"›")])),d.value==="year"?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["year-item",{selected:D(u),"in-range":U(u)}]),onClick:E=>R(u)},e.toDisplayString(u),11,Bt))),128))])])):d.value==="month"?(e.openBlock(),e.createElementBlock("div",$t,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Tt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:Ve},"‹"),e.createElementVNode("span",At,e.toDisplayString(n.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ke},"›")]),e.createElementVNode("div",Mt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":I(E)}]),onClick:Z=>L(E)},e.toDisplayString(u),11,Pt)),64))])]),t.singlePanel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C[4]||(C[4]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",zt,[e.createElementVNode("div",Ft,[e.createElementVNode("button",{class:"nav-btn-small",onClick:M},"‹"),e.createElementVNode("span",It,e.toDisplayString(V.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:i},"›")]),e.createElementVNode("div",jt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:ae(E),"in-range":re(E)}]),onClick:Z=>J(E)},e.toDisplayString(u),11,Ut)),64))])])],64))])):(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",Ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":I(E)}]),onClick:Z=>L(E)},e.toDisplayString(u),11,Rt)),64))])]))])):d.value==="week"?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",qt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.weekNumber,class:e.normalizeClass(["week-row",{selected:K(u),"in-range":Y(u)}]),onClick:E=>se(u)},[e.createElementVNode("div",Jt,"W"+e.toDisplayString(u.weekNumber),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.days,E=>(e.openBlock(),e.createElementBlock("div",{key:E.date,class:e.normalizeClass(["day-cell",{"other-month":E.otherMonth,today:E.isToday}])},e.toDisplayString(E.day),3))),128))],10,Kt))),128))])])):(e.openBlock(),e.createElementBlock("div",Ht,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Qt,[e.createElementVNode("div",Gt,[e.createElementVNode("div",Xt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:pe},"‹"),e.createElementVNode("span",Zt,e.toDisplayString(n.value)+"年"+e.toDisplayString(f.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:fe},"›")]),e.createElementVNode("div",vt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",ea,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,ta))),128))])]),t.singlePanel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C[5]||(C[5]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",aa,[e.createElementVNode("div",oa,[e.createElementVNode("button",{class:"nav-btn-small",onClick:ge},"‹"),e.createElementVNode("span",la,e.toDisplayString(h.value)+"年"+e.toDisplayString(b.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ue},"›")]),e.createElementVNode("div",na,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",ra,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,sa))),128))])])],64))])):(e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",ca,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,ma))),128))])]))])),t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?(e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("span",fa,[l.value&&Array.isArray(l.value)&&l.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.value[0]||(t.displayMode==="month"?"开始月份":"开始日期"))+" ",1),C[6]||(C[6]=e.createElementVNode("span",{class:"range-separator"}," - ",-1)),e.createTextVNode(" "+e.toDisplayString(l.value[1]||(t.displayMode==="month"?"结束月份":"结束日期")),1)],64)):(e.openBlock(),e.createElementBlock("span",ga,e.toDisplayString(t.displayMode==="month"?"请选择月份范围":"请选择日期范围"),1))])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"picker-footer"},[e.createElementVNode("button",{class:"btn btn-text",onClick:We},"取消"),e.createElementVNode("button",{class:"btn btn-primary",onClick:xe},"确定")])],2)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-cf126374"]]),ua=["title"],Va=["title"],ka={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},ha=["title"],ya={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Ca={class:"mx-auto"},xa={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Te=Q({__name:"VtkDept",props:{multiple:{type:Boolean,default:!1}},emits:["selected"],setup(t,{expose:o,emit:a}){var Y,q;const{proxy:s}=e.getCurrentInstance(),r=((q=(Y=window.VTK_CONFIG)==null?void 0:Y.storageKeys)==null?void 0:q.user)||"_mis_acis_users",d=JSON.parse(s.$vtk.storage.get(r)),n=S=>new Promise(x=>setTimeout(x,S)),f=t,V=a,g=e.ref(!1),p=e.ref([]),l=e.ref([]),c=e.ref([]);e.watch(c,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.areaCode)&&k(S)},{deep:!0}),e.watch(l,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.areaCode)&&k(S)},{deep:!0});const m=()=>{d&&d.areacode&&s.$vtk.request.getForm(`/dict/area/show/${d.areacode}`).then(S=>{S&&S.data&&(p.value=[{areaCode:S.data.areaCode,areaName:S.data.areaName,children:[]}])})},w=async S=>{await n(300);const x=S.areaCode;s.$vtk.request.getForm(`/dict/area/next/${x}`).then(F=>{F&&F.data&&F.data.forEach(R=>{R.areaLeve<12&&(R.children=[]),S.children.push(R)})})},P=e.ref([]),A=e.ref([]),_=e.ref([]);e.watch(A,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.id)&&U(S)},{deep:!0}),e.watch(_,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.id)&&U(S)},{deep:!0});const k=S=>{const F={codex:{area:S[0].areaCode,type:"0"}};P.value=[],s.$vtk.request.postJson("/bizp/supported/dept/list",F).then(R=>{R.data.forEach(L=>{L.children=[],P.value.push(L)})})},h=async S=>{await n(300);const x=S.areaCode,F=S.id,R={codex:{area:x,pid:F}};s.$vtk.request.postJson("/bizp/supported/dept/list",R).then(L=>{L&&L.data&&L.data.forEach(J=>{J.children=[],S.children.push(J)})})},b=e.ref([]),$=e.ref([]),z=e.ref([]),B=e.ref(!1),y=e.computed(()=>{const S=new Map;return z.value.forEach(x=>{x&&x.id&&S.set(x.id,x)}),Array.from(S.values())});e.watch($,(S,x)=>{if(!B.value){if(!f.multiple){S&&S.length>0?z.value=[S[0]]:z.value=[];return}S&&S.length>0&&S.forEach(F=>{z.value.some(L=>L.id===F.id)||z.value.push(F)}),x&&x.length>0&&x.forEach(F=>{if(!(S==null?void 0:S.some(L=>L.id===F.id))){const L=z.value.findIndex(J=>J.id===F.id);L>-1&&z.value.splice(L,1)}})}},{deep:!0}),e.watch(b,async S=>{if(!S||S.length===0){B.value=!0,$.value=[],await e.nextTick(),B.value=!1;return}await e.nextTick(),B.value=!0;const x=[];S.forEach(F=>{z.value.some(L=>L.id===F.id)&&x.push(F)}),$.value=x,await e.nextTick(),B.value=!1},{deep:!0});const D=S=>{const x=z.value.findIndex(R=>R.id===S);x>-1&&z.value.splice(x,1);const F=$.value.findIndex(R=>R.id===S);F>-1&&$.value.splice(F,1)},U=S=>{const F={codex:{dept:S[0].id}};s.$vtk.request.postJson("/bizp/supported/user/list",F).then(R=>{R&&R.meta.success&&R.data.length>0?b.value=R.data:b.value=null})},O=()=>{g.value=!0},I=()=>{B.value=!0,g.value=!1,$.value=[],z.value=[],l.value=[],c.value=[],A.value=[],_.value=[],b.value=[],P.value=[],e.nextTick(()=>{B.value=!1})},K=()=>{const S=y.value;V("selected",S),I()};return e.onMounted(()=>{m()}),o({close:I,add:O}),(S,x)=>{const F=e.resolveComponent("v-spacer"),R=e.resolveComponent("v-icon"),L=e.resolveComponent("v-btn"),J=e.resolveComponent("v-card-title"),ae=e.resolveComponent("v-divider"),re=e.resolveComponent("v-treeview"),se=e.resolveComponent("v-sheet"),ne=e.resolveComponent("v-col"),ie=e.resolveComponent("v-img"),me=e.resolveComponent("v-avatar"),pe=e.resolveComponent("v-list-item"),fe=e.resolveComponent("v-list"),ge=e.resolveComponent("v-row"),ue=e.resolveComponent("v-card-text"),Ve=e.resolveComponent("v-card-actions"),ke=e.resolveComponent("v-card"),M=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(M,{modelValue:g.value,"onUpdate:modelValue":x[5]||(x[5]=i=>g.value=i),persistent:"",width:"1000"},{default:e.withCtx(()=>[e.createVNode(ke,null,{default:e.withCtx(()=>[e.createVNode(J,{class:"d-flex align-center"},{default:e.withCtx(()=>[x[7]||(x[7]=e.createElementVNode("span",{class:"text-h6"},"人员选择",-1)),e.createVNode(F),e.createVNode(L,{class:"g-no-shadow",icon:"",onClick:I,size:"small"},{default:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[...x[6]||(x[6]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),e.createVNode(ae),e.createVNode(ue,{class:"pb-0 mb-0 pl-0 pr-0",style:{height:"600px"}},{default:e.withCtx(()=>[e.createVNode(ge,{style:{"margin-top":"-16px",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(ne,{md:"3",class:"pr-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[8]||(x[8]=[e.createElementVNode("span",{class:"mx-auto"},"地区",-1)])]),_:1}),e.createVNode(se,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[e.createVNode(re,{"item-value":"id","item-title":"areaName","return-object":"",items:p.value,density:"compact",color:"primary","item-props":"",activatable:"",selected:l.value,"onUpdate:selected":x[0]||(x[0]=i=>l.value=i),activated:c.value,"onUpdate:activated":x[1]||(x[1]=i=>c.value=i),"load-children":w},{title:e.withCtx(({item:i})=>[e.createElementVNode("span",{title:i.areaName},e.toDisplayString(i.areaName),9,ua)]),_:1},8,["items","selected","activated"])]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[9]||(x[9]=[e.createElementVNode("span",{class:"mx-auto"},"部门",-1)])]),_:1}),e.createVNode(se,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[P.value&&P.value.length>0?(e.openBlock(),e.createBlock(re,{key:0,"item-value":"id","item-title":"name","return-object":"",items:P.value,density:"compact",color:"primary","item-props":"",activatable:"",selected:A.value,"onUpdate:selected":x[2]||(x[2]=i=>A.value=i),activated:_.value,"onUpdate:activated":x[3]||(x[3]=i=>_.value=i),"load-children":h},{title:e.withCtx(({item:i})=>[e.createElementVNode("span",{title:i.name},e.toDisplayString(i.name),9,Va)]),_:1},8,["items","selected","activated"])):(e.openBlock(),e.createElementBlock("div",ka,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[10]||(x[10]=[e.createTextVNode(" mdi-office-building-outline ",-1)])]),_:1}),x[11]||(x[11]=e.createElementVNode("div",{class:"text-grey"},"暂无",-1))]))]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[12]||(x[12]=[e.createElementVNode("span",{class:"mx-auto"},"人员",-1)])]),_:1}),e.createVNode(se,{height:"550",style:{overflow:"auto"},class:"mt-2"},{default:e.withCtx(()=>[b.value&&b.value.length>0?(e.openBlock(),e.createBlock(re,{key:0,"item-value":"id","item-title":"username","return-object":"",items:b.value,density:"compact",color:"primary","item-props":"",selectable:"","select-strategy":t.multiple?"leaf":"single-leaf",selected:$.value,"onUpdate:selected":x[4]||(x[4]=i=>$.value=i)},{title:e.withCtx(({item:i})=>[e.createElementVNode("div",{class:"d-flex align-center",title:i.username},[e.createVNode(me,{size:"24",class:"mr-2"},{default:e.withCtx(()=>[i.avatar?(e.openBlock(),e.createBlock(ie,{key:0,src:i.avatar},null,8,["src"])):(e.openBlock(),e.createBlock(R,{key:1,size:"20"},{default:e.withCtx(()=>[...x[13]||(x[13]=[e.createTextVNode("mdi-account-circle",-1)])]),_:1}))]),_:2},1024),e.createElementVNode("span",null,e.toDisplayString(i.username),1)],8,ha)]),_:1},8,["items","select-strategy","selected"])):(e.openBlock(),e.createElementBlock("div",ya,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[14]||(x[14]=[e.createTextVNode(" mdi-account-group ",-1)])]),_:1}),x[15]||(x[15]=e.createElementVNode("div",{class:"text-grey"},"暂无",-1))]))]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[e.createElementVNode("span",Ca,"已选中人员 ("+e.toDisplayString(y.value.length)+")",1)]),_:1}),e.createVNode(se,{height:"550",style:{overflow:"auto"},class:"mt-2 px-2"},{default:e.withCtx(()=>[y.value.length>0?(e.openBlock(),e.createBlock(fe,{key:0,density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,i=>(e.openBlock(),e.createBlock(pe,{key:i.id,title:i.username,class:"px-2 mb-1 mr-2",rounded:"lg",color:"primary",variant:"tonal"},{prepend:e.withCtx(()=>[e.createVNode(me,{size:"32"},{default:e.withCtx(()=>[i.avatar?(e.openBlock(),e.createBlock(ie,{key:0,src:i.avatar},null,8,["src"])):(e.openBlock(),e.createBlock(R,{key:1},{default:e.withCtx(()=>[...x[16]||(x[16]=[e.createTextVNode("mdi-account-circle",-1)])]),_:1}))]),_:2},1024)]),append:e.withCtx(()=>[e.createVNode(L,{icon:"",size:"x-small",variant:"text",onClick:ee=>D(i.id)},{default:e.withCtx(()=>[e.createVNode(R,{size:"16"},{default:e.withCtx(()=>[...x[17]||(x[17]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1032,["title"]))),128))]),_:1})):(e.openBlock(),e.createElementBlock("div",xa,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[18]||(x[18]=[e.createTextVNode(" mdi-account ",-1)])]),_:1}),x[19]||(x[19]=e.createElementVNode("div",{class:"text-grey"},"暂无选中",-1))]))]),_:1})]),_:1})]),_:1})]),_:1}),e.createVNode(ae),e.createVNode(Ve,null,{default:e.withCtx(()=>[e.createVNode(F),e.createVNode(L,{color:"darken-1",text:"",onClick:I},{default:e.withCtx(()=>[...x[20]||(x[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(L,{color:"blue darken-1",text:"",onClick:K},{default:e.withCtx(()=>[...x[21]||(x[21]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-33eb36fd"]]),Ae=Q(Object.assign({name:"VtkEmpty",inheritAttrs:!1},{__name:"VtkEmpty",props:{title:{type:String,default:""},text:{type:String,default:""},headline:{type:String,default:""},icon:{type:String,default:""},image:{type:String,default:""},rounded:{type:[Boolean,String,Number],default:"circle"},elevation:{type:[Number,String],default:0}},setup(t){return(o,a)=>{const s=e.resolveComponent("v-empty-state");return e.openBlock(),e.createBlock(s,{headline:t.headline,title:t.title,text:t.text,image:t.image,icon:t.icon,rounded:t.rounded,elevation:t.elevation},e.createSlots({_:2},[o.$slots.media?{name:"media",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,o.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"title",{},void 0,!0)]),key:"1"}:void 0,o.$slots.text?{name:"text",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"text",{},void 0,!0)]),key:"2"}:void 0,o.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"actions",{},void 0,!0)]),key:"3"}:void 0,o.$slots.bottom?{name:"bottom",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"bottom",{},void 0,!0)]),key:"4"}:void 0]),1032,["headline","title","text","image","icon","rounded","elevation"])}}}),[["__scopeId","data-v-288c63a3"]]),Me=Q(Object.assign({name:"VtkFab",inheritAttrs:!1},{__name:"VtkFab",setup(t){const o=e.ref(!1),a=e.ref("scroll-to-top-fab"),s=()=>{o.value=window.scrollY>100},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.onMounted(()=>{window.addEventListener("scroll",s)}),e.onBeforeUnmount(()=>{window.removeEventListener("scroll",s)}),(d,n)=>{const f=e.resolveComponent("v-fab");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createBlock(f,{key:0,class:e.normalizeClass(a.value),color:"primary",icon:"mdi-arrow-up",onClick:r},null,8,["class"])):e.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-e07d12b9"]]),_a={key:0,class:"pb-2 text-left"},Na={key:0,class:"text-red mr-1"},wa={key:0,class:"text-red"},ba={key:3,class:"d-inline-block vtk-width-7",style:{"min-width":"350px"}},Sa={key:4,class:"box_help tips py-3 px-4",style:{width:"calc(30% - 160px)"}},Ba={class:"mb-2 font-weight-bold text-body-1"},$a=["innerHTML"],Pe=Q(Object.assign({name:"VtkFormItem",inheritAttrs:!1},{__name:"VtkFormItem",props:{label:{type:String,default:null},must:{type:Boolean,default:!1},left:{type:Boolean,default:!1},top:{type:Boolean,default:!1},Tstyle:{type:String,default:null},help:{type:String,default:null},maxWidth:{type:[String,Number],default:"100%"}},setup(t){const o=t,a=e.computed(()=>typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth),s=e.computed(()=>{const r={};return o.top&&o.maxWidth&&(r.maxWidth=a.value),r});return(r,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["box",{"form-item--vertical":t.top,"form-item--horizontal":!t.top}]),style:{position:"relative"}},[t.label&&t.top?(e.openBlock(),e.createElementBlock("div",_a,[t.must?(e.openBlock(),e.createElementBlock("span",Na,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),t.label&&!t.top?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.left?"":"vtk-width-2","d-inline-block text-right"]),style:e.normalizeStyle([t.Tstyle,{"min-width":"120px !important","vertical-align":"top","padding-top":"11px"}])},[t.must?(e.openBlock(),e.createElementBlock("span",wa,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],6)):e.createCommentVNode("",!0),t.top?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(s.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0),t.top?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(r.$slots,"default",{},void 0,!0)])),t.left&&t.help&&!t.top?(e.openBlock(),e.createElementBlock("div",Sa,[e.createElementVNode("p",Ba,e.toDisplayString(t.label),1),e.createElementVNode("span",{innerHTML:t.help},null,8,$a)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-05be0b6b"]]),Ea={class:"vtk-img-container"},Da={class:"d-flex align-center justify-center fill-height"},Ta={key:0,class:"vtk-img-info"},Aa={class:"image-viewer-content"},Ma={class:"image-container"},Pa={class:"image-info"},za={class:"text-center"},Fa={class:"text-center text--secondary"},Ia=Object.assign({name:"VtkImg",inheritAttrs:!0},{__name:"VtkImg",props:{src:{type:String,default:null},error:{type:String,default:new URL("../../assets/img/wxsq.png",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ne&&Ne.tagName.toUpperCase()==="SCRIPT"&&Ne.src||new URL("specter-pui.umd.js",document.baseURI).href).href},preview:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},imageList:{type:Array,default:()=>[]},index:{type:Number,default:0},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},aspectRatio:{type:[String,Number],default:16/9}},setup(t){e.useCssVars(A=>({v0b9062a7:o.error}));const o=t,a=e.ref(!1),s=e.ref(0),r=e.ref(0),d=e.computed(()=>{var A;if(!o.src)return o.src;try{if(window.$vtk&&typeof((A=window.$vtk.storage)==null?void 0:A.get)=="function"){const _=window.$vtk.storage.get("_mis_acis_token");return _?`${o.src}?stoken=${_}`:o.src}else{const _=localStorage.getItem("_mis_acis_token");return _?`${o.src}?stoken=${_}`:o.src}}catch(_){return console.warn("VtkImg: Failed to get token, using src without token",_),o.src}}),n=e.computed(()=>{var A;if(o.imageList.length>0&&r.value<o.imageList.length){const _=o.imageList[r.value];if(_&&_.url)try{if(window.$vtk&&typeof((A=window.$vtk.storage)==null?void 0:A.get)=="function"){const k=window.$vtk.storage.get("_mis_acis_token");return k?`${_.url}?stoken=${k}`:_.url}else{const k=localStorage.getItem("_mis_acis_token");return k?`${_.url}?stoken=${k}`:_.url}}catch{return _.url}}return d.value}),f=e.computed(()=>{if(o.imageList.length>0&&r.value<o.imageList.length){const A=o.imageList[r.value];return(A==null?void 0:A.title)||""}return o.title}),V=e.computed(()=>{if(o.imageList.length>0&&r.value<o.imageList.length){const A=o.imageList[r.value];return(A==null?void 0:A.description)||""}return o.description}),g=e.computed(()=>o.imageList.length>1&&r.value>0),p=e.computed(()=>o.imageList.length>1&&r.value<o.imageList.length-1);e.watch(a,A=>{A&&(s.value=0,r.value=o.index)});const l=()=>{o.preview&&(a.value=!0)},c=()=>{a.value=!1},m=()=>{g.value&&(r.value--,s.value=0)},w=()=>{p.value&&(r.value++,s.value=0)},P=A=>{s.value+=A};return(A,_)=>{const k=e.resolveComponent("v-progress-circular"),h=e.resolveComponent("v-img"),b=e.resolveComponent("VCardTitle"),$=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VIcon"),y=e.resolveComponent("VBtn"),D=e.resolveComponent("v-toolbar-title"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("v-toolbar-items"),I=e.resolveComponent("v-toolbar"),K=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",Ea,[e.createVNode(z,{class:e.normalizeClass(["vtk-img-card",{"vtk-img-card--preview":t.preview}]),onClick:l},{default:e.withCtx(()=>[e.createVNode(h,e.mergeProps(A.$attrs,{src:d.value,class:"vtk-img","aspect-ratio":t.aspectRatio,cover:""}),{placeholder:e.withCtx(()=>[e.createElementVNode("div",Da,[e.createVNode(k,{indeterminate:"",color:"grey-lighten-1"})])]),_:1},16,["src","aspect-ratio"]),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ta,[t.showTitle?(e.openBlock(),e.createBlock(b,{key:0,class:"vtk-img-title text-subtitle-2 pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),t.showDescription?(e.openBlock(),e.createBlock($,{key:1,class:"vtk-img-description text-caption pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["class"]),e.createVNode(K,{modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=Y=>a.value=Y),"max-width":"90%",fullscreen:"","onClick:outside":c},{default:e.withCtx(()=>[e.createVNode(z,{class:"image-viewer-card"},{default:e.withCtx(()=>[e.createVNode(I,{dark:"",color:"primary"},{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[3]||(_[3]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1}),e.createVNode(D,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1}),e.createVNode(U),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:_[0]||(_[0]=Y=>P(-90))},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[4]||(_[4]=[e.createTextVNode("mdi-rotate-left",-1)])]),_:1})]),_:1}),e.createVNode(y,{icon:"",dark:"",onClick:_[1]||(_[1]=Y=>P(90))},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[5]||(_[5]=[e.createTextVNode("mdi-rotate-right",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Aa,[g.value?(e.openBlock(),e.createBlock(y,{key:0,icon:"",class:"nav-button prev-button",onClick:m},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[6]||(_[6]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Ma,[e.createVNode(h,{src:n.value,class:"viewer-image",style:e.normalizeStyle({transform:`rotate(${s.value}deg)`})},null,8,["src","style"])]),p.value?(e.openBlock(),e.createBlock(y,{key:1,icon:"",class:"nav-button next-button",onClick:w},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[7]||(_[7]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Pa,[e.createElementVNode("p",za,e.toDisplayString(V.value),1),e.createElementVNode("p",Fa,e.toDisplayString(r.value+1)+" / "+e.toDisplayString(t.imageList.length),1)])]),_:1})]),_:1},8,["modelValue"])])}}}),ze=Q(Ia,[["__scopeId","data-v-f2469415"]]),ja={class:"m_pagination"},Ua={class:"page-total d-none d-md-flex align-center"},La={class:"my-2"},Fe=Q({__name:"VtkPage",props:{pageData:{type:Object,default:()=>({})},pageSizes:{type:Array,default:()=>[10,20,30]}},emits:["pageChange"],setup(t,{emit:o}){const a=t,s=o,r=e.reactive({pageno:1,limit:10}),d=e.ref([]),n=e.ref({...a.pageData}),f=e.computed(()=>n.value.pageno);e.watch(f,()=>{r.pageno=n.value.pageno}),e.watch(()=>a.pageData,c=>{n.value={...c},c.rowCount<1&&c.rows>0&&(n.value.pageno=c.pageno-1,l())},{deep:!0}),e.onMounted(()=>{p()});const V=()=>{/^[0-9]+$/.test(r.pageno)&&r.pageno<=n.value.pageCount?(n.value.pageno=parseInt(r.pageno),l()):r.pageno=n.value.pageno},g=()=>{n.value.pageCount=1,l()},p=()=>{const c=a.pageSizes;c.forEach(m=>{const w={title:m+"条/页",value:m};d.value.push(w)}),r.limit=c[0]},l=()=>{const c={pageno:n.value.pageno,limit:r.limit};s("pageChange",c)};return(c,m)=>{const w=e.resolveComponent("VSelect"),P=e.resolveComponent("v-pagination"),A=e.resolveComponent("VTextField"),_=e.resolveComponent("VRow");return e.openBlock(),e.createElementBlock("div",ja,[n.value.rowCount>0?(e.openBlock(),e.createBlock(_,{key:0,class:"pagination box",align:"center"},{default:e.withCtx(()=>[e.createElementVNode("span",Ua,"共"+e.toDisplayString(n.value.rowCount)+"条",1),e.createVNode(w,{modelValue:r.limit,"onUpdate:modelValue":[m[0]||(m[0]=k=>r.limit=k),m[1]||(m[1]=k=>g())],items:d.value,variant:"solo",density:"compact","menu-props":{offsetY:!0},"hide-details":"",class:"page-select ml-2 d-none d-md-flex"},null,8,["modelValue","items"]),e.createElementVNode("span",La,[e.createVNode(P,{modelValue:n.value.pageno,"onUpdate:modelValue":[m[2]||(m[2]=k=>n.value.pageno=k),m[3]||(m[3]=k=>l())],"total-visible":5,length:n.value.pageCount,size:"small"},null,8,["modelValue","length"])]),m[6]||(m[6]=e.createElementVNode("span",{class:"page-total ml-3 d-none d-md-flex align-center"},"到",-1)),e.createVNode(A,{modelValue:r.pageno,"onUpdate:modelValue":m[4]||(m[4]=k=>r.pageno=k),variant:"solo",density:"compact","hide-details":"",class:"page-go ml-2 d-none d-md-flex",onKeyup:m[5]||(m[5]=e.withKeys(k=>V(),["enter"]))},null,8,["modelValue"]),m[7]||(m[7]=e.createElementVNode("span",{class:"page-total ml-2 d-none d-md-flex align-center"},"页",-1))]),_:1})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-c12fb6c5"]]),Oa={class:"vtk-pdf-container"},Ra={key:0,class:"vtk-pdf-info"},Ya={class:"pdf-viewer-content"},qa={key:0,class:"pdf-viewer-footer"},Wa={class:"mx-4"},Ka={key:1,class:"pdf-loading"},Ja=Object.assign({name:"VtkPdf",inheritAttrs:!0},{__name:"VtkPdf",props:{src:{type:String,default:null},preview:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},aspectRatio:{type:[String,Number],default:16/9}},setup(t){const o=t,a=e.ref(!1),s=e.ref(!1),r=e.ref(!1),d=e.ref(1),n=e.ref(0),f=e.ref(null);let V=null;const g=e.computed(()=>{var _;if(!o.src)return o.src;try{if(window.$vtk&&typeof((_=window.$vtk.storage)==null?void 0:_.get)=="function"){const k=window.$vtk.storage.get("_mis_acis_token");return k?`${o.src}?stoken=${k}`:o.src}else{const k=localStorage.getItem("_mis_acis_token");return k?`${o.src}?stoken=${k}`:o.src}}catch(k){return console.warn("VtkPdf: Failed to get token, using src without token",k),o.src}}),p=()=>{o.preview&&(a.value=!0,setTimeout(()=>{c()},300))},l=()=>{a.value=!1,V=null,r.value=!1,d.value=1,n.value=0},c=async()=>{if(g.value){s.value=!0;try{await new Promise(_=>setTimeout(_,1e3)),n.value=10,r.value=!0}catch(_){console.error("加载PDF失败:",_)}finally{s.value=!1}}},m=async _=>{!V||f.value},w=()=>{d.value>1&&(d.value--,m(d.value))},P=()=>{d.value<n.value&&(d.value++,m(d.value))},A=async()=>{if(g.value)try{const _=await fetch(g.value);if(!_.ok)throw new Error(`HTTP error! status: ${_.status}`);const k=await _.blob(),h=o.title&&o.title.trim()!==""?`${o.title}.pdf`:"document.pdf",b=window.URL.createObjectURL(k),$=document.createElement("a");$.href=b,$.download=h,document.body.appendChild($),$.click(),document.body.removeChild($),window.URL.revokeObjectURL(b)}catch(_){console.error("下载PDF失败:",_),window.open(g.value,"_blank")}};return e.onBeforeUnmount(()=>{V=null}),(_,k)=>{const h=e.resolveComponent("VIcon"),b=e.resolveComponent("VCardTitle"),$=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VBtn"),y=e.resolveComponent("v-toolbar-title"),D=e.resolveComponent("VSpacer"),U=e.resolveComponent("v-toolbar-items"),O=e.resolveComponent("v-toolbar"),I=e.resolveComponent("VCol"),K=e.resolveComponent("VSlider"),Y=e.resolveComponent("VRow"),q=e.resolveComponent("v-progress-circular"),S=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",Oa,[e.createVNode(z,{class:e.normalizeClass(["vtk-pdf-card",{"vtk-pdf-card--preview":t.preview}]),onClick:p},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"vtk-pdf-cover",style:e.normalizeStyle({aspectRatio:t.aspectRatio})},[e.createVNode(h,{size:"48",color:"red"},{default:e.withCtx(()=>[...k[2]||(k[2]=[e.createTextVNode("mdi-file-pdf-box",-1)])]),_:1}),k[3]||(k[3]=e.createElementVNode("div",{class:"vtk-pdf-label"},"PDF",-1))],4),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ra,[t.showTitle?(e.openBlock(),e.createBlock(b,{key:0,class:"vtk-pdf-title text-subtitle-2 pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),t.showDescription?(e.openBlock(),e.createBlock($,{key:1,class:"vtk-pdf-description text-caption pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["class"]),e.createVNode(S,{modelValue:a.value,"onUpdate:modelValue":k[1]||(k[1]=x=>a.value=x),"max-width":"90%",fullscreen:"","onClick:outside":l},{default:e.withCtx(()=>[e.createVNode(z,{class:"pdf-viewer-card"},{default:e.withCtx(()=>[e.createVNode(O,{dark:"",color:"red darken-1"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"",dark:"",onClick:l},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[4]||(k[4]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1}),e.createVNode(y,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),e.createVNode(D),e.createVNode(U,null,{default:e.withCtx(()=>[e.createVNode(B,{icon:"",dark:"",onClick:A},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[5]||(k[5]=[e.createTextVNode("mdi-download",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Ya,[e.createElementVNode("div",{class:"pdf-container",ref_key:"pdfContainer",ref:f},[...k[6]||(k[6]=[e.createElementVNode("div",{id:"pdf-viewer"},null,-1)])],512)]),r.value?(e.openBlock(),e.createElementBlock("div",qa,[e.createVNode(Y,{align:"center",justify:"center"},{default:e.withCtx(()=>[e.createVNode(I,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"",onClick:w,disabled:d.value<=1},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[7]||(k[7]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1},8,["disabled"]),e.createElementVNode("div",Wa,[e.createElementVNode("span",null,"第 "+e.toDisplayString(d.value)+" 页 / 共 "+e.toDisplayString(n.value)+" 页",1)]),e.createVNode(B,{icon:"",onClick:P,disabled:d.value>=n.value},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[8]||(k[8]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),e.createVNode(I,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode(K,{modelValue:d.value,"onUpdate:modelValue":k[0]||(k[0]=x=>d.value=x),min:1,max:n.value,"hide-details":"",class:"mx-4"},null,8,["modelValue","max"])]),_:1})]),_:1})])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ka,[e.createVNode(q,{indeterminate:"",color:"red"}),k[9]||(k[9]=e.createElementVNode("p",{class:"mt-2"},"正在加载PDF...",-1))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),Ie=Q(Ja,[["__scopeId","data-v-84f65a65"]]);function Je(t={}){const o=e.reactive({}),a=e.ref([]),s=e.ref(!1),r=e.ref(""),d=e.reactive({pageno:1,limit:10}),n=e.ref({}),f=e.ref({}),V=e.ref([]),g=e.ref(!1),p=e.ref({}),l=e.reactive(t),c=()=>{var O;p.value=le.get("_mis_acis_users"),o.areaCode||(o.areaCode=(O=p.value)==null?void 0:O.areacode);const D=Object.assign({},o);return{pageno:d.pageno,limit:d.limit,codex:D}},m=()=>{var U,O;if(!l.list){G.toast("请先设置url.list属性",{color:"warning"});return}const D=c();s.value=!0,(O=(U=window.$vtk)==null?void 0:U.message)!=null&&O.loading&&window.$vtk.message.loading.show(),W.postJson(l.list,D).then(I=>{var K,Y,q;(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),(I.meta.success||I.data)&&(a.value=((q=I.data)==null?void 0:q.rows)||[],n.value=I.data,f.value=I.data.sumup?I.data.sumup:{},V.value=I.data),s.value=!1}).catch(I=>{var K,Y;console.error("加载页面数据失败:",I),s.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})};return{queryParam:o,desserts:a,loading:s,superQueryParams:r,page:d,pageData:n,sumup:f,pageDataCopy:V,overlay:g,user:p,url:l,getQueryParams:c,loadPage:m,searchQuery:()=>{d.pageno=1,d.limit??(d.limit=10),m()},getListPage:D=>{d.pageno=D.pageno,d.limit=D.limit,m()},deleteItem:(D,U)=>{if(!l.delete){G.toast("请设置url.delete属性!",{color:"warning"});return}G.confirm({title:"确认删除",text:U||"是否删除?"},O=>{O&&W.getForm(l.delete,{id:D}).then(I=>{I.meta.success?(G.toast("删除成功",{color:"success"}),m()):G.toast("删除失败",{color:"warning"})}).catch(I=>{console.error("删除失败:",I),G.toast("删除失败",{color:"warning"})})})},copyItem:(D,U)=>{if(!l.copy){G.toast("请设置url.copy!",{color:"warning"});return}G.confirm({title:"拷贝",text:U||"是否确认拷贝当前数据?"},O=>{O&&W.getForm(l.copy,{id:D}).then(I=>{I.meta.success?(G.toast("拷贝成功",{color:"success"}),m()):G.toast("拷贝失败",{color:"warning"})}).catch(I=>{console.error("拷贝失败:",I),G.toast("拷贝失败",{color:"warning"})})})},edit:(D,U)=>{U!=null&&U.value&&U.value.edit(D)},add:D=>{D!=null&&D.value&&D.value.add()},modalFormOk:()=>{m()},expData:()=>{var U,O;g.value=!0,(O=(U=window.$vtk)==null?void 0:U.message)!=null&&O.loading&&window.$vtk.message.loading.show();const D=c();W.exp(l.exp,D).then(I=>{var K,Y;if((Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),I){const q=I.headers["content-disposition"],S=decodeURI(q.substring(q.indexOf("filename=")+9,q.length)),x=new Blob([I.data],{type:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(x);else{const F=document.createElement("a");F.style.display="none",F.href=URL.createObjectURL(x),F.download=S,document.body.appendChild(F),F.click(),document.body.removeChild(F)}}g.value=!1}).catch(I=>{var K,Y;console.error("导出数据失败:",I),g.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})},resetQueryParams:()=>{Object.keys(o).forEach(D=>{delete o[D]})},resetPage:()=>{d.pageno=1,d.limit=10},updateUrlConfig:D=>{Object.assign(l,D)}}}const Ha={key:0},Qa={key:0,class:"mb-0 expBox"},Ga={key:1,class:"text-red text-body-2 mb-2"},Xa={key:1},Za={key:0,style:{width:"400px"}},va=["onClick"],eo={class:"vtk-cursor-pointer text-body-1 font-weight-bold mb-2"},to={class:"ml-3 text-grey"},ao={class:"mb-0 mt-2 text-grey"},oo={class:"d-inline-block",style:{"min-width":"320px"}},lo={class:"text-blue"},no=["title"],ro=["title"],so=["onClick"],io={key:1,class:"state_btg text-right"},je=Q(Object.assign({name:"VtkProj",inheritAttrs:!1},{__name:"VtkProj",setup(t){const o={list:"/kudas/xfwez/page",exp:"/kudas/xfwez/exp",delete:"/kudas/xfwez/delete"},{pageData:a,getListPage:s,loadPage:r,expData:d,desserts:n,loading:f,queryParam:V,url:g}=Je(o);Object.assign(V,{});const p=V,l=e.ref({}),c=e.ref(1),m=e.ref([{title:"事项",key:"objsName",sortable:!1},{title:"状态",key:"actions",sortable:!1,align:"end"}]),w=e.ref([]),P=e.ref(""),A=e.ref(""),_=e.ref(""),k=e.ref(!1),h=e.ref(!1),b=e.ref(!1),$=e.ref([]),z=e.ref([]),B=e.ref(!1),y=e.ref([]),D=e.ref(!1),U=e.ref({}),O=e.ref(""),I=e.ref(null);e.watch($,M=>{M.length<y.value.length&&(B.value=!1)},{deep:!0}),e.onActivated(()=>{alert("onActivated"),Y(),window.addEventListener("storage",M=>{var i;(i=JSON.parse(M==null?void 0:M.newValue))!=null&&i.fwez&&(c.value=="0"?x():r())})});const K=M=>{$.value=M?y.value:[]},Y=()=>{var M;_.value="",k.value=!1,l.value=q(),w.value=[],(M=l.value.permits)==null||M.forEach(i=>{i.permNkey.includes("biz_type")?(w.value.push(i),_.value=_.value+i.permNkey.slice(9)+","):i.permNkey=="btn_expo"&&(k.value=!0)}),p.bizType=_.value,S()},q=()=>{var M,i;try{return((i=(M=window.$vtk)==null?void 0:M.storage)==null?void 0:i.get("_mis_acis_users"))||{}}catch(ee){return console.warn("获取用户信息失败:",ee),{}}},S=()=>{var M;c.value=1,p.operateLeve=(M=l.value.areacode)==null?void 0:M.length,p.servState="0",r()},x=()=>{c.value=0,delete p.operateLeve,delete p.servState,r()},F=M=>{const i=M.servState==1?`#/mino/suse/view/${M.inst}?ddtab=true`:`#/mino/suse/exam/${M.inst}?ddtab=true`;window.open(i)},R=()=>{var M;(M=I.value)==null||M.add(p.projCode)},L=M=>{P.value=M.projName,p.projCode=M.projCode,delete p.bizType,J()},J=()=>{r()},ae=()=>{P.value&&p.servState=="1"&&($.value=[],z.value=[],W.postJson("/kudas/xfwez/exv",{codex:p}).then(M=>{M.meta.success?JSON.parse(M.data.formJson).forEach(i=>{["text","radio","number","time","checkbox","textarea","select"].includes(i.type)&&(i.value={name:i.name,valu:`${i.label}${i.valu&&i.valu.includes("/")&&i.valu.includes(":")?`(${i.valu})`:""}`},z.value.push(i),y.value.push(i.value))}):A.value=M.meta.message}))},re=()=>{p.fields=$.value,d()},se=M=>{D.value=!0,U.value=M,O.value=""},ne=()=>{O.value&&W.postForm(g.delete,{id:U.value.id,note:O.value}).then(M=>{M.meta.success&&(D.value=!1,r())})},ie=()=>{},me=M=>M?M.replace(/^(.{6})(?:\d+)(.{4})$/,"$1********$2"):"",pe=M=>{if(!M)return"";const i=new Date(M);return`${i.getFullYear()}年${String(i.getMonth()+1).padStart(2,"0")}月${String(i.getDate()).padStart(2,"0")}日 ${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}:${String(i.getSeconds()).padStart(2,"0")}`},fe=M=>M=="0"?"bg-blue-lighten-5 text-blue":"bg-green-lighten-5 text-green",ge=M=>M=="0"?"服务中":"已服务",ue=M=>M=="0"?"bg-orange-lighten-5 text-orange":"bg-blue-lighten-5 text-blue",Ve=M=>M=="0"?"未评价":"已评价",ke=M=>({100:"特殊渠道",101:"移动端代办",102:"窗口端通办",200:"特殊渠道",210:"浙里办App",211:"浙里办微信小程序",212:"浙里办支付宝小程序",230:"微信小程序",240:"支付宝小程序",250:"自助机",300:"特殊渠道",310:"服务外包代办"})[M]||M;return(M,i)=>{const ee=e.resolveComponent("VIcon"),de=e.resolveComponent("VTab"),ce=e.resolveComponent("VSpacer"),qe=e.resolveComponent("VTabs"),te=e.resolveComponent("VBtn"),We=e.resolveComponent("VDivider"),xe=e.resolveComponent("VCheckbox"),N=e.resolveComponent("VCardTitle"),C=e.resolveComponent("VCard"),u=e.resolveComponent("VMenu"),E=e.resolveComponent("VTextField"),Z=e.resolveComponent("vtk-area-tabs"),H=e.resolveComponent("vtk-select"),he=e.resolveComponent("VDatePicker"),Ke=e.resolveComponent("vtk-search"),_e=e.resolveComponent("VChip"),nt=e.resolveComponent("VCol"),So=e.resolveComponent("VRow"),Bo=e.resolveComponent("vtk-empty"),$o=e.resolveComponent("VDataTable"),Eo=e.resolveComponent("vtk-page"),rt=e.resolveComponent("VCardText"),Do=e.resolveComponent("vtk-proj",!0),To=e.resolveComponent("VTextarea"),Ao=e.resolveComponent("VCardActions"),Mo=e.resolveComponent("VDialog"),Po=e.resolveComponent("VContainer");return e.openBlock(),e.createBlock(Po,{fluid:"",class:"vtk-height pa-0"},{default:e.withCtx(()=>[e.createVNode(qe,{modelValue:c.value,"onUpdate:modelValue":i[1]||(i[1]=T=>c.value=T),"bg-color":"transparent",height:"38",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(de,{onClick:i[0]||(i[0]=T=>x())},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[22]||(i[22]=[e.createTextVNode("mdi-clipboard-arrow-up",-1)])]),_:1}),i[23]||(i[23]=e.createTextVNode("全部",-1))])]),_:1}),e.createVNode(de,{onClick:Y},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[24]||(i[24]=[e.createTextVNode("mdi-star-circle",-1)])]),_:1}),i[25]||(i[25]=e.createTextVNode("审核",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[26]||(i[26]=[e.createTextVNode("mdi-hand-heart",-1)])]),_:1}),i[27]||(i[27]=e.createTextVNode("实施",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[28]||(i[28]=[e.createTextVNode("mdi-comment-minus",-1)])]),_:1}),i[29]||(i[29]=e.createTextVNode("评价",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[30]||(i[30]=[e.createTextVNode("mdi-credit-card-check",-1)])]),_:1}),i[31]||(i[31]=e.createTextVNode("支付",-1))])]),_:1}),e.createVNode(ce)]),_:1},8,["modelValue"]),e.createVNode(C,{elevation:"0",style:{"min-height":"calc(100% - 38px)"}},{default:e.withCtx(()=>[e.createVNode(N,{style:{height:"88px"}},{default:e.withCtx(()=>[c.value=="0"&&(k.value||l.value.grole>=2)?(e.openBlock(),e.createBlock(u,{key:0,"offset-y":"","close-on-content-click":!1,location:"bottom"},{activator:e.withCtx(({props:T})=>[e.createVNode(te,e.mergeProps({onClick:ae},T,{class:"bg-orange text-white mr-3",elevation:"0"}),{default:e.withCtx(()=>[e.createVNode(ee,null,{default:e.withCtx(()=>[...i[32]||(i[32]=[e.createTextVNode("mdi-export-variant",-1)])]),_:1}),i[33]||(i[33]=e.createTextVNode(" 导出 ",-1))]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(C,{class:"pa-3",width:"300"},{default:e.withCtx(()=>{var T;return[e.createElementVNode("div",null,[i[40]||(i[40]=e.createElementVNode("p",{class:"mb-2 font-weight-bold"},"公共字段",-1)),i[41]||(i[41]=e.createElementVNode("p",{class:"text-caption"},[e.createTextVNode(" 服务事项 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属区县 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属镇街 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属社区 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人证件号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人姓名 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 残疾人证号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 性别 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人手机号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 补助金额 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 开户银行 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 银行卡号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 收款人姓名 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 收款人证件号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 状态 ")],-1)),e.createVNode(We),e.unref(p).servState=="1"&&P.value?(e.openBlock(),e.createElementBlock("div",Ha,[e.createVNode(N,{class:"pa-0 text-body-1 mb-2 pt-3"},{default:e.withCtx(()=>[e.createVNode(xe,{"onUpdate:modelValue":[K,i[2]||(i[2]=v=>B.value=v)],modelValue:B.value,class:"mt-n1","hide-details":""},{append:e.withCtx(()=>[e.createVNode(ee,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...i[34]||(i[34]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue"]),i[35]||(i[35]=e.createElementVNode("span",{class:"font-weight-bold ml-n2"},"拓展字段",-1)),e.createVNode(ce)]),_:1}),((T=z.value)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("p",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(v,st)=>(e.openBlock(),e.createBlock(xe,{key:st,modelValue:$.value,"onUpdate:modelValue":i[3]||(i[3]=zo=>$.value=zo),label:v.label,value:{name:v.name,valu:`${v.label}${v.valu&&v.valu.includes("/")&&v.valu.includes(":")?`(${v.valu})`:""}`},class:"mt-2",multiple:"","hide-details":""},{append:e.withCtx(()=>[e.createVNode(ee,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...i[36]||(i[36]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue","label","value"]))),128))])):(e.openBlock(),e.createElementBlock("p",Ga,e.toDisplayString(A.value),1))])):(e.openBlock(),e.createElementBlock("div",Xa,[i[39]||(i[39]=e.createElementVNode("p",{class:"mb-3 pt-3 font-weight-bold"},"导出提示",-1)),e.createElementVNode("p",{class:e.normalizeClass([e.unref(p).servState=="1"?"text-green":"text-red","mb-3 text-body-2"])},[e.createVNode(ee,{size:"20",color:e.unref(p).servState=="1"?"green":"red"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p).servState=="1"?"mdi-progress-check":"mdi-progress-close"),1)]),_:1},8,["color"]),i[37]||(i[37]=e.createTextVNode(" 导出数据仅限已服务信息 ",-1))],2),e.createElementVNode("p",{class:e.normalizeClass(["mb-2 text-body-2",P.value?"text-green":"text-red"])},[e.createVNode(ee,{size:"20",color:P.value?"green":"red"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value?"mdi-progress-check":"mdi-progress-close"),1)]),_:1},8,["color"]),i[38]||(i[38]=e.createTextVNode(" 至少选择一个服务事项导出 ",-1))],2)]))]),e.createVNode(te,{onClick:re,disabled:!(P.value&&e.unref(p).servState=="1"),elevation:"0",color:"primary",class:"vtk-width mt-3",size:"small"},{default:e.withCtx(()=>[...i[42]||(i[42]=[e.createTextVNode("确认导出",-1)])]),_:1},8,["disabled"])]}),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(ce),e.createVNode(Ke,{modelValue:e.unref(p),"onUpdate:modelValue":i[17]||(i[17]=T=>e.isRef(p)?p.value=T:null),onSearch:J,placeholder:"输入姓名/身份证查询",styles:"width:320px"},{default:e.withCtx(()=>[e.createVNode(E,{onClick:R,modelValue:P.value,"onUpdate:modelValue":i[4]||(i[4]=T=>P.value=T),title:P.value,clearable:"",readonly:"",variant:"outlined",placeholder:"服务事项",density:"compact","hide-details":"",class:"my-3"},null,8,["modelValue","title"]),e.createVNode(Z,{modelValue:e.unref(p).areaCode,"onUpdate:modelValue":i[5]||(i[5]=T=>e.unref(p).areaCode=T),styles:"width:100%"},null,8,["modelValue"]),c.value==0?(e.openBlock(),e.createElementBlock("div",Za,[e.createVNode(H,{modelValue:e.unref(p).servState,"onUpdate:modelValue":i[6]||(i[6]=T=>e.unref(p).servState=T),onChange:J,placeholder:"服务状态",list:"0:服务中/1:已服务",class:"mt-3 d-inline-block mr-3 mb-3",style:{width:"calc(50% - 6px)"},"hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"]),e.createVNode(H,{modelValue:e.unref(p).rateState,"onUpdate:modelValue":i[7]||(i[7]=T=>e.unref(p).rateState=T),onChange:J,placeholder:"是否评价",list:"0:未评价/1:已评价",class:"mt-3 d-inline-block",style:{width:"calc(50% - 6px)"},"hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"]),e.createVNode(u,{modelValue:h.value,"onUpdate:modelValue":i[11]||(i[11]=T=>h.value=T),"close-on-content-click":!1,transition:"scale-transition",location:"bottom","max-width":"290px","min-width":"auto"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":i[8]||(i[8]=v=>e.unref(p).servFtime0=v),placeholder:"开始时间","persistent-hint":"","append-icon":"mdi-calendar",class:"d-inline-block",style:{width:"calc(50% - 16px)"},"hide-details":"",variant:"outlined",density:"compact"},T),null,16,["modelValue"])]),default:e.withCtx(()=>[e.createVNode(he,{modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":[i[9]||(i[9]=T=>e.unref(p).servFtime0=T),i[10]||(i[10]=T=>h.value=!1)],title:"","view-mode":"month",max:e.unref(p).servFtime1},null,8,["modelValue","max"])]),_:1},8,["modelValue"]),i[43]||(i[43]=e.createElementVNode("span",{class:"mx-2"},"至",-1)),e.createVNode(u,{modelValue:b.value,"onUpdate:modelValue":i[15]||(i[15]=T=>b.value=T),"close-on-content-click":!1,transition:"scale-transition",location:"bottom","max-width":"290px","min-width":"auto"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":i[12]||(i[12]=v=>e.unref(p).servFtime1=v),placeholder:"结束时间","persistent-hint":"","append-icon":"mdi-calendar",class:"d-inline-block",style:{width:"calc(50% - 15px)"},"hide-details":"",variant:"outlined",density:"compact"},T),null,16,["modelValue"])]),default:e.withCtx(()=>[e.createVNode(he,{modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":[i[13]||(i[13]=T=>e.unref(p).servFtime1=T),i[14]||(i[14]=T=>b.value=!1)],title:"","view-mode":"month",min:e.unref(p).servFtime0},null,8,["modelValue","min"])]),_:1},8,["modelValue"]),e.unref(p).servState=="1"?(e.openBlock(),e.createBlock(H,{key:0,onChange:J,modelValue:e.unref(p).state,"onUpdate:modelValue":i[16]||(i[16]=T=>e.unref(p).state=T),class:"mt-3",placeholder:"状态",list:"1:已通过/0:未通过","hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(rt,null,{default:e.withCtx(()=>[e.createVNode($o,{headers:m.value,items:e.unref(n),loading:e.unref(f),"disable-pagination":"","loading-text":"数据加载中...",class:"elevation-0","hide-default-footer":""},{"item.objsName":e.withCtx(({item:T})=>[e.createElementVNode("div",{class:"py-3",onClick:v=>F(T)},[e.createElementVNode("p",eo,[e.createTextVNode(e.toDisplayString(T.objsName),1),e.createElementVNode("span",to,e.toDisplayString(me(T.objsCode)),1),e.createVNode(_e,{class:e.normalizeClass(["ml-2",fe(T.servState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge(T.servState)),1)]),_:2},1032,["class"]),e.createVNode(_e,{class:e.normalizeClass(["ml-2",ue(T.rateState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ve(T.rateState)),1)]),_:2},1032,["class"])]),e.createElementVNode("span",null,[e.createVNode(_e,{class:"bg-orange-lighten-5 text-orange",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 事项编码:"+e.toDisplayString(T.projCode),1)]),_:2},1024),e.createVNode(_e,{class:"text-primary ml-2",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 办件编号:"+e.toDisplayString(T.inst),1)]),_:2},1024)]),e.createElementVNode("div",ao,[e.createElementVNode("div",oo,[i[44]||(i[44]=e.createTextVNode(" 服务名称:",-1)),e.createElementVNode("span",lo,e.toDisplayString(T.projName),1)]),e.createElementVNode("span",null,"补助金额:"+e.toDisplayString(T.servAmts)+"元",1)]),e.createVNode(So,{class:"py-2",style:{color:"#979797c2"}},{default:e.withCtx(()=>[e.createVNode(nt,{style:{"max-width":"320px"}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请途径:"+e.toDisplayString(ke(T.servFrom)),9,no)]),_:2},1024),e.createVNode(nt,null,{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请时间:"+e.toDisplayString(pe(T.servCtime)),9,ro)]),_:2},1024)]),_:2},1024)],8,va)]),"item.actions":e.withCtx(({item:T})=>{var v;return[T.state!=0&&((v=l.value.areacode)==null?void 0:v.length)==6&&T.servState=="1"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:st=>se(T),class:"text-error",text:""},"作废",8,so)):e.createCommentVNode("",!0),T.state==0?(e.openBlock(),e.createElementBlock("div",io)):e.createCommentVNode("",!0)]}),"no-data":e.withCtx(()=>[e.createVNode(Bo)]),_:2},1032,["headers","items","loading"]),e.createVNode(Eo,{"page-sizes":[10,20],"page-data":e.unref(a),onPageChange:e.unref(s)},null,8,["page-data","onPageChange"])]),_:1})]),_:1}),e.createVNode(Do,{ref_key:"MprojRef",ref:I,onToPage:L},null,512),e.createVNode(Mo,{modelValue:D.value,"onUpdate:modelValue":i[21]||(i[21]=T=>D.value=T),persistent:"","max-width":"500"},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[...i[45]||(i[45]=[e.createTextVNode("作废",-1)])]),_:1}),e.createVNode(rt,{class:"pb-0"},{default:e.withCtx(()=>[i[46]||(i[46]=e.createTextVNode(" 服务作废后将无法恢复,请谨慎操作!!! ",-1)),e.createVNode(To,{modelValue:O.value,"onUpdate:modelValue":i[18]||(i[18]=T=>O.value=T),variant:"outlined",label:"请填写作废原因",class:"mt-3","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1}),e.createVNode(Ao,null,{default:e.withCtx(()=>[e.createVNode(ce),e.createVNode(te,{onClick:i[19]||(i[19]=T=>D.value=!1),variant:"text"},{default:e.withCtx(()=>[...i[47]||(i[47]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(te,{onClick:i[20]||(i[20]=T=>ne()),variant:"text"},{default:e.withCtx(()=>[...i[48]||(i[48]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),[["__scopeId","data-v-052be5fe"]]),Ue=Object.assign({name:"VtkRadio",inheritAttrs:!1},{__name:"VtkRadio",props:{list:{type:String,required:!0},modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=o,r=e.useAttrs(),d=e.ref([]),n=()=>{a.list.split("/").forEach(g=>{const[p,l]=g.split(":");d.value.push({code:p,codeValue:l})})},f=async()=>{try{const g=await W.getForm(`dict/misc/list/${a.list}`);d.value=g.data||[]}catch(g){console.error("[VtkRadio] Failed to load dictionary:",g),d.value=[]}},V=g=>{s("update:modelValue",g)};return e.onMounted(()=>{a.list.includes(":")?n():f()}),(g,p)=>{const l=e.resolveComponent("VRadio"),c=e.resolveComponent("VRadioGroup");return e.openBlock(),e.createBlock(c,e.mergeProps(e.unref(r),{modelValue:t.modelValue,"onUpdate:modelValue":V}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,m=>(e.openBlock(),e.createBlock(l,{key:m.id||m.code,label:m.codeValue,value:m.code},null,8,["label","value"]))),128))]),_:1},16,["modelValue"])}}}),co={class:"search"},Le=Q(Object.assign({name:"VtkSearch"},{__name:"VtkSearch",props:{value:{type:Object,default:()=>({})}},emits:["update:value","search"],setup(t,{emit:o}){const a=t,s=o,r=e.ref({}),d=e.ref(!1),n=e.ref({...a.value}),f=e.ref(0);e.watch(()=>a.value,c=>{n.value={...c}},{deep:!0}),e.onMounted(()=>{r.value=JSON.parse(localStorage.getItem("_mis_acis_users")||"{}"),f.value=0});const V=()=>{d.value||(f.value=0)},g=()=>{d.value=!1,V()},p=()=>{g(),s("update:value",n.value),s("search")},l=()=>{Object.keys(n.value).forEach(c=>{c!=="condition"&&delete n.value[c]}),delete n.value.condition,f.value=0,s("update:value",n.value),s("search"),d.value=!1};return(c,m)=>{const w=e.resolveComponent("VBadge"),P=e.resolveComponent("VTextField"),A=e.resolveComponent("VIcon"),_=e.resolveComponent("VBtn"),k=e.resolveComponent("VCardTitle"),h=e.resolveComponent("VCardText"),b=e.resolveComponent("VSpacer"),$=e.resolveComponent("VCardActions"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",co,[e.createVNode(B,{modelValue:d.value,"onUpdate:modelValue":[m[2]||(m[2]=y=>d.value=y),V],location:"bottom",offset:"12","close-on-content-click":!1},{activator:e.withCtx(({props:y})=>[e.createVNode(P,{modelValue:n.value.condition,"onUpdate:modelValue":m[0]||(m[0]=D=>n.value.condition=D),placeholder:c.$attrs.placeholder||"请输入查询内容",style:e.normalizeStyle(c.$attrs.styles),class:"box",density:"compact",variant:"outlined","hide-details":"","onClick:append":p,onKeyup:e.withKeys(p,["enter"]),"onClick:clear":m[1]||(m[1]=D=>(n.value.condition="",p())),clearable:""},{"append-inner":e.withCtx(()=>[e.createVNode(w,{dot:"",content:f.value,"model-value":f.value>0,color:"error",class:"advanced-badge"},{default:e.withCtx(()=>[e.createElementVNode("span",e.mergeProps(y,{class:"text-blue vtk-cursor-pointer d-inline-flex align-center text-body-2"})," 高级 ",16)]),_:2},1032,["content","model-value"])]),_:2},1032,["modelValue","placeholder","style"])]),default:e.withCtx(()=>[e.createVNode(z,{style:{width:"380px","margin-right":"-16px"}},{default:e.withCtx(()=>[e.createVNode(k,{class:"pr-3 d-flex justify-space-between align-center pb-5"},{default:e.withCtx(()=>[m[4]||(m[4]=e.createElementVNode("span",null,"高级搜索",-1)),e.createVNode(_,{class:"mx-0",variant:"text",icon:"",onClick:g,size:"small"},{default:e.withCtx(()=>[e.createVNode(A,null,{default:e.withCtx(()=>[...m[3]||(m[3]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),e.createVNode(h,null,{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3}),e.createVNode($,{class:"pt-0 px-4 pb-3"},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"actions",{},void 0,!0),e.createVNode(b),e.createVNode(_,{onClick:p,variant:"flat",color:"primary"},{default:e.withCtx(()=>[e.createVNode(A,{class:"mr-1"},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("mdi-magnify",-1)])]),_:1}),m[6]||(m[6]=e.createTextVNode("搜索 ",-1))]),_:1}),e.createVNode(_,{onClick:l,variant:"flat",color:"error"},{default:e.withCtx(()=>[e.createVNode(A,{class:"mr-1"},{default:e.withCtx(()=>[...m[7]||(m[7]=[e.createTextVNode("mdi-sync",-1)])]),_:1}),m[8]||(m[8]=e.createTextVNode("重置 ",-1))]),_:1})]),_:3})]),_:3})]),_:3},8,["modelValue"])])}}}),[["__scopeId","data-v-2922c5c7"]]),Oe=Q(Object.assign({name:"VtkSelect",inheritAttrs:!1},{__name:"VtkSelect",props:{list:{type:String,default:null},multi:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=e.useAttrs(),r=e.computed(()=>{const{list:V,multi:g,...p}=s;return p}),d=e.ref([]),n=()=>{W.getForm(`dict/misc/list/${a.list}`).then(V=>{d.value=V.data})},f=()=>{a.list&&a.list.split("/").forEach(V=>{const g=V.split(":");d.value.push({code:g[0],codeValue:g[1]})})};return e.onMounted(()=>{a.list&&(a.list.includes(":")?f():n())}),(V,g)=>{const p=e.resolveComponent("VSelect");return e.openBlock(),e.createBlock(p,e.mergeProps(r.value,{items:d.value,"item-title":"codeValue","item-value":"code",multiple:t.multi,"menu-props":{offsetY:!0},"onUpdate:modelValue":g[0]||(g[0]=l=>V.$emit("update:modelValue",l))}),null,16,["items","multiple"])}}}),[["__scopeId","data-v-7cb05cd0"]]),mo=["complete","step"],Re=Q(Object.assign({name:"VtkStepper",inheritAttrs:!1},{__name:"VtkStepper",props:{list:{type:String,default:null},el:{type:Number,default:1}},setup(t){const o=t,a=e.ref(o.el),s=e.ref([]);e.watch(()=>o.el,d=>{a.value=d});const r=()=>{o.list&&(s.value=o.list.split(","))};return e.onMounted(()=>{r()}),e.watch(()=>o.list,()=>{r()}),(d,n)=>{const f=e.resolveComponent("VCol"),V=e.resolveComponent("VRow"),g=e.resolveComponent("VStepperHeader"),p=e.resolveComponent("VStepperWindowItem"),l=e.resolveComponent("VStepperWindow"),c=e.resolveComponent("VStepper");return e.openBlock(),e.createBlock(c,{class:"elevation-0",modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=m=>a.value=m)},{default:e.withCtx(()=>[e.createVNode(g,{class:"elevation-0",style:{overflow:"hidden"}},{default:e.withCtx(()=>[e.createVNode(V,{class:"stepList"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(m,w)=>(e.openBlock(),e.createBlock(f,{class:"pl-0 colItem",key:w,style:{}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["first-box1 last-box pl-10 py-5 stepItem",a.value>w?"selected":""]),complete:a.value>w,step:w+1},e.toDisplayString(m),11,mo)]),_:2},1024))),128))]),_:1})]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(m,w)=>(e.openBlock(),e.createBlock(p,{key:w,value:w+1},{default:e.withCtx(()=>[e.renderSlot(d.$slots,w+1,{},void 0,!0)]),_:2},1032,["value"]))),128)),e.renderSlot(d.$slots,"default",{},void 0,!0)]),_:3})]),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-5ab53ed0"]]);function He(t,o){let a="";return t&&t.includes(",")?a=t.split(",").map(s=>Qe(s,o)).join():a=Qe(t,o),a}function Qe(t,o){if(t){for(var a=Array.isArray(t)?t:t.split(","),s=o==null?void 0:o.split("/"),r=[],d=0;d<(a==null?void 0:a.length);d++){var n=a[d];for(var f in s){var V=s[f].split(":");if(V[0]==n){r.push(V[1]);break}}}return r.length>0?r.join():"其他"}}function Ge(t){if(!t)return"";let o="",a=["视力","听力","言语","肢体","智力","精神","多重"];for(let s=1;s<8;s++)s===1?o=t.replace(s.toString(),a[s-1]):o=o.replace(s.toString(),a[s-1]);return o}function Xe(t){if(!t)return"";let o="",a=["一级","二级","三级","四级","不限等级"];for(let s=1;s<7;s++)s===1?o=t.replace(s.toString(),a[s-1]):o=o.replace(s.toString(),a[s-1]);return o}const po=Object.freeze(Object.defineProperty({__proto__:null,analyLevel:Xe,analyType:Ge,dict:He},Symbol.toStringTag,{value:"Module"}));function Ze(t,o){if(!t||t=="无"||t==null)return o="无",o;let a=new Date(t),s={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};/(y+)/.test(o)&&(o=o.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length)));for(let r in s)new RegExp("("+r+")").test(o)&&(o=o.replace(RegExp.$1,RegExp.$1.length===1?s[r]:("00"+s[r]).substr((""+s[r]).length)));return o}function ve(t,o){if(isNaN(t)||t===""||t===null)return t;var a=parseFloat(t),s=a<0?"-":"",r=Math.abs(a),d=0;o&&o.includes(".")&&(d=o.length-o.lastIndexOf(".")-1);var n=o&&o.includes(","),f=d>0?r.toFixed(d):Math.round(r),V=d>0?"."+f.toString().split(".")[1]:"",g=d>0?Math.floor(r).toString():f.toString();return n&&g.length>3&&(g=g.replace(/\B(?=(\d{3})+(?!\d))/g,",")),s+g+V}function et(t){let o=new Date(t.slice(0,10).replace(/-/g,"/")),a=new Date;return a.getFullYear()-o.getFullYear()-(a.getMonth()<o.getMonth()||a.getMonth()===o.getMonth()&&a.getDate()<o.getDate()?1:0)}function tt(t,o){return(t==null?void 0:t.length)>o?t.slice(0,o)+"...":t}function at(t){return isNaN(t)?0:Math.abs(t)}const fo=Object.freeze(Object.defineProperty({__proto__:null,abs:at,age:et,date:Ze,num:ve,txt:tt},Symbol.toStringTag,{value:"Module"}));function ot(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function lt(t){if(t)return t.replace(/^(.{4})(?:\d+)(.{4})$/,"$1** **** ****$2")}const go=Object.freeze(Object.defineProperty({__proto__:null,idcard:lt,mobile:ot},Symbol.toStringTag,{value:"Module"})),X={red:{lighten4:"#ffcdd2",accent2:"#ff5252",accent3:"#ff1744"},pink:{lighten4:"#f8bbd0",accent1:"#ff80ab",accent2:"#ff4081"},purple:{lighten4:"#e1bee7",accent2:"#e040fb",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten4:"#d1c4e9",accent2:"#7c4dff"},blue:{base:"#2196f3",lighten4:"#bbdefb",accent2:"#448aff"},amber:{lighten4:"#ffecb3",darken1:"#ffb300",accent2:"#ffd740"}},Ye={theme_colors:[{name:"Blue-light",scheme:"md-blue-500-scheme",dark:!0,primary:X.blue.base,secondary:X.blue.lighten4,accent:X.blue.accent2},{name:"Yellow-light",scheme:"md-amber-a700-scheme",dark:!0,primary:X.amber.darken1,secondary:X.amber.lighten4,accent:X.amber.accent2},{name:"Red-light",scheme:"md-red-a400-scheme",dark:!0,primary:X.red.accent3,secondary:X.red.lighten4,accent:X.red.accent2},{name:"Pink-light",dark:!1,scheme:"md-pink-a100-scheme",primary:X.pink.accent1,secondary:X.pink.lighten4,accent:X.pink.accent2},{name:"Purple-light",dark:!1,scheme:"md-purple-a700-scheme",primary:X.purple.accent4,secondary:X.purple.lighten4,accent:X.purple.accent2},{name:"DeepPurple-light",dark:!1,scheme:"md-deep-purple-a700-scheme",primary:X.deepPurple.base,secondary:X.deepPurple.lighten4,accent:X.deepPurple.accent2}],navi_colors:[{name:"black",class:"black"},{name:"red-pink",class:"gradient-red-pink"},{name:"blue-grey-blue",class:"gradient-blue-grey-blue"},{name:"green-teal",class:"gradient-green-teal"},{name:"purple-deep-purple",class:"gradient-purple-deep-purple"},{name:"purple-amber",class:"gradient-purple-amber"},{name:"indigo-purple",class:"gradient-indigo-purple"},{name:"deep-purple-blue",class:"gradient-deep-purple-blue"},{name:"deep-orange-orange",class:"gradient-deep-orange-orange"},{name:"light-blue-cyan",class:"gradient-light-blue-cyan"},{name:"timber",class:"gradient-timber"},{name:"strawberry",class:"gradient-strawberry"},{name:"orange",class:"gradient-orange"},{name:"pomegranate",class:"gradient-pomegranate"},{name:"green-tea",class:"gradient-green-tea"},{name:"blackberry",class:"gradient-blackberry"},{name:"plum",class:"gradient-plum"},{name:"passion-fruit",class:"gradient-passion-fruit"},{name:"sublime-vivid",class:"gradient-sublime-vivid"},{name:"summer",class:"gradient-summer"},{name:"crystal-clear",class:"gradient-crystal-clear"},{name:"dawn",class:"gradient-dawn"},{name:"grapefruit-sunset",class:"gradient-grapefruit-sunset"},{name:"man-of-steel",class:"gradient-man-of-steel"}]},uo={isMobile:function(t){return/^(?:\+86)?(?:13\d|14[57]|15[0-35-9]|17[35-8]|18\d)\d{8}$|^(?:\+86)?170[057-9]\d{7}$/.test(t)},isMobileSize:function(t){return/^(?:\+86)?1\d{10}$/.test(t)},isPhone:function(t){return/^(?:\(\d{3,4}\)|\d{3,4}-)?\d{7,8}(?:-\d{1,4})?$/.test(t)},isCall:t=>(void 0).isPhone(t)||(void 0).isMobile(t),isEmail:function(t){return/^[-\w+]+(?:\.[-\w]+)*@[-a-z0-9]+(?:\.[a-z0-9]+)*(?:\.[a-z]{2,})$/i.test(t)},isIdCardSimple:function(t){return/^(?:1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5])\d{4}(?:1[89]|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}(?:\d|[xX])$/.test(t)},isName:function(t){return/^([\u4e00-\u9fa5]{1,20}|[a-zA-Z.\s]{1,20})$/.test(t)},isIdCard:function(t){let o=n=>{for(var f=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],V=n.split(""),g=17,p=0,l=0;l<g;l++)p+=V[l]*f[l];var c=p%11,m=["1","0","X","9","8","7","6","5","4","3","2"],w=m[c];return w===n[17]};if(this.isIdCardSimple(t)){var a=t.substr(6,8),s=a.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"),r=new Date(s),d=r.getMonth()+1;if(parseInt(a.substr(4,2))===d)return o(t)}return!1},getFromIdCard:t=>{var o=t.substr(0,6),a=t.substr(6,8).replace(/(\d{4})(\d{2})(\d{2})/,"$1年$2月$3日"),s=new Date().getFullYear()-t.substr(6,4)+1,r=t.substr(16,1)%2===0?"女":"男";return{area:o,birth:a,age:s,sex:r}}},Vo={__name:"alert",setup(t){const o=oe(),a=e.computed(()=>{var d;return((d=o.alert)==null?void 0:d.isActive)||!1}),s=e.computed(()=>{var d;return((d=o.alert)==null?void 0:d.options)||{}}),r=()=>{o.hide("alert")};return(d,n)=>{const f=e.resolveComponent("VCardTitle"),V=e.resolveComponent("VCardText"),g=e.resolveComponent("VSpacer"),p=e.resolveComponent("VBtn"),l=e.resolveComponent("VCardActions"),c=e.resolveComponent("VCard"),m=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(m,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=w=>a.value=w),persistent:"",width:s.value.width},{default:e.withCtx(()=>[e.createVNode(c,{color:s.value.color},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.title),1)]),_:1}),s.value.text?(e.openBlock(),e.createBlock(V,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(g),e.createVNode(p,{text:"",onClick:r},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","width"])}}},ko={__name:"confirm",setup(t){const o=oe(),a=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.isActive)||!1}),s=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.options)||{}}),r=()=>{typeof s.value.onConfirm=="function"&&s.value.onConfirm(),o.hide("confirm")},d=()=>{typeof s.value.onCancel=="function"&&s.value.onCancel(),o.hide("confirm")};return(n,f)=>{const V=e.resolveComponent("VCardTitle"),g=e.resolveComponent("VCardText"),p=e.resolveComponent("VSpacer"),l=e.resolveComponent("VBtn"),c=e.resolveComponent("VCardActions"),m=e.resolveComponent("VCard"),w=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(w,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=P=>a.value=P),persistent:"","max-width":s.value.width||400},{default:e.withCtx(()=>[e.createVNode(m,{color:s.value.color},{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.title),1)]),_:1}),s.value.text?(e.openBlock(),e.createBlock(g,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(p),e.createVNode(l,{text:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.cancelText||"取消"),1)]),_:1}),e.createVNode(l,{text:"",onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","max-width"])}}},ho={__name:"loading",setup(t){const o=oe(),a=e.computed(()=>{var s;return((s=o.loading)==null?void 0:s.isActive)||!1});return(s,r)=>{const d=e.resolveComponent("v-progress-circular"),n=e.resolveComponent("v-overlay");return e.openBlock(),e.createBlock(n,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=f=>a.value=f),persistent:"",class:"align-center justify-center",style:{zIndex:9999}},{default:e.withCtx(()=>[e.createVNode(d,{indeterminate:"",size:"64",width:"6",color:"primary"})]),_:1},8,["modelValue"])}}},yo={key:0,class:"mt-2"},Co={name:"vtkMessage",components:{vtkAlert:Vo,vtkConfirm:ko,vtkLoading:ho,vtkPrompt:{__name:"prompt",setup(t){const o=oe(),a=e.ref(""),s=e.computed(()=>{var f;return((f=o.prompt)==null?void 0:f.isActive)||!1}),r=e.computed(()=>{var f;return((f=o.prompt)==null?void 0:f.options)||{}}),d=()=>{typeof r.value.onConfirm=="function"&&r.value.onConfirm(a.value),o.hide("prompt"),a.value=""},n=()=>{typeof r.value.onCancel=="function"&&r.value.onCancel(),o.hide("prompt"),a.value=""};return(f,V)=>{const g=e.resolveComponent("VCardTitle"),p=e.resolveComponent("VTextField"),l=e.resolveComponent("VCardText"),c=e.resolveComponent("VSpacer"),m=e.resolveComponent("VBtn"),w=e.resolveComponent("VCardActions"),P=e.resolveComponent("VCard"),A=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(A,{modelValue:s.value,"onUpdate:modelValue":V[1]||(V[1]=_=>s.value=_),persistent:"",width:r.value.width},{default:e.withCtx(()=>[e.createVNode(P,{color:r.value.color},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.title),1)]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:a.value,"onUpdate:modelValue":V[0]||(V[0]=_=>a.value=_),label:r.value.label,placeholder:r.value.placeholder,type:r.value.inputType||"text",outlined:"",dense:""},null,8,["modelValue","label","placeholder","type"]),r.value.text?(e.openBlock(),e.createElementBlock("div",yo,e.toDisplayString(r.value.text),1)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(c),e.createVNode(m,{text:"",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.cancelText||"取消"),1)]),_:1}),e.createVNode(m,{text:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","width"])}}},vtkToast:Q({__name:"toast",setup(t){const o=oe(),a=e.computed({get:()=>{var n;return((n=o.toast)==null?void 0:n.isActive)||!1},set:n=>{o.toast&&(o.toast.isActive=n)}}),s=e.computed(()=>{var n;return((n=o.toast)==null?void 0:n.options)||{}}),r=()=>{o.hide("toast")},d=n=>{n||o.hide("toast")};return(n,f)=>{const V=e.resolveComponent("VIcon"),g=e.resolveComponent("VBtn"),p=e.resolveComponent("VSnackbar");return e.openBlock(),e.createBlock(p,{modelValue:a.value,"onUpdate:modelValue":[f[1]||(f[1]=l=>a.value=l),d],timeout:s.value.timeout>0?s.value.timeout:3e3,color:s.value.color,centered:""},{actions:e.withCtx(()=>[e.createVNode(g,{text:"",icon:"",onClick:f[0]||(f[0]=l=>r())},{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[...f[2]||(f[2]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text)+" ",1)]),_:1},8,["modelValue","timeout","color"])}}},[["__scopeId","data-v-c08037e4"]])}},xo={class:"text-center"};function _o(t,o,a,s,r,d){const n=e.resolveComponent("vtk-alert"),f=e.resolveComponent("vtk-confirm"),V=e.resolveComponent("vtk-loading"),g=e.resolveComponent("vtk-prompt"),p=e.resolveComponent("vtk-toast");return e.openBlock(),e.createElementBlock("div",xo,[e.createVNode(n),e.createVNode(f),e.createVNode(V),e.createVNode(g),e.createVNode(p)])}const No=Q(Co,[["render",_o]]);function wo(t,o={}){const a={VtkArea:we,VtkAreaTabs:be,VtkBreadcrumb:Se,VtkCheckbox:Be,VtkCount:$e,VtkDatePicker:Ee,VtkDateSelector:De,VtkDept:Te,VtkEmpty:Ae,VtkFab:Me,VtkFormItem:Pe,VtkImg:ze,VtkPage:Fe,VtkPdf:Ie,VtkProj:je,VtkRadio:Ue,VtkSearch:Le,VtkSelect:Oe,VtkStepper:Re,VtkMessage:No};return Object.keys(a).forEach(s=>{t.component(s,a[s])}),t.config.globalProperties.$vtk={message:G,request:W,storage:le,themes:Ye,Validation:uo,filters:{...po,...go,...fo},...o},t}const bo={install:wo,VtkArea:we,VtkAreaTabs:be,VtkBreadcrumb:Se,VtkCheckbox:Be,VtkCount:$e,VtkDatePicker:Ee,VtkDateSelector:De,VtkDept:Te,VtkEmpty:Ae,VtkFab:Me,VtkFormItem:Pe,VtkImg:ze,VtkPage:Fe,VtkPdf:Ie,VtkProj:je,VtkRadio:Ue,VtkSearch:Le,VtkSelect:Oe,VtkStepper:Re,request:W,storage:le,themes:Ye,vtkMessage:G};j.VtkArea=we,j.VtkAreaTabs=be,j.VtkBreadcrumb=Se,j.VtkCheckbox=Be,j.VtkCount=$e,j.VtkDatePicker=Ee,j.VtkDateSelector=De,j.VtkDept=Te,j.VtkEmpty=Ae,j.VtkFab=Me,j.VtkFormItem=Pe,j.VtkImg=ze,j.VtkPage=Fe,j.VtkPdf=Ie,j.VtkProj=je,j.VtkRadio=Ue,j.VtkSearch=Le,j.VtkSelect=Oe,j.VtkStepper=Re,j.abs=at,j.age=et,j.analyLevel=Xe,j.analyType=Ge,j.date=Ze,j.default=bo,j.dict=He,j.idcard=lt,j.mobile=ot,j.num=ve,j.request=W,j.storage=le,j.themes=Ye,j.txt=tt,j.useMixins=Je,j.vtkMessage=G,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(j,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("axios"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","axios","pinia"],e):(j=typeof globalThis<"u"?globalThis:j||self,e(j.SpecterPuiVtk={},j.Vue,j.axios,j.Pinia))})(this,(function(j,e,it,ct){"use strict";var Ne=typeof document<"u"?document.currentScript:null;const le={},ye=(t="local")=>t=="local"?window.localStorage:window.sessionStorage;le.get=(t,o="local")=>{var a=ye(o).getItem(t);return/^[\\{|\\[].+[\\}|\\]]$/.test(a)?JSON.parse(a):a},le.set=(t,o,a="local")=>{o=o.constructor===Object?JSON.stringify(o):o,ye(a).setItem(t,o)},le.remove=(t,o="local")=>{ye(o).removeItem(t)},le.clear=(t="local")=>{ye(t).clear()};const oe=ct.defineStore("message",{state:()=>({alert:{isActive:!1,options:{title:"",text:"",color:"",width:500}},confirm:{isActive:!1,options:{title:"",text:"",color:"",width:400,cancelText:"取消",confirmText:"确定"}},loading:{isActive:!1,options:{title:"",text:"",color:"",width:300,indeterminate:!0,value:0,progressColor:"primary",size:64,circleWidth:6}},prompt:{isActive:!1,options:{title:"",text:"",color:"",width:500,label:"",placeholder:"",inputType:"text",cancelText:"取消",confirmText:"确定"}},toast:{isActive:!1,options:{text:"",color:"",timeout:3e3,position:"top"}}}),actions:{hide(t){this[t]&&(this[t].isActive=!1)},show(t,o){this[t]&&(this[t]={isActive:!0,options:o})}}}),G={alert(t){oe().show("alert",t)},confirm(t){oe().show("confirm",t)},loading:{show(t={}){const o=oe(),a={title:"",text:"",color:"",width:120,indeterminate:!0,progressColor:"primary",size:64,circleWidth:6};o.show("loading",{...a,...t})},hide(){oe().hide("loading")}},prompt(t){oe().show("prompt",t)},toast(t,o={}){const a=oe(),s=typeof t=="string"?{text:t,...o}:t;a.show("toast",s)},hide(t){oe().hide(t)}},Ce=it.create({baseURL:window.VITE_APP_API_URL||void 0||"",headers:{"X-Requested-With":"XMLHttpRequest"},withCredentials:!1,timeout:3e4});Ce.interceptors.request.use(t=>{var a,s;const o=((s=(a=window.VTK_CONFIG)==null?void 0:a.storageKeys)==null?void 0:s.token)||"_mis_acis_token";return le.get(o)&&(t.headers["X-Token"]="1b0679be72ad976ad5d491ad57a5eec0",t.headers.Authorization="Bearer "+le.get(o)),t},t=>(G.toast(t.message||"请求错误"),Promise.reject(t))),Ce.interceptors.response.use(t=>{let o=t.data,a=t.headers["content-disposition"];if(a!=null&&a.split(";")[0]=="attachment"&&(o=t),t.status!==200)return G.toast(o.message||"请求失败",{color:"error"}),Promise.reject(new Error(o.message||"请求失败"));if(o.meta&&!o.meta.success&&o.meta.message==="specter_authorize_exception"){le.clear();const s=()=>{const r=window.location.href,d=r.indexOf("#");let n;d>-1?n=r.substring(0,d)+"#/":n=r+"#/",window.location.href=n};G.confirm({title:"提示",text:"对不起,您的登录信息过期!",onConfirm:s,onCancel:s})}return Promise.resolve(o)},t=>(console.log("err"+t),G.toast(t.message||"网络错误",{color:"error"}),Promise.reject(t)));const W={};W.http=(t,o={},a="GET",s={"content-type":"application/x-www-form-urlencoded"},r=null)=>s["content-type"]==="application/x-www-form-urlencoded"?Ce({url:t,params:o,method:a,headers:s,responseType:r}):Ce({url:t,data:o,method:a,headers:s,responseType:r}),W.getForm=(t,o={})=>W.http(t,o),W.postForm=(t,o={})=>W.http(t,o,"POST"),W.getJson=(t,o={})=>W.http(t,o,"POST",{"content-type":"application/json"}),W.postJson=(t,o={})=>W.http(t,o,"POST",{"content-type":"application/json"}),W.imp=(t,o={})=>W.http(t,o,"POST",{"Content-Type":"multipart/form-data"}),W.exp=(t,o={})=>W.http(t,o,"POST",{"content-Type":"application/json"},"blob");const Q=(t,o)=>{const a=t.__vccOpts||t;for(const[s,r]of o)a[s]=r;return a},dt={class:"d-inline-block d-flex"},we=Q(Object.assign({name:"VtkArea",inheritAttrs:!1},{__name:"VtkArea",props:{maxArea:{type:Number,default:12},minArea:{type:Number,default:null},areaStyle:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:a}=e.getCurrentInstance(),s=o,r=e.reactive({area2:null,area4:null,area6:null,area9:null,area12:null,name2:"",name4:"",name6:"",name9:"",name12:""}),d=e.ref({areacode:""}),n=e.reactive({area2:[],area4:[],area6:[],area9:[],area12:[]});e.onMounted(()=>{var c,m;const l=((m=(c=window.VTK_CONFIG)==null?void 0:c.storageKeys)==null?void 0:m.user)||"_mis_acis_users";d.value=typeof a.$vtk.storage.get(l)!="object"?JSON.parse(a.$vtk.storage.get(l)):a.$vtk.storage.get(l)||"",d.value&&f()});const f=()=>{var l,c;try{a.$vtk.message.loading.show(),W.postForm(`/dict/area/show/${d.value.areacode}`).then(m=>{var w,P;a.$vtk.message.loading.hide(),m.meta.success?(r[`area${m.data.areaLeve}`]=m.data.areaCode,r.name2=m.data.province,r.name4=m.data.city,r.name6=m.data.district,r.name9=(w=m.data)==null?void 0:w.town,r.name12=(P=m.data)==null?void 0:P.village,V(d.value.areacode)):a.$vtk.message.toast(m.meta.message)}).catch(m=>{a.$vtk.message.loading.hide(),a.$vtk.message.toast("加载区域数据失败")})}catch(m){console.error("初始化区域数据失败:",m),(c=(l=a.$vtk.message)==null?void 0:l.loading)!=null&&c.hide&&a.$vtk.message.loading.hide()}},V=(l,c)=>{p(l),(l==null?void 0:l.length)<12&&W.postForm(`/dict/area/next/${l}`).then(m=>{a.$vtk.message.loading.hide(),m.meta.success?(c&&Object.keys(n).slice(c,5).forEach(w=>{n[w]=[],r[w]=null}),n[`area${m.data[0].areaLeve}`]=m.data):a.$vtk.message.toast(m.meta.message)}).catch(m=>{console.error("加载下级区域数据失败:",m),a.$vtk.message.toast("加载下级区域数据失败")})},g=l=>{let c=Object.keys(n);p(r[c[l-2]]),c.slice(l,5).forEach(m=>{n[m]=[],r[m]=null})},p=l=>{l&&s("update:modelValue",l)};return(l,c)=>{var w,P,A,_,k,h,b,$,z,B;const m=e.resolveComponent("VSelect");return e.openBlock(),e.createElementBlock("div",dt,[e.createVNode(m,{modelValue:r.area2,"onUpdate:modelValue":[c[0]||(c[0]=y=>r.area2=y),c[1]||(c[1]=y=>V(r.area2,1))],"onClick:clear":c[2]||(c[2]=y=>g(1)),placeholder:((w=d.value.areacode)==null?void 0:w.length)>=2?r.name2:"---省级---",items:n.area2,"item-title":"areaName","item-value":"areaCode",class:"d-inline-block sel_box mr-3","hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((P=d.value.areacode)==null?void 0:P.length)>=2,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","disabled","style"]),t.maxArea>=4?(e.openBlock(),e.createBlock(m,{key:0,modelValue:r.area4,"onUpdate:modelValue":[c[3]||(c[3]=y=>r.area4=y),c[4]||(c[4]=y=>V(r.area4,2))],"onClick:clear":c[5]||(c[5]=y=>g(2)),placeholder:((A=d.value.areacode)==null?void 0:A.length)>=4?r.name4:"---市级---",items:n.area4,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>4&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((_=d.value.areacode)==null?void 0:_.length)>=4,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=6?(e.openBlock(),e.createBlock(m,{key:1,modelValue:r.area6,"onUpdate:modelValue":[c[6]||(c[6]=y=>r.area6=y),c[7]||(c[7]=y=>V(r.area6,3))],"onClick:clear":c[8]||(c[8]=y=>g(3)),placeholder:((k=d.value.areacode)==null?void 0:k.length)>=6?r.name6:"---区/县---",items:n.area6,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>6&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((h=d.value.areacode)==null?void 0:h.length)>=6,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=9?(e.openBlock(),e.createBlock(m,{key:2,modelValue:r.area9,"onUpdate:modelValue":[c[9]||(c[9]=y=>r.area9=y),c[10]||(c[10]=y=>V(r.area9,4))],"onClick:clear":c[11]||(c[11]=y=>g(4)),placeholder:((b=d.value.areacode)==null?void 0:b.length)>=9?r.name9:"---街/镇---",items:n.area9,"item-title":"areaName","item-value":"areaCode",class:e.normalizeClass(["d-inline-block sel_box",t.maxArea>9&&"mr-3"]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:(($=d.value.areacode)==null?void 0:$.length)>=9,"menu-props":{offsetY:!0},style:e.normalizeStyle(t.areaStyle)},null,8,["modelValue","placeholder","items","class","disabled","style"])):e.createCommentVNode("",!0),t.maxArea>=12?(e.openBlock(),e.createBlock(m,{key:3,modelValue:r.area12,"onUpdate:modelValue":[c[12]||(c[12]=y=>r.area12=y),c[13]||(c[13]=y=>V(r.area12,5))],"onClick:clear":c[14]||(c[14]=y=>g(5)),placeholder:((z=d.value.areacode)==null?void 0:z.length)>=12?r.name12:"---村/社---",items:n.area12,"item-title":"areaName","item-value":"areaCode",class:"d-inline-block",style:e.normalizeStyle([{width:"188px"},t.areaStyle]),"hide-details":"",density:"compact",variant:"outlined",clearable:"",disabled:((B=d.value.areacode)==null?void 0:B.length)>=12,"menu-props":{offsetY:!0}},null,8,["modelValue","placeholder","items","disabled","style"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-644cffae"]]),mt={class:"btn-text"},pt={class:"pt-3 px-3"},be=Q({__name:"VtkAreaTabs",props:{modelValue:{type:String,default:null},minArea:{type:Number,default:null},areaNode:{type:Number,default:null}},emits:["update:modelValue","change"],setup(t,{emit:o}){const a=t,s=o,{proxy:r}=e.getCurrentInstance(),d=e.ref(!1),n=e.ref({}),f=e.ref(0),V=e.ref([]),g=e.ref([]),p=e.ref([]),l=e.ref([]),c=e.ref(null),m=e.ref(""),w=e.ref(""),P=B=>{r.$vtk.request.getForm(`/dict/area/show/${B}`).then(y=>{let D=y.data.province?`${y.data.province}`:"",U=y.data.city?`/${y.data.city}`:"",O=y.data.district?`/${y.data.district}`:"",I=y.data.town?`/${y.data.town}`:"",K=y.data.village?`/${y.data.village}`:"";w.value=`${D}${U}${O}${I}${K}`,a.areaNode&&a.areaNode>0&&(w.value=w.value.split("/").slice(-a.areaNode).join("/"))})},A=B=>{p.value=[...g.value[B]],B<l.value.length?c.value=p.value.findIndex(y=>y.areaCode==l.value[B].areaCode):c.value=null},_=(B,y)=>{l.value=l.value.slice(0,y),l.value.push(B),g.value=g.value.slice(0,y+1),V.value.length>f.value+1&&(!a.minArea||a.minArea>B.areaCode.length)&&(k(B.areaCode),f.value++)},k=B=>{r.$vtk.request.getForm(`/dict/area/next/${B}`).then(y=>{p.value=y.data,g.value.push(y.data),c.value=null,e.nextTick()})},h=B=>{l.value=[],V.value=[{text:"省级",leve:"2"},{text:"市级",leve:"4"},{text:"区县",leve:"6"},{text:"街镇",leve:"9"},{text:"村社",leve:"12"}].filter(y=>y.leve>=n.value.areacode.length),g.value=[],r.$vtk.request.getForm(`/dict/area/show/${B}`).then(y=>{p.value=[{areaName:y.data.areaName,areaCode:y.data.areaCode}],g.value.push(p.value),l.value.push(p.value[0])})},b=()=>{let B=[],y=[];l.value.forEach(D=>{B.push(D.areaName),y.push(D.areaCode),m.value=D.areaCode}),a.areaNode&&a.areaNode>0&&(B=B.slice(-a.areaNode)),w.value=B.join().replace(/,/g,"/"),s("update:modelValue",m.value),s("change"),z()},$=()=>{f.value=0,h(n.value.areacode),m.value=n.value.areacode,s("update:modelValue",m.value),s("change")},z=()=>{d.value=!1};return e.watch(()=>a.modelValue,(B,y)=>{B&&B!=y&&P(B)}),e.onMounted(()=>{var y,D;const B=((D=(y=window.VTK_CONFIG)==null?void 0:y.storageKeys)==null?void 0:D.user)||"_mis_acis_users";n.value=r.$vtk.storage.get(B)&&JSON.parse(r.$vtk.storage.get(B)),n.value&&n.value.areacode&&h(n.value.areacode),a.modelValue&&P(a.modelValue)}),(B,y)=>{const D=e.resolveComponent("v-icon"),U=e.resolveComponent("v-btn"),O=e.resolveComponent("v-tab"),I=e.resolveComponent("v-tabs"),K=e.resolveComponent("v-chip"),Y=e.resolveComponent("v-chip-group"),q=e.resolveComponent("v-sheet"),S=e.resolveComponent("v-spacer"),x=e.resolveComponent("v-card-actions"),F=e.resolveComponent("v-card"),R=e.resolveComponent("v-menu");return e.openBlock(),e.createBlock(R,{modelValue:d.value,"onUpdate:modelValue":y[2]||(y[2]=L=>d.value=L),"close-on-content-click":!1,"max-width":"520","min-width":"520"},{activator:e.withCtx(({props:L})=>[e.createVNode(U,e.mergeProps(L,{variant:"outlined",color:"primary",class:"area-select-btn",style:B.$attrs.styles}),{default:e.withCtx(()=>[e.createElementVNode("span",mt,e.toDisplayString(w.value||"选择地区"),1),w.value?(e.openBlock(),e.createBlock(D,{key:0,size:"small",onClick:e.withModifiers($,["stop"]),class:"ml-2"},{default:e.withCtx(()=>[...y[3]||(y[3]=[e.createTextVNode("mdi-close-circle",-1)])]),_:1})):e.createCommentVNode("",!0)]),_:1},16,["style"])]),default:e.withCtx(()=>[e.createVNode(F,{elevation:"0",style:{width:"350px"}},{default:e.withCtx(()=>[e.createElementVNode("p",pt,[e.createVNode(D,{color:"primary",class:"mr-1",size:"20"},{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("mdi-map-marker-radius",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,L=>(e.openBlock(),e.createElementBlock("span",{key:L.areaCode,class:"link text-body-2 text-primary"},e.toDisplayString(L.areaName),1))),128))]),e.createVNode(q,{class:"rounded-lg mx-3 mt-2",color:"#b1b1b117"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:f.value,"onUpdate:modelValue":[y[0]||(y[0]=L=>f.value=L),A],class:"pt-2 px-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(L,J)=>e.withDirectives((e.openBlock(),e.createBlock(O,{key:J,class:"mx-1",style:e.normalizeStyle(f.value==J&&"color:white;opacity:1"),disabled:g.value.length<=J+1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.text),1)]),_:2},1032,["style","disabled"])),[[e.vShow,t.minArea?t.minArea>=L.leve:!0]])),128))]),_:1},8,["modelValue"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(L,J)=>e.withDirectives((e.openBlock(),e.createBlock(q,{key:J,class:"px-3 py-1","min-height":"100",color:"rgba(0,0,0,0)"},{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:c.value,"onUpdate:modelValue":y[1]||(y[1]=ae=>c.value=ae),"selected-class":"chipActive",column:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,ae=>(e.openBlock(),e.createBlock(K,{key:ae.id,onClick:re=>_(ae,J),class:e.normalizeClass(["rounded",ae.areaCode==n.value.areacode&&"active"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ae.areaName),1)]),_:2},1032,["onClick","class"]))),128))]),_:2},1032,["modelValue"])]),_:2},1024)),[[e.vShow,J==f.value]])),128))]),_:1}),e.createVNode(x,{class:"pr-0 py-3"},{default:e.withCtx(()=>[e.createVNode(S),e.createVNode(U,{onClick:z,elevation:"0",size:"small"},{default:e.withCtx(()=>[e.createVNode(D,{class:"pt-1 pr-1"},{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode("mdi-progress-close",-1)])]),_:1}),y[6]||(y[6]=e.createTextVNode(" 取消",-1))]),_:1}),e.createVNode(U,{onClick:b,class:"text-white mr-3",color:"primary",elevation:"0",size:"small"},{default:e.withCtx(()=>[e.createVNode(D,{class:"pt-1 pr-1"},{default:e.withCtx(()=>[...y[7]||(y[7]=[e.createTextVNode("mdi-progress-check",-1)])]),_:1}),y[8]||(y[8]=e.createTextVNode(" 确定",-1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-a19b8a88"]]),ft={class:"vtk-breadcrumb-wrapper d-flex align-center justify-space-between"},Se=Q({__name:"VtkBreadcrumb",props:{items:{type:Array,default:()=>[]},showBack:{type:Boolean,default:!0},backText:{type:String,default:"返回"},backTo:{type:[String,Object],default:null}},emits:["back"],setup(t,{emit:o}){const a=t,s=o,r=e.inject("router",null),d=e.inject("route",null),n=e.computed(()=>{var p,l;if(a.items&&a.items.length>0)return a.items.map((c,m)=>({title:c.title||c.text||c.name,to:c.to||c.path||c.href,disabled:c.disabled!==void 0?c.disabled:m===a.items.length-1}));if(!d)return[];const V=((p=d.matched)==null?void 0:p.filter(c=>c.meta&&c.meta.breadcrumb))||[];if(V.length>0)return V.map((c,m)=>({title:c.meta.breadcrumb,to:c.path,disabled:m===V.length-1}));const g=((l=d.path)==null?void 0:l.split("/").filter(c=>c))||[];return g.map((c,m)=>{const w="/"+g.slice(0,m+1).join("/");return{title:c.charAt(0).toUpperCase()+c.slice(1),to:w,disabled:m===g.length-1}})}),f=()=>{s("back"),r&&(a.backTo?(a.backTo,r.push(a.backTo)):r.back())};return(V,g)=>{const p=e.resolveComponent("v-icon"),l=e.resolveComponent("v-breadcrumbs-item"),c=e.resolveComponent("v-breadcrumbs"),m=e.resolveComponent("v-btn");return e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(c,{items:n.value,class:"pa-0"},{divider:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[...g[0]||(g[0]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),item:e.withCtx(({item:w})=>[e.createVNode(l,{title:w.title,to:w.to,disabled:w.disabled,class:e.normalizeClass({"text-primary":!w.disabled})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.title),1)]),_:2},1032,["title","to","disabled","class"])]),_:1},8,["items"]),t.showBack?(e.openBlock(),e.createBlock(m,{key:0,variant:"text",color:"primary","prepend-icon":"mdi-arrow-left",onClick:f,style:{height:"36px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.backText),1)]),_:1})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-e7eb4d1f"]]),Be=Q(Object.assign({name:"VtkCheckbox",inheritAttrs:!1},{__name:"VtkCheckbox",props:{list:{type:String,required:!0},inline:{type:Boolean,default:!1},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=o,r=e.ref([]),d=e.ref(!1),n=e.ref(!1);e.watch(()=>a.modelValue,w=>{if(n.value){n.value=!1;return}d.value=!0,Array.isArray(w)?r.value=[...w]:typeof w=="string"?r.value=w?[w]:[]:r.value=[]},{immediate:!0}),e.watch(r,w=>{if(d.value){d.value=!1;return}n.value=!0,s("update:modelValue",w)},{deep:!0});const f=e.useAttrs(),V=e.computed(()=>{const{list:w,inline:P,modelValue:A,..._}=f;return _}),g=e.computed(()=>{const{list:w,inline:P,modelValue:A,error:_,"error-messages":k,rules:h,hint:b,"persistent-hint":$,...z}=f;return z}),p=e.computed(()=>r.value&&r.value.length>0?r.value:null),l=e.ref([]),c=()=>{a.list.split("/").forEach(w=>{const[P,A]=w.split(":");l.value.push({code:P,codeValue:A})})},m=async()=>{try{const w=await W.getForm(`dict/misc/list/${a.list}`);l.value=w.data||[]}catch(w){console.error("[VtkCheckbox] Failed to load dictionary:",w),l.value=[]}};return e.onMounted(()=>{a.list.includes(":")?c():m()}),(w,P)=>{const A=e.resolveComponent("VCheckbox"),_=e.resolveComponent("VInput");return e.openBlock(),e.createBlock(_,e.mergeProps(V.value,{"model-value":p.value}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["checkGroup",t.inline?"d-flex flex-wrap align-top":"d-inline-block"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,k=>(e.openBlock(),e.createBlock(A,e.mergeProps({"hide-details":"",key:k.id||k.code,label:k.codeValue,value:k.code,modelValue:r.value,"onUpdate:modelValue":P[0]||(P[0]=h=>r.value=h)},{ref_for:!0},g.value,{class:t.inline?"mr-4":""}),null,16,["label","value","modelValue","class"]))),128))],2)]),_:1},16,["model-value"])}}}),[["__scopeId","data-v-d5ff7884"]]),gt={key:0,class:"prefix"},ut={class:"digits-container"},Vt={key:0,class:"digit-scroll"},kt={key:1,class:"separator"},ht={key:1,class:"suffix"},$e=Q(Object.assign({name:"VtkCount",inheritAttrs:!1},{__name:"VtkCount",props:{start:{type:Number,default:0},end:{type:Number,default:0},duration:{type:Number,default:2e3},autoplay:{type:Boolean,default:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},containerClass:{type:String,default:""},separator:{type:Boolean,default:!1},decimals:{type:Number,default:0},color:{type:String,default:"#1976d2"}},emits:["complete"],setup(t,{expose:o,emit:a}){const s=t,r=a,d=e.ref(s.start),n=e.ref([]),f=e.ref(0),V=e.ref(!1),g=k=>{let h=k.toFixed(s.decimals);return s.separator&&s.decimals===0&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,",")),h},p=e.computed(()=>g(s.end)),l=e.computed(()=>g(s.start)),c=e.computed(()=>{const k=p.value,h=l.value;return k.length>=h.length?k:h}),m=k=>k<n.value.length?n.value[k]:"0",w=()=>{p.value;const k=l.value;n.value=c.value.split("").map((h,b)=>{if(isNaN(h))return h;if(b<k.length){const $=k[b];return isNaN($)?"0":$}return"0"})},P=(k,h)=>{if(isNaN(k)||isNaN(h))return{transform:"translateY(0)"};const b=parseInt(k)||0,z=h-b;let B;return z>5?B=-(10-z)*100:z<-5?B=(10+z)*100:B=-z*100,{transform:`translateY(${B}%)`,transition:V.value?"transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none",color:s.color}},A=()=>{if(V.value)return;V.value=!0;const k=performance.now(),h=s.start,b=s.end,$=b-h;w();const z=B=>{const y=B-k,D=Math.min(y/s.duration,1),U=1-Math.pow(1-D,4);d.value=h+$*U,_(d.value),D<1?requestAnimationFrame(z):(d.value=b,_(b),V.value=!1,r("complete"))};requestAnimationFrame(z)},_=k=>{const h=g(k),b=c.value;for(let $=0;$<b.length;$++)$<h.length?n.value[$]=h[$]:n.value[$]=isNaN(b[$])?b[$]:"0"};return e.watch(()=>s.end,(k,h)=>{if(k!==h){const b=g(k),$=g(h);b.length!==$.length?(f.value+=1,e.nextTick(()=>{A()})):A()}}),e.onMounted(()=>{if(s.autoplay){const k=l.value,h=p.value;k.length!==h.length&&(f.value+=1),e.nextTick(()=>{A()})}}),o({startAnimation:A}),(k,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vtk-count",t.containerClass])},[e.createElementVNode("div",{class:"count-display",style:e.normalizeStyle({color:t.color})},[t.prefix?(e.openBlock(),e.createElementBlock("span",gt,e.toDisplayString(t.prefix),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(b,$)=>(e.openBlock(),e.createElementBlock("div",{key:`digit-${$}-${f.value}`,class:e.normalizeClass(["digit-wrapper",{"digit-separator":isNaN(b)}])},[isNaN(b)?(e.openBlock(),e.createElementBlock("div",kt,e.toDisplayString(b),1)):(e.openBlock(),e.createElementBlock("div",Vt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,z=>e.createElementVNode("div",{key:z,class:"digit-item",style:e.normalizeStyle(P(m($),z-1))},e.toDisplayString(z-1),5)),64))]))],2))),128))]),t.suffix?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(t.suffix),1)):e.createCommentVNode("",!0)],4)],2))}}),[["__scopeId","data-v-678ebca6"]]),yt={class:"vtk-date-range-picker"},Ct={class:"date-picker-container"},Ee=Q(Object.assign({name:"VtkDatePicker",inheritAttrs:!1},{__name:"VtkDatePicker",props:{modelValue:{type:[Array,String],default:()=>[]},placeholder:{type:String,default:"请选择日期范围"},disabled:{type:Boolean,default:!1},min:{type:String,default:void 0},max:{type:String,default:void 0},showCurrent:{type:[Boolean,String],default:!0},format:{type:String,default:"YYYY-MM-DD"},separator:{type:String,default:" 至 "}},emits:["update:modelValue","change"],setup(t,{emit:o}){const a=t,s=o,r=e.useAttrs(),d=e.ref(!1),n=e.ref([]),f=e.ref(null),V=e.ref(null),g=e.computed(()=>!n.value||n.value.length===0?"":n.value.length===1?l(n.value[0]):`${l(n.value[0])}${a.separator}${l(n.value[1])}`),p=e.computed(()=>{const{modelValue:h,placeholder:b,disabled:$,min:z,max:B,showCurrent:y,format:D,separator:U,...O}=r;return O}),l=h=>{if(!h)return"";if(typeof h=="string")return h;if(h instanceof Date){const b=h.getFullYear(),$=String(h.getMonth()+1).padStart(2,"0"),z=String(h.getDate()).padStart(2,"0");return`${b}-${$}-${z}`}return h},c=e.computed(()=>a.min),m=e.computed(()=>a.max);e.watch(()=>a.modelValue,h=>{if(Array.isArray(h)&&h.length>0)n.value=[...h],h[0]&&(f.value=h[0]),h[1]&&(V.value=h[1]);else if(typeof h=="string"&&h){const b=h.split(a.separator);b.length===2?(n.value=[b[0].trim(),b[1].trim()],f.value=b[0].trim(),V.value=b[1].trim()):(n.value=[],f.value=null,V.value=null)}else n.value=[],f.value=null,V.value=null},{immediate:!0});const w=h=>{h?n.value=[h,n.value[1]||null]:n.value.length>0&&(n.value=[null,n.value[1]||null])},P=h=>{h?n.value=[n.value[0]||null,h]:n.value.length>1&&(n.value=[n.value[0]||null,null])},A=()=>{n.value=[],f.value=null,V.value=null,s("update:modelValue",[]),s("change",[]),d.value=!1},_=()=>{Array.isArray(a.modelValue)?(n.value=[...a.modelValue],a.modelValue[0]&&(f.value=a.modelValue[0]),a.modelValue[1]&&(V.value=a.modelValue[1])):(n.value=[],f.value=null,V.value=null),d.value=!1},k=()=>{let h=[...n.value].filter(b=>b!==null);if(h.length===2){const b=new Date(h[0]),$=new Date(h[1]);b>$&&(h=[h[1],h[0]])}else h.length===1&&(h=[h[0],h[0]]);s("update:modelValue",h),s("change",h),d.value=!1};return(h,b)=>{const $=e.resolveComponent("VIcon"),z=e.resolveComponent("VTextField"),B=e.resolveComponent("VDatePicker"),y=e.resolveComponent("VCardText"),D=e.resolveComponent("VDivider"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("VBtn"),I=e.resolveComponent("VCardActions"),K=e.resolveComponent("VCard"),Y=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(Y,{modelValue:d.value,"onUpdate:modelValue":b[3]||(b[3]=q=>d.value=q),"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto",eager:""},{activator:e.withCtx(({props:q})=>[e.createVNode(z,e.mergeProps({...q,...p.value},{modelValue:g.value,"onUpdate:modelValue":b[0]||(b[0]=S=>g.value=S),placeholder:t.placeholder,disabled:t.disabled,readonly:"",clearable:"",density:"compact",variant:"outlined","onClick:clear":A}),{"prepend-inner":e.withCtx(()=>[e.createVNode($,{size:"small"},{default:e.withCtx(()=>[...b[4]||(b[4]=[e.createTextVNode("mdi-calendar",-1)])]),_:1})]),_:1},16,["modelValue","placeholder","disabled"])]),default:e.withCtx(()=>[e.createVNode(K,{style:{width:"650px"}},{default:e.withCtx(()=>[e.createVNode(y,{class:"pa-0"},{default:e.withCtx(()=>[e.createElementVNode("div",Ct,[e.createVNode(B,{modelValue:f.value,"onUpdate:modelValue":[b[1]||(b[1]=q=>f.value=q),w],"hide-header":"",min:c.value,max:m.value,"show-current":t.showCurrent,class:"date-picker-item"},null,8,["modelValue","min","max","show-current"]),e.createVNode(B,{modelValue:V.value,"onUpdate:modelValue":[b[2]||(b[2]=q=>V.value=q),P],"hide-header":"",min:c.value,max:m.value,"show-current":t.showCurrent,class:"date-picker-item"},null,8,["modelValue","min","max","show-current"])])]),_:1}),e.createVNode(D),e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(U),e.createVNode(O,{text:"",onClick:_},{default:e.withCtx(()=>[...b[5]||(b[5]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(O,{color:"primary",variant:"tonal",onClick:k},{default:e.withCtx(()=>[...b[6]||(b[6]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-4f7668c4"]]),xt={class:"vtk-date-selector"},_t=["value","placeholder","disabled"],Nt={key:0,class:"picker-header"},wt={class:"header-title"},bt={key:1,class:"picker-body"},St={class:"year-grid"},Bt=["onClick"],$t={key:2,class:"picker-body"},Et={key:0,class:"dual-calendar"},Dt={class:"calendar-panel"},Tt={class:"calendar-header"},At={class:"month-title"},Mt={class:"month-grid"},Pt=["onClick"],zt={class:"calendar-panel"},Ft={class:"calendar-header"},It={class:"month-title"},jt={class:"month-grid"},Ut=["onClick"],Lt={key:1},Ot={class:"month-grid"},Rt=["onClick"],Yt={key:3,class:"picker-body"},qt={class:"week-header"},Wt={class:"week-grid"},Kt=["onClick"],Jt={class:"week-number"},Ht={key:4,class:"picker-body"},Qt={key:0,class:"dual-calendar"},Gt={class:"calendar-panel"},Xt={class:"calendar-header"},Zt={class:"month-title"},vt={class:"week-header"},ea={class:"day-grid"},ta=["onClick"],aa={class:"calendar-panel"},oa={class:"calendar-header"},la={class:"month-title"},na={class:"week-header"},ra={class:"day-grid"},sa=["onClick"],ia={key:1},ca={class:"week-header"},da={class:"day-grid"},ma=["onClick"],pa={key:5,class:"range-display"},fa={class:"range-text"},ga={key:1,class:"placeholder-text"},De=Q(Object.assign({name:"VtkDateSelector"},{__name:"VtkDateSelector",props:{modelValue:{type:[String,Array],default:null},displayMode:{type:String,default:"day",validator:t=>["day","week","month","year"].includes(t)},mode:{type:String,default:"single",validator:t=>["single","range"].includes(t)},placeholder:{type:String,default:"请选择日期"},disabled:{type:Boolean,default:!1},format:{type:String,default:"YYYY-MM-DD"},separator:{type:String,default:" 至 "},inline:{type:Boolean,default:!1},singlePanel:{type:Boolean,default:!1},onCancel:{type:Function,default:null},onConfirm:{type:Function,default:null}},emits:["update:modelValue","change","cancel","confirm"],setup(t,{emit:o}){const a=t,s=o,r=e.ref(!1),d=e.ref(a.displayMode),n=e.ref(new Date().getFullYear()),f=e.ref(new Date().getMonth()),V=e.ref(new Date().getFullYear()),g=e.ref(new Date().getMonth()+1),p=e.ref(null),l=e.ref(null),c=["日","一","二","三","四","五","六"],m=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],w=e.computed(()=>p.value?a.mode==="range"&&Array.isArray(p.value)?p.value.length===2?`${P(p.value[0])}${a.separator}${P(p.value[1])}`:"":P(p.value):""),P=N=>{if(!N)return"";if(a.displayMode==="year")return`${N}年`;if(a.displayMode==="month"){const[C,u]=N.split("-");return`${C}年${u}月`}else if(a.displayMode==="week"){const[C,u]=N.split("-W");return`${C}年第${u}周`}return N},A=e.computed(()=>{const N=Math.floor(n.value/12)*12;return Array.from({length:12},(C,u)=>N+u)}),_=e.computed(()=>{const N=[],C=new Date(n.value,f.value,1),u=new Date(n.value,f.value+1,0);let E=new Date(C);E.setDate(E.getDate()-E.getDay());let Z=y(E);for(;E<=u||E.getDay()!==0;){const H={weekNumber:Z,startDate:new Date(E),days:[]};for(let he=0;he<7;he++){const Ke={date:z(E),day:E.getDate(),month:E.getMonth(),year:E.getFullYear(),otherMonth:E.getMonth()!==f.value,isToday:B(E)};H.days.push(Ke),E.setDate(E.getDate()+1)}if(N.push(H),Z++,E>u&&E.getDay()===0)break}return N}),k=e.computed(()=>{const N=[],C=new Date(n.value,f.value,1),u=new Date(n.value,f.value+1,0),E=new Date(C);E.setDate(E.getDate()-E.getDay());const Z=new Date(u);Z.setDate(Z.getDate()+(6-Z.getDay()));let H=new Date(E);for(;H<=Z;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==f.value,isToday:B(H)}),H.setDate(H.getDate()+1);return N}),h=e.computed(()=>V.value),b=e.computed(()=>g.value),$=e.computed(()=>{const N=[],C=new Date(h.value,b.value,1),u=new Date(h.value,b.value+1,0),E=new Date(C);E.setDate(E.getDate()-E.getDay());const Z=new Date(u);Z.setDate(Z.getDate()+(6-Z.getDay()));let H=new Date(E);for(;H<=Z;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==b.value,isToday:B(H)}),H.setDate(H.getDate()+1);return N}),z=N=>{const C=N.getFullYear(),u=String(N.getMonth()+1).padStart(2,"0"),E=String(N.getDate()).padStart(2,"0");return`${C}-${u}-${E}`},B=N=>{const C=new Date;return N.getDate()===C.getDate()&&N.getMonth()===C.getMonth()&&N.getFullYear()===C.getFullYear()},y=N=>{const C=new Date(Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())),u=C.getUTCDay()||7;C.setUTCDate(C.getUTCDate()+4-u);const E=new Date(Date.UTC(C.getUTCFullYear(),0,1));return Math.ceil(((C-E)/864e5+1)/7)},D=N=>l.value?a.mode==="single"?l.value===N.toString():Array.isArray(l.value)&&l.value.length>0?l.value.some(C=>C&&C.startsWith(N.toString())):!1:!1,U=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const[C,u]=l.value.map(E=>parseInt(E));return N>C&&N<u},O=N=>{if(!l.value)return!1;const C=`${n.value}-${String(N+1).padStart(2,"0")}`;return a.mode==="single"?l.value===C:Array.isArray(l.value)?l.value.includes(C):!1},I=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${n.value}-${String(N+1).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},K=N=>{if(!l.value)return!1;const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return a.mode==="single"?l.value===C:Array.isArray(l.value)?l.value.includes(C):!1},Y=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},q=N=>l.value?a.mode==="single"?l.value===N.date:Array.isArray(l.value)?l.value.includes(N.date):!1:!1,S=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2?!1:N.date>l.value[0]&&N.date<l.value[1],x=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length===0?!1:N.date===l.value[0],F=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length<2?!1:N.date===l.value[1],R=N=>{const C=N.toString();if(a.mode==="single")l.value=C,(a.displayMode==="year"||a.inline)&&te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},L=N=>{const C=`${n.value}-${String(N+1).padStart(2,"0")}`;if(a.mode==="single")l.value=C,(a.displayMode==="month"||a.inline)&&te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},J=N=>{const C=`${V.value}-${String(N+1).padStart(2,"0")}`;if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},ae=N=>{if(!l.value)return!1;const C=`${V.value}-${String(N+1).padStart(2,"0")}`;return Array.isArray(l.value)?l.value.includes(C):!1},re=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const C=`${V.value}-${String(N+1).padStart(2,"0")}`;return C>l.value[0]&&C<l.value[1]},se=N=>{const C=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;if(a.mode==="single")l.value=C,te();else if(!l.value||!Array.isArray(l.value))l.value=[C];else if(l.value.length===1){const[u]=l.value;l.value=u<=C?[u,C]:[C,u],a.inline&&te()}else l.value=[C]},ne=N=>{if(a.mode==="single")l.value=N.date,a.inline&&te();else if(!l.value||!Array.isArray(l.value))l.value=[N.date];else if(l.value.length===1){const[C]=l.value;l.value=C<=N.date?[C,N.date]:[N.date,C],a.inline&&te()}else l.value=[N.date]},ie=()=>{d.value==="year"?n.value-=12:d.value==="month"?n.value-=1:f.value===0?(f.value=11,n.value-=1):f.value-=1},me=()=>{d.value==="year"?n.value+=12:d.value==="month"?n.value+=1:f.value===11?(f.value=0,n.value+=1):f.value+=1},pe=()=>{f.value===0?(f.value=11,n.value-=1):f.value-=1},fe=()=>{f.value===11?(f.value=0,n.value+=1):f.value+=1},ge=()=>{g.value===0?(g.value=11,V.value-=1):g.value-=1},ue=()=>{g.value===11?(g.value=0,V.value+=1):g.value+=1},Ve=()=>{n.value-=1},ke=()=>{n.value+=1},M=()=>{V.value-=1},i=()=>{V.value+=1},ee=N=>{a.displayMode==="year"&&N!=="year"||a.displayMode==="month"&&!["year","month"].includes(N)||(d.value=N)},de=()=>{a.disabled||(r.value=!r.value,r.value&&(l.value=p.value?Array.isArray(p.value)?[...p.value]:p.value:a.mode==="range"?[]:null,d.value=a.displayMode,a.displayMode==="month"?V.value=n.value+1:f.value===11?(V.value=n.value+1,g.value=0):(V.value=n.value,g.value=f.value+1)))};a.inline&&(l.value=p.value?Array.isArray(p.value)?[...p.value]:p.value:a.mode==="range"?[]:null,d.value=a.displayMode,a.displayMode==="month"?V.value=n.value+1:f.value===11?(V.value=n.value+1,g.value=0):(V.value=n.value,g.value=f.value+1));const ce=()=>{r.value=!1},qe=()=>{p.value=a.mode==="range"?[]:null,s("update:modelValue",p.value),s("change",p.value)},te=()=>{p.value=l.value,s("update:modelValue",p.value),s("change",p.value),ce()},We=()=>{a.onCancel?a.onCancel():(s("cancel"),ce())},xe=()=>{a.onConfirm?a.onConfirm(l.value):(s("confirm",l.value),te())};return e.watch(()=>a.modelValue,N=>{p.value=N},{immediate:!0}),(N,C)=>(e.openBlock(),e.createElementBlock("div",xt,[t.inline?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-input",onClick:de},[e.createElementVNode("input",{type:"text",value:w.value,placeholder:t.placeholder,disabled:t.disabled,readonly:"",class:"date-input-field"},null,8,_t),C[3]||(C[3]=e.createElementVNode("span",{class:"date-icon"},"📅",-1)),w.value&&!t.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:"clear-icon",onClick:e.withModifiers(qe,["stop"])},"✕")):e.createCommentVNode("",!0)])),r.value&&!t.inline?(e.openBlock(),e.createElementBlock("div",{key:1,class:"date-picker-mask",onClick:ce})):e.createCommentVNode("",!0),r.value||t.inline?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["date-picker-dropdown",{"inline-mode":t.inline}]),onClick:C[2]||(C[2]=e.withModifiers(()=>{},["stop"]))},[t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("button",{class:"nav-btn",onClick:ie},"‹"),e.createElementVNode("div",wt,[e.createElementVNode("span",{onClick:C[0]||(C[0]=u=>ee("year")),class:"clickable"},e.toDisplayString(n.value)+"年",1),t.displayMode!=="year"?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:C[1]||(C[1]=u=>ee("month")),class:"clickable"},e.toDisplayString(f.value+1)+"月",1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"nav-btn",onClick:me},"›")])),d.value==="year"?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["year-item",{selected:D(u),"in-range":U(u)}]),onClick:E=>R(u)},e.toDisplayString(u),11,Bt))),128))])])):d.value==="month"?(e.openBlock(),e.createElementBlock("div",$t,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Tt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:Ve},"‹"),e.createElementVNode("span",At,e.toDisplayString(n.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ke},"›")]),e.createElementVNode("div",Mt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":I(E)}]),onClick:Z=>L(E)},e.toDisplayString(u),11,Pt)),64))])]),t.singlePanel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C[4]||(C[4]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",zt,[e.createElementVNode("div",Ft,[e.createElementVNode("button",{class:"nav-btn-small",onClick:M},"‹"),e.createElementVNode("span",It,e.toDisplayString(V.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:i},"›")]),e.createElementVNode("div",jt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:ae(E),"in-range":re(E)}]),onClick:Z=>J(E)},e.toDisplayString(u),11,Ut)),64))])])],64))])):(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",Ot,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(u,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":I(E)}]),onClick:Z=>L(E)},e.toDisplayString(u),11,Rt)),64))])]))])):d.value==="week"?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",qt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.weekNumber,class:e.normalizeClass(["week-row",{selected:K(u),"in-range":Y(u)}]),onClick:E=>se(u)},[e.createElementVNode("div",Jt,"W"+e.toDisplayString(u.weekNumber),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.days,E=>(e.openBlock(),e.createElementBlock("div",{key:E.date,class:e.normalizeClass(["day-cell",{"other-month":E.otherMonth,today:E.isToday}])},e.toDisplayString(E.day),3))),128))],10,Kt))),128))])])):(e.openBlock(),e.createElementBlock("div",Ht,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Qt,[e.createElementVNode("div",Gt,[e.createElementVNode("div",Xt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:pe},"‹"),e.createElementVNode("span",Zt,e.toDisplayString(n.value)+"年"+e.toDisplayString(f.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:fe},"›")]),e.createElementVNode("div",vt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",ea,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,ta))),128))])]),t.singlePanel?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[C[5]||(C[5]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",aa,[e.createElementVNode("div",oa,[e.createElementVNode("button",{class:"nav-btn-small",onClick:ge},"‹"),e.createElementVNode("span",la,e.toDisplayString(h.value)+"年"+e.toDisplayString(b.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ue},"›")]),e.createElementVNode("div",na,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",ra,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,sa))),128))])])],64))])):(e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",ca,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,u=>e.createElementVNode("div",{key:u,class:"week-day"},e.toDisplayString(u),1)),64))]),e.createElementVNode("div",da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,u=>(e.openBlock(),e.createElementBlock("div",{key:u.date,class:e.normalizeClass(["day-item",{"other-month":u.otherMonth,selected:q(u),"in-range":S(u),"range-start":x(u),"range-end":F(u),today:u.isToday}]),onClick:E=>ne(u)},e.toDisplayString(u.day),11,ma))),128))])]))])),t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?(e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("span",fa,[l.value&&Array.isArray(l.value)&&l.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.value[0]||(t.displayMode==="month"?"开始月份":"开始日期"))+" ",1),C[6]||(C[6]=e.createElementVNode("span",{class:"range-separator"}," - ",-1)),e.createTextVNode(" "+e.toDisplayString(l.value[1]||(t.displayMode==="month"?"结束月份":"结束日期")),1)],64)):(e.openBlock(),e.createElementBlock("span",ga,e.toDisplayString(t.displayMode==="month"?"请选择月份范围":"请选择日期范围"),1))])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"picker-footer"},[e.createElementVNode("button",{class:"btn btn-text",onClick:We},"取消"),e.createElementVNode("button",{class:"btn btn-primary",onClick:xe},"确定")])],2)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a9b8f9b2"]]),ua=["title"],Va=["title"],ka={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},ha=["title"],ya={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Ca={class:"mx-auto"},xa={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Te=Q({__name:"VtkDept",props:{multiple:{type:Boolean,default:!1}},emits:["selected"],setup(t,{expose:o,emit:a}){var Y,q;const{proxy:s}=e.getCurrentInstance(),r=((q=(Y=window.VTK_CONFIG)==null?void 0:Y.storageKeys)==null?void 0:q.user)||"_mis_acis_users",d=JSON.parse(s.$vtk.storage.get(r)),n=S=>new Promise(x=>setTimeout(x,S)),f=t,V=a,g=e.ref(!1),p=e.ref([]),l=e.ref([]),c=e.ref([]);e.watch(c,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.areaCode)&&k(S)},{deep:!0}),e.watch(l,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.areaCode)&&k(S)},{deep:!0});const m=()=>{d&&d.areacode&&s.$vtk.request.getForm(`/dict/area/show/${d.areacode}`).then(S=>{S&&S.data&&(p.value=[{areaCode:S.data.areaCode,areaName:S.data.areaName,children:[]}])})},w=async S=>{await n(300);const x=S.areaCode;s.$vtk.request.getForm(`/dict/area/next/${x}`).then(F=>{F&&F.data&&F.data.forEach(R=>{R.areaLeve<12&&(R.children=[]),S.children.push(R)})})},P=e.ref([]),A=e.ref([]),_=e.ref([]);e.watch(A,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.id)&&U(S)},{deep:!0}),e.watch(_,(S,x)=>{var F;S&&S.length>0&&((F=S[0])!=null&&F.id)&&U(S)},{deep:!0});const k=S=>{const F={codex:{area:S[0].areaCode,type:"0"}};P.value=[],s.$vtk.request.postJson("/bizp/supported/dept/list",F).then(R=>{R.data.forEach(L=>{L.children=[],P.value.push(L)})})},h=async S=>{await n(300);const x=S.areaCode,F=S.id,R={codex:{area:x,pid:F}};s.$vtk.request.postJson("/bizp/supported/dept/list",R).then(L=>{L&&L.data&&L.data.forEach(J=>{J.children=[],S.children.push(J)})})},b=e.ref([]),$=e.ref([]),z=e.ref([]),B=e.ref(!1),y=e.computed(()=>{const S=new Map;return z.value.forEach(x=>{x&&x.id&&S.set(x.id,x)}),Array.from(S.values())});e.watch($,(S,x)=>{if(!B.value){if(!f.multiple){S&&S.length>0?z.value=[S[0]]:z.value=[];return}S&&S.length>0&&S.forEach(F=>{z.value.some(L=>L.id===F.id)||z.value.push(F)}),x&&x.length>0&&x.forEach(F=>{if(!(S==null?void 0:S.some(L=>L.id===F.id))){const L=z.value.findIndex(J=>J.id===F.id);L>-1&&z.value.splice(L,1)}})}},{deep:!0}),e.watch(b,async S=>{if(!S||S.length===0){B.value=!0,$.value=[],await e.nextTick(),B.value=!1;return}await e.nextTick(),B.value=!0;const x=[];S.forEach(F=>{z.value.some(L=>L.id===F.id)&&x.push(F)}),$.value=x,await e.nextTick(),B.value=!1},{deep:!0});const D=S=>{const x=z.value.findIndex(R=>R.id===S);x>-1&&z.value.splice(x,1);const F=$.value.findIndex(R=>R.id===S);F>-1&&$.value.splice(F,1)},U=S=>{const F={codex:{dept:S[0].id}};s.$vtk.request.postJson("/bizp/supported/user/list",F).then(R=>{R&&R.meta.success&&R.data.length>0?b.value=R.data:b.value=null})},O=()=>{g.value=!0},I=()=>{B.value=!0,g.value=!1,$.value=[],z.value=[],l.value=[],c.value=[],A.value=[],_.value=[],b.value=[],P.value=[],e.nextTick(()=>{B.value=!1})},K=()=>{const S=y.value;V("selected",S),I()};return e.onMounted(()=>{m()}),o({close:I,add:O}),(S,x)=>{const F=e.resolveComponent("v-spacer"),R=e.resolveComponent("v-icon"),L=e.resolveComponent("v-btn"),J=e.resolveComponent("v-card-title"),ae=e.resolveComponent("v-divider"),re=e.resolveComponent("v-treeview"),se=e.resolveComponent("v-sheet"),ne=e.resolveComponent("v-col"),ie=e.resolveComponent("v-img"),me=e.resolveComponent("v-avatar"),pe=e.resolveComponent("v-list-item"),fe=e.resolveComponent("v-list"),ge=e.resolveComponent("v-row"),ue=e.resolveComponent("v-card-text"),Ve=e.resolveComponent("v-card-actions"),ke=e.resolveComponent("v-card"),M=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(M,{modelValue:g.value,"onUpdate:modelValue":x[5]||(x[5]=i=>g.value=i),persistent:"",width:"1000"},{default:e.withCtx(()=>[e.createVNode(ke,null,{default:e.withCtx(()=>[e.createVNode(J,{class:"d-flex align-center"},{default:e.withCtx(()=>[x[7]||(x[7]=e.createElementVNode("span",{class:"text-h6"},"人员选择",-1)),e.createVNode(F),e.createVNode(L,{class:"g-no-shadow",icon:"",onClick:I,size:"small"},{default:e.withCtx(()=>[e.createVNode(R,null,{default:e.withCtx(()=>[...x[6]||(x[6]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),e.createVNode(ae),e.createVNode(ue,{class:"pb-0 mb-0 pl-0 pr-0",style:{height:"600px"}},{default:e.withCtx(()=>[e.createVNode(ge,{style:{"margin-top":"-16px",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(ne,{md:"3",class:"pr-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[8]||(x[8]=[e.createElementVNode("span",{class:"mx-auto"},"地区",-1)])]),_:1}),e.createVNode(se,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[e.createVNode(re,{"item-value":"id","item-title":"areaName","return-object":"",items:p.value,density:"compact",color:"primary","item-props":"",activatable:"",selected:l.value,"onUpdate:selected":x[0]||(x[0]=i=>l.value=i),activated:c.value,"onUpdate:activated":x[1]||(x[1]=i=>c.value=i),"load-children":w},{title:e.withCtx(({item:i})=>[e.createElementVNode("span",{title:i.areaName},e.toDisplayString(i.areaName),9,ua)]),_:1},8,["items","selected","activated"])]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[9]||(x[9]=[e.createElementVNode("span",{class:"mx-auto"},"部门",-1)])]),_:1}),e.createVNode(se,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[P.value&&P.value.length>0?(e.openBlock(),e.createBlock(re,{key:0,"item-value":"id","item-title":"name","return-object":"",items:P.value,density:"compact",color:"primary","item-props":"",activatable:"",selected:A.value,"onUpdate:selected":x[2]||(x[2]=i=>A.value=i),activated:_.value,"onUpdate:activated":x[3]||(x[3]=i=>_.value=i),"load-children":h},{title:e.withCtx(({item:i})=>[e.createElementVNode("span",{title:i.name},e.toDisplayString(i.name),9,Va)]),_:1},8,["items","selected","activated"])):(e.openBlock(),e.createElementBlock("div",ka,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[10]||(x[10]=[e.createTextVNode(" mdi-office-building-outline ",-1)])]),_:1}),x[11]||(x[11]=e.createElementVNode("div",{class:"text-grey"},"暂无",-1))]))]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[...x[12]||(x[12]=[e.createElementVNode("span",{class:"mx-auto"},"人员",-1)])]),_:1}),e.createVNode(se,{height:"550",style:{overflow:"auto"},class:"mt-2"},{default:e.withCtx(()=>[b.value&&b.value.length>0?(e.openBlock(),e.createBlock(re,{key:0,"item-value":"id","item-title":"username","return-object":"",items:b.value,density:"compact",color:"primary","item-props":"",selectable:"","select-strategy":t.multiple?"leaf":"single-leaf",selected:$.value,"onUpdate:selected":x[4]||(x[4]=i=>$.value=i)},{title:e.withCtx(({item:i})=>[e.createElementVNode("div",{class:"d-flex align-center",title:i.username},[e.createVNode(me,{size:"24",class:"mr-2"},{default:e.withCtx(()=>[i.avatar?(e.openBlock(),e.createBlock(ie,{key:0,src:i.avatar},null,8,["src"])):(e.openBlock(),e.createBlock(R,{key:1,size:"20"},{default:e.withCtx(()=>[...x[13]||(x[13]=[e.createTextVNode("mdi-account-circle",-1)])]),_:1}))]),_:2},1024),e.createElementVNode("span",null,e.toDisplayString(i.username),1)],8,ha)]),_:1},8,["items","select-strategy","selected"])):(e.openBlock(),e.createElementBlock("div",ya,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[14]||(x[14]=[e.createTextVNode(" mdi-account-group ",-1)])]),_:1}),x[15]||(x[15]=e.createElementVNode("div",{class:"text-grey"},"暂无",-1))]))]),_:1})]),_:1}),e.createVNode(ne,{md:"3",class:"pr-0 pl-0",style:{"border-right":"1px #ccc solid",height:"600px"}},{default:e.withCtx(()=>[e.createVNode(J,{class:"text-center py-0 text-body-1 font-weight-bold"},{default:e.withCtx(()=>[e.createElementVNode("span",Ca,"已选中人员 ("+e.toDisplayString(y.value.length)+")",1)]),_:1}),e.createVNode(se,{height:"550",style:{overflow:"auto"},class:"mt-2 px-2"},{default:e.withCtx(()=>[y.value.length>0?(e.openBlock(),e.createBlock(fe,{key:0,density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,i=>(e.openBlock(),e.createBlock(pe,{key:i.id,title:i.username,class:"px-2 mb-1 mr-2",rounded:"lg",color:"primary",variant:"tonal"},{prepend:e.withCtx(()=>[e.createVNode(me,{size:"32"},{default:e.withCtx(()=>[i.avatar?(e.openBlock(),e.createBlock(ie,{key:0,src:i.avatar},null,8,["src"])):(e.openBlock(),e.createBlock(R,{key:1},{default:e.withCtx(()=>[...x[16]||(x[16]=[e.createTextVNode("mdi-account-circle",-1)])]),_:1}))]),_:2},1024)]),append:e.withCtx(()=>[e.createVNode(L,{icon:"",size:"x-small",variant:"text",onClick:ee=>D(i.id)},{default:e.withCtx(()=>[e.createVNode(R,{size:"16"},{default:e.withCtx(()=>[...x[17]||(x[17]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])]),_:2},1032,["title"]))),128))]),_:1})):(e.openBlock(),e.createElementBlock("div",xa,[e.createVNode(R,{size:"64",color:"grey-lighten-2",class:"mb-4"},{default:e.withCtx(()=>[...x[18]||(x[18]=[e.createTextVNode(" mdi-account ",-1)])]),_:1}),x[19]||(x[19]=e.createElementVNode("div",{class:"text-grey"},"暂无选中",-1))]))]),_:1})]),_:1})]),_:1})]),_:1}),e.createVNode(ae),e.createVNode(Ve,null,{default:e.withCtx(()=>[e.createVNode(F),e.createVNode(L,{color:"darken-1",text:"",onClick:I},{default:e.withCtx(()=>[...x[20]||(x[20]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(L,{color:"blue darken-1",text:"",onClick:K},{default:e.withCtx(()=>[...x[21]||(x[21]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}},[["__scopeId","data-v-33eb36fd"]]),Ae=Q(Object.assign({name:"VtkEmpty",inheritAttrs:!1},{__name:"VtkEmpty",props:{title:{type:String,default:""},text:{type:String,default:""},headline:{type:String,default:""},icon:{type:String,default:""},image:{type:String,default:""},rounded:{type:[Boolean,String,Number],default:"circle"},elevation:{type:[Number,String],default:0}},setup(t){return(o,a)=>{const s=e.resolveComponent("v-empty-state");return e.openBlock(),e.createBlock(s,{headline:t.headline,title:t.title,text:t.text,image:t.image,icon:t.icon,rounded:t.rounded,elevation:t.elevation},e.createSlots({_:2},[o.$slots.media?{name:"media",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,o.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"title",{},void 0,!0)]),key:"1"}:void 0,o.$slots.text?{name:"text",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"text",{},void 0,!0)]),key:"2"}:void 0,o.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"actions",{},void 0,!0)]),key:"3"}:void 0,o.$slots.bottom?{name:"bottom",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"bottom",{},void 0,!0)]),key:"4"}:void 0]),1032,["headline","title","text","image","icon","rounded","elevation"])}}}),[["__scopeId","data-v-288c63a3"]]),Me=Q(Object.assign({name:"VtkFab",inheritAttrs:!1},{__name:"VtkFab",setup(t){const o=e.ref(!1),a=e.ref("scroll-to-top-fab"),s=()=>{o.value=window.scrollY>100},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.onMounted(()=>{window.addEventListener("scroll",s)}),e.onBeforeUnmount(()=>{window.removeEventListener("scroll",s)}),(d,n)=>{const f=e.resolveComponent("v-fab");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createBlock(f,{key:0,class:e.normalizeClass(a.value),color:"primary",icon:"mdi-arrow-up",onClick:r},null,8,["class"])):e.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-e07d12b9"]]),_a={key:0,class:"pb-2 text-left"},Na={key:0,class:"text-red mr-1"},wa={key:0,class:"text-red"},ba={key:3,class:"d-inline-block vtk-width-7",style:{"min-width":"350px"}},Sa={key:4,class:"box_help tips py-3 px-4",style:{width:"calc(30% - 160px)"}},Ba={class:"mb-2 font-weight-bold text-body-1"},$a=["innerHTML"],Pe=Q(Object.assign({name:"VtkFormItem",inheritAttrs:!1},{__name:"VtkFormItem",props:{label:{type:String,default:null},must:{type:Boolean,default:!1},left:{type:Boolean,default:!1},top:{type:Boolean,default:!1},Tstyle:{type:String,default:null},help:{type:String,default:null},maxWidth:{type:[String,Number],default:"100%"}},setup(t){const o=t,a=e.computed(()=>typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth),s=e.computed(()=>{const r={};return o.top&&o.maxWidth&&(r.maxWidth=a.value),r});return(r,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["box",{"form-item--vertical":t.top,"form-item--horizontal":!t.top}]),style:{position:"relative"}},[t.label&&t.top?(e.openBlock(),e.createElementBlock("div",_a,[t.must?(e.openBlock(),e.createElementBlock("span",Na,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),t.label&&!t.top?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.left?"":"vtk-width-2","d-inline-block text-right"]),style:e.normalizeStyle([t.Tstyle,{"min-width":"120px !important","vertical-align":"top","padding-top":"11px"}])},[t.must?(e.openBlock(),e.createElementBlock("span",wa,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],6)):e.createCommentVNode("",!0),t.top?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(s.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0),t.top?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(r.$slots,"default",{},void 0,!0)])),t.left&&t.help&&!t.top?(e.openBlock(),e.createElementBlock("div",Sa,[e.createElementVNode("p",Ba,e.toDisplayString(t.label),1),e.createElementVNode("span",{innerHTML:t.help},null,8,$a)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-05be0b6b"]]),Ea={class:"vtk-img-container"},Da={class:"d-flex align-center justify-center fill-height"},Ta={key:0,class:"vtk-img-info"},Aa={class:"image-viewer-content"},Ma={class:"image-container"},Pa={class:"image-info"},za={class:"text-center"},Fa={class:"text-center text--secondary"},Ia=Object.assign({name:"VtkImg",inheritAttrs:!0},{__name:"VtkImg",props:{src:{type:String,default:null},error:{type:String,default:new URL("../../assets/img/wxsq.png",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ne&&Ne.tagName.toUpperCase()==="SCRIPT"&&Ne.src||new URL("specter-pui.umd.js",document.baseURI).href).href},preview:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},imageList:{type:Array,default:()=>[]},index:{type:Number,default:0},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},aspectRatio:{type:[String,Number],default:16/9}},setup(t){e.useCssVars(A=>({v0b9062a7:o.error}));const o=t,a=e.ref(!1),s=e.ref(0),r=e.ref(0),d=e.computed(()=>{var A;if(!o.src)return o.src;try{if(window.$vtk&&typeof((A=window.$vtk.storage)==null?void 0:A.get)=="function"){const _=window.$vtk.storage.get("_mis_acis_token");return _?`${o.src}?stoken=${_}`:o.src}else{const _=localStorage.getItem("_mis_acis_token");return _?`${o.src}?stoken=${_}`:o.src}}catch(_){return console.warn("VtkImg: Failed to get token, using src without token",_),o.src}}),n=e.computed(()=>{var A;if(o.imageList.length>0&&r.value<o.imageList.length){const _=o.imageList[r.value];if(_&&_.url)try{if(window.$vtk&&typeof((A=window.$vtk.storage)==null?void 0:A.get)=="function"){const k=window.$vtk.storage.get("_mis_acis_token");return k?`${_.url}?stoken=${k}`:_.url}else{const k=localStorage.getItem("_mis_acis_token");return k?`${_.url}?stoken=${k}`:_.url}}catch{return _.url}}return d.value}),f=e.computed(()=>{if(o.imageList.length>0&&r.value<o.imageList.length){const A=o.imageList[r.value];return(A==null?void 0:A.title)||""}return o.title}),V=e.computed(()=>{if(o.imageList.length>0&&r.value<o.imageList.length){const A=o.imageList[r.value];return(A==null?void 0:A.description)||""}return o.description}),g=e.computed(()=>o.imageList.length>1&&r.value>0),p=e.computed(()=>o.imageList.length>1&&r.value<o.imageList.length-1);e.watch(a,A=>{A&&(s.value=0,r.value=o.index)});const l=()=>{o.preview&&(a.value=!0)},c=()=>{a.value=!1},m=()=>{g.value&&(r.value--,s.value=0)},w=()=>{p.value&&(r.value++,s.value=0)},P=A=>{s.value+=A};return(A,_)=>{const k=e.resolveComponent("v-progress-circular"),h=e.resolveComponent("v-img"),b=e.resolveComponent("VCardTitle"),$=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VIcon"),y=e.resolveComponent("VBtn"),D=e.resolveComponent("v-toolbar-title"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("v-toolbar-items"),I=e.resolveComponent("v-toolbar"),K=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",Ea,[e.createVNode(z,{class:e.normalizeClass(["vtk-img-card",{"vtk-img-card--preview":t.preview}]),onClick:l},{default:e.withCtx(()=>[e.createVNode(h,e.mergeProps(A.$attrs,{src:d.value,class:"vtk-img","aspect-ratio":t.aspectRatio,cover:""}),{placeholder:e.withCtx(()=>[e.createElementVNode("div",Da,[e.createVNode(k,{indeterminate:"",color:"grey-lighten-1"})])]),_:1},16,["src","aspect-ratio"]),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ta,[t.showTitle?(e.openBlock(),e.createBlock(b,{key:0,class:"vtk-img-title text-subtitle-2 pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),t.showDescription?(e.openBlock(),e.createBlock($,{key:1,class:"vtk-img-description text-caption pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["class"]),e.createVNode(K,{modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=Y=>a.value=Y),"max-width":"90%",fullscreen:"","onClick:outside":c},{default:e.withCtx(()=>[e.createVNode(z,{class:"image-viewer-card"},{default:e.withCtx(()=>[e.createVNode(I,{dark:"",color:"primary"},{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:c},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[3]||(_[3]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1}),e.createVNode(D,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value),1)]),_:1}),e.createVNode(U),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:_[0]||(_[0]=Y=>P(-90))},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[4]||(_[4]=[e.createTextVNode("mdi-rotate-left",-1)])]),_:1})]),_:1}),e.createVNode(y,{icon:"",dark:"",onClick:_[1]||(_[1]=Y=>P(90))},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[5]||(_[5]=[e.createTextVNode("mdi-rotate-right",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Aa,[g.value?(e.openBlock(),e.createBlock(y,{key:0,icon:"",class:"nav-button prev-button",onClick:m},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[6]||(_[6]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Ma,[e.createVNode(h,{src:n.value,class:"viewer-image",style:e.normalizeStyle({transform:`rotate(${s.value}deg)`})},null,8,["src","style"])]),p.value?(e.openBlock(),e.createBlock(y,{key:1,icon:"",class:"nav-button next-button",onClick:w},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[..._[7]||(_[7]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Pa,[e.createElementVNode("p",za,e.toDisplayString(V.value),1),e.createElementVNode("p",Fa,e.toDisplayString(r.value+1)+" / "+e.toDisplayString(t.imageList.length),1)])]),_:1})]),_:1},8,["modelValue"])])}}}),ze=Q(Ia,[["__scopeId","data-v-f2469415"]]),ja={class:"m_pagination"},Ua={class:"page-total d-none d-md-flex align-center"},La={class:"my-2"},Fe=Q({__name:"VtkPage",props:{pageData:{type:Object,default:()=>({})},pageSizes:{type:Array,default:()=>[10,20,30]}},emits:["pageChange"],setup(t,{emit:o}){const a=t,s=o,r=e.reactive({pageno:1,limit:10}),d=e.ref([]),n=e.ref({...a.pageData}),f=e.computed(()=>n.value.pageno);e.watch(f,()=>{r.pageno=n.value.pageno}),e.watch(()=>a.pageData,c=>{n.value={...c},c.rowCount<1&&c.rows>0&&(n.value.pageno=c.pageno-1,l())},{deep:!0}),e.onMounted(()=>{p()});const V=()=>{/^[0-9]+$/.test(r.pageno)&&r.pageno<=n.value.pageCount?(n.value.pageno=parseInt(r.pageno),l()):r.pageno=n.value.pageno},g=()=>{n.value.pageCount=1,l()},p=()=>{const c=a.pageSizes;c.forEach(m=>{const w={title:m+"条/页",value:m};d.value.push(w)}),r.limit=c[0]},l=()=>{const c={pageno:n.value.pageno,limit:r.limit};s("pageChange",c)};return(c,m)=>{const w=e.resolveComponent("VSelect"),P=e.resolveComponent("v-pagination"),A=e.resolveComponent("VTextField"),_=e.resolveComponent("VRow");return e.openBlock(),e.createElementBlock("div",ja,[n.value.rowCount>0?(e.openBlock(),e.createBlock(_,{key:0,class:"pagination box",align:"center"},{default:e.withCtx(()=>[e.createElementVNode("span",Ua,"共"+e.toDisplayString(n.value.rowCount)+"条",1),e.createVNode(w,{modelValue:r.limit,"onUpdate:modelValue":[m[0]||(m[0]=k=>r.limit=k),m[1]||(m[1]=k=>g())],items:d.value,variant:"solo",density:"compact","menu-props":{offsetY:!0},"hide-details":"",class:"page-select ml-2 d-none d-md-flex"},null,8,["modelValue","items"]),e.createElementVNode("span",La,[e.createVNode(P,{modelValue:n.value.pageno,"onUpdate:modelValue":[m[2]||(m[2]=k=>n.value.pageno=k),m[3]||(m[3]=k=>l())],"total-visible":5,length:n.value.pageCount,size:"small"},null,8,["modelValue","length"])]),m[6]||(m[6]=e.createElementVNode("span",{class:"page-total ml-3 d-none d-md-flex align-center"},"到",-1)),e.createVNode(A,{modelValue:r.pageno,"onUpdate:modelValue":m[4]||(m[4]=k=>r.pageno=k),variant:"solo",density:"compact","hide-details":"",class:"page-go ml-2 d-none d-md-flex",onKeyup:m[5]||(m[5]=e.withKeys(k=>V(),["enter"]))},null,8,["modelValue"]),m[7]||(m[7]=e.createElementVNode("span",{class:"page-total ml-2 d-none d-md-flex align-center"},"页",-1))]),_:1})):e.createCommentVNode("",!0)])}}},[["__scopeId","data-v-c12fb6c5"]]),Oa={class:"vtk-pdf-container"},Ra={key:0,class:"vtk-pdf-info"},Ya={class:"pdf-viewer-content"},qa={key:0,class:"pdf-viewer-footer"},Wa={class:"mx-4"},Ka={key:1,class:"pdf-loading"},Ja=Object.assign({name:"VtkPdf",inheritAttrs:!0},{__name:"VtkPdf",props:{src:{type:String,default:null},preview:{type:Boolean,default:!0},title:{type:String,default:""},description:{type:String,default:""},showTitle:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0},aspectRatio:{type:[String,Number],default:16/9}},setup(t){const o=t,a=e.ref(!1),s=e.ref(!1),r=e.ref(!1),d=e.ref(1),n=e.ref(0),f=e.ref(null);let V=null;const g=e.computed(()=>{var _;if(!o.src)return o.src;try{if(window.$vtk&&typeof((_=window.$vtk.storage)==null?void 0:_.get)=="function"){const k=window.$vtk.storage.get("_mis_acis_token");return k?`${o.src}?stoken=${k}`:o.src}else{const k=localStorage.getItem("_mis_acis_token");return k?`${o.src}?stoken=${k}`:o.src}}catch(k){return console.warn("VtkPdf: Failed to get token, using src without token",k),o.src}}),p=()=>{o.preview&&(a.value=!0,setTimeout(()=>{c()},300))},l=()=>{a.value=!1,V=null,r.value=!1,d.value=1,n.value=0},c=async()=>{if(g.value){s.value=!0;try{await new Promise(_=>setTimeout(_,1e3)),n.value=10,r.value=!0}catch(_){console.error("加载PDF失败:",_)}finally{s.value=!1}}},m=async _=>{!V||f.value},w=()=>{d.value>1&&(d.value--,m(d.value))},P=()=>{d.value<n.value&&(d.value++,m(d.value))},A=async()=>{if(g.value)try{const _=await fetch(g.value);if(!_.ok)throw new Error(`HTTP error! status: ${_.status}`);const k=await _.blob(),h=o.title&&o.title.trim()!==""?`${o.title}.pdf`:"document.pdf",b=window.URL.createObjectURL(k),$=document.createElement("a");$.href=b,$.download=h,document.body.appendChild($),$.click(),document.body.removeChild($),window.URL.revokeObjectURL(b)}catch(_){console.error("下载PDF失败:",_),window.open(g.value,"_blank")}};return e.onBeforeUnmount(()=>{V=null}),(_,k)=>{const h=e.resolveComponent("VIcon"),b=e.resolveComponent("VCardTitle"),$=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VBtn"),y=e.resolveComponent("v-toolbar-title"),D=e.resolveComponent("VSpacer"),U=e.resolveComponent("v-toolbar-items"),O=e.resolveComponent("v-toolbar"),I=e.resolveComponent("VCol"),K=e.resolveComponent("VSlider"),Y=e.resolveComponent("VRow"),q=e.resolveComponent("v-progress-circular"),S=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",Oa,[e.createVNode(z,{class:e.normalizeClass(["vtk-pdf-card",{"vtk-pdf-card--preview":t.preview}]),onClick:p},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"vtk-pdf-cover",style:e.normalizeStyle({aspectRatio:t.aspectRatio})},[e.createVNode(h,{size:"48",color:"red"},{default:e.withCtx(()=>[...k[2]||(k[2]=[e.createTextVNode("mdi-file-pdf-box",-1)])]),_:1}),k[3]||(k[3]=e.createElementVNode("div",{class:"vtk-pdf-label"},"PDF",-1))],4),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ra,[t.showTitle?(e.openBlock(),e.createBlock(b,{key:0,class:"vtk-pdf-title text-subtitle-2 pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1})):e.createCommentVNode("",!0),t.showDescription?(e.openBlock(),e.createBlock($,{key:1,class:"vtk-pdf-description text-caption pa-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.description),1)]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["class"]),e.createVNode(S,{modelValue:a.value,"onUpdate:modelValue":k[1]||(k[1]=x=>a.value=x),"max-width":"90%",fullscreen:"","onClick:outside":l},{default:e.withCtx(()=>[e.createVNode(z,{class:"pdf-viewer-card"},{default:e.withCtx(()=>[e.createVNode(O,{dark:"",color:"red darken-1"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"",dark:"",onClick:l},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[4]||(k[4]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1}),e.createVNode(y,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:1}),e.createVNode(D),e.createVNode(U,null,{default:e.withCtx(()=>[e.createVNode(B,{icon:"",dark:"",onClick:A},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[5]||(k[5]=[e.createTextVNode("mdi-download",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Ya,[e.createElementVNode("div",{class:"pdf-container",ref_key:"pdfContainer",ref:f},[...k[6]||(k[6]=[e.createElementVNode("div",{id:"pdf-viewer"},null,-1)])],512)]),r.value?(e.openBlock(),e.createElementBlock("div",qa,[e.createVNode(Y,{align:"center",justify:"center"},{default:e.withCtx(()=>[e.createVNode(I,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode(B,{icon:"",onClick:w,disabled:d.value<=1},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[7]||(k[7]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1},8,["disabled"]),e.createElementVNode("div",Wa,[e.createElementVNode("span",null,"第 "+e.toDisplayString(d.value)+" 页 / 共 "+e.toDisplayString(n.value)+" 页",1)]),e.createVNode(B,{icon:"",onClick:P,disabled:d.value>=n.value},{default:e.withCtx(()=>[e.createVNode(h,null,{default:e.withCtx(()=>[...k[8]||(k[8]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),e.createVNode(I,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode(K,{modelValue:d.value,"onUpdate:modelValue":k[0]||(k[0]=x=>d.value=x),min:1,max:n.value,"hide-details":"",class:"mx-4"},null,8,["modelValue","max"])]),_:1})]),_:1})])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("div",Ka,[e.createVNode(q,{indeterminate:"",color:"red"}),k[9]||(k[9]=e.createElementVNode("p",{class:"mt-2"},"正在加载PDF...",-1))])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"])])}}}),Ie=Q(Ja,[["__scopeId","data-v-84f65a65"]]);function Je(t={}){const o=e.reactive({}),a=e.ref([]),s=e.ref(!1),r=e.ref(""),d=e.reactive({pageno:1,limit:10}),n=e.ref({}),f=e.ref({}),V=e.ref([]),g=e.ref(!1),p=e.ref({}),l=e.reactive(t),c=()=>{var O;p.value=le.get("_mis_acis_users"),o.areaCode||(o.areaCode=(O=p.value)==null?void 0:O.areacode);const D=Object.assign({},o);return{pageno:d.pageno,limit:d.limit,codex:D}},m=()=>{var U,O;if(!l.list){G.toast("请先设置url.list属性",{color:"warning"});return}const D=c();s.value=!0,(O=(U=window.$vtk)==null?void 0:U.message)!=null&&O.loading&&window.$vtk.message.loading.show(),W.postJson(l.list,D).then(I=>{var K,Y,q;(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),(I.meta.success||I.data)&&(a.value=((q=I.data)==null?void 0:q.rows)||[],n.value=I.data,f.value=I.data.sumup?I.data.sumup:{},V.value=I.data),s.value=!1}).catch(I=>{var K,Y;console.error("加载页面数据失败:",I),s.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})};return{queryParam:o,desserts:a,loading:s,superQueryParams:r,page:d,pageData:n,sumup:f,pageDataCopy:V,overlay:g,user:p,url:l,getQueryParams:c,loadPage:m,searchQuery:()=>{d.pageno=1,d.limit??(d.limit=10),m()},getListPage:D=>{d.pageno=D.pageno,d.limit=D.limit,m()},deleteItem:(D,U)=>{if(!l.delete){G.toast("请设置url.delete属性!",{color:"warning"});return}G.confirm({title:"确认删除",text:U||"是否删除?"},O=>{O&&W.getForm(l.delete,{id:D}).then(I=>{I.meta.success?(G.toast("删除成功",{color:"success"}),m()):G.toast("删除失败",{color:"warning"})}).catch(I=>{console.error("删除失败:",I),G.toast("删除失败",{color:"warning"})})})},copyItem:(D,U)=>{if(!l.copy){G.toast("请设置url.copy!",{color:"warning"});return}G.confirm({title:"拷贝",text:U||"是否确认拷贝当前数据?"},O=>{O&&W.getForm(l.copy,{id:D}).then(I=>{I.meta.success?(G.toast("拷贝成功",{color:"success"}),m()):G.toast("拷贝失败",{color:"warning"})}).catch(I=>{console.error("拷贝失败:",I),G.toast("拷贝失败",{color:"warning"})})})},edit:(D,U)=>{U!=null&&U.value&&U.value.edit(D)},add:D=>{D!=null&&D.value&&D.value.add()},modalFormOk:()=>{m()},expData:()=>{var U,O;g.value=!0,(O=(U=window.$vtk)==null?void 0:U.message)!=null&&O.loading&&window.$vtk.message.loading.show();const D=c();W.exp(l.exp,D).then(I=>{var K,Y;if((Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),I){const q=I.headers["content-disposition"],S=decodeURI(q.substring(q.indexOf("filename=")+9,q.length)),x=new Blob([I.data],{type:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(x);else{const F=document.createElement("a");F.style.display="none",F.href=URL.createObjectURL(x),F.download=S,document.body.appendChild(F),F.click(),document.body.removeChild(F)}}g.value=!1}).catch(I=>{var K,Y;console.error("导出数据失败:",I),g.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})},resetQueryParams:()=>{Object.keys(o).forEach(D=>{delete o[D]})},resetPage:()=>{d.pageno=1,d.limit=10},updateUrlConfig:D=>{Object.assign(l,D)}}}const Ha={key:0},Qa={key:0,class:"mb-0 expBox"},Ga={key:1,class:"text-red text-body-2 mb-2"},Xa={key:1},Za={key:0,style:{width:"400px"}},va=["onClick"],eo={class:"vtk-cursor-pointer text-body-1 font-weight-bold mb-2"},to={class:"ml-3 text-grey"},ao={class:"mb-0 mt-2 text-grey"},oo={class:"d-inline-block",style:{"min-width":"320px"}},lo={class:"text-blue"},no=["title"],ro=["title"],so=["onClick"],io={key:1,class:"state_btg text-right"},je=Q(Object.assign({name:"VtkProj",inheritAttrs:!1},{__name:"VtkProj",setup(t){const o={list:"/kudas/xfwez/page",exp:"/kudas/xfwez/exp",delete:"/kudas/xfwez/delete"},{pageData:a,getListPage:s,loadPage:r,expData:d,desserts:n,loading:f,queryParam:V,url:g}=Je(o);Object.assign(V,{});const p=V,l=e.ref({}),c=e.ref(1),m=e.ref([{title:"事项",key:"objsName",sortable:!1},{title:"状态",key:"actions",sortable:!1,align:"end"}]),w=e.ref([]),P=e.ref(""),A=e.ref(""),_=e.ref(""),k=e.ref(!1),h=e.ref(!1),b=e.ref(!1),$=e.ref([]),z=e.ref([]),B=e.ref(!1),y=e.ref([]),D=e.ref(!1),U=e.ref({}),O=e.ref(""),I=e.ref(null);e.watch($,M=>{M.length<y.value.length&&(B.value=!1)},{deep:!0}),e.onActivated(()=>{alert("onActivated"),Y(),window.addEventListener("storage",M=>{var i;(i=JSON.parse(M==null?void 0:M.newValue))!=null&&i.fwez&&(c.value=="0"?x():r())})});const K=M=>{$.value=M?y.value:[]},Y=()=>{var M;_.value="",k.value=!1,l.value=q(),w.value=[],(M=l.value.permits)==null||M.forEach(i=>{i.permNkey.includes("biz_type")?(w.value.push(i),_.value=_.value+i.permNkey.slice(9)+","):i.permNkey=="btn_expo"&&(k.value=!0)}),p.bizType=_.value,S()},q=()=>{var M,i;try{return((i=(M=window.$vtk)==null?void 0:M.storage)==null?void 0:i.get("_mis_acis_users"))||{}}catch(ee){return console.warn("获取用户信息失败:",ee),{}}},S=()=>{var M;c.value=1,p.operateLeve=(M=l.value.areacode)==null?void 0:M.length,p.servState="0",r()},x=()=>{c.value=0,delete p.operateLeve,delete p.servState,r()},F=M=>{const i=M.servState==1?`#/mino/suse/view/${M.inst}?ddtab=true`:`#/mino/suse/exam/${M.inst}?ddtab=true`;window.open(i)},R=()=>{var M;(M=I.value)==null||M.add(p.projCode)},L=M=>{P.value=M.projName,p.projCode=M.projCode,delete p.bizType,J()},J=()=>{r()},ae=()=>{P.value&&p.servState=="1"&&($.value=[],z.value=[],W.postJson("/kudas/xfwez/exv",{codex:p}).then(M=>{M.meta.success?JSON.parse(M.data.formJson).forEach(i=>{["text","radio","number","time","checkbox","textarea","select"].includes(i.type)&&(i.value={name:i.name,valu:`${i.label}${i.valu&&i.valu.includes("/")&&i.valu.includes(":")?`(${i.valu})`:""}`},z.value.push(i),y.value.push(i.value))}):A.value=M.meta.message}))},re=()=>{p.fields=$.value,d()},se=M=>{D.value=!0,U.value=M,O.value=""},ne=()=>{O.value&&W.postForm(g.delete,{id:U.value.id,note:O.value}).then(M=>{M.meta.success&&(D.value=!1,r())})},ie=()=>{},me=M=>M?M.replace(/^(.{6})(?:\d+)(.{4})$/,"$1********$2"):"",pe=M=>{if(!M)return"";const i=new Date(M);return`${i.getFullYear()}年${String(i.getMonth()+1).padStart(2,"0")}月${String(i.getDate()).padStart(2,"0")}日 ${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}:${String(i.getSeconds()).padStart(2,"0")}`},fe=M=>M=="0"?"bg-blue-lighten-5 text-blue":"bg-green-lighten-5 text-green",ge=M=>M=="0"?"服务中":"已服务",ue=M=>M=="0"?"bg-orange-lighten-5 text-orange":"bg-blue-lighten-5 text-blue",Ve=M=>M=="0"?"未评价":"已评价",ke=M=>({100:"特殊渠道",101:"移动端代办",102:"窗口端通办",200:"特殊渠道",210:"浙里办App",211:"浙里办微信小程序",212:"浙里办支付宝小程序",230:"微信小程序",240:"支付宝小程序",250:"自助机",300:"特殊渠道",310:"服务外包代办"})[M]||M;return(M,i)=>{const ee=e.resolveComponent("VIcon"),de=e.resolveComponent("VTab"),ce=e.resolveComponent("VSpacer"),qe=e.resolveComponent("VTabs"),te=e.resolveComponent("VBtn"),We=e.resolveComponent("VDivider"),xe=e.resolveComponent("VCheckbox"),N=e.resolveComponent("VCardTitle"),C=e.resolveComponent("VCard"),u=e.resolveComponent("VMenu"),E=e.resolveComponent("VTextField"),Z=e.resolveComponent("vtk-area-tabs"),H=e.resolveComponent("vtk-select"),he=e.resolveComponent("VDatePicker"),Ke=e.resolveComponent("vtk-search"),_e=e.resolveComponent("VChip"),nt=e.resolveComponent("VCol"),So=e.resolveComponent("VRow"),Bo=e.resolveComponent("vtk-empty"),$o=e.resolveComponent("VDataTable"),Eo=e.resolveComponent("vtk-page"),rt=e.resolveComponent("VCardText"),Do=e.resolveComponent("vtk-proj",!0),To=e.resolveComponent("VTextarea"),Ao=e.resolveComponent("VCardActions"),Mo=e.resolveComponent("VDialog"),Po=e.resolveComponent("VContainer");return e.openBlock(),e.createBlock(Po,{fluid:"",class:"vtk-height pa-0"},{default:e.withCtx(()=>[e.createVNode(qe,{modelValue:c.value,"onUpdate:modelValue":i[1]||(i[1]=T=>c.value=T),"bg-color":"transparent",height:"38",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(de,{onClick:i[0]||(i[0]=T=>x())},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[22]||(i[22]=[e.createTextVNode("mdi-clipboard-arrow-up",-1)])]),_:1}),i[23]||(i[23]=e.createTextVNode("全部",-1))])]),_:1}),e.createVNode(de,{onClick:Y},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[24]||(i[24]=[e.createTextVNode("mdi-star-circle",-1)])]),_:1}),i[25]||(i[25]=e.createTextVNode("审核",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[26]||(i[26]=[e.createTextVNode("mdi-hand-heart",-1)])]),_:1}),i[27]||(i[27]=e.createTextVNode("实施",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[28]||(i[28]=[e.createTextVNode("mdi-comment-minus",-1)])]),_:1}),i[29]||(i[29]=e.createTextVNode("评价",-1))])]),_:1}),e.createVNode(de,{onClick:ie},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(ee,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...i[30]||(i[30]=[e.createTextVNode("mdi-credit-card-check",-1)])]),_:1}),i[31]||(i[31]=e.createTextVNode("支付",-1))])]),_:1}),e.createVNode(ce)]),_:1},8,["modelValue"]),e.createVNode(C,{elevation:"0",style:{"min-height":"calc(100% - 38px)"}},{default:e.withCtx(()=>[e.createVNode(N,{style:{height:"88px"}},{default:e.withCtx(()=>[c.value=="0"&&(k.value||l.value.grole>=2)?(e.openBlock(),e.createBlock(u,{key:0,"offset-y":"","close-on-content-click":!1,location:"bottom"},{activator:e.withCtx(({props:T})=>[e.createVNode(te,e.mergeProps({onClick:ae},T,{class:"bg-orange text-white mr-3",elevation:"0"}),{default:e.withCtx(()=>[e.createVNode(ee,null,{default:e.withCtx(()=>[...i[32]||(i[32]=[e.createTextVNode("mdi-export-variant",-1)])]),_:1}),i[33]||(i[33]=e.createTextVNode(" 导出 ",-1))]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(C,{class:"pa-3",width:"300"},{default:e.withCtx(()=>{var T;return[e.createElementVNode("div",null,[i[40]||(i[40]=e.createElementVNode("p",{class:"mb-2 font-weight-bold"},"公共字段",-1)),i[41]||(i[41]=e.createElementVNode("p",{class:"text-caption"},[e.createTextVNode(" 服务事项 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属区县 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属镇街 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 所属社区 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人证件号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人姓名 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 残疾人证号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 性别 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 申请人手机号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 补助金额 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 开户银行 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 银行卡号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 收款人姓名 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 收款人证件号 "),e.createElementVNode("span",{class:"text-grey mx-1"},"|"),e.createTextVNode(" 状态 ")],-1)),e.createVNode(We),e.unref(p).servState=="1"&&P.value?(e.openBlock(),e.createElementBlock("div",Ha,[e.createVNode(N,{class:"pa-0 text-body-1 mb-2 pt-3"},{default:e.withCtx(()=>[e.createVNode(xe,{"onUpdate:modelValue":[K,i[2]||(i[2]=v=>B.value=v)],modelValue:B.value,class:"mt-n1","hide-details":""},{append:e.withCtx(()=>[e.createVNode(ee,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...i[34]||(i[34]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue"]),i[35]||(i[35]=e.createElementVNode("span",{class:"font-weight-bold ml-n2"},"拓展字段",-1)),e.createVNode(ce)]),_:1}),((T=z.value)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("p",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(v,st)=>(e.openBlock(),e.createBlock(xe,{key:st,modelValue:$.value,"onUpdate:modelValue":i[3]||(i[3]=zo=>$.value=zo),label:v.label,value:{name:v.name,valu:`${v.label}${v.valu&&v.valu.includes("/")&&v.valu.includes(":")?`(${v.valu})`:""}`},class:"mt-2",multiple:"","hide-details":""},{append:e.withCtx(()=>[e.createVNode(ee,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...i[36]||(i[36]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue","label","value"]))),128))])):(e.openBlock(),e.createElementBlock("p",Ga,e.toDisplayString(A.value),1))])):(e.openBlock(),e.createElementBlock("div",Xa,[i[39]||(i[39]=e.createElementVNode("p",{class:"mb-3 pt-3 font-weight-bold"},"导出提示",-1)),e.createElementVNode("p",{class:e.normalizeClass([e.unref(p).servState=="1"?"text-green":"text-red","mb-3 text-body-2"])},[e.createVNode(ee,{size:"20",color:e.unref(p).servState=="1"?"green":"red"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p).servState=="1"?"mdi-progress-check":"mdi-progress-close"),1)]),_:1},8,["color"]),i[37]||(i[37]=e.createTextVNode(" 导出数据仅限已服务信息 ",-1))],2),e.createElementVNode("p",{class:e.normalizeClass(["mb-2 text-body-2",P.value?"text-green":"text-red"])},[e.createVNode(ee,{size:"20",color:P.value?"green":"red"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.value?"mdi-progress-check":"mdi-progress-close"),1)]),_:1},8,["color"]),i[38]||(i[38]=e.createTextVNode(" 至少选择一个服务事项导出 ",-1))],2)]))]),e.createVNode(te,{onClick:re,disabled:!(P.value&&e.unref(p).servState=="1"),elevation:"0",color:"primary",class:"vtk-width mt-3",size:"small"},{default:e.withCtx(()=>[...i[42]||(i[42]=[e.createTextVNode("确认导出",-1)])]),_:1},8,["disabled"])]}),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(ce),e.createVNode(Ke,{modelValue:e.unref(p),"onUpdate:modelValue":i[17]||(i[17]=T=>e.isRef(p)?p.value=T:null),onSearch:J,placeholder:"输入姓名/身份证查询",styles:"width:320px"},{default:e.withCtx(()=>[e.createVNode(E,{onClick:R,modelValue:P.value,"onUpdate:modelValue":i[4]||(i[4]=T=>P.value=T),title:P.value,clearable:"",readonly:"",variant:"outlined",placeholder:"服务事项",density:"compact","hide-details":"",class:"my-3"},null,8,["modelValue","title"]),e.createVNode(Z,{modelValue:e.unref(p).areaCode,"onUpdate:modelValue":i[5]||(i[5]=T=>e.unref(p).areaCode=T),styles:"width:100%"},null,8,["modelValue"]),c.value==0?(e.openBlock(),e.createElementBlock("div",Za,[e.createVNode(H,{modelValue:e.unref(p).servState,"onUpdate:modelValue":i[6]||(i[6]=T=>e.unref(p).servState=T),onChange:J,placeholder:"服务状态",list:"0:服务中/1:已服务",class:"mt-3 d-inline-block mr-3 mb-3",style:{width:"calc(50% - 6px)"},"hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"]),e.createVNode(H,{modelValue:e.unref(p).rateState,"onUpdate:modelValue":i[7]||(i[7]=T=>e.unref(p).rateState=T),onChange:J,placeholder:"是否评价",list:"0:未评价/1:已评价",class:"mt-3 d-inline-block",style:{width:"calc(50% - 6px)"},"hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"]),e.createVNode(u,{modelValue:h.value,"onUpdate:modelValue":i[11]||(i[11]=T=>h.value=T),"close-on-content-click":!1,transition:"scale-transition",location:"bottom","max-width":"290px","min-width":"auto"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":i[8]||(i[8]=v=>e.unref(p).servFtime0=v),placeholder:"开始时间","persistent-hint":"","append-icon":"mdi-calendar",class:"d-inline-block",style:{width:"calc(50% - 16px)"},"hide-details":"",variant:"outlined",density:"compact"},T),null,16,["modelValue"])]),default:e.withCtx(()=>[e.createVNode(he,{modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":[i[9]||(i[9]=T=>e.unref(p).servFtime0=T),i[10]||(i[10]=T=>h.value=!1)],title:"","view-mode":"month",max:e.unref(p).servFtime1},null,8,["modelValue","max"])]),_:1},8,["modelValue"]),i[43]||(i[43]=e.createElementVNode("span",{class:"mx-2"},"至",-1)),e.createVNode(u,{modelValue:b.value,"onUpdate:modelValue":i[15]||(i[15]=T=>b.value=T),"close-on-content-click":!1,transition:"scale-transition",location:"bottom","max-width":"290px","min-width":"auto"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":i[12]||(i[12]=v=>e.unref(p).servFtime1=v),placeholder:"结束时间","persistent-hint":"","append-icon":"mdi-calendar",class:"d-inline-block",style:{width:"calc(50% - 15px)"},"hide-details":"",variant:"outlined",density:"compact"},T),null,16,["modelValue"])]),default:e.withCtx(()=>[e.createVNode(he,{modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":[i[13]||(i[13]=T=>e.unref(p).servFtime1=T),i[14]||(i[14]=T=>b.value=!1)],title:"","view-mode":"month",min:e.unref(p).servFtime0},null,8,["modelValue","min"])]),_:1},8,["modelValue"]),e.unref(p).servState=="1"?(e.openBlock(),e.createBlock(H,{key:0,onChange:J,modelValue:e.unref(p).state,"onUpdate:modelValue":i[16]||(i[16]=T=>e.unref(p).state=T),class:"mt-3",placeholder:"状态",list:"1:已通过/0:未通过","hide-details":"",density:"compact",variant:"outlined",clearable:""},null,8,["modelValue"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1}),e.createVNode(rt,null,{default:e.withCtx(()=>[e.createVNode($o,{headers:m.value,items:e.unref(n),loading:e.unref(f),"disable-pagination":"","loading-text":"数据加载中...",class:"elevation-0","hide-default-footer":""},{"item.objsName":e.withCtx(({item:T})=>[e.createElementVNode("div",{class:"py-3",onClick:v=>F(T)},[e.createElementVNode("p",eo,[e.createTextVNode(e.toDisplayString(T.objsName),1),e.createElementVNode("span",to,e.toDisplayString(me(T.objsCode)),1),e.createVNode(_e,{class:e.normalizeClass(["ml-2",fe(T.servState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge(T.servState)),1)]),_:2},1032,["class"]),e.createVNode(_e,{class:e.normalizeClass(["ml-2",ue(T.rateState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Ve(T.rateState)),1)]),_:2},1032,["class"])]),e.createElementVNode("span",null,[e.createVNode(_e,{class:"bg-orange-lighten-5 text-orange",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 事项编码:"+e.toDisplayString(T.projCode),1)]),_:2},1024),e.createVNode(_e,{class:"text-primary ml-2",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 办件编号:"+e.toDisplayString(T.inst),1)]),_:2},1024)]),e.createElementVNode("div",ao,[e.createElementVNode("div",oo,[i[44]||(i[44]=e.createTextVNode(" 服务名称:",-1)),e.createElementVNode("span",lo,e.toDisplayString(T.projName),1)]),e.createElementVNode("span",null,"补助金额:"+e.toDisplayString(T.servAmts)+"元",1)]),e.createVNode(So,{class:"py-2",style:{color:"#979797c2"}},{default:e.withCtx(()=>[e.createVNode(nt,{style:{"max-width":"320px"}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请途径:"+e.toDisplayString(ke(T.servFrom)),9,no)]),_:2},1024),e.createVNode(nt,null,{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请时间:"+e.toDisplayString(pe(T.servCtime)),9,ro)]),_:2},1024)]),_:2},1024)],8,va)]),"item.actions":e.withCtx(({item:T})=>{var v;return[T.state!=0&&((v=l.value.areacode)==null?void 0:v.length)==6&&T.servState=="1"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:st=>se(T),class:"text-error",text:""},"作废",8,so)):e.createCommentVNode("",!0),T.state==0?(e.openBlock(),e.createElementBlock("div",io)):e.createCommentVNode("",!0)]}),"no-data":e.withCtx(()=>[e.createVNode(Bo)]),_:2},1032,["headers","items","loading"]),e.createVNode(Eo,{"page-sizes":[10,20],"page-data":e.unref(a),onPageChange:e.unref(s)},null,8,["page-data","onPageChange"])]),_:1})]),_:1}),e.createVNode(Do,{ref_key:"MprojRef",ref:I,onToPage:L},null,512),e.createVNode(Mo,{modelValue:D.value,"onUpdate:modelValue":i[21]||(i[21]=T=>D.value=T),persistent:"","max-width":"500"},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[e.createVNode(N,null,{default:e.withCtx(()=>[...i[45]||(i[45]=[e.createTextVNode("作废",-1)])]),_:1}),e.createVNode(rt,{class:"pb-0"},{default:e.withCtx(()=>[i[46]||(i[46]=e.createTextVNode(" 服务作废后将无法恢复,请谨慎操作!!! ",-1)),e.createVNode(To,{modelValue:O.value,"onUpdate:modelValue":i[18]||(i[18]=T=>O.value=T),variant:"outlined",label:"请填写作废原因",class:"mt-3","hide-details":"",density:"compact"},null,8,["modelValue"])]),_:1}),e.createVNode(Ao,null,{default:e.withCtx(()=>[e.createVNode(ce),e.createVNode(te,{onClick:i[19]||(i[19]=T=>D.value=!1),variant:"text"},{default:e.withCtx(()=>[...i[47]||(i[47]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(te,{onClick:i[20]||(i[20]=T=>ne()),variant:"text"},{default:e.withCtx(()=>[...i[48]||(i[48]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),[["__scopeId","data-v-052be5fe"]]),Ue=Object.assign({name:"VtkRadio",inheritAttrs:!1},{__name:"VtkRadio",props:{list:{type:String,required:!0},modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=o,r=e.useAttrs(),d=e.ref([]),n=()=>{a.list.split("/").forEach(g=>{const[p,l]=g.split(":");d.value.push({code:p,codeValue:l})})},f=async()=>{try{const g=await W.getForm(`dict/misc/list/${a.list}`);d.value=g.data||[]}catch(g){console.error("[VtkRadio] Failed to load dictionary:",g),d.value=[]}},V=g=>{s("update:modelValue",g)};return e.onMounted(()=>{a.list.includes(":")?n():f()}),(g,p)=>{const l=e.resolveComponent("VRadio"),c=e.resolveComponent("VRadioGroup");return e.openBlock(),e.createBlock(c,e.mergeProps(e.unref(r),{modelValue:t.modelValue,"onUpdate:modelValue":V}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,m=>(e.openBlock(),e.createBlock(l,{key:m.id||m.code,label:m.codeValue,value:m.code},null,8,["label","value"]))),128))]),_:1},16,["modelValue"])}}}),co={class:"search"},Le=Q(Object.assign({name:"VtkSearch"},{__name:"VtkSearch",props:{value:{type:Object,default:()=>({})}},emits:["update:value","search"],setup(t,{emit:o}){const a=t,s=o,r=e.ref({}),d=e.ref(!1),n=e.ref({...a.value}),f=e.ref(0);e.watch(()=>a.value,c=>{n.value={...c}},{deep:!0}),e.onMounted(()=>{r.value=JSON.parse(localStorage.getItem("_mis_acis_users")||"{}"),f.value=0});const V=()=>{d.value||(f.value=0)},g=()=>{d.value=!1,V()},p=()=>{g(),s("update:value",n.value),s("search")},l=()=>{Object.keys(n.value).forEach(c=>{c!=="condition"&&delete n.value[c]}),delete n.value.condition,f.value=0,s("update:value",n.value),s("search"),d.value=!1};return(c,m)=>{const w=e.resolveComponent("VBadge"),P=e.resolveComponent("VTextField"),A=e.resolveComponent("VIcon"),_=e.resolveComponent("VBtn"),k=e.resolveComponent("VCardTitle"),h=e.resolveComponent("VCardText"),b=e.resolveComponent("VSpacer"),$=e.resolveComponent("VCardActions"),z=e.resolveComponent("VCard"),B=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",co,[e.createVNode(B,{modelValue:d.value,"onUpdate:modelValue":[m[2]||(m[2]=y=>d.value=y),V],location:"bottom",offset:"12","close-on-content-click":!1},{activator:e.withCtx(({props:y})=>[e.createVNode(P,{modelValue:n.value.condition,"onUpdate:modelValue":m[0]||(m[0]=D=>n.value.condition=D),placeholder:c.$attrs.placeholder||"请输入查询内容",style:e.normalizeStyle(c.$attrs.styles),class:"box",density:"compact",variant:"outlined","hide-details":"","onClick:append":p,onKeyup:e.withKeys(p,["enter"]),"onClick:clear":m[1]||(m[1]=D=>(n.value.condition="",p())),clearable:""},{"append-inner":e.withCtx(()=>[e.createVNode(w,{dot:"",content:f.value,"model-value":f.value>0,color:"error",class:"advanced-badge"},{default:e.withCtx(()=>[e.createElementVNode("span",e.mergeProps(y,{class:"text-blue vtk-cursor-pointer d-inline-flex align-center text-body-2"})," 高级 ",16)]),_:2},1032,["content","model-value"])]),_:2},1032,["modelValue","placeholder","style"])]),default:e.withCtx(()=>[e.createVNode(z,{style:{width:"380px","margin-right":"-16px"}},{default:e.withCtx(()=>[e.createVNode(k,{class:"pr-3 d-flex justify-space-between align-center pb-5"},{default:e.withCtx(()=>[m[4]||(m[4]=e.createElementVNode("span",null,"高级搜索",-1)),e.createVNode(_,{class:"mx-0",variant:"text",icon:"",onClick:g,size:"small"},{default:e.withCtx(()=>[e.createVNode(A,null,{default:e.withCtx(()=>[...m[3]||(m[3]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),_:1}),e.createVNode(h,null,{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3}),e.createVNode($,{class:"pt-0 px-4 pb-3"},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"actions",{},void 0,!0),e.createVNode(b),e.createVNode(_,{onClick:p,variant:"flat",color:"primary"},{default:e.withCtx(()=>[e.createVNode(A,{class:"mr-1"},{default:e.withCtx(()=>[...m[5]||(m[5]=[e.createTextVNode("mdi-magnify",-1)])]),_:1}),m[6]||(m[6]=e.createTextVNode("搜索 ",-1))]),_:1}),e.createVNode(_,{onClick:l,variant:"flat",color:"error"},{default:e.withCtx(()=>[e.createVNode(A,{class:"mr-1"},{default:e.withCtx(()=>[...m[7]||(m[7]=[e.createTextVNode("mdi-sync",-1)])]),_:1}),m[8]||(m[8]=e.createTextVNode("重置 ",-1))]),_:1})]),_:3})]),_:3})]),_:3},8,["modelValue"])])}}}),[["__scopeId","data-v-2922c5c7"]]),Oe=Q(Object.assign({name:"VtkSelect",inheritAttrs:!1},{__name:"VtkSelect",props:{list:{type:String,default:null},multi:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,s=e.useAttrs(),r=e.computed(()=>{const{list:V,multi:g,...p}=s;return p}),d=e.ref([]),n=()=>{W.getForm(`dict/misc/list/${a.list}`).then(V=>{d.value=V.data})},f=()=>{a.list&&a.list.split("/").forEach(V=>{const g=V.split(":");d.value.push({code:g[0],codeValue:g[1]})})};return e.onMounted(()=>{a.list&&(a.list.includes(":")?f():n())}),(V,g)=>{const p=e.resolveComponent("VSelect");return e.openBlock(),e.createBlock(p,e.mergeProps(r.value,{items:d.value,"item-title":"codeValue","item-value":"code",multiple:t.multi,"menu-props":{offsetY:!0},"onUpdate:modelValue":g[0]||(g[0]=l=>V.$emit("update:modelValue",l))}),null,16,["items","multiple"])}}}),[["__scopeId","data-v-7cb05cd0"]]),mo=["complete","step"],Re=Q(Object.assign({name:"VtkStepper",inheritAttrs:!1},{__name:"VtkStepper",props:{list:{type:String,default:null},el:{type:Number,default:1}},setup(t){const o=t,a=e.ref(o.el),s=e.ref([]);e.watch(()=>o.el,d=>{a.value=d});const r=()=>{o.list&&(s.value=o.list.split(","))};return e.onMounted(()=>{r()}),e.watch(()=>o.list,()=>{r()}),(d,n)=>{const f=e.resolveComponent("VCol"),V=e.resolveComponent("VRow"),g=e.resolveComponent("VStepperHeader"),p=e.resolveComponent("VStepperWindowItem"),l=e.resolveComponent("VStepperWindow"),c=e.resolveComponent("VStepper");return e.openBlock(),e.createBlock(c,{class:"elevation-0",modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=m=>a.value=m)},{default:e.withCtx(()=>[e.createVNode(g,{class:"elevation-0",style:{overflow:"hidden"}},{default:e.withCtx(()=>[e.createVNode(V,{class:"stepList"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(m,w)=>(e.openBlock(),e.createBlock(f,{class:"pl-0 colItem",key:w,style:{}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["first-box1 last-box pl-10 py-5 stepItem",a.value>w?"selected":""]),complete:a.value>w,step:w+1},e.toDisplayString(m),11,mo)]),_:2},1024))),128))]),_:1})]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(m,w)=>(e.openBlock(),e.createBlock(p,{key:w,value:w+1},{default:e.withCtx(()=>[e.renderSlot(d.$slots,w+1,{},void 0,!0)]),_:2},1032,["value"]))),128)),e.renderSlot(d.$slots,"default",{},void 0,!0)]),_:3})]),_:3},8,["modelValue"])}}}),[["__scopeId","data-v-5ab53ed0"]]);function He(t,o){let a="";return t&&t.includes(",")?a=t.split(",").map(s=>Qe(s,o)).join():a=Qe(t,o),a}function Qe(t,o){if(t){for(var a=Array.isArray(t)?t:t.split(","),s=o==null?void 0:o.split("/"),r=[],d=0;d<(a==null?void 0:a.length);d++){var n=a[d];for(var f in s){var V=s[f].split(":");if(V[0]==n){r.push(V[1]);break}}}return r.length>0?r.join():"其他"}}function Ge(t){if(!t)return"";let o="",a=["视力","听力","言语","肢体","智力","精神","多重"];for(let s=1;s<8;s++)s===1?o=t.replace(s.toString(),a[s-1]):o=o.replace(s.toString(),a[s-1]);return o}function Xe(t){if(!t)return"";let o="",a=["一级","二级","三级","四级","不限等级"];for(let s=1;s<7;s++)s===1?o=t.replace(s.toString(),a[s-1]):o=o.replace(s.toString(),a[s-1]);return o}const po=Object.freeze(Object.defineProperty({__proto__:null,analyLevel:Xe,analyType:Ge,dict:He},Symbol.toStringTag,{value:"Module"}));function Ze(t,o){if(!t||t=="无"||t==null)return o="无",o;let a=new Date(t),s={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};/(y+)/.test(o)&&(o=o.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length)));for(let r in s)new RegExp("("+r+")").test(o)&&(o=o.replace(RegExp.$1,RegExp.$1.length===1?s[r]:("00"+s[r]).substr((""+s[r]).length)));return o}function ve(t,o){if(isNaN(t)||t===""||t===null)return t;var a=parseFloat(t),s=a<0?"-":"",r=Math.abs(a),d=0;o&&o.includes(".")&&(d=o.length-o.lastIndexOf(".")-1);var n=o&&o.includes(","),f=d>0?r.toFixed(d):Math.round(r),V=d>0?"."+f.toString().split(".")[1]:"",g=d>0?Math.floor(r).toString():f.toString();return n&&g.length>3&&(g=g.replace(/\B(?=(\d{3})+(?!\d))/g,",")),s+g+V}function et(t){let o=new Date(t.slice(0,10).replace(/-/g,"/")),a=new Date;return a.getFullYear()-o.getFullYear()-(a.getMonth()<o.getMonth()||a.getMonth()===o.getMonth()&&a.getDate()<o.getDate()?1:0)}function tt(t,o){return(t==null?void 0:t.length)>o?t.slice(0,o)+"...":t}function at(t){return isNaN(t)?0:Math.abs(t)}const fo=Object.freeze(Object.defineProperty({__proto__:null,abs:at,age:et,date:Ze,num:ve,txt:tt},Symbol.toStringTag,{value:"Module"}));function ot(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function lt(t){if(t)return t.replace(/^(.{4})(?:\d+)(.{4})$/,"$1** **** ****$2")}const go=Object.freeze(Object.defineProperty({__proto__:null,idcard:lt,mobile:ot},Symbol.toStringTag,{value:"Module"})),X={red:{lighten4:"#ffcdd2",accent2:"#ff5252",accent3:"#ff1744"},pink:{lighten4:"#f8bbd0",accent1:"#ff80ab",accent2:"#ff4081"},purple:{lighten4:"#e1bee7",accent2:"#e040fb",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten4:"#d1c4e9",accent2:"#7c4dff"},blue:{base:"#2196f3",lighten4:"#bbdefb",accent2:"#448aff"},amber:{lighten4:"#ffecb3",darken1:"#ffb300",accent2:"#ffd740"}},Ye={theme_colors:[{name:"Blue-light",scheme:"md-blue-500-scheme",dark:!0,primary:X.blue.base,secondary:X.blue.lighten4,accent:X.blue.accent2},{name:"Yellow-light",scheme:"md-amber-a700-scheme",dark:!0,primary:X.amber.darken1,secondary:X.amber.lighten4,accent:X.amber.accent2},{name:"Red-light",scheme:"md-red-a400-scheme",dark:!0,primary:X.red.accent3,secondary:X.red.lighten4,accent:X.red.accent2},{name:"Pink-light",dark:!1,scheme:"md-pink-a100-scheme",primary:X.pink.accent1,secondary:X.pink.lighten4,accent:X.pink.accent2},{name:"Purple-light",dark:!1,scheme:"md-purple-a700-scheme",primary:X.purple.accent4,secondary:X.purple.lighten4,accent:X.purple.accent2},{name:"DeepPurple-light",dark:!1,scheme:"md-deep-purple-a700-scheme",primary:X.deepPurple.base,secondary:X.deepPurple.lighten4,accent:X.deepPurple.accent2}],navi_colors:[{name:"black",class:"black"},{name:"red-pink",class:"gradient-red-pink"},{name:"blue-grey-blue",class:"gradient-blue-grey-blue"},{name:"green-teal",class:"gradient-green-teal"},{name:"purple-deep-purple",class:"gradient-purple-deep-purple"},{name:"purple-amber",class:"gradient-purple-amber"},{name:"indigo-purple",class:"gradient-indigo-purple"},{name:"deep-purple-blue",class:"gradient-deep-purple-blue"},{name:"deep-orange-orange",class:"gradient-deep-orange-orange"},{name:"light-blue-cyan",class:"gradient-light-blue-cyan"},{name:"timber",class:"gradient-timber"},{name:"strawberry",class:"gradient-strawberry"},{name:"orange",class:"gradient-orange"},{name:"pomegranate",class:"gradient-pomegranate"},{name:"green-tea",class:"gradient-green-tea"},{name:"blackberry",class:"gradient-blackberry"},{name:"plum",class:"gradient-plum"},{name:"passion-fruit",class:"gradient-passion-fruit"},{name:"sublime-vivid",class:"gradient-sublime-vivid"},{name:"summer",class:"gradient-summer"},{name:"crystal-clear",class:"gradient-crystal-clear"},{name:"dawn",class:"gradient-dawn"},{name:"grapefruit-sunset",class:"gradient-grapefruit-sunset"},{name:"man-of-steel",class:"gradient-man-of-steel"}]},uo={isMobile:function(t){return/^(?:\+86)?(?:13\d|14[57]|15[0-35-9]|17[35-8]|18\d)\d{8}$|^(?:\+86)?170[057-9]\d{7}$/.test(t)},isMobileSize:function(t){return/^(?:\+86)?1\d{10}$/.test(t)},isPhone:function(t){return/^(?:\(\d{3,4}\)|\d{3,4}-)?\d{7,8}(?:-\d{1,4})?$/.test(t)},isCall:t=>(void 0).isPhone(t)||(void 0).isMobile(t),isEmail:function(t){return/^[-\w+]+(?:\.[-\w]+)*@[-a-z0-9]+(?:\.[a-z0-9]+)*(?:\.[a-z]{2,})$/i.test(t)},isIdCardSimple:function(t){return/^(?:1[1-5]|2[1-3]|3[1-7]|4[1-6]|5[0-4]|6[1-5])\d{4}(?:1[89]|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}(?:\d|[xX])$/.test(t)},isName:function(t){return/^([\u4e00-\u9fa5]{1,20}|[a-zA-Z.\s]{1,20})$/.test(t)},isIdCard:function(t){let o=n=>{for(var f=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],V=n.split(""),g=17,p=0,l=0;l<g;l++)p+=V[l]*f[l];var c=p%11,m=["1","0","X","9","8","7","6","5","4","3","2"],w=m[c];return w===n[17]};if(this.isIdCardSimple(t)){var a=t.substr(6,8),s=a.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"),r=new Date(s),d=r.getMonth()+1;if(parseInt(a.substr(4,2))===d)return o(t)}return!1},getFromIdCard:t=>{var o=t.substr(0,6),a=t.substr(6,8).replace(/(\d{4})(\d{2})(\d{2})/,"$1年$2月$3日"),s=new Date().getFullYear()-t.substr(6,4)+1,r=t.substr(16,1)%2===0?"女":"男";return{area:o,birth:a,age:s,sex:r}}},Vo={__name:"alert",setup(t){const o=oe(),a=e.computed(()=>{var d;return((d=o.alert)==null?void 0:d.isActive)||!1}),s=e.computed(()=>{var d;return((d=o.alert)==null?void 0:d.options)||{}}),r=()=>{o.hide("alert")};return(d,n)=>{const f=e.resolveComponent("VCardTitle"),V=e.resolveComponent("VCardText"),g=e.resolveComponent("VSpacer"),p=e.resolveComponent("VBtn"),l=e.resolveComponent("VCardActions"),c=e.resolveComponent("VCard"),m=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(m,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=w=>a.value=w),persistent:"",width:s.value.width},{default:e.withCtx(()=>[e.createVNode(c,{color:s.value.color},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.title),1)]),_:1}),s.value.text?(e.openBlock(),e.createBlock(V,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(g),e.createVNode(p,{text:"",onClick:r},{default:e.withCtx(()=>[...n[1]||(n[1]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","width"])}}},ko={__name:"confirm",setup(t){const o=oe(),a=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.isActive)||!1}),s=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.options)||{}}),r=()=>{typeof s.value.onConfirm=="function"&&s.value.onConfirm(),o.hide("confirm")},d=()=>{typeof s.value.onCancel=="function"&&s.value.onCancel(),o.hide("confirm")};return(n,f)=>{const V=e.resolveComponent("VCardTitle"),g=e.resolveComponent("VCardText"),p=e.resolveComponent("VSpacer"),l=e.resolveComponent("VBtn"),c=e.resolveComponent("VCardActions"),m=e.resolveComponent("VCard"),w=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(w,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=P=>a.value=P),persistent:"","max-width":s.value.width||400},{default:e.withCtx(()=>[e.createVNode(m,{color:s.value.color},{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.title),1)]),_:1}),s.value.text?(e.openBlock(),e.createBlock(g,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(c,null,{default:e.withCtx(()=>[e.createVNode(p),e.createVNode(l,{text:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.cancelText||"取消"),1)]),_:1}),e.createVNode(l,{text:"",onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","max-width"])}}},ho={__name:"loading",setup(t){const o=oe(),a=e.computed(()=>{var s;return((s=o.loading)==null?void 0:s.isActive)||!1});return(s,r)=>{const d=e.resolveComponent("v-progress-circular"),n=e.resolveComponent("v-overlay");return e.openBlock(),e.createBlock(n,{modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=f=>a.value=f),persistent:"",class:"align-center justify-center",style:{zIndex:9999}},{default:e.withCtx(()=>[e.createVNode(d,{indeterminate:"",size:"64",width:"6",color:"primary"})]),_:1},8,["modelValue"])}}},yo={key:0,class:"mt-2"},Co={name:"vtkMessage",components:{vtkAlert:Vo,vtkConfirm:ko,vtkLoading:ho,vtkPrompt:{__name:"prompt",setup(t){const o=oe(),a=e.ref(""),s=e.computed(()=>{var f;return((f=o.prompt)==null?void 0:f.isActive)||!1}),r=e.computed(()=>{var f;return((f=o.prompt)==null?void 0:f.options)||{}}),d=()=>{typeof r.value.onConfirm=="function"&&r.value.onConfirm(a.value),o.hide("prompt"),a.value=""},n=()=>{typeof r.value.onCancel=="function"&&r.value.onCancel(),o.hide("prompt"),a.value=""};return(f,V)=>{const g=e.resolveComponent("VCardTitle"),p=e.resolveComponent("VTextField"),l=e.resolveComponent("VCardText"),c=e.resolveComponent("VSpacer"),m=e.resolveComponent("VBtn"),w=e.resolveComponent("VCardActions"),P=e.resolveComponent("VCard"),A=e.resolveComponent("VDialog");return e.openBlock(),e.createBlock(A,{modelValue:s.value,"onUpdate:modelValue":V[1]||(V[1]=_=>s.value=_),persistent:"",width:r.value.width},{default:e.withCtx(()=>[e.createVNode(P,{color:r.value.color},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.title),1)]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:a.value,"onUpdate:modelValue":V[0]||(V[0]=_=>a.value=_),label:r.value.label,placeholder:r.value.placeholder,type:r.value.inputType||"text",outlined:"",dense:""},null,8,["modelValue","label","placeholder","type"]),r.value.text?(e.openBlock(),e.createElementBlock("div",yo,e.toDisplayString(r.value.text),1)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(w,null,{default:e.withCtx(()=>[e.createVNode(c),e.createVNode(m,{text:"",onClick:n},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.cancelText||"取消"),1)]),_:1}),e.createVNode(m,{text:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","width"])}}},vtkToast:Q({__name:"toast",setup(t){const o=oe(),a=e.computed({get:()=>{var n;return((n=o.toast)==null?void 0:n.isActive)||!1},set:n=>{o.toast&&(o.toast.isActive=n)}}),s=e.computed(()=>{var n;return((n=o.toast)==null?void 0:n.options)||{}}),r=()=>{o.hide("toast")},d=n=>{n||o.hide("toast")};return(n,f)=>{const V=e.resolveComponent("VIcon"),g=e.resolveComponent("VBtn"),p=e.resolveComponent("VSnackbar");return e.openBlock(),e.createBlock(p,{modelValue:a.value,"onUpdate:modelValue":[f[1]||(f[1]=l=>a.value=l),d],timeout:s.value.timeout>0?s.value.timeout:3e3,color:s.value.color,centered:""},{actions:e.withCtx(()=>[e.createVNode(g,{text:"",icon:"",onClick:f[0]||(f[0]=l=>r())},{default:e.withCtx(()=>[e.createVNode(V,null,{default:e.withCtx(()=>[...f[2]||(f[2]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.value.text)+" ",1)]),_:1},8,["modelValue","timeout","color"])}}},[["__scopeId","data-v-c08037e4"]])}},xo={class:"text-center"};function _o(t,o,a,s,r,d){const n=e.resolveComponent("vtk-alert"),f=e.resolveComponent("vtk-confirm"),V=e.resolveComponent("vtk-loading"),g=e.resolveComponent("vtk-prompt"),p=e.resolveComponent("vtk-toast");return e.openBlock(),e.createElementBlock("div",xo,[e.createVNode(n),e.createVNode(f),e.createVNode(V),e.createVNode(g),e.createVNode(p)])}const No=Q(Co,[["render",_o]]);function wo(t,o={}){const a={VtkArea:we,VtkAreaTabs:be,VtkBreadcrumb:Se,VtkCheckbox:Be,VtkCount:$e,VtkDatePicker:Ee,VtkDateSelector:De,VtkDept:Te,VtkEmpty:Ae,VtkFab:Me,VtkFormItem:Pe,VtkImg:ze,VtkPage:Fe,VtkPdf:Ie,VtkProj:je,VtkRadio:Ue,VtkSearch:Le,VtkSelect:Oe,VtkStepper:Re,VtkMessage:No};return Object.keys(a).forEach(s=>{t.component(s,a[s])}),t.config.globalProperties.$vtk={message:G,request:W,storage:le,themes:Ye,Validation:uo,filters:{...po,...go,...fo},...o},t}const bo={install:wo,VtkArea:we,VtkAreaTabs:be,VtkBreadcrumb:Se,VtkCheckbox:Be,VtkCount:$e,VtkDatePicker:Ee,VtkDateSelector:De,VtkDept:Te,VtkEmpty:Ae,VtkFab:Me,VtkFormItem:Pe,VtkImg:ze,VtkPage:Fe,VtkPdf:Ie,VtkProj:je,VtkRadio:Ue,VtkSearch:Le,VtkSelect:Oe,VtkStepper:Re,request:W,storage:le,themes:Ye,vtkMessage:G};j.VtkArea=we,j.VtkAreaTabs=be,j.VtkBreadcrumb=Se,j.VtkCheckbox=Be,j.VtkCount=$e,j.VtkDatePicker=Ee,j.VtkDateSelector=De,j.VtkDept=Te,j.VtkEmpty=Ae,j.VtkFab=Me,j.VtkFormItem=Pe,j.VtkImg=ze,j.VtkPage=Fe,j.VtkPdf=Ie,j.VtkProj=je,j.VtkRadio=Ue,j.VtkSearch=Le,j.VtkSelect=Oe,j.VtkStepper=Re,j.abs=at,j.age=et,j.analyLevel=Xe,j.analyType=Ge,j.date=Ze,j.default=bo,j.dict=He,j.idcard=lt,j.mobile=ot,j.num=ve,j.request=W,j.storage=le,j.themes=Ye,j.txt=tt,j.useMixins=Je,j.vtkMessage=G,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
2
2
  //# sourceMappingURL=specter-pui.umd.js.map