@yxhl/specter-pui-vtk 1.0.42 → 1.0.43
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.
package/dist/specter-pui.umd.js
CHANGED
|
@@ -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,rt,st){"use strict";var Ce=typeof document<"u"?document.currentScript:null;const oe={},ke=(t="local")=>t=="local"?window.localStorage:window.sessionStorage;oe.get=(t,a="local")=>{var o=ke(a).getItem(t);return/^[\\{|\\[].+[\\}|\\]]$/.test(o)?JSON.parse(o):o},oe.set=(t,a,o="local")=>{a=a.constructor===Object?JSON.stringify(a):a,ke(o).setItem(t,a)},oe.remove=(t,a="local")=>{ke(a).removeItem(t)},oe.clear=(t="local")=>{ke(t).clear()};const ae=st.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,a){this[t]&&(this[t]={isActive:!0,options:a})}}}),G={alert(t){ae().show("alert",t)},confirm(t){ae().show("confirm",t)},loading:{show(t={}){const a=ae(),o={title:"",text:"",color:"",width:120,indeterminate:!0,progressColor:"primary",size:64,circleWidth:6};a.show("loading",{...o,...t})},hide(){ae().hide("loading")}},prompt(t){ae().show("prompt",t)},toast(t,a={}){const o=ae(),i=typeof t=="string"?{text:t,...a}:t;o.show("toast",i)},hide(t){ae().hide(t)}},he=rt.create({baseURL:window.VITE_APP_API_URL||void 0||"",headers:{"X-Requested-With":"XMLHttpRequest"},withCredentials:!1,timeout:3e4});he.interceptors.request.use(t=>{var o,i;const a=((i=(o=window.VTK_CONFIG)==null?void 0:o.storageKeys)==null?void 0:i.token)||"_mis_acis_token";return oe.get(a)&&(t.headers["X-Token"]="1b0679be72ad976ad5d491ad57a5eec0",t.headers.Authorization="Bearer "+oe.get(a)),t},t=>(G.toast(t.message||"请求错误"),Promise.reject(t))),he.interceptors.response.use(t=>{let a=t.data,o=t.headers["content-disposition"];if(o!=null&&o.split(";")[0]=="attachment"&&(a=t),t.status!==200)return G.toast(a.message||"请求失败",{color:"error"}),Promise.reject(new Error(a.message||"请求失败"));if(a.meta&&!a.meta.success&&a.meta.message==="specter_authorize_exception"){oe.clear();const i=()=>{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:i,onCancel:i})}return Promise.resolve(a)},t=>(console.log("err"+t),G.toast(t.message||"网络错误",{color:"error"}),Promise.reject(t)));const W={};W.http=(t,a={},o="GET",i={"content-type":"application/x-www-form-urlencoded"},r=null)=>i["content-type"]==="application/x-www-form-urlencoded"?he({url:t,params:a,method:o,headers:i,responseType:r}):he({url:t,data:a,method:o,headers:i,responseType:r}),W.getForm=(t,a={})=>W.http(t,a),W.postForm=(t,a={})=>W.http(t,a,"POST"),W.getJson=(t,a={})=>W.http(t,a,"POST",{"content-type":"application/json"}),W.postJson=(t,a={})=>W.http(t,a,"POST",{"content-type":"application/json"}),W.imp=(t,a={})=>W.http(t,a,"POST",{"Content-Type":"multipart/form-data"}),W.exp=(t,a={})=>W.http(t,a,"POST",{"content-Type":"application/json"},"blob");const Q=(t,a)=>{const o=t.__vccOpts||t;for(const[i,r]of a)o[i]=r;return o},it={class:"d-inline-block d-flex"},xe=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:a}){const{proxy:o}=e.getCurrentInstance(),i=a,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 o.$vtk.storage.get(l)!="object"?JSON.parse(o.$vtk.storage.get(l)):o.$vtk.storage.get(l)||"",d.value&&f()});const f=()=>{var l,c;try{o.$vtk.message.loading.show(),W.postForm(`/dict/area/show/${d.value.areacode}`).then(m=>{var w,P;o.$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,C(d.value.areacode)):o.$vtk.message.toast(m.meta.message)}).catch(m=>{o.$vtk.message.loading.hide(),o.$vtk.message.toast("加载区域数据失败")})}catch(m){console.error("初始化区域数据失败:",m),(c=(l=o.$vtk.message)==null?void 0:l.loading)!=null&&c.hide&&o.$vtk.message.loading.hide()}},C=(l,c)=>{p(l),(l==null?void 0:l.length)<12&&W.postForm(`/dict/area/next/${l}`).then(m=>{o.$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):o.$vtk.message.toast(m.meta.message)}).catch(m=>{console.error("加载下级区域数据失败:",m),o.$vtk.message.toast("加载下级区域数据失败")})},u=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&&i("update:modelValue",l)};return(l,c)=>{var w,P,A,_,k,h,b,B,z,$;const m=e.resolveComponent("VSelect");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(m,{modelValue:r.area2,"onUpdate:modelValue":[c[0]||(c[0]=y=>r.area2=y),c[1]||(c[1]=y=>C(r.area2,1))],"onClick:clear":c[2]||(c[2]=y=>u(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=>C(r.area4,2))],"onClick:clear":c[5]||(c[5]=y=>u(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=>C(r.area6,3))],"onClick:clear":c[8]||(c[8]=y=>u(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=>C(r.area9,4))],"onClick:clear":c[11]||(c[11]=y=>u(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:((B=d.value.areacode)==null?void 0:B.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=>C(r.area12,5))],"onClick:clear":c[14]||(c[14]=y=>u(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:(($=d.value.areacode)==null?void 0:$.length)>=12,"menu-props":{offsetY:!0}},null,8,["modelValue","placeholder","items","disabled","style"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-644cffae"]]),ct={class:"btn-text"},dt={class:"pt-3 px-3"},_e=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:a}){const o=t,i=a,{proxy:r}=e.getCurrentInstance(),d=e.ref(!1),n=e.ref({}),f=e.ref(0),C=e.ref([]),u=e.ref([]),p=e.ref([]),l=e.ref([]),c=e.ref(null),m=e.ref(""),w=e.ref(""),P=$=>{r.$vtk.request.getForm(`/dict/area/show/${$}`).then(y=>{let D=y.data.province?`${y.data.province}`:"",U=y.data.city?`/${y.data.city}`:"",O=y.data.district?`/${y.data.district}`:"",F=y.data.town?`/${y.data.town}`:"",K=y.data.village?`/${y.data.village}`:"";w.value=`${D}${U}${O}${F}${K}`,o.areaNode&&o.areaNode>0&&(w.value=w.value.split("/").slice(-o.areaNode).join("/"))})},A=$=>{p.value=[...u.value[$]],$<l.value.length?c.value=p.value.findIndex(y=>y.areaCode==l.value[$].areaCode):c.value=null},_=($,y)=>{l.value=l.value.slice(0,y),l.value.push($),u.value=u.value.slice(0,y+1),C.value.length>f.value+1&&(!o.minArea||o.minArea>$.areaCode.length)&&(k($.areaCode),f.value++)},k=$=>{r.$vtk.request.getForm(`/dict/area/next/${$}`).then(y=>{p.value=y.data,u.value.push(y.data),c.value=null,e.nextTick()})},h=$=>{l.value=[],C.value=[{text:"省级",leve:"2"},{text:"市级",leve:"4"},{text:"区县",leve:"6"},{text:"街镇",leve:"9"},{text:"村社",leve:"12"}].filter(y=>y.leve>=n.value.areacode.length),u.value=[],r.$vtk.request.getForm(`/dict/area/show/${$}`).then(y=>{p.value=[{areaName:y.data.areaName,areaCode:y.data.areaCode}],u.value.push(p.value),l.value.push(p.value[0])})},b=()=>{let $=[],y=[];l.value.forEach(D=>{$.push(D.areaName),y.push(D.areaCode),m.value=D.areaCode}),o.areaNode&&o.areaNode>0&&($=$.slice(-o.areaNode)),w.value=$.join().replace(/,/g,"/"),i("update:modelValue",m.value),i("change"),z()},B=()=>{f.value=0,h(n.value.areacode),m.value=n.value.areacode,i("update:modelValue",m.value),i("change")},z=()=>{d.value=!1};return e.watch(()=>o.modelValue,($,y)=>{$&&$!=y&&P($)}),e.onMounted(()=>{var y,D;const $=((D=(y=window.VTK_CONFIG)==null?void 0:y.storageKeys)==null?void 0:D.user)||"_mis_acis_users";n.value=r.$vtk.storage.get($)&&JSON.parse(r.$vtk.storage.get($)),n.value&&n.value.areacode&&h(n.value.areacode),o.modelValue&&P(o.modelValue)}),($,y)=>{const D=e.resolveComponent("v-icon"),U=e.resolveComponent("v-btn"),O=e.resolveComponent("v-tab"),F=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"),I=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:$.$attrs.styles}),{default:e.withCtx(()=>[e.createElementVNode("span",ct,e.toDisplayString(w.value||"选择地区"),1),w.value?(e.openBlock(),e.createBlock(D,{key:0,size:"small",onClick:e.withModifiers(B,["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(I,{elevation:"0",style:{width:"350px"}},{default:e.withCtx(()=>[e.createElementVNode("p",dt,[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(F,{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(C.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:u.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(C.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]=te=>c.value=te),"selected-class":"chipActive",column:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,te=>(e.openBlock(),e.createBlock(K,{key:te.id,onClick:ne=>_(te,J),class:e.normalizeClass(["rounded",te.areaCode==n.value.areacode&&"active"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(te.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"]]),mt={class:"vtk-breadcrumb-wrapper d-flex align-center justify-space-between"},Ne=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:a}){const o=t,i=a,r=e.inject("router",null),d=e.inject("route",null),n=e.computed(()=>{var p,l;if(o.items&&o.items.length>0)return o.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===o.items.length-1}));if(!d)return[];const C=((p=d.matched)==null?void 0:p.filter(c=>c.meta&&c.meta.breadcrumb))||[];if(C.length>0)return C.map((c,m)=>({title:c.meta.breadcrumb,to:c.path,disabled:m===C.length-1}));const u=((l=d.path)==null?void 0:l.split("/").filter(c=>c))||[];return u.map((c,m)=>{const w="/"+u.slice(0,m+1).join("/");return{title:c.charAt(0).toUpperCase()+c.slice(1),to:w,disabled:m===u.length-1}})}),f=()=>{i("back"),r&&(o.backTo?(o.backTo,r.push(o.backTo)):r.back())};return(C,u)=>{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",mt,[e.createVNode(c,{items:n.value,class:"pa-0"},{divider:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[...u[0]||(u[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"]]),we=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:a}){const o=t,i=a,r=e.ref([]),d=e.ref(!1),n=e.ref(!1);e.watch(()=>o.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,i("update:modelValue",w)},{deep:!0});const f=e.useAttrs(),C=e.computed(()=>{const{list:w,inline:P,modelValue:A,..._}=f;return _}),u=e.computed(()=>{const{list:w,inline:P,modelValue:A,error:_,"error-messages":k,rules:h,hint:b,"persistent-hint":B,...z}=f;return z}),p=e.computed(()=>r.value&&r.value.length>0?r.value:null),l=e.ref([]),c=()=>{o.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/${o.list}`);l.value=w.data||[]}catch(w){console.error("[VtkCheckbox] Failed to load dictionary:",w),l.value=[]}};return e.onMounted(()=>{o.list.includes(":")?c():m()}),(w,P)=>{const A=e.resolveComponent("VCheckbox"),_=e.resolveComponent("VInput");return e.openBlock(),e.createBlock(_,e.mergeProps(C.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},u.value,{class:t.inline?"mr-4":""}),null,16,["label","value","modelValue","class"]))),128))],2)]),_:1},16,["model-value"])}}}),[["__scopeId","data-v-d5ff7884"]]),pt={key:0,class:"prefix"},ft={class:"digits-container"},gt={key:0,class:"digit-scroll"},Vt={key:1,class:"separator"},ut={key:1,class:"suffix"},be=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:a,emit:o}){const i=t,r=o,d=e.ref(i.start),n=e.ref([]),f=e.ref(0),C=e.ref(!1),u=k=>{let h=k.toFixed(i.decimals);return i.separator&&i.decimals===0&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,",")),h},p=e.computed(()=>u(i.end)),l=e.computed(()=>u(i.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 B=k[b];return isNaN(B)?"0":B}return"0"})},P=(k,h)=>{if(isNaN(k)||isNaN(h))return{transform:"translateY(0)"};const b=parseInt(k)||0,z=h-b;let $;return z>5?$=-(10-z)*100:z<-5?$=(10+z)*100:$=-z*100,{transform:`translateY(${$}%)`,transition:C.value?"transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none",color:i.color}},A=()=>{if(C.value)return;C.value=!0;const k=performance.now(),h=i.start,b=i.end,B=b-h;w();const z=$=>{const y=$-k,D=Math.min(y/i.duration,1),U=1-Math.pow(1-D,4);d.value=h+B*U,_(d.value),D<1?requestAnimationFrame(z):(d.value=b,_(b),C.value=!1,r("complete"))};requestAnimationFrame(z)},_=k=>{const h=u(k),b=c.value;for(let B=0;B<b.length;B++)B<h.length?n.value[B]=h[B]:n.value[B]=isNaN(b[B])?b[B]:"0"};return e.watch(()=>i.end,(k,h)=>{if(k!==h){const b=u(k),B=u(h);b.length!==B.length?(f.value+=1,e.nextTick(()=>{A()})):A()}}),e.onMounted(()=>{if(i.autoplay){const k=l.value,h=p.value;k.length!==h.length&&(f.value+=1),e.nextTick(()=>{A()})}}),a({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",pt,e.toDisplayString(t.prefix),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(b,B)=>(e.openBlock(),e.createElementBlock("div",{key:`digit-${B}-${f.value}`,class:e.normalizeClass(["digit-wrapper",{"digit-separator":isNaN(b)}])},[isNaN(b)?(e.openBlock(),e.createElementBlock("div",Vt,e.toDisplayString(b),1)):(e.openBlock(),e.createElementBlock("div",gt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,z=>e.createElementVNode("div",{key:z,class:"digit-item",style:e.normalizeStyle(P(m(B),z-1))},e.toDisplayString(z-1),5)),64))]))],2))),128))]),t.suffix?(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(t.suffix),1)):e.createCommentVNode("",!0)],4)],2))}}),[["__scopeId","data-v-678ebca6"]]),kt={class:"vtk-date-range-picker"},ht={class:"date-picker-container"},Se=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:a}){const o=t,i=a,r=e.useAttrs(),d=e.ref(!1),n=e.ref([]),f=e.ref(null),C=e.ref(null),u=e.computed(()=>!n.value||n.value.length===0?"":n.value.length===1?l(n.value[0]):`${l(n.value[0])}${o.separator}${l(n.value[1])}`),p=e.computed(()=>{const{modelValue:h,placeholder:b,disabled:B,min:z,max:$,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(),B=String(h.getMonth()+1).padStart(2,"0"),z=String(h.getDate()).padStart(2,"0");return`${b}-${B}-${z}`}return h},c=e.computed(()=>o.min),m=e.computed(()=>o.max);e.watch(()=>o.modelValue,h=>{if(Array.isArray(h)&&h.length>0)n.value=[...h],h[0]&&(f.value=h[0]),h[1]&&(C.value=h[1]);else if(typeof h=="string"&&h){const b=h.split(o.separator);b.length===2?(n.value=[b[0].trim(),b[1].trim()],f.value=b[0].trim(),C.value=b[1].trim()):(n.value=[],f.value=null,C.value=null)}else n.value=[],f.value=null,C.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,C.value=null,i("update:modelValue",[]),i("change",[]),d.value=!1},_=()=>{Array.isArray(o.modelValue)?(n.value=[...o.modelValue],o.modelValue[0]&&(f.value=o.modelValue[0]),o.modelValue[1]&&(C.value=o.modelValue[1])):(n.value=[],f.value=null,C.value=null),d.value=!1},k=()=>{let h=[...n.value].filter(b=>b!==null);if(h.length===2){const b=new Date(h[0]),B=new Date(h[1]);b>B&&(h=[h[1],h[0]])}else h.length===1&&(h=[h[0],h[0]]);i("update:modelValue",h),i("change",h),d.value=!1};return(h,b)=>{const B=e.resolveComponent("VIcon"),z=e.resolveComponent("VTextField"),$=e.resolveComponent("VDatePicker"),y=e.resolveComponent("VCardText"),D=e.resolveComponent("VDivider"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("VBtn"),F=e.resolveComponent("VCardActions"),K=e.resolveComponent("VCard"),Y=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",kt,[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:u.value,"onUpdate:modelValue":b[0]||(b[0]=S=>u.value=S),placeholder:t.placeholder,disabled:t.disabled,readonly:"",clearable:"",density:"compact",variant:"outlined","onClick:clear":A}),{"prepend-inner":e.withCtx(()=>[e.createVNode(B,{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",ht,[e.createVNode($,{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($,{modelValue:C.value,"onUpdate:modelValue":[b[2]||(b[2]=q=>C.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(F,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"]]),yt={class:"vtk-date-selector"},Ct=["value","placeholder","disabled"],xt={key:0,class:"picker-header"},_t={class:"header-title"},Nt={key:1,class:"picker-body"},wt={class:"year-grid"},bt=["onClick"],St={key:2,class:"picker-body"},$t={key:0,class:"dual-calendar"},Bt={class:"calendar-panel"},Et={class:"calendar-header"},Dt={class:"month-title"},Tt={class:"month-grid"},At=["onClick"],Mt={class:"calendar-panel"},Pt={class:"calendar-header"},zt={class:"month-title"},It={class:"month-grid"},Ft=["onClick"],jt={key:1},Ut={class:"month-grid"},Lt=["onClick"],Ot={key:3,class:"picker-body"},Rt={class:"week-header"},Yt={class:"week-grid"},qt=["onClick"],Wt={class:"week-number"},Kt={key:4,class:"picker-body"},Jt={key:0,class:"dual-calendar"},Ht={class:"calendar-panel"},Qt={class:"calendar-header"},Gt={class:"month-title"},Xt={class:"week-header"},Zt={class:"day-grid"},vt=["onClick"],ea={class:"calendar-panel"},ta={class:"calendar-header"},aa={class:"month-title"},oa={class:"week-header"},la={class:"day-grid"},na=["onClick"],ra={key:1},sa={class:"week-header"},ia={class:"day-grid"},ca=["onClick"],da={key:5,class:"range-display"},ma={class:"range-text"},pa={key:1,class:"placeholder-text"},$e=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:" 至 "}},emits:["update:modelValue","change"],setup(t,{emit:a}){const o=t,i=a,r=e.ref(!1),d=e.ref(o.displayMode),n=e.ref(new Date().getFullYear()),f=e.ref(new Date().getMonth()),C=e.ref(new Date().getFullYear()),u=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?o.mode==="range"&&Array.isArray(p.value)?p.value.length===2?`${P(p.value[0])}${o.separator}${P(p.value[1])}`:"":P(p.value):""),P=N=>{if(!N)return"";if(o.displayMode==="year")return`${N}年`;if(o.displayMode==="month"){const[g,V]=N.split("-");return`${g}年${V}月`}else if(o.displayMode==="week"){const[g,V]=N.split("-W");return`${g}年第${V}周`}return N},A=e.computed(()=>{const N=Math.floor(n.value/12)*12;return Array.from({length:12},(g,V)=>N+V)}),_=e.computed(()=>{const N=[],g=new Date(n.value,f.value,1),V=new Date(n.value,f.value+1,0);let E=new Date(g);E.setDate(E.getDate()-E.getDay());let v=y(E);for(;E<=V||E.getDay()!==0;){const H={weekNumber:v,startDate:new Date(E),days:[]};for(let de=0;de<7;de++){const ue={date:z(E),day:E.getDate(),month:E.getMonth(),year:E.getFullYear(),otherMonth:E.getMonth()!==f.value,isToday:$(E)};H.days.push(ue),E.setDate(E.getDate()+1)}if(N.push(H),v++,E>V&&E.getDay()===0)break}return N}),k=e.computed(()=>{const N=[],g=new Date(n.value,f.value,1),V=new Date(n.value,f.value+1,0),E=new Date(g);E.setDate(E.getDate()-E.getDay());const v=new Date(V);v.setDate(v.getDate()+(6-v.getDay()));let H=new Date(E);for(;H<=v;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==f.value,isToday:$(H)}),H.setDate(H.getDate()+1);return N}),h=e.computed(()=>C.value),b=e.computed(()=>u.value),B=e.computed(()=>{const N=[],g=new Date(h.value,b.value,1),V=new Date(h.value,b.value+1,0),E=new Date(g);E.setDate(E.getDate()-E.getDay());const v=new Date(V);v.setDate(v.getDate()+(6-v.getDay()));let H=new Date(E);for(;H<=v;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==b.value,isToday:$(H)}),H.setDate(H.getDate()+1);return N}),z=N=>{const g=N.getFullYear(),V=String(N.getMonth()+1).padStart(2,"0"),E=String(N.getDate()).padStart(2,"0");return`${g}-${V}-${E}`},$=N=>{const g=new Date;return N.getDate()===g.getDate()&&N.getMonth()===g.getMonth()&&N.getFullYear()===g.getFullYear()},y=N=>{const g=new Date(Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())),V=g.getUTCDay()||7;g.setUTCDate(g.getUTCDate()+4-V);const E=new Date(Date.UTC(g.getUTCFullYear(),0,1));return Math.ceil(((g-E)/864e5+1)/7)},D=N=>l.value?o.mode==="single"?l.value===N.toString():Array.isArray(l.value)&&l.value.length>0?l.value.some(g=>g&&g.startsWith(N.toString())):!1:!1,U=N=>{if(o.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const[g,V]=l.value.map(E=>parseInt(E));return N>g&&N<V},O=N=>{if(!l.value)return!1;const g=`${n.value}-${String(N+1).padStart(2,"0")}`;return o.mode==="single"?l.value===g:Array.isArray(l.value)?l.value.includes(g):!1},F=N=>{if(o.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${n.value}-${String(N+1).padStart(2,"0")}`;return g>l.value[0]&&g<l.value[1]},K=N=>{if(!l.value)return!1;const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return o.mode==="single"?l.value===g:Array.isArray(l.value)?l.value.includes(g):!1},Y=N=>{if(o.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return g>l.value[0]&&g<l.value[1]},q=N=>l.value?o.mode==="single"?l.value===N.date:Array.isArray(l.value)?l.value.includes(N.date):!1:!1,S=N=>o.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2?!1:N.date>l.value[0]&&N.date<l.value[1],x=N=>o.mode!=="range"||!Array.isArray(l.value)||l.value.length===0?!1:N.date===l.value[0],I=N=>o.mode!=="range"||!Array.isArray(l.value)||l.value.length<2?!1:N.date===l.value[1],R=N=>{const g=N.toString();if(o.mode==="single")l.value=g,o.displayMode==="year"&&Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},L=N=>{const g=`${n.value}-${String(N+1).padStart(2,"0")}`;if(o.mode==="single")l.value=g,o.displayMode==="month"&&Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},J=N=>{const g=`${C.value}-${String(N+1).padStart(2,"0")}`;if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},te=N=>{if(!l.value)return!1;const g=`${C.value}-${String(N+1).padStart(2,"0")}`;return Array.isArray(l.value)?l.value.includes(g):!1},ne=N=>{if(o.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${C.value}-${String(N+1).padStart(2,"0")}`;return g>l.value[0]&&g<l.value[1]},re=N=>{const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;if(o.mode==="single")l.value=g,Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},le=N=>{if(o.mode==="single")l.value=N.date;else if(!l.value||!Array.isArray(l.value))l.value=[N.date];else if(l.value.length===1){const[g]=l.value;l.value=g<=N.date?[g,N.date]:[N.date,g]}else l.value=[N.date]},se=()=>{d.value==="year"?n.value-=12:d.value==="month"?n.value-=1:f.value===0?(f.value=11,n.value-=1):f.value-=1},ie=()=>{d.value==="year"?n.value+=12:d.value==="month"?n.value+=1:f.value===11?(f.value=0,n.value+=1):f.value+=1},me=()=>{f.value===0?(f.value=11,n.value-=1):f.value-=1},pe=()=>{u.value===11?(u.value=0,C.value+=1):u.value+=1},fe=()=>{n.value-=1},ge=()=>{C.value+=1},ce=N=>{o.displayMode==="year"&&N!=="year"||o.displayMode==="month"&&!["year","month"].includes(N)||(d.value=N)},Ve=()=>{o.disabled||(r.value=!r.value,r.value&&(l.value=p.value?Array.isArray(p.value)?[...p.value]:p.value:o.mode==="range"?[]:null,d.value=o.displayMode,o.displayMode==="month"?C.value=n.value+1:f.value===11?(C.value=n.value+1,u.value=0):(C.value=n.value,u.value=f.value+1)))},M=()=>{r.value=!1},s=()=>{p.value=o.mode==="range"?[]:null,i("update:modelValue",p.value),i("change",p.value)},Z=()=>{p.value=l.value,i("update:modelValue",p.value),i("change",p.value),M()};return e.watch(()=>o.modelValue,N=>{p.value=N},{immediate:!0}),(N,g)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"date-input",onClick:Ve},[e.createElementVNode("input",{type:"text",value:w.value,placeholder:t.placeholder,disabled:t.disabled,readonly:"",class:"date-input-field"},null,8,Ct),g[3]||(g[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(s,["stop"])},"✕")):e.createCommentVNode("",!0)]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-picker-mask",onClick:M})):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"date-picker-dropdown",onClick:g[2]||(g[2]=e.withModifiers(()=>{},["stop"]))},[t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("button",{class:"nav-btn",onClick:se},"‹"),e.createElementVNode("div",_t,[e.createElementVNode("span",{onClick:g[0]||(g[0]=V=>ce("year")),class:"clickable"},e.toDisplayString(n.value)+"年",1),t.displayMode!=="year"?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:g[1]||(g[1]=V=>ce("month")),class:"clickable"},e.toDisplayString(f.value+1)+"月",1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"nav-btn",onClick:ie},"›")])),d.value==="year"?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("div",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V,class:e.normalizeClass(["year-item",{selected:D(V),"in-range":U(V)}]),onClick:E=>R(V)},e.toDisplayString(V),11,bt))),128))])])):d.value==="month"?(e.openBlock(),e.createElementBlock("div",St,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Bt,[e.createElementVNode("div",Et,[e.createElementVNode("button",{class:"nav-btn-small",onClick:fe},"‹"),e.createElementVNode("span",Dt,e.toDisplayString(n.value)+"年",1),g[4]||(g[4]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"›",-1))]),e.createElementVNode("div",Tt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":F(E)}]),onClick:v=>L(E)},e.toDisplayString(V),11,At)),64))])]),g[6]||(g[6]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",Mt,[e.createElementVNode("div",Pt,[g[5]||(g[5]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"‹",-1)),e.createElementVNode("span",zt,e.toDisplayString(C.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ge},"›")]),e.createElementVNode("div",It,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:te(E),"in-range":ne(E)}]),onClick:v=>J(E)},e.toDisplayString(V),11,Ft)),64))])])])):(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("div",Ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":F(E)}]),onClick:v=>L(E)},e.toDisplayString(V),11,Lt)),64))])]))])):d.value==="week"?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",Rt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.weekNumber,class:e.normalizeClass(["week-row",{selected:K(V),"in-range":Y(V)}]),onClick:E=>re(V)},[e.createElementVNode("div",Wt,"W"+e.toDisplayString(V.weekNumber),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.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,qt))),128))])])):(e.openBlock(),e.createElementBlock("div",Kt,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Ht,[e.createElementVNode("div",Qt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:me},"‹"),e.createElementVNode("span",Gt,e.toDisplayString(n.value)+"年"+e.toDisplayString(f.value+1)+"月",1),g[7]||(g[7]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"›",-1))]),e.createElementVNode("div",Xt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,vt))),128))])]),g[9]||(g[9]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[g[8]||(g[8]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"‹",-1)),e.createElementVNode("span",aa,e.toDisplayString(h.value)+"年"+e.toDisplayString(b.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:pe},"›")]),e.createElementVNode("div",oa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",la,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,na))),128))])])])):(e.openBlock(),e.createElementBlock("div",ra,[e.createElementVNode("div",sa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",ia,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,ca))),128))])]))])),t.mode==="range"&&t.displayMode==="day"?(e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("span",ma,[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]||"开始日期")+" ",1),g[10]||(g[10]=e.createElementVNode("span",{class:"range-separator"}," - ",-1)),e.createTextVNode(" "+e.toDisplayString(l.value[1]||"结束日期"),1)],64)):(e.openBlock(),e.createElementBlock("span",pa,"请选择日期范围"))])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"picker-footer"},[e.createElementVNode("button",{class:"btn btn-text",onClick:M},"取消"),e.createElementVNode("button",{class:"btn btn-primary",onClick:Z},"确定")])])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f8a05094"]]),fa=["title"],ga=["title"],Va={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},ua=["title"],ka={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},ha={class:"mx-auto"},ya={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Be=Q({__name:"VtkDept",props:{multiple:{type:Boolean,default:!1}},emits:["selected"],setup(t,{expose:a,emit:o}){var Y,q;const{proxy:i}=e.getCurrentInstance(),r=((q=(Y=window.VTK_CONFIG)==null?void 0:Y.storageKeys)==null?void 0:q.user)||"_mis_acis_users",d=JSON.parse(i.$vtk.storage.get(r)),n=S=>new Promise(x=>setTimeout(x,S)),f=t,C=o,u=e.ref(!1),p=e.ref([]),l=e.ref([]),c=e.ref([]);e.watch(c,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.areaCode)&&k(S)},{deep:!0}),e.watch(l,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.areaCode)&&k(S)},{deep:!0});const m=()=>{d&&d.areacode&&i.$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;i.$vtk.request.getForm(`/dict/area/next/${x}`).then(I=>{I&&I.data&&I.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 I;S&&S.length>0&&((I=S[0])!=null&&I.id)&&U(S)},{deep:!0}),e.watch(_,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.id)&&U(S)},{deep:!0});const k=S=>{const I={codex:{area:S[0].areaCode,type:"0"}};P.value=[],i.$vtk.request.postJson("/bizp/supported/dept/list",I).then(R=>{R.data.forEach(L=>{L.children=[],P.value.push(L)})})},h=async S=>{await n(300);const x=S.areaCode,I=S.id,R={codex:{area:x,pid:I}};i.$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([]),B=e.ref([]),z=e.ref([]),$=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(B,(S,x)=>{if(!$.value){if(!f.multiple){S&&S.length>0?z.value=[S[0]]:z.value=[];return}S&&S.length>0&&S.forEach(I=>{z.value.some(L=>L.id===I.id)||z.value.push(I)}),x&&x.length>0&&x.forEach(I=>{if(!(S==null?void 0:S.some(L=>L.id===I.id))){const L=z.value.findIndex(J=>J.id===I.id);L>-1&&z.value.splice(L,1)}})}},{deep:!0}),e.watch(b,async S=>{if(!S||S.length===0){$.value=!0,B.value=[],await e.nextTick(),$.value=!1;return}await e.nextTick(),$.value=!0;const x=[];S.forEach(I=>{z.value.some(L=>L.id===I.id)&&x.push(I)}),B.value=x,await e.nextTick(),$.value=!1},{deep:!0});const D=S=>{const x=z.value.findIndex(R=>R.id===S);x>-1&&z.value.splice(x,1);const I=B.value.findIndex(R=>R.id===S);I>-1&&B.value.splice(I,1)},U=S=>{const I={codex:{dept:S[0].id}};i.$vtk.request.postJson("/bizp/supported/user/list",I).then(R=>{R&&R.meta.success&&R.data.length>0?b.value=R.data:b.value=null})},O=()=>{u.value=!0},F=()=>{$.value=!0,u.value=!1,B.value=[],z.value=[],l.value=[],c.value=[],A.value=[],_.value=[],b.value=[],P.value=[],e.nextTick(()=>{$.value=!1})},K=()=>{const S=y.value;C("selected",S),F()};return e.onMounted(()=>{m()}),a({close:F,add:O}),(S,x)=>{const I=e.resolveComponent("v-spacer"),R=e.resolveComponent("v-icon"),L=e.resolveComponent("v-btn"),J=e.resolveComponent("v-card-title"),te=e.resolveComponent("v-divider"),ne=e.resolveComponent("v-treeview"),re=e.resolveComponent("v-sheet"),le=e.resolveComponent("v-col"),se=e.resolveComponent("v-img"),ie=e.resolveComponent("v-avatar"),me=e.resolveComponent("v-list-item"),pe=e.resolveComponent("v-list"),fe=e.resolveComponent("v-row"),ge=e.resolveComponent("v-card-text"),ce=e.resolveComponent("v-card-actions"),Ve=e.resolveComponent("v-card"),M=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(M,{modelValue:u.value,"onUpdate:modelValue":x[5]||(x[5]=s=>u.value=s),persistent:"",width:"1000"},{default:e.withCtx(()=>[e.createVNode(Ve,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(I),e.createVNode(L,{class:"g-no-shadow",icon:"",onClick:F,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(te),e.createVNode(ge,{class:"pb-0 mb-0 pl-0 pr-0",style:{height:"600px"}},{default:e.withCtx(()=>[e.createVNode(fe,{style:{"margin-top":"-16px",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(le,{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(re,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[e.createVNode(ne,{"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]=s=>l.value=s),activated:c.value,"onUpdate:activated":x[1]||(x[1]=s=>c.value=s),"load-children":w},{title:e.withCtx(({item:s})=>[e.createElementVNode("span",{title:s.areaName},e.toDisplayString(s.areaName),9,fa)]),_:1},8,["items","selected","activated"])]),_:1})]),_:1}),e.createVNode(le,{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(re,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[P.value&&P.value.length>0?(e.openBlock(),e.createBlock(ne,{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]=s=>A.value=s),activated:_.value,"onUpdate:activated":x[3]||(x[3]=s=>_.value=s),"load-children":h},{title:e.withCtx(({item:s})=>[e.createElementVNode("span",{title:s.name},e.toDisplayString(s.name),9,ga)]),_:1},8,["items","selected","activated"])):(e.openBlock(),e.createElementBlock("div",Va,[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(le,{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(re,{height:"550",style:{overflow:"auto"},class:"mt-2"},{default:e.withCtx(()=>[b.value&&b.value.length>0?(e.openBlock(),e.createBlock(ne,{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:B.value,"onUpdate:selected":x[4]||(x[4]=s=>B.value=s)},{title:e.withCtx(({item:s})=>[e.createElementVNode("div",{class:"d-flex align-center",title:s.username},[e.createVNode(ie,{size:"24",class:"mr-2"},{default:e.withCtx(()=>[s.avatar?(e.openBlock(),e.createBlock(se,{key:0,src:s.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(s.username),1)],8,ua)]),_:1},8,["items","select-strategy","selected"])):(e.openBlock(),e.createElementBlock("div",ka,[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(le,{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",ha,"已选中人员 ("+e.toDisplayString(y.value.length)+")",1)]),_:1}),e.createVNode(re,{height:"550",style:{overflow:"auto"},class:"mt-2 px-2"},{default:e.withCtx(()=>[y.value.length>0?(e.openBlock(),e.createBlock(pe,{key:0,density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,s=>(e.openBlock(),e.createBlock(me,{key:s.id,title:s.username,class:"px-2 mb-1 mr-2",rounded:"lg",color:"primary",variant:"tonal"},{prepend:e.withCtx(()=>[e.createVNode(ie,{size:"32"},{default:e.withCtx(()=>[s.avatar?(e.openBlock(),e.createBlock(se,{key:0,src:s.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:Z=>D(s.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",ya,[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(te),e.createVNode(ce,null,{default:e.withCtx(()=>[e.createVNode(I),e.createVNode(L,{color:"darken-1",text:"",onClick:F},{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"]]),Ee=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(a,o)=>{const i=e.resolveComponent("v-empty-state");return e.openBlock(),e.createBlock(i,{headline:t.headline,title:t.title,text:t.text,image:t.image,icon:t.icon,rounded:t.rounded,elevation:t.elevation},e.createSlots({_:2},[a.$slots.media?{name:"media",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"media",{},void 0,!0)]),key:"0"}:void 0,a.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"title",{},void 0,!0)]),key:"1"}:void 0,a.$slots.text?{name:"text",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"text",{},void 0,!0)]),key:"2"}:void 0,a.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"actions",{},void 0,!0)]),key:"3"}:void 0,a.$slots.bottom?{name:"bottom",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"bottom",{},void 0,!0)]),key:"4"}:void 0]),1032,["headline","title","text","image","icon","rounded","elevation"])}}}),[["__scopeId","data-v-288c63a3"]]),De=Q(Object.assign({name:"VtkFab",inheritAttrs:!1},{__name:"VtkFab",setup(t){const a=e.ref(!1),o=e.ref("scroll-to-top-fab"),i=()=>{a.value=window.scrollY>100},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.onMounted(()=>{window.addEventListener("scroll",i)}),e.onBeforeUnmount(()=>{window.removeEventListener("scroll",i)}),(d,n)=>{const f=e.resolveComponent("v-fab");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createBlock(f,{key:0,class:e.normalizeClass(o.value),color:"primary",icon:"mdi-arrow-up",onClick:r},null,8,["class"])):e.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-e07d12b9"]]),Ca={key:0,class:"pb-2 text-left"},xa={key:0,class:"text-red mr-1"},_a={key:0,class:"text-red"},Na={key:3,class:"d-inline-block vtk-width-7",style:{"min-width":"350px"}},wa={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"},Sa=["innerHTML"],Te=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 a=t,o=e.computed(()=>typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth),i=e.computed(()=>{const r={};return a.top&&a.maxWidth&&(r.maxWidth=o.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",Ca,[t.must?(e.openBlock(),e.createElementBlock("span",xa,"*")):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",_a,"*")):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(i.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0),t.top?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Na,[e.renderSlot(r.$slots,"default",{},void 0,!0)])),t.left&&t.help&&!t.top?(e.openBlock(),e.createElementBlock("div",wa,[e.createElementVNode("p",ba,e.toDisplayString(t.label),1),e.createElementVNode("span",{innerHTML:t.help},null,8,Sa)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-05be0b6b"]]),$a={class:"vtk-img-container"},Ba={class:"d-flex align-center justify-center fill-height"},Ea={key:0,class:"vtk-img-info"},Da={class:"image-viewer-content"},Ta={class:"image-container"},Aa={class:"image-info"},Ma={class:"text-center"},Pa={class:"text-center text--secondary"},za=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:Ce&&Ce.tagName.toUpperCase()==="SCRIPT"&&Ce.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:a.error}));const a=t,o=e.ref(!1),i=e.ref(0),r=e.ref(0),d=e.computed(()=>{var A;if(!a.src)return a.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 _?`${a.src}?stoken=${_}`:a.src}else{const _=localStorage.getItem("_mis_acis_token");return _?`${a.src}?stoken=${_}`:a.src}}catch(_){return console.warn("VtkImg: Failed to get token, using src without token",_),a.src}}),n=e.computed(()=>{var A;if(a.imageList.length>0&&r.value<a.imageList.length){const _=a.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(a.imageList.length>0&&r.value<a.imageList.length){const A=a.imageList[r.value];return(A==null?void 0:A.title)||""}return a.title}),C=e.computed(()=>{if(a.imageList.length>0&&r.value<a.imageList.length){const A=a.imageList[r.value];return(A==null?void 0:A.description)||""}return a.description}),u=e.computed(()=>a.imageList.length>1&&r.value>0),p=e.computed(()=>a.imageList.length>1&&r.value<a.imageList.length-1);e.watch(o,A=>{A&&(i.value=0,r.value=a.index)});const l=()=>{a.preview&&(o.value=!0)},c=()=>{o.value=!1},m=()=>{u.value&&(r.value--,i.value=0)},w=()=>{p.value&&(r.value++,i.value=0)},P=A=>{i.value+=A};return(A,_)=>{const k=e.resolveComponent("v-progress-circular"),h=e.resolveComponent("v-img"),b=e.resolveComponent("VCardTitle"),B=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VIcon"),y=e.resolveComponent("VBtn"),D=e.resolveComponent("v-toolbar-title"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("v-toolbar-items"),F=e.resolveComponent("v-toolbar"),K=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",$a,[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",Ba,[e.createVNode(k,{indeterminate:"",color:"grey-lighten-1"})])]),_:1},16,["src","aspect-ratio"]),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ea,[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(B,{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:o.value,"onUpdate:modelValue":_[2]||(_[2]=Y=>o.value=Y),"max-width":"90%",fullscreen:"","onClick:outside":c},{default:e.withCtx(()=>[e.createVNode(z,{class:"image-viewer-card"},{default:e.withCtx(()=>[e.createVNode(F,{dark:"",color:"primary"},{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:c},{default:e.withCtx(()=>[e.createVNode($,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($,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($,null,{default:e.withCtx(()=>[..._[5]||(_[5]=[e.createTextVNode("mdi-rotate-right",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Da,[u.value?(e.openBlock(),e.createBlock(y,{key:0,icon:"",class:"nav-button prev-button",onClick:m},{default:e.withCtx(()=>[e.createVNode($,null,{default:e.withCtx(()=>[..._[6]||(_[6]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Ta,[e.createVNode(h,{src:n.value,class:"viewer-image",style:e.normalizeStyle({transform:`rotate(${i.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($,null,{default:e.withCtx(()=>[..._[7]||(_[7]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Aa,[e.createElementVNode("p",Ma,e.toDisplayString(C.value),1),e.createElementVNode("p",Pa,e.toDisplayString(r.value+1)+" / "+e.toDisplayString(t.imageList.length),1)])]),_:1})]),_:1},8,["modelValue"])])}}}),Ae=Q(za,[["__scopeId","data-v-f2469415"]]),Ia={class:"m_pagination"},Fa={class:"page-total d-none d-md-flex align-center"},ja={class:"my-2"},Me=Q({__name:"VtkPage",props:{pageData:{type:Object,default:()=>({})},pageSizes:{type:Array,default:()=>[10,20,30]}},emits:["pageChange"],setup(t,{emit:a}){const o=t,i=a,r=e.reactive({pageno:1,limit:10}),d=e.ref([]),n=e.ref({...o.pageData}),f=e.computed(()=>n.value.pageno);e.watch(f,()=>{r.pageno=n.value.pageno}),e.watch(()=>o.pageData,c=>{n.value={...c},c.rowCount<1&&c.rows>0&&(n.value.pageno=c.pageno-1,l())},{deep:!0}),e.onMounted(()=>{p()});const C=()=>{/^[0-9]+$/.test(r.pageno)&&r.pageno<=n.value.pageCount?(n.value.pageno=parseInt(r.pageno),l()):r.pageno=n.value.pageno},u=()=>{n.value.pageCount=1,l()},p=()=>{const c=o.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};i("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",Ia,[n.value.rowCount>0?(e.openBlock(),e.createBlock(_,{key:0,class:"pagination box",align:"center"},{default:e.withCtx(()=>[e.createElementVNode("span",Fa,"共"+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=>u())],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",ja,[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=>C(),["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"]]),Ua={class:"vtk-pdf-container"},La={key:0,class:"vtk-pdf-info"},Oa={class:"pdf-viewer-content"},Ra={key:0,class:"pdf-viewer-footer"},Ya={class:"mx-4"},qa={key:1,class:"pdf-loading"},Wa=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 a=t,o=e.ref(!1),i=e.ref(!1),r=e.ref(!1),d=e.ref(1),n=e.ref(0),f=e.ref(null);let C=null;const u=e.computed(()=>{var _;if(!a.src)return a.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?`${a.src}?stoken=${k}`:a.src}else{const k=localStorage.getItem("_mis_acis_token");return k?`${a.src}?stoken=${k}`:a.src}}catch(k){return console.warn("VtkPdf: Failed to get token, using src without token",k),a.src}}),p=()=>{a.preview&&(o.value=!0,setTimeout(()=>{c()},300))},l=()=>{o.value=!1,C=null,r.value=!1,d.value=1,n.value=0},c=async()=>{if(u.value){i.value=!0;try{await new Promise(_=>setTimeout(_,1e3)),n.value=10,r.value=!0}catch(_){console.error("加载PDF失败:",_)}finally{i.value=!1}}},m=async _=>{!C||f.value},w=()=>{d.value>1&&(d.value--,m(d.value))},P=()=>{d.value<n.value&&(d.value++,m(d.value))},A=async()=>{if(u.value)try{const _=await fetch(u.value);if(!_.ok)throw new Error(`HTTP error! status: ${_.status}`);const k=await _.blob(),h=a.title&&a.title.trim()!==""?`${a.title}.pdf`:"document.pdf",b=window.URL.createObjectURL(k),B=document.createElement("a");B.href=b,B.download=h,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(b)}catch(_){console.error("下载PDF失败:",_),window.open(u.value,"_blank")}};return e.onBeforeUnmount(()=>{C=null}),(_,k)=>{const h=e.resolveComponent("VIcon"),b=e.resolveComponent("VCardTitle"),B=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VBtn"),y=e.resolveComponent("v-toolbar-title"),D=e.resolveComponent("VSpacer"),U=e.resolveComponent("v-toolbar-items"),O=e.resolveComponent("v-toolbar"),F=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",Ua,[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",La,[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(B,{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:o.value,"onUpdate:modelValue":k[1]||(k[1]=x=>o.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($,{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($,{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",Oa,[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",Ra,[e.createVNode(Y,{align:"center",justify:"center"},{default:e.withCtx(()=>[e.createVNode(F,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode($,{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",Ya,[e.createElementVNode("span",null,"第 "+e.toDisplayString(d.value)+" 页 / 共 "+e.toDisplayString(n.value)+" 页",1)]),e.createVNode($,{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(F,{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),i.value?(e.openBlock(),e.createElementBlock("div",qa,[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"])])}}}),Pe=Q(Wa,[["__scopeId","data-v-84f65a65"]]);function qe(t={}){const a=e.reactive({}),o=e.ref([]),i=e.ref(!1),r=e.ref(""),d=e.reactive({pageno:1,limit:10}),n=e.ref({}),f=e.ref({}),C=e.ref([]),u=e.ref(!1),p=e.ref({}),l=e.reactive(t),c=()=>{var O;p.value=oe.get("_mis_acis_users"),a.areaCode||(a.areaCode=(O=p.value)==null?void 0:O.areacode);const D=Object.assign({},a);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();i.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(F=>{var K,Y,q;(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),(F.meta.success||F.data)&&(o.value=((q=F.data)==null?void 0:q.rows)||[],n.value=F.data,f.value=F.data.sumup?F.data.sumup:{},C.value=F.data),i.value=!1}).catch(F=>{var K,Y;console.error("加载页面数据失败:",F),i.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})};return{queryParam:a,desserts:o,loading:i,superQueryParams:r,page:d,pageData:n,sumup:f,pageDataCopy:C,overlay:u,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(F=>{F.meta.success?(G.toast("删除成功",{color:"success"}),m()):G.toast("删除失败",{color:"warning"})}).catch(F=>{console.error("删除失败:",F),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(F=>{F.meta.success?(G.toast("拷贝成功",{color:"success"}),m()):G.toast("拷贝失败",{color:"warning"})}).catch(F=>{console.error("拷贝失败:",F),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;u.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(F=>{var K,Y;if((Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),F){const q=F.headers["content-disposition"],S=decodeURI(q.substring(q.indexOf("filename=")+9,q.length)),x=new Blob([F.data],{type:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(x);else{const I=document.createElement("a");I.style.display="none",I.href=URL.createObjectURL(x),I.download=S,document.body.appendChild(I),I.click(),document.body.removeChild(I)}}u.value=!1}).catch(F=>{var K,Y;console.error("导出数据失败:",F),u.value=!1,(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide()})},resetQueryParams:()=>{Object.keys(a).forEach(D=>{delete a[D]})},resetPage:()=>{d.pageno=1,d.limit=10},updateUrlConfig:D=>{Object.assign(l,D)}}}const Ka={key:0},Ja={key:0,class:"mb-0 expBox"},Ha={key:1,class:"text-red text-body-2 mb-2"},Qa={key:1},Ga={key:0,style:{width:"400px"}},Xa=["onClick"],Za={class:"vtk-cursor-pointer text-body-1 font-weight-bold mb-2"},va={class:"ml-3 text-grey"},eo={class:"mb-0 mt-2 text-grey"},to={class:"d-inline-block",style:{"min-width":"320px"}},ao={class:"text-blue"},oo=["title"],lo=["title"],no=["onClick"],ro={key:1,class:"state_btg text-right"},ze=Q(Object.assign({name:"VtkProj",inheritAttrs:!1},{__name:"VtkProj",setup(t){const a={list:"/kudas/xfwez/page",exp:"/kudas/xfwez/exp",delete:"/kudas/xfwez/delete"},{pageData:o,getListPage:i,loadPage:r,expData:d,desserts:n,loading:f,queryParam:C,url:u}=qe(a);Object.assign(C,{});const p=C,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),B=e.ref([]),z=e.ref([]),$=e.ref(!1),y=e.ref([]),D=e.ref(!1),U=e.ref({}),O=e.ref(""),F=e.ref(null);e.watch(B,M=>{M.length<y.value.length&&($.value=!1)},{deep:!0}),e.onActivated(()=>{alert("onActivated"),Y(),window.addEventListener("storage",M=>{var s;(s=JSON.parse(M==null?void 0:M.newValue))!=null&&s.fwez&&(c.value=="0"?x():r())})});const K=M=>{B.value=M?y.value:[]},Y=()=>{var M;_.value="",k.value=!1,l.value=q(),w.value=[],(M=l.value.permits)==null||M.forEach(s=>{s.permNkey.includes("biz_type")?(w.value.push(s),_.value=_.value+s.permNkey.slice(9)+","):s.permNkey=="btn_expo"&&(k.value=!0)}),p.bizType=_.value,S()},q=()=>{var M,s;try{return((s=(M=window.$vtk)==null?void 0:M.storage)==null?void 0:s.get("_mis_acis_users"))||{}}catch(Z){return console.warn("获取用户信息失败:",Z),{}}},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()},I=M=>{const s=M.servState==1?`#/mino/suse/view/${M.inst}?ddtab=true`:`#/mino/suse/exam/${M.inst}?ddtab=true`;window.open(s)},R=()=>{var M;(M=F.value)==null||M.add(p.projCode)},L=M=>{P.value=M.projName,p.projCode=M.projCode,delete p.bizType,J()},J=()=>{r()},te=()=>{P.value&&p.servState=="1"&&(B.value=[],z.value=[],W.postJson("/kudas/xfwez/exv",{codex:p}).then(M=>{M.meta.success?JSON.parse(M.data.formJson).forEach(s=>{["text","radio","number","time","checkbox","textarea","select"].includes(s.type)&&(s.value={name:s.name,valu:`${s.label}${s.valu&&s.valu.includes("/")&&s.valu.includes(":")?`(${s.valu})`:""}`},z.value.push(s),y.value.push(s.value))}):A.value=M.meta.message}))},ne=()=>{p.fields=B.value,d()},re=M=>{D.value=!0,U.value=M,O.value=""},le=()=>{O.value&&W.postForm(u.delete,{id:U.value.id,note:O.value}).then(M=>{M.meta.success&&(D.value=!1,r())})},se=()=>{},ie=M=>M?M.replace(/^(.{6})(?:\d+)(.{4})$/,"$1********$2"):"",me=M=>{if(!M)return"";const s=new Date(M);return`${s.getFullYear()}年${String(s.getMonth()+1).padStart(2,"0")}月${String(s.getDate()).padStart(2,"0")}日 ${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}:${String(s.getSeconds()).padStart(2,"0")}`},pe=M=>M=="0"?"bg-blue-lighten-5 text-blue":"bg-green-lighten-5 text-green",fe=M=>M=="0"?"服务中":"已服务",ge=M=>M=="0"?"bg-orange-lighten-5 text-orange":"bg-blue-lighten-5 text-blue",ce=M=>M=="0"?"未评价":"已评价",Ve=M=>({100:"特殊渠道",101:"移动端代办",102:"窗口端通办",200:"特殊渠道",210:"浙里办App",211:"浙里办微信小程序",212:"浙里办支付宝小程序",230:"微信小程序",240:"支付宝小程序",250:"自助机",300:"特殊渠道",310:"服务外包代办"})[M]||M;return(M,s)=>{const Z=e.resolveComponent("VIcon"),N=e.resolveComponent("VTab"),g=e.resolveComponent("VSpacer"),V=e.resolveComponent("VTabs"),E=e.resolveComponent("VBtn"),v=e.resolveComponent("VDivider"),H=e.resolveComponent("VCheckbox"),de=e.resolveComponent("VCardTitle"),ue=e.resolveComponent("VCard"),Oe=e.resolveComponent("VMenu"),Re=e.resolveComponent("VTextField"),wo=e.resolveComponent("vtk-area-tabs"),Ye=e.resolveComponent("vtk-select"),at=e.resolveComponent("VDatePicker"),bo=e.resolveComponent("vtk-search"),ye=e.resolveComponent("VChip"),ot=e.resolveComponent("VCol"),So=e.resolveComponent("VRow"),$o=e.resolveComponent("vtk-empty"),Bo=e.resolveComponent("VDataTable"),Eo=e.resolveComponent("vtk-page"),lt=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(V,{modelValue:c.value,"onUpdate:modelValue":s[1]||(s[1]=T=>c.value=T),"bg-color":"transparent",height:"38",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(N,{onClick:s[0]||(s[0]=T=>x())},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[22]||(s[22]=[e.createTextVNode("mdi-clipboard-arrow-up",-1)])]),_:1}),s[23]||(s[23]=e.createTextVNode("全部",-1))])]),_:1}),e.createVNode(N,{onClick:Y},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[24]||(s[24]=[e.createTextVNode("mdi-star-circle",-1)])]),_:1}),s[25]||(s[25]=e.createTextVNode("审核",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[26]||(s[26]=[e.createTextVNode("mdi-hand-heart",-1)])]),_:1}),s[27]||(s[27]=e.createTextVNode("实施",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[28]||(s[28]=[e.createTextVNode("mdi-comment-minus",-1)])]),_:1}),s[29]||(s[29]=e.createTextVNode("评价",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[30]||(s[30]=[e.createTextVNode("mdi-credit-card-check",-1)])]),_:1}),s[31]||(s[31]=e.createTextVNode("支付",-1))])]),_:1}),e.createVNode(g)]),_:1},8,["modelValue"]),e.createVNode(ue,{elevation:"0",style:{"min-height":"calc(100% - 38px)"}},{default:e.withCtx(()=>[e.createVNode(de,{style:{height:"88px"}},{default:e.withCtx(()=>[c.value=="0"&&(k.value||l.value.grole>=2)?(e.openBlock(),e.createBlock(Oe,{key:0,"offset-y":"","close-on-content-click":!1,location:"bottom"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({onClick:te},T,{class:"bg-orange text-white mr-3",elevation:"0"}),{default:e.withCtx(()=>[e.createVNode(Z,null,{default:e.withCtx(()=>[...s[32]||(s[32]=[e.createTextVNode("mdi-export-variant",-1)])]),_:1}),s[33]||(s[33]=e.createTextVNode(" 导出 ",-1))]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(ue,{class:"pa-3",width:"300"},{default:e.withCtx(()=>{var T;return[e.createElementVNode("div",null,[s[40]||(s[40]=e.createElementVNode("p",{class:"mb-2 font-weight-bold"},"公共字段",-1)),s[41]||(s[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(v),e.unref(p).servState=="1"&&P.value?(e.openBlock(),e.createElementBlock("div",Ka,[e.createVNode(de,{class:"pa-0 text-body-1 mb-2 pt-3"},{default:e.withCtx(()=>[e.createVNode(H,{"onUpdate:modelValue":[K,s[2]||(s[2]=ee=>$.value=ee)],modelValue:$.value,class:"mt-n1","hide-details":""},{append:e.withCtx(()=>[e.createVNode(Z,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...s[34]||(s[34]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue"]),s[35]||(s[35]=e.createElementVNode("span",{class:"font-weight-bold ml-n2"},"拓展字段",-1)),e.createVNode(g)]),_:1}),((T=z.value)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("p",Ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(ee,nt)=>(e.openBlock(),e.createBlock(H,{key:nt,modelValue:B.value,"onUpdate:modelValue":s[3]||(s[3]=zo=>B.value=zo),label:ee.label,value:{name:ee.name,valu:`${ee.label}${ee.valu&&ee.valu.includes("/")&&ee.valu.includes(":")?`(${ee.valu})`:""}`},class:"mt-2",multiple:"","hide-details":""},{append:e.withCtx(()=>[e.createVNode(Z,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...s[36]||(s[36]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue","label","value"]))),128))])):(e.openBlock(),e.createElementBlock("p",Ha,e.toDisplayString(A.value),1))])):(e.openBlock(),e.createElementBlock("div",Qa,[s[39]||(s[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(Z,{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"]),s[37]||(s[37]=e.createTextVNode(" 导出数据仅限已服务信息 ",-1))],2),e.createElementVNode("p",{class:e.normalizeClass(["mb-2 text-body-2",P.value?"text-green":"text-red"])},[e.createVNode(Z,{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"]),s[38]||(s[38]=e.createTextVNode(" 至少选择一个服务事项导出 ",-1))],2)]))]),e.createVNode(E,{onClick:ne,disabled:!(P.value&&e.unref(p).servState=="1"),elevation:"0",color:"primary",class:"vtk-width mt-3",size:"small"},{default:e.withCtx(()=>[...s[42]||(s[42]=[e.createTextVNode("确认导出",-1)])]),_:1},8,["disabled"])]}),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(g),e.createVNode(bo,{modelValue:e.unref(p),"onUpdate:modelValue":s[17]||(s[17]=T=>e.isRef(p)?p.value=T:null),onSearch:J,placeholder:"输入姓名/身份证查询",styles:"width:320px"},{default:e.withCtx(()=>[e.createVNode(Re,{onClick:R,modelValue:P.value,"onUpdate:modelValue":s[4]||(s[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(wo,{modelValue:e.unref(p).areaCode,"onUpdate:modelValue":s[5]||(s[5]=T=>e.unref(p).areaCode=T),styles:"width:100%"},null,8,["modelValue"]),c.value==0?(e.openBlock(),e.createElementBlock("div",Ga,[e.createVNode(Ye,{modelValue:e.unref(p).servState,"onUpdate:modelValue":s[6]||(s[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(Ye,{modelValue:e.unref(p).rateState,"onUpdate:modelValue":s[7]||(s[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(Oe,{modelValue:h.value,"onUpdate:modelValue":s[11]||(s[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(Re,e.mergeProps({modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":s[8]||(s[8]=ee=>e.unref(p).servFtime0=ee),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(at,{modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":[s[9]||(s[9]=T=>e.unref(p).servFtime0=T),s[10]||(s[10]=T=>h.value=!1)],title:"","view-mode":"month",max:e.unref(p).servFtime1},null,8,["modelValue","max"])]),_:1},8,["modelValue"]),s[43]||(s[43]=e.createElementVNode("span",{class:"mx-2"},"至",-1)),e.createVNode(Oe,{modelValue:b.value,"onUpdate:modelValue":s[15]||(s[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(Re,e.mergeProps({modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":s[12]||(s[12]=ee=>e.unref(p).servFtime1=ee),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(at,{modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":[s[13]||(s[13]=T=>e.unref(p).servFtime1=T),s[14]||(s[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(Ye,{key:0,onChange:J,modelValue:e.unref(p).state,"onUpdate:modelValue":s[16]||(s[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(lt,null,{default:e.withCtx(()=>[e.createVNode(Bo,{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:ee=>I(T)},[e.createElementVNode("p",Za,[e.createTextVNode(e.toDisplayString(T.objsName),1),e.createElementVNode("span",va,e.toDisplayString(ie(T.objsCode)),1),e.createVNode(ye,{class:e.normalizeClass(["ml-2",pe(T.servState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(fe(T.servState)),1)]),_:2},1032,["class"]),e.createVNode(ye,{class:e.normalizeClass(["ml-2",ge(T.rateState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ce(T.rateState)),1)]),_:2},1032,["class"])]),e.createElementVNode("span",null,[e.createVNode(ye,{class:"bg-orange-lighten-5 text-orange",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 事项编码:"+e.toDisplayString(T.projCode),1)]),_:2},1024),e.createVNode(ye,{class:"text-primary ml-2",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 办件编号:"+e.toDisplayString(T.inst),1)]),_:2},1024)]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,[s[44]||(s[44]=e.createTextVNode(" 服务名称:",-1)),e.createElementVNode("span",ao,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(ot,{style:{"max-width":"320px"}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请途径:"+e.toDisplayString(Ve(T.servFrom)),9,oo)]),_:2},1024),e.createVNode(ot,null,{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请时间:"+e.toDisplayString(me(T.servCtime)),9,lo)]),_:2},1024)]),_:2},1024)],8,Xa)]),"item.actions":e.withCtx(({item:T})=>{var ee;return[T.state!=0&&((ee=l.value.areacode)==null?void 0:ee.length)==6&&T.servState=="1"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:nt=>re(T),class:"text-error",text:""},"作废",8,no)):e.createCommentVNode("",!0),T.state==0?(e.openBlock(),e.createElementBlock("div",ro)):e.createCommentVNode("",!0)]}),"no-data":e.withCtx(()=>[e.createVNode($o)]),_:2},1032,["headers","items","loading"]),e.createVNode(Eo,{"page-sizes":[10,20],"page-data":e.unref(o),onPageChange:e.unref(i)},null,8,["page-data","onPageChange"])]),_:1})]),_:1}),e.createVNode(Do,{ref_key:"MprojRef",ref:F,onToPage:L},null,512),e.createVNode(Mo,{modelValue:D.value,"onUpdate:modelValue":s[21]||(s[21]=T=>D.value=T),persistent:"","max-width":"500"},{default:e.withCtx(()=>[e.createVNode(ue,null,{default:e.withCtx(()=>[e.createVNode(de,null,{default:e.withCtx(()=>[...s[45]||(s[45]=[e.createTextVNode("作废",-1)])]),_:1}),e.createVNode(lt,{class:"pb-0"},{default:e.withCtx(()=>[s[46]||(s[46]=e.createTextVNode(" 服务作废后将无法恢复,请谨慎操作!!! ",-1)),e.createVNode(To,{modelValue:O.value,"onUpdate:modelValue":s[18]||(s[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(g),e.createVNode(E,{onClick:s[19]||(s[19]=T=>D.value=!1),variant:"text"},{default:e.withCtx(()=>[...s[47]||(s[47]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(E,{onClick:s[20]||(s[20]=T=>le()),variant:"text"},{default:e.withCtx(()=>[...s[48]||(s[48]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),[["__scopeId","data-v-052be5fe"]]),Ie=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:a}){const o=t,i=a,r=e.useAttrs(),d=e.ref([]),n=()=>{o.list.split("/").forEach(u=>{const[p,l]=u.split(":");d.value.push({code:p,codeValue:l})})},f=async()=>{try{const u=await W.getForm(`dict/misc/list/${o.list}`);d.value=u.data||[]}catch(u){console.error("[VtkRadio] Failed to load dictionary:",u),d.value=[]}},C=u=>{i("update:modelValue",u)};return e.onMounted(()=>{o.list.includes(":")?n():f()}),(u,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":C}),{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"])}}}),so={class:"search"},Fe=Q(Object.assign({name:"VtkSearch"},{__name:"VtkSearch",props:{value:{type:Object,default:()=>({})}},emits:["update:value","search"],setup(t,{emit:a}){const o=t,i=a,r=e.ref({}),d=e.ref(!1),n=e.ref({...o.value}),f=e.ref(0);e.watch(()=>o.value,c=>{n.value={...c}},{deep:!0}),e.onMounted(()=>{r.value=JSON.parse(localStorage.getItem("_mis_acis_users")||"{}"),f.value=0});const C=()=>{d.value||(f.value=0)},u=()=>{d.value=!1,C()},p=()=>{u(),i("update:value",n.value),i("search")},l=()=>{Object.keys(n.value).forEach(c=>{c!=="condition"&&delete n.value[c]}),delete n.value.condition,f.value=0,i("update:value",n.value),i("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"),B=e.resolveComponent("VCardActions"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",so,[e.createVNode($,{modelValue:d.value,"onUpdate:modelValue":[m[2]||(m[2]=y=>d.value=y),C],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:u,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(B,{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"]]),je=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:a}){const o=t,i=e.useAttrs(),r=e.computed(()=>{const{list:C,multi:u,...p}=i;return p}),d=e.ref([]),n=()=>{W.getForm(`dict/misc/list/${o.list}`).then(C=>{d.value=C.data})},f=()=>{o.list&&o.list.split("/").forEach(C=>{const u=C.split(":");d.value.push({code:u[0],codeValue:u[1]})})};return e.onMounted(()=>{o.list&&(o.list.includes(":")?f():n())}),(C,u)=>{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":u[0]||(u[0]=l=>C.$emit("update:modelValue",l))}),null,16,["items","multiple"])}}}),[["__scopeId","data-v-7cb05cd0"]]),io=["complete","step"],Ue=Q(Object.assign({name:"VtkStepper",inheritAttrs:!1},{__name:"VtkStepper",props:{list:{type:String,default:null},el:{type:Number,default:1}},setup(t){const a=t,o=e.ref(a.el),i=e.ref([]);e.watch(()=>a.el,d=>{o.value=d});const r=()=>{a.list&&(i.value=a.list.split(","))};return e.onMounted(()=>{r()}),e.watch(()=>a.list,()=>{r()}),(d,n)=>{const f=e.resolveComponent("VCol"),C=e.resolveComponent("VRow"),u=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:o.value,"onUpdate:modelValue":n[0]||(n[0]=m=>o.value=m)},{default:e.withCtx(()=>[e.createVNode(u,{class:"elevation-0",style:{overflow:"hidden"}},{default:e.withCtx(()=>[e.createVNode(C,{class:"stepList"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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",o.value>w?"selected":""]),complete:o.value>w,step:w+1},e.toDisplayString(m),11,io)]),_: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 We(t,a){let o="";return t&&t.includes(",")?o=t.split(",").map(i=>Ke(i,a)).join():o=Ke(t,a),o}function Ke(t,a){if(t){for(var o=Array.isArray(t)?t:t.split(","),i=a==null?void 0:a.split("/"),r=[],d=0;d<(o==null?void 0:o.length);d++){var n=o[d];for(var f in i){var C=i[f].split(":");if(C[0]==n){r.push(C[1]);break}}}return r.length>0?r.join():"其他"}}function Je(t){if(!t)return"";let a="",o=["视力","听力","言语","肢体","智力","精神","多重"];for(let i=1;i<8;i++)i===1?a=t.replace(i.toString(),o[i-1]):a=a.replace(i.toString(),o[i-1]);return a}function He(t){if(!t)return"";let a="",o=["一级","二级","三级","四级","不限等级"];for(let i=1;i<7;i++)i===1?a=t.replace(i.toString(),o[i-1]):a=a.replace(i.toString(),o[i-1]);return a}const co=Object.freeze(Object.defineProperty({__proto__:null,analyLevel:He,analyType:Je,dict:We},Symbol.toStringTag,{value:"Module"}));function Qe(t,a){if(!t||t=="无"||t==null)return a="无",a;let o=new Date(t),i={"M+":o.getMonth()+1,"d+":o.getDate(),"h+":o.getHours(),"m+":o.getMinutes(),"s+":o.getSeconds(),"q+":Math.floor((o.getMonth()+3)/3),S:o.getMilliseconds()};/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(o.getFullYear()+"").substr(4-RegExp.$1.length)));for(let r in i)new RegExp("("+r+")").test(a)&&(a=a.replace(RegExp.$1,RegExp.$1.length===1?i[r]:("00"+i[r]).substr((""+i[r]).length)));return a}function Ge(t,a){if(isNaN(t)||t===""||t===null)return t;var o=parseFloat(t),i=o<0?"-":"",r=Math.abs(o),d=0;a&&a.includes(".")&&(d=a.length-a.lastIndexOf(".")-1);var n=a&&a.includes(","),f=d>0?r.toFixed(d):Math.round(r),C=d>0?"."+f.toString().split(".")[1]:"",u=d>0?Math.floor(r).toString():f.toString();return n&&u.length>3&&(u=u.replace(/\B(?=(\d{3})+(?!\d))/g,",")),i+u+C}function Xe(t){let a=new Date(t.slice(0,10).replace(/-/g,"/")),o=new Date;return o.getFullYear()-a.getFullYear()-(o.getMonth()<a.getMonth()||o.getMonth()===a.getMonth()&&o.getDate()<a.getDate()?1:0)}function Ze(t,a){return(t==null?void 0:t.length)>a?t.slice(0,a)+"...":t}function ve(t){return isNaN(t)?0:Math.abs(t)}const mo=Object.freeze(Object.defineProperty({__proto__:null,abs:ve,age:Xe,date:Qe,num:Ge,txt:Ze},Symbol.toStringTag,{value:"Module"}));function et(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function tt(t){if(t)return t.replace(/^(.{4})(?:\d+)(.{4})$/,"$1** **** ****$2")}const po=Object.freeze(Object.defineProperty({__proto__:null,idcard:tt,mobile:et},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"}},Le={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"}]},fo={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 a=n=>{for(var f=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],C=n.split(""),u=17,p=0,l=0;l<u;l++)p+=C[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 o=t.substr(6,8),i=o.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"),r=new Date(i),d=r.getMonth()+1;if(parseInt(o.substr(4,2))===d)return a(t)}return!1},getFromIdCard:t=>{var a=t.substr(0,6),o=t.substr(6,8).replace(/(\d{4})(\d{2})(\d{2})/,"$1年$2月$3日"),i=new Date().getFullYear()-t.substr(6,4)+1,r=t.substr(16,1)%2===0?"女":"男";return{area:a,birth:o,age:i,sex:r}}},go={__name:"alert",setup(t){const a=ae(),o=e.computed(()=>{var d;return((d=a.alert)==null?void 0:d.isActive)||!1}),i=e.computed(()=>{var d;return((d=a.alert)==null?void 0:d.options)||{}}),r=()=>{a.hide("alert")};return(d,n)=>{const f=e.resolveComponent("VCardTitle"),C=e.resolveComponent("VCardText"),u=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:o.value,"onUpdate:modelValue":n[0]||(n[0]=w=>o.value=w),persistent:"",width:i.value.width},{default:e.withCtx(()=>[e.createVNode(c,{color:i.value.color},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.title),1)]),_:1}),i.value.text?(e.openBlock(),e.createBlock(C,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(u),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"])}}},Vo={__name:"confirm",setup(t){const a=ae(),o=e.computed(()=>{var n;return((n=a.confirm)==null?void 0:n.isActive)||!1}),i=e.computed(()=>{var n;return((n=a.confirm)==null?void 0:n.options)||{}}),r=()=>{typeof i.value.onConfirm=="function"&&i.value.onConfirm(),a.hide("confirm")},d=()=>{typeof i.value.onCancel=="function"&&i.value.onCancel(),a.hide("confirm")};return(n,f)=>{const C=e.resolveComponent("VCardTitle"),u=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:o.value,"onUpdate:modelValue":f[0]||(f[0]=P=>o.value=P),persistent:"","max-width":i.value.width||400},{default:e.withCtx(()=>[e.createVNode(m,{color:i.value.color},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.title),1)]),_:1}),i.value.text?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.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(i.value.cancelText||"取消"),1)]),_:1}),e.createVNode(l,{text:"",onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","max-width"])}}},uo={__name:"loading",setup(t){const a=ae(),o=e.computed(()=>{var i;return((i=a.loading)==null?void 0:i.isActive)||!1});return(i,r)=>{const d=e.resolveComponent("v-progress-circular"),n=e.resolveComponent("v-overlay");return e.openBlock(),e.createBlock(n,{modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=f=>o.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"])}}},ko={key:0,class:"mt-2"},ho={name:"vtkMessage",components:{vtkAlert:go,vtkConfirm:Vo,vtkLoading:uo,vtkPrompt:{__name:"prompt",setup(t){const a=ae(),o=e.ref(""),i=e.computed(()=>{var f;return((f=a.prompt)==null?void 0:f.isActive)||!1}),r=e.computed(()=>{var f;return((f=a.prompt)==null?void 0:f.options)||{}}),d=()=>{typeof r.value.onConfirm=="function"&&r.value.onConfirm(o.value),a.hide("prompt"),o.value=""},n=()=>{typeof r.value.onCancel=="function"&&r.value.onCancel(),a.hide("prompt"),o.value=""};return(f,C)=>{const u=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:i.value,"onUpdate:modelValue":C[1]||(C[1]=_=>i.value=_),persistent:"",width:r.value.width},{default:e.withCtx(()=>[e.createVNode(P,{color:r.value.color},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.title),1)]),_:1}),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":C[0]||(C[0]=_=>o.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",ko,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 a=ae(),o=e.computed({get:()=>{var n;return((n=a.toast)==null?void 0:n.isActive)||!1},set:n=>{a.toast&&(a.toast.isActive=n)}}),i=e.computed(()=>{var n;return((n=a.toast)==null?void 0:n.options)||{}}),r=()=>{a.hide("toast")},d=n=>{n||a.hide("toast")};return(n,f)=>{const C=e.resolveComponent("VIcon"),u=e.resolveComponent("VBtn"),p=e.resolveComponent("VSnackbar");return e.openBlock(),e.createBlock(p,{modelValue:o.value,"onUpdate:modelValue":[f[1]||(f[1]=l=>o.value=l),d],timeout:i.value.timeout>0?i.value.timeout:3e3,color:i.value.color,centered:""},{actions:e.withCtx(()=>[e.createVNode(u,{text:"",icon:"",onClick:f[0]||(f[0]=l=>r())},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[...f[2]||(f[2]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.text)+" ",1)]),_:1},8,["modelValue","timeout","color"])}}},[["__scopeId","data-v-c08037e4"]])}},yo={class:"text-center"};function Co(t,a,o,i,r,d){const n=e.resolveComponent("vtk-alert"),f=e.resolveComponent("vtk-confirm"),C=e.resolveComponent("vtk-loading"),u=e.resolveComponent("vtk-prompt"),p=e.resolveComponent("vtk-toast");return e.openBlock(),e.createElementBlock("div",yo,[e.createVNode(n),e.createVNode(f),e.createVNode(C),e.createVNode(u),e.createVNode(p)])}const xo=Q(ho,[["render",Co]]);function _o(t,a={}){const o={VtkArea:xe,VtkAreaTabs:_e,VtkBreadcrumb:Ne,VtkCheckbox:we,VtkCount:be,VtkDatePicker:Se,VtkDateSelector:$e,VtkDept:Be,VtkEmpty:Ee,VtkFab:De,VtkFormItem:Te,VtkImg:Ae,VtkPage:Me,VtkPdf:Pe,VtkProj:ze,VtkRadio:Ie,VtkSearch:Fe,VtkSelect:je,VtkStepper:Ue,VtkMessage:xo};return Object.keys(o).forEach(i=>{t.component(i,o[i])}),t.config.globalProperties.$vtk={message:G,request:W,storage:oe,themes:Le,Validation:fo,filters:{...co,...po,...mo},...a},t}const No={install:_o,VtkArea:xe,VtkAreaTabs:_e,VtkBreadcrumb:Ne,VtkCheckbox:we,VtkCount:be,VtkDatePicker:Se,VtkDateSelector:$e,VtkDept:Be,VtkEmpty:Ee,VtkFab:De,VtkFormItem:Te,VtkImg:Ae,VtkPage:Me,VtkPdf:Pe,VtkProj:ze,VtkRadio:Ie,VtkSearch:Fe,VtkSelect:je,VtkStepper:Ue,request:W,storage:oe,themes:Le,vtkMessage:G};j.VtkArea=xe,j.VtkAreaTabs=_e,j.VtkBreadcrumb=Ne,j.VtkCheckbox=we,j.VtkCount=be,j.VtkDatePicker=Se,j.VtkDateSelector=$e,j.VtkDept=Be,j.VtkEmpty=Ee,j.VtkFab=De,j.VtkFormItem=Te,j.VtkImg=Ae,j.VtkPage=Me,j.VtkPdf=Pe,j.VtkProj=ze,j.VtkRadio=Ie,j.VtkSearch=Fe,j.VtkSelect=je,j.VtkStepper=Ue,j.abs=ve,j.age=Xe,j.analyLevel=He,j.analyType=Je,j.date=Qe,j.default=No,j.dict=We,j.idcard=tt,j.mobile=et,j.num=Ge,j.request=W,j.storage=oe,j.themes=Le,j.txt=Ze,j.useMixins=qe,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,rt,st){"use strict";var Ce=typeof document<"u"?document.currentScript:null;const oe={},ke=(t="local")=>t=="local"?window.localStorage:window.sessionStorage;oe.get=(t,o="local")=>{var a=ke(o).getItem(t);return/^[\\{|\\[].+[\\}|\\]]$/.test(a)?JSON.parse(a):a},oe.set=(t,o,a="local")=>{o=o.constructor===Object?JSON.stringify(o):o,ke(a).setItem(t,o)},oe.remove=(t,o="local")=>{ke(o).removeItem(t)},oe.clear=(t="local")=>{ke(t).clear()};const ae=st.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){ae().show("alert",t)},confirm(t){ae().show("confirm",t)},loading:{show(t={}){const o=ae(),a={title:"",text:"",color:"",width:120,indeterminate:!0,progressColor:"primary",size:64,circleWidth:6};o.show("loading",{...a,...t})},hide(){ae().hide("loading")}},prompt(t){ae().show("prompt",t)},toast(t,o={}){const a=ae(),i=typeof t=="string"?{text:t,...o}:t;a.show("toast",i)},hide(t){ae().hide(t)}},he=rt.create({baseURL:window.VITE_APP_API_URL||void 0||"",headers:{"X-Requested-With":"XMLHttpRequest"},withCredentials:!1,timeout:3e4});he.interceptors.request.use(t=>{var a,i;const o=((i=(a=window.VTK_CONFIG)==null?void 0:a.storageKeys)==null?void 0:i.token)||"_mis_acis_token";return oe.get(o)&&(t.headers["X-Token"]="1b0679be72ad976ad5d491ad57a5eec0",t.headers.Authorization="Bearer "+oe.get(o)),t},t=>(G.toast(t.message||"请求错误"),Promise.reject(t))),he.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"){oe.clear();const i=()=>{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:i,onCancel:i})}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",i={"content-type":"application/x-www-form-urlencoded"},r=null)=>i["content-type"]==="application/x-www-form-urlencoded"?he({url:t,params:o,method:a,headers:i,responseType:r}):he({url:t,data:o,method:a,headers:i,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[i,r]of o)a[i]=r;return a},it={class:"d-inline-block d-flex"},xe=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(),i=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,C(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()}},C=(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("加载下级区域数据失败")})},u=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&&i("update:modelValue",l)};return(l,c)=>{var w,P,A,_,k,h,b,B,z,$;const m=e.resolveComponent("VSelect");return e.openBlock(),e.createElementBlock("div",it,[e.createVNode(m,{modelValue:r.area2,"onUpdate:modelValue":[c[0]||(c[0]=y=>r.area2=y),c[1]||(c[1]=y=>C(r.area2,1))],"onClick:clear":c[2]||(c[2]=y=>u(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=>C(r.area4,2))],"onClick:clear":c[5]||(c[5]=y=>u(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=>C(r.area6,3))],"onClick:clear":c[8]||(c[8]=y=>u(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=>C(r.area9,4))],"onClick:clear":c[11]||(c[11]=y=>u(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:((B=d.value.areacode)==null?void 0:B.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=>C(r.area12,5))],"onClick:clear":c[14]||(c[14]=y=>u(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:(($=d.value.areacode)==null?void 0:$.length)>=12,"menu-props":{offsetY:!0}},null,8,["modelValue","placeholder","items","disabled","style"])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-644cffae"]]),ct={class:"btn-text"},dt={class:"pt-3 px-3"},_e=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,i=o,{proxy:r}=e.getCurrentInstance(),d=e.ref(!1),n=e.ref({}),f=e.ref(0),C=e.ref([]),u=e.ref([]),p=e.ref([]),l=e.ref([]),c=e.ref(null),m=e.ref(""),w=e.ref(""),P=$=>{r.$vtk.request.getForm(`/dict/area/show/${$}`).then(y=>{let D=y.data.province?`${y.data.province}`:"",U=y.data.city?`/${y.data.city}`:"",O=y.data.district?`/${y.data.district}`:"",F=y.data.town?`/${y.data.town}`:"",K=y.data.village?`/${y.data.village}`:"";w.value=`${D}${U}${O}${F}${K}`,a.areaNode&&a.areaNode>0&&(w.value=w.value.split("/").slice(-a.areaNode).join("/"))})},A=$=>{p.value=[...u.value[$]],$<l.value.length?c.value=p.value.findIndex(y=>y.areaCode==l.value[$].areaCode):c.value=null},_=($,y)=>{l.value=l.value.slice(0,y),l.value.push($),u.value=u.value.slice(0,y+1),C.value.length>f.value+1&&(!a.minArea||a.minArea>$.areaCode.length)&&(k($.areaCode),f.value++)},k=$=>{r.$vtk.request.getForm(`/dict/area/next/${$}`).then(y=>{p.value=y.data,u.value.push(y.data),c.value=null,e.nextTick()})},h=$=>{l.value=[],C.value=[{text:"省级",leve:"2"},{text:"市级",leve:"4"},{text:"区县",leve:"6"},{text:"街镇",leve:"9"},{text:"村社",leve:"12"}].filter(y=>y.leve>=n.value.areacode.length),u.value=[],r.$vtk.request.getForm(`/dict/area/show/${$}`).then(y=>{p.value=[{areaName:y.data.areaName,areaCode:y.data.areaCode}],u.value.push(p.value),l.value.push(p.value[0])})},b=()=>{let $=[],y=[];l.value.forEach(D=>{$.push(D.areaName),y.push(D.areaCode),m.value=D.areaCode}),a.areaNode&&a.areaNode>0&&($=$.slice(-a.areaNode)),w.value=$.join().replace(/,/g,"/"),i("update:modelValue",m.value),i("change"),z()},B=()=>{f.value=0,h(n.value.areacode),m.value=n.value.areacode,i("update:modelValue",m.value),i("change")},z=()=>{d.value=!1};return e.watch(()=>a.modelValue,($,y)=>{$&&$!=y&&P($)}),e.onMounted(()=>{var y,D;const $=((D=(y=window.VTK_CONFIG)==null?void 0:y.storageKeys)==null?void 0:D.user)||"_mis_acis_users";n.value=r.$vtk.storage.get($)&&JSON.parse(r.$vtk.storage.get($)),n.value&&n.value.areacode&&h(n.value.areacode),a.modelValue&&P(a.modelValue)}),($,y)=>{const D=e.resolveComponent("v-icon"),U=e.resolveComponent("v-btn"),O=e.resolveComponent("v-tab"),F=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"),I=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:$.$attrs.styles}),{default:e.withCtx(()=>[e.createElementVNode("span",ct,e.toDisplayString(w.value||"选择地区"),1),w.value?(e.openBlock(),e.createBlock(D,{key:0,size:"small",onClick:e.withModifiers(B,["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(I,{elevation:"0",style:{width:"350px"}},{default:e.withCtx(()=>[e.createElementVNode("p",dt,[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(F,{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(C.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:u.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(C.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]=te=>c.value=te),"selected-class":"chipActive",column:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,te=>(e.openBlock(),e.createBlock(K,{key:te.id,onClick:ne=>_(te,J),class:e.normalizeClass(["rounded",te.areaCode==n.value.areacode&&"active"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(te.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"]]),mt={class:"vtk-breadcrumb-wrapper d-flex align-center justify-space-between"},Ne=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,i=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 C=((p=d.matched)==null?void 0:p.filter(c=>c.meta&&c.meta.breadcrumb))||[];if(C.length>0)return C.map((c,m)=>({title:c.meta.breadcrumb,to:c.path,disabled:m===C.length-1}));const u=((l=d.path)==null?void 0:l.split("/").filter(c=>c))||[];return u.map((c,m)=>{const w="/"+u.slice(0,m+1).join("/");return{title:c.charAt(0).toUpperCase()+c.slice(1),to:w,disabled:m===u.length-1}})}),f=()=>{i("back"),r&&(a.backTo?(a.backTo,r.push(a.backTo)):r.back())};return(C,u)=>{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",mt,[e.createVNode(c,{items:n.value,class:"pa-0"},{divider:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[...u[0]||(u[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"]]),we=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,i=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,i("update:modelValue",w)},{deep:!0});const f=e.useAttrs(),C=e.computed(()=>{const{list:w,inline:P,modelValue:A,..._}=f;return _}),u=e.computed(()=>{const{list:w,inline:P,modelValue:A,error:_,"error-messages":k,rules:h,hint:b,"persistent-hint":B,...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(C.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},u.value,{class:t.inline?"mr-4":""}),null,16,["label","value","modelValue","class"]))),128))],2)]),_:1},16,["model-value"])}}}),[["__scopeId","data-v-d5ff7884"]]),pt={key:0,class:"prefix"},ft={class:"digits-container"},gt={key:0,class:"digit-scroll"},ut={key:1,class:"separator"},Vt={key:1,class:"suffix"},be=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 i=t,r=a,d=e.ref(i.start),n=e.ref([]),f=e.ref(0),C=e.ref(!1),u=k=>{let h=k.toFixed(i.decimals);return i.separator&&i.decimals===0&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,",")),h},p=e.computed(()=>u(i.end)),l=e.computed(()=>u(i.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 B=k[b];return isNaN(B)?"0":B}return"0"})},P=(k,h)=>{if(isNaN(k)||isNaN(h))return{transform:"translateY(0)"};const b=parseInt(k)||0,z=h-b;let $;return z>5?$=-(10-z)*100:z<-5?$=(10+z)*100:$=-z*100,{transform:`translateY(${$}%)`,transition:C.value?"transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)":"none",color:i.color}},A=()=>{if(C.value)return;C.value=!0;const k=performance.now(),h=i.start,b=i.end,B=b-h;w();const z=$=>{const y=$-k,D=Math.min(y/i.duration,1),U=1-Math.pow(1-D,4);d.value=h+B*U,_(d.value),D<1?requestAnimationFrame(z):(d.value=b,_(b),C.value=!1,r("complete"))};requestAnimationFrame(z)},_=k=>{const h=u(k),b=c.value;for(let B=0;B<b.length;B++)B<h.length?n.value[B]=h[B]:n.value[B]=isNaN(b[B])?b[B]:"0"};return e.watch(()=>i.end,(k,h)=>{if(k!==h){const b=u(k),B=u(h);b.length!==B.length?(f.value+=1,e.nextTick(()=>{A()})):A()}}),e.onMounted(()=>{if(i.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",pt,e.toDisplayString(t.prefix),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(b,B)=>(e.openBlock(),e.createElementBlock("div",{key:`digit-${B}-${f.value}`,class:e.normalizeClass(["digit-wrapper",{"digit-separator":isNaN(b)}])},[isNaN(b)?(e.openBlock(),e.createElementBlock("div",ut,e.toDisplayString(b),1)):(e.openBlock(),e.createElementBlock("div",gt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,z=>e.createElementVNode("div",{key:z,class:"digit-item",style:e.normalizeStyle(P(m(B),z-1))},e.toDisplayString(z-1),5)),64))]))],2))),128))]),t.suffix?(e.openBlock(),e.createElementBlock("span",Vt,e.toDisplayString(t.suffix),1)):e.createCommentVNode("",!0)],4)],2))}}),[["__scopeId","data-v-678ebca6"]]),kt={class:"vtk-date-range-picker"},ht={class:"date-picker-container"},Se=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,i=o,r=e.useAttrs(),d=e.ref(!1),n=e.ref([]),f=e.ref(null),C=e.ref(null),u=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:B,min:z,max:$,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(),B=String(h.getMonth()+1).padStart(2,"0"),z=String(h.getDate()).padStart(2,"0");return`${b}-${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]&&(C.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(),C.value=b[1].trim()):(n.value=[],f.value=null,C.value=null)}else n.value=[],f.value=null,C.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,C.value=null,i("update:modelValue",[]),i("change",[]),d.value=!1},_=()=>{Array.isArray(a.modelValue)?(n.value=[...a.modelValue],a.modelValue[0]&&(f.value=a.modelValue[0]),a.modelValue[1]&&(C.value=a.modelValue[1])):(n.value=[],f.value=null,C.value=null),d.value=!1},k=()=>{let h=[...n.value].filter(b=>b!==null);if(h.length===2){const b=new Date(h[0]),B=new Date(h[1]);b>B&&(h=[h[1],h[0]])}else h.length===1&&(h=[h[0],h[0]]);i("update:modelValue",h),i("change",h),d.value=!1};return(h,b)=>{const B=e.resolveComponent("VIcon"),z=e.resolveComponent("VTextField"),$=e.resolveComponent("VDatePicker"),y=e.resolveComponent("VCardText"),D=e.resolveComponent("VDivider"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("VBtn"),F=e.resolveComponent("VCardActions"),K=e.resolveComponent("VCard"),Y=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",kt,[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:u.value,"onUpdate:modelValue":b[0]||(b[0]=S=>u.value=S),placeholder:t.placeholder,disabled:t.disabled,readonly:"",clearable:"",density:"compact",variant:"outlined","onClick:clear":A}),{"prepend-inner":e.withCtx(()=>[e.createVNode(B,{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",ht,[e.createVNode($,{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($,{modelValue:C.value,"onUpdate:modelValue":[b[2]||(b[2]=q=>C.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(F,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"]]),yt={class:"vtk-date-selector"},Ct=["value","placeholder","disabled"],xt={key:0,class:"picker-header"},_t={class:"header-title"},Nt={key:1,class:"picker-body"},wt={class:"year-grid"},bt=["onClick"],St={key:2,class:"picker-body"},$t={key:0,class:"dual-calendar"},Bt={class:"calendar-panel"},Et={class:"calendar-header"},Dt={class:"month-title"},Tt={class:"month-grid"},At=["onClick"],Mt={class:"calendar-panel"},Pt={class:"calendar-header"},zt={class:"month-title"},It={class:"month-grid"},Ft=["onClick"],jt={key:1},Ut={class:"month-grid"},Lt=["onClick"],Ot={key:3,class:"picker-body"},Rt={class:"week-header"},Yt={class:"week-grid"},qt=["onClick"],Wt={class:"week-number"},Kt={key:4,class:"picker-body"},Jt={key:0,class:"dual-calendar"},Ht={class:"calendar-panel"},Qt={class:"calendar-header"},Gt={class:"month-title"},Xt={class:"week-header"},Zt={class:"day-grid"},vt=["onClick"],ea={class:"calendar-panel"},ta={class:"calendar-header"},aa={class:"month-title"},oa={class:"week-header"},la={class:"day-grid"},na=["onClick"],ra={key:1},sa={class:"week-header"},ia={class:"day-grid"},ca=["onClick"],da={key:5,class:"range-display"},ma={class:"range-text"},pa={key:1,class:"placeholder-text"},$e=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}},emits:["update:modelValue","change"],setup(t,{emit:o}){const a=t,i=o,r=e.ref(!1),d=e.ref(a.displayMode),n=e.ref(new Date().getFullYear()),f=e.ref(new Date().getMonth()),C=e.ref(new Date().getFullYear()),u=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[g,V]=N.split("-");return`${g}年${V}月`}else if(a.displayMode==="week"){const[g,V]=N.split("-W");return`${g}年第${V}周`}return N},A=e.computed(()=>{const N=Math.floor(n.value/12)*12;return Array.from({length:12},(g,V)=>N+V)}),_=e.computed(()=>{const N=[],g=new Date(n.value,f.value,1),V=new Date(n.value,f.value+1,0);let E=new Date(g);E.setDate(E.getDate()-E.getDay());let v=y(E);for(;E<=V||E.getDay()!==0;){const H={weekNumber:v,startDate:new Date(E),days:[]};for(let de=0;de<7;de++){const Ve={date:z(E),day:E.getDate(),month:E.getMonth(),year:E.getFullYear(),otherMonth:E.getMonth()!==f.value,isToday:$(E)};H.days.push(Ve),E.setDate(E.getDate()+1)}if(N.push(H),v++,E>V&&E.getDay()===0)break}return N}),k=e.computed(()=>{const N=[],g=new Date(n.value,f.value,1),V=new Date(n.value,f.value+1,0),E=new Date(g);E.setDate(E.getDate()-E.getDay());const v=new Date(V);v.setDate(v.getDate()+(6-v.getDay()));let H=new Date(E);for(;H<=v;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==f.value,isToday:$(H)}),H.setDate(H.getDate()+1);return N}),h=e.computed(()=>C.value),b=e.computed(()=>u.value),B=e.computed(()=>{const N=[],g=new Date(h.value,b.value,1),V=new Date(h.value,b.value+1,0),E=new Date(g);E.setDate(E.getDate()-E.getDay());const v=new Date(V);v.setDate(v.getDate()+(6-v.getDay()));let H=new Date(E);for(;H<=v;)N.push({date:z(H),day:H.getDate(),month:H.getMonth(),year:H.getFullYear(),otherMonth:H.getMonth()!==b.value,isToday:$(H)}),H.setDate(H.getDate()+1);return N}),z=N=>{const g=N.getFullYear(),V=String(N.getMonth()+1).padStart(2,"0"),E=String(N.getDate()).padStart(2,"0");return`${g}-${V}-${E}`},$=N=>{const g=new Date;return N.getDate()===g.getDate()&&N.getMonth()===g.getMonth()&&N.getFullYear()===g.getFullYear()},y=N=>{const g=new Date(Date.UTC(N.getFullYear(),N.getMonth(),N.getDate())),V=g.getUTCDay()||7;g.setUTCDate(g.getUTCDate()+4-V);const E=new Date(Date.UTC(g.getUTCFullYear(),0,1));return Math.ceil(((g-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(g=>g&&g.startsWith(N.toString())):!1:!1,U=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const[g,V]=l.value.map(E=>parseInt(E));return N>g&&N<V},O=N=>{if(!l.value)return!1;const g=`${n.value}-${String(N+1).padStart(2,"0")}`;return a.mode==="single"?l.value===g:Array.isArray(l.value)?l.value.includes(g):!1},F=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${n.value}-${String(N+1).padStart(2,"0")}`;return g>l.value[0]&&g<l.value[1]},K=N=>{if(!l.value)return!1;const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return a.mode==="single"?l.value===g:Array.isArray(l.value)?l.value.includes(g):!1},Y=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;return g>l.value[0]&&g<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],I=N=>a.mode!=="range"||!Array.isArray(l.value)||l.value.length<2?!1:N.date===l.value[1],R=N=>{const g=N.toString();if(a.mode==="single")l.value=g,a.displayMode==="year"&&Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},L=N=>{const g=`${n.value}-${String(N+1).padStart(2,"0")}`;if(a.mode==="single")l.value=g,a.displayMode==="month"&&Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},J=N=>{const g=`${C.value}-${String(N+1).padStart(2,"0")}`;if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},te=N=>{if(!l.value)return!1;const g=`${C.value}-${String(N+1).padStart(2,"0")}`;return Array.isArray(l.value)?l.value.includes(g):!1},ne=N=>{if(a.mode!=="range"||!Array.isArray(l.value)||l.value.length!==2)return!1;const g=`${C.value}-${String(N+1).padStart(2,"0")}`;return g>l.value[0]&&g<l.value[1]},re=N=>{const g=`${n.value}-W${String(N.weekNumber).padStart(2,"0")}`;if(a.mode==="single")l.value=g,Z();else if(!l.value||!Array.isArray(l.value))l.value=[g];else if(l.value.length===1){const[V]=l.value;l.value=V<=g?[V,g]:[g,V]}else l.value=[g]},le=N=>{if(a.mode==="single")l.value=N.date;else if(!l.value||!Array.isArray(l.value))l.value=[N.date];else if(l.value.length===1){const[g]=l.value;l.value=g<=N.date?[g,N.date]:[N.date,g]}else l.value=[N.date]},se=()=>{d.value==="year"?n.value-=12:d.value==="month"?n.value-=1:f.value===0?(f.value=11,n.value-=1):f.value-=1},ie=()=>{d.value==="year"?n.value+=12:d.value==="month"?n.value+=1:f.value===11?(f.value=0,n.value+=1):f.value+=1},me=()=>{f.value===0?(f.value=11,n.value-=1):f.value-=1},pe=()=>{u.value===11?(u.value=0,C.value+=1):u.value+=1},fe=()=>{n.value-=1},ge=()=>{C.value+=1},ce=N=>{a.displayMode==="year"&&N!=="year"||a.displayMode==="month"&&!["year","month"].includes(N)||(d.value=N)},ue=()=>{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"?C.value=n.value+1:f.value===11?(C.value=n.value+1,u.value=0):(C.value=n.value,u.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"?C.value=n.value+1:f.value===11?(C.value=n.value+1,u.value=0):(C.value=n.value,u.value=f.value+1));const M=()=>{r.value=!1},s=()=>{p.value=a.mode==="range"?[]:null,i("update:modelValue",p.value),i("change",p.value)},Z=()=>{p.value=l.value,i("update:modelValue",p.value),i("change",p.value),M()};return e.watch(()=>a.modelValue,N=>{p.value=N},{immediate:!0}),(N,g)=>(e.openBlock(),e.createElementBlock("div",yt,[t.inline?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-input",onClick:ue},[e.createElementVNode("input",{type:"text",value:w.value,placeholder:t.placeholder,disabled:t.disabled,readonly:"",class:"date-input-field"},null,8,Ct),g[3]||(g[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(s,["stop"])},"✕")):e.createCommentVNode("",!0)])),r.value&&!t.inline?(e.openBlock(),e.createElementBlock("div",{key:1,class:"date-picker-mask",onClick:M})):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:g[2]||(g[2]=e.withModifiers(()=>{},["stop"]))},[t.mode==="range"&&(t.displayMode==="day"||t.displayMode==="month")?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("button",{class:"nav-btn",onClick:se},"‹"),e.createElementVNode("div",_t,[e.createElementVNode("span",{onClick:g[0]||(g[0]=V=>ce("year")),class:"clickable"},e.toDisplayString(n.value)+"年",1),t.displayMode!=="year"?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:g[1]||(g[1]=V=>ce("month")),class:"clickable"},e.toDisplayString(f.value+1)+"月",1)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"nav-btn",onClick:ie},"›")])),d.value==="year"?(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("div",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V,class:e.normalizeClass(["year-item",{selected:D(V),"in-range":U(V)}]),onClick:E=>R(V)},e.toDisplayString(V),11,bt))),128))])])):d.value==="month"?(e.openBlock(),e.createElementBlock("div",St,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Bt,[e.createElementVNode("div",Et,[e.createElementVNode("button",{class:"nav-btn-small",onClick:fe},"‹"),e.createElementVNode("span",Dt,e.toDisplayString(n.value)+"年",1),g[4]||(g[4]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"›",-1))]),e.createElementVNode("div",Tt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":F(E)}]),onClick:v=>L(E)},e.toDisplayString(V),11,At)),64))])]),g[6]||(g[6]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",Mt,[e.createElementVNode("div",Pt,[g[5]||(g[5]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"‹",-1)),e.createElementVNode("span",zt,e.toDisplayString(C.value)+"年",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:ge},"›")]),e.createElementVNode("div",It,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:te(E),"in-range":ne(E)}]),onClick:v=>J(E)},e.toDisplayString(V),11,Ft)),64))])])])):(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("div",Ut,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(m,(V,E)=>e.createElementVNode("div",{key:E,class:e.normalizeClass(["month-item",{selected:O(E),"in-range":F(E)}]),onClick:v=>L(E)},e.toDisplayString(V),11,Lt)),64))])]))])):d.value==="week"?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",Rt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.weekNumber,class:e.normalizeClass(["week-row",{selected:K(V),"in-range":Y(V)}]),onClick:E=>re(V)},[e.createElementVNode("div",Wt,"W"+e.toDisplayString(V.weekNumber),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.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,qt))),128))])])):(e.openBlock(),e.createElementBlock("div",Kt,[t.mode==="range"?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Ht,[e.createElementVNode("div",Qt,[e.createElementVNode("button",{class:"nav-btn-small",onClick:me},"‹"),e.createElementVNode("span",Gt,e.toDisplayString(n.value)+"年"+e.toDisplayString(f.value+1)+"月",1),g[7]||(g[7]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"›",-1))]),e.createElementVNode("div",Xt,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,vt))),128))])]),g[9]||(g[9]=e.createElementVNode("div",{class:"calendar-divider"},null,-1)),e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[g[8]||(g[8]=e.createElementVNode("span",{class:"nav-btn-small invisible"},"‹",-1)),e.createElementVNode("span",aa,e.toDisplayString(h.value)+"年"+e.toDisplayString(b.value+1)+"月",1),e.createElementVNode("button",{class:"nav-btn-small",onClick:pe},"›")]),e.createElementVNode("div",oa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",la,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,na))),128))])])])):(e.openBlock(),e.createElementBlock("div",ra,[e.createElementVNode("div",sa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,V=>e.createElementVNode("div",{key:V,class:"week-day"},e.toDisplayString(V),1)),64))]),e.createElementVNode("div",ia,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.date,class:e.normalizeClass(["day-item",{"other-month":V.otherMonth,selected:q(V),"in-range":S(V),"range-start":x(V),"range-end":I(V),today:V.isToday}]),onClick:E=>le(V)},e.toDisplayString(V.day),11,ca))),128))])]))])),t.mode==="range"&&t.displayMode==="day"?(e.openBlock(),e.createElementBlock("div",da,[e.createElementVNode("span",ma,[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]||"开始日期")+" ",1),g[10]||(g[10]=e.createElementVNode("span",{class:"range-separator"}," - ",-1)),e.createTextVNode(" "+e.toDisplayString(l.value[1]||"结束日期"),1)],64)):(e.openBlock(),e.createElementBlock("span",pa,"请选择日期范围"))])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"picker-footer"},[e.createElementVNode("button",{class:"btn btn-text",onClick:M},"取消"),e.createElementVNode("button",{class:"btn btn-primary",onClick:Z},"确定")])],2)):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-9f5c520e"]]),fa=["title"],ga=["title"],ua={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Va=["title"],ka={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},ha={class:"mx-auto"},ya={key:1,class:"text-center pt-4 d-flex flex-column align-center justify-center"},Be=Q({__name:"VtkDept",props:{multiple:{type:Boolean,default:!1}},emits:["selected"],setup(t,{expose:o,emit:a}){var Y,q;const{proxy:i}=e.getCurrentInstance(),r=((q=(Y=window.VTK_CONFIG)==null?void 0:Y.storageKeys)==null?void 0:q.user)||"_mis_acis_users",d=JSON.parse(i.$vtk.storage.get(r)),n=S=>new Promise(x=>setTimeout(x,S)),f=t,C=a,u=e.ref(!1),p=e.ref([]),l=e.ref([]),c=e.ref([]);e.watch(c,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.areaCode)&&k(S)},{deep:!0}),e.watch(l,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.areaCode)&&k(S)},{deep:!0});const m=()=>{d&&d.areacode&&i.$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;i.$vtk.request.getForm(`/dict/area/next/${x}`).then(I=>{I&&I.data&&I.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 I;S&&S.length>0&&((I=S[0])!=null&&I.id)&&U(S)},{deep:!0}),e.watch(_,(S,x)=>{var I;S&&S.length>0&&((I=S[0])!=null&&I.id)&&U(S)},{deep:!0});const k=S=>{const I={codex:{area:S[0].areaCode,type:"0"}};P.value=[],i.$vtk.request.postJson("/bizp/supported/dept/list",I).then(R=>{R.data.forEach(L=>{L.children=[],P.value.push(L)})})},h=async S=>{await n(300);const x=S.areaCode,I=S.id,R={codex:{area:x,pid:I}};i.$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([]),B=e.ref([]),z=e.ref([]),$=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(B,(S,x)=>{if(!$.value){if(!f.multiple){S&&S.length>0?z.value=[S[0]]:z.value=[];return}S&&S.length>0&&S.forEach(I=>{z.value.some(L=>L.id===I.id)||z.value.push(I)}),x&&x.length>0&&x.forEach(I=>{if(!(S==null?void 0:S.some(L=>L.id===I.id))){const L=z.value.findIndex(J=>J.id===I.id);L>-1&&z.value.splice(L,1)}})}},{deep:!0}),e.watch(b,async S=>{if(!S||S.length===0){$.value=!0,B.value=[],await e.nextTick(),$.value=!1;return}await e.nextTick(),$.value=!0;const x=[];S.forEach(I=>{z.value.some(L=>L.id===I.id)&&x.push(I)}),B.value=x,await e.nextTick(),$.value=!1},{deep:!0});const D=S=>{const x=z.value.findIndex(R=>R.id===S);x>-1&&z.value.splice(x,1);const I=B.value.findIndex(R=>R.id===S);I>-1&&B.value.splice(I,1)},U=S=>{const I={codex:{dept:S[0].id}};i.$vtk.request.postJson("/bizp/supported/user/list",I).then(R=>{R&&R.meta.success&&R.data.length>0?b.value=R.data:b.value=null})},O=()=>{u.value=!0},F=()=>{$.value=!0,u.value=!1,B.value=[],z.value=[],l.value=[],c.value=[],A.value=[],_.value=[],b.value=[],P.value=[],e.nextTick(()=>{$.value=!1})},K=()=>{const S=y.value;C("selected",S),F()};return e.onMounted(()=>{m()}),o({close:F,add:O}),(S,x)=>{const I=e.resolveComponent("v-spacer"),R=e.resolveComponent("v-icon"),L=e.resolveComponent("v-btn"),J=e.resolveComponent("v-card-title"),te=e.resolveComponent("v-divider"),ne=e.resolveComponent("v-treeview"),re=e.resolveComponent("v-sheet"),le=e.resolveComponent("v-col"),se=e.resolveComponent("v-img"),ie=e.resolveComponent("v-avatar"),me=e.resolveComponent("v-list-item"),pe=e.resolveComponent("v-list"),fe=e.resolveComponent("v-row"),ge=e.resolveComponent("v-card-text"),ce=e.resolveComponent("v-card-actions"),ue=e.resolveComponent("v-card"),M=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(M,{modelValue:u.value,"onUpdate:modelValue":x[5]||(x[5]=s=>u.value=s),persistent:"",width:"1000"},{default:e.withCtx(()=>[e.createVNode(ue,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(I),e.createVNode(L,{class:"g-no-shadow",icon:"",onClick:F,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(te),e.createVNode(ge,{class:"pb-0 mb-0 pl-0 pr-0",style:{height:"600px"}},{default:e.withCtx(()=>[e.createVNode(fe,{style:{"margin-top":"-16px",height:"100%"}},{default:e.withCtx(()=>[e.createVNode(le,{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(re,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[e.createVNode(ne,{"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]=s=>l.value=s),activated:c.value,"onUpdate:activated":x[1]||(x[1]=s=>c.value=s),"load-children":w},{title:e.withCtx(({item:s})=>[e.createElementVNode("span",{title:s.areaName},e.toDisplayString(s.areaName),9,fa)]),_:1},8,["items","selected","activated"])]),_:1})]),_:1}),e.createVNode(le,{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(re,{height:"500",style:{overflow:"auto"},class:"mt-2 pl-2"},{default:e.withCtx(()=>[P.value&&P.value.length>0?(e.openBlock(),e.createBlock(ne,{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]=s=>A.value=s),activated:_.value,"onUpdate:activated":x[3]||(x[3]=s=>_.value=s),"load-children":h},{title:e.withCtx(({item:s})=>[e.createElementVNode("span",{title:s.name},e.toDisplayString(s.name),9,ga)]),_:1},8,["items","selected","activated"])):(e.openBlock(),e.createElementBlock("div",ua,[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(le,{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(re,{height:"550",style:{overflow:"auto"},class:"mt-2"},{default:e.withCtx(()=>[b.value&&b.value.length>0?(e.openBlock(),e.createBlock(ne,{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:B.value,"onUpdate:selected":x[4]||(x[4]=s=>B.value=s)},{title:e.withCtx(({item:s})=>[e.createElementVNode("div",{class:"d-flex align-center",title:s.username},[e.createVNode(ie,{size:"24",class:"mr-2"},{default:e.withCtx(()=>[s.avatar?(e.openBlock(),e.createBlock(se,{key:0,src:s.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(s.username),1)],8,Va)]),_:1},8,["items","select-strategy","selected"])):(e.openBlock(),e.createElementBlock("div",ka,[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(le,{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",ha,"已选中人员 ("+e.toDisplayString(y.value.length)+")",1)]),_:1}),e.createVNode(re,{height:"550",style:{overflow:"auto"},class:"mt-2 px-2"},{default:e.withCtx(()=>[y.value.length>0?(e.openBlock(),e.createBlock(pe,{key:0,density:"compact"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,s=>(e.openBlock(),e.createBlock(me,{key:s.id,title:s.username,class:"px-2 mb-1 mr-2",rounded:"lg",color:"primary",variant:"tonal"},{prepend:e.withCtx(()=>[e.createVNode(ie,{size:"32"},{default:e.withCtx(()=>[s.avatar?(e.openBlock(),e.createBlock(se,{key:0,src:s.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:Z=>D(s.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",ya,[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(te),e.createVNode(ce,null,{default:e.withCtx(()=>[e.createVNode(I),e.createVNode(L,{color:"darken-1",text:"",onClick:F},{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"]]),Ee=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 i=e.resolveComponent("v-empty-state");return e.openBlock(),e.createBlock(i,{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"]]),De=Q(Object.assign({name:"VtkFab",inheritAttrs:!1},{__name:"VtkFab",setup(t){const o=e.ref(!1),a=e.ref("scroll-to-top-fab"),i=()=>{o.value=window.scrollY>100},r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.onMounted(()=>{window.addEventListener("scroll",i)}),e.onBeforeUnmount(()=>{window.removeEventListener("scroll",i)}),(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"]]),Ca={key:0,class:"pb-2 text-left"},xa={key:0,class:"text-red mr-1"},_a={key:0,class:"text-red"},Na={key:3,class:"d-inline-block vtk-width-7",style:{"min-width":"350px"}},wa={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"},Sa=["innerHTML"],Te=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),i=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",Ca,[t.must?(e.openBlock(),e.createElementBlock("span",xa,"*")):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",_a,"*")):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(i.value)},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4)):e.createCommentVNode("",!0),t.top?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Na,[e.renderSlot(r.$slots,"default",{},void 0,!0)])),t.left&&t.help&&!t.top?(e.openBlock(),e.createElementBlock("div",wa,[e.createElementVNode("p",ba,e.toDisplayString(t.label),1),e.createElementVNode("span",{innerHTML:t.help},null,8,Sa)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-05be0b6b"]]),$a={class:"vtk-img-container"},Ba={class:"d-flex align-center justify-center fill-height"},Ea={key:0,class:"vtk-img-info"},Da={class:"image-viewer-content"},Ta={class:"image-container"},Aa={class:"image-info"},Ma={class:"text-center"},Pa={class:"text-center text--secondary"},za=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:Ce&&Ce.tagName.toUpperCase()==="SCRIPT"&&Ce.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),i=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}),C=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}),u=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&&(i.value=0,r.value=o.index)});const l=()=>{o.preview&&(a.value=!0)},c=()=>{a.value=!1},m=()=>{u.value&&(r.value--,i.value=0)},w=()=>{p.value&&(r.value++,i.value=0)},P=A=>{i.value+=A};return(A,_)=>{const k=e.resolveComponent("v-progress-circular"),h=e.resolveComponent("v-img"),b=e.resolveComponent("VCardTitle"),B=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VIcon"),y=e.resolveComponent("VBtn"),D=e.resolveComponent("v-toolbar-title"),U=e.resolveComponent("VSpacer"),O=e.resolveComponent("v-toolbar-items"),F=e.resolveComponent("v-toolbar"),K=e.resolveComponent("VDialog");return e.openBlock(),e.createElementBlock("div",$a,[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",Ba,[e.createVNode(k,{indeterminate:"",color:"grey-lighten-1"})])]),_:1},16,["src","aspect-ratio"]),t.showTitle||t.showDescription?(e.openBlock(),e.createElementBlock("div",Ea,[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(B,{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(F,{dark:"",color:"primary"},{default:e.withCtx(()=>[e.createVNode(y,{icon:"",dark:"",onClick:c},{default:e.withCtx(()=>[e.createVNode($,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($,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($,null,{default:e.withCtx(()=>[..._[5]||(_[5]=[e.createTextVNode("mdi-rotate-right",-1)])]),_:1})]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",Da,[u.value?(e.openBlock(),e.createBlock(y,{key:0,icon:"",class:"nav-button prev-button",onClick:m},{default:e.withCtx(()=>[e.createVNode($,null,{default:e.withCtx(()=>[..._[6]||(_[6]=[e.createTextVNode("mdi-chevron-left",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createElementVNode("div",Ta,[e.createVNode(h,{src:n.value,class:"viewer-image",style:e.normalizeStyle({transform:`rotate(${i.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($,null,{default:e.withCtx(()=>[..._[7]||(_[7]=[e.createTextVNode("mdi-chevron-right",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Aa,[e.createElementVNode("p",Ma,e.toDisplayString(C.value),1),e.createElementVNode("p",Pa,e.toDisplayString(r.value+1)+" / "+e.toDisplayString(t.imageList.length),1)])]),_:1})]),_:1},8,["modelValue"])])}}}),Ae=Q(za,[["__scopeId","data-v-f2469415"]]),Ia={class:"m_pagination"},Fa={class:"page-total d-none d-md-flex align-center"},ja={class:"my-2"},Me=Q({__name:"VtkPage",props:{pageData:{type:Object,default:()=>({})},pageSizes:{type:Array,default:()=>[10,20,30]}},emits:["pageChange"],setup(t,{emit:o}){const a=t,i=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 C=()=>{/^[0-9]+$/.test(r.pageno)&&r.pageno<=n.value.pageCount?(n.value.pageno=parseInt(r.pageno),l()):r.pageno=n.value.pageno},u=()=>{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};i("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",Ia,[n.value.rowCount>0?(e.openBlock(),e.createBlock(_,{key:0,class:"pagination box",align:"center"},{default:e.withCtx(()=>[e.createElementVNode("span",Fa,"共"+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=>u())],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",ja,[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=>C(),["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"]]),Ua={class:"vtk-pdf-container"},La={key:0,class:"vtk-pdf-info"},Oa={class:"pdf-viewer-content"},Ra={key:0,class:"pdf-viewer-footer"},Ya={class:"mx-4"},qa={key:1,class:"pdf-loading"},Wa=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),i=e.ref(!1),r=e.ref(!1),d=e.ref(1),n=e.ref(0),f=e.ref(null);let C=null;const u=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,C=null,r.value=!1,d.value=1,n.value=0},c=async()=>{if(u.value){i.value=!0;try{await new Promise(_=>setTimeout(_,1e3)),n.value=10,r.value=!0}catch(_){console.error("加载PDF失败:",_)}finally{i.value=!1}}},m=async _=>{!C||f.value},w=()=>{d.value>1&&(d.value--,m(d.value))},P=()=>{d.value<n.value&&(d.value++,m(d.value))},A=async()=>{if(u.value)try{const _=await fetch(u.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),B=document.createElement("a");B.href=b,B.download=h,document.body.appendChild(B),B.click(),document.body.removeChild(B),window.URL.revokeObjectURL(b)}catch(_){console.error("下载PDF失败:",_),window.open(u.value,"_blank")}};return e.onBeforeUnmount(()=>{C=null}),(_,k)=>{const h=e.resolveComponent("VIcon"),b=e.resolveComponent("VCardTitle"),B=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VBtn"),y=e.resolveComponent("v-toolbar-title"),D=e.resolveComponent("VSpacer"),U=e.resolveComponent("v-toolbar-items"),O=e.resolveComponent("v-toolbar"),F=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",Ua,[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",La,[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(B,{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($,{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($,{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",Oa,[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",Ra,[e.createVNode(Y,{align:"center",justify:"center"},{default:e.withCtx(()=>[e.createVNode(F,{cols:"12",sm:"6",class:"d-flex justify-center"},{default:e.withCtx(()=>[e.createVNode($,{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",Ya,[e.createElementVNode("span",null,"第 "+e.toDisplayString(d.value)+" 页 / 共 "+e.toDisplayString(n.value)+" 页",1)]),e.createVNode($,{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(F,{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),i.value?(e.openBlock(),e.createElementBlock("div",qa,[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"])])}}}),Pe=Q(Wa,[["__scopeId","data-v-84f65a65"]]);function qe(t={}){const o=e.reactive({}),a=e.ref([]),i=e.ref(!1),r=e.ref(""),d=e.reactive({pageno:1,limit:10}),n=e.ref({}),f=e.ref({}),C=e.ref([]),u=e.ref(!1),p=e.ref({}),l=e.reactive(t),c=()=>{var O;p.value=oe.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();i.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(F=>{var K,Y,q;(Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),(F.meta.success||F.data)&&(a.value=((q=F.data)==null?void 0:q.rows)||[],n.value=F.data,f.value=F.data.sumup?F.data.sumup:{},C.value=F.data),i.value=!1}).catch(F=>{var K,Y;console.error("加载页面数据失败:",F),i.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:i,superQueryParams:r,page:d,pageData:n,sumup:f,pageDataCopy:C,overlay:u,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(F=>{F.meta.success?(G.toast("删除成功",{color:"success"}),m()):G.toast("删除失败",{color:"warning"})}).catch(F=>{console.error("删除失败:",F),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(F=>{F.meta.success?(G.toast("拷贝成功",{color:"success"}),m()):G.toast("拷贝失败",{color:"warning"})}).catch(F=>{console.error("拷贝失败:",F),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;u.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(F=>{var K,Y;if((Y=(K=window.$vtk)==null?void 0:K.message)!=null&&Y.loading&&window.$vtk.message.loading.hide(),F){const q=F.headers["content-disposition"],S=decodeURI(q.substring(q.indexOf("filename=")+9,q.length)),x=new Blob([F.data],{type:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(x);else{const I=document.createElement("a");I.style.display="none",I.href=URL.createObjectURL(x),I.download=S,document.body.appendChild(I),I.click(),document.body.removeChild(I)}}u.value=!1}).catch(F=>{var K,Y;console.error("导出数据失败:",F),u.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 Ka={key:0},Ja={key:0,class:"mb-0 expBox"},Ha={key:1,class:"text-red text-body-2 mb-2"},Qa={key:1},Ga={key:0,style:{width:"400px"}},Xa=["onClick"],Za={class:"vtk-cursor-pointer text-body-1 font-weight-bold mb-2"},va={class:"ml-3 text-grey"},eo={class:"mb-0 mt-2 text-grey"},to={class:"d-inline-block",style:{"min-width":"320px"}},ao={class:"text-blue"},oo=["title"],lo=["title"],no=["onClick"],ro={key:1,class:"state_btg text-right"},ze=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:i,loadPage:r,expData:d,desserts:n,loading:f,queryParam:C,url:u}=qe(o);Object.assign(C,{});const p=C,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),B=e.ref([]),z=e.ref([]),$=e.ref(!1),y=e.ref([]),D=e.ref(!1),U=e.ref({}),O=e.ref(""),F=e.ref(null);e.watch(B,M=>{M.length<y.value.length&&($.value=!1)},{deep:!0}),e.onActivated(()=>{alert("onActivated"),Y(),window.addEventListener("storage",M=>{var s;(s=JSON.parse(M==null?void 0:M.newValue))!=null&&s.fwez&&(c.value=="0"?x():r())})});const K=M=>{B.value=M?y.value:[]},Y=()=>{var M;_.value="",k.value=!1,l.value=q(),w.value=[],(M=l.value.permits)==null||M.forEach(s=>{s.permNkey.includes("biz_type")?(w.value.push(s),_.value=_.value+s.permNkey.slice(9)+","):s.permNkey=="btn_expo"&&(k.value=!0)}),p.bizType=_.value,S()},q=()=>{var M,s;try{return((s=(M=window.$vtk)==null?void 0:M.storage)==null?void 0:s.get("_mis_acis_users"))||{}}catch(Z){return console.warn("获取用户信息失败:",Z),{}}},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()},I=M=>{const s=M.servState==1?`#/mino/suse/view/${M.inst}?ddtab=true`:`#/mino/suse/exam/${M.inst}?ddtab=true`;window.open(s)},R=()=>{var M;(M=F.value)==null||M.add(p.projCode)},L=M=>{P.value=M.projName,p.projCode=M.projCode,delete p.bizType,J()},J=()=>{r()},te=()=>{P.value&&p.servState=="1"&&(B.value=[],z.value=[],W.postJson("/kudas/xfwez/exv",{codex:p}).then(M=>{M.meta.success?JSON.parse(M.data.formJson).forEach(s=>{["text","radio","number","time","checkbox","textarea","select"].includes(s.type)&&(s.value={name:s.name,valu:`${s.label}${s.valu&&s.valu.includes("/")&&s.valu.includes(":")?`(${s.valu})`:""}`},z.value.push(s),y.value.push(s.value))}):A.value=M.meta.message}))},ne=()=>{p.fields=B.value,d()},re=M=>{D.value=!0,U.value=M,O.value=""},le=()=>{O.value&&W.postForm(u.delete,{id:U.value.id,note:O.value}).then(M=>{M.meta.success&&(D.value=!1,r())})},se=()=>{},ie=M=>M?M.replace(/^(.{6})(?:\d+)(.{4})$/,"$1********$2"):"",me=M=>{if(!M)return"";const s=new Date(M);return`${s.getFullYear()}年${String(s.getMonth()+1).padStart(2,"0")}月${String(s.getDate()).padStart(2,"0")}日 ${String(s.getHours()).padStart(2,"0")}:${String(s.getMinutes()).padStart(2,"0")}:${String(s.getSeconds()).padStart(2,"0")}`},pe=M=>M=="0"?"bg-blue-lighten-5 text-blue":"bg-green-lighten-5 text-green",fe=M=>M=="0"?"服务中":"已服务",ge=M=>M=="0"?"bg-orange-lighten-5 text-orange":"bg-blue-lighten-5 text-blue",ce=M=>M=="0"?"未评价":"已评价",ue=M=>({100:"特殊渠道",101:"移动端代办",102:"窗口端通办",200:"特殊渠道",210:"浙里办App",211:"浙里办微信小程序",212:"浙里办支付宝小程序",230:"微信小程序",240:"支付宝小程序",250:"自助机",300:"特殊渠道",310:"服务外包代办"})[M]||M;return(M,s)=>{const Z=e.resolveComponent("VIcon"),N=e.resolveComponent("VTab"),g=e.resolveComponent("VSpacer"),V=e.resolveComponent("VTabs"),E=e.resolveComponent("VBtn"),v=e.resolveComponent("VDivider"),H=e.resolveComponent("VCheckbox"),de=e.resolveComponent("VCardTitle"),Ve=e.resolveComponent("VCard"),Oe=e.resolveComponent("VMenu"),Re=e.resolveComponent("VTextField"),wo=e.resolveComponent("vtk-area-tabs"),Ye=e.resolveComponent("vtk-select"),at=e.resolveComponent("VDatePicker"),bo=e.resolveComponent("vtk-search"),ye=e.resolveComponent("VChip"),ot=e.resolveComponent("VCol"),So=e.resolveComponent("VRow"),$o=e.resolveComponent("vtk-empty"),Bo=e.resolveComponent("VDataTable"),Eo=e.resolveComponent("vtk-page"),lt=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(V,{modelValue:c.value,"onUpdate:modelValue":s[1]||(s[1]=T=>c.value=T),"bg-color":"transparent",height:"38",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(N,{onClick:s[0]||(s[0]=T=>x())},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[22]||(s[22]=[e.createTextVNode("mdi-clipboard-arrow-up",-1)])]),_:1}),s[23]||(s[23]=e.createTextVNode("全部",-1))])]),_:1}),e.createVNode(N,{onClick:Y},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[24]||(s[24]=[e.createTextVNode("mdi-star-circle",-1)])]),_:1}),s[25]||(s[25]=e.createTextVNode("审核",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[26]||(s[26]=[e.createTextVNode("mdi-hand-heart",-1)])]),_:1}),s[27]||(s[27]=e.createTextVNode("实施",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[28]||(s[28]=[e.createTextVNode("mdi-comment-minus",-1)])]),_:1}),s[29]||(s[29]=e.createTextVNode("评价",-1))])]),_:1}),e.createVNode(N,{onClick:se},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(Z,{size:"16",class:"mr-1"},{default:e.withCtx(()=>[...s[30]||(s[30]=[e.createTextVNode("mdi-credit-card-check",-1)])]),_:1}),s[31]||(s[31]=e.createTextVNode("支付",-1))])]),_:1}),e.createVNode(g)]),_:1},8,["modelValue"]),e.createVNode(Ve,{elevation:"0",style:{"min-height":"calc(100% - 38px)"}},{default:e.withCtx(()=>[e.createVNode(de,{style:{height:"88px"}},{default:e.withCtx(()=>[c.value=="0"&&(k.value||l.value.grole>=2)?(e.openBlock(),e.createBlock(Oe,{key:0,"offset-y":"","close-on-content-click":!1,location:"bottom"},{activator:e.withCtx(({props:T})=>[e.createVNode(E,e.mergeProps({onClick:te},T,{class:"bg-orange text-white mr-3",elevation:"0"}),{default:e.withCtx(()=>[e.createVNode(Z,null,{default:e.withCtx(()=>[...s[32]||(s[32]=[e.createTextVNode("mdi-export-variant",-1)])]),_:1}),s[33]||(s[33]=e.createTextVNode(" 导出 ",-1))]),_:1},16)]),default:e.withCtx(()=>[e.createVNode(Ve,{class:"pa-3",width:"300"},{default:e.withCtx(()=>{var T;return[e.createElementVNode("div",null,[s[40]||(s[40]=e.createElementVNode("p",{class:"mb-2 font-weight-bold"},"公共字段",-1)),s[41]||(s[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(v),e.unref(p).servState=="1"&&P.value?(e.openBlock(),e.createElementBlock("div",Ka,[e.createVNode(de,{class:"pa-0 text-body-1 mb-2 pt-3"},{default:e.withCtx(()=>[e.createVNode(H,{"onUpdate:modelValue":[K,s[2]||(s[2]=ee=>$.value=ee)],modelValue:$.value,class:"mt-n1","hide-details":""},{append:e.withCtx(()=>[e.createVNode(Z,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...s[34]||(s[34]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue"]),s[35]||(s[35]=e.createElementVNode("span",{class:"font-weight-bold ml-n2"},"拓展字段",-1)),e.createVNode(g)]),_:1}),((T=z.value)==null?void 0:T.length)>0?(e.openBlock(),e.createElementBlock("p",Ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(ee,nt)=>(e.openBlock(),e.createBlock(H,{key:nt,modelValue:B.value,"onUpdate:modelValue":s[3]||(s[3]=zo=>B.value=zo),label:ee.label,value:{name:ee.name,valu:`${ee.label}${ee.valu&&ee.valu.includes("/")&&ee.valu.includes(":")?`(${ee.valu})`:""}`},class:"mt-2",multiple:"","hide-details":""},{append:e.withCtx(()=>[e.createVNode(Z,{class:"active",style:{display:"none"},size:"18"},{default:e.withCtx(()=>[...s[36]||(s[36]=[e.createTextVNode("mdi-check-circle",-1)])]),_:1})]),_:1},8,["modelValue","label","value"]))),128))])):(e.openBlock(),e.createElementBlock("p",Ha,e.toDisplayString(A.value),1))])):(e.openBlock(),e.createElementBlock("div",Qa,[s[39]||(s[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(Z,{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"]),s[37]||(s[37]=e.createTextVNode(" 导出数据仅限已服务信息 ",-1))],2),e.createElementVNode("p",{class:e.normalizeClass(["mb-2 text-body-2",P.value?"text-green":"text-red"])},[e.createVNode(Z,{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"]),s[38]||(s[38]=e.createTextVNode(" 至少选择一个服务事项导出 ",-1))],2)]))]),e.createVNode(E,{onClick:ne,disabled:!(P.value&&e.unref(p).servState=="1"),elevation:"0",color:"primary",class:"vtk-width mt-3",size:"small"},{default:e.withCtx(()=>[...s[42]||(s[42]=[e.createTextVNode("确认导出",-1)])]),_:1},8,["disabled"])]}),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(g),e.createVNode(bo,{modelValue:e.unref(p),"onUpdate:modelValue":s[17]||(s[17]=T=>e.isRef(p)?p.value=T:null),onSearch:J,placeholder:"输入姓名/身份证查询",styles:"width:320px"},{default:e.withCtx(()=>[e.createVNode(Re,{onClick:R,modelValue:P.value,"onUpdate:modelValue":s[4]||(s[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(wo,{modelValue:e.unref(p).areaCode,"onUpdate:modelValue":s[5]||(s[5]=T=>e.unref(p).areaCode=T),styles:"width:100%"},null,8,["modelValue"]),c.value==0?(e.openBlock(),e.createElementBlock("div",Ga,[e.createVNode(Ye,{modelValue:e.unref(p).servState,"onUpdate:modelValue":s[6]||(s[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(Ye,{modelValue:e.unref(p).rateState,"onUpdate:modelValue":s[7]||(s[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(Oe,{modelValue:h.value,"onUpdate:modelValue":s[11]||(s[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(Re,e.mergeProps({modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":s[8]||(s[8]=ee=>e.unref(p).servFtime0=ee),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(at,{modelValue:e.unref(p).servFtime0,"onUpdate:modelValue":[s[9]||(s[9]=T=>e.unref(p).servFtime0=T),s[10]||(s[10]=T=>h.value=!1)],title:"","view-mode":"month",max:e.unref(p).servFtime1},null,8,["modelValue","max"])]),_:1},8,["modelValue"]),s[43]||(s[43]=e.createElementVNode("span",{class:"mx-2"},"至",-1)),e.createVNode(Oe,{modelValue:b.value,"onUpdate:modelValue":s[15]||(s[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(Re,e.mergeProps({modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":s[12]||(s[12]=ee=>e.unref(p).servFtime1=ee),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(at,{modelValue:e.unref(p).servFtime1,"onUpdate:modelValue":[s[13]||(s[13]=T=>e.unref(p).servFtime1=T),s[14]||(s[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(Ye,{key:0,onChange:J,modelValue:e.unref(p).state,"onUpdate:modelValue":s[16]||(s[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(lt,null,{default:e.withCtx(()=>[e.createVNode(Bo,{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:ee=>I(T)},[e.createElementVNode("p",Za,[e.createTextVNode(e.toDisplayString(T.objsName),1),e.createElementVNode("span",va,e.toDisplayString(ie(T.objsCode)),1),e.createVNode(ye,{class:e.normalizeClass(["ml-2",pe(T.servState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(fe(T.servState)),1)]),_:2},1032,["class"]),e.createVNode(ye,{class:e.normalizeClass(["ml-2",ge(T.rateState)]),size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ce(T.rateState)),1)]),_:2},1032,["class"])]),e.createElementVNode("span",null,[e.createVNode(ye,{class:"bg-orange-lighten-5 text-orange",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 事项编码:"+e.toDisplayString(T.projCode),1)]),_:2},1024),e.createVNode(ye,{class:"text-primary ml-2",size:"small",label:""},{default:e.withCtx(()=>[e.createTextVNode(" 办件编号:"+e.toDisplayString(T.inst),1)]),_:2},1024)]),e.createElementVNode("div",eo,[e.createElementVNode("div",to,[s[44]||(s[44]=e.createTextVNode(" 服务名称:",-1)),e.createElementVNode("span",ao,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(ot,{style:{"max-width":"320px"}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请途径:"+e.toDisplayString(ue(T.servFrom)),9,oo)]),_:2},1024),e.createVNode(ot,null,{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.name,class:"d-block",style:{color:"#979797c2"}},"申请时间:"+e.toDisplayString(me(T.servCtime)),9,lo)]),_:2},1024)]),_:2},1024)],8,Xa)]),"item.actions":e.withCtx(({item:T})=>{var ee;return[T.state!=0&&((ee=l.value.areacode)==null?void 0:ee.length)==6&&T.servState=="1"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:nt=>re(T),class:"text-error",text:""},"作废",8,no)):e.createCommentVNode("",!0),T.state==0?(e.openBlock(),e.createElementBlock("div",ro)):e.createCommentVNode("",!0)]}),"no-data":e.withCtx(()=>[e.createVNode($o)]),_:2},1032,["headers","items","loading"]),e.createVNode(Eo,{"page-sizes":[10,20],"page-data":e.unref(a),onPageChange:e.unref(i)},null,8,["page-data","onPageChange"])]),_:1})]),_:1}),e.createVNode(Do,{ref_key:"MprojRef",ref:F,onToPage:L},null,512),e.createVNode(Mo,{modelValue:D.value,"onUpdate:modelValue":s[21]||(s[21]=T=>D.value=T),persistent:"","max-width":"500"},{default:e.withCtx(()=>[e.createVNode(Ve,null,{default:e.withCtx(()=>[e.createVNode(de,null,{default:e.withCtx(()=>[...s[45]||(s[45]=[e.createTextVNode("作废",-1)])]),_:1}),e.createVNode(lt,{class:"pb-0"},{default:e.withCtx(()=>[s[46]||(s[46]=e.createTextVNode(" 服务作废后将无法恢复,请谨慎操作!!! ",-1)),e.createVNode(To,{modelValue:O.value,"onUpdate:modelValue":s[18]||(s[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(g),e.createVNode(E,{onClick:s[19]||(s[19]=T=>D.value=!1),variant:"text"},{default:e.withCtx(()=>[...s[47]||(s[47]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(E,{onClick:s[20]||(s[20]=T=>le()),variant:"text"},{default:e.withCtx(()=>[...s[48]||(s[48]=[e.createTextVNode("确定",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),[["__scopeId","data-v-052be5fe"]]),Ie=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,i=o,r=e.useAttrs(),d=e.ref([]),n=()=>{a.list.split("/").forEach(u=>{const[p,l]=u.split(":");d.value.push({code:p,codeValue:l})})},f=async()=>{try{const u=await W.getForm(`dict/misc/list/${a.list}`);d.value=u.data||[]}catch(u){console.error("[VtkRadio] Failed to load dictionary:",u),d.value=[]}},C=u=>{i("update:modelValue",u)};return e.onMounted(()=>{a.list.includes(":")?n():f()}),(u,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":C}),{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"])}}}),so={class:"search"},Fe=Q(Object.assign({name:"VtkSearch"},{__name:"VtkSearch",props:{value:{type:Object,default:()=>({})}},emits:["update:value","search"],setup(t,{emit:o}){const a=t,i=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 C=()=>{d.value||(f.value=0)},u=()=>{d.value=!1,C()},p=()=>{u(),i("update:value",n.value),i("search")},l=()=>{Object.keys(n.value).forEach(c=>{c!=="condition"&&delete n.value[c]}),delete n.value.condition,f.value=0,i("update:value",n.value),i("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"),B=e.resolveComponent("VCardActions"),z=e.resolveComponent("VCard"),$=e.resolveComponent("VMenu");return e.openBlock(),e.createElementBlock("div",so,[e.createVNode($,{modelValue:d.value,"onUpdate:modelValue":[m[2]||(m[2]=y=>d.value=y),C],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:u,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(B,{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"]]),je=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,i=e.useAttrs(),r=e.computed(()=>{const{list:C,multi:u,...p}=i;return p}),d=e.ref([]),n=()=>{W.getForm(`dict/misc/list/${a.list}`).then(C=>{d.value=C.data})},f=()=>{a.list&&a.list.split("/").forEach(C=>{const u=C.split(":");d.value.push({code:u[0],codeValue:u[1]})})};return e.onMounted(()=>{a.list&&(a.list.includes(":")?f():n())}),(C,u)=>{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":u[0]||(u[0]=l=>C.$emit("update:modelValue",l))}),null,16,["items","multiple"])}}}),[["__scopeId","data-v-7cb05cd0"]]),io=["complete","step"],Ue=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),i=e.ref([]);e.watch(()=>o.el,d=>{a.value=d});const r=()=>{o.list&&(i.value=o.list.split(","))};return e.onMounted(()=>{r()}),e.watch(()=>o.list,()=>{r()}),(d,n)=>{const f=e.resolveComponent("VCol"),C=e.resolveComponent("VRow"),u=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(u,{class:"elevation-0",style:{overflow:"hidden"}},{default:e.withCtx(()=>[e.createVNode(C,{class:"stepList"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.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,io)]),_: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 We(t,o){let a="";return t&&t.includes(",")?a=t.split(",").map(i=>Ke(i,o)).join():a=Ke(t,o),a}function Ke(t,o){if(t){for(var a=Array.isArray(t)?t:t.split(","),i=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 i){var C=i[f].split(":");if(C[0]==n){r.push(C[1]);break}}}return r.length>0?r.join():"其他"}}function Je(t){if(!t)return"";let o="",a=["视力","听力","言语","肢体","智力","精神","多重"];for(let i=1;i<8;i++)i===1?o=t.replace(i.toString(),a[i-1]):o=o.replace(i.toString(),a[i-1]);return o}function He(t){if(!t)return"";let o="",a=["一级","二级","三级","四级","不限等级"];for(let i=1;i<7;i++)i===1?o=t.replace(i.toString(),a[i-1]):o=o.replace(i.toString(),a[i-1]);return o}const co=Object.freeze(Object.defineProperty({__proto__:null,analyLevel:He,analyType:Je,dict:We},Symbol.toStringTag,{value:"Module"}));function Qe(t,o){if(!t||t=="无"||t==null)return o="无",o;let a=new Date(t),i={"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 i)new RegExp("("+r+")").test(o)&&(o=o.replace(RegExp.$1,RegExp.$1.length===1?i[r]:("00"+i[r]).substr((""+i[r]).length)));return o}function Ge(t,o){if(isNaN(t)||t===""||t===null)return t;var a=parseFloat(t),i=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),C=d>0?"."+f.toString().split(".")[1]:"",u=d>0?Math.floor(r).toString():f.toString();return n&&u.length>3&&(u=u.replace(/\B(?=(\d{3})+(?!\d))/g,",")),i+u+C}function Xe(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 Ze(t,o){return(t==null?void 0:t.length)>o?t.slice(0,o)+"...":t}function ve(t){return isNaN(t)?0:Math.abs(t)}const mo=Object.freeze(Object.defineProperty({__proto__:null,abs:ve,age:Xe,date:Qe,num:Ge,txt:Ze},Symbol.toStringTag,{value:"Module"}));function et(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}function tt(t){if(t)return t.replace(/^(.{4})(?:\d+)(.{4})$/,"$1** **** ****$2")}const po=Object.freeze(Object.defineProperty({__proto__:null,idcard:tt,mobile:et},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"}},Le={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"}]},fo={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],C=n.split(""),u=17,p=0,l=0;l<u;l++)p+=C[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),i=a.replace(/(\d{4})(\d{2})(\d{2})/,"$1/$2/$3"),r=new Date(i),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日"),i=new Date().getFullYear()-t.substr(6,4)+1,r=t.substr(16,1)%2===0?"女":"男";return{area:o,birth:a,age:i,sex:r}}},go={__name:"alert",setup(t){const o=ae(),a=e.computed(()=>{var d;return((d=o.alert)==null?void 0:d.isActive)||!1}),i=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"),C=e.resolveComponent("VCardText"),u=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:i.value.width},{default:e.withCtx(()=>[e.createVNode(c,{color:i.value.color},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.title),1)]),_:1}),i.value.text?(e.openBlock(),e.createBlock(C,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.text),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(u),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"])}}},uo={__name:"confirm",setup(t){const o=ae(),a=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.isActive)||!1}),i=e.computed(()=>{var n;return((n=o.confirm)==null?void 0:n.options)||{}}),r=()=>{typeof i.value.onConfirm=="function"&&i.value.onConfirm(),o.hide("confirm")},d=()=>{typeof i.value.onCancel=="function"&&i.value.onCancel(),o.hide("confirm")};return(n,f)=>{const C=e.resolveComponent("VCardTitle"),u=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":i.value.width||400},{default:e.withCtx(()=>[e.createVNode(m,{color:i.value.color},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.title),1)]),_:1}),i.value.text?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.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(i.value.cancelText||"取消"),1)]),_:1}),e.createVNode(l,{text:"",onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.confirmText||"确定"),1)]),_:1})]),_:1})]),_:1},8,["color"])]),_:1},8,["modelValue","max-width"])}}},Vo={__name:"loading",setup(t){const o=ae(),a=e.computed(()=>{var i;return((i=o.loading)==null?void 0:i.isActive)||!1});return(i,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"])}}},ko={key:0,class:"mt-2"},ho={name:"vtkMessage",components:{vtkAlert:go,vtkConfirm:uo,vtkLoading:Vo,vtkPrompt:{__name:"prompt",setup(t){const o=ae(),a=e.ref(""),i=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,C)=>{const u=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:i.value,"onUpdate:modelValue":C[1]||(C[1]=_=>i.value=_),persistent:"",width:r.value.width},{default:e.withCtx(()=>[e.createVNode(P,{color:r.value.color},{default:e.withCtx(()=>[e.createVNode(u,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":C[0]||(C[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",ko,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=ae(),a=e.computed({get:()=>{var n;return((n=o.toast)==null?void 0:n.isActive)||!1},set:n=>{o.toast&&(o.toast.isActive=n)}}),i=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 C=e.resolveComponent("VIcon"),u=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:i.value.timeout>0?i.value.timeout:3e3,color:i.value.color,centered:""},{actions:e.withCtx(()=>[e.createVNode(u,{text:"",icon:"",onClick:f[0]||(f[0]=l=>r())},{default:e.withCtx(()=>[e.createVNode(C,null,{default:e.withCtx(()=>[...f[2]||(f[2]=[e.createTextVNode("mdi-close",-1)])]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.text)+" ",1)]),_:1},8,["modelValue","timeout","color"])}}},[["__scopeId","data-v-c08037e4"]])}},yo={class:"text-center"};function Co(t,o,a,i,r,d){const n=e.resolveComponent("vtk-alert"),f=e.resolveComponent("vtk-confirm"),C=e.resolveComponent("vtk-loading"),u=e.resolveComponent("vtk-prompt"),p=e.resolveComponent("vtk-toast");return e.openBlock(),e.createElementBlock("div",yo,[e.createVNode(n),e.createVNode(f),e.createVNode(C),e.createVNode(u),e.createVNode(p)])}const xo=Q(ho,[["render",Co]]);function _o(t,o={}){const a={VtkArea:xe,VtkAreaTabs:_e,VtkBreadcrumb:Ne,VtkCheckbox:we,VtkCount:be,VtkDatePicker:Se,VtkDateSelector:$e,VtkDept:Be,VtkEmpty:Ee,VtkFab:De,VtkFormItem:Te,VtkImg:Ae,VtkPage:Me,VtkPdf:Pe,VtkProj:ze,VtkRadio:Ie,VtkSearch:Fe,VtkSelect:je,VtkStepper:Ue,VtkMessage:xo};return Object.keys(a).forEach(i=>{t.component(i,a[i])}),t.config.globalProperties.$vtk={message:G,request:W,storage:oe,themes:Le,Validation:fo,filters:{...co,...po,...mo},...o},t}const No={install:_o,VtkArea:xe,VtkAreaTabs:_e,VtkBreadcrumb:Ne,VtkCheckbox:we,VtkCount:be,VtkDatePicker:Se,VtkDateSelector:$e,VtkDept:Be,VtkEmpty:Ee,VtkFab:De,VtkFormItem:Te,VtkImg:Ae,VtkPage:Me,VtkPdf:Pe,VtkProj:ze,VtkRadio:Ie,VtkSearch:Fe,VtkSelect:je,VtkStepper:Ue,request:W,storage:oe,themes:Le,vtkMessage:G};j.VtkArea=xe,j.VtkAreaTabs=_e,j.VtkBreadcrumb=Ne,j.VtkCheckbox=we,j.VtkCount=be,j.VtkDatePicker=Se,j.VtkDateSelector=$e,j.VtkDept=Be,j.VtkEmpty=Ee,j.VtkFab=De,j.VtkFormItem=Te,j.VtkImg=Ae,j.VtkPage=Me,j.VtkPdf=Pe,j.VtkProj=ze,j.VtkRadio=Ie,j.VtkSearch=Fe,j.VtkSelect=je,j.VtkStepper=Ue,j.abs=ve,j.age=Xe,j.analyLevel=He,j.analyType=Je,j.date=Qe,j.default=No,j.dict=We,j.idcard=tt,j.mobile=et,j.num=Ge,j.request=W,j.storage=oe,j.themes=Le,j.txt=Ze,j.useMixins=qe,j.vtkMessage=G,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
2
2
|
//# sourceMappingURL=specter-pui.umd.js.map
|