vc-unicloud-admin-ui 0.0.1 → 0.0.2

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/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";const Ie=require("@element-plus/icons-vue"),e=require("vue"),Ue=require("element-plus");function en(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const f=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,f.get?f:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const zt=en(Ie),tn={name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:16},bold:{type:Boolean,default:!1},pointer:{type:Boolean,default:!1}},nn=t=>{const s=uni.vc||{};return{iconStyle:e.computed(()=>{const{color:f,size:g,bold:i,pointer:c}=t;let k={color:f,fontSize:s.pubfn.addUnit(g)};return i&&(k.fontWeight="bold"),c&&(k.cursor="pointer"),k})}},on=t=>{const s=k=>!k||k.startsWith("vc-icon-")||k.startsWith("vc-custom-icon-")?!1:!!zt[k],a=e.computed(()=>!!t.name&&s(t.name)),f=e.computed(()=>t.name?t.name.startsWith("el-icon-")?c(t.name.replace("el-icon-","")):t.name:""),g=e.computed(()=>t.name?t.name.startsWith("vc-icon-")?`vc-icon- ${t.name}`:t.name.startsWith("vc-custom-icon-")?`vc-custom-icon- ${t.name}`:"":""),i=k=>k&&zt[k]||null,c=k=>k.replace(/-([a-z])/g,(T,v)=>v.toUpperCase()).replace(/^([a-z])/,(T,v)=>v.toUpperCase());return{iconName:f,isElIcon:a,iconClass:g,getElIconComponent:i}},an=e.defineComponent({name:"vc-data-icon",__name:"data-icon",props:tn,setup(t){const s=t,{iconName:a,isElIcon:f,iconClass:g,getElIconComponent:i}=on(s),{iconStyle:c}=nn(s);return(k,T)=>{const v=e.resolveComponent("el-icon");return e.unref(f)?(e.openBlock(),e.createBlock(v,{key:0,style:e.normalizeStyle(e.unref(c))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)(e.unref(a)))))]),_:1},8,["style"])):(e.openBlock(),e.createElementBlock("text",{key:1,class:e.normalizeClass(["vc-icon",e.unref(g)]),style:e.normalizeStyle(e.unref(c))},null,6))}}}),De=(t,s)=>{const a=t.__vccOpts||t;for(const[f,g]of s)a[f]=g;return a},cn=De(an,[["__scopeId","data-v-d8345c3b"]]),qe=["","large","default","small"],rn=["text","textarea","number","money","percentage","discount"],dn={modelValue:{type:[String,Number,Array],default:""},placeholder:{type:[String,Array],default:""},precision:{type:Number,default:2},autosize:{type:[Boolean,Object],default:!1},max:{type:Number,default:void 0},min:{type:Number,default:void 0},rightText:{type:String,default:""},showRightText:{type:Boolean,default:!0},allowNegative:{type:Boolean,default:!1},emptyValue:{type:[String,Number,null],default:null},range:{type:[Boolean,Number],default:!1},rangeSeparator:{type:String,default:"-"},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},mode:{type:String,values:rn,default:"number"},type:{type:String,default:"text"}},ln={"update:modelValue":t=>!0,input:t=>!0,change:t=>!0,focus:t=>!0,blur:t=>!0,clear:t=>!0,enter:t=>!0},sn=(t,s)=>{const a=uni.vc||{},f=e.ref(),g=e.ref(""),i=e.computed(()=>!!t.range),c={number:{factor:1,extraPrecision:0,max:1e11,supportMin:!0},money:{factor:100,extraPrecision:0,max:1e11,supportMin:!0},percentage:{factor:.01,extraPrecision:2,max:1e11,supportMin:!1},discount:{factor:.1,extraPrecision:1,max:10,supportMin:!1}},k=e.computed(()=>c[t.mode]||c.number),T=e.computed(()=>t.precision+k.value.extraPrecision),v=e.computed(()=>t.max!==void 0&&t.max!==null?t.max:k.value.max),N=e.computed(()=>t.mode==="text"||t.mode==="textarea"),y=e.computed(()=>{const M=t.range;return typeof M=="number"&&M>=2?Math.floor(M):2}),r=e.computed(()=>{const{rightText:M,mode:O}=t;if(M)return M;switch(O){case"percentage":return"%";case"discount":return"折";default:return""}}),m=e.computed(()=>M=>{const{placeholder:O}=t;return Array.isArray(O)?O[M]||"":O||""}),h=e.computed(()=>t.type&&t.type!=="text"?t.type:t.mode==="textarea"?"textarea":t.type||"text"),w=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),C=()=>!!t.allowNegative,u=M=>{const{factor:O}=k.value;return a.pubfn.toDecimal(M*O,T.value)},l=M=>{const{factor:O}=k.value;return a.pubfn.toDecimal(M/O,T.value)},d=M=>{if(!M)return"";let O=M;const K=t.precision,se=K!==0;if(C()){const fe=O.startsWith("-");O=O.replace(/[^\d.]/g,""),fe&&(O="-"+O)}else O=O.replace(/[^\d.]/g,"");if(se||(O=O.replace(/\./g,"")),(O.match(/\./g)||[]).length>1){const fe=O.split(".");O=fe[0]+"."+fe.slice(1).join("")}if(se&&K>0){const fe=O.indexOf(".");if(fe!==-1){const ge=O.substring(0,fe),Se=O.substring(fe+1);Se.length>K&&(O=ge+"."+Se.substring(0,K))}}return O},o=M=>{if(N.value)return t.range?Array.isArray(M)?M.map(se=>se??""):[""]:M??"";if(t.range){if(!Array.isArray(M))return["",""];const se=typeof t.range=="number"&&t.range>=2?Math.floor(t.range):2,ae=[];for(let fe=0;fe<se;fe++){const ge=M[fe];if(ge==null||ge==="")ae.push("");else{const Se=l(Number(ge));ae.push(isNaN(Se)?"":String(Se))}}return ae}if(M==null||M==="")return"";const O=Number(M);if(isNaN(O))return"";const K=l(O);return String(K)},p=M=>M===""||!isNaN(Number(M)),E=M=>t.range?Array.isArray(g.value)?g.value[M]??"":"":M===0?String(g.value??""):"",n=(M,O)=>{if(t.range){const K=Array.isArray(g.value)?[...g.value]:[];for(;K.length<y.value;)K.push("");K[M]=O,g.value=K}else M===0&&(g.value=O)},_=()=>{const M=t.range?y.value:1,O=[];for(let K=0;K<M;K++){const se=E(K);if(se===""||se===void 0||se===null)O.push(t.emptyValue);else{const ae=parseFloat(String(se));O.push(isNaN(ae)?"":u(ae))}}return t.range?O:O[0]},V=()=>{const M=t.range?y.value:1;let O=!0;for(let K=0;K<M;K++)if(!p(E(K))){O=!1;break}if(O){const K=_();s("update:modelValue",K),s("input",K)}},R=M=>{const{supportMin:O}=k.value,K=E(M);O&&t.min!==void 0&&t.min!==null&&K!==""&&Number(K)<t.min&&(n(M,""),V())},q=()=>{const M=t.modelValue;if(t.range){if(!Array.isArray(M))return;let O=!1;const K=M.slice();for(let se=0;se<K.length;se++){const ae=K[se];typeof ae=="string"&&ae!==""&&!isNaN(Number(ae))&&(K[se]=Number(ae),O=!0)}O&&(s("update:modelValue",K),s("input",K));return}typeof M=="string"&&M!==""&&!isNaN(Number(M))&&(s("update:modelValue",Number(M)),s("input",Number(M)))},I=M=>{if(t.range)return;if(N.value){g.value=M,s("update:modelValue",M),s("input",M);return}let O=d(M);if(O!==""&&O!=="-"&&!O.endsWith(".")){const ae=parseFloat(O);!isNaN(ae)&&ae>v.value&&(O=String(v.value))}if(g.value=O,O===""){s("update:modelValue",t.emptyValue),s("input",t.emptyValue);return}if(O==="-"||O.endsWith("."))return;const K=parseFloat(O);if(isNaN(K))return;const se=u(K);s("update:modelValue",se),s("input",se)},B=M=>{if(N.value){const K=g.value;K===""||K===void 0?t.modelValue!==null&&t.modelValue!==void 0&&t.modelValue!==""&&s("update:modelValue",t.emptyValue):s("update:modelValue",K),s("blur",M);return}R(0);const O=g.value;if(O!==""&&O!==void 0&&O!==null){if(isNaN(Number(O)))g.value="";else{const K=u(parseFloat(String(O)));g.value=String(l(K))}V()}s("blur",_())},P=M=>{s("focus",M)},Q=M=>{if(typeof M=="number"){R(M);return}R(0),s("change",p(g.value)?_():t.modelValue)},z=()=>{g.value="",V(),s("clear",_())},$=()=>{B(),s("enter",p(g.value)?_():t.modelValue)},x=M=>Array.isArray(g.value)&&g.value[M]||"",L=(M,O)=>{Array.isArray(g.value)||(g.value=[]);const K=[...g.value];for(;K.length<y.value;)K.push("");let se=d(O);if(se!==""&&se!=="-"&&!se.endsWith(".")){const ae=parseFloat(se);!isNaN(ae)&&ae>v.value&&(se=String(v.value))}K[M]=se,g.value=K,V()},re=M=>{R(M);const O=E(M);if(O!==""){if(isNaN(Number(O)))n(M,"");else{const K=u(parseFloat(String(O)));n(M,String(l(K)))}V()}s("blur",_())},ne=()=>{g.value=o(t.modelValue)};e.onMounted(()=>{q(),ne()}),e.watch(()=>t.modelValue,M=>{const O=g.value;if(N.value){if(t.range){const K=o(M);JSON.stringify(O)!==JSON.stringify(K)&&(g.value=K)}else String(O)!==String(M??"")&&(g.value=M??"");return}if(t.range){const K=o(M);JSON.stringify(O)!==JSON.stringify(K)&&(g.value=K)}else{const K=o(M);String(O)!==String(K)&&(O!==""&&K!==""&&Number(O)===Number(K)||(g.value=K))}},{deep:!0});const de=[];return{vc:a,elInputRef:f,isRange:i,isTextMode:N,rangeCount:y,rightText:r,getRangePlaceholder:m,customStyle:w,inputType:h,inputValue:g,handleInput:I,handleBlur:B,handleFocus:P,handleChange:Q,handleClear:z,handleEnter:$,getRangeValue:x,setRangeValue:L,onRangeBlur:re,setRangeInputRef:(M,O)=>{M&&(de[O]=M)},refAt:(M=0)=>t.range?de[M]||null:f.value||null}},un={class:"vc-data-input-numeric"},mn={key:0,class:"vc-data-input-numeric__range-separator"},pn=e.defineComponent({name:"vc-data-input-numeric",__name:"data-input-numeric",props:dn,emits:ln,setup(t,{expose:s,emit:a}){const f=t,g=a,{elInputRef:i,isRange:c,rangeCount:k,inputType:T,customStyle:v,rightText:N,getRangePlaceholder:y,inputValue:r,handleInput:m,handleBlur:h,handleFocus:w,handleChange:C,handleClear:u,handleEnter:l,getRangeValue:d,setRangeValue:o,onRangeBlur:p,setRangeInputRef:E,refAt:n}=sn(f,g);return s({focus:(_=0)=>{var V,R;return(R=(V=n(_))==null?void 0:V.focus)==null?void 0:R.call(V)},blur:(_=0)=>{var V,R;return(R=(V=n(_))==null?void 0:V.blur)==null?void 0:R.call(V)},select:(_=0)=>{var V,R;return(R=(V=n(_))==null?void 0:V.select)==null?void 0:R.call(V)}}),(_,V)=>{const R=e.resolveComponent("el-input"),q=e.resolveComponent("block");return e.openBlock(),e.createElementBlock("view",un,[e.unref(c)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"vc-data-input-numeric__range",style:e.normalizeStyle(e.unref(v))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(I,B)=>(e.openBlock(),e.createBlock(q,{key:B},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({class:"vc-data-input-numeric__range-input",ref_for:!0,ref:P=>e.unref(E)(P,B)},{ref_for:!0},_.$attrs,{"model-value":e.unref(d)(B),placeholder:e.unref(y)(B),disabled:_.disabled,readonly:_.readonly,size:_.vc.pubfn.elementUtil.getComponentSize(_.size),clearable:_.clearable,"onUpdate:modelValue":P=>e.unref(o)(B,P),onBlur:P=>e.unref(p)(B),onFocus:e.unref(w),onChange:P=>e.unref(C)(B),onClear:e.unref(u),onKeyup:e.withKeys(e.unref(l),["enter"])}),null,16,["model-value","placeholder","disabled","readonly","size","clearable","onUpdate:modelValue","onBlur","onFocus","onChange","onClear","onKeyup"]),B<e.unref(k)-1?(e.openBlock(),e.createElementBlock("span",mn,e.toDisplayString(_.rangeSeparator),1)):e.createCommentVNode("",!0)]),_:2},1024))),128))],4)):(e.openBlock(),e.createBlock(R,e.mergeProps({key:0,ref_key:"elInputRef",ref:i},_.$attrs,{modelValue:e.unref(r),"onUpdate:modelValue":V[0]||(V[0]=I=>e.isRef(r)?r.value=I:null),placeholder:e.unref(y)(0),disabled:_.disabled,readonly:_.readonly,size:_.vc.pubfn.elementUtil.getComponentSize(_.size),style:e.unref(v),clearable:_.clearable,type:e.unref(T),autosize:_.autosize,onInput:e.unref(m),onBlur:e.unref(h),onFocus:e.unref(w),onChange:e.unref(C),onClear:e.unref(u),onKeyup:e.withKeys(e.unref(l),["enter"])}),e.createSlots({_:2},[_.showRightText&&e.unref(N)?{name:"append",fn:e.withCtx(()=>[e.renderSlot(_.$slots,"append",{},()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(N)),1)],!0)]),key:"0"}:void 0]),1040,["modelValue","placeholder","disabled","readonly","size","style","clearable","type","autosize","onInput","onBlur","onFocus","onChange","onClear","onKeyup"]))])}}}),fn=De(pn,[["__scopeId","data-v-5bb5d357"]]),hn={modelValue:{type:[String,Number],default:void 0},placeholder:{type:String,default:""},precision:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:1e16},step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},size:{type:String,values:qe,default:""},disabled:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:{type:String,default:""},label:{type:String,default:""},width:{type:[String,Number],default:""},readonly:{type:Boolean,default:!1}},_n={"update:modelValue":t=>!0,input:t=>!0,change:t=>!0,blur:t=>!0,focus:t=>!0,enter:t=>!0},yn=(t,s)=>{const a=uni.vc||{},f=e.ref(),g=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{});return{vc:a,numberRef:f,customStyle:g,handleInput:N=>{s("update:modelValue",N),s("input",N)},handleChange:N=>{s("change",N)},handleBlur:()=>{s("blur",t.modelValue)},handleFocus:()=>{s("focus",t.modelValue)},handleEnter:()=>{s("enter",t.modelValue)}}},vn=e.defineComponent({name:"vc-data-input-number-box",inheritAttrs:!1,__name:"data-input-number-box",props:hn,emits:_n,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,numberRef:c,customStyle:k,handleInput:T,handleChange:v,handleBlur:N,handleFocus:y,handleEnter:r}=yn(f,g);return s({focus:()=>{var m;return(m=c.value)==null?void 0:m.focus()},blur:()=>{var m;return(m=c.value)==null?void 0:m.blur()}}),(m,h)=>{const w=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(w,e.mergeProps({ref_key:"numberRef",ref:c,class:"vc-data-input-number-box"},m.$attrs,{style:e.unref(k),"model-value":m.modelValue,placeholder:m.placeholder,size:e.unref(i).pubfn.elementUtil.getComponentSize(m.size),disabled:m.disabled,min:m.min,max:m.max,step:m.step,"step-strictly":m.stepStrictly,precision:m.precision,controls:m.controls,"controls-position":m.controlsPosition,name:m.name,"aria-label":m.label,readonly:m.readonly,"onUpdate:modelValue":e.unref(T),onChange:e.unref(v),onBlur:e.unref(N),onFocus:e.unref(y),onKeyup:e.withKeys(e.unref(r),["enter"])}),null,16,["style","model-value","placeholder","size","disabled","min","max","step","step-strictly","precision","controls","controls-position","name","aria-label","readonly","onUpdate:modelValue","onChange","onBlur","onFocus","onKeyup"])}}}),gn=["tree","view","form","code","text","preview"],bn={modelValue:{type:[String,Number,Object,Array],default:{}},expandedOnStart:{type:Boolean,default:!1},mode:{type:String,values:gn,default:"code"},modes:{type:Array,default:()=>["tree","code","form","text","view"]},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"300px"}},kn={"update:modelValue":t=>!0,change:t=>!0,error:t=>!0},wn=self.JSONEditor,Cn=t=>{const s=t.match(/^\s*(\/\*(.|[\r\n])*?\*\/)?\s*[\da-zA-Z_$]+\s*\(([\s\S]*)\)\s*;?\s*$/),a=s?s[3]:t,f=[];let g=0;const i=()=>a.charAt(g),c=()=>a.charAt(g+1),k=()=>{for(let r=f.length-1;r>=0;r--){const m=f[r];if(m!==" "&&m!==`
2
+ `&&m!=="\r"&&m!==" ")return m}return""},T=()=>{for(g+=2;g<a.length&&!(i()==="*"&&c()==="/");)g++;g+=2},v=()=>{for(g+=2;g<a.length&&i()!==`
3
+ `;)g++},N=r=>{f.push('"'),g++;let m=i();for(;g<a.length&&m!==r;)m==='"'&&a.charAt(g-1)!=="\\"&&f.push("\\"),m==="\\"&&(g++,m=i(),m!=="'"&&f.push("\\")),f.push(m),g++,m=i();m===r&&(f.push('"'),g++)},y=()=>{let r="",m=i();const h=/[a-zA-Z_$\d]/;for(;h.test(m);)r+=m,g++,m=i();["null","true","false"].indexOf(r)===-1?f.push('"'+r+'"'):f.push(r)};for(;g<a.length;){const r=i();r==="/"&&c()==="*"?T():r==="/"&&c()==="/"?v():r==="'"||r==='"'?N(r):/[a-zA-Z_$]/.test(r)&&(k()==="{"||k()===",")?y():(f.push(r),g++)}return f.join("")},Yt=t=>{if(!t||!t.trim())return{};try{return JSON.parse(t)}catch{try{return JSON.parse(Cn(t))}catch{return}}},Bn=(t,s)=>{const a=e.ref(null);let f=null,g=!1;const i=["tree","view","form"],c=e.computed(()=>{const y={};return(m=>{for(const h in m){const w=m[h];w!=null&&(y[h]=typeof w=="number"?`${w}px`:w)}return y})({width:t.width,height:t.height})}),k=y=>{if(y==null||y==="")return{};if(typeof y=="string"){const r=Yt(y);return r!==void 0?r:{}}return y},T=()=>{t.expandedOnStart&&f&&i.includes(f.getMode())&&f.expandAll()},v=y=>{if(f)try{f.set(k(y))}catch{}},N=()=>{if(!a.value)return;const y=t.disabled?"view":t.mode||"code",r=t.disabled?["view"]:t.modes||["tree","code","form","text","view"];f=new wn(a.value,{mode:y,modes:r,mainMenuBar:!1,statusBar:!1,onChange:()=>{try{const m=f.getText(),h=Yt(m);if(h===void 0)return;g=!0,s("update:modelValue",h),s("change",h),e.nextTick(()=>{g=!1})}catch(m){s("error",m)}},onModeChange:()=>{T()},onError:m=>{s("error",m)}},k(t.modelValue)),T()};return e.onMounted(()=>{N()}),e.onBeforeUnmount(()=>{f&&(f.destroy(),f=null)}),e.watch(()=>t.modelValue,y=>{g||(v(y),T())},{deep:!0}),e.watch(()=>t.disabled,y=>{f&&f.setMode(y?"view":t.mode||"code")}),{editorRef:a,styleCom:c}},Sn=e.defineComponent({name:"vc-data-input-json",__name:"data-input-json",props:bn,emits:kn,setup(t,{emit:s}){const a=t,f=s,{editorRef:g,styleCom:i}=Bn(a,f);return(c,k)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"editorRef",ref:g,class:"jsoneditor-vue",style:e.normalizeStyle(e.unref(i))},null,4))}}),Vn=De(Sn,[["__scopeId","data-v-ca38744b"]]),Nn={modelValue:{type:Object,default:()=>({})},localdata:{type:[Array,Function],default:()=>[]},size:{type:String,values:qe,default:""},placeholder:{type:String,default:void 0},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},level:{type:Number,default:3},props:{type:Object,default:()=>({})},width:{type:[String,Number],default:""}},Tn={"update:modelValue":t=>!0,change:t=>!0},Ot=[{code:"110000",name:"北京市",children:[{code:"110100",name:"北京市",parent_code:"110000",children:[{code:"110101",name:"东城区",parent_code:"110100"},{code:"110102",name:"西城区",parent_code:"110100"},{code:"110105",name:"朝阳区",parent_code:"110100"},{code:"110106",name:"丰台区",parent_code:"110100"},{code:"110107",name:"石景山区",parent_code:"110100"},{code:"110108",name:"海淀区",parent_code:"110100"},{code:"110109",name:"门头沟区",parent_code:"110100"},{code:"110111",name:"房山区",parent_code:"110100"},{code:"110112",name:"通州区",parent_code:"110100"},{code:"110113",name:"顺义区",parent_code:"110100"},{code:"110114",name:"昌平区",parent_code:"110100"},{code:"110115",name:"大兴区",parent_code:"110100"},{code:"110116",name:"怀柔区",parent_code:"110100"},{code:"110117",name:"平谷区",parent_code:"110100"},{code:"110118",name:"密云区",parent_code:"110100"},{code:"110119",name:"延庆区",parent_code:"110100"}]}]},{code:"120000",name:"天津市",children:[{code:"120100",name:"天津市",parent_code:"120000",children:[{code:"120101",name:"和平区",parent_code:"120100"},{code:"120102",name:"河东区",parent_code:"120100"},{code:"120103",name:"河西区",parent_code:"120100"},{code:"120104",name:"南开区",parent_code:"120100"},{code:"120105",name:"河北区",parent_code:"120100"},{code:"120106",name:"红桥区",parent_code:"120100"},{code:"120110",name:"东丽区",parent_code:"120100"},{code:"120111",name:"西青区",parent_code:"120100"},{code:"120112",name:"津南区",parent_code:"120100"},{code:"120113",name:"北辰区",parent_code:"120100"},{code:"120114",name:"武清区",parent_code:"120100"},{code:"120115",name:"宝坻区",parent_code:"120100"},{code:"120116",name:"滨海新区",parent_code:"120100"},{code:"120117",name:"宁河区",parent_code:"120100"},{code:"120118",name:"静海区",parent_code:"120100"},{code:"120119",name:"蓟州区",parent_code:"120100"}]}]},{code:"130000",name:"河北省",children:[{code:"130100",name:"石家庄市",parent_code:"130000",children:[{code:"130102",name:"长安区",parent_code:"130100"},{code:"130104",name:"桥西区",parent_code:"130100"},{code:"130105",name:"新华区",parent_code:"130100"},{code:"130107",name:"井陉矿区",parent_code:"130100"},{code:"130108",name:"裕华区",parent_code:"130100"},{code:"130109",name:"藁城区",parent_code:"130100"},{code:"130110",name:"鹿泉区",parent_code:"130100"},{code:"130111",name:"栾城区",parent_code:"130100"},{code:"130121",name:"井陉县",parent_code:"130100"},{code:"130123",name:"正定县",parent_code:"130100"},{code:"130125",name:"行唐县",parent_code:"130100"},{code:"130126",name:"灵寿县",parent_code:"130100"},{code:"130127",name:"高邑县",parent_code:"130100"},{code:"130128",name:"深泽县",parent_code:"130100"},{code:"130129",name:"赞皇县",parent_code:"130100"},{code:"130130",name:"无极县",parent_code:"130100"},{code:"130131",name:"平山县",parent_code:"130100"},{code:"130132",name:"元氏县",parent_code:"130100"},{code:"130133",name:"赵县",parent_code:"130100"},{code:"130171",name:"石家庄高新技术产业开发区",parent_code:"130100"},{code:"130172",name:"石家庄循环化工园区",parent_code:"130100"},{code:"130181",name:"辛集市",parent_code:"130100"},{code:"130183",name:"晋州市",parent_code:"130100"},{code:"130184",name:"新乐市",parent_code:"130100"}]},{code:"130200",name:"唐山市",parent_code:"130000",children:[{code:"130202",name:"路南区",parent_code:"130200"},{code:"130203",name:"路北区",parent_code:"130200"},{code:"130204",name:"古冶区",parent_code:"130200"},{code:"130205",name:"开平区",parent_code:"130200"},{code:"130207",name:"丰南区",parent_code:"130200"},{code:"130208",name:"丰润区",parent_code:"130200"},{code:"130209",name:"曹妃甸区",parent_code:"130200"},{code:"130224",name:"滦南县",parent_code:"130200"},{code:"130225",name:"乐亭县",parent_code:"130200"},{code:"130227",name:"迁西县",parent_code:"130200"},{code:"130229",name:"玉田县",parent_code:"130200"},{code:"130271",name:"河北唐山芦台经济开发区",parent_code:"130200"},{code:"130272",name:"唐山市汉沽管理区",parent_code:"130200"},{code:"130273",name:"唐山高新技术产业开发区",parent_code:"130200"},{code:"130274",name:"河北唐山海港经济开发区",parent_code:"130200"},{code:"130281",name:"遵化市",parent_code:"130200"},{code:"130283",name:"迁安市",parent_code:"130200"},{code:"130284",name:"滦州市",parent_code:"130200"}]},{code:"130300",name:"秦皇岛市",parent_code:"130000",children:[{code:"130302",name:"海港区",parent_code:"130300"},{code:"130303",name:"山海关区",parent_code:"130300"},{code:"130304",name:"北戴河区",parent_code:"130300"},{code:"130306",name:"抚宁区",parent_code:"130300"},{code:"130321",name:"青龙满族自治县",parent_code:"130300"},{code:"130322",name:"昌黎县",parent_code:"130300"},{code:"130324",name:"卢龙县",parent_code:"130300"},{code:"130371",name:"秦皇岛市经济技术开发区",parent_code:"130300"},{code:"130372",name:"北戴河新区",parent_code:"130300"}]},{code:"130400",name:"邯郸市",parent_code:"130000",children:[{code:"130402",name:"邯山区",parent_code:"130400"},{code:"130403",name:"丛台区",parent_code:"130400"},{code:"130404",name:"复兴区",parent_code:"130400"},{code:"130406",name:"峰峰矿区",parent_code:"130400"},{code:"130407",name:"肥乡区",parent_code:"130400"},{code:"130408",name:"永年区",parent_code:"130400"},{code:"130423",name:"临漳县",parent_code:"130400"},{code:"130424",name:"成安县",parent_code:"130400"},{code:"130425",name:"大名县",parent_code:"130400"},{code:"130426",name:"涉县",parent_code:"130400"},{code:"130427",name:"磁县",parent_code:"130400"},{code:"130430",name:"邱县",parent_code:"130400"},{code:"130431",name:"鸡泽县",parent_code:"130400"},{code:"130432",name:"广平县",parent_code:"130400"},{code:"130433",name:"馆陶县",parent_code:"130400"},{code:"130434",name:"魏县",parent_code:"130400"},{code:"130435",name:"曲周县",parent_code:"130400"},{code:"130471",name:"邯郸经济技术开发区",parent_code:"130400"},{code:"130473",name:"邯郸冀南新区",parent_code:"130400"},{code:"130481",name:"武安市",parent_code:"130400"}]},{code:"130500",name:"邢台市",parent_code:"130000",children:[{code:"130502",name:"襄都区",parent_code:"130500"},{code:"130503",name:"信都区",parent_code:"130500"},{code:"130505",name:"任泽区",parent_code:"130500"},{code:"130506",name:"南和区",parent_code:"130500"},{code:"130522",name:"临城县",parent_code:"130500"},{code:"130523",name:"内丘县",parent_code:"130500"},{code:"130524",name:"柏乡县",parent_code:"130500"},{code:"130525",name:"隆尧县",parent_code:"130500"},{code:"130528",name:"宁晋县",parent_code:"130500"},{code:"130529",name:"巨鹿县",parent_code:"130500"},{code:"130530",name:"新河县",parent_code:"130500"},{code:"130531",name:"广宗县",parent_code:"130500"},{code:"130532",name:"平乡县",parent_code:"130500"},{code:"130533",name:"威县",parent_code:"130500"},{code:"130534",name:"清河县",parent_code:"130500"},{code:"130535",name:"临西县",parent_code:"130500"},{code:"130571",name:"河北邢台经济开发区",parent_code:"130500"},{code:"130581",name:"南宫市",parent_code:"130500"},{code:"130582",name:"沙河市",parent_code:"130500"}]},{code:"130600",name:"保定市",parent_code:"130000",children:[{code:"130602",name:"竞秀区",parent_code:"130600"},{code:"130606",name:"莲池区",parent_code:"130600"},{code:"130607",name:"满城区",parent_code:"130600"},{code:"130608",name:"清苑区",parent_code:"130600"},{code:"130609",name:"徐水区",parent_code:"130600"},{code:"130623",name:"涞水县",parent_code:"130600"},{code:"130624",name:"阜平县",parent_code:"130600"},{code:"130626",name:"定兴县",parent_code:"130600"},{code:"130627",name:"唐县",parent_code:"130600"},{code:"130628",name:"高阳县",parent_code:"130600"},{code:"130629",name:"容城县",parent_code:"130600"},{code:"130630",name:"涞源县",parent_code:"130600"},{code:"130631",name:"望都县",parent_code:"130600"},{code:"130632",name:"安新县",parent_code:"130600"},{code:"130633",name:"易县",parent_code:"130600"},{code:"130634",name:"曲阳县",parent_code:"130600"},{code:"130635",name:"蠡县",parent_code:"130600"},{code:"130636",name:"顺平县",parent_code:"130600"},{code:"130637",name:"博野县",parent_code:"130600"},{code:"130638",name:"雄县",parent_code:"130600"},{code:"130671",name:"保定高新技术产业开发区",parent_code:"130600"},{code:"130672",name:"保定白沟新城",parent_code:"130600"},{code:"130681",name:"涿州市",parent_code:"130600"},{code:"130682",name:"定州市",parent_code:"130600"},{code:"130683",name:"安国市",parent_code:"130600"},{code:"130684",name:"高碑店市",parent_code:"130600"}]},{code:"130700",name:"张家口市",parent_code:"130000",children:[{code:"130702",name:"桥东区",parent_code:"130700"},{code:"130703",name:"桥西区",parent_code:"130700"},{code:"130705",name:"宣化区",parent_code:"130700"},{code:"130706",name:"下花园区",parent_code:"130700"},{code:"130708",name:"万全区",parent_code:"130700"},{code:"130709",name:"崇礼区",parent_code:"130700"},{code:"130722",name:"张北县",parent_code:"130700"},{code:"130723",name:"康保县",parent_code:"130700"},{code:"130724",name:"沽源县",parent_code:"130700"},{code:"130725",name:"尚义县",parent_code:"130700"},{code:"130726",name:"蔚县",parent_code:"130700"},{code:"130727",name:"阳原县",parent_code:"130700"},{code:"130728",name:"怀安县",parent_code:"130700"},{code:"130730",name:"怀来县",parent_code:"130700"},{code:"130731",name:"涿鹿县",parent_code:"130700"},{code:"130732",name:"赤城县",parent_code:"130700"},{code:"130771",name:"张家口经济开发区",parent_code:"130700"},{code:"130772",name:"张家口市察北管理区",parent_code:"130700"},{code:"130773",name:"张家口市塞北管理区",parent_code:"130700"}]},{code:"130800",name:"承德市",parent_code:"130000",children:[{code:"130802",name:"双桥区",parent_code:"130800"},{code:"130803",name:"双滦区",parent_code:"130800"},{code:"130804",name:"鹰手营子矿区",parent_code:"130800"},{code:"130821",name:"承德县",parent_code:"130800"},{code:"130822",name:"兴隆县",parent_code:"130800"},{code:"130824",name:"滦平县",parent_code:"130800"},{code:"130825",name:"隆化县",parent_code:"130800"},{code:"130826",name:"丰宁满族自治县",parent_code:"130800"},{code:"130827",name:"宽城满族自治县",parent_code:"130800"},{code:"130828",name:"围场满族蒙古族自治县",parent_code:"130800"},{code:"130871",name:"承德高新技术产业开发区",parent_code:"130800"},{code:"130881",name:"平泉市",parent_code:"130800"}]},{code:"130900",name:"沧州市",parent_code:"130000",children:[{code:"130902",name:"新华区",parent_code:"130900"},{code:"130903",name:"运河区",parent_code:"130900"},{code:"130921",name:"沧县",parent_code:"130900"},{code:"130922",name:"青县",parent_code:"130900"},{code:"130923",name:"东光县",parent_code:"130900"},{code:"130924",name:"海兴县",parent_code:"130900"},{code:"130925",name:"盐山县",parent_code:"130900"},{code:"130926",name:"肃宁县",parent_code:"130900"},{code:"130927",name:"南皮县",parent_code:"130900"},{code:"130928",name:"吴桥县",parent_code:"130900"},{code:"130929",name:"献县",parent_code:"130900"},{code:"130930",name:"孟村回族自治县",parent_code:"130900"},{code:"130971",name:"河北沧州经济开发区",parent_code:"130900"},{code:"130972",name:"沧州高新技术产业开发区",parent_code:"130900"},{code:"130973",name:"沧州渤海新区",parent_code:"130900"},{code:"130981",name:"泊头市",parent_code:"130900"},{code:"130982",name:"任丘市",parent_code:"130900"},{code:"130983",name:"黄骅市",parent_code:"130900"},{code:"130984",name:"河间市",parent_code:"130900"}]},{code:"131000",name:"廊坊市",parent_code:"130000",children:[{code:"131002",name:"安次区",parent_code:"131000"},{code:"131003",name:"广阳区",parent_code:"131000"},{code:"131022",name:"固安县",parent_code:"131000"},{code:"131023",name:"永清县",parent_code:"131000"},{code:"131024",name:"香河县",parent_code:"131000"},{code:"131025",name:"大城县",parent_code:"131000"},{code:"131026",name:"文安县",parent_code:"131000"},{code:"131028",name:"大厂回族自治县",parent_code:"131000"},{code:"131071",name:"廊坊经济技术开发区",parent_code:"131000"},{code:"131081",name:"霸州市",parent_code:"131000"},{code:"131082",name:"三河市",parent_code:"131000"}]},{code:"131100",name:"衡水市",parent_code:"130000",children:[{code:"131102",name:"桃城区",parent_code:"131100"},{code:"131103",name:"冀州区",parent_code:"131100"},{code:"131121",name:"枣强县",parent_code:"131100"},{code:"131122",name:"武邑县",parent_code:"131100"},{code:"131123",name:"武强县",parent_code:"131100"},{code:"131124",name:"饶阳县",parent_code:"131100"},{code:"131125",name:"安平县",parent_code:"131100"},{code:"131126",name:"故城县",parent_code:"131100"},{code:"131127",name:"景县",parent_code:"131100"},{code:"131128",name:"阜城县",parent_code:"131100"},{code:"131171",name:"河北衡水高新技术产业开发区",parent_code:"131100"},{code:"131172",name:"衡水滨湖新区",parent_code:"131100"},{code:"131182",name:"深州市",parent_code:"131100"}]}]},{code:"140000",name:"山西省",children:[{code:"140100",name:"太原市",parent_code:"140000",children:[{code:"140105",name:"小店区",parent_code:"140100"},{code:"140106",name:"迎泽区",parent_code:"140100"},{code:"140107",name:"杏花岭区",parent_code:"140100"},{code:"140108",name:"尖草坪区",parent_code:"140100"},{code:"140109",name:"万柏林区",parent_code:"140100"},{code:"140110",name:"晋源区",parent_code:"140100"},{code:"140121",name:"清徐县",parent_code:"140100"},{code:"140122",name:"阳曲县",parent_code:"140100"},{code:"140123",name:"娄烦县",parent_code:"140100"},{code:"140171",name:"山西转型综合改革示范区",parent_code:"140100"},{code:"140181",name:"古交市",parent_code:"140100"}]},{code:"140200",name:"大同市",parent_code:"140000",children:[{code:"140212",name:"新荣区",parent_code:"140200"},{code:"140213",name:"平城区",parent_code:"140200"},{code:"140214",name:"云冈区",parent_code:"140200"},{code:"140215",name:"云州区",parent_code:"140200"},{code:"140221",name:"阳高县",parent_code:"140200"},{code:"140222",name:"天镇县",parent_code:"140200"},{code:"140223",name:"广灵县",parent_code:"140200"},{code:"140224",name:"灵丘县",parent_code:"140200"},{code:"140225",name:"浑源县",parent_code:"140200"},{code:"140226",name:"左云县",parent_code:"140200"},{code:"140271",name:"山西大同经济开发区",parent_code:"140200"}]},{code:"140300",name:"阳泉市",parent_code:"140000",children:[{code:"140302",name:"城区",parent_code:"140300"},{code:"140303",name:"矿区",parent_code:"140300"},{code:"140311",name:"郊区",parent_code:"140300"},{code:"140321",name:"平定县",parent_code:"140300"},{code:"140322",name:"盂县",parent_code:"140300"}]},{code:"140400",name:"长治市",parent_code:"140000",children:[{code:"140403",name:"潞州区",parent_code:"140400"},{code:"140404",name:"上党区",parent_code:"140400"},{code:"140405",name:"屯留区",parent_code:"140400"},{code:"140406",name:"潞城区",parent_code:"140400"},{code:"140423",name:"襄垣县",parent_code:"140400"},{code:"140425",name:"平顺县",parent_code:"140400"},{code:"140426",name:"黎城县",parent_code:"140400"},{code:"140427",name:"壶关县",parent_code:"140400"},{code:"140428",name:"长子县",parent_code:"140400"},{code:"140429",name:"武乡县",parent_code:"140400"},{code:"140430",name:"沁县",parent_code:"140400"},{code:"140431",name:"沁源县",parent_code:"140400"}]},{code:"140500",name:"晋城市",parent_code:"140000",children:[{code:"140502",name:"城区",parent_code:"140500"},{code:"140521",name:"沁水县",parent_code:"140500"},{code:"140522",name:"阳城县",parent_code:"140500"},{code:"140524",name:"陵川县",parent_code:"140500"},{code:"140525",name:"泽州县",parent_code:"140500"},{code:"140581",name:"高平市",parent_code:"140500"}]},{code:"140600",name:"朔州市",parent_code:"140000",children:[{code:"140602",name:"朔城区",parent_code:"140600"},{code:"140603",name:"平鲁区",parent_code:"140600"},{code:"140621",name:"山阴县",parent_code:"140600"},{code:"140622",name:"应县",parent_code:"140600"},{code:"140623",name:"右玉县",parent_code:"140600"},{code:"140671",name:"山西朔州经济开发区",parent_code:"140600"},{code:"140681",name:"怀仁市",parent_code:"140600"}]},{code:"140700",name:"晋中市",parent_code:"140000",children:[{code:"140702",name:"榆次区",parent_code:"140700"},{code:"140703",name:"太谷区",parent_code:"140700"},{code:"140721",name:"榆社县",parent_code:"140700"},{code:"140722",name:"左权县",parent_code:"140700"},{code:"140723",name:"和顺县",parent_code:"140700"},{code:"140724",name:"昔阳县",parent_code:"140700"},{code:"140725",name:"寿阳县",parent_code:"140700"},{code:"140727",name:"祁县",parent_code:"140700"},{code:"140728",name:"平遥县",parent_code:"140700"},{code:"140729",name:"灵石县",parent_code:"140700"},{code:"140781",name:"介休市",parent_code:"140700"}]},{code:"140800",name:"运城市",parent_code:"140000",children:[{code:"140802",name:"盐湖区",parent_code:"140800"},{code:"140821",name:"临猗县",parent_code:"140800"},{code:"140822",name:"万荣县",parent_code:"140800"},{code:"140823",name:"闻喜县",parent_code:"140800"},{code:"140824",name:"稷山县",parent_code:"140800"},{code:"140825",name:"新绛县",parent_code:"140800"},{code:"140826",name:"绛县",parent_code:"140800"},{code:"140827",name:"垣曲县",parent_code:"140800"},{code:"140828",name:"夏县",parent_code:"140800"},{code:"140829",name:"平陆县",parent_code:"140800"},{code:"140830",name:"芮城县",parent_code:"140800"},{code:"140881",name:"永济市",parent_code:"140800"},{code:"140882",name:"河津市",parent_code:"140800"}]},{code:"140900",name:"忻州市",parent_code:"140000",children:[{code:"140902",name:"忻府区",parent_code:"140900"},{code:"140921",name:"定襄县",parent_code:"140900"},{code:"140922",name:"五台县",parent_code:"140900"},{code:"140923",name:"代县",parent_code:"140900"},{code:"140924",name:"繁峙县",parent_code:"140900"},{code:"140925",name:"宁武县",parent_code:"140900"},{code:"140926",name:"静乐县",parent_code:"140900"},{code:"140927",name:"神池县",parent_code:"140900"},{code:"140928",name:"五寨县",parent_code:"140900"},{code:"140929",name:"岢岚县",parent_code:"140900"},{code:"140930",name:"河曲县",parent_code:"140900"},{code:"140931",name:"保德县",parent_code:"140900"},{code:"140932",name:"偏关县",parent_code:"140900"},{code:"140971",name:"五台山风景名胜区",parent_code:"140900"},{code:"140981",name:"原平市",parent_code:"140900"}]},{code:"141000",name:"临汾市",parent_code:"140000",children:[{code:"141002",name:"尧都区",parent_code:"141000"},{code:"141021",name:"曲沃县",parent_code:"141000"},{code:"141022",name:"翼城县",parent_code:"141000"},{code:"141023",name:"襄汾县",parent_code:"141000"},{code:"141024",name:"洪洞县",parent_code:"141000"},{code:"141025",name:"古县",parent_code:"141000"},{code:"141026",name:"安泽县",parent_code:"141000"},{code:"141027",name:"浮山县",parent_code:"141000"},{code:"141028",name:"吉县",parent_code:"141000"},{code:"141029",name:"乡宁县",parent_code:"141000"},{code:"141030",name:"大宁县",parent_code:"141000"},{code:"141031",name:"隰县",parent_code:"141000"},{code:"141032",name:"永和县",parent_code:"141000"},{code:"141033",name:"蒲县",parent_code:"141000"},{code:"141034",name:"汾西县",parent_code:"141000"},{code:"141081",name:"侯马市",parent_code:"141000"},{code:"141082",name:"霍州市",parent_code:"141000"}]},{code:"141100",name:"吕梁市",parent_code:"140000",children:[{code:"141102",name:"离石区",parent_code:"141100"},{code:"141121",name:"文水县",parent_code:"141100"},{code:"141122",name:"交城县",parent_code:"141100"},{code:"141123",name:"兴县",parent_code:"141100"},{code:"141124",name:"临县",parent_code:"141100"},{code:"141125",name:"柳林县",parent_code:"141100"},{code:"141126",name:"石楼县",parent_code:"141100"},{code:"141127",name:"岚县",parent_code:"141100"},{code:"141128",name:"方山县",parent_code:"141100"},{code:"141129",name:"中阳县",parent_code:"141100"},{code:"141130",name:"交口县",parent_code:"141100"},{code:"141181",name:"孝义市",parent_code:"141100"},{code:"141182",name:"汾阳市",parent_code:"141100"}]}]},{code:"150000",name:"内蒙古自治区",children:[{code:"150100",name:"呼和浩特市",parent_code:"150000",children:[{code:"150102",name:"新城区",parent_code:"150100"},{code:"150103",name:"回民区",parent_code:"150100"},{code:"150104",name:"玉泉区",parent_code:"150100"},{code:"150105",name:"赛罕区",parent_code:"150100"},{code:"150121",name:"土默特左旗",parent_code:"150100"},{code:"150122",name:"托克托县",parent_code:"150100"},{code:"150123",name:"和林格尔县",parent_code:"150100"},{code:"150124",name:"清水河县",parent_code:"150100"},{code:"150125",name:"武川县",parent_code:"150100"},{code:"150172",name:"呼和浩特经济技术开发区",parent_code:"150100"}]},{code:"150200",name:"包头市",parent_code:"150000",children:[{code:"150202",name:"东河区",parent_code:"150200"},{code:"150203",name:"昆都仑区",parent_code:"150200"},{code:"150204",name:"青山区",parent_code:"150200"},{code:"150205",name:"石拐区",parent_code:"150200"},{code:"150206",name:"白云鄂博矿区",parent_code:"150200"},{code:"150207",name:"九原区",parent_code:"150200"},{code:"150221",name:"土默特右旗",parent_code:"150200"},{code:"150222",name:"固阳县",parent_code:"150200"},{code:"150223",name:"达尔罕茂明安联合旗",parent_code:"150200"},{code:"150271",name:"包头稀土高新技术产业开发区",parent_code:"150200"}]},{code:"150300",name:"乌海市",parent_code:"150000",children:[{code:"150302",name:"海勃湾区",parent_code:"150300"},{code:"150303",name:"海南区",parent_code:"150300"},{code:"150304",name:"乌达区",parent_code:"150300"}]},{code:"150400",name:"赤峰市",parent_code:"150000",children:[{code:"150402",name:"红山区",parent_code:"150400"},{code:"150403",name:"元宝山区",parent_code:"150400"},{code:"150404",name:"松山区",parent_code:"150400"},{code:"150421",name:"阿鲁科尔沁旗",parent_code:"150400"},{code:"150422",name:"巴林左旗",parent_code:"150400"},{code:"150423",name:"巴林右旗",parent_code:"150400"},{code:"150424",name:"林西县",parent_code:"150400"},{code:"150425",name:"克什克腾旗",parent_code:"150400"},{code:"150426",name:"翁牛特旗",parent_code:"150400"},{code:"150428",name:"喀喇沁旗",parent_code:"150400"},{code:"150429",name:"宁城县",parent_code:"150400"},{code:"150430",name:"敖汉旗",parent_code:"150400"}]},{code:"150500",name:"通辽市",parent_code:"150000",children:[{code:"150502",name:"科尔沁区",parent_code:"150500"},{code:"150521",name:"科尔沁左翼中旗",parent_code:"150500"},{code:"150522",name:"科尔沁左翼后旗",parent_code:"150500"},{code:"150523",name:"开鲁县",parent_code:"150500"},{code:"150524",name:"库伦旗",parent_code:"150500"},{code:"150525",name:"奈曼旗",parent_code:"150500"},{code:"150526",name:"扎鲁特旗",parent_code:"150500"},{code:"150571",name:"通辽经济技术开发区",parent_code:"150500"},{code:"150581",name:"霍林郭勒市",parent_code:"150500"}]},{code:"150600",name:"鄂尔多斯市",parent_code:"150000",children:[{code:"150602",name:"东胜区",parent_code:"150600"},{code:"150603",name:"康巴什区",parent_code:"150600"},{code:"150621",name:"达拉特旗",parent_code:"150600"},{code:"150622",name:"准格尔旗",parent_code:"150600"},{code:"150623",name:"鄂托克前旗",parent_code:"150600"},{code:"150624",name:"鄂托克旗",parent_code:"150600"},{code:"150625",name:"杭锦旗",parent_code:"150600"},{code:"150626",name:"乌审旗",parent_code:"150600"},{code:"150627",name:"伊金霍洛旗",parent_code:"150600"}]},{code:"150700",name:"呼伦贝尔市",parent_code:"150000",children:[{code:"150702",name:"海拉尔区",parent_code:"150700"},{code:"150703",name:"扎赉诺尔区",parent_code:"150700"},{code:"150721",name:"阿荣旗",parent_code:"150700"},{code:"150722",name:"莫力达瓦达斡尔族自治旗",parent_code:"150700"},{code:"150723",name:"鄂伦春自治旗",parent_code:"150700"},{code:"150724",name:"鄂温克族自治旗",parent_code:"150700"},{code:"150725",name:"陈巴尔虎旗",parent_code:"150700"},{code:"150726",name:"新巴尔虎左旗",parent_code:"150700"},{code:"150727",name:"新巴尔虎右旗",parent_code:"150700"},{code:"150781",name:"满洲里市",parent_code:"150700"},{code:"150782",name:"牙克石市",parent_code:"150700"},{code:"150783",name:"扎兰屯市",parent_code:"150700"},{code:"150784",name:"额尔古纳市",parent_code:"150700"},{code:"150785",name:"根河市",parent_code:"150700"}]},{code:"150800",name:"巴彦淖尔市",parent_code:"150000",children:[{code:"150802",name:"临河区",parent_code:"150800"},{code:"150821",name:"五原县",parent_code:"150800"},{code:"150822",name:"磴口县",parent_code:"150800"},{code:"150823",name:"乌拉特前旗",parent_code:"150800"},{code:"150824",name:"乌拉特中旗",parent_code:"150800"},{code:"150825",name:"乌拉特后旗",parent_code:"150800"},{code:"150826",name:"杭锦后旗",parent_code:"150800"}]},{code:"150900",name:"乌兰察布市",parent_code:"150000",children:[{code:"150902",name:"集宁区",parent_code:"150900"},{code:"150921",name:"卓资县",parent_code:"150900"},{code:"150922",name:"化德县",parent_code:"150900"},{code:"150923",name:"商都县",parent_code:"150900"},{code:"150924",name:"兴和县",parent_code:"150900"},{code:"150925",name:"凉城县",parent_code:"150900"},{code:"150926",name:"察哈尔右翼前旗",parent_code:"150900"},{code:"150927",name:"察哈尔右翼中旗",parent_code:"150900"},{code:"150928",name:"察哈尔右翼后旗",parent_code:"150900"},{code:"150929",name:"四子王旗",parent_code:"150900"},{code:"150981",name:"丰镇市",parent_code:"150900"}]},{code:"152200",name:"兴安盟",parent_code:"150000",children:[{code:"152201",name:"乌兰浩特市",parent_code:"152200"},{code:"152202",name:"阿尔山市",parent_code:"152200"},{code:"152221",name:"科尔沁右翼前旗",parent_code:"152200"},{code:"152222",name:"科尔沁右翼中旗",parent_code:"152200"},{code:"152223",name:"扎赉特旗",parent_code:"152200"},{code:"152224",name:"突泉县",parent_code:"152200"}]},{code:"152500",name:"锡林郭勒盟",parent_code:"150000",children:[{code:"152501",name:"二连浩特市",parent_code:"152500"},{code:"152502",name:"锡林浩特市",parent_code:"152500"},{code:"152522",name:"阿巴嘎旗",parent_code:"152500"},{code:"152523",name:"苏尼特左旗",parent_code:"152500"},{code:"152524",name:"苏尼特右旗",parent_code:"152500"},{code:"152525",name:"东乌珠穆沁旗",parent_code:"152500"},{code:"152526",name:"西乌珠穆沁旗",parent_code:"152500"},{code:"152527",name:"太仆寺旗",parent_code:"152500"},{code:"152528",name:"镶黄旗",parent_code:"152500"},{code:"152529",name:"正镶白旗",parent_code:"152500"},{code:"152530",name:"正蓝旗",parent_code:"152500"},{code:"152531",name:"多伦县",parent_code:"152500"},{code:"152571",name:"乌拉盖管理区管委会",parent_code:"152500"}]},{code:"152900",name:"阿拉善盟",parent_code:"150000",children:[{code:"152921",name:"阿拉善左旗",parent_code:"152900"},{code:"152922",name:"阿拉善右旗",parent_code:"152900"},{code:"152923",name:"额济纳旗",parent_code:"152900"},{code:"152971",name:"内蒙古阿拉善高新技术产业开发区",parent_code:"152900"}]}]},{code:"210000",name:"辽宁省",children:[{code:"210100",name:"沈阳市",parent_code:"210000",children:[{code:"210102",name:"和平区",parent_code:"210100"},{code:"210103",name:"沈河区",parent_code:"210100"},{code:"210104",name:"大东区",parent_code:"210100"},{code:"210105",name:"皇姑区",parent_code:"210100"},{code:"210106",name:"铁西区",parent_code:"210100"},{code:"210111",name:"苏家屯区",parent_code:"210100"},{code:"210112",name:"浑南区",parent_code:"210100"},{code:"210113",name:"沈北新区",parent_code:"210100"},{code:"210114",name:"于洪区",parent_code:"210100"},{code:"210115",name:"辽中区",parent_code:"210100"},{code:"210123",name:"康平县",parent_code:"210100"},{code:"210124",name:"法库县",parent_code:"210100"},{code:"210181",name:"新民市",parent_code:"210100"}]},{code:"210200",name:"大连市",parent_code:"210000",children:[{code:"210202",name:"中山区",parent_code:"210200"},{code:"210203",name:"西岗区",parent_code:"210200"},{code:"210204",name:"沙河口区",parent_code:"210200"},{code:"210211",name:"甘井子区",parent_code:"210200"},{code:"210212",name:"旅顺口区",parent_code:"210200"},{code:"210213",name:"金州区",parent_code:"210200"},{code:"210214",name:"普兰店区",parent_code:"210200"},{code:"210224",name:"长海县",parent_code:"210200"},{code:"210281",name:"瓦房店市",parent_code:"210200"},{code:"210283",name:"庄河市",parent_code:"210200"}]},{code:"210300",name:"鞍山市",parent_code:"210000",children:[{code:"210302",name:"铁东区",parent_code:"210300"},{code:"210303",name:"铁西区",parent_code:"210300"},{code:"210304",name:"立山区",parent_code:"210300"},{code:"210311",name:"千山区",parent_code:"210300"},{code:"210321",name:"台安县",parent_code:"210300"},{code:"210323",name:"岫岩满族自治县",parent_code:"210300"},{code:"210381",name:"海城市",parent_code:"210300"}]},{code:"210400",name:"抚顺市",parent_code:"210000",children:[{code:"210402",name:"新抚区",parent_code:"210400"},{code:"210403",name:"东洲区",parent_code:"210400"},{code:"210404",name:"望花区",parent_code:"210400"},{code:"210411",name:"顺城区",parent_code:"210400"},{code:"210421",name:"抚顺县",parent_code:"210400"},{code:"210422",name:"新宾满族自治县",parent_code:"210400"},{code:"210423",name:"清原满族自治县",parent_code:"210400"}]},{code:"210500",name:"本溪市",parent_code:"210000",children:[{code:"210502",name:"平山区",parent_code:"210500"},{code:"210503",name:"溪湖区",parent_code:"210500"},{code:"210504",name:"明山区",parent_code:"210500"},{code:"210505",name:"南芬区",parent_code:"210500"},{code:"210521",name:"本溪满族自治县",parent_code:"210500"},{code:"210522",name:"桓仁满族自治县",parent_code:"210500"}]},{code:"210600",name:"丹东市",parent_code:"210000",children:[{code:"210602",name:"元宝区",parent_code:"210600"},{code:"210603",name:"振兴区",parent_code:"210600"},{code:"210604",name:"振安区",parent_code:"210600"},{code:"210624",name:"宽甸满族自治县",parent_code:"210600"},{code:"210681",name:"东港市",parent_code:"210600"},{code:"210682",name:"凤城市",parent_code:"210600"}]},{code:"210700",name:"锦州市",parent_code:"210000",children:[{code:"210702",name:"古塔区",parent_code:"210700"},{code:"210703",name:"凌河区",parent_code:"210700"},{code:"210711",name:"太和区",parent_code:"210700"},{code:"210726",name:"黑山县",parent_code:"210700"},{code:"210727",name:"义县",parent_code:"210700"},{code:"210781",name:"凌海市",parent_code:"210700"},{code:"210782",name:"北镇市",parent_code:"210700"}]},{code:"210800",name:"营口市",parent_code:"210000",children:[{code:"210802",name:"站前区",parent_code:"210800"},{code:"210803",name:"西市区",parent_code:"210800"},{code:"210804",name:"鲅鱼圈区",parent_code:"210800"},{code:"210811",name:"老边区",parent_code:"210800"},{code:"210881",name:"盖州市",parent_code:"210800"},{code:"210882",name:"大石桥市",parent_code:"210800"}]},{code:"210900",name:"阜新市",parent_code:"210000",children:[{code:"210902",name:"海州区",parent_code:"210900"},{code:"210903",name:"新邱区",parent_code:"210900"},{code:"210904",name:"太平区",parent_code:"210900"},{code:"210905",name:"清河门区",parent_code:"210900"},{code:"210911",name:"细河区",parent_code:"210900"},{code:"210921",name:"阜新蒙古族自治县",parent_code:"210900"},{code:"210922",name:"彰武县",parent_code:"210900"}]},{code:"211000",name:"辽阳市",parent_code:"210000",children:[{code:"211002",name:"白塔区",parent_code:"211000"},{code:"211003",name:"文圣区",parent_code:"211000"},{code:"211004",name:"宏伟区",parent_code:"211000"},{code:"211005",name:"弓长岭区",parent_code:"211000"},{code:"211011",name:"太子河区",parent_code:"211000"},{code:"211021",name:"辽阳县",parent_code:"211000"},{code:"211081",name:"灯塔市",parent_code:"211000"}]},{code:"211100",name:"盘锦市",parent_code:"210000",children:[{code:"211102",name:"双台子区",parent_code:"211100"},{code:"211103",name:"兴隆台区",parent_code:"211100"},{code:"211104",name:"大洼区",parent_code:"211100"},{code:"211122",name:"盘山县",parent_code:"211100"}]},{code:"211200",name:"铁岭市",parent_code:"210000",children:[{code:"211202",name:"银州区",parent_code:"211200"},{code:"211204",name:"清河区",parent_code:"211200"},{code:"211221",name:"铁岭县",parent_code:"211200"},{code:"211223",name:"西丰县",parent_code:"211200"},{code:"211224",name:"昌图县",parent_code:"211200"},{code:"211281",name:"调兵山市",parent_code:"211200"},{code:"211282",name:"开原市",parent_code:"211200"}]},{code:"211300",name:"朝阳市",parent_code:"210000",children:[{code:"211302",name:"双塔区",parent_code:"211300"},{code:"211303",name:"龙城区",parent_code:"211300"},{code:"211321",name:"朝阳县",parent_code:"211300"},{code:"211322",name:"建平县",parent_code:"211300"},{code:"211324",name:"喀喇沁左翼蒙古族自治县",parent_code:"211300"},{code:"211381",name:"北票市",parent_code:"211300"},{code:"211382",name:"凌源市",parent_code:"211300"}]},{code:"211400",name:"葫芦岛市",parent_code:"210000",children:[{code:"211402",name:"连山区",parent_code:"211400"},{code:"211403",name:"龙港区",parent_code:"211400"},{code:"211404",name:"南票区",parent_code:"211400"},{code:"211421",name:"绥中县",parent_code:"211400"},{code:"211422",name:"建昌县",parent_code:"211400"},{code:"211481",name:"兴城市",parent_code:"211400"}]}]},{code:"220000",name:"吉林省",children:[{code:"220100",name:"长春市",parent_code:"220000",children:[{code:"220102",name:"南关区",parent_code:"220100"},{code:"220103",name:"宽城区",parent_code:"220100"},{code:"220104",name:"朝阳区",parent_code:"220100"},{code:"220105",name:"二道区",parent_code:"220100"},{code:"220106",name:"绿园区",parent_code:"220100"},{code:"220112",name:"双阳区",parent_code:"220100"},{code:"220113",name:"九台区",parent_code:"220100"},{code:"220122",name:"农安县",parent_code:"220100"},{code:"220171",name:"长春经济技术开发区",parent_code:"220100"},{code:"220172",name:"长春净月高新技术产业开发区",parent_code:"220100"},{code:"220173",name:"长春高新技术产业开发区",parent_code:"220100"},{code:"220174",name:"长春汽车经济技术开发区",parent_code:"220100"},{code:"220182",name:"榆树市",parent_code:"220100"},{code:"220183",name:"德惠市",parent_code:"220100"},{code:"220184",name:"公主岭市",parent_code:"220100"}]},{code:"220200",name:"吉林市",parent_code:"220000",children:[{code:"220202",name:"昌邑区",parent_code:"220200"},{code:"220203",name:"龙潭区",parent_code:"220200"},{code:"220204",name:"船营区",parent_code:"220200"},{code:"220211",name:"丰满区",parent_code:"220200"},{code:"220221",name:"永吉县",parent_code:"220200"},{code:"220271",name:"吉林经济开发区",parent_code:"220200"},{code:"220272",name:"吉林高新技术产业开发区",parent_code:"220200"},{code:"220273",name:"吉林中国新加坡食品区",parent_code:"220200"},{code:"220281",name:"蛟河市",parent_code:"220200"},{code:"220282",name:"桦甸市",parent_code:"220200"},{code:"220283",name:"舒兰市",parent_code:"220200"},{code:"220284",name:"磐石市",parent_code:"220200"}]},{code:"220300",name:"四平市",parent_code:"220000",children:[{code:"220302",name:"铁西区",parent_code:"220300"},{code:"220303",name:"铁东区",parent_code:"220300"},{code:"220322",name:"梨树县",parent_code:"220300"},{code:"220323",name:"伊通满族自治县",parent_code:"220300"},{code:"220382",name:"双辽市",parent_code:"220300"}]},{code:"220400",name:"辽源市",parent_code:"220000",children:[{code:"220402",name:"龙山区",parent_code:"220400"},{code:"220403",name:"西安区",parent_code:"220400"},{code:"220421",name:"东丰县",parent_code:"220400"},{code:"220422",name:"东辽县",parent_code:"220400"}]},{code:"220500",name:"通化市",parent_code:"220000",children:[{code:"220502",name:"东昌区",parent_code:"220500"},{code:"220503",name:"二道江区",parent_code:"220500"},{code:"220521",name:"通化县",parent_code:"220500"},{code:"220523",name:"辉南县",parent_code:"220500"},{code:"220524",name:"柳河县",parent_code:"220500"},{code:"220581",name:"梅河口市",parent_code:"220500"},{code:"220582",name:"集安市",parent_code:"220500"}]},{code:"220600",name:"白山市",parent_code:"220000",children:[{code:"220602",name:"浑江区",parent_code:"220600"},{code:"220605",name:"江源区",parent_code:"220600"},{code:"220621",name:"抚松县",parent_code:"220600"},{code:"220622",name:"靖宇县",parent_code:"220600"},{code:"220623",name:"长白朝鲜族自治县",parent_code:"220600"},{code:"220681",name:"临江市",parent_code:"220600"}]},{code:"220700",name:"松原市",parent_code:"220000",children:[{code:"220702",name:"宁江区",parent_code:"220700"},{code:"220721",name:"前郭尔罗斯蒙古族自治县",parent_code:"220700"},{code:"220722",name:"长岭县",parent_code:"220700"},{code:"220723",name:"乾安县",parent_code:"220700"},{code:"220771",name:"吉林松原经济开发区",parent_code:"220700"},{code:"220781",name:"扶余市",parent_code:"220700"}]},{code:"220800",name:"白城市",parent_code:"220000",children:[{code:"220802",name:"洮北区",parent_code:"220800"},{code:"220821",name:"镇赉县",parent_code:"220800"},{code:"220822",name:"通榆县",parent_code:"220800"},{code:"220871",name:"吉林白城经济开发区",parent_code:"220800"},{code:"220881",name:"洮南市",parent_code:"220800"},{code:"220882",name:"大安市",parent_code:"220800"}]},{code:"222400",name:"延边朝鲜族自治州",parent_code:"220000",children:[{code:"222401",name:"延吉市",parent_code:"222400"},{code:"222402",name:"图们市",parent_code:"222400"},{code:"222403",name:"敦化市",parent_code:"222400"},{code:"222404",name:"珲春市",parent_code:"222400"},{code:"222405",name:"龙井市",parent_code:"222400"},{code:"222406",name:"和龙市",parent_code:"222400"},{code:"222424",name:"汪清县",parent_code:"222400"},{code:"222426",name:"安图县",parent_code:"222400"}]}]},{code:"230000",name:"黑龙江省",children:[{code:"230100",name:"哈尔滨市",parent_code:"230000",children:[{code:"230102",name:"道里区",parent_code:"230100"},{code:"230103",name:"南岗区",parent_code:"230100"},{code:"230104",name:"道外区",parent_code:"230100"},{code:"230108",name:"平房区",parent_code:"230100"},{code:"230109",name:"松北区",parent_code:"230100"},{code:"230110",name:"香坊区",parent_code:"230100"},{code:"230111",name:"呼兰区",parent_code:"230100"},{code:"230112",name:"阿城区",parent_code:"230100"},{code:"230113",name:"双城区",parent_code:"230100"},{code:"230123",name:"依兰县",parent_code:"230100"},{code:"230124",name:"方正县",parent_code:"230100"},{code:"230125",name:"宾县",parent_code:"230100"},{code:"230126",name:"巴彦县",parent_code:"230100"},{code:"230127",name:"木兰县",parent_code:"230100"},{code:"230128",name:"通河县",parent_code:"230100"},{code:"230129",name:"延寿县",parent_code:"230100"},{code:"230183",name:"尚志市",parent_code:"230100"},{code:"230184",name:"五常市",parent_code:"230100"}]},{code:"230200",name:"齐齐哈尔市",parent_code:"230000",children:[{code:"230202",name:"龙沙区",parent_code:"230200"},{code:"230203",name:"建华区",parent_code:"230200"},{code:"230204",name:"铁锋区",parent_code:"230200"},{code:"230205",name:"昂昂溪区",parent_code:"230200"},{code:"230206",name:"富拉尔基区",parent_code:"230200"},{code:"230207",name:"碾子山区",parent_code:"230200"},{code:"230208",name:"梅里斯达斡尔族区",parent_code:"230200"},{code:"230221",name:"龙江县",parent_code:"230200"},{code:"230223",name:"依安县",parent_code:"230200"},{code:"230224",name:"泰来县",parent_code:"230200"},{code:"230225",name:"甘南县",parent_code:"230200"},{code:"230227",name:"富裕县",parent_code:"230200"},{code:"230229",name:"克山县",parent_code:"230200"},{code:"230230",name:"克东县",parent_code:"230200"},{code:"230231",name:"拜泉县",parent_code:"230200"},{code:"230281",name:"讷河市",parent_code:"230200"}]},{code:"230300",name:"鸡西市",parent_code:"230000",children:[{code:"230302",name:"鸡冠区",parent_code:"230300"},{code:"230303",name:"恒山区",parent_code:"230300"},{code:"230304",name:"滴道区",parent_code:"230300"},{code:"230305",name:"梨树区",parent_code:"230300"},{code:"230306",name:"城子河区",parent_code:"230300"},{code:"230307",name:"麻山区",parent_code:"230300"},{code:"230321",name:"鸡东县",parent_code:"230300"},{code:"230381",name:"虎林市",parent_code:"230300"},{code:"230382",name:"密山市",parent_code:"230300"}]},{code:"230400",name:"鹤岗市",parent_code:"230000",children:[{code:"230402",name:"向阳区",parent_code:"230400"},{code:"230403",name:"工农区",parent_code:"230400"},{code:"230404",name:"南山区",parent_code:"230400"},{code:"230405",name:"兴安区",parent_code:"230400"},{code:"230406",name:"东山区",parent_code:"230400"},{code:"230407",name:"兴山区",parent_code:"230400"},{code:"230421",name:"萝北县",parent_code:"230400"},{code:"230422",name:"绥滨县",parent_code:"230400"}]},{code:"230500",name:"双鸭山市",parent_code:"230000",children:[{code:"230502",name:"尖山区",parent_code:"230500"},{code:"230503",name:"岭东区",parent_code:"230500"},{code:"230505",name:"四方台区",parent_code:"230500"},{code:"230506",name:"宝山区",parent_code:"230500"},{code:"230521",name:"集贤县",parent_code:"230500"},{code:"230522",name:"友谊县",parent_code:"230500"},{code:"230523",name:"宝清县",parent_code:"230500"},{code:"230524",name:"饶河县",parent_code:"230500"}]},{code:"230600",name:"大庆市",parent_code:"230000",children:[{code:"230602",name:"萨尔图区",parent_code:"230600"},{code:"230603",name:"龙凤区",parent_code:"230600"},{code:"230604",name:"让胡路区",parent_code:"230600"},{code:"230605",name:"红岗区",parent_code:"230600"},{code:"230606",name:"大同区",parent_code:"230600"},{code:"230621",name:"肇州县",parent_code:"230600"},{code:"230622",name:"肇源县",parent_code:"230600"},{code:"230623",name:"林甸县",parent_code:"230600"},{code:"230624",name:"杜尔伯特蒙古族自治县",parent_code:"230600"},{code:"230671",name:"大庆高新技术产业开发区",parent_code:"230600"}]},{code:"230700",name:"伊春市",parent_code:"230000",children:[{code:"230717",name:"伊美区",parent_code:"230700"},{code:"230718",name:"乌翠区",parent_code:"230700"},{code:"230719",name:"友好区",parent_code:"230700"},{code:"230722",name:"嘉荫县",parent_code:"230700"},{code:"230723",name:"汤旺县",parent_code:"230700"},{code:"230724",name:"丰林县",parent_code:"230700"},{code:"230725",name:"大箐山县",parent_code:"230700"},{code:"230726",name:"南岔县",parent_code:"230700"},{code:"230751",name:"金林区",parent_code:"230700"},{code:"230781",name:"铁力市",parent_code:"230700"}]},{code:"230800",name:"佳木斯市",parent_code:"230000",children:[{code:"230803",name:"向阳区",parent_code:"230800"},{code:"230804",name:"前进区",parent_code:"230800"},{code:"230805",name:"东风区",parent_code:"230800"},{code:"230811",name:"郊区",parent_code:"230800"},{code:"230822",name:"桦南县",parent_code:"230800"},{code:"230826",name:"桦川县",parent_code:"230800"},{code:"230828",name:"汤原县",parent_code:"230800"},{code:"230881",name:"同江市",parent_code:"230800"},{code:"230882",name:"富锦市",parent_code:"230800"},{code:"230883",name:"抚远市",parent_code:"230800"}]},{code:"230900",name:"七台河市",parent_code:"230000",children:[{code:"230902",name:"新兴区",parent_code:"230900"},{code:"230903",name:"桃山区",parent_code:"230900"},{code:"230904",name:"茄子河区",parent_code:"230900"},{code:"230921",name:"勃利县",parent_code:"230900"}]},{code:"231000",name:"牡丹江市",parent_code:"230000",children:[{code:"231002",name:"东安区",parent_code:"231000"},{code:"231003",name:"阳明区",parent_code:"231000"},{code:"231004",name:"爱民区",parent_code:"231000"},{code:"231005",name:"西安区",parent_code:"231000"},{code:"231025",name:"林口县",parent_code:"231000"},{code:"231081",name:"绥芬河市",parent_code:"231000"},{code:"231083",name:"海林市",parent_code:"231000"},{code:"231084",name:"宁安市",parent_code:"231000"},{code:"231085",name:"穆棱市",parent_code:"231000"},{code:"231086",name:"东宁市",parent_code:"231000"}]},{code:"231100",name:"黑河市",parent_code:"230000",children:[{code:"231102",name:"爱辉区",parent_code:"231100"},{code:"231123",name:"逊克县",parent_code:"231100"},{code:"231124",name:"孙吴县",parent_code:"231100"},{code:"231181",name:"北安市",parent_code:"231100"},{code:"231182",name:"五大连池市",parent_code:"231100"},{code:"231183",name:"嫩江市",parent_code:"231100"}]},{code:"231200",name:"绥化市",parent_code:"230000",children:[{code:"231202",name:"北林区",parent_code:"231200"},{code:"231221",name:"望奎县",parent_code:"231200"},{code:"231222",name:"兰西县",parent_code:"231200"},{code:"231223",name:"青冈县",parent_code:"231200"},{code:"231224",name:"庆安县",parent_code:"231200"},{code:"231225",name:"明水县",parent_code:"231200"},{code:"231226",name:"绥棱县",parent_code:"231200"},{code:"231281",name:"安达市",parent_code:"231200"},{code:"231282",name:"肇东市",parent_code:"231200"},{code:"231283",name:"海伦市",parent_code:"231200"}]},{code:"232700",name:"大兴安岭地区",parent_code:"230000",children:[{code:"232701",name:"漠河市",parent_code:"232700"},{code:"232721",name:"呼玛县",parent_code:"232700"},{code:"232722",name:"塔河县",parent_code:"232700"},{code:"232761",name:"加格达奇区",parent_code:"232700"},{code:"232762",name:"松岭区",parent_code:"232700"},{code:"232763",name:"新林区",parent_code:"232700"},{code:"232764",name:"呼中区",parent_code:"232700"}]}]},{code:"310000",name:"上海市",children:[{code:"310100",name:"上海市",parent_code:"310000",children:[{code:"310101",name:"黄浦区",parent_code:"310100"},{code:"310104",name:"徐汇区",parent_code:"310100"},{code:"310105",name:"长宁区",parent_code:"310100"},{code:"310106",name:"静安区",parent_code:"310100"},{code:"310107",name:"普陀区",parent_code:"310100"},{code:"310109",name:"虹口区",parent_code:"310100"},{code:"310110",name:"杨浦区",parent_code:"310100"},{code:"310112",name:"闵行区",parent_code:"310100"},{code:"310113",name:"宝山区",parent_code:"310100"},{code:"310114",name:"嘉定区",parent_code:"310100"},{code:"310115",name:"浦东新区",parent_code:"310100"},{code:"310116",name:"金山区",parent_code:"310100"},{code:"310117",name:"松江区",parent_code:"310100"},{code:"310118",name:"青浦区",parent_code:"310100"},{code:"310120",name:"奉贤区",parent_code:"310100"},{code:"310151",name:"崇明区",parent_code:"310100"}]}]},{code:"320000",name:"江苏省",children:[{code:"320100",name:"南京市",parent_code:"320000",children:[{code:"320102",name:"玄武区",parent_code:"320100"},{code:"320104",name:"秦淮区",parent_code:"320100"},{code:"320105",name:"建邺区",parent_code:"320100"},{code:"320106",name:"鼓楼区",parent_code:"320100"},{code:"320111",name:"浦口区",parent_code:"320100"},{code:"320113",name:"栖霞区",parent_code:"320100"},{code:"320114",name:"雨花台区",parent_code:"320100"},{code:"320115",name:"江宁区",parent_code:"320100"},{code:"320116",name:"六合区",parent_code:"320100"},{code:"320117",name:"溧水区",parent_code:"320100"},{code:"320118",name:"高淳区",parent_code:"320100"}]},{code:"320200",name:"无锡市",parent_code:"320000",children:[{code:"320205",name:"锡山区",parent_code:"320200"},{code:"320206",name:"惠山区",parent_code:"320200"},{code:"320211",name:"滨湖区",parent_code:"320200"},{code:"320213",name:"梁溪区",parent_code:"320200"},{code:"320214",name:"新吴区",parent_code:"320200"},{code:"320281",name:"江阴市",parent_code:"320200"},{code:"320282",name:"宜兴市",parent_code:"320200"}]},{code:"320300",name:"徐州市",parent_code:"320000",children:[{code:"320302",name:"鼓楼区",parent_code:"320300"},{code:"320303",name:"云龙区",parent_code:"320300"},{code:"320305",name:"贾汪区",parent_code:"320300"},{code:"320311",name:"泉山区",parent_code:"320300"},{code:"320312",name:"铜山区",parent_code:"320300"},{code:"320321",name:"丰县",parent_code:"320300"},{code:"320322",name:"沛县",parent_code:"320300"},{code:"320324",name:"睢宁县",parent_code:"320300"},{code:"320371",name:"徐州经济技术开发区",parent_code:"320300"},{code:"320381",name:"新沂市",parent_code:"320300"},{code:"320382",name:"邳州市",parent_code:"320300"}]},{code:"320400",name:"常州市",parent_code:"320000",children:[{code:"320402",name:"天宁区",parent_code:"320400"},{code:"320404",name:"钟楼区",parent_code:"320400"},{code:"320411",name:"新北区",parent_code:"320400"},{code:"320412",name:"武进区",parent_code:"320400"},{code:"320413",name:"金坛区",parent_code:"320400"},{code:"320481",name:"溧阳市",parent_code:"320400"}]},{code:"320500",name:"苏州市",parent_code:"320000",children:[{code:"320505",name:"虎丘区",parent_code:"320500"},{code:"320506",name:"吴中区",parent_code:"320500"},{code:"320507",name:"相城区",parent_code:"320500"},{code:"320508",name:"姑苏区",parent_code:"320500"},{code:"320509",name:"吴江区",parent_code:"320500"},{code:"320576",name:"苏州工业园区",parent_code:"320500"},{code:"320581",name:"常熟市",parent_code:"320500"},{code:"320582",name:"张家港市",parent_code:"320500"},{code:"320583",name:"昆山市",parent_code:"320500"},{code:"320585",name:"太仓市",parent_code:"320500"}]},{code:"320600",name:"南通市",parent_code:"320000",children:[{code:"320612",name:"通州区",parent_code:"320600"},{code:"320613",name:"崇川区",parent_code:"320600"},{code:"320614",name:"海门区",parent_code:"320600"},{code:"320623",name:"如东县",parent_code:"320600"},{code:"320671",name:"南通经济技术开发区",parent_code:"320600"},{code:"320681",name:"启东市",parent_code:"320600"},{code:"320682",name:"如皋市",parent_code:"320600"},{code:"320685",name:"海安市",parent_code:"320600"}]},{code:"320700",name:"连云港市",parent_code:"320000",children:[{code:"320703",name:"连云区",parent_code:"320700"},{code:"320706",name:"海州区",parent_code:"320700"},{code:"320707",name:"赣榆区",parent_code:"320700"},{code:"320722",name:"东海县",parent_code:"320700"},{code:"320723",name:"灌云县",parent_code:"320700"},{code:"320724",name:"灌南县",parent_code:"320700"},{code:"320771",name:"连云港经济技术开发区",parent_code:"320700"}]},{code:"320800",name:"淮安市",parent_code:"320000",children:[{code:"320803",name:"淮安区",parent_code:"320800"},{code:"320804",name:"淮阴区",parent_code:"320800"},{code:"320812",name:"清江浦区",parent_code:"320800"},{code:"320813",name:"洪泽区",parent_code:"320800"},{code:"320826",name:"涟水县",parent_code:"320800"},{code:"320830",name:"盱眙县",parent_code:"320800"},{code:"320831",name:"金湖县",parent_code:"320800"},{code:"320871",name:"淮安经济技术开发区",parent_code:"320800"}]},{code:"320900",name:"盐城市",parent_code:"320000",children:[{code:"320902",name:"亭湖区",parent_code:"320900"},{code:"320903",name:"盐都区",parent_code:"320900"},{code:"320904",name:"大丰区",parent_code:"320900"},{code:"320921",name:"响水县",parent_code:"320900"},{code:"320922",name:"滨海县",parent_code:"320900"},{code:"320923",name:"阜宁县",parent_code:"320900"},{code:"320924",name:"射阳县",parent_code:"320900"},{code:"320925",name:"建湖县",parent_code:"320900"},{code:"320971",name:"盐城经济技术开发区",parent_code:"320900"},{code:"320981",name:"东台市",parent_code:"320900"}]},{code:"321000",name:"扬州市",parent_code:"320000",children:[{code:"321002",name:"广陵区",parent_code:"321000"},{code:"321003",name:"邗江区",parent_code:"321000"},{code:"321012",name:"江都区",parent_code:"321000"},{code:"321023",name:"宝应县",parent_code:"321000"},{code:"321071",name:"扬州经济技术开发区",parent_code:"321000"},{code:"321081",name:"仪征市",parent_code:"321000"},{code:"321084",name:"高邮市",parent_code:"321000"}]},{code:"321100",name:"镇江市",parent_code:"320000",children:[{code:"321102",name:"京口区",parent_code:"321100"},{code:"321111",name:"润州区",parent_code:"321100"},{code:"321112",name:"丹徒区",parent_code:"321100"},{code:"321171",name:"镇江新区",parent_code:"321100"},{code:"321181",name:"丹阳市",parent_code:"321100"},{code:"321182",name:"扬中市",parent_code:"321100"},{code:"321183",name:"句容市",parent_code:"321100"}]},{code:"321200",name:"泰州市",parent_code:"320000",children:[{code:"321202",name:"海陵区",parent_code:"321200"},{code:"321203",name:"高港区",parent_code:"321200"},{code:"321204",name:"姜堰区",parent_code:"321200"},{code:"321281",name:"兴化市",parent_code:"321200"},{code:"321282",name:"靖江市",parent_code:"321200"},{code:"321283",name:"泰兴市",parent_code:"321200"}]},{code:"321300",name:"宿迁市",parent_code:"320000",children:[{code:"321302",name:"宿城区",parent_code:"321300"},{code:"321311",name:"宿豫区",parent_code:"321300"},{code:"321322",name:"沭阳县",parent_code:"321300"},{code:"321323",name:"泗阳县",parent_code:"321300"},{code:"321324",name:"泗洪县",parent_code:"321300"},{code:"321371",name:"宿迁经济技术开发区",parent_code:"321300"}]}]},{code:"330000",name:"浙江省",children:[{code:"330100",name:"杭州市",parent_code:"330000",children:[{code:"330102",name:"上城区",parent_code:"330100"},{code:"330105",name:"拱墅区",parent_code:"330100"},{code:"330106",name:"西湖区",parent_code:"330100"},{code:"330108",name:"滨江区",parent_code:"330100"},{code:"330109",name:"萧山区",parent_code:"330100"},{code:"330110",name:"余杭区",parent_code:"330100"},{code:"330111",name:"富阳区",parent_code:"330100"},{code:"330112",name:"临安区",parent_code:"330100"},{code:"330113",name:"临平区",parent_code:"330100"},{code:"330114",name:"钱塘区",parent_code:"330100"},{code:"330122",name:"桐庐县",parent_code:"330100"},{code:"330127",name:"淳安县",parent_code:"330100"},{code:"330182",name:"建德市",parent_code:"330100"}]},{code:"330200",name:"宁波市",parent_code:"330000",children:[{code:"330203",name:"海曙区",parent_code:"330200"},{code:"330205",name:"江北区",parent_code:"330200"},{code:"330206",name:"北仑区",parent_code:"330200"},{code:"330211",name:"镇海区",parent_code:"330200"},{code:"330212",name:"鄞州区",parent_code:"330200"},{code:"330213",name:"奉化区",parent_code:"330200"},{code:"330225",name:"象山县",parent_code:"330200"},{code:"330226",name:"宁海县",parent_code:"330200"},{code:"330281",name:"余姚市",parent_code:"330200"},{code:"330282",name:"慈溪市",parent_code:"330200"}]},{code:"330300",name:"温州市",parent_code:"330000",children:[{code:"330302",name:"鹿城区",parent_code:"330300"},{code:"330303",name:"龙湾区",parent_code:"330300"},{code:"330304",name:"瓯海区",parent_code:"330300"},{code:"330305",name:"洞头区",parent_code:"330300"},{code:"330324",name:"永嘉县",parent_code:"330300"},{code:"330326",name:"平阳县",parent_code:"330300"},{code:"330327",name:"苍南县",parent_code:"330300"},{code:"330328",name:"文成县",parent_code:"330300"},{code:"330329",name:"泰顺县",parent_code:"330300"},{code:"330381",name:"瑞安市",parent_code:"330300"},{code:"330382",name:"乐清市",parent_code:"330300"},{code:"330383",name:"龙港市",parent_code:"330300"}]},{code:"330400",name:"嘉兴市",parent_code:"330000",children:[{code:"330402",name:"南湖区",parent_code:"330400"},{code:"330411",name:"秀洲区",parent_code:"330400"},{code:"330421",name:"嘉善县",parent_code:"330400"},{code:"330424",name:"海盐县",parent_code:"330400"},{code:"330481",name:"海宁市",parent_code:"330400"},{code:"330482",name:"平湖市",parent_code:"330400"},{code:"330483",name:"桐乡市",parent_code:"330400"}]},{code:"330500",name:"湖州市",parent_code:"330000",children:[{code:"330502",name:"吴兴区",parent_code:"330500"},{code:"330503",name:"南浔区",parent_code:"330500"},{code:"330521",name:"德清县",parent_code:"330500"},{code:"330522",name:"长兴县",parent_code:"330500"},{code:"330523",name:"安吉县",parent_code:"330500"}]},{code:"330600",name:"绍兴市",parent_code:"330000",children:[{code:"330602",name:"越城区",parent_code:"330600"},{code:"330603",name:"柯桥区",parent_code:"330600"},{code:"330604",name:"上虞区",parent_code:"330600"},{code:"330624",name:"新昌县",parent_code:"330600"},{code:"330681",name:"诸暨市",parent_code:"330600"},{code:"330683",name:"嵊州市",parent_code:"330600"}]},{code:"330700",name:"金华市",parent_code:"330000",children:[{code:"330702",name:"婺城区",parent_code:"330700"},{code:"330703",name:"金东区",parent_code:"330700"},{code:"330723",name:"武义县",parent_code:"330700"},{code:"330726",name:"浦江县",parent_code:"330700"},{code:"330727",name:"磐安县",parent_code:"330700"},{code:"330781",name:"兰溪市",parent_code:"330700"},{code:"330782",name:"义乌市",parent_code:"330700"},{code:"330783",name:"东阳市",parent_code:"330700"},{code:"330784",name:"永康市",parent_code:"330700"}]},{code:"330800",name:"衢州市",parent_code:"330000",children:[{code:"330802",name:"柯城区",parent_code:"330800"},{code:"330803",name:"衢江区",parent_code:"330800"},{code:"330822",name:"常山县",parent_code:"330800"},{code:"330824",name:"开化县",parent_code:"330800"},{code:"330825",name:"龙游县",parent_code:"330800"},{code:"330881",name:"江山市",parent_code:"330800"}]},{code:"330900",name:"舟山市",parent_code:"330000",children:[{code:"330902",name:"定海区",parent_code:"330900"},{code:"330903",name:"普陀区",parent_code:"330900"},{code:"330921",name:"岱山县",parent_code:"330900"},{code:"330922",name:"嵊泗县",parent_code:"330900"}]},{code:"331000",name:"台州市",parent_code:"330000",children:[{code:"331002",name:"椒江区",parent_code:"331000"},{code:"331003",name:"黄岩区",parent_code:"331000"},{code:"331004",name:"路桥区",parent_code:"331000"},{code:"331022",name:"三门县",parent_code:"331000"},{code:"331023",name:"天台县",parent_code:"331000"},{code:"331024",name:"仙居县",parent_code:"331000"},{code:"331081",name:"温岭市",parent_code:"331000"},{code:"331082",name:"临海市",parent_code:"331000"},{code:"331083",name:"玉环市",parent_code:"331000"}]},{code:"331100",name:"丽水市",parent_code:"330000",children:[{code:"331102",name:"莲都区",parent_code:"331100"},{code:"331121",name:"青田县",parent_code:"331100"},{code:"331122",name:"缙云县",parent_code:"331100"},{code:"331123",name:"遂昌县",parent_code:"331100"},{code:"331124",name:"松阳县",parent_code:"331100"},{code:"331125",name:"云和县",parent_code:"331100"},{code:"331126",name:"庆元县",parent_code:"331100"},{code:"331127",name:"景宁畲族自治县",parent_code:"331100"},{code:"331181",name:"龙泉市",parent_code:"331100"}]}]},{code:"340000",name:"安徽省",children:[{code:"340100",name:"合肥市",parent_code:"340000",children:[{code:"340102",name:"瑶海区",parent_code:"340100"},{code:"340103",name:"庐阳区",parent_code:"340100"},{code:"340104",name:"蜀山区",parent_code:"340100"},{code:"340111",name:"包河区",parent_code:"340100"},{code:"340121",name:"长丰县",parent_code:"340100"},{code:"340122",name:"肥东县",parent_code:"340100"},{code:"340123",name:"肥西县",parent_code:"340100"},{code:"340124",name:"庐江县",parent_code:"340100"},{code:"340176",name:"合肥高新技术产业开发区",parent_code:"340100"},{code:"340177",name:"合肥经济技术开发区",parent_code:"340100"},{code:"340178",name:"合肥新站高新技术产业开发区",parent_code:"340100"},{code:"340181",name:"巢湖市",parent_code:"340100"}]},{code:"340200",name:"芜湖市",parent_code:"340000",children:[{code:"340202",name:"镜湖区",parent_code:"340200"},{code:"340207",name:"鸠江区",parent_code:"340200"},{code:"340209",name:"弋江区",parent_code:"340200"},{code:"340210",name:"湾沚区",parent_code:"340200"},{code:"340212",name:"繁昌区",parent_code:"340200"},{code:"340223",name:"南陵县",parent_code:"340200"},{code:"340271",name:"芜湖经济技术开发区",parent_code:"340200"},{code:"340272",name:"安徽芜湖三山经济开发区",parent_code:"340200"},{code:"340281",name:"无为市",parent_code:"340200"}]},{code:"340300",name:"蚌埠市",parent_code:"340000",children:[{code:"340302",name:"龙子湖区",parent_code:"340300"},{code:"340303",name:"蚌山区",parent_code:"340300"},{code:"340304",name:"禹会区",parent_code:"340300"},{code:"340311",name:"淮上区",parent_code:"340300"},{code:"340321",name:"怀远县",parent_code:"340300"},{code:"340322",name:"五河县",parent_code:"340300"},{code:"340323",name:"固镇县",parent_code:"340300"},{code:"340371",name:"蚌埠市高新技术开发区",parent_code:"340300"},{code:"340372",name:"蚌埠市经济开发区",parent_code:"340300"}]},{code:"340400",name:"淮南市",parent_code:"340000",children:[{code:"340402",name:"大通区",parent_code:"340400"},{code:"340403",name:"田家庵区",parent_code:"340400"},{code:"340404",name:"谢家集区",parent_code:"340400"},{code:"340405",name:"八公山区",parent_code:"340400"},{code:"340406",name:"潘集区",parent_code:"340400"},{code:"340421",name:"凤台县",parent_code:"340400"},{code:"340422",name:"寿县",parent_code:"340400"}]},{code:"340500",name:"马鞍山市",parent_code:"340000",children:[{code:"340503",name:"花山区",parent_code:"340500"},{code:"340504",name:"雨山区",parent_code:"340500"},{code:"340506",name:"博望区",parent_code:"340500"},{code:"340521",name:"当涂县",parent_code:"340500"},{code:"340522",name:"含山县",parent_code:"340500"},{code:"340523",name:"和县",parent_code:"340500"}]},{code:"340600",name:"淮北市",parent_code:"340000",children:[{code:"340602",name:"杜集区",parent_code:"340600"},{code:"340603",name:"相山区",parent_code:"340600"},{code:"340604",name:"烈山区",parent_code:"340600"},{code:"340621",name:"濉溪县",parent_code:"340600"}]},{code:"340700",name:"铜陵市",parent_code:"340000",children:[{code:"340705",name:"铜官区",parent_code:"340700"},{code:"340706",name:"义安区",parent_code:"340700"},{code:"340711",name:"郊区",parent_code:"340700"},{code:"340722",name:"枞阳县",parent_code:"340700"}]},{code:"340800",name:"安庆市",parent_code:"340000",children:[{code:"340802",name:"迎江区",parent_code:"340800"},{code:"340803",name:"大观区",parent_code:"340800"},{code:"340811",name:"宜秀区",parent_code:"340800"},{code:"340822",name:"怀宁县",parent_code:"340800"},{code:"340825",name:"太湖县",parent_code:"340800"},{code:"340826",name:"宿松县",parent_code:"340800"},{code:"340827",name:"望江县",parent_code:"340800"},{code:"340828",name:"岳西县",parent_code:"340800"},{code:"340871",name:"安徽安庆经济开发区",parent_code:"340800"},{code:"340881",name:"桐城市",parent_code:"340800"},{code:"340882",name:"潜山市",parent_code:"340800"}]},{code:"341000",name:"黄山市",parent_code:"340000",children:[{code:"341002",name:"屯溪区",parent_code:"341000"},{code:"341003",name:"黄山区",parent_code:"341000"},{code:"341004",name:"徽州区",parent_code:"341000"},{code:"341021",name:"歙县",parent_code:"341000"},{code:"341022",name:"休宁县",parent_code:"341000"},{code:"341023",name:"黟县",parent_code:"341000"},{code:"341024",name:"祁门县",parent_code:"341000"}]},{code:"341100",name:"滁州市",parent_code:"340000",children:[{code:"341102",name:"琅琊区",parent_code:"341100"},{code:"341103",name:"南谯区",parent_code:"341100"},{code:"341122",name:"来安县",parent_code:"341100"},{code:"341124",name:"全椒县",parent_code:"341100"},{code:"341125",name:"定远县",parent_code:"341100"},{code:"341126",name:"凤阳县",parent_code:"341100"},{code:"341171",name:"中新苏滁高新技术产业开发区",parent_code:"341100"},{code:"341172",name:"滁州经济技术开发区",parent_code:"341100"},{code:"341181",name:"天长市",parent_code:"341100"},{code:"341182",name:"明光市",parent_code:"341100"}]},{code:"341200",name:"阜阳市",parent_code:"340000",children:[{code:"341202",name:"颍州区",parent_code:"341200"},{code:"341203",name:"颍东区",parent_code:"341200"},{code:"341204",name:"颍泉区",parent_code:"341200"},{code:"341221",name:"临泉县",parent_code:"341200"},{code:"341222",name:"太和县",parent_code:"341200"},{code:"341225",name:"阜南县",parent_code:"341200"},{code:"341226",name:"颍上县",parent_code:"341200"},{code:"341271",name:"阜阳合肥现代产业园区",parent_code:"341200"},{code:"341272",name:"阜阳经济技术开发区",parent_code:"341200"},{code:"341282",name:"界首市",parent_code:"341200"}]},{code:"341300",name:"宿州市",parent_code:"340000",children:[{code:"341302",name:"埇桥区",parent_code:"341300"},{code:"341321",name:"砀山县",parent_code:"341300"},{code:"341322",name:"萧县",parent_code:"341300"},{code:"341323",name:"灵璧县",parent_code:"341300"},{code:"341324",name:"泗县",parent_code:"341300"},{code:"341371",name:"宿州马鞍山现代产业园区",parent_code:"341300"},{code:"341372",name:"宿州经济技术开发区",parent_code:"341300"}]},{code:"341500",name:"六安市",parent_code:"340000",children:[{code:"341502",name:"金安区",parent_code:"341500"},{code:"341503",name:"裕安区",parent_code:"341500"},{code:"341504",name:"叶集区",parent_code:"341500"},{code:"341522",name:"霍邱县",parent_code:"341500"},{code:"341523",name:"舒城县",parent_code:"341500"},{code:"341524",name:"金寨县",parent_code:"341500"},{code:"341525",name:"霍山县",parent_code:"341500"}]},{code:"341600",name:"亳州市",parent_code:"340000",children:[{code:"341602",name:"谯城区",parent_code:"341600"},{code:"341621",name:"涡阳县",parent_code:"341600"},{code:"341622",name:"蒙城县",parent_code:"341600"},{code:"341623",name:"利辛县",parent_code:"341600"}]},{code:"341700",name:"池州市",parent_code:"340000",children:[{code:"341702",name:"贵池区",parent_code:"341700"},{code:"341721",name:"东至县",parent_code:"341700"},{code:"341722",name:"石台县",parent_code:"341700"},{code:"341723",name:"青阳县",parent_code:"341700"}]},{code:"341800",name:"宣城市",parent_code:"340000",children:[{code:"341802",name:"宣州区",parent_code:"341800"},{code:"341821",name:"郎溪县",parent_code:"341800"},{code:"341823",name:"泾县",parent_code:"341800"},{code:"341824",name:"绩溪县",parent_code:"341800"},{code:"341825",name:"旌德县",parent_code:"341800"},{code:"341871",name:"宣城市经济开发区",parent_code:"341800"},{code:"341881",name:"宁国市",parent_code:"341800"},{code:"341882",name:"广德市",parent_code:"341800"}]}]},{code:"350000",name:"福建省",children:[{code:"350100",name:"福州市",parent_code:"350000",children:[{code:"350102",name:"鼓楼区",parent_code:"350100"},{code:"350103",name:"台江区",parent_code:"350100"},{code:"350104",name:"仓山区",parent_code:"350100"},{code:"350105",name:"马尾区",parent_code:"350100"},{code:"350111",name:"晋安区",parent_code:"350100"},{code:"350112",name:"长乐区",parent_code:"350100"},{code:"350121",name:"闽侯县",parent_code:"350100"},{code:"350122",name:"连江县",parent_code:"350100"},{code:"350123",name:"罗源县",parent_code:"350100"},{code:"350124",name:"闽清县",parent_code:"350100"},{code:"350125",name:"永泰县",parent_code:"350100"},{code:"350128",name:"平潭县",parent_code:"350100"},{code:"350181",name:"福清市",parent_code:"350100"}]},{code:"350200",name:"厦门市",parent_code:"350000",children:[{code:"350203",name:"思明区",parent_code:"350200"},{code:"350205",name:"海沧区",parent_code:"350200"},{code:"350206",name:"湖里区",parent_code:"350200"},{code:"350211",name:"集美区",parent_code:"350200"},{code:"350212",name:"同安区",parent_code:"350200"},{code:"350213",name:"翔安区",parent_code:"350200"}]},{code:"350300",name:"莆田市",parent_code:"350000",children:[{code:"350302",name:"城厢区",parent_code:"350300"},{code:"350303",name:"涵江区",parent_code:"350300"},{code:"350304",name:"荔城区",parent_code:"350300"},{code:"350305",name:"秀屿区",parent_code:"350300"},{code:"350322",name:"仙游县",parent_code:"350300"}]},{code:"350400",name:"三明市",parent_code:"350000",children:[{code:"350404",name:"三元区",parent_code:"350400"},{code:"350405",name:"沙县区",parent_code:"350400"},{code:"350421",name:"明溪县",parent_code:"350400"},{code:"350423",name:"清流县",parent_code:"350400"},{code:"350424",name:"宁化县",parent_code:"350400"},{code:"350425",name:"大田县",parent_code:"350400"},{code:"350426",name:"尤溪县",parent_code:"350400"},{code:"350428",name:"将乐县",parent_code:"350400"},{code:"350429",name:"泰宁县",parent_code:"350400"},{code:"350430",name:"建宁县",parent_code:"350400"},{code:"350481",name:"永安市",parent_code:"350400"}]},{code:"350500",name:"泉州市",parent_code:"350000",children:[{code:"350502",name:"鲤城区",parent_code:"350500"},{code:"350503",name:"丰泽区",parent_code:"350500"},{code:"350504",name:"洛江区",parent_code:"350500"},{code:"350505",name:"泉港区",parent_code:"350500"},{code:"350521",name:"惠安县",parent_code:"350500"},{code:"350524",name:"安溪县",parent_code:"350500"},{code:"350525",name:"永春县",parent_code:"350500"},{code:"350526",name:"德化县",parent_code:"350500"},{code:"350527",name:"金门县",parent_code:"350500"},{code:"350581",name:"石狮市",parent_code:"350500"},{code:"350582",name:"晋江市",parent_code:"350500"},{code:"350583",name:"南安市",parent_code:"350500"}]},{code:"350600",name:"漳州市",parent_code:"350000",children:[{code:"350602",name:"芗城区",parent_code:"350600"},{code:"350603",name:"龙文区",parent_code:"350600"},{code:"350604",name:"龙海区",parent_code:"350600"},{code:"350605",name:"长泰区",parent_code:"350600"},{code:"350622",name:"云霄县",parent_code:"350600"},{code:"350623",name:"漳浦县",parent_code:"350600"},{code:"350624",name:"诏安县",parent_code:"350600"},{code:"350626",name:"东山县",parent_code:"350600"},{code:"350627",name:"南靖县",parent_code:"350600"},{code:"350628",name:"平和县",parent_code:"350600"},{code:"350629",name:"华安县",parent_code:"350600"}]},{code:"350700",name:"南平市",parent_code:"350000",children:[{code:"350702",name:"延平区",parent_code:"350700"},{code:"350703",name:"建阳区",parent_code:"350700"},{code:"350721",name:"顺昌县",parent_code:"350700"},{code:"350722",name:"浦城县",parent_code:"350700"},{code:"350723",name:"光泽县",parent_code:"350700"},{code:"350724",name:"松溪县",parent_code:"350700"},{code:"350725",name:"政和县",parent_code:"350700"},{code:"350781",name:"邵武市",parent_code:"350700"},{code:"350782",name:"武夷山市",parent_code:"350700"},{code:"350783",name:"建瓯市",parent_code:"350700"}]},{code:"350800",name:"龙岩市",parent_code:"350000",children:[{code:"350802",name:"新罗区",parent_code:"350800"},{code:"350803",name:"永定区",parent_code:"350800"},{code:"350821",name:"长汀县",parent_code:"350800"},{code:"350823",name:"上杭县",parent_code:"350800"},{code:"350824",name:"武平县",parent_code:"350800"},{code:"350825",name:"连城县",parent_code:"350800"},{code:"350881",name:"漳平市",parent_code:"350800"}]},{code:"350900",name:"宁德市",parent_code:"350000",children:[{code:"350902",name:"蕉城区",parent_code:"350900"},{code:"350921",name:"霞浦县",parent_code:"350900"},{code:"350922",name:"古田县",parent_code:"350900"},{code:"350923",name:"屏南县",parent_code:"350900"},{code:"350924",name:"寿宁县",parent_code:"350900"},{code:"350925",name:"周宁县",parent_code:"350900"},{code:"350926",name:"柘荣县",parent_code:"350900"},{code:"350981",name:"福安市",parent_code:"350900"},{code:"350982",name:"福鼎市",parent_code:"350900"}]}]},{code:"360000",name:"江西省",children:[{code:"360100",name:"南昌市",parent_code:"360000",children:[{code:"360102",name:"东湖区",parent_code:"360100"},{code:"360103",name:"西湖区",parent_code:"360100"},{code:"360104",name:"青云谱区",parent_code:"360100"},{code:"360111",name:"青山湖区",parent_code:"360100"},{code:"360112",name:"新建区",parent_code:"360100"},{code:"360113",name:"红谷滩区",parent_code:"360100"},{code:"360121",name:"南昌县",parent_code:"360100"},{code:"360123",name:"安义县",parent_code:"360100"},{code:"360124",name:"进贤县",parent_code:"360100"}]},{code:"360200",name:"景德镇市",parent_code:"360000",children:[{code:"360202",name:"昌江区",parent_code:"360200"},{code:"360203",name:"珠山区",parent_code:"360200"},{code:"360222",name:"浮梁县",parent_code:"360200"},{code:"360281",name:"乐平市",parent_code:"360200"}]},{code:"360300",name:"萍乡市",parent_code:"360000",children:[{code:"360302",name:"安源区",parent_code:"360300"},{code:"360313",name:"湘东区",parent_code:"360300"},{code:"360321",name:"莲花县",parent_code:"360300"},{code:"360322",name:"上栗县",parent_code:"360300"},{code:"360323",name:"芦溪县",parent_code:"360300"}]},{code:"360400",name:"九江市",parent_code:"360000",children:[{code:"360402",name:"濂溪区",parent_code:"360400"},{code:"360403",name:"浔阳区",parent_code:"360400"},{code:"360404",name:"柴桑区",parent_code:"360400"},{code:"360423",name:"武宁县",parent_code:"360400"},{code:"360424",name:"修水县",parent_code:"360400"},{code:"360425",name:"永修县",parent_code:"360400"},{code:"360426",name:"德安县",parent_code:"360400"},{code:"360428",name:"都昌县",parent_code:"360400"},{code:"360429",name:"湖口县",parent_code:"360400"},{code:"360430",name:"彭泽县",parent_code:"360400"},{code:"360481",name:"瑞昌市",parent_code:"360400"},{code:"360482",name:"共青城市",parent_code:"360400"},{code:"360483",name:"庐山市",parent_code:"360400"}]},{code:"360500",name:"新余市",parent_code:"360000",children:[{code:"360502",name:"渝水区",parent_code:"360500"},{code:"360521",name:"分宜县",parent_code:"360500"}]},{code:"360600",name:"鹰潭市",parent_code:"360000",children:[{code:"360602",name:"月湖区",parent_code:"360600"},{code:"360603",name:"余江区",parent_code:"360600"},{code:"360681",name:"贵溪市",parent_code:"360600"}]},{code:"360700",name:"赣州市",parent_code:"360000",children:[{code:"360702",name:"章贡区",parent_code:"360700"},{code:"360703",name:"南康区",parent_code:"360700"},{code:"360704",name:"赣县区",parent_code:"360700"},{code:"360722",name:"信丰县",parent_code:"360700"},{code:"360723",name:"大余县",parent_code:"360700"},{code:"360724",name:"上犹县",parent_code:"360700"},{code:"360725",name:"崇义县",parent_code:"360700"},{code:"360726",name:"安远县",parent_code:"360700"},{code:"360728",name:"定南县",parent_code:"360700"},{code:"360729",name:"全南县",parent_code:"360700"},{code:"360730",name:"宁都县",parent_code:"360700"},{code:"360731",name:"于都县",parent_code:"360700"},{code:"360732",name:"兴国县",parent_code:"360700"},{code:"360733",name:"会昌县",parent_code:"360700"},{code:"360734",name:"寻乌县",parent_code:"360700"},{code:"360735",name:"石城县",parent_code:"360700"},{code:"360781",name:"瑞金市",parent_code:"360700"},{code:"360783",name:"龙南市",parent_code:"360700"}]},{code:"360800",name:"吉安市",parent_code:"360000",children:[{code:"360802",name:"吉州区",parent_code:"360800"},{code:"360803",name:"青原区",parent_code:"360800"},{code:"360821",name:"吉安县",parent_code:"360800"},{code:"360822",name:"吉水县",parent_code:"360800"},{code:"360823",name:"峡江县",parent_code:"360800"},{code:"360824",name:"新干县",parent_code:"360800"},{code:"360825",name:"永丰县",parent_code:"360800"},{code:"360826",name:"泰和县",parent_code:"360800"},{code:"360827",name:"遂川县",parent_code:"360800"},{code:"360828",name:"万安县",parent_code:"360800"},{code:"360829",name:"安福县",parent_code:"360800"},{code:"360830",name:"永新县",parent_code:"360800"},{code:"360881",name:"井冈山市",parent_code:"360800"}]},{code:"360900",name:"宜春市",parent_code:"360000",children:[{code:"360902",name:"袁州区",parent_code:"360900"},{code:"360921",name:"奉新县",parent_code:"360900"},{code:"360922",name:"万载县",parent_code:"360900"},{code:"360923",name:"上高县",parent_code:"360900"},{code:"360924",name:"宜丰县",parent_code:"360900"},{code:"360925",name:"靖安县",parent_code:"360900"},{code:"360926",name:"铜鼓县",parent_code:"360900"},{code:"360981",name:"丰城市",parent_code:"360900"},{code:"360982",name:"樟树市",parent_code:"360900"},{code:"360983",name:"高安市",parent_code:"360900"}]},{code:"361000",name:"抚州市",parent_code:"360000",children:[{code:"361002",name:"临川区",parent_code:"361000"},{code:"361003",name:"东乡区",parent_code:"361000"},{code:"361021",name:"南城县",parent_code:"361000"},{code:"361022",name:"黎川县",parent_code:"361000"},{code:"361023",name:"南丰县",parent_code:"361000"},{code:"361024",name:"崇仁县",parent_code:"361000"},{code:"361025",name:"乐安县",parent_code:"361000"},{code:"361026",name:"宜黄县",parent_code:"361000"},{code:"361027",name:"金溪县",parent_code:"361000"},{code:"361028",name:"资溪县",parent_code:"361000"},{code:"361030",name:"广昌县",parent_code:"361000"}]},{code:"361100",name:"上饶市",parent_code:"360000",children:[{code:"361102",name:"信州区",parent_code:"361100"},{code:"361103",name:"广丰区",parent_code:"361100"},{code:"361104",name:"广信区",parent_code:"361100"},{code:"361123",name:"玉山县",parent_code:"361100"},{code:"361124",name:"铅山县",parent_code:"361100"},{code:"361125",name:"横峰县",parent_code:"361100"},{code:"361126",name:"弋阳县",parent_code:"361100"},{code:"361127",name:"余干县",parent_code:"361100"},{code:"361128",name:"鄱阳县",parent_code:"361100"},{code:"361129",name:"万年县",parent_code:"361100"},{code:"361130",name:"婺源县",parent_code:"361100"},{code:"361181",name:"德兴市",parent_code:"361100"}]}]},{code:"370000",name:"山东省",children:[{code:"370100",name:"济南市",parent_code:"370000",children:[{code:"370102",name:"历下区",parent_code:"370100"},{code:"370103",name:"市中区",parent_code:"370100"},{code:"370104",name:"槐荫区",parent_code:"370100"},{code:"370105",name:"天桥区",parent_code:"370100"},{code:"370112",name:"历城区",parent_code:"370100"},{code:"370113",name:"长清区",parent_code:"370100"},{code:"370114",name:"章丘区",parent_code:"370100"},{code:"370115",name:"济阳区",parent_code:"370100"},{code:"370116",name:"莱芜区",parent_code:"370100"},{code:"370117",name:"钢城区",parent_code:"370100"},{code:"370124",name:"平阴县",parent_code:"370100"},{code:"370126",name:"商河县",parent_code:"370100"},{code:"370176",name:"济南高新技术产业开发区",parent_code:"370100"}]},{code:"370200",name:"青岛市",parent_code:"370000",children:[{code:"370202",name:"市南区",parent_code:"370200"},{code:"370203",name:"市北区",parent_code:"370200"},{code:"370211",name:"黄岛区",parent_code:"370200"},{code:"370212",name:"崂山区",parent_code:"370200"},{code:"370213",name:"李沧区",parent_code:"370200"},{code:"370214",name:"城阳区",parent_code:"370200"},{code:"370215",name:"即墨区",parent_code:"370200"},{code:"370281",name:"胶州市",parent_code:"370200"},{code:"370283",name:"平度市",parent_code:"370200"},{code:"370285",name:"莱西市",parent_code:"370200"}]},{code:"370300",name:"淄博市",parent_code:"370000",children:[{code:"370302",name:"淄川区",parent_code:"370300"},{code:"370303",name:"张店区",parent_code:"370300"},{code:"370304",name:"博山区",parent_code:"370300"},{code:"370305",name:"临淄区",parent_code:"370300"},{code:"370306",name:"周村区",parent_code:"370300"},{code:"370321",name:"桓台县",parent_code:"370300"},{code:"370322",name:"高青县",parent_code:"370300"},{code:"370323",name:"沂源县",parent_code:"370300"}]},{code:"370400",name:"枣庄市",parent_code:"370000",children:[{code:"370402",name:"市中区",parent_code:"370400"},{code:"370403",name:"薛城区",parent_code:"370400"},{code:"370404",name:"峄城区",parent_code:"370400"},{code:"370405",name:"台儿庄区",parent_code:"370400"},{code:"370406",name:"山亭区",parent_code:"370400"},{code:"370481",name:"滕州市",parent_code:"370400"}]},{code:"370500",name:"东营市",parent_code:"370000",children:[{code:"370502",name:"东营区",parent_code:"370500"},{code:"370503",name:"河口区",parent_code:"370500"},{code:"370505",name:"垦利区",parent_code:"370500"},{code:"370522",name:"利津县",parent_code:"370500"},{code:"370523",name:"广饶县",parent_code:"370500"},{code:"370571",name:"东营经济技术开发区",parent_code:"370500"},{code:"370572",name:"东营港经济开发区",parent_code:"370500"}]},{code:"370600",name:"烟台市",parent_code:"370000",children:[{code:"370602",name:"芝罘区",parent_code:"370600"},{code:"370611",name:"福山区",parent_code:"370600"},{code:"370612",name:"牟平区",parent_code:"370600"},{code:"370613",name:"莱山区",parent_code:"370600"},{code:"370614",name:"蓬莱区",parent_code:"370600"},{code:"370671",name:"烟台高新技术产业开发区",parent_code:"370600"},{code:"370676",name:"烟台经济技术开发区",parent_code:"370600"},{code:"370681",name:"龙口市",parent_code:"370600"},{code:"370682",name:"莱阳市",parent_code:"370600"},{code:"370683",name:"莱州市",parent_code:"370600"},{code:"370685",name:"招远市",parent_code:"370600"},{code:"370686",name:"栖霞市",parent_code:"370600"},{code:"370687",name:"海阳市",parent_code:"370600"}]},{code:"370700",name:"潍坊市",parent_code:"370000",children:[{code:"370702",name:"潍城区",parent_code:"370700"},{code:"370703",name:"寒亭区",parent_code:"370700"},{code:"370704",name:"坊子区",parent_code:"370700"},{code:"370705",name:"奎文区",parent_code:"370700"},{code:"370724",name:"临朐县",parent_code:"370700"},{code:"370725",name:"昌乐县",parent_code:"370700"},{code:"370772",name:"潍坊滨海经济技术开发区",parent_code:"370700"},{code:"370781",name:"青州市",parent_code:"370700"},{code:"370782",name:"诸城市",parent_code:"370700"},{code:"370783",name:"寿光市",parent_code:"370700"},{code:"370784",name:"安丘市",parent_code:"370700"},{code:"370785",name:"高密市",parent_code:"370700"},{code:"370786",name:"昌邑市",parent_code:"370700"}]},{code:"370800",name:"济宁市",parent_code:"370000",children:[{code:"370811",name:"任城区",parent_code:"370800"},{code:"370812",name:"兖州区",parent_code:"370800"},{code:"370826",name:"微山县",parent_code:"370800"},{code:"370827",name:"鱼台县",parent_code:"370800"},{code:"370828",name:"金乡县",parent_code:"370800"},{code:"370829",name:"嘉祥县",parent_code:"370800"},{code:"370830",name:"汶上县",parent_code:"370800"},{code:"370831",name:"泗水县",parent_code:"370800"},{code:"370832",name:"梁山县",parent_code:"370800"},{code:"370871",name:"济宁高新技术产业开发区",parent_code:"370800"},{code:"370881",name:"曲阜市",parent_code:"370800"},{code:"370883",name:"邹城市",parent_code:"370800"}]},{code:"370900",name:"泰安市",parent_code:"370000",children:[{code:"370902",name:"泰山区",parent_code:"370900"},{code:"370911",name:"岱岳区",parent_code:"370900"},{code:"370921",name:"宁阳县",parent_code:"370900"},{code:"370923",name:"东平县",parent_code:"370900"},{code:"370982",name:"新泰市",parent_code:"370900"},{code:"370983",name:"肥城市",parent_code:"370900"}]},{code:"371000",name:"威海市",parent_code:"370000",children:[{code:"371002",name:"环翠区",parent_code:"371000"},{code:"371003",name:"文登区",parent_code:"371000"},{code:"371071",name:"威海火炬高技术产业开发区",parent_code:"371000"},{code:"371072",name:"威海经济技术开发区",parent_code:"371000"},{code:"371073",name:"威海临港经济技术开发区",parent_code:"371000"},{code:"371082",name:"荣成市",parent_code:"371000"},{code:"371083",name:"乳山市",parent_code:"371000"}]},{code:"371100",name:"日照市",parent_code:"370000",children:[{code:"371102",name:"东港区",parent_code:"371100"},{code:"371103",name:"岚山区",parent_code:"371100"},{code:"371121",name:"五莲县",parent_code:"371100"},{code:"371122",name:"莒县",parent_code:"371100"},{code:"371171",name:"日照经济技术开发区",parent_code:"371100"}]},{code:"371300",name:"临沂市",parent_code:"370000",children:[{code:"371302",name:"兰山区",parent_code:"371300"},{code:"371311",name:"罗庄区",parent_code:"371300"},{code:"371312",name:"河东区",parent_code:"371300"},{code:"371321",name:"沂南县",parent_code:"371300"},{code:"371322",name:"郯城县",parent_code:"371300"},{code:"371323",name:"沂水县",parent_code:"371300"},{code:"371324",name:"兰陵县",parent_code:"371300"},{code:"371325",name:"费县",parent_code:"371300"},{code:"371326",name:"平邑县",parent_code:"371300"},{code:"371327",name:"莒南县",parent_code:"371300"},{code:"371328",name:"蒙阴县",parent_code:"371300"},{code:"371329",name:"临沭县",parent_code:"371300"},{code:"371371",name:"临沂高新技术产业开发区",parent_code:"371300"}]},{code:"371400",name:"德州市",parent_code:"370000",children:[{code:"371402",name:"德城区",parent_code:"371400"},{code:"371403",name:"陵城区",parent_code:"371400"},{code:"371422",name:"宁津县",parent_code:"371400"},{code:"371423",name:"庆云县",parent_code:"371400"},{code:"371424",name:"临邑县",parent_code:"371400"},{code:"371425",name:"齐河县",parent_code:"371400"},{code:"371426",name:"平原县",parent_code:"371400"},{code:"371427",name:"夏津县",parent_code:"371400"},{code:"371428",name:"武城县",parent_code:"371400"},{code:"371471",name:"德州天衢新区",parent_code:"371400"},{code:"371481",name:"乐陵市",parent_code:"371400"},{code:"371482",name:"禹城市",parent_code:"371400"}]},{code:"371500",name:"聊城市",parent_code:"370000",children:[{code:"371502",name:"东昌府区",parent_code:"371500"},{code:"371503",name:"茌平区",parent_code:"371500"},{code:"371521",name:"阳谷县",parent_code:"371500"},{code:"371522",name:"莘县",parent_code:"371500"},{code:"371524",name:"东阿县",parent_code:"371500"},{code:"371525",name:"冠县",parent_code:"371500"},{code:"371526",name:"高唐县",parent_code:"371500"},{code:"371581",name:"临清市",parent_code:"371500"}]},{code:"371600",name:"滨州市",parent_code:"370000",children:[{code:"371602",name:"滨城区",parent_code:"371600"},{code:"371603",name:"沾化区",parent_code:"371600"},{code:"371621",name:"惠民县",parent_code:"371600"},{code:"371622",name:"阳信县",parent_code:"371600"},{code:"371623",name:"无棣县",parent_code:"371600"},{code:"371625",name:"博兴县",parent_code:"371600"},{code:"371681",name:"邹平市",parent_code:"371600"}]},{code:"371700",name:"菏泽市",parent_code:"370000",children:[{code:"371702",name:"牡丹区",parent_code:"371700"},{code:"371703",name:"定陶区",parent_code:"371700"},{code:"371721",name:"曹县",parent_code:"371700"},{code:"371722",name:"单县",parent_code:"371700"},{code:"371723",name:"成武县",parent_code:"371700"},{code:"371724",name:"巨野县",parent_code:"371700"},{code:"371725",name:"郓城县",parent_code:"371700"},{code:"371726",name:"鄄城县",parent_code:"371700"},{code:"371728",name:"东明县",parent_code:"371700"},{code:"371771",name:"菏泽经济技术开发区",parent_code:"371700"},{code:"371772",name:"菏泽高新技术开发区",parent_code:"371700"}]}]},{code:"410000",name:"河南省",children:[{code:"410100",name:"郑州市",parent_code:"410000",children:[{code:"410102",name:"中原区",parent_code:"410100"},{code:"410103",name:"二七区",parent_code:"410100"},{code:"410104",name:"管城回族区",parent_code:"410100"},{code:"410105",name:"金水区",parent_code:"410100"},{code:"410106",name:"上街区",parent_code:"410100"},{code:"410108",name:"惠济区",parent_code:"410100"},{code:"410122",name:"中牟县",parent_code:"410100"},{code:"410171",name:"郑州经济技术开发区",parent_code:"410100"},{code:"410172",name:"郑州高新技术产业开发区",parent_code:"410100"},{code:"410173",name:"郑州航空港经济综合实验区",parent_code:"410100"},{code:"410181",name:"巩义市",parent_code:"410100"},{code:"410182",name:"荥阳市",parent_code:"410100"},{code:"410183",name:"新密市",parent_code:"410100"},{code:"410184",name:"新郑市",parent_code:"410100"},{code:"410185",name:"登封市",parent_code:"410100"}]},{code:"410200",name:"开封市",parent_code:"410000",children:[{code:"410202",name:"龙亭区",parent_code:"410200"},{code:"410203",name:"顺河回族区",parent_code:"410200"},{code:"410204",name:"鼓楼区",parent_code:"410200"},{code:"410205",name:"禹王台区",parent_code:"410200"},{code:"410212",name:"祥符区",parent_code:"410200"},{code:"410221",name:"杞县",parent_code:"410200"},{code:"410222",name:"通许县",parent_code:"410200"},{code:"410223",name:"尉氏县",parent_code:"410200"},{code:"410225",name:"兰考县",parent_code:"410200"}]},{code:"410300",name:"洛阳市",parent_code:"410000",children:[{code:"410302",name:"老城区",parent_code:"410300"},{code:"410303",name:"西工区",parent_code:"410300"},{code:"410304",name:"瀍河回族区",parent_code:"410300"},{code:"410305",name:"涧西区",parent_code:"410300"},{code:"410307",name:"偃师区",parent_code:"410300"},{code:"410308",name:"孟津区",parent_code:"410300"},{code:"410311",name:"洛龙区",parent_code:"410300"},{code:"410323",name:"新安县",parent_code:"410300"},{code:"410324",name:"栾川县",parent_code:"410300"},{code:"410325",name:"嵩县",parent_code:"410300"},{code:"410326",name:"汝阳县",parent_code:"410300"},{code:"410327",name:"宜阳县",parent_code:"410300"},{code:"410328",name:"洛宁县",parent_code:"410300"},{code:"410329",name:"伊川县",parent_code:"410300"},{code:"410371",name:"洛阳高新技术产业开发区",parent_code:"410300"}]},{code:"410400",name:"平顶山市",parent_code:"410000",children:[{code:"410402",name:"新华区",parent_code:"410400"},{code:"410403",name:"卫东区",parent_code:"410400"},{code:"410404",name:"石龙区",parent_code:"410400"},{code:"410411",name:"湛河区",parent_code:"410400"},{code:"410421",name:"宝丰县",parent_code:"410400"},{code:"410422",name:"叶县",parent_code:"410400"},{code:"410423",name:"鲁山县",parent_code:"410400"},{code:"410425",name:"郏县",parent_code:"410400"},{code:"410471",name:"平顶山高新技术产业开发区",parent_code:"410400"},{code:"410472",name:"平顶山市城乡一体化示范区",parent_code:"410400"},{code:"410481",name:"舞钢市",parent_code:"410400"},{code:"410482",name:"汝州市",parent_code:"410400"}]},{code:"410500",name:"安阳市",parent_code:"410000",children:[{code:"410502",name:"文峰区",parent_code:"410500"},{code:"410503",name:"北关区",parent_code:"410500"},{code:"410505",name:"殷都区",parent_code:"410500"},{code:"410506",name:"龙安区",parent_code:"410500"},{code:"410522",name:"安阳县",parent_code:"410500"},{code:"410523",name:"汤阴县",parent_code:"410500"},{code:"410526",name:"滑县",parent_code:"410500"},{code:"410527",name:"内黄县",parent_code:"410500"},{code:"410571",name:"安阳高新技术产业开发区",parent_code:"410500"},{code:"410581",name:"林州市",parent_code:"410500"}]},{code:"410600",name:"鹤壁市",parent_code:"410000",children:[{code:"410602",name:"鹤山区",parent_code:"410600"},{code:"410603",name:"山城区",parent_code:"410600"},{code:"410611",name:"淇滨区",parent_code:"410600"},{code:"410621",name:"浚县",parent_code:"410600"},{code:"410622",name:"淇县",parent_code:"410600"},{code:"410671",name:"鹤壁经济技术开发区",parent_code:"410600"}]},{code:"410700",name:"新乡市",parent_code:"410000",children:[{code:"410702",name:"红旗区",parent_code:"410700"},{code:"410703",name:"卫滨区",parent_code:"410700"},{code:"410704",name:"凤泉区",parent_code:"410700"},{code:"410711",name:"牧野区",parent_code:"410700"},{code:"410721",name:"新乡县",parent_code:"410700"},{code:"410724",name:"获嘉县",parent_code:"410700"},{code:"410725",name:"原阳县",parent_code:"410700"},{code:"410726",name:"延津县",parent_code:"410700"},{code:"410727",name:"封丘县",parent_code:"410700"},{code:"410771",name:"新乡高新技术产业开发区",parent_code:"410700"},{code:"410772",name:"新乡经济技术开发区",parent_code:"410700"},{code:"410773",name:"新乡市平原城乡一体化示范区",parent_code:"410700"},{code:"410781",name:"卫辉市",parent_code:"410700"},{code:"410782",name:"辉县市",parent_code:"410700"},{code:"410783",name:"长垣市",parent_code:"410700"}]},{code:"410800",name:"焦作市",parent_code:"410000",children:[{code:"410802",name:"解放区",parent_code:"410800"},{code:"410803",name:"中站区",parent_code:"410800"},{code:"410804",name:"马村区",parent_code:"410800"},{code:"410811",name:"山阳区",parent_code:"410800"},{code:"410821",name:"修武县",parent_code:"410800"},{code:"410822",name:"博爱县",parent_code:"410800"},{code:"410823",name:"武陟县",parent_code:"410800"},{code:"410825",name:"温县",parent_code:"410800"},{code:"410871",name:"焦作城乡一体化示范区",parent_code:"410800"},{code:"410882",name:"沁阳市",parent_code:"410800"},{code:"410883",name:"孟州市",parent_code:"410800"}]},{code:"410900",name:"濮阳市",parent_code:"410000",children:[{code:"410902",name:"华龙区",parent_code:"410900"},{code:"410922",name:"清丰县",parent_code:"410900"},{code:"410923",name:"南乐县",parent_code:"410900"},{code:"410926",name:"范县",parent_code:"410900"},{code:"410927",name:"台前县",parent_code:"410900"},{code:"410928",name:"濮阳县",parent_code:"410900"},{code:"410971",name:"河南濮阳工业园区",parent_code:"410900"},{code:"410972",name:"濮阳经济技术开发区",parent_code:"410900"}]},{code:"411000",name:"许昌市",parent_code:"410000",children:[{code:"411002",name:"魏都区",parent_code:"411000"},{code:"411003",name:"建安区",parent_code:"411000"},{code:"411024",name:"鄢陵县",parent_code:"411000"},{code:"411025",name:"襄城县",parent_code:"411000"},{code:"411071",name:"许昌经济技术开发区",parent_code:"411000"},{code:"411081",name:"禹州市",parent_code:"411000"},{code:"411082",name:"长葛市",parent_code:"411000"}]},{code:"411100",name:"漯河市",parent_code:"410000",children:[{code:"411102",name:"源汇区",parent_code:"411100"},{code:"411103",name:"郾城区",parent_code:"411100"},{code:"411104",name:"召陵区",parent_code:"411100"},{code:"411121",name:"舞阳县",parent_code:"411100"},{code:"411122",name:"临颍县",parent_code:"411100"},{code:"411171",name:"漯河经济技术开发区",parent_code:"411100"}]},{code:"411200",name:"三门峡市",parent_code:"410000",children:[{code:"411202",name:"湖滨区",parent_code:"411200"},{code:"411203",name:"陕州区",parent_code:"411200"},{code:"411221",name:"渑池县",parent_code:"411200"},{code:"411224",name:"卢氏县",parent_code:"411200"},{code:"411271",name:"河南三门峡经济开发区",parent_code:"411200"},{code:"411281",name:"义马市",parent_code:"411200"},{code:"411282",name:"灵宝市",parent_code:"411200"}]},{code:"411300",name:"南阳市",parent_code:"410000",children:[{code:"411302",name:"宛城区",parent_code:"411300"},{code:"411303",name:"卧龙区",parent_code:"411300"},{code:"411321",name:"南召县",parent_code:"411300"},{code:"411322",name:"方城县",parent_code:"411300"},{code:"411323",name:"西峡县",parent_code:"411300"},{code:"411324",name:"镇平县",parent_code:"411300"},{code:"411325",name:"内乡县",parent_code:"411300"},{code:"411326",name:"淅川县",parent_code:"411300"},{code:"411327",name:"社旗县",parent_code:"411300"},{code:"411328",name:"唐河县",parent_code:"411300"},{code:"411329",name:"新野县",parent_code:"411300"},{code:"411330",name:"桐柏县",parent_code:"411300"},{code:"411371",name:"南阳高新技术产业开发区",parent_code:"411300"},{code:"411372",name:"南阳市城乡一体化示范区",parent_code:"411300"},{code:"411381",name:"邓州市",parent_code:"411300"}]},{code:"411400",name:"商丘市",parent_code:"410000",children:[{code:"411402",name:"梁园区",parent_code:"411400"},{code:"411403",name:"睢阳区",parent_code:"411400"},{code:"411421",name:"民权县",parent_code:"411400"},{code:"411422",name:"睢县",parent_code:"411400"},{code:"411423",name:"宁陵县",parent_code:"411400"},{code:"411424",name:"柘城县",parent_code:"411400"},{code:"411425",name:"虞城县",parent_code:"411400"},{code:"411426",name:"夏邑县",parent_code:"411400"},{code:"411471",name:"豫东综合物流产业聚集区",parent_code:"411400"},{code:"411472",name:"河南商丘经济开发区",parent_code:"411400"},{code:"411481",name:"永城市",parent_code:"411400"}]},{code:"411500",name:"信阳市",parent_code:"410000",children:[{code:"411502",name:"浉河区",parent_code:"411500"},{code:"411503",name:"平桥区",parent_code:"411500"},{code:"411521",name:"罗山县",parent_code:"411500"},{code:"411522",name:"光山县",parent_code:"411500"},{code:"411523",name:"新县",parent_code:"411500"},{code:"411524",name:"商城县",parent_code:"411500"},{code:"411525",name:"固始县",parent_code:"411500"},{code:"411526",name:"潢川县",parent_code:"411500"},{code:"411527",name:"淮滨县",parent_code:"411500"},{code:"411528",name:"息县",parent_code:"411500"},{code:"411571",name:"信阳高新技术产业开发区",parent_code:"411500"}]},{code:"411600",name:"周口市",parent_code:"410000",children:[{code:"411602",name:"川汇区",parent_code:"411600"},{code:"411603",name:"淮阳区",parent_code:"411600"},{code:"411621",name:"扶沟县",parent_code:"411600"},{code:"411622",name:"西华县",parent_code:"411600"},{code:"411623",name:"商水县",parent_code:"411600"},{code:"411624",name:"沈丘县",parent_code:"411600"},{code:"411625",name:"郸城县",parent_code:"411600"},{code:"411627",name:"太康县",parent_code:"411600"},{code:"411628",name:"鹿邑县",parent_code:"411600"},{code:"411671",name:"周口临港开发区",parent_code:"411600"},{code:"411681",name:"项城市",parent_code:"411600"}]},{code:"411700",name:"驻马店市",parent_code:"410000",children:[{code:"411702",name:"驿城区",parent_code:"411700"},{code:"411721",name:"西平县",parent_code:"411700"},{code:"411722",name:"上蔡县",parent_code:"411700"},{code:"411723",name:"平舆县",parent_code:"411700"},{code:"411724",name:"正阳县",parent_code:"411700"},{code:"411725",name:"确山县",parent_code:"411700"},{code:"411726",name:"泌阳县",parent_code:"411700"},{code:"411727",name:"汝南县",parent_code:"411700"},{code:"411728",name:"遂平县",parent_code:"411700"},{code:"411729",name:"新蔡县",parent_code:"411700"},{code:"411771",name:"河南驻马店经济开发区",parent_code:"411700"}]},{code:"419001",name:"济源市",parent_code:"410000",children:[{code:"41900101",name:"济源市",parent_code:"419001"}]}]},{code:"420000",name:"湖北省",children:[{code:"420100",name:"武汉市",parent_code:"420000",children:[{code:"420102",name:"江岸区",parent_code:"420100"},{code:"420103",name:"江汉区",parent_code:"420100"},{code:"420104",name:"硚口区",parent_code:"420100"},{code:"420105",name:"汉阳区",parent_code:"420100"},{code:"420106",name:"武昌区",parent_code:"420100"},{code:"420107",name:"青山区",parent_code:"420100"},{code:"420111",name:"洪山区",parent_code:"420100"},{code:"420112",name:"东西湖区",parent_code:"420100"},{code:"420113",name:"汉南区",parent_code:"420100"},{code:"420114",name:"蔡甸区",parent_code:"420100"},{code:"420115",name:"江夏区",parent_code:"420100"},{code:"420116",name:"黄陂区",parent_code:"420100"},{code:"420117",name:"新洲区",parent_code:"420100"}]},{code:"420200",name:"黄石市",parent_code:"420000",children:[{code:"420202",name:"黄石港区",parent_code:"420200"},{code:"420203",name:"西塞山区",parent_code:"420200"},{code:"420204",name:"下陆区",parent_code:"420200"},{code:"420205",name:"铁山区",parent_code:"420200"},{code:"420222",name:"阳新县",parent_code:"420200"},{code:"420281",name:"大冶市",parent_code:"420200"}]},{code:"420300",name:"十堰市",parent_code:"420000",children:[{code:"420302",name:"茅箭区",parent_code:"420300"},{code:"420303",name:"张湾区",parent_code:"420300"},{code:"420304",name:"郧阳区",parent_code:"420300"},{code:"420322",name:"郧西县",parent_code:"420300"},{code:"420323",name:"竹山县",parent_code:"420300"},{code:"420324",name:"竹溪县",parent_code:"420300"},{code:"420325",name:"房县",parent_code:"420300"},{code:"420381",name:"丹江口市",parent_code:"420300"}]},{code:"420500",name:"宜昌市",parent_code:"420000",children:[{code:"420502",name:"西陵区",parent_code:"420500"},{code:"420503",name:"伍家岗区",parent_code:"420500"},{code:"420504",name:"点军区",parent_code:"420500"},{code:"420505",name:"猇亭区",parent_code:"420500"},{code:"420506",name:"夷陵区",parent_code:"420500"},{code:"420525",name:"远安县",parent_code:"420500"},{code:"420526",name:"兴山县",parent_code:"420500"},{code:"420527",name:"秭归县",parent_code:"420500"},{code:"420528",name:"长阳土家族自治县",parent_code:"420500"},{code:"420529",name:"五峰土家族自治县",parent_code:"420500"},{code:"420581",name:"宜都市",parent_code:"420500"},{code:"420582",name:"当阳市",parent_code:"420500"},{code:"420583",name:"枝江市",parent_code:"420500"}]},{code:"420600",name:"襄阳市",parent_code:"420000",children:[{code:"420602",name:"襄城区",parent_code:"420600"},{code:"420606",name:"樊城区",parent_code:"420600"},{code:"420607",name:"襄州区",parent_code:"420600"},{code:"420624",name:"南漳县",parent_code:"420600"},{code:"420625",name:"谷城县",parent_code:"420600"},{code:"420626",name:"保康县",parent_code:"420600"},{code:"420682",name:"老河口市",parent_code:"420600"},{code:"420683",name:"枣阳市",parent_code:"420600"},{code:"420684",name:"宜城市",parent_code:"420600"}]},{code:"420700",name:"鄂州市",parent_code:"420000",children:[{code:"420702",name:"梁子湖区",parent_code:"420700"},{code:"420703",name:"华容区",parent_code:"420700"},{code:"420704",name:"鄂城区",parent_code:"420700"}]},{code:"420800",name:"荆门市",parent_code:"420000",children:[{code:"420802",name:"东宝区",parent_code:"420800"},{code:"420804",name:"掇刀区",parent_code:"420800"},{code:"420822",name:"沙洋县",parent_code:"420800"},{code:"420881",name:"钟祥市",parent_code:"420800"},{code:"420882",name:"京山市",parent_code:"420800"}]},{code:"420900",name:"孝感市",parent_code:"420000",children:[{code:"420902",name:"孝南区",parent_code:"420900"},{code:"420921",name:"孝昌县",parent_code:"420900"},{code:"420922",name:"大悟县",parent_code:"420900"},{code:"420923",name:"云梦县",parent_code:"420900"},{code:"420981",name:"应城市",parent_code:"420900"},{code:"420982",name:"安陆市",parent_code:"420900"},{code:"420984",name:"汉川市",parent_code:"420900"}]},{code:"421000",name:"荆州市",parent_code:"420000",children:[{code:"421002",name:"沙市区",parent_code:"421000"},{code:"421003",name:"荆州区",parent_code:"421000"},{code:"421022",name:"公安县",parent_code:"421000"},{code:"421024",name:"江陵县",parent_code:"421000"},{code:"421071",name:"荆州经济技术开发区",parent_code:"421000"},{code:"421081",name:"石首市",parent_code:"421000"},{code:"421083",name:"洪湖市",parent_code:"421000"},{code:"421087",name:"松滋市",parent_code:"421000"},{code:"421088",name:"监利市",parent_code:"421000"}]},{code:"421100",name:"黄冈市",parent_code:"420000",children:[{code:"421102",name:"黄州区",parent_code:"421100"},{code:"421121",name:"团风县",parent_code:"421100"},{code:"421122",name:"红安县",parent_code:"421100"},{code:"421123",name:"罗田县",parent_code:"421100"},{code:"421124",name:"英山县",parent_code:"421100"},{code:"421125",name:"浠水县",parent_code:"421100"},{code:"421126",name:"蕲春县",parent_code:"421100"},{code:"421127",name:"黄梅县",parent_code:"421100"},{code:"421171",name:"龙感湖管理区",parent_code:"421100"},{code:"421181",name:"麻城市",parent_code:"421100"},{code:"421182",name:"武穴市",parent_code:"421100"}]},{code:"421200",name:"咸宁市",parent_code:"420000",children:[{code:"421202",name:"咸安区",parent_code:"421200"},{code:"421221",name:"嘉鱼县",parent_code:"421200"},{code:"421222",name:"通城县",parent_code:"421200"},{code:"421223",name:"崇阳县",parent_code:"421200"},{code:"421224",name:"通山县",parent_code:"421200"},{code:"421281",name:"赤壁市",parent_code:"421200"}]},{code:"421300",name:"随州市",parent_code:"420000",children:[{code:"421303",name:"曾都区",parent_code:"421300"},{code:"421321",name:"随县",parent_code:"421300"},{code:"421381",name:"广水市",parent_code:"421300"}]},{code:"422800",name:"恩施土家族苗族自治州",parent_code:"420000",children:[{code:"422801",name:"恩施市",parent_code:"422800"},{code:"422802",name:"利川市",parent_code:"422800"},{code:"422822",name:"建始县",parent_code:"422800"},{code:"422823",name:"巴东县",parent_code:"422800"},{code:"422825",name:"宣恩县",parent_code:"422800"},{code:"422826",name:"咸丰县",parent_code:"422800"},{code:"422827",name:"来凤县",parent_code:"422800"},{code:"422828",name:"鹤峰县",parent_code:"422800"}]},{code:"429004",name:"仙桃市",parent_code:"420000",children:[{code:"42900401",name:"仙桃市",parent_code:"429004"}]},{code:"429005",name:"潜江市",parent_code:"420000",children:[{code:"42900501",name:"潜江市",parent_code:"429005"}]},{code:"429006",name:"天门市",parent_code:"420000",children:[{code:"42900601",name:"天门市",parent_code:"429006"}]},{code:"429021",name:"神农架林区",parent_code:"420000",children:[{code:"42902101",name:"神农架林区",parent_code:"429021"}]}]},{code:"430000",name:"湖南省",children:[{code:"430100",name:"长沙市",parent_code:"430000",children:[{code:"430102",name:"芙蓉区",parent_code:"430100"},{code:"430103",name:"天心区",parent_code:"430100"},{code:"430104",name:"岳麓区",parent_code:"430100"},{code:"430105",name:"开福区",parent_code:"430100"},{code:"430111",name:"雨花区",parent_code:"430100"},{code:"430112",name:"望城区",parent_code:"430100"},{code:"430121",name:"长沙县",parent_code:"430100"},{code:"430181",name:"浏阳市",parent_code:"430100"},{code:"430182",name:"宁乡市",parent_code:"430100"}]},{code:"430200",name:"株洲市",parent_code:"430000",children:[{code:"430202",name:"荷塘区",parent_code:"430200"},{code:"430203",name:"芦淞区",parent_code:"430200"},{code:"430204",name:"石峰区",parent_code:"430200"},{code:"430211",name:"天元区",parent_code:"430200"},{code:"430212",name:"渌口区",parent_code:"430200"},{code:"430223",name:"攸县",parent_code:"430200"},{code:"430224",name:"茶陵县",parent_code:"430200"},{code:"430225",name:"炎陵县",parent_code:"430200"},{code:"430281",name:"醴陵市",parent_code:"430200"}]},{code:"430300",name:"湘潭市",parent_code:"430000",children:[{code:"430302",name:"雨湖区",parent_code:"430300"},{code:"430304",name:"岳塘区",parent_code:"430300"},{code:"430321",name:"湘潭县",parent_code:"430300"},{code:"430371",name:"湖南湘潭高新技术产业园区",parent_code:"430300"},{code:"430372",name:"湘潭昭山示范区",parent_code:"430300"},{code:"430373",name:"湘潭九华示范区",parent_code:"430300"},{code:"430381",name:"湘乡市",parent_code:"430300"},{code:"430382",name:"韶山市",parent_code:"430300"}]},{code:"430400",name:"衡阳市",parent_code:"430000",children:[{code:"430405",name:"珠晖区",parent_code:"430400"},{code:"430406",name:"雁峰区",parent_code:"430400"},{code:"430407",name:"石鼓区",parent_code:"430400"},{code:"430408",name:"蒸湘区",parent_code:"430400"},{code:"430412",name:"南岳区",parent_code:"430400"},{code:"430421",name:"衡阳县",parent_code:"430400"},{code:"430422",name:"衡南县",parent_code:"430400"},{code:"430423",name:"衡山县",parent_code:"430400"},{code:"430424",name:"衡东县",parent_code:"430400"},{code:"430426",name:"祁东县",parent_code:"430400"},{code:"430473",name:"湖南衡阳松木经济开发区",parent_code:"430400"},{code:"430476",name:"湖南衡阳高新技术产业园区",parent_code:"430400"},{code:"430481",name:"耒阳市",parent_code:"430400"},{code:"430482",name:"常宁市",parent_code:"430400"}]},{code:"430500",name:"邵阳市",parent_code:"430000",children:[{code:"430502",name:"双清区",parent_code:"430500"},{code:"430503",name:"大祥区",parent_code:"430500"},{code:"430511",name:"北塔区",parent_code:"430500"},{code:"430522",name:"新邵县",parent_code:"430500"},{code:"430523",name:"邵阳县",parent_code:"430500"},{code:"430524",name:"隆回县",parent_code:"430500"},{code:"430525",name:"洞口县",parent_code:"430500"},{code:"430527",name:"绥宁县",parent_code:"430500"},{code:"430528",name:"新宁县",parent_code:"430500"},{code:"430529",name:"城步苗族自治县",parent_code:"430500"},{code:"430581",name:"武冈市",parent_code:"430500"},{code:"430582",name:"邵东市",parent_code:"430500"}]},{code:"430600",name:"岳阳市",parent_code:"430000",children:[{code:"430602",name:"岳阳楼区",parent_code:"430600"},{code:"430603",name:"云溪区",parent_code:"430600"},{code:"430611",name:"君山区",parent_code:"430600"},{code:"430621",name:"岳阳县",parent_code:"430600"},{code:"430623",name:"华容县",parent_code:"430600"},{code:"430624",name:"湘阴县",parent_code:"430600"},{code:"430626",name:"平江县",parent_code:"430600"},{code:"430671",name:"岳阳市屈原管理区",parent_code:"430600"},{code:"430681",name:"汨罗市",parent_code:"430600"},{code:"430682",name:"临湘市",parent_code:"430600"}]},{code:"430700",name:"常德市",parent_code:"430000",children:[{code:"430702",name:"武陵区",parent_code:"430700"},{code:"430703",name:"鼎城区",parent_code:"430700"},{code:"430721",name:"安乡县",parent_code:"430700"},{code:"430722",name:"汉寿县",parent_code:"430700"},{code:"430723",name:"澧县",parent_code:"430700"},{code:"430724",name:"临澧县",parent_code:"430700"},{code:"430725",name:"桃源县",parent_code:"430700"},{code:"430726",name:"石门县",parent_code:"430700"},{code:"430771",name:"常德市西洞庭管理区",parent_code:"430700"},{code:"430781",name:"津市市",parent_code:"430700"}]},{code:"430800",name:"张家界市",parent_code:"430000",children:[{code:"430802",name:"永定区",parent_code:"430800"},{code:"430811",name:"武陵源区",parent_code:"430800"},{code:"430821",name:"慈利县",parent_code:"430800"},{code:"430822",name:"桑植县",parent_code:"430800"}]},{code:"430900",name:"益阳市",parent_code:"430000",children:[{code:"430902",name:"资阳区",parent_code:"430900"},{code:"430903",name:"赫山区",parent_code:"430900"},{code:"430921",name:"南县",parent_code:"430900"},{code:"430922",name:"桃江县",parent_code:"430900"},{code:"430923",name:"安化县",parent_code:"430900"},{code:"430971",name:"益阳市大通湖管理区",parent_code:"430900"},{code:"430972",name:"湖南益阳高新技术产业园区",parent_code:"430900"},{code:"430981",name:"沅江市",parent_code:"430900"}]},{code:"431000",name:"郴州市",parent_code:"430000",children:[{code:"431002",name:"北湖区",parent_code:"431000"},{code:"431003",name:"苏仙区",parent_code:"431000"},{code:"431021",name:"桂阳县",parent_code:"431000"},{code:"431022",name:"宜章县",parent_code:"431000"},{code:"431023",name:"永兴县",parent_code:"431000"},{code:"431024",name:"嘉禾县",parent_code:"431000"},{code:"431025",name:"临武县",parent_code:"431000"},{code:"431026",name:"汝城县",parent_code:"431000"},{code:"431027",name:"桂东县",parent_code:"431000"},{code:"431028",name:"安仁县",parent_code:"431000"},{code:"431081",name:"资兴市",parent_code:"431000"}]},{code:"431100",name:"永州市",parent_code:"430000",children:[{code:"431102",name:"零陵区",parent_code:"431100"},{code:"431103",name:"冷水滩区",parent_code:"431100"},{code:"431122",name:"东安县",parent_code:"431100"},{code:"431123",name:"双牌县",parent_code:"431100"},{code:"431124",name:"道县",parent_code:"431100"},{code:"431125",name:"江永县",parent_code:"431100"},{code:"431126",name:"宁远县",parent_code:"431100"},{code:"431127",name:"蓝山县",parent_code:"431100"},{code:"431128",name:"新田县",parent_code:"431100"},{code:"431129",name:"江华瑶族自治县",parent_code:"431100"},{code:"431171",name:"永州经济技术开发区",parent_code:"431100"},{code:"431173",name:"永州市回龙圩管理区",parent_code:"431100"},{code:"431181",name:"祁阳市",parent_code:"431100"}]},{code:"431200",name:"怀化市",parent_code:"430000",children:[{code:"431202",name:"鹤城区",parent_code:"431200"},{code:"431221",name:"中方县",parent_code:"431200"},{code:"431222",name:"沅陵县",parent_code:"431200"},{code:"431223",name:"辰溪县",parent_code:"431200"},{code:"431224",name:"溆浦县",parent_code:"431200"},{code:"431225",name:"会同县",parent_code:"431200"},{code:"431226",name:"麻阳苗族自治县",parent_code:"431200"},{code:"431227",name:"新晃侗族自治县",parent_code:"431200"},{code:"431228",name:"芷江侗族自治县",parent_code:"431200"},{code:"431229",name:"靖州苗族侗族自治县",parent_code:"431200"},{code:"431230",name:"通道侗族自治县",parent_code:"431200"},{code:"431271",name:"怀化市洪江管理区",parent_code:"431200"},{code:"431281",name:"洪江市",parent_code:"431200"}]},{code:"431300",name:"娄底市",parent_code:"430000",children:[{code:"431302",name:"娄星区",parent_code:"431300"},{code:"431321",name:"双峰县",parent_code:"431300"},{code:"431322",name:"新化县",parent_code:"431300"},{code:"431381",name:"冷水江市",parent_code:"431300"},{code:"431382",name:"涟源市",parent_code:"431300"}]},{code:"433100",name:"湘西土家族苗族自治州",parent_code:"430000",children:[{code:"433101",name:"吉首市",parent_code:"433100"},{code:"433122",name:"泸溪县",parent_code:"433100"},{code:"433123",name:"凤凰县",parent_code:"433100"},{code:"433124",name:"花垣县",parent_code:"433100"},{code:"433125",name:"保靖县",parent_code:"433100"},{code:"433126",name:"古丈县",parent_code:"433100"},{code:"433127",name:"永顺县",parent_code:"433100"},{code:"433130",name:"龙山县",parent_code:"433100"}]}]},{code:"440000",name:"广东省",children:[{code:"440100",name:"广州市",parent_code:"440000",children:[{code:"440103",name:"荔湾区",parent_code:"440100"},{code:"440104",name:"越秀区",parent_code:"440100"},{code:"440105",name:"海珠区",parent_code:"440100"},{code:"440106",name:"天河区",parent_code:"440100"},{code:"440111",name:"白云区",parent_code:"440100"},{code:"440112",name:"黄埔区",parent_code:"440100"},{code:"440113",name:"番禺区",parent_code:"440100"},{code:"440114",name:"花都区",parent_code:"440100"},{code:"440115",name:"南沙区",parent_code:"440100"},{code:"440117",name:"从化区",parent_code:"440100"},{code:"440118",name:"增城区",parent_code:"440100"}]},{code:"440200",name:"韶关市",parent_code:"440000",children:[{code:"440203",name:"武江区",parent_code:"440200"},{code:"440204",name:"浈江区",parent_code:"440200"},{code:"440205",name:"曲江区",parent_code:"440200"},{code:"440222",name:"始兴县",parent_code:"440200"},{code:"440224",name:"仁化县",parent_code:"440200"},{code:"440229",name:"翁源县",parent_code:"440200"},{code:"440232",name:"乳源瑶族自治县",parent_code:"440200"},{code:"440233",name:"新丰县",parent_code:"440200"},{code:"440281",name:"乐昌市",parent_code:"440200"},{code:"440282",name:"南雄市",parent_code:"440200"}]},{code:"440300",name:"深圳市",parent_code:"440000",children:[{code:"440303",name:"罗湖区",parent_code:"440300"},{code:"440304",name:"福田区",parent_code:"440300"},{code:"440305",name:"南山区",parent_code:"440300"},{code:"440306",name:"宝安区",parent_code:"440300"},{code:"440307",name:"龙岗区",parent_code:"440300"},{code:"440308",name:"盐田区",parent_code:"440300"},{code:"440309",name:"龙华区",parent_code:"440300"},{code:"440310",name:"坪山区",parent_code:"440300"},{code:"440311",name:"光明区",parent_code:"440300"}]},{code:"440400",name:"珠海市",parent_code:"440000",children:[{code:"440402",name:"香洲区",parent_code:"440400"},{code:"440403",name:"斗门区",parent_code:"440400"},{code:"440404",name:"金湾区",parent_code:"440400"}]},{code:"440500",name:"汕头市",parent_code:"440000",children:[{code:"440507",name:"龙湖区",parent_code:"440500"},{code:"440511",name:"金平区",parent_code:"440500"},{code:"440512",name:"濠江区",parent_code:"440500"},{code:"440513",name:"潮阳区",parent_code:"440500"},{code:"440514",name:"潮南区",parent_code:"440500"},{code:"440515",name:"澄海区",parent_code:"440500"},{code:"440523",name:"南澳县",parent_code:"440500"}]},{code:"440600",name:"佛山市",parent_code:"440000",children:[{code:"440604",name:"禅城区",parent_code:"440600"},{code:"440605",name:"南海区",parent_code:"440600"},{code:"440606",name:"顺德区",parent_code:"440600"},{code:"440607",name:"三水区",parent_code:"440600"},{code:"440608",name:"高明区",parent_code:"440600"}]},{code:"440700",name:"江门市",parent_code:"440000",children:[{code:"440703",name:"蓬江区",parent_code:"440700"},{code:"440704",name:"江海区",parent_code:"440700"},{code:"440705",name:"新会区",parent_code:"440700"},{code:"440781",name:"台山市",parent_code:"440700"},{code:"440783",name:"开平市",parent_code:"440700"},{code:"440784",name:"鹤山市",parent_code:"440700"},{code:"440785",name:"恩平市",parent_code:"440700"}]},{code:"440800",name:"湛江市",parent_code:"440000",children:[{code:"440802",name:"赤坎区",parent_code:"440800"},{code:"440803",name:"霞山区",parent_code:"440800"},{code:"440804",name:"坡头区",parent_code:"440800"},{code:"440811",name:"麻章区",parent_code:"440800"},{code:"440823",name:"遂溪县",parent_code:"440800"},{code:"440825",name:"徐闻县",parent_code:"440800"},{code:"440881",name:"廉江市",parent_code:"440800"},{code:"440882",name:"雷州市",parent_code:"440800"},{code:"440883",name:"吴川市",parent_code:"440800"}]},{code:"440900",name:"茂名市",parent_code:"440000",children:[{code:"440902",name:"茂南区",parent_code:"440900"},{code:"440904",name:"电白区",parent_code:"440900"},{code:"440981",name:"高州市",parent_code:"440900"},{code:"440982",name:"化州市",parent_code:"440900"},{code:"440983",name:"信宜市",parent_code:"440900"}]},{code:"441200",name:"肇庆市",parent_code:"440000",children:[{code:"441202",name:"端州区",parent_code:"441200"},{code:"441203",name:"鼎湖区",parent_code:"441200"},{code:"441204",name:"高要区",parent_code:"441200"},{code:"441223",name:"广宁县",parent_code:"441200"},{code:"441224",name:"怀集县",parent_code:"441200"},{code:"441225",name:"封开县",parent_code:"441200"},{code:"441226",name:"德庆县",parent_code:"441200"},{code:"441284",name:"四会市",parent_code:"441200"}]},{code:"441300",name:"惠州市",parent_code:"440000",children:[{code:"441302",name:"惠城区",parent_code:"441300"},{code:"441303",name:"惠阳区",parent_code:"441300"},{code:"441322",name:"博罗县",parent_code:"441300"},{code:"441323",name:"惠东县",parent_code:"441300"},{code:"441324",name:"龙门县",parent_code:"441300"}]},{code:"441400",name:"梅州市",parent_code:"440000",children:[{code:"441402",name:"梅江区",parent_code:"441400"},{code:"441403",name:"梅县区",parent_code:"441400"},{code:"441422",name:"大埔县",parent_code:"441400"},{code:"441423",name:"丰顺县",parent_code:"441400"},{code:"441424",name:"五华县",parent_code:"441400"},{code:"441426",name:"平远县",parent_code:"441400"},{code:"441427",name:"蕉岭县",parent_code:"441400"},{code:"441481",name:"兴宁市",parent_code:"441400"}]},{code:"441500",name:"汕尾市",parent_code:"440000",children:[{code:"441502",name:"城区",parent_code:"441500"},{code:"441521",name:"海丰县",parent_code:"441500"},{code:"441523",name:"陆河县",parent_code:"441500"},{code:"441581",name:"陆丰市",parent_code:"441500"}]},{code:"441600",name:"河源市",parent_code:"440000",children:[{code:"441602",name:"源城区",parent_code:"441600"},{code:"441621",name:"紫金县",parent_code:"441600"},{code:"441622",name:"龙川县",parent_code:"441600"},{code:"441623",name:"连平县",parent_code:"441600"},{code:"441624",name:"和平县",parent_code:"441600"},{code:"441625",name:"东源县",parent_code:"441600"}]},{code:"441700",name:"阳江市",parent_code:"440000",children:[{code:"441702",name:"江城区",parent_code:"441700"},{code:"441704",name:"阳东区",parent_code:"441700"},{code:"441721",name:"阳西县",parent_code:"441700"},{code:"441781",name:"阳春市",parent_code:"441700"}]},{code:"441800",name:"清远市",parent_code:"440000",children:[{code:"441802",name:"清城区",parent_code:"441800"},{code:"441803",name:"清新区",parent_code:"441800"},{code:"441821",name:"佛冈县",parent_code:"441800"},{code:"441823",name:"阳山县",parent_code:"441800"},{code:"441825",name:"连山壮族瑶族自治县",parent_code:"441800"},{code:"441826",name:"连南瑶族自治县",parent_code:"441800"},{code:"441881",name:"英德市",parent_code:"441800"},{code:"441882",name:"连州市",parent_code:"441800"}]},{code:"441900",name:"东莞市",parent_code:"440000",children:[{code:"441900",name:"东莞市",parent_code:"441900"}]},{code:"442000",name:"中山市",parent_code:"440000",children:[{code:"442000",name:"中山市",parent_code:"442000"}]},{code:"445100",name:"潮州市",parent_code:"440000",children:[{code:"445102",name:"湘桥区",parent_code:"445100"},{code:"445103",name:"潮安区",parent_code:"445100"},{code:"445122",name:"饶平县",parent_code:"445100"}]},{code:"445200",name:"揭阳市",parent_code:"440000",children:[{code:"445202",name:"榕城区",parent_code:"445200"},{code:"445203",name:"揭东区",parent_code:"445200"},{code:"445222",name:"揭西县",parent_code:"445200"},{code:"445224",name:"惠来县",parent_code:"445200"},{code:"445281",name:"普宁市",parent_code:"445200"}]},{code:"445300",name:"云浮市",parent_code:"440000",children:[{code:"445302",name:"云城区",parent_code:"445300"},{code:"445303",name:"云安区",parent_code:"445300"},{code:"445321",name:"新兴县",parent_code:"445300"},{code:"445322",name:"郁南县",parent_code:"445300"},{code:"445381",name:"罗定市",parent_code:"445300"}]}]},{code:"450000",name:"广西壮族自治区",children:[{code:"450100",name:"南宁市",parent_code:"450000",children:[{code:"450102",name:"兴宁区",parent_code:"450100"},{code:"450103",name:"青秀区",parent_code:"450100"},{code:"450105",name:"江南区",parent_code:"450100"},{code:"450107",name:"西乡塘区",parent_code:"450100"},{code:"450108",name:"良庆区",parent_code:"450100"},{code:"450109",name:"邕宁区",parent_code:"450100"},{code:"450110",name:"武鸣区",parent_code:"450100"},{code:"450123",name:"隆安县",parent_code:"450100"},{code:"450124",name:"马山县",parent_code:"450100"},{code:"450125",name:"上林县",parent_code:"450100"},{code:"450126",name:"宾阳县",parent_code:"450100"},{code:"450181",name:"横州市",parent_code:"450100"}]},{code:"450200",name:"柳州市",parent_code:"450000",children:[{code:"450202",name:"城中区",parent_code:"450200"},{code:"450203",name:"鱼峰区",parent_code:"450200"},{code:"450204",name:"柳南区",parent_code:"450200"},{code:"450205",name:"柳北区",parent_code:"450200"},{code:"450206",name:"柳江区",parent_code:"450200"},{code:"450222",name:"柳城县",parent_code:"450200"},{code:"450223",name:"鹿寨县",parent_code:"450200"},{code:"450224",name:"融安县",parent_code:"450200"},{code:"450225",name:"融水苗族自治县",parent_code:"450200"},{code:"450226",name:"三江侗族自治县",parent_code:"450200"}]},{code:"450300",name:"桂林市",parent_code:"450000",children:[{code:"450302",name:"秀峰区",parent_code:"450300"},{code:"450303",name:"叠彩区",parent_code:"450300"},{code:"450304",name:"象山区",parent_code:"450300"},{code:"450305",name:"七星区",parent_code:"450300"},{code:"450311",name:"雁山区",parent_code:"450300"},{code:"450312",name:"临桂区",parent_code:"450300"},{code:"450321",name:"阳朔县",parent_code:"450300"},{code:"450323",name:"灵川县",parent_code:"450300"},{code:"450324",name:"全州县",parent_code:"450300"},{code:"450325",name:"兴安县",parent_code:"450300"},{code:"450326",name:"永福县",parent_code:"450300"},{code:"450327",name:"灌阳县",parent_code:"450300"},{code:"450328",name:"龙胜各族自治县",parent_code:"450300"},{code:"450329",name:"资源县",parent_code:"450300"},{code:"450330",name:"平乐县",parent_code:"450300"},{code:"450332",name:"恭城瑶族自治县",parent_code:"450300"},{code:"450381",name:"荔浦市",parent_code:"450300"}]},{code:"450400",name:"梧州市",parent_code:"450000",children:[{code:"450403",name:"万秀区",parent_code:"450400"},{code:"450405",name:"长洲区",parent_code:"450400"},{code:"450406",name:"龙圩区",parent_code:"450400"},{code:"450421",name:"苍梧县",parent_code:"450400"},{code:"450422",name:"藤县",parent_code:"450400"},{code:"450423",name:"蒙山县",parent_code:"450400"},{code:"450481",name:"岑溪市",parent_code:"450400"}]},{code:"450500",name:"北海市",parent_code:"450000",children:[{code:"450502",name:"海城区",parent_code:"450500"},{code:"450503",name:"银海区",parent_code:"450500"},{code:"450512",name:"铁山港区",parent_code:"450500"},{code:"450521",name:"合浦县",parent_code:"450500"}]},{code:"450600",name:"防城港市",parent_code:"450000",children:[{code:"450602",name:"港口区",parent_code:"450600"},{code:"450603",name:"防城区",parent_code:"450600"},{code:"450621",name:"上思县",parent_code:"450600"},{code:"450681",name:"东兴市",parent_code:"450600"}]},{code:"450700",name:"钦州市",parent_code:"450000",children:[{code:"450702",name:"钦南区",parent_code:"450700"},{code:"450703",name:"钦北区",parent_code:"450700"},{code:"450721",name:"灵山县",parent_code:"450700"},{code:"450722",name:"浦北县",parent_code:"450700"}]},{code:"450800",name:"贵港市",parent_code:"450000",children:[{code:"450802",name:"港北区",parent_code:"450800"},{code:"450803",name:"港南区",parent_code:"450800"},{code:"450804",name:"覃塘区",parent_code:"450800"},{code:"450821",name:"平南县",parent_code:"450800"},{code:"450881",name:"桂平市",parent_code:"450800"}]},{code:"450900",name:"玉林市",parent_code:"450000",children:[{code:"450902",name:"玉州区",parent_code:"450900"},{code:"450903",name:"福绵区",parent_code:"450900"},{code:"450921",name:"容县",parent_code:"450900"},{code:"450922",name:"陆川县",parent_code:"450900"},{code:"450923",name:"博白县",parent_code:"450900"},{code:"450924",name:"兴业县",parent_code:"450900"},{code:"450981",name:"北流市",parent_code:"450900"}]},{code:"451000",name:"百色市",parent_code:"450000",children:[{code:"451002",name:"右江区",parent_code:"451000"},{code:"451003",name:"田阳区",parent_code:"451000"},{code:"451022",name:"田东县",parent_code:"451000"},{code:"451024",name:"德保县",parent_code:"451000"},{code:"451026",name:"那坡县",parent_code:"451000"},{code:"451027",name:"凌云县",parent_code:"451000"},{code:"451028",name:"乐业县",parent_code:"451000"},{code:"451029",name:"田林县",parent_code:"451000"},{code:"451030",name:"西林县",parent_code:"451000"},{code:"451031",name:"隆林各族自治县",parent_code:"451000"},{code:"451081",name:"靖西市",parent_code:"451000"},{code:"451082",name:"平果市",parent_code:"451000"}]},{code:"451100",name:"贺州市",parent_code:"450000",children:[{code:"451102",name:"八步区",parent_code:"451100"},{code:"451103",name:"平桂区",parent_code:"451100"},{code:"451121",name:"昭平县",parent_code:"451100"},{code:"451122",name:"钟山县",parent_code:"451100"},{code:"451123",name:"富川瑶族自治县",parent_code:"451100"}]},{code:"451200",name:"河池市",parent_code:"450000",children:[{code:"451202",name:"金城江区",parent_code:"451200"},{code:"451203",name:"宜州区",parent_code:"451200"},{code:"451221",name:"南丹县",parent_code:"451200"},{code:"451222",name:"天峨县",parent_code:"451200"},{code:"451223",name:"凤山县",parent_code:"451200"},{code:"451224",name:"东兰县",parent_code:"451200"},{code:"451225",name:"罗城仫佬族自治县",parent_code:"451200"},{code:"451226",name:"环江毛南族自治县",parent_code:"451200"},{code:"451227",name:"巴马瑶族自治县",parent_code:"451200"},{code:"451228",name:"都安瑶族自治县",parent_code:"451200"},{code:"451229",name:"大化瑶族自治县",parent_code:"451200"}]},{code:"451300",name:"来宾市",parent_code:"450000",children:[{code:"451302",name:"兴宾区",parent_code:"451300"},{code:"451321",name:"忻城县",parent_code:"451300"},{code:"451322",name:"象州县",parent_code:"451300"},{code:"451323",name:"武宣县",parent_code:"451300"},{code:"451324",name:"金秀瑶族自治县",parent_code:"451300"},{code:"451381",name:"合山市",parent_code:"451300"}]},{code:"451400",name:"崇左市",parent_code:"450000",children:[{code:"451402",name:"江州区",parent_code:"451400"},{code:"451421",name:"扶绥县",parent_code:"451400"},{code:"451422",name:"宁明县",parent_code:"451400"},{code:"451423",name:"龙州县",parent_code:"451400"},{code:"451424",name:"大新县",parent_code:"451400"},{code:"451425",name:"天等县",parent_code:"451400"},{code:"451481",name:"凭祥市",parent_code:"451400"}]}]},{code:"460000",name:"海南省",children:[{code:"460100",name:"海口市",parent_code:"460000",children:[{code:"460105",name:"秀英区",parent_code:"460100"},{code:"460106",name:"龙华区",parent_code:"460100"},{code:"460107",name:"琼山区",parent_code:"460100"},{code:"460108",name:"美兰区",parent_code:"460100"}]},{code:"460200",name:"三亚市",parent_code:"460000",children:[{code:"460202",name:"海棠区",parent_code:"460200"},{code:"460203",name:"吉阳区",parent_code:"460200"},{code:"460204",name:"天涯区",parent_code:"460200"},{code:"460205",name:"崖州区",parent_code:"460200"}]},{code:"460300",name:"三沙市",parent_code:"460000",children:[{code:"460321",name:"西沙群岛",parent_code:"460300"},{code:"460322",name:"南沙群岛",parent_code:"460300"},{code:"460323",name:"中沙群岛的岛礁及其海域",parent_code:"460300"}]},{code:"460400",name:"儋州市",parent_code:"460000",children:[{code:"460400",name:"儋州市",parent_code:"460400"}]},{code:"469001",name:"五指山市",parent_code:"460000",children:[{code:"46900101",name:"五指山市",parent_code:"469001"}]},{code:"469002",name:"琼海市",parent_code:"460000",children:[{code:"46900201",name:"琼海市",parent_code:"469002"}]},{code:"469005",name:"文昌市",parent_code:"460000",children:[{code:"46900501",name:"文昌市",parent_code:"469005"}]},{code:"469006",name:"万宁市",parent_code:"460000",children:[{code:"46900601",name:"万宁市",parent_code:"469006"}]},{code:"469007",name:"东方市",parent_code:"460000",children:[{code:"46900701",name:"东方市",parent_code:"469007"}]},{code:"469021",name:"定安县",parent_code:"460000",children:[{code:"46902101",name:"定安县",parent_code:"469021"}]},{code:"469022",name:"屯昌县",parent_code:"460000",children:[{code:"46902201",name:"屯昌县",parent_code:"469022"}]},{code:"469023",name:"澄迈县",parent_code:"460000",children:[{code:"46902301",name:"澄迈县",parent_code:"469023"}]},{code:"469024",name:"临高县",parent_code:"460000",children:[{code:"46902401",name:"临高县",parent_code:"469024"}]},{code:"469025",name:"白沙黎族自治县",parent_code:"460000",children:[{code:"46902501",name:"白沙黎族自治县",parent_code:"469025"}]},{code:"469026",name:"昌江黎族自治县",parent_code:"460000",children:[{code:"46902601",name:"昌江黎族自治县",parent_code:"469026"}]},{code:"469027",name:"乐东黎族自治县",parent_code:"460000",children:[{code:"46902701",name:"乐东黎族自治县",parent_code:"469027"}]},{code:"469028",name:"陵水黎族自治县",parent_code:"460000",children:[{code:"46902801",name:"陵水黎族自治县",parent_code:"469028"}]},{code:"469029",name:"保亭黎族苗族自治县",parent_code:"460000",children:[{code:"46902901",name:"保亭黎族苗族自治县",parent_code:"469029"}]},{code:"469030",name:"琼中黎族苗族自治县",parent_code:"460000",children:[{code:"46903001",name:"琼中黎族苗族自治县",parent_code:"469030"}]}]},{code:"500000",name:"重庆市",children:[{code:"500100",name:"重庆市",parent_code:"500000",children:[{code:"500101",name:"万州区",parent_code:"500100"},{code:"500102",name:"涪陵区",parent_code:"500100"},{code:"500103",name:"渝中区",parent_code:"500100"},{code:"500104",name:"大渡口区",parent_code:"500100"},{code:"500105",name:"江北区",parent_code:"500100"},{code:"500106",name:"沙坪坝区",parent_code:"500100"},{code:"500107",name:"九龙坡区",parent_code:"500100"},{code:"500108",name:"南岸区",parent_code:"500100"},{code:"500109",name:"北碚区",parent_code:"500100"},{code:"500110",name:"綦江区",parent_code:"500100"},{code:"500111",name:"大足区",parent_code:"500100"},{code:"500112",name:"渝北区",parent_code:"500100"},{code:"500113",name:"巴南区",parent_code:"500100"},{code:"500114",name:"黔江区",parent_code:"500100"},{code:"500115",name:"长寿区",parent_code:"500100"},{code:"500116",name:"江津区",parent_code:"500100"},{code:"500117",name:"合川区",parent_code:"500100"},{code:"500118",name:"永川区",parent_code:"500100"},{code:"500119",name:"南川区",parent_code:"500100"},{code:"500120",name:"璧山区",parent_code:"500100"},{code:"500151",name:"铜梁区",parent_code:"500100"},{code:"500152",name:"潼南区",parent_code:"500100"},{code:"500153",name:"荣昌区",parent_code:"500100"},{code:"500154",name:"开州区",parent_code:"500100"},{code:"500155",name:"梁平区",parent_code:"500100"},{code:"500156",name:"武隆区",parent_code:"500100"},{code:"500229",name:"城口县",parent_code:"500100"},{code:"500230",name:"丰都县",parent_code:"500100"},{code:"500231",name:"垫江县",parent_code:"500100"},{code:"500233",name:"忠县",parent_code:"500100"},{code:"500235",name:"云阳县",parent_code:"500100"},{code:"500236",name:"奉节县",parent_code:"500100"},{code:"500237",name:"巫山县",parent_code:"500100"},{code:"500238",name:"巫溪县",parent_code:"500100"},{code:"500240",name:"石柱土家族自治县",parent_code:"500100"},{code:"500241",name:"秀山土家族苗族自治县",parent_code:"500100"},{code:"500242",name:"酉阳土家族苗族自治县",parent_code:"500100"},{code:"500243",name:"彭水苗族土家族自治县",parent_code:"500100"}]}]},{code:"510000",name:"四川省",children:[{code:"510100",name:"成都市",parent_code:"510000",children:[{code:"510104",name:"锦江区",parent_code:"510100"},{code:"510105",name:"青羊区",parent_code:"510100"},{code:"510106",name:"金牛区",parent_code:"510100"},{code:"510107",name:"武侯区",parent_code:"510100"},{code:"510108",name:"成华区",parent_code:"510100"},{code:"510112",name:"龙泉驿区",parent_code:"510100"},{code:"510113",name:"青白江区",parent_code:"510100"},{code:"510114",name:"新都区",parent_code:"510100"},{code:"510115",name:"温江区",parent_code:"510100"},{code:"510116",name:"双流区",parent_code:"510100"},{code:"510117",name:"郫都区",parent_code:"510100"},{code:"510118",name:"新津区",parent_code:"510100"},{code:"510121",name:"金堂县",parent_code:"510100"},{code:"510129",name:"大邑县",parent_code:"510100"},{code:"510131",name:"蒲江县",parent_code:"510100"},{code:"510181",name:"都江堰市",parent_code:"510100"},{code:"510182",name:"彭州市",parent_code:"510100"},{code:"510183",name:"邛崃市",parent_code:"510100"},{code:"510184",name:"崇州市",parent_code:"510100"},{code:"510185",name:"简阳市",parent_code:"510100"}]},{code:"510300",name:"自贡市",parent_code:"510000",children:[{code:"510302",name:"自流井区",parent_code:"510300"},{code:"510303",name:"贡井区",parent_code:"510300"},{code:"510304",name:"大安区",parent_code:"510300"},{code:"510311",name:"沿滩区",parent_code:"510300"},{code:"510321",name:"荣县",parent_code:"510300"},{code:"510322",name:"富顺县",parent_code:"510300"}]},{code:"510400",name:"攀枝花市",parent_code:"510000",children:[{code:"510402",name:"东区",parent_code:"510400"},{code:"510403",name:"西区",parent_code:"510400"},{code:"510411",name:"仁和区",parent_code:"510400"},{code:"510421",name:"米易县",parent_code:"510400"},{code:"510422",name:"盐边县",parent_code:"510400"}]},{code:"510500",name:"泸州市",parent_code:"510000",children:[{code:"510502",name:"江阳区",parent_code:"510500"},{code:"510503",name:"纳溪区",parent_code:"510500"},{code:"510504",name:"龙马潭区",parent_code:"510500"},{code:"510521",name:"泸县",parent_code:"510500"},{code:"510522",name:"合江县",parent_code:"510500"},{code:"510524",name:"叙永县",parent_code:"510500"},{code:"510525",name:"古蔺县",parent_code:"510500"}]},{code:"510600",name:"德阳市",parent_code:"510000",children:[{code:"510603",name:"旌阳区",parent_code:"510600"},{code:"510604",name:"罗江区",parent_code:"510600"},{code:"510623",name:"中江县",parent_code:"510600"},{code:"510681",name:"广汉市",parent_code:"510600"},{code:"510682",name:"什邡市",parent_code:"510600"},{code:"510683",name:"绵竹市",parent_code:"510600"}]},{code:"510700",name:"绵阳市",parent_code:"510000",children:[{code:"510703",name:"涪城区",parent_code:"510700"},{code:"510704",name:"游仙区",parent_code:"510700"},{code:"510705",name:"安州区",parent_code:"510700"},{code:"510722",name:"三台县",parent_code:"510700"},{code:"510723",name:"盐亭县",parent_code:"510700"},{code:"510725",name:"梓潼县",parent_code:"510700"},{code:"510726",name:"北川羌族自治县",parent_code:"510700"},{code:"510727",name:"平武县",parent_code:"510700"},{code:"510781",name:"江油市",parent_code:"510700"}]},{code:"510800",name:"广元市",parent_code:"510000",children:[{code:"510802",name:"利州区",parent_code:"510800"},{code:"510811",name:"昭化区",parent_code:"510800"},{code:"510812",name:"朝天区",parent_code:"510800"},{code:"510821",name:"旺苍县",parent_code:"510800"},{code:"510822",name:"青川县",parent_code:"510800"},{code:"510823",name:"剑阁县",parent_code:"510800"},{code:"510824",name:"苍溪县",parent_code:"510800"}]},{code:"510900",name:"遂宁市",parent_code:"510000",children:[{code:"510903",name:"船山区",parent_code:"510900"},{code:"510904",name:"安居区",parent_code:"510900"},{code:"510921",name:"蓬溪县",parent_code:"510900"},{code:"510923",name:"大英县",parent_code:"510900"},{code:"510981",name:"射洪市",parent_code:"510900"}]},{code:"511000",name:"内江市",parent_code:"510000",children:[{code:"511002",name:"市中区",parent_code:"511000"},{code:"511011",name:"东兴区",parent_code:"511000"},{code:"511024",name:"威远县",parent_code:"511000"},{code:"511025",name:"资中县",parent_code:"511000"},{code:"511083",name:"隆昌市",parent_code:"511000"}]},{code:"511100",name:"乐山市",parent_code:"510000",children:[{code:"511102",name:"市中区",parent_code:"511100"},{code:"511111",name:"沙湾区",parent_code:"511100"},{code:"511112",name:"五通桥区",parent_code:"511100"},{code:"511113",name:"金口河区",parent_code:"511100"},{code:"511123",name:"犍为县",parent_code:"511100"},{code:"511124",name:"井研县",parent_code:"511100"},{code:"511126",name:"夹江县",parent_code:"511100"},{code:"511129",name:"沐川县",parent_code:"511100"},{code:"511132",name:"峨边彝族自治县",parent_code:"511100"},{code:"511133",name:"马边彝族自治县",parent_code:"511100"},{code:"511181",name:"峨眉山市",parent_code:"511100"}]},{code:"511300",name:"南充市",parent_code:"510000",children:[{code:"511302",name:"顺庆区",parent_code:"511300"},{code:"511303",name:"高坪区",parent_code:"511300"},{code:"511304",name:"嘉陵区",parent_code:"511300"},{code:"511321",name:"南部县",parent_code:"511300"},{code:"511322",name:"营山县",parent_code:"511300"},{code:"511323",name:"蓬安县",parent_code:"511300"},{code:"511324",name:"仪陇县",parent_code:"511300"},{code:"511325",name:"西充县",parent_code:"511300"},{code:"511381",name:"阆中市",parent_code:"511300"}]},{code:"511400",name:"眉山市",parent_code:"510000",children:[{code:"511402",name:"东坡区",parent_code:"511400"},{code:"511403",name:"彭山区",parent_code:"511400"},{code:"511421",name:"仁寿县",parent_code:"511400"},{code:"511423",name:"洪雅县",parent_code:"511400"},{code:"511424",name:"丹棱县",parent_code:"511400"},{code:"511425",name:"青神县",parent_code:"511400"}]},{code:"511500",name:"宜宾市",parent_code:"510000",children:[{code:"511502",name:"翠屏区",parent_code:"511500"},{code:"511503",name:"南溪区",parent_code:"511500"},{code:"511504",name:"叙州区",parent_code:"511500"},{code:"511523",name:"江安县",parent_code:"511500"},{code:"511524",name:"长宁县",parent_code:"511500"},{code:"511525",name:"高县",parent_code:"511500"},{code:"511526",name:"珙县",parent_code:"511500"},{code:"511527",name:"筠连县",parent_code:"511500"},{code:"511528",name:"兴文县",parent_code:"511500"},{code:"511529",name:"屏山县",parent_code:"511500"}]},{code:"511600",name:"广安市",parent_code:"510000",children:[{code:"511602",name:"广安区",parent_code:"511600"},{code:"511603",name:"前锋区",parent_code:"511600"},{code:"511621",name:"岳池县",parent_code:"511600"},{code:"511622",name:"武胜县",parent_code:"511600"},{code:"511623",name:"邻水县",parent_code:"511600"},{code:"511681",name:"华蓥市",parent_code:"511600"}]},{code:"511700",name:"达州市",parent_code:"510000",children:[{code:"511702",name:"通川区",parent_code:"511700"},{code:"511703",name:"达川区",parent_code:"511700"},{code:"511722",name:"宣汉县",parent_code:"511700"},{code:"511723",name:"开江县",parent_code:"511700"},{code:"511724",name:"大竹县",parent_code:"511700"},{code:"511725",name:"渠县",parent_code:"511700"},{code:"511781",name:"万源市",parent_code:"511700"}]},{code:"511800",name:"雅安市",parent_code:"510000",children:[{code:"511802",name:"雨城区",parent_code:"511800"},{code:"511803",name:"名山区",parent_code:"511800"},{code:"511822",name:"荥经县",parent_code:"511800"},{code:"511823",name:"汉源县",parent_code:"511800"},{code:"511824",name:"石棉县",parent_code:"511800"},{code:"511825",name:"天全县",parent_code:"511800"},{code:"511826",name:"芦山县",parent_code:"511800"},{code:"511827",name:"宝兴县",parent_code:"511800"}]},{code:"511900",name:"巴中市",parent_code:"510000",children:[{code:"511902",name:"巴州区",parent_code:"511900"},{code:"511903",name:"恩阳区",parent_code:"511900"},{code:"511921",name:"通江县",parent_code:"511900"},{code:"511922",name:"南江县",parent_code:"511900"},{code:"511923",name:"平昌县",parent_code:"511900"}]},{code:"512000",name:"资阳市",parent_code:"510000",children:[{code:"512002",name:"雁江区",parent_code:"512000"},{code:"512021",name:"安岳县",parent_code:"512000"},{code:"512022",name:"乐至县",parent_code:"512000"}]},{code:"513200",name:"阿坝藏族羌族自治州",parent_code:"510000",children:[{code:"513201",name:"马尔康市",parent_code:"513200"},{code:"513221",name:"汶川县",parent_code:"513200"},{code:"513222",name:"理县",parent_code:"513200"},{code:"513223",name:"茂县",parent_code:"513200"},{code:"513224",name:"松潘县",parent_code:"513200"},{code:"513225",name:"九寨沟县",parent_code:"513200"},{code:"513226",name:"金川县",parent_code:"513200"},{code:"513227",name:"小金县",parent_code:"513200"},{code:"513228",name:"黑水县",parent_code:"513200"},{code:"513230",name:"壤塘县",parent_code:"513200"},{code:"513231",name:"阿坝县",parent_code:"513200"},{code:"513232",name:"若尔盖县",parent_code:"513200"},{code:"513233",name:"红原县",parent_code:"513200"}]},{code:"513300",name:"甘孜藏族自治州",parent_code:"510000",children:[{code:"513301",name:"康定市",parent_code:"513300"},{code:"513322",name:"泸定县",parent_code:"513300"},{code:"513323",name:"丹巴县",parent_code:"513300"},{code:"513324",name:"九龙县",parent_code:"513300"},{code:"513325",name:"雅江县",parent_code:"513300"},{code:"513326",name:"道孚县",parent_code:"513300"},{code:"513327",name:"炉霍县",parent_code:"513300"},{code:"513328",name:"甘孜县",parent_code:"513300"},{code:"513329",name:"新龙县",parent_code:"513300"},{code:"513330",name:"德格县",parent_code:"513300"},{code:"513331",name:"白玉县",parent_code:"513300"},{code:"513332",name:"石渠县",parent_code:"513300"},{code:"513333",name:"色达县",parent_code:"513300"},{code:"513334",name:"理塘县",parent_code:"513300"},{code:"513335",name:"巴塘县",parent_code:"513300"},{code:"513336",name:"乡城县",parent_code:"513300"},{code:"513337",name:"稻城县",parent_code:"513300"},{code:"513338",name:"得荣县",parent_code:"513300"}]},{code:"513400",name:"凉山彝族自治州",parent_code:"510000",children:[{code:"513401",name:"西昌市",parent_code:"513400"},{code:"513402",name:"会理市",parent_code:"513400"},{code:"513422",name:"木里藏族自治县",parent_code:"513400"},{code:"513423",name:"盐源县",parent_code:"513400"},{code:"513424",name:"德昌县",parent_code:"513400"},{code:"513426",name:"会东县",parent_code:"513400"},{code:"513427",name:"宁南县",parent_code:"513400"},{code:"513428",name:"普格县",parent_code:"513400"},{code:"513429",name:"布拖县",parent_code:"513400"},{code:"513430",name:"金阳县",parent_code:"513400"},{code:"513431",name:"昭觉县",parent_code:"513400"},{code:"513432",name:"喜德县",parent_code:"513400"},{code:"513433",name:"冕宁县",parent_code:"513400"},{code:"513434",name:"越西县",parent_code:"513400"},{code:"513435",name:"甘洛县",parent_code:"513400"},{code:"513436",name:"美姑县",parent_code:"513400"},{code:"513437",name:"雷波县",parent_code:"513400"}]}]},{code:"520000",name:"贵州省",children:[{code:"520100",name:"贵阳市",parent_code:"520000",children:[{code:"520102",name:"南明区",parent_code:"520100"},{code:"520103",name:"云岩区",parent_code:"520100"},{code:"520111",name:"花溪区",parent_code:"520100"},{code:"520112",name:"乌当区",parent_code:"520100"},{code:"520113",name:"白云区",parent_code:"520100"},{code:"520115",name:"观山湖区",parent_code:"520100"},{code:"520121",name:"开阳县",parent_code:"520100"},{code:"520122",name:"息烽县",parent_code:"520100"},{code:"520123",name:"修文县",parent_code:"520100"},{code:"520181",name:"清镇市",parent_code:"520100"}]},{code:"520200",name:"六盘水市",parent_code:"520000",children:[{code:"520201",name:"钟山区",parent_code:"520200"},{code:"520203",name:"六枝特区",parent_code:"520200"},{code:"520204",name:"水城区",parent_code:"520200"},{code:"520281",name:"盘州市",parent_code:"520200"}]},{code:"520300",name:"遵义市",parent_code:"520000",children:[{code:"520302",name:"红花岗区",parent_code:"520300"},{code:"520303",name:"汇川区",parent_code:"520300"},{code:"520304",name:"播州区",parent_code:"520300"},{code:"520322",name:"桐梓县",parent_code:"520300"},{code:"520323",name:"绥阳县",parent_code:"520300"},{code:"520324",name:"正安县",parent_code:"520300"},{code:"520325",name:"道真仡佬族苗族自治县",parent_code:"520300"},{code:"520326",name:"务川仡佬族苗族自治县",parent_code:"520300"},{code:"520327",name:"凤冈县",parent_code:"520300"},{code:"520328",name:"湄潭县",parent_code:"520300"},{code:"520329",name:"余庆县",parent_code:"520300"},{code:"520330",name:"习水县",parent_code:"520300"},{code:"520381",name:"赤水市",parent_code:"520300"},{code:"520382",name:"仁怀市",parent_code:"520300"}]},{code:"520400",name:"安顺市",parent_code:"520000",children:[{code:"520402",name:"西秀区",parent_code:"520400"},{code:"520403",name:"平坝区",parent_code:"520400"},{code:"520422",name:"普定县",parent_code:"520400"},{code:"520423",name:"镇宁布依族苗族自治县",parent_code:"520400"},{code:"520424",name:"关岭布依族苗族自治县",parent_code:"520400"},{code:"520425",name:"紫云苗族布依族自治县",parent_code:"520400"}]},{code:"520500",name:"毕节市",parent_code:"520000",children:[{code:"520502",name:"七星关区",parent_code:"520500"},{code:"520521",name:"大方县",parent_code:"520500"},{code:"520523",name:"金沙县",parent_code:"520500"},{code:"520524",name:"织金县",parent_code:"520500"},{code:"520525",name:"纳雍县",parent_code:"520500"},{code:"520526",name:"威宁彝族回族苗族自治县",parent_code:"520500"},{code:"520527",name:"赫章县",parent_code:"520500"},{code:"520581",name:"黔西市",parent_code:"520500"}]},{code:"520600",name:"铜仁市",parent_code:"520000",children:[{code:"520602",name:"碧江区",parent_code:"520600"},{code:"520603",name:"万山区",parent_code:"520600"},{code:"520621",name:"江口县",parent_code:"520600"},{code:"520622",name:"玉屏侗族自治县",parent_code:"520600"},{code:"520623",name:"石阡县",parent_code:"520600"},{code:"520624",name:"思南县",parent_code:"520600"},{code:"520625",name:"印江土家族苗族自治县",parent_code:"520600"},{code:"520626",name:"德江县",parent_code:"520600"},{code:"520627",name:"沿河土家族自治县",parent_code:"520600"},{code:"520628",name:"松桃苗族自治县",parent_code:"520600"}]},{code:"522300",name:"黔西南布依族苗族自治州",parent_code:"520000",children:[{code:"522301",name:"兴义市",parent_code:"522300"},{code:"522302",name:"兴仁市",parent_code:"522300"},{code:"522323",name:"普安县",parent_code:"522300"},{code:"522324",name:"晴隆县",parent_code:"522300"},{code:"522325",name:"贞丰县",parent_code:"522300"},{code:"522326",name:"望谟县",parent_code:"522300"},{code:"522327",name:"册亨县",parent_code:"522300"},{code:"522328",name:"安龙县",parent_code:"522300"}]},{code:"522600",name:"黔东南苗族侗族自治州",parent_code:"520000",children:[{code:"522601",name:"凯里市",parent_code:"522600"},{code:"522622",name:"黄平县",parent_code:"522600"},{code:"522623",name:"施秉县",parent_code:"522600"},{code:"522624",name:"三穗县",parent_code:"522600"},{code:"522625",name:"镇远县",parent_code:"522600"},{code:"522626",name:"岑巩县",parent_code:"522600"},{code:"522627",name:"天柱县",parent_code:"522600"},{code:"522628",name:"锦屏县",parent_code:"522600"},{code:"522629",name:"剑河县",parent_code:"522600"},{code:"522630",name:"台江县",parent_code:"522600"},{code:"522631",name:"黎平县",parent_code:"522600"},{code:"522632",name:"榕江县",parent_code:"522600"},{code:"522633",name:"从江县",parent_code:"522600"},{code:"522634",name:"雷山县",parent_code:"522600"},{code:"522635",name:"麻江县",parent_code:"522600"},{code:"522636",name:"丹寨县",parent_code:"522600"}]},{code:"522700",name:"黔南布依族苗族自治州",parent_code:"520000",children:[{code:"522701",name:"都匀市",parent_code:"522700"},{code:"522702",name:"福泉市",parent_code:"522700"},{code:"522722",name:"荔波县",parent_code:"522700"},{code:"522723",name:"贵定县",parent_code:"522700"},{code:"522725",name:"瓮安县",parent_code:"522700"},{code:"522726",name:"独山县",parent_code:"522700"},{code:"522727",name:"平塘县",parent_code:"522700"},{code:"522728",name:"罗甸县",parent_code:"522700"},{code:"522729",name:"长顺县",parent_code:"522700"},{code:"522730",name:"龙里县",parent_code:"522700"},{code:"522731",name:"惠水县",parent_code:"522700"},{code:"522732",name:"三都水族自治县",parent_code:"522700"}]}]},{code:"530000",name:"云南省",children:[{code:"530100",name:"昆明市",parent_code:"530000",children:[{code:"530102",name:"五华区",parent_code:"530100"},{code:"530103",name:"盘龙区",parent_code:"530100"},{code:"530111",name:"官渡区",parent_code:"530100"},{code:"530112",name:"西山区",parent_code:"530100"},{code:"530113",name:"东川区",parent_code:"530100"},{code:"530114",name:"呈贡区",parent_code:"530100"},{code:"530115",name:"晋宁区",parent_code:"530100"},{code:"530124",name:"富民县",parent_code:"530100"},{code:"530125",name:"宜良县",parent_code:"530100"},{code:"530126",name:"石林彝族自治县",parent_code:"530100"},{code:"530127",name:"嵩明县",parent_code:"530100"},{code:"530128",name:"禄劝彝族苗族自治县",parent_code:"530100"},{code:"530129",name:"寻甸回族彝族自治县",parent_code:"530100"},{code:"530181",name:"安宁市",parent_code:"530100"}]},{code:"530300",name:"曲靖市",parent_code:"530000",children:[{code:"530302",name:"麒麟区",parent_code:"530300"},{code:"530303",name:"沾益区",parent_code:"530300"},{code:"530304",name:"马龙区",parent_code:"530300"},{code:"530322",name:"陆良县",parent_code:"530300"},{code:"530323",name:"师宗县",parent_code:"530300"},{code:"530324",name:"罗平县",parent_code:"530300"},{code:"530325",name:"富源县",parent_code:"530300"},{code:"530326",name:"会泽县",parent_code:"530300"},{code:"530381",name:"宣威市",parent_code:"530300"}]},{code:"530400",name:"玉溪市",parent_code:"530000",children:[{code:"530402",name:"红塔区",parent_code:"530400"},{code:"530403",name:"江川区",parent_code:"530400"},{code:"530423",name:"通海县",parent_code:"530400"},{code:"530424",name:"华宁县",parent_code:"530400"},{code:"530425",name:"易门县",parent_code:"530400"},{code:"530426",name:"峨山彝族自治县",parent_code:"530400"},{code:"530427",name:"新平彝族傣族自治县",parent_code:"530400"},{code:"530428",name:"元江哈尼族彝族傣族自治县",parent_code:"530400"},{code:"530481",name:"澄江市",parent_code:"530400"}]},{code:"530500",name:"保山市",parent_code:"530000",children:[{code:"530502",name:"隆阳区",parent_code:"530500"},{code:"530521",name:"施甸县",parent_code:"530500"},{code:"530523",name:"龙陵县",parent_code:"530500"},{code:"530524",name:"昌宁县",parent_code:"530500"},{code:"530581",name:"腾冲市",parent_code:"530500"}]},{code:"530600",name:"昭通市",parent_code:"530000",children:[{code:"530602",name:"昭阳区",parent_code:"530600"},{code:"530621",name:"鲁甸县",parent_code:"530600"},{code:"530622",name:"巧家县",parent_code:"530600"},{code:"530623",name:"盐津县",parent_code:"530600"},{code:"530624",name:"大关县",parent_code:"530600"},{code:"530625",name:"永善县",parent_code:"530600"},{code:"530626",name:"绥江县",parent_code:"530600"},{code:"530627",name:"镇雄县",parent_code:"530600"},{code:"530628",name:"彝良县",parent_code:"530600"},{code:"530629",name:"威信县",parent_code:"530600"},{code:"530681",name:"水富市",parent_code:"530600"}]},{code:"530700",name:"丽江市",parent_code:"530000",children:[{code:"530702",name:"古城区",parent_code:"530700"},{code:"530721",name:"玉龙纳西族自治县",parent_code:"530700"},{code:"530722",name:"永胜县",parent_code:"530700"},{code:"530723",name:"华坪县",parent_code:"530700"},{code:"530724",name:"宁蒗彝族自治县",parent_code:"530700"}]},{code:"530800",name:"普洱市",parent_code:"530000",children:[{code:"530802",name:"思茅区",parent_code:"530800"},{code:"530821",name:"宁洱哈尼族彝族自治县",parent_code:"530800"},{code:"530822",name:"墨江哈尼族自治县",parent_code:"530800"},{code:"530823",name:"景东彝族自治县",parent_code:"530800"},{code:"530824",name:"景谷傣族彝族自治县",parent_code:"530800"},{code:"530825",name:"镇沅彝族哈尼族拉祜族自治县",parent_code:"530800"},{code:"530826",name:"江城哈尼族彝族自治县",parent_code:"530800"},{code:"530827",name:"孟连傣族拉祜族佤族自治县",parent_code:"530800"},{code:"530828",name:"澜沧拉祜族自治县",parent_code:"530800"},{code:"530829",name:"西盟佤族自治县",parent_code:"530800"}]},{code:"530900",name:"临沧市",parent_code:"530000",children:[{code:"530902",name:"临翔区",parent_code:"530900"},{code:"530921",name:"凤庆县",parent_code:"530900"},{code:"530922",name:"云县",parent_code:"530900"},{code:"530923",name:"永德县",parent_code:"530900"},{code:"530924",name:"镇康县",parent_code:"530900"},{code:"530925",name:"双江拉祜族佤族布朗族傣族自治县",parent_code:"530900"},{code:"530926",name:"耿马傣族佤族自治县",parent_code:"530900"},{code:"530927",name:"沧源佤族自治县",parent_code:"530900"}]},{code:"532300",name:"楚雄彝族自治州",parent_code:"530000",children:[{code:"532301",name:"楚雄市",parent_code:"532300"},{code:"532302",name:"禄丰市",parent_code:"532300"},{code:"532322",name:"双柏县",parent_code:"532300"},{code:"532323",name:"牟定县",parent_code:"532300"},{code:"532324",name:"南华县",parent_code:"532300"},{code:"532325",name:"姚安县",parent_code:"532300"},{code:"532326",name:"大姚县",parent_code:"532300"},{code:"532327",name:"永仁县",parent_code:"532300"},{code:"532328",name:"元谋县",parent_code:"532300"},{code:"532329",name:"武定县",parent_code:"532300"}]},{code:"532500",name:"红河哈尼族彝族自治州",parent_code:"530000",children:[{code:"532501",name:"个旧市",parent_code:"532500"},{code:"532502",name:"开远市",parent_code:"532500"},{code:"532503",name:"蒙自市",parent_code:"532500"},{code:"532504",name:"弥勒市",parent_code:"532500"},{code:"532523",name:"屏边苗族自治县",parent_code:"532500"},{code:"532524",name:"建水县",parent_code:"532500"},{code:"532525",name:"石屏县",parent_code:"532500"},{code:"532527",name:"泸西县",parent_code:"532500"},{code:"532528",name:"元阳县",parent_code:"532500"},{code:"532529",name:"红河县",parent_code:"532500"},{code:"532530",name:"金平苗族瑶族傣族自治县",parent_code:"532500"},{code:"532531",name:"绿春县",parent_code:"532500"},{code:"532532",name:"河口瑶族自治县",parent_code:"532500"}]},{code:"532600",name:"文山壮族苗族自治州",parent_code:"530000",children:[{code:"532601",name:"文山市",parent_code:"532600"},{code:"532622",name:"砚山县",parent_code:"532600"},{code:"532623",name:"西畴县",parent_code:"532600"},{code:"532624",name:"麻栗坡县",parent_code:"532600"},{code:"532625",name:"马关县",parent_code:"532600"},{code:"532626",name:"丘北县",parent_code:"532600"},{code:"532627",name:"广南县",parent_code:"532600"},{code:"532628",name:"富宁县",parent_code:"532600"}]},{code:"532800",name:"西双版纳傣族自治州",parent_code:"530000",children:[{code:"532801",name:"景洪市",parent_code:"532800"},{code:"532822",name:"勐海县",parent_code:"532800"},{code:"532823",name:"勐腊县",parent_code:"532800"}]},{code:"532900",name:"大理白族自治州",parent_code:"530000",children:[{code:"532901",name:"大理市",parent_code:"532900"},{code:"532922",name:"漾濞彝族自治县",parent_code:"532900"},{code:"532923",name:"祥云县",parent_code:"532900"},{code:"532924",name:"宾川县",parent_code:"532900"},{code:"532925",name:"弥渡县",parent_code:"532900"},{code:"532926",name:"南涧彝族自治县",parent_code:"532900"},{code:"532927",name:"巍山彝族回族自治县",parent_code:"532900"},{code:"532928",name:"永平县",parent_code:"532900"},{code:"532929",name:"云龙县",parent_code:"532900"},{code:"532930",name:"洱源县",parent_code:"532900"},{code:"532931",name:"剑川县",parent_code:"532900"},{code:"532932",name:"鹤庆县",parent_code:"532900"}]},{code:"533100",name:"德宏傣族景颇族自治州",parent_code:"530000",children:[{code:"533102",name:"瑞丽市",parent_code:"533100"},{code:"533103",name:"芒市",parent_code:"533100"},{code:"533122",name:"梁河县",parent_code:"533100"},{code:"533123",name:"盈江县",parent_code:"533100"},{code:"533124",name:"陇川县",parent_code:"533100"}]},{code:"533300",name:"怒江傈僳族自治州",parent_code:"530000",children:[{code:"533301",name:"泸水市",parent_code:"533300"},{code:"533323",name:"福贡县",parent_code:"533300"},{code:"533324",name:"贡山独龙族怒族自治县",parent_code:"533300"},{code:"533325",name:"兰坪白族普米族自治县",parent_code:"533300"}]},{code:"533400",name:"迪庆藏族自治州",parent_code:"530000",children:[{code:"533401",name:"香格里拉市",parent_code:"533400"},{code:"533422",name:"德钦县",parent_code:"533400"},{code:"533423",name:"维西傈僳族自治县",parent_code:"533400"}]}]},{code:"540000",name:"西藏自治区",children:[{code:"540100",name:"拉萨市",parent_code:"540000",children:[{code:"540102",name:"城关区",parent_code:"540100"},{code:"540103",name:"堆龙德庆区",parent_code:"540100"},{code:"540104",name:"达孜区",parent_code:"540100"},{code:"540121",name:"林周县",parent_code:"540100"},{code:"540122",name:"当雄县",parent_code:"540100"},{code:"540123",name:"尼木县",parent_code:"540100"},{code:"540124",name:"曲水县",parent_code:"540100"},{code:"540127",name:"墨竹工卡县",parent_code:"540100"},{code:"540171",name:"格尔木藏青工业园区",parent_code:"540100"},{code:"540172",name:"拉萨经济技术开发区",parent_code:"540100"},{code:"540173",name:"西藏文化旅游创意园区",parent_code:"540100"},{code:"540174",name:"达孜工业园区",parent_code:"540100"}]},{code:"540200",name:"日喀则市",parent_code:"540000",children:[{code:"540202",name:"桑珠孜区",parent_code:"540200"},{code:"540221",name:"南木林县",parent_code:"540200"},{code:"540222",name:"江孜县",parent_code:"540200"},{code:"540223",name:"定日县",parent_code:"540200"},{code:"540224",name:"萨迦县",parent_code:"540200"},{code:"540225",name:"拉孜县",parent_code:"540200"},{code:"540226",name:"昂仁县",parent_code:"540200"},{code:"540227",name:"谢通门县",parent_code:"540200"},{code:"540228",name:"白朗县",parent_code:"540200"},{code:"540229",name:"仁布县",parent_code:"540200"},{code:"540230",name:"康马县",parent_code:"540200"},{code:"540231",name:"定结县",parent_code:"540200"},{code:"540232",name:"仲巴县",parent_code:"540200"},{code:"540233",name:"亚东县",parent_code:"540200"},{code:"540234",name:"吉隆县",parent_code:"540200"},{code:"540235",name:"聂拉木县",parent_code:"540200"},{code:"540236",name:"萨嘎县",parent_code:"540200"},{code:"540237",name:"岗巴县",parent_code:"540200"}]},{code:"540300",name:"昌都市",parent_code:"540000",children:[{code:"540302",name:"卡若区",parent_code:"540300"},{code:"540321",name:"江达县",parent_code:"540300"},{code:"540322",name:"贡觉县",parent_code:"540300"},{code:"540323",name:"类乌齐县",parent_code:"540300"},{code:"540324",name:"丁青县",parent_code:"540300"},{code:"540325",name:"察雅县",parent_code:"540300"},{code:"540326",name:"八宿县",parent_code:"540300"},{code:"540327",name:"左贡县",parent_code:"540300"},{code:"540328",name:"芒康县",parent_code:"540300"},{code:"540329",name:"洛隆县",parent_code:"540300"},{code:"540330",name:"边坝县",parent_code:"540300"}]},{code:"540400",name:"林芝市",parent_code:"540000",children:[{code:"540402",name:"巴宜区",parent_code:"540400"},{code:"540421",name:"工布江达县",parent_code:"540400"},{code:"540423",name:"墨脱县",parent_code:"540400"},{code:"540424",name:"波密县",parent_code:"540400"},{code:"540425",name:"察隅县",parent_code:"540400"},{code:"540426",name:"朗县",parent_code:"540400"},{code:"540481",name:"米林市",parent_code:"540400"}]},{code:"540500",name:"山南市",parent_code:"540000",children:[{code:"540502",name:"乃东区",parent_code:"540500"},{code:"540521",name:"扎囊县",parent_code:"540500"},{code:"540522",name:"贡嘎县",parent_code:"540500"},{code:"540523",name:"桑日县",parent_code:"540500"},{code:"540524",name:"琼结县",parent_code:"540500"},{code:"540525",name:"曲松县",parent_code:"540500"},{code:"540526",name:"措美县",parent_code:"540500"},{code:"540527",name:"洛扎县",parent_code:"540500"},{code:"540528",name:"加查县",parent_code:"540500"},{code:"540529",name:"隆子县",parent_code:"540500"},{code:"540531",name:"浪卡子县",parent_code:"540500"},{code:"540581",name:"错那市",parent_code:"540500"}]},{code:"540600",name:"那曲市",parent_code:"540000",children:[{code:"540602",name:"色尼区",parent_code:"540600"},{code:"540621",name:"嘉黎县",parent_code:"540600"},{code:"540622",name:"比如县",parent_code:"540600"},{code:"540623",name:"聂荣县",parent_code:"540600"},{code:"540624",name:"安多县",parent_code:"540600"},{code:"540625",name:"申扎县",parent_code:"540600"},{code:"540626",name:"索县",parent_code:"540600"},{code:"540627",name:"班戈县",parent_code:"540600"},{code:"540628",name:"巴青县",parent_code:"540600"},{code:"540629",name:"尼玛县",parent_code:"540600"},{code:"540630",name:"双湖县",parent_code:"540600"}]},{code:"542500",name:"阿里地区",parent_code:"540000",children:[{code:"542521",name:"普兰县",parent_code:"542500"},{code:"542522",name:"札达县",parent_code:"542500"},{code:"542523",name:"噶尔县",parent_code:"542500"},{code:"542524",name:"日土县",parent_code:"542500"},{code:"542525",name:"革吉县",parent_code:"542500"},{code:"542526",name:"改则县",parent_code:"542500"},{code:"542527",name:"措勤县",parent_code:"542500"}]}]},{code:"610000",name:"陕西省",children:[{code:"610100",name:"西安市",parent_code:"610000",children:[{code:"610102",name:"新城区",parent_code:"610100"},{code:"610103",name:"碑林区",parent_code:"610100"},{code:"610104",name:"莲湖区",parent_code:"610100"},{code:"610111",name:"灞桥区",parent_code:"610100"},{code:"610112",name:"未央区",parent_code:"610100"},{code:"610113",name:"雁塔区",parent_code:"610100"},{code:"610114",name:"阎良区",parent_code:"610100"},{code:"610115",name:"临潼区",parent_code:"610100"},{code:"610116",name:"长安区",parent_code:"610100"},{code:"610117",name:"高陵区",parent_code:"610100"},{code:"610118",name:"鄠邑区",parent_code:"610100"},{code:"610122",name:"蓝田县",parent_code:"610100"},{code:"610124",name:"周至县",parent_code:"610100"}]},{code:"610200",name:"铜川市",parent_code:"610000",children:[{code:"610202",name:"王益区",parent_code:"610200"},{code:"610203",name:"印台区",parent_code:"610200"},{code:"610204",name:"耀州区",parent_code:"610200"},{code:"610222",name:"宜君县",parent_code:"610200"}]},{code:"610300",name:"宝鸡市",parent_code:"610000",children:[{code:"610302",name:"渭滨区",parent_code:"610300"},{code:"610303",name:"金台区",parent_code:"610300"},{code:"610304",name:"陈仓区",parent_code:"610300"},{code:"610305",name:"凤翔区",parent_code:"610300"},{code:"610323",name:"岐山县",parent_code:"610300"},{code:"610324",name:"扶风县",parent_code:"610300"},{code:"610326",name:"眉县",parent_code:"610300"},{code:"610327",name:"陇县",parent_code:"610300"},{code:"610328",name:"千阳县",parent_code:"610300"},{code:"610329",name:"麟游县",parent_code:"610300"},{code:"610330",name:"凤县",parent_code:"610300"},{code:"610331",name:"太白县",parent_code:"610300"}]},{code:"610400",name:"咸阳市",parent_code:"610000",children:[{code:"610402",name:"秦都区",parent_code:"610400"},{code:"610403",name:"杨陵区",parent_code:"610400"},{code:"610404",name:"渭城区",parent_code:"610400"},{code:"610422",name:"三原县",parent_code:"610400"},{code:"610423",name:"泾阳县",parent_code:"610400"},{code:"610424",name:"乾县",parent_code:"610400"},{code:"610425",name:"礼泉县",parent_code:"610400"},{code:"610426",name:"永寿县",parent_code:"610400"},{code:"610428",name:"长武县",parent_code:"610400"},{code:"610429",name:"旬邑县",parent_code:"610400"},{code:"610430",name:"淳化县",parent_code:"610400"},{code:"610431",name:"武功县",parent_code:"610400"},{code:"610481",name:"兴平市",parent_code:"610400"},{code:"610482",name:"彬州市",parent_code:"610400"}]},{code:"610500",name:"渭南市",parent_code:"610000",children:[{code:"610502",name:"临渭区",parent_code:"610500"},{code:"610503",name:"华州区",parent_code:"610500"},{code:"610522",name:"潼关县",parent_code:"610500"},{code:"610523",name:"大荔县",parent_code:"610500"},{code:"610524",name:"合阳县",parent_code:"610500"},{code:"610525",name:"澄城县",parent_code:"610500"},{code:"610526",name:"蒲城县",parent_code:"610500"},{code:"610527",name:"白水县",parent_code:"610500"},{code:"610528",name:"富平县",parent_code:"610500"},{code:"610581",name:"韩城市",parent_code:"610500"},{code:"610582",name:"华阴市",parent_code:"610500"}]},{code:"610600",name:"延安市",parent_code:"610000",children:[{code:"610602",name:"宝塔区",parent_code:"610600"},{code:"610603",name:"安塞区",parent_code:"610600"},{code:"610621",name:"延长县",parent_code:"610600"},{code:"610622",name:"延川县",parent_code:"610600"},{code:"610625",name:"志丹县",parent_code:"610600"},{code:"610626",name:"吴起县",parent_code:"610600"},{code:"610627",name:"甘泉县",parent_code:"610600"},{code:"610628",name:"富县",parent_code:"610600"},{code:"610629",name:"洛川县",parent_code:"610600"},{code:"610630",name:"宜川县",parent_code:"610600"},{code:"610631",name:"黄龙县",parent_code:"610600"},{code:"610632",name:"黄陵县",parent_code:"610600"},{code:"610681",name:"子长市",parent_code:"610600"}]},{code:"610700",name:"汉中市",parent_code:"610000",children:[{code:"610702",name:"汉台区",parent_code:"610700"},{code:"610703",name:"南郑区",parent_code:"610700"},{code:"610722",name:"城固县",parent_code:"610700"},{code:"610723",name:"洋县",parent_code:"610700"},{code:"610724",name:"西乡县",parent_code:"610700"},{code:"610725",name:"勉县",parent_code:"610700"},{code:"610726",name:"宁强县",parent_code:"610700"},{code:"610727",name:"略阳县",parent_code:"610700"},{code:"610728",name:"镇巴县",parent_code:"610700"},{code:"610729",name:"留坝县",parent_code:"610700"},{code:"610730",name:"佛坪县",parent_code:"610700"}]},{code:"610800",name:"榆林市",parent_code:"610000",children:[{code:"610802",name:"榆阳区",parent_code:"610800"},{code:"610803",name:"横山区",parent_code:"610800"},{code:"610822",name:"府谷县",parent_code:"610800"},{code:"610824",name:"靖边县",parent_code:"610800"},{code:"610825",name:"定边县",parent_code:"610800"},{code:"610826",name:"绥德县",parent_code:"610800"},{code:"610827",name:"米脂县",parent_code:"610800"},{code:"610828",name:"佳县",parent_code:"610800"},{code:"610829",name:"吴堡县",parent_code:"610800"},{code:"610830",name:"清涧县",parent_code:"610800"},{code:"610831",name:"子洲县",parent_code:"610800"},{code:"610881",name:"神木市",parent_code:"610800"}]},{code:"610900",name:"安康市",parent_code:"610000",children:[{code:"610902",name:"汉滨区",parent_code:"610900"},{code:"610921",name:"汉阴县",parent_code:"610900"},{code:"610922",name:"石泉县",parent_code:"610900"},{code:"610923",name:"宁陕县",parent_code:"610900"},{code:"610924",name:"紫阳县",parent_code:"610900"},{code:"610925",name:"岚皋县",parent_code:"610900"},{code:"610926",name:"平利县",parent_code:"610900"},{code:"610927",name:"镇坪县",parent_code:"610900"},{code:"610929",name:"白河县",parent_code:"610900"},{code:"610981",name:"旬阳市",parent_code:"610900"}]},{code:"611000",name:"商洛市",parent_code:"610000",children:[{code:"611002",name:"商州区",parent_code:"611000"},{code:"611021",name:"洛南县",parent_code:"611000"},{code:"611022",name:"丹凤县",parent_code:"611000"},{code:"611023",name:"商南县",parent_code:"611000"},{code:"611024",name:"山阳县",parent_code:"611000"},{code:"611025",name:"镇安县",parent_code:"611000"},{code:"611026",name:"柞水县",parent_code:"611000"}]}]},{code:"620000",name:"甘肃省",children:[{code:"620100",name:"兰州市",parent_code:"620000",children:[{code:"620102",name:"城关区",parent_code:"620100"},{code:"620103",name:"七里河区",parent_code:"620100"},{code:"620104",name:"西固区",parent_code:"620100"},{code:"620105",name:"安宁区",parent_code:"620100"},{code:"620111",name:"红古区",parent_code:"620100"},{code:"620121",name:"永登县",parent_code:"620100"},{code:"620122",name:"皋兰县",parent_code:"620100"},{code:"620123",name:"榆中县",parent_code:"620100"},{code:"620171",name:"兰州新区",parent_code:"620100"}]},{code:"620200",name:"嘉峪关市",parent_code:"620000",children:[{code:"620201",name:"嘉峪关市",parent_code:"620200"}]},{code:"620300",name:"金昌市",parent_code:"620000",children:[{code:"620302",name:"金川区",parent_code:"620300"},{code:"620321",name:"永昌县",parent_code:"620300"}]},{code:"620400",name:"白银市",parent_code:"620000",children:[{code:"620402",name:"白银区",parent_code:"620400"},{code:"620403",name:"平川区",parent_code:"620400"},{code:"620421",name:"靖远县",parent_code:"620400"},{code:"620422",name:"会宁县",parent_code:"620400"},{code:"620423",name:"景泰县",parent_code:"620400"}]},{code:"620500",name:"天水市",parent_code:"620000",children:[{code:"620502",name:"秦州区",parent_code:"620500"},{code:"620503",name:"麦积区",parent_code:"620500"},{code:"620521",name:"清水县",parent_code:"620500"},{code:"620522",name:"秦安县",parent_code:"620500"},{code:"620523",name:"甘谷县",parent_code:"620500"},{code:"620524",name:"武山县",parent_code:"620500"},{code:"620525",name:"张家川回族自治县",parent_code:"620500"}]},{code:"620600",name:"武威市",parent_code:"620000",children:[{code:"620602",name:"凉州区",parent_code:"620600"},{code:"620621",name:"民勤县",parent_code:"620600"},{code:"620622",name:"古浪县",parent_code:"620600"},{code:"620623",name:"天祝藏族自治县",parent_code:"620600"}]},{code:"620700",name:"张掖市",parent_code:"620000",children:[{code:"620702",name:"甘州区",parent_code:"620700"},{code:"620721",name:"肃南裕固族自治县",parent_code:"620700"},{code:"620722",name:"民乐县",parent_code:"620700"},{code:"620723",name:"临泽县",parent_code:"620700"},{code:"620724",name:"高台县",parent_code:"620700"},{code:"620725",name:"山丹县",parent_code:"620700"}]},{code:"620800",name:"平凉市",parent_code:"620000",children:[{code:"620802",name:"崆峒区",parent_code:"620800"},{code:"620821",name:"泾川县",parent_code:"620800"},{code:"620822",name:"灵台县",parent_code:"620800"},{code:"620823",name:"崇信县",parent_code:"620800"},{code:"620825",name:"庄浪县",parent_code:"620800"},{code:"620826",name:"静宁县",parent_code:"620800"},{code:"620881",name:"华亭市",parent_code:"620800"}]},{code:"620900",name:"酒泉市",parent_code:"620000",children:[{code:"620902",name:"肃州区",parent_code:"620900"},{code:"620921",name:"金塔县",parent_code:"620900"},{code:"620922",name:"瓜州县",parent_code:"620900"},{code:"620923",name:"肃北蒙古族自治县",parent_code:"620900"},{code:"620924",name:"阿克塞哈萨克族自治县",parent_code:"620900"},{code:"620981",name:"玉门市",parent_code:"620900"},{code:"620982",name:"敦煌市",parent_code:"620900"}]},{code:"621000",name:"庆阳市",parent_code:"620000",children:[{code:"621002",name:"西峰区",parent_code:"621000"},{code:"621021",name:"庆城县",parent_code:"621000"},{code:"621022",name:"环县",parent_code:"621000"},{code:"621023",name:"华池县",parent_code:"621000"},{code:"621024",name:"合水县",parent_code:"621000"},{code:"621025",name:"正宁县",parent_code:"621000"},{code:"621026",name:"宁县",parent_code:"621000"},{code:"621027",name:"镇原县",parent_code:"621000"}]},{code:"621100",name:"定西市",parent_code:"620000",children:[{code:"621102",name:"安定区",parent_code:"621100"},{code:"621121",name:"通渭县",parent_code:"621100"},{code:"621122",name:"陇西县",parent_code:"621100"},{code:"621123",name:"渭源县",parent_code:"621100"},{code:"621124",name:"临洮县",parent_code:"621100"},{code:"621125",name:"漳县",parent_code:"621100"},{code:"621126",name:"岷县",parent_code:"621100"}]},{code:"621200",name:"陇南市",parent_code:"620000",children:[{code:"621202",name:"武都区",parent_code:"621200"},{code:"621221",name:"成县",parent_code:"621200"},{code:"621222",name:"文县",parent_code:"621200"},{code:"621223",name:"宕昌县",parent_code:"621200"},{code:"621224",name:"康县",parent_code:"621200"},{code:"621225",name:"西和县",parent_code:"621200"},{code:"621226",name:"礼县",parent_code:"621200"},{code:"621227",name:"徽县",parent_code:"621200"},{code:"621228",name:"两当县",parent_code:"621200"}]},{code:"622900",name:"临夏回族自治州",parent_code:"620000",children:[{code:"622901",name:"临夏市",parent_code:"622900"},{code:"622921",name:"临夏县",parent_code:"622900"},{code:"622922",name:"康乐县",parent_code:"622900"},{code:"622923",name:"永靖县",parent_code:"622900"},{code:"622924",name:"广河县",parent_code:"622900"},{code:"622925",name:"和政县",parent_code:"622900"},{code:"622926",name:"东乡族自治县",parent_code:"622900"},{code:"622927",name:"积石山保安族东乡族撒拉族自治县",parent_code:"622900"}]},{code:"623000",name:"甘南藏族自治州",parent_code:"620000",children:[{code:"623001",name:"合作市",parent_code:"623000"},{code:"623021",name:"临潭县",parent_code:"623000"},{code:"623022",name:"卓尼县",parent_code:"623000"},{code:"623023",name:"舟曲县",parent_code:"623000"},{code:"623024",name:"迭部县",parent_code:"623000"},{code:"623025",name:"玛曲县",parent_code:"623000"},{code:"623026",name:"碌曲县",parent_code:"623000"},{code:"623027",name:"夏河县",parent_code:"623000"}]}]},{code:"630000",name:"青海省",children:[{code:"630100",name:"西宁市",parent_code:"630000",children:[{code:"630102",name:"城东区",parent_code:"630100"},{code:"630103",name:"城中区",parent_code:"630100"},{code:"630104",name:"城西区",parent_code:"630100"},{code:"630105",name:"城北区",parent_code:"630100"},{code:"630106",name:"湟中区",parent_code:"630100"},{code:"630121",name:"大通回族土族自治县",parent_code:"630100"},{code:"630123",name:"湟源县",parent_code:"630100"}]},{code:"630200",name:"海东市",parent_code:"630000",children:[{code:"630202",name:"乐都区",parent_code:"630200"},{code:"630203",name:"平安区",parent_code:"630200"},{code:"630222",name:"民和回族土族自治县",parent_code:"630200"},{code:"630223",name:"互助土族自治县",parent_code:"630200"},{code:"630224",name:"化隆回族自治县",parent_code:"630200"},{code:"630225",name:"循化撒拉族自治县",parent_code:"630200"}]},{code:"632200",name:"海北藏族自治州",parent_code:"630000",children:[{code:"632221",name:"门源回族自治县",parent_code:"632200"},{code:"632222",name:"祁连县",parent_code:"632200"},{code:"632223",name:"海晏县",parent_code:"632200"},{code:"632224",name:"刚察县",parent_code:"632200"}]},{code:"632300",name:"黄南藏族自治州",parent_code:"630000",children:[{code:"632301",name:"同仁市",parent_code:"632300"},{code:"632322",name:"尖扎县",parent_code:"632300"},{code:"632323",name:"泽库县",parent_code:"632300"},{code:"632324",name:"河南蒙古族自治县",parent_code:"632300"}]},{code:"632500",name:"海南藏族自治州",parent_code:"630000",children:[{code:"632521",name:"共和县",parent_code:"632500"},{code:"632522",name:"同德县",parent_code:"632500"},{code:"632523",name:"贵德县",parent_code:"632500"},{code:"632524",name:"兴海县",parent_code:"632500"},{code:"632525",name:"贵南县",parent_code:"632500"}]},{code:"632600",name:"果洛藏族自治州",parent_code:"630000",children:[{code:"632621",name:"玛沁县",parent_code:"632600"},{code:"632622",name:"班玛县",parent_code:"632600"},{code:"632623",name:"甘德县",parent_code:"632600"},{code:"632624",name:"达日县",parent_code:"632600"},{code:"632625",name:"久治县",parent_code:"632600"},{code:"632626",name:"玛多县",parent_code:"632600"}]},{code:"632700",name:"玉树藏族自治州",parent_code:"630000",children:[{code:"632701",name:"玉树市",parent_code:"632700"},{code:"632722",name:"杂多县",parent_code:"632700"},{code:"632723",name:"称多县",parent_code:"632700"},{code:"632724",name:"治多县",parent_code:"632700"},{code:"632725",name:"囊谦县",parent_code:"632700"},{code:"632726",name:"曲麻莱县",parent_code:"632700"}]},{code:"632800",name:"海西蒙古族藏族自治州",parent_code:"630000",children:[{code:"632801",name:"格尔木市",parent_code:"632800"},{code:"632802",name:"德令哈市",parent_code:"632800"},{code:"632803",name:"茫崖市",parent_code:"632800"},{code:"632821",name:"乌兰县",parent_code:"632800"},{code:"632822",name:"都兰县",parent_code:"632800"},{code:"632823",name:"天峻县",parent_code:"632800"},{code:"632857",name:"大柴旦行政委员会",parent_code:"632800"}]}]},{code:"640000",name:"宁夏回族自治区",children:[{code:"640100",name:"银川市",parent_code:"640000",children:[{code:"640104",name:"兴庆区",parent_code:"640100"},{code:"640105",name:"西夏区",parent_code:"640100"},{code:"640106",name:"金凤区",parent_code:"640100"},{code:"640121",name:"永宁县",parent_code:"640100"},{code:"640122",name:"贺兰县",parent_code:"640100"},{code:"640181",name:"灵武市",parent_code:"640100"}]},{code:"640200",name:"石嘴山市",parent_code:"640000",children:[{code:"640202",name:"大武口区",parent_code:"640200"},{code:"640205",name:"惠农区",parent_code:"640200"},{code:"640221",name:"平罗县",parent_code:"640200"}]},{code:"640300",name:"吴忠市",parent_code:"640000",children:[{code:"640302",name:"利通区",parent_code:"640300"},{code:"640303",name:"红寺堡区",parent_code:"640300"},{code:"640323",name:"盐池县",parent_code:"640300"},{code:"640324",name:"同心县",parent_code:"640300"},{code:"640381",name:"青铜峡市",parent_code:"640300"}]},{code:"640400",name:"固原市",parent_code:"640000",children:[{code:"640402",name:"原州区",parent_code:"640400"},{code:"640422",name:"西吉县",parent_code:"640400"},{code:"640423",name:"隆德县",parent_code:"640400"},{code:"640424",name:"泾源县",parent_code:"640400"},{code:"640425",name:"彭阳县",parent_code:"640400"}]},{code:"640500",name:"中卫市",parent_code:"640000",children:[{code:"640502",name:"沙坡头区",parent_code:"640500"},{code:"640521",name:"中宁县",parent_code:"640500"},{code:"640522",name:"海原县",parent_code:"640500"}]}]},{code:"650000",name:"新疆维吾尔自治区",children:[{code:"650100",name:"乌鲁木齐市",parent_code:"650000",children:[{code:"650102",name:"天山区",parent_code:"650100"},{code:"650103",name:"沙依巴克区",parent_code:"650100"},{code:"650104",name:"新市区",parent_code:"650100"},{code:"650105",name:"水磨沟区",parent_code:"650100"},{code:"650106",name:"头屯河区",parent_code:"650100"},{code:"650107",name:"达坂城区",parent_code:"650100"},{code:"650109",name:"米东区",parent_code:"650100"},{code:"650121",name:"乌鲁木齐县",parent_code:"650100"}]},{code:"650200",name:"克拉玛依市",parent_code:"650000",children:[{code:"650202",name:"独山子区",parent_code:"650200"},{code:"650203",name:"克拉玛依区",parent_code:"650200"},{code:"650204",name:"白碱滩区",parent_code:"650200"},{code:"650205",name:"乌尔禾区",parent_code:"650200"}]},{code:"650400",name:"吐鲁番市",parent_code:"650000",children:[{code:"650402",name:"高昌区",parent_code:"650400"},{code:"650421",name:"鄯善县",parent_code:"650400"},{code:"650422",name:"托克逊县",parent_code:"650400"}]},{code:"650500",name:"哈密市",parent_code:"650000",children:[{code:"650502",name:"伊州区",parent_code:"650500"},{code:"650521",name:"巴里坤哈萨克自治县",parent_code:"650500"},{code:"650522",name:"伊吾县",parent_code:"650500"}]},{code:"652300",name:"昌吉回族自治州",parent_code:"650000",children:[{code:"652301",name:"昌吉市",parent_code:"652300"},{code:"652302",name:"阜康市",parent_code:"652300"},{code:"652323",name:"呼图壁县",parent_code:"652300"},{code:"652324",name:"玛纳斯县",parent_code:"652300"},{code:"652325",name:"奇台县",parent_code:"652300"},{code:"652327",name:"吉木萨尔县",parent_code:"652300"},{code:"652328",name:"木垒哈萨克自治县",parent_code:"652300"}]},{code:"652700",name:"博尔塔拉蒙古自治州",parent_code:"650000",children:[{code:"652701",name:"博乐市",parent_code:"652700"},{code:"652702",name:"阿拉山口市",parent_code:"652700"},{code:"652722",name:"精河县",parent_code:"652700"},{code:"652723",name:"温泉县",parent_code:"652700"}]},{code:"652800",name:"巴音郭楞蒙古自治州",parent_code:"650000",children:[{code:"652801",name:"库尔勒市",parent_code:"652800"},{code:"652822",name:"轮台县",parent_code:"652800"},{code:"652823",name:"尉犁县",parent_code:"652800"},{code:"652824",name:"若羌县",parent_code:"652800"},{code:"652825",name:"且末县",parent_code:"652800"},{code:"652826",name:"焉耆回族自治县",parent_code:"652800"},{code:"652827",name:"和静县",parent_code:"652800"},{code:"652828",name:"和硕县",parent_code:"652800"},{code:"652829",name:"博湖县",parent_code:"652800"}]},{code:"652900",name:"阿克苏地区",parent_code:"650000",children:[{code:"652901",name:"阿克苏市",parent_code:"652900"},{code:"652902",name:"库车市",parent_code:"652900"},{code:"652922",name:"温宿县",parent_code:"652900"},{code:"652924",name:"沙雅县",parent_code:"652900"},{code:"652925",name:"新和县",parent_code:"652900"},{code:"652926",name:"拜城县",parent_code:"652900"},{code:"652927",name:"乌什县",parent_code:"652900"},{code:"652928",name:"阿瓦提县",parent_code:"652900"},{code:"652929",name:"柯坪县",parent_code:"652900"}]},{code:"653000",name:"克孜勒苏柯尔克孜自治州",parent_code:"650000",children:[{code:"653001",name:"阿图什市",parent_code:"653000"},{code:"653022",name:"阿克陶县",parent_code:"653000"},{code:"653023",name:"阿合奇县",parent_code:"653000"},{code:"653024",name:"乌恰县",parent_code:"653000"}]},{code:"653100",name:"喀什地区",parent_code:"650000",children:[{code:"653101",name:"喀什市",parent_code:"653100"},{code:"653121",name:"疏附县",parent_code:"653100"},{code:"653122",name:"疏勒县",parent_code:"653100"},{code:"653123",name:"英吉沙县",parent_code:"653100"},{code:"653124",name:"泽普县",parent_code:"653100"},{code:"653125",name:"莎车县",parent_code:"653100"},{code:"653126",name:"叶城县",parent_code:"653100"},{code:"653127",name:"麦盖提县",parent_code:"653100"},{code:"653128",name:"岳普湖县",parent_code:"653100"},{code:"653129",name:"伽师县",parent_code:"653100"},{code:"653130",name:"巴楚县",parent_code:"653100"},{code:"653131",name:"塔什库尔干塔吉克自治县",parent_code:"653100"}]},{code:"653200",name:"和田地区",parent_code:"650000",children:[{code:"653201",name:"和田市",parent_code:"653200"},{code:"653221",name:"和田县",parent_code:"653200"},{code:"653222",name:"墨玉县",parent_code:"653200"},{code:"653223",name:"皮山县",parent_code:"653200"},{code:"653224",name:"洛浦县",parent_code:"653200"},{code:"653225",name:"策勒县",parent_code:"653200"},{code:"653226",name:"于田县",parent_code:"653200"},{code:"653227",name:"民丰县",parent_code:"653200"}]},{code:"654000",name:"伊犁哈萨克自治州",parent_code:"650000",children:[{code:"654002",name:"伊宁市",parent_code:"654000"},{code:"654003",name:"奎屯市",parent_code:"654000"},{code:"654004",name:"霍尔果斯市",parent_code:"654000"},{code:"654021",name:"伊宁县",parent_code:"654000"},{code:"654022",name:"察布查尔锡伯自治县",parent_code:"654000"},{code:"654023",name:"霍城县",parent_code:"654000"},{code:"654024",name:"巩留县",parent_code:"654000"},{code:"654025",name:"新源县",parent_code:"654000"},{code:"654026",name:"昭苏县",parent_code:"654000"},{code:"654027",name:"特克斯县",parent_code:"654000"},{code:"654028",name:"尼勒克县",parent_code:"654000"}]},{code:"654200",name:"塔城地区",parent_code:"650000",children:[{code:"654201",name:"塔城市",parent_code:"654200"},{code:"654202",name:"乌苏市",parent_code:"654200"},{code:"654203",name:"沙湾市",parent_code:"654200"},{code:"654221",name:"额敏县",parent_code:"654200"},{code:"654224",name:"托里县",parent_code:"654200"},{code:"654225",name:"裕民县",parent_code:"654200"},{code:"654226",name:"和布克赛尔蒙古自治县",parent_code:"654200"}]},{code:"654300",name:"阿勒泰地区",parent_code:"650000",children:[{code:"654301",name:"阿勒泰市",parent_code:"654300"},{code:"654321",name:"布尔津县",parent_code:"654300"},{code:"654322",name:"富蕴县",parent_code:"654300"},{code:"654323",name:"福海县",parent_code:"654300"},{code:"654324",name:"哈巴河县",parent_code:"654300"},{code:"654325",name:"青河县",parent_code:"654300"},{code:"654326",name:"吉木乃县",parent_code:"654300"}]},{code:"659001",name:"石河子市",parent_code:"650000",children:[{code:"65900101",name:"石河子市",parent_code:"659001"}]},{code:"659002",name:"阿拉尔市",parent_code:"650000",children:[{code:"65900201",name:"阿拉尔市",parent_code:"659002"}]},{code:"659003",name:"图木舒克市",parent_code:"650000",children:[{code:"65900301",name:"图木舒克市",parent_code:"659003"}]},{code:"659004",name:"五家渠市",parent_code:"650000",children:[{code:"65900401",name:"五家渠市",parent_code:"659004"}]},{code:"659005",name:"北屯市",parent_code:"650000",children:[{code:"65900501",name:"北屯市",parent_code:"659005"}]},{code:"659006",name:"铁门关市",parent_code:"650000",children:[{code:"65900601",name:"铁门关市",parent_code:"659006"}]},{code:"659007",name:"双河市",parent_code:"650000",children:[{code:"65900701",name:"双河市",parent_code:"659007"}]},{code:"659008",name:"可克达拉市",parent_code:"650000",children:[{code:"65900801",name:"可克达拉市",parent_code:"659008"}]},{code:"659009",name:"昆玉市",parent_code:"650000",children:[{code:"65900901",name:"昆玉市",parent_code:"659009"}]},{code:"659010",name:"胡杨河市",parent_code:"650000",children:[{code:"65901001",name:"胡杨河市",parent_code:"659010"}]},{code:"659011",name:"新星市",parent_code:"650000",children:[{code:"65901101",name:"新星市",parent_code:"659011"}]},{code:"659012",name:"白杨市",parent_code:"650000",children:[{code:"65901201",name:"白杨市",parent_code:"659012"}]}]},{code:"710000",name:"台湾省",children:[{code:"711000",name:"台北市",parent_code:"710000",children:[{code:"711001",name:"松山区",parent_code:"711000"},{code:"711002",name:"大安区",parent_code:"711000"},{code:"711003",name:"中正区",parent_code:"711000"},{code:"711005",name:"万华区",parent_code:"711000"},{code:"711009",name:"大同区",parent_code:"711000"},{code:"711010",name:"中山区",parent_code:"711000"},{code:"711011",name:"文山区",parent_code:"711000"},{code:"711013",name:"南港区",parent_code:"711000"},{code:"711014",name:"内湖区",parent_code:"711000"},{code:"711015",name:"士林区",parent_code:"711000"},{code:"711016",name:"北投区",parent_code:"711000"},{code:"711017",name:"信义区",parent_code:"711000"}]},{code:"711100",name:"台中市",parent_code:"710000",children:[{code:"711101",name:"中区",parent_code:"711100"},{code:"711102",name:"东区",parent_code:"711100"},{code:"711103",name:"西区",parent_code:"711100"},{code:"711104",name:"南区",parent_code:"711100"},{code:"711105",name:"北区",parent_code:"711100"},{code:"711106",name:"西屯区",parent_code:"711100"},{code:"711107",name:"南屯区",parent_code:"711100"},{code:"711108",name:"北屯区",parent_code:"711100"},{code:"711141",name:"丰原区",parent_code:"711100"},{code:"711142",name:"东势区",parent_code:"711100"},{code:"711143",name:"大甲区",parent_code:"711100"},{code:"711144",name:"清水区",parent_code:"711100"},{code:"711145",name:"沙鹿区",parent_code:"711100"},{code:"711146",name:"梧栖区",parent_code:"711100"},{code:"711147",name:"神冈区",parent_code:"711100"},{code:"711148",name:"后里区",parent_code:"711100"},{code:"711149",name:"大雅区",parent_code:"711100"},{code:"711150",name:"潭子区",parent_code:"711100"},{code:"711151",name:"新社区",parent_code:"711100"},{code:"711152",name:"石冈区",parent_code:"711100"},{code:"711153",name:"外埔区",parent_code:"711100"},{code:"711154",name:"大安区",parent_code:"711100"},{code:"711155",name:"乌日区",parent_code:"711100"},{code:"711156",name:"大肚区",parent_code:"711100"},{code:"711157",name:"龙井区",parent_code:"711100"},{code:"711158",name:"雾峰区",parent_code:"711100"},{code:"711159",name:"太平区",parent_code:"711100"},{code:"711160",name:"大里区",parent_code:"711100"},{code:"711161",name:"和平区",parent_code:"711100"}]},{code:"711200",name:"基隆市",parent_code:"710000",children:[{code:"711201",name:"中正区",parent_code:"711200"},{code:"711202",name:"七堵区",parent_code:"711200"},{code:"711203",name:"暖暖区",parent_code:"711200"},{code:"711204",name:"仁爱区",parent_code:"711200"},{code:"711205",name:"中山区",parent_code:"711200"},{code:"711206",name:"安乐区",parent_code:"711200"},{code:"711207",name:"信义区",parent_code:"711200"}]},{code:"711300",name:"台南市",parent_code:"710000",children:[{code:"711301",name:"东区",parent_code:"711300"},{code:"711302",name:"南区",parent_code:"711300"},{code:"711304",name:"北区",parent_code:"711300"},{code:"711306",name:"安南区",parent_code:"711300"},{code:"711307",name:"安平区",parent_code:"711300"},{code:"711308",name:"中西区",parent_code:"711300"},{code:"711341",name:"新营区",parent_code:"711300"},{code:"711342",name:"盐水区",parent_code:"711300"},{code:"711343",name:"白河区",parent_code:"711300"},{code:"711344",name:"柳营区",parent_code:"711300"},{code:"711345",name:"后壁区",parent_code:"711300"},{code:"711346",name:"东山区",parent_code:"711300"},{code:"711347",name:"麻豆区",parent_code:"711300"},{code:"711348",name:"下营区",parent_code:"711300"},{code:"711349",name:"六甲区",parent_code:"711300"},{code:"711350",name:"官田区",parent_code:"711300"},{code:"711351",name:"大内区",parent_code:"711300"},{code:"711352",name:"佳里区",parent_code:"711300"},{code:"711353",name:"西港区",parent_code:"711300"},{code:"711354",name:"七股区",parent_code:"711300"},{code:"711355",name:"将军区",parent_code:"711300"},{code:"711356",name:"北门区",parent_code:"711300"},{code:"711357",name:"学甲区",parent_code:"711300"},{code:"711358",name:"新化区",parent_code:"711300"},{code:"711359",name:"善化区",parent_code:"711300"},{code:"711360",name:"新市区",parent_code:"711300"},{code:"711361",name:"安定区",parent_code:"711300"},{code:"711362",name:"山上区",parent_code:"711300"},{code:"711363",name:"玉井区",parent_code:"711300"},{code:"711364",name:"楠西区",parent_code:"711300"},{code:"711365",name:"南化区",parent_code:"711300"},{code:"711366",name:"左镇区",parent_code:"711300"},{code:"711367",name:"仁德区",parent_code:"711300"},{code:"711368",name:"归仁区",parent_code:"711300"},{code:"711369",name:"关庙区",parent_code:"711300"},{code:"711370",name:"龙崎区",parent_code:"711300"},{code:"711371",name:"永康区",parent_code:"711300"}]},{code:"711400",name:"高雄市",parent_code:"710000",children:[{code:"711401",name:"盐埕区",parent_code:"711400"},{code:"711402",name:"鼓山区",parent_code:"711400"},{code:"711403",name:"左营区",parent_code:"711400"},{code:"711404",name:"楠梓区",parent_code:"711400"},{code:"711405",name:"三民区",parent_code:"711400"},{code:"711406",name:"新兴区",parent_code:"711400"},{code:"711407",name:"前金区",parent_code:"711400"},{code:"711408",name:"苓雅区",parent_code:"711400"},{code:"711409",name:"前镇区",parent_code:"711400"},{code:"711410",name:"旗津区",parent_code:"711400"},{code:"711411",name:"小港区",parent_code:"711400"},{code:"711441",name:"凤山区",parent_code:"711400"},{code:"711442",name:"鸟松区",parent_code:"711400"},{code:"711443",name:"仁武区",parent_code:"711400"},{code:"711444",name:"大社区",parent_code:"711400"},{code:"711445",name:"大树区",parent_code:"711400"},{code:"711446",name:"大寮区",parent_code:"711400"},{code:"711448",name:"林园区",parent_code:"711400"},{code:"711449",name:"冈山区",parent_code:"711400"},{code:"711450",name:"茄萣区",parent_code:"711400"},{code:"711451",name:"永安区",parent_code:"711400"},{code:"711452",name:"桥头区",parent_code:"711400"},{code:"711453",name:"梓官区",parent_code:"711400"},{code:"711454",name:"田寮区",parent_code:"711400"},{code:"711455",name:"阿莲区",parent_code:"711400"},{code:"711456",name:"路竹区",parent_code:"711400"},{code:"711457",name:"燕巢区",parent_code:"711400"},{code:"711458",name:"弥陀区",parent_code:"711400"},{code:"711459",name:"湖内区",parent_code:"711400"},{code:"711460",name:"旗山区",parent_code:"711400"},{code:"711461",name:"六龟区",parent_code:"711400"},{code:"711462",name:"内门区",parent_code:"711400"},{code:"711463",name:"美浓区",parent_code:"711400"},{code:"711464",name:"杉林区",parent_code:"711400"},{code:"711465",name:"甲仙区",parent_code:"711400"},{code:"711466",name:"茂林区",parent_code:"711400"},{code:"711467",name:"桃源区",parent_code:"711400"},{code:"711468",name:"那玛夏区",parent_code:"711400"}]},{code:"711500",name:"新北市",parent_code:"710000",children:[{code:"711501",name:"新庄区",parent_code:"711500"},{code:"711502",name:"林口区",parent_code:"711500"},{code:"711503",name:"五股区",parent_code:"711500"},{code:"711504",name:"芦洲区",parent_code:"711500"},{code:"711505",name:"三重区",parent_code:"711500"},{code:"711506",name:"泰山区",parent_code:"711500"},{code:"711507",name:"新店区",parent_code:"711500"},{code:"711508",name:"石碇区",parent_code:"711500"},{code:"711509",name:"深坑区",parent_code:"711500"},{code:"711510",name:"坪林区",parent_code:"711500"},{code:"711511",name:"乌来区",parent_code:"711500"},{code:"711514",name:"板桥区",parent_code:"711500"},{code:"711515",name:"三峡区",parent_code:"711500"},{code:"711516",name:"莺歌区",parent_code:"711500"},{code:"711517",name:"树林区",parent_code:"711500"},{code:"711518",name:"中和区",parent_code:"711500"},{code:"711519",name:"土城区",parent_code:"711500"},{code:"711521",name:"瑞芳区",parent_code:"711500"},{code:"711522",name:"平溪区",parent_code:"711500"},{code:"711523",name:"双溪区",parent_code:"711500"},{code:"711524",name:"贡寮区",parent_code:"711500"},{code:"711525",name:"金山区",parent_code:"711500"},{code:"711526",name:"万里区",parent_code:"711500"},{code:"711527",name:"淡水区",parent_code:"711500"},{code:"711528",name:"汐止区",parent_code:"711500"},{code:"711530",name:"三芝区",parent_code:"711500"},{code:"711531",name:"石门区",parent_code:"711500"},{code:"711532",name:"八里区",parent_code:"711500"},{code:"711533",name:"永和区",parent_code:"711500"}]},{code:"711600",name:"宜兰县",parent_code:"710000",children:[{code:"711601",name:"宜兰市",parent_code:"711600"},{code:"711602",name:"头城镇",parent_code:"711600"},{code:"711603",name:"礁溪乡",parent_code:"711600"},{code:"711604",name:"壮围乡",parent_code:"711600"},{code:"711605",name:"员山乡",parent_code:"711600"},{code:"711606",name:"罗东镇",parent_code:"711600"},{code:"711607",name:"五结乡",parent_code:"711600"},{code:"711608",name:"冬山乡",parent_code:"711600"},{code:"711609",name:"苏澳镇",parent_code:"711600"},{code:"711610",name:"三星乡",parent_code:"711600"},{code:"711611",name:"大同乡",parent_code:"711600"},{code:"711612",name:"南澳乡",parent_code:"711600"}]},{code:"711700",name:"桃园市",parent_code:"710000",children:[{code:"711701",name:"桃园区",parent_code:"711700"},{code:"711702",name:"大溪区",parent_code:"711700"},{code:"711703",name:"中坜区",parent_code:"711700"},{code:"711704",name:"杨梅区",parent_code:"711700"},{code:"711705",name:"芦竹区",parent_code:"711700"},{code:"711706",name:"大园区",parent_code:"711700"},{code:"711707",name:"龟山区",parent_code:"711700"},{code:"711708",name:"八德区",parent_code:"711700"},{code:"711709",name:"龙潭区",parent_code:"711700"},{code:"711710",name:"平镇区",parent_code:"711700"},{code:"711711",name:"新屋区",parent_code:"711700"},{code:"711712",name:"观音区",parent_code:"711700"},{code:"711713",name:"复兴区",parent_code:"711700"}]},{code:"711800",name:"嘉义市",parent_code:"710000",children:[{code:"711801",name:"东区",parent_code:"711800"},{code:"711802",name:"西区",parent_code:"711800"}]},{code:"711900",name:"新竹县",parent_code:"710000",children:[{code:"711902",name:"竹东镇",parent_code:"711900"},{code:"711903",name:"关西镇",parent_code:"711900"},{code:"711904",name:"新埔镇",parent_code:"711900"},{code:"711905",name:"竹北市",parent_code:"711900"},{code:"711906",name:"湖口乡",parent_code:"711900"},{code:"711908",name:"横山乡",parent_code:"711900"},{code:"711909",name:"新丰乡",parent_code:"711900"},{code:"711910",name:"芎林乡",parent_code:"711900"},{code:"711911",name:"宝山乡",parent_code:"711900"},{code:"711912",name:"北埔乡",parent_code:"711900"},{code:"711913",name:"峨眉乡",parent_code:"711900"},{code:"711914",name:"尖石乡",parent_code:"711900"},{code:"711915",name:"五峰乡",parent_code:"711900"}]},{code:"712000",name:"苗栗县",parent_code:"710000",children:[{code:"712001",name:"苗栗市",parent_code:"712000"},{code:"712002",name:"苑里镇",parent_code:"712000"},{code:"712003",name:"通霄镇",parent_code:"712000"},{code:"712004",name:"公馆乡",parent_code:"712000"},{code:"712005",name:"铜锣乡",parent_code:"712000"},{code:"712006",name:"三义乡",parent_code:"712000"},{code:"712007",name:"西湖乡",parent_code:"712000"},{code:"712008",name:"头屋乡",parent_code:"712000"},{code:"712009",name:"竹南镇",parent_code:"712000"},{code:"712010",name:"头份市",parent_code:"712000"},{code:"712011",name:"造桥乡",parent_code:"712000"},{code:"712012",name:"后龙镇",parent_code:"712000"},{code:"712013",name:"三湾乡",parent_code:"712000"},{code:"712014",name:"南庄乡",parent_code:"712000"},{code:"712015",name:"大湖乡",parent_code:"712000"},{code:"712016",name:"卓兰镇",parent_code:"712000"},{code:"712017",name:"狮潭乡",parent_code:"712000"},{code:"712018",name:"泰安乡",parent_code:"712000"}]},{code:"712200",name:"南投县",parent_code:"710000",children:[{code:"712201",name:"南投市",parent_code:"712200"},{code:"712202",name:"埔里镇",parent_code:"712200"},{code:"712203",name:"草屯镇",parent_code:"712200"},{code:"712204",name:"竹山镇",parent_code:"712200"},{code:"712205",name:"集集镇",parent_code:"712200"},{code:"712206",name:"名间乡",parent_code:"712200"},{code:"712207",name:"鹿谷乡",parent_code:"712200"},{code:"712208",name:"中寮乡",parent_code:"712200"},{code:"712209",name:"鱼池乡",parent_code:"712200"},{code:"712210",name:"国姓乡",parent_code:"712200"},{code:"712211",name:"水里乡",parent_code:"712200"},{code:"712212",name:"信义乡",parent_code:"712200"},{code:"712213",name:"仁爱乡",parent_code:"712200"}]},{code:"712300",name:"彰化县",parent_code:"710000",children:[{code:"712301",name:"彰化市",parent_code:"712300"},{code:"712302",name:"鹿港镇",parent_code:"712300"},{code:"712303",name:"和美镇",parent_code:"712300"},{code:"712304",name:"北斗镇",parent_code:"712300"},{code:"712305",name:"员林市",parent_code:"712300"},{code:"712306",name:"溪湖镇",parent_code:"712300"},{code:"712307",name:"田中镇",parent_code:"712300"},{code:"712308",name:"二林镇",parent_code:"712300"},{code:"712309",name:"线西乡",parent_code:"712300"},{code:"712310",name:"伸港乡",parent_code:"712300"},{code:"712311",name:"福兴乡",parent_code:"712300"},{code:"712312",name:"秀水乡",parent_code:"712300"},{code:"712313",name:"花坛乡",parent_code:"712300"},{code:"712314",name:"芬园乡",parent_code:"712300"},{code:"712315",name:"大村乡",parent_code:"712300"},{code:"712316",name:"埔盐乡",parent_code:"712300"},{code:"712317",name:"埔心乡",parent_code:"712300"},{code:"712318",name:"永靖乡",parent_code:"712300"},{code:"712319",name:"社头乡",parent_code:"712300"},{code:"712320",name:"二水乡",parent_code:"712300"},{code:"712321",name:"田尾乡",parent_code:"712300"},{code:"712322",name:"埤头乡",parent_code:"712300"},{code:"712323",name:"芳苑乡",parent_code:"712300"},{code:"712324",name:"大城乡",parent_code:"712300"},{code:"712325",name:"竹塘乡",parent_code:"712300"},{code:"712326",name:"溪州乡",parent_code:"712300"}]},{code:"712400",name:"新竹市",parent_code:"710000",children:[{code:"712401",name:"东区",parent_code:"712400"},{code:"712402",name:"香山区",parent_code:"712400"},{code:"712403",name:"北区",parent_code:"712400"}]},{code:"712500",name:"云林县",parent_code:"710000",children:[{code:"712501",name:"斗六市",parent_code:"712500"},{code:"712502",name:"斗南镇",parent_code:"712500"},{code:"712503",name:"虎尾镇",parent_code:"712500"},{code:"712504",name:"西螺镇",parent_code:"712500"},{code:"712505",name:"土库镇",parent_code:"712500"},{code:"712506",name:"北港镇",parent_code:"712500"},{code:"712507",name:"古坑乡",parent_code:"712500"},{code:"712508",name:"大埤乡",parent_code:"712500"},{code:"712509",name:"莿桐乡",parent_code:"712500"},{code:"712510",name:"林内乡",parent_code:"712500"},{code:"712511",name:"二仑乡",parent_code:"712500"},{code:"712512",name:"仑背乡",parent_code:"712500"},{code:"712513",name:"麦寮乡",parent_code:"712500"},{code:"712514",name:"东势乡",parent_code:"712500"},{code:"712515",name:"褒忠乡",parent_code:"712500"},{code:"712516",name:"台西乡",parent_code:"712500"},{code:"712517",name:"元长乡",parent_code:"712500"},{code:"712518",name:"四湖乡",parent_code:"712500"},{code:"712519",name:"口湖乡",parent_code:"712500"},{code:"712520",name:"水林乡",parent_code:"712500"}]},{code:"712600",name:"嘉义县",parent_code:"710000",children:[{code:"712602",name:"朴子市",parent_code:"712600"},{code:"712603",name:"布袋镇",parent_code:"712600"},{code:"712604",name:"大林镇",parent_code:"712600"},{code:"712605",name:"民雄乡",parent_code:"712600"},{code:"712606",name:"溪口乡",parent_code:"712600"},{code:"712607",name:"新港乡",parent_code:"712600"},{code:"712608",name:"六脚乡",parent_code:"712600"},{code:"712609",name:"东石乡",parent_code:"712600"},{code:"712610",name:"义竹乡",parent_code:"712600"},{code:"712611",name:"鹿草乡",parent_code:"712600"},{code:"712612",name:"太保市",parent_code:"712600"},{code:"712613",name:"水上乡",parent_code:"712600"},{code:"712614",name:"中埔乡",parent_code:"712600"},{code:"712615",name:"竹崎乡",parent_code:"712600"},{code:"712616",name:"梅山乡",parent_code:"712600"},{code:"712617",name:"番路乡",parent_code:"712600"},{code:"712618",name:"大埔乡",parent_code:"712600"},{code:"712620",name:"阿里山乡",parent_code:"712600"}]},{code:"712900",name:"屏东县",parent_code:"710000",children:[{code:"712901",name:"屏东市",parent_code:"712900"},{code:"712902",name:"潮州镇",parent_code:"712900"},{code:"712903",name:"东港镇",parent_code:"712900"},{code:"712904",name:"恒春镇",parent_code:"712900"},{code:"712905",name:"万丹乡",parent_code:"712900"},{code:"712906",name:"长治乡",parent_code:"712900"},{code:"712907",name:"麟洛乡",parent_code:"712900"},{code:"712908",name:"九如乡",parent_code:"712900"},{code:"712909",name:"里港乡",parent_code:"712900"},{code:"712910",name:"盐埔乡",parent_code:"712900"},{code:"712911",name:"高树乡",parent_code:"712900"},{code:"712912",name:"万峦乡",parent_code:"712900"},{code:"712913",name:"内埔乡",parent_code:"712900"},{code:"712914",name:"竹田乡",parent_code:"712900"},{code:"712915",name:"新埤乡",parent_code:"712900"},{code:"712916",name:"枋寮乡",parent_code:"712900"},{code:"712917",name:"新园乡",parent_code:"712900"},{code:"712918",name:"崁顶乡",parent_code:"712900"},{code:"712919",name:"林边乡",parent_code:"712900"},{code:"712920",name:"南州乡",parent_code:"712900"},{code:"712921",name:"佳冬乡",parent_code:"712900"},{code:"712922",name:"琉球乡",parent_code:"712900"},{code:"712923",name:"车城乡",parent_code:"712900"},{code:"712924",name:"满州乡",parent_code:"712900"},{code:"712925",name:"枋山乡",parent_code:"712900"},{code:"712926",name:"三地门乡",parent_code:"712900"},{code:"712927",name:"雾台乡",parent_code:"712900"},{code:"712928",name:"玛家乡",parent_code:"712900"},{code:"712929",name:"泰武乡",parent_code:"712900"},{code:"712930",name:"来义乡",parent_code:"712900"},{code:"712931",name:"春日乡",parent_code:"712900"},{code:"712932",name:"狮子乡",parent_code:"712900"},{code:"712933",name:"牡丹乡",parent_code:"712900"}]},{code:"713000",name:"花莲县",parent_code:"710000",children:[{code:"713001",name:"花莲市",parent_code:"713000"},{code:"713002",name:"光复乡",parent_code:"713000"},{code:"713003",name:"玉里镇",parent_code:"713000"},{code:"713004",name:"新城乡",parent_code:"713000"},{code:"713005",name:"吉安乡",parent_code:"713000"},{code:"713006",name:"寿丰乡",parent_code:"713000"},{code:"713007",name:"凤林镇",parent_code:"713000"},{code:"713008",name:"丰滨乡",parent_code:"713000"},{code:"713009",name:"瑞穗乡",parent_code:"713000"},{code:"713010",name:"富里乡",parent_code:"713000"},{code:"713011",name:"卓溪乡",parent_code:"713000"},{code:"713012",name:"万荣乡",parent_code:"713000"},{code:"713013",name:"秀林乡",parent_code:"713000"}]},{code:"713100",name:"台东县",parent_code:"710000",children:[{code:"713101",name:"台东市",parent_code:"713100"},{code:"713102",name:"成功镇",parent_code:"713100"},{code:"713103",name:"关山镇",parent_code:"713100"},{code:"713104",name:"卑南乡",parent_code:"713100"},{code:"713105",name:"大武乡",parent_code:"713100"},{code:"713106",name:"太麻里乡",parent_code:"713100"},{code:"713107",name:"东河乡",parent_code:"713100"},{code:"713108",name:"长滨乡",parent_code:"713100"},{code:"713109",name:"鹿野乡",parent_code:"713100"},{code:"713110",name:"池上乡",parent_code:"713100"},{code:"713111",name:"绿岛乡",parent_code:"713100"},{code:"713112",name:"延平乡",parent_code:"713100"},{code:"713113",name:"海端乡",parent_code:"713100"},{code:"713114",name:"达仁乡",parent_code:"713100"},{code:"713115",name:"金峰乡",parent_code:"713100"},{code:"713116",name:"兰屿乡",parent_code:"713100"}]},{code:"713200",name:"澎湖县",parent_code:"710000",children:[{code:"713201",name:"马公市",parent_code:"713200"},{code:"713202",name:"湖西乡",parent_code:"713200"},{code:"713203",name:"白沙乡",parent_code:"713200"},{code:"713204",name:"西屿乡",parent_code:"713200"},{code:"713205",name:"望安乡",parent_code:"713200"},{code:"713206",name:"七美乡",parent_code:"713200"}]}]},{code:"810000",name:"香港特别行政区",children:[{code:"810100",name:"香港特别行政区",parent_code:"810000",children:[{code:"811100",name:"中西区",parent_code:"810100"},{code:"811200",name:"湾仔区",parent_code:"810100"},{code:"811300",name:"东区",parent_code:"810100"},{code:"811400",name:"南区",parent_code:"810100"},{code:"812100",name:"油尖旺区",parent_code:"810100"},{code:"812200",name:"深水埗区",parent_code:"810100"},{code:"812300",name:"九龙城区",parent_code:"810100"},{code:"812400",name:"黄大仙区",parent_code:"810100"},{code:"812500",name:"观塘区",parent_code:"810100"},{code:"813100",name:"葵青区",parent_code:"810100"},{code:"813200",name:"荃湾区",parent_code:"810100"},{code:"813300",name:"屯门区",parent_code:"810100"},{code:"813400",name:"元朗区",parent_code:"810100"},{code:"813500",name:"北区",parent_code:"810100"},{code:"813600",name:"大埔区",parent_code:"810100"},{code:"813700",name:"沙田区",parent_code:"810100"},{code:"813800",name:"西贡区",parent_code:"810100"},{code:"813900",name:"离岛区",parent_code:"810100"}]}]},{code:"820000",name:"澳门特别行政区",children:[{code:"820001",name:"澳门特别行政区",parent_code:"820000",children:[{code:"820100",name:"澳门半岛",parent_code:"820001"},{code:"820200",name:"氹仔岛",parent_code:"820001"},{code:"820300",name:"路环岛",parent_code:"820001"}]}]}],Ht=Ot.map(t=>({code:t.code,name:t.name})),En=Ot.map(t=>({code:t.code,name:t.name,children:(t.children||[]).map(s=>({code:s.code,name:s.name}))})),zn=(t,s)=>{const a=uni.vc||{},f=e.computed(()=>{const y=Number(t.level);return y===3?Ot:y===2?En:y===1?Ht:Ot}),g=e.computed(()=>{var h,w,C;const y=t.modelValue||{},r=Number(t.level),m=[];return(h=y.province)!=null&&h.code&&(m.push(y.province.code),r>=2&&((w=y.city)!=null&&w.code)&&(m.push(y.city.code),r>=3&&((C=y.area)!=null&&C.code)&&m.push(y.area.code))),m}),i=e.computed(()=>{const y=t.localdata,r=f.value,m=typeof y=="function"?y():y;return a.pubfn.isNotNull(m)?m:r}),c=e.computed(()=>{const y=t.props||{};return Object.assign({expandTrigger:"click",value:"code",label:"name",children:"children",disabled:"disabled"},y,{emitPath:!0})}),k=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),T=y=>{const r=i.value,m=c.value,h=Number(t.level),w=a.pubfn.copyObject(t.modelValue||{});if(y&&y.length>0){const C=a.pubfn.getListItem(r,m.value,y[0]);if(C)if(w.province={code:C[m.value],name:C[m.label]},h>=2){const u=a.pubfn.getListItem(C[m.children],m.value,y[1]);if(u){if(w.city={code:u[m.value],name:u[m.label]},h>=3){const l=a.pubfn.getListItem(u[m.children],m.value,y[2]);l?w.area={code:l[m.value],name:l[m.label]}:delete w.area}}else delete w.city,delete w.area}else delete w.city,delete w.area}else delete w.province,delete w.city,delete w.area;return w};return{vc:a,valueCom:g,localdataCom:i,propsCom:c,customStyle:k,handleInput:y=>{const r=T(y);s("update:modelValue",r)},handleChange:y=>{const r=T(y);s("change",r)}}},Dn=e.defineComponent({name:"vc-data-input-address",__name:"data-input-address",props:Nn,emits:Tn,setup(t,{emit:s}){const a=t,f=s,{vc:g,valueCom:i,localdataCom:c,propsCom:k,customStyle:T,handleInput:v,handleChange:N}=zn(a,f);return(y,r)=>{const m=e.resolveComponent("el-cascader");return e.openBlock(),e.createBlock(m,e.mergeProps({key:y.level},y.$attrs,{"model-value":e.unref(i),options:e.unref(c),props:e.unref(k),size:e.unref(g).pubfn.elementUtil.getComponentSize(y.size),style:e.unref(T),placeholder:y.placeholder,disabled:y.disabled,filterable:y.filterable,clearable:y.clearable,"onUpdate:modelValue":e.unref(v),onChange:e.unref(N)}),null,16,["model-value","options","props","size","style","placeholder","disabled","filterable","clearable","onUpdate:modelValue","onChange"])}}}),Fn={modelValue:{type:[Object,String],default:()=>({})},size:{type:String,values:qe,default:""},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},width:{type:[String,Number],default:""}},In={"update:modelValue":t=>!0,change:t=>!0},An=(t,s)=>{const a=uni.vc||{},f=e.reactive(Ht),g=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{width:"fit-content"}),i=T=>{if(!T)return{};const v=Ht.find(N=>N.code===T);return v?{code:v.code,name:v.name}:{}};return{vc:a,customStyle:g,provincesList:f,handleInput:T=>{const v=i(T);s("update:modelValue",v)},handleChange:T=>{const v=i(T);s("change",v)}}},Mn=e.defineComponent({name:"vc-data-input-province",__name:"data-input-province",props:Fn,emits:In,setup(t,{emit:s}){const a=t,f=s,{vc:g,customStyle:i,provincesList:c,handleInput:k,handleChange:T}=An(a,f);return(v,N)=>{var m;const y=e.resolveComponent("el-option"),r=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(r,e.mergeProps(v.$attrs,{"model-value":((m=v.modelValue)==null?void 0:m.code)||"",size:e.unref(g).pubfn.elementUtil.getComponentSize(v.size),style:e.unref(i),filterable:v.filterable,placeholder:v.placeholder,clearable:v.clearable,disabled:v.disabled,"onUpdate:modelValue":e.unref(k),onChange:e.unref(T)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),h=>(e.openBlock(),e.createBlock(y,{key:h.code,label:h.name,value:h.code},null,8,["label","value"]))),128))]),_:1},16,["model-value","size","style","filterable","placeholder","clearable","disabled","onUpdate:modelValue","onChange"])}}}),Pn={modelValue:{type:[Array,Object,String,Number,Boolean],default:void 0},localdata:{type:[Array,Function],default:()=>[]},props:{type:Object,default:()=>({value:"value",label:"label",children:"children",desc:"desc"})},placeholder:{type:String,default:void 0},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},group:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},filterMethod:{type:Function,default:void 0},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:void 0},loading:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:""},reserveKeyword:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!0},popperAppendToBody:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},defaultIndex:{type:[Number,String],default:""},showDesc:{type:Boolean,default:!1}},Rn={"update:modelValue":t=>!0,change:(t,s)=>!0,clear:t=>!0,focus:t=>!0,"visible-change":t=>!0,"remove-tag":t=>!0},Ln=(t,s)=>{const a=uni.vc||{},f=e.ref(),g={"el.select.loading":"加载中","el.select.noMatch":"无匹配数据","el.select.noData":"无数据"},i=e.computed(()=>{const d=t.localdata;return typeof d=="function"?d():d||[]}),c=e.computed(()=>t.loadingText||g["el.select.loading"]),k=e.computed(()=>t.noMatchText||g["el.select.noMatch"]),T=e.computed(()=>t.noDataText||g["el.select.noData"]),v=e.computed(()=>({width:a.pubfn.addUnit(t.width||240)})),N=d=>{const{value:o,label:p,children:E}=t.props;let n=[];return t.group?n=a.pubfn.treeUtil.treeToArray(i.value,{id:o,children:E})||[]:n=i.value||[],t.multiple&&Array.isArray(d)?d.map(_=>a.pubfn.getListItem(n,o,_)):a.pubfn.getListItem(n,o,d)},y=d=>typeof d=="string"?d.trim():Array.isArray(d)?d.map(o=>typeof o=="string"?o.trim():o):d,r=d=>{const o=y(d);s("update:modelValue",o)},m=d=>{let o=N(d);o===void 0&&(o=t.multiple?[]:{});const p=y(d);s("change",p,o)},h=d=>{d!==t.modelValue&&(r(d),m(d))},w=()=>{s("clear","")},C=d=>{s("visible-change",d)},u=d=>{s("remove-tag",d)},l=d=>{s("focus",d)};return e.watch(()=>i.value,d=>{if(t.multiple||typeof t.defaultIndex!="number")return;const o=t.modelValue;let p=a.pubfn.isNull(o);if(p||N(o)||(p=!0),p){const E=d[t.defaultIndex];E&&h(E[t.props.value])}},{immediate:!0}),{selectRef:f,localdataCom:i,loadingTextCom:c,noMatchTextCom:k,noDataTextCom:T,customStyle:v,handleInput:r,handleChange:m,handleClear:w,handleVisibleChange:C,handleRemoveTag:u,handleFocus:l}},$n={class:"select-option"},On={class:"select-option-left"},Un={class:"select-option-right"},qn={class:"select-option"},jn={class:"select-option-left"},Wn={class:"select-option-right"},Kn=e.defineComponent({name:"vc-data-input-select",__name:"data-input-select",props:Pn,emits:Rn,setup(t,{expose:s,emit:a}){const f=t,g=a,{selectRef:i,localdataCom:c,loadingTextCom:k,noMatchTextCom:T,noDataTextCom:v,customStyle:N,handleInput:y,handleChange:r,handleClear:m,handleVisibleChange:h,handleRemoveTag:w,handleFocus:C}=Ln(f,g);return s({focus:()=>{var u;return(u=i.value)==null?void 0:u.focus()},blur:()=>{var u;return(u=i.value)==null?void 0:u.blur()}}),(u,l)=>{const d=e.resolveComponent("el-option"),o=e.resolveComponent("el-option-group"),p=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"selectRef",ref:i},u.$attrs,{"model-value":u.modelValue,filterable:u.filterable,"allow-create":u.allowCreate,placeholder:u.placeholder,clearable:u.clearable,size:u.vc.pubfn.elementUtil.getComponentSize(u.size),style:e.unref(N),multiple:u.multiple,"multiple-limit":u.multipleLimit,"collapse-tags":u.collapseTags,disabled:u.disabled,"filter-method":u.filterMethod,remote:u.remote,"remote-method":u.remoteMethod,loading:u.loading,"loading-text":e.unref(k),"no-match-text":e.unref(T),"no-data-text":e.unref(v),"popper-class":u.popperClass,"reserve-keyword":u.reserveKeyword,"default-first-option":u.defaultFirstOption,teleported:u.popperAppendToBody,"automatic-dropdown":u.automaticDropdown,"onUpdate:modelValue":e.unref(y),onClear:e.unref(m),onChange:e.unref(r),onVisibleChange:e.unref(h),onRemoveTag:e.unref(w),onFocus:e.unref(C)}),{default:e.withCtx(()=>[u.showDesc?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.group?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c),E=>(e.openBlock(),e.createBlock(o,{key:E[f.props.label],label:E[f.props.label]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E[f.props.children],n=>(e.openBlock(),e.createBlock(d,{key:n[f.props.value],label:n[f.props.label],value:n[f.props.value],disabled:n.disabled},{default:e.withCtx(()=>[e.createElementVNode("view",$n,[e.createElementVNode("view",On,e.toDisplayString(n[f.props.label]),1),e.createElementVNode("view",Un,e.toDisplayString(n[f.props.desc]),1)])]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(c),E=>(e.openBlock(),e.createBlock(d,{key:E[f.props.value],label:E[f.props.label],value:E[f.props.value],disabled:E.disabled},{default:e.withCtx(()=>[e.createElementVNode("view",qn,[e.createElementVNode("view",jn,e.toDisplayString(E[f.props.label]),1),e.createElementVNode("view",Wn,e.toDisplayString(E[f.props.desc]),1)])]),_:2},1032,["label","value","disabled"]))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u.group?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c),E=>(e.openBlock(),e.createBlock(o,{key:E[f.props.label],label:E[f.props.label]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E[f.props.children],n=>(e.openBlock(),e.createBlock(d,{key:n[f.props.value],label:n[f.props.label],value:n[f.props.value],disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(c),E=>(e.openBlock(),e.createBlock(d,{key:E[f.props.value],label:E[f.props.label],value:E[f.props.value],disabled:E.disabled},null,8,["label","value","disabled"]))),128))],64))]),_:1},16,["model-value","filterable","allow-create","placeholder","clearable","size","style","multiple","multiple-limit","collapse-tags","disabled","filter-method","remote","remote-method","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","teleported","automatic-dropdown","onUpdate:modelValue","onClear","onChange","onVisibleChange","onRemoveTag","onFocus"])}}}),Hn=De(Kn,[["__scopeId","data-v-d2d08143"]]),xn={modelValue:{type:[String,Number,Array,Object],default:""},props:{type:Object,default:()=>({list:"list",value:"value",label:"label",children:"children",desc:"desc"})},placeholder:{type:String,default:void 0},action:{type:[String,Function],default:""},actionData:{type:[Object,Function],default:()=>({})},encryptAction:{type:Boolean,default:!1},dataPreprocess:{type:Function,default:void 0},remoteMethod:{type:Function,default:void 0},size:{type:String,values:qe,default:""},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},defaultFirstOption:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},limit:{type:Number,default:0},reserveKeyword:{type:Boolean,default:!1},loadingText:{type:String,default:""},noMatchText:{type:String,default:""},noDataText:{type:String,default:""},popperClass:{type:String,default:"remote-select"},popperAppendToBody:{type:Boolean,default:!0},automaticDropdown:{type:Boolean,default:!1},showAll:{type:Boolean,default:!1},showDesc:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},group:{type:Boolean,default:!1},isRequest:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:!1},requestMethod:{type:String,default:""},maxOptions:{type:Number,default:void 0},showRefresh:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},defaultIndex:{type:[Number,String],default:""}},Yn={"update:modelValue":t=>!0,change:(t,s)=>!0,focus:t=>!0,"visible-change":t=>!0,"remove-tag":t=>!0},Jn=(t,s)=>{const a=uni.vc,f=e.getCurrentInstance(),g=e.ref(),i=e.ref(!1),c=e.ref([]),k=e.ref(0),T=e.ref(!1),v={"el.select.loading":"加载中","el.select.noMatch":"无匹配数据","el.select.noData":"无数据"},N=e.computed(()=>{const q=t.actionData;return typeof q=="function"?q(!!t.showAll):q||{}}),y=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),r=q=>{const I=t.props||{},B={list:"list",label:"label",value:"value",children:"children",desc:"desc"};return B.list=I.list||"list",B.label=I.label||"label",B.value=I.value||"value",B.children=I.children||"children",B.desc=I.desc||"desc",B[q]},m=(q,I)=>q?q[r(I)]:void 0,h=q=>typeof q=="string"?q.trim():Array.isArray(q)?q.map(I=>typeof I=="string"?I.trim():I):q,w=()=>{const{showAll:q,action:I}=t;if(!q||!I)return;const B=r("list"),P=++k.value;i.value=!0,(typeof I=="function"?I:t.isRequest?a.request:a.callFunction)({url:I,header:t.requestHeader,method:t.requestMethod,data:N.value,encrypt:t.encryptAction,success:z=>{if(P!==k.value)return;let $=a.pubfn.getData(z,B);typeof t.dataPreprocess=="function"&&($=t.dataPreprocess($)),c.value=$},fail:()=>{P===k.value&&(c.value=[])},complete:()=>{P===k.value&&(i.value=!1)}})},C=()=>{t.disabled||(t.showAll?w():_(t.modelValue,!0))},u=q=>{q!==t.modelValue&&(l(q),d(q))},l=q=>{s("update:modelValue",h(q))},d=q=>{let I=p(q);I===void 0&&(I=t.multiple?[]:{}),q=h(q),s("change",q,I)},o=()=>{t.showAll||(k.value++,T.value=!1,i.value=!1,c.value=[])},p=q=>{const I=c.value||[],B=r("value");return t.multiple&&Array.isArray(q)?q.map(P=>a.pubfn.getListItem(I,B,P)):a.pubfn.getListItem(I,B,q)},E=q=>{s("visible-change",q)},n=q=>{if(!T.value||!i.value&&!a.pubfn.isNull(q)){T.value=!1;const I=++k.value;a.pubfn.debounce(()=>{I===k.value&&_(q)},300,!1,`vc-data-input-remote-select-remoteMethod-${(f==null?void 0:f.uid)??0}`)}},_=(q,I=!1)=>{const{showAll:B,remoteMethod:P,action:Q,maxOptions:z}=t;if(B)return;T.value=I;const $=++k.value;if(!q){i.value=!1,c.value=[];return}if(i.value=!0,typeof P=="function"){P(q).then(x=>{$===k.value&&(c.value=x)}).catch(()=>{$===k.value&&(c.value=[])}).finally(()=>{$===k.value&&(i.value=!1)});return}if(Q){const x=r("list"),L={searchvalue:q},re=N.value;typeof re=="object"&&re!==null&&Object.assign(L,re,{searchvalue:q}),(typeof Q=="function"?Q:t.isRequest?a.request:a.callFunction)({url:Q,header:t.requestHeader,method:t.requestMethod,data:L,encrypt:t.encryptAction,success:de=>{if($!==k.value)return;let he=a.pubfn.getData(de,x);typeof t.dataPreprocess=="function"&&(he=t.dataPreprocess(he)),z&&he.length>z&&(he=he.slice(0,z)),c.value=he},complete:()=>{$===k.value&&(i.value=!1)}})}},V=q=>{s("remove-tag",q)},R=q=>{s("focus",q)};return e.onMounted(()=>{w()}),e.onBeforeUnmount(()=>{k.value++}),e.watch(()=>t.modelValue,q=>{if(!t.showAll&&a.pubfn.isNull(q)){o();return}if(!q)return;const I=t.props||{};if(I.value===I.label)return;const B=p(q);(t.multiple&&Array.isArray(B)?B.filter(Q=>Q!==void 0).length!==q.length:!B)&&_(q,!0)},{immediate:!0}),e.watch(()=>N.value,(q,I)=>{JSON.stringify(q)!==JSON.stringify(I)&&t.showAll&&w()},{deep:!0}),e.watch(()=>c.value,q=>{const{defaultIndex:I,multiple:B,showAll:P,modelValue:Q}=t;if(typeof I!="number"||B||!P)return;let z=a.pubfn.isNull(Q);if(z||p(Q)||(z=!0),z){const $=q[I];if($){const x=t.props||{};u($[x.value||"value"])}}},{immediate:!0}),{selectRef:g,language:v,loading:i,data:c,requestId:k,isValueRequest:T,actionDataCom:N,customStyle:y,getKeyName:r,getValueByKeyName:m,init:w,refresh:C,updateValue:u,handleInput:l,handleChange:d,handleClear:o,getOption:p,visibleChange:E,remoteMethodFn:n,remoteMethod:_,removeTag:V,handleFocus:R}},Gn={class:"vc-remote-option"},Qn={class:"vc-remote-option__label"},Xn={key:0,class:"vc-remote-option__desc"},Zn={class:"vc-remote-option"},eo={class:"vc-remote-option__label"},to={key:0,class:"vc-remote-option__desc"},no={key:0,class:"vc-refresh-box"},oo=e.defineComponent({name:"vc-data-input-remote-select",__name:"data-input-remote-select",props:xn,emits:Yn,setup(t,{expose:s,emit:a}){const f=t,g=a,{selectRef:i,language:c,loading:k,data:T,isValueRequest:v,customStyle:N,getKeyName:y,getValueByKeyName:r,refresh:m,handleInput:h,handleChange:w,handleClear:C,visibleChange:u,remoteMethodFn:l,removeTag:d,handleFocus:o}=Jn(f,g);return s({focus:()=>{var p;return(p=i.value)==null?void 0:p.focus()},blur:()=>{var p;return(p=i.value)==null?void 0:p.blur()}}),(p,E)=>{const n=e.resolveComponent("el-option"),_=e.resolveComponent("el-option-group"),V=e.resolveComponent("el-select"),R=e.resolveComponent("el-button"),q=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("view",{class:"vc-data-input-remote-select",style:e.normalizeStyle(e.unref(N))},[e.createVNode(V,e.mergeProps({ref_key:"selectRef",ref:i},p.$attrs,{"model-value":p.modelValue,"value-key":e.unref(y)("value"),placeholder:p.placeholder,disabled:p.disabled||e.unref(v)&&e.unref(k),size:p.vc.pubfn.elementUtil.getComponentSize(p.size),clearable:p.clearable,filterable:p.filterable,"allow-create":p.allowCreate,remote:!p.showAll,"remote-method":e.unref(l),loading:e.unref(k),"loading-text":p.loadingText||e.unref(c)["el.select.loading"],"no-match-text":p.noMatchText||e.unref(c)["el.select.noMatch"],"no-data-text":p.noDataText||e.unref(c)["el.select.noData"],multiple:p.multiple,"multiple-limit":p.limit,"reserve-keyword":p.reserveKeyword,"default-first-option":p.defaultFirstOption,"popper-class":p.popperClass,teleported:p.popperAppendToBody,"automatic-dropdown":p.automaticDropdown,"collapse-tags":p.collapseTags,"onUpdate:modelValue":e.unref(h),onClear:e.unref(C),onChange:e.unref(w),onVisibleChange:e.unref(u),onRemoveTag:e.unref(d),onFocus:e.unref(o)}),{default:e.withCtx(()=>[p.showDesc?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[p.group?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(T),I=>(e.openBlock(),e.createBlock(_,{key:e.unref(r)(I,"label"),label:e.unref(r)(I,"label")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I[e.unref(y)("children")]||[],B=>(e.openBlock(),e.createBlock(n,{key:e.unref(r)(B,"value"),label:e.unref(r)(B,"label"),value:e.unref(r)(B,"value"),disabled:B.disabled},{default:e.withCtx(()=>[e.createElementVNode("view",Gn,[e.createElementVNode("text",Qn,e.toDisplayString(e.unref(r)(B,"label")),1),e.unref(r)(B,"desc")?(e.openBlock(),e.createElementBlock("text",Xn,e.toDisplayString(e.unref(r)(B,"desc")),1)):e.createCommentVNode("",!0)])]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(T),I=>(e.openBlock(),e.createBlock(n,{key:e.unref(r)(I,"value"),label:e.unref(r)(I,"label"),value:e.unref(r)(I,"value"),disabled:I.disabled},{default:e.withCtx(()=>[e.createElementVNode("view",Zn,[e.createElementVNode("text",eo,e.toDisplayString(e.unref(r)(I,"label")),1),e.unref(r)(I,"desc")?(e.openBlock(),e.createElementBlock("text",to,e.toDisplayString(e.unref(r)(I,"desc")),1)):e.createCommentVNode("",!0)])]),_:2},1032,["label","value","disabled"]))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[p.group?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(T),I=>(e.openBlock(),e.createBlock(_,{key:e.unref(r)(I,"label"),label:e.unref(r)(I,"label")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I[e.unref(y)("children")]||[],B=>(e.openBlock(),e.createBlock(n,{key:e.unref(r)(B,"value"),label:e.unref(r)(B,"label"),value:e.unref(r)(B,"value"),disabled:B.disabled},null,8,["label","value","disabled"]))),128))]),_:2},1032,["label"]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(T),I=>(e.openBlock(),e.createBlock(n,{key:e.unref(r)(I,"value"),label:e.unref(r)(I,"label"),value:e.unref(r)(I,"value"),disabled:I.disabled},null,8,["label","value","disabled"]))),128))],64))]),_:1},16,["model-value","value-key","placeholder","disabled","size","clearable","filterable","allow-create","remote","remote-method","loading","loading-text","no-match-text","no-data-text","multiple","multiple-limit","reserve-keyword","default-first-option","popper-class","teleported","automatic-dropdown","collapse-tags","onUpdate:modelValue","onClear","onChange","onVisibleChange","onRemoveTag","onFocus"]),p.showAll&&p.showRefresh?(e.openBlock(),e.createElementBlock("view",no,[e.createVNode(R,{class:"vc-refresh-btn",icon:e.unref(Ie.RefreshRight),circle:"",loading:e.unref(k),disabled:p.disabled||e.unref(k),onClick:e.unref(m)},null,8,["icon","loading","disabled","onClick"])])):e.createCommentVNode("",!0)],4)),[[q,e.unref(k)]])}}}),ao=De(oo,[["__scopeId","data-v-79a35b1c"]]),co=["text","picture","picture-card"],ro=["KB","MB","GB"],lo=["tempPath","base64"],io={modelValue:{type:[String,Array,Object],default:void 0},action:{type:String,default:""},headers:{type:Object,default:()=>({})},uploadType:{type:String,default:"image"},buttonText:{type:String,default:"点击上传"},data:{type:Object,default:{}},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showFileList:{type:Boolean,default:!0},drag:{type:Boolean,default:!1},accept:{type:String,default:".jpg,.jpeg,.png,.gif,.JPG,.JPEG,.PNG,.GIF"},listType:{type:String,values:co,default:"picture-card"},autoUpload:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},limit:{type:Number,default:void 0},fileSize:{type:Number,default:void 0},sizeUnit:{type:String,values:ro,default:"MB"},needSave:{type:Boolean,default:!1},categoryId:{type:String,default:""},cloudDirectory:{type:String,default:""},provider:{type:String,default:""},tipsImageText:{type:String,default:""},tipsImage:{type:String,default:""},tipsImageStyle:{type:[String,Object],default:"width: 200px;"},tempFileType:{type:String,values:lo,default:"tempPath"},fileNameMaxWidth:{type:[String,Number],default:500},cloudPathRemoveChinese:{type:Boolean,default:!0},echoUseLocalUrl:{type:Boolean,default:!1},uniCloud:{type:Object,default:void 0},env:{type:String,default:""},onPreview:{type:Function,default:void 0},onRemove:{type:Function,default:void 0},onSuccess:{type:Function,default:void 0},onError:{type:Function,default:void 0},onProgress:{type:Function,default:void 0},onChange:{type:Function,default:void 0},beforeUpload:{type:Function,default:void 0},beforeRemove:{type:Function,default:void 0},httpRequest:{type:Function,default:void 0},onExceed:{type:Function,default:void 0},width:{type:[String,Number],default:""}},so={"update:modelValue":t=>!0,success:(t,s,a)=>!0,remove:(t,s)=>!0,error:t=>!0,change:(t,s)=>!0,preview:t=>!0,exceed:(t,s)=>!0},uo=(t,s)=>{const a=uni.vc||{},f=e.ref(),g=e.ref([]),i=e.ref(""),c=e.ref(!1),k=e.ref(""),T=e.ref({}),v=e.ref(!1),N=e.computed(()=>(t.limit||0)>1),y=e.computed(()=>t.drag?"text":t.listType||(t.limit===1?"picture":"picture-card")),r=e.computed(()=>{const A={};return t.fileNameMaxWidth&&(A["--file-name-max-width"]=a.pubfn.addUnit(t.fileNameMaxWidth)),A}),m=e.computed(()=>{const A=t.modelValue,M=t.limit;return M?M===1?!!A:Array.isArray(A)&&A.length>=M:!1}),h=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),w=()=>{const A=t.modelValue,M=t.limit,O=[];M===1?A&&O.push((A==null?void 0:A.url)??A):Array.isArray(A)&&A.forEach(K=>O.push((K==null?void 0:K.url)??K)),Object.keys(T.value).forEach(K=>{O.includes(K)||delete T.value[K]})},C=A=>{if(!A)return"";const M=(A==null?void 0:A.url)??A;return t.echoUseLocalUrl&&T.value[M]?T.value[M]:M},u=A=>{const{fileSize:M,sizeUnit:O}=t;if(!M||!A.size)return!0;const K=(O||"MB").toUpperCase();let se=0;return K==="KB"?se=1024*M:K==="MB"?se=1024*M*1024:K==="GB"?se=1024*M*1024*1024:K==="TB"&&(se=1024*M*1024*1024*1024),A.size>se?(Ue.ElMessage.error(`${A.name} 超出 ${M} ${O} 大小限制`),!1):!0},l=async()=>{const A=t.modelValue,M=t.limit,O=t.tempFileType||"tempPath",K=t.echoUseLocalUrl;w();const se=[];if(M===1){if(!A){g.value=[];return}let ae="",fe="";if(A!==null&&typeof A=="object"&&A.name)ae=A.name,A.url?fe=A.url:A.raw&&(O==="base64"?fe=await a.pubfn.fileToBase64(A.raw):fe=URL.createObjectURL(A.raw));else{fe=A;const Se=A.lastIndexOf("/");ae=Se>-1?A.substring(Se+1):"";const Ne=g.value.find(Ve=>Ve.url===A);Ne!=null&&Ne.name&&(ae=Ne.name)}const ge=K&&T.value[fe]?T.value[fe]:fe;se.push({name:ae,url:ge,sourceValue:A})}else{if(!A||!Array.isArray(A)||A.length===0){g.value=[];return}for(const ae of A){let fe="",ge="";if(ae!==null&&typeof ae=="object"&&ae.name)fe=ae.name,ae.url?ge=ae.url:ae.raw&&(O==="base64"?ge=await a.pubfn.fileToBase64(ae.raw):ge=URL.createObjectURL(ae.raw));else{ge=ae;const Ce=ae.lastIndexOf("/");fe=Ce>-1?ae.substring(Ce+1):"";const Ve=g.value.find(ee=>ee.url===ae);Ve!=null&&Ve.name&&(fe=Ve.name)}const Se=K&&T.value[ge]?T.value[ge]:ge;se.push({name:fe,url:Se})}}se.length>0&&(g.value=se)},d=(A,M)=>{const O=M.file,K=A.url,se=A.filePath,ae=t.limit;let fe=t.modelValue;se&&K&&(T.value[K]=se);const ge=g.value.find(Se=>Se.uid===O.uid);ge&&(ge.url=K,ge.status="success"),ae===1?(v.value=!0,s("update:modelValue",K)):(fe=fe?[...fe]:[],fe.push(K),O.url=K,v.value=!0,s("update:modelValue",fe))},o=A=>{var ae,fe,ge,Se;let M=t.provider,O=t.uniCloud;if(!M){const Ce=((fe=(ae=a==null?void 0:a.callFunctionUtil)==null?void 0:ae.getConfig)==null?void 0:fe.call(ae))||{},Ne=(Se=(ge=a==null?void 0:a.pubfn)==null?void 0:ge.getData)==null?void 0:Se.call(ge,Ce,"service.cloudStorage");M=Ne&&Ne.defaultProvider||"unicloud",O=M==="unicloud"?Ce.unicloud:{}}const K=A.file,se=window.URL.createObjectURL(K);a.uploadFile({title:"上传中...",filePath:se,file:K,fileType:"image",provider:M,needSave:t.needSave,category_id:t.categoryId,cloudDirectory:t.cloudDirectory,cloudPathRemoveChinese:t.cloudPathRemoveChinese,uniCloud:O,env:t.env,onUploadProgress:Ce=>{var ee;const Ne=Ce.progress,Ve=((ee=Ce.progressEvent)==null?void 0:ee.total)||Ce.total||0;try{A.onProgress({percent:Ne,isTrusted:Ne>=100,returnValue:Ne>=100,total:Ve})}catch{}},success:Ce=>{d(Ce,A),k.value="",A.onSuccess(Ce)},fail:Ce=>{k.value=Ce.msg||"",A.onError(Ce)}})},p=e.computed(()=>typeof t.httpRequest=="function"?t.httpRequest:o),E=A=>!(!u(A)||typeof t.beforeUpload=="function"&&t.beforeUpload(A)===!1),n=A=>{if(typeof t.onPreview=="function"){t.onPreview(A,M=>{i.value=M,c.value=!0});return}i.value=A.url||"",c.value=!0},_=(A,M,O)=>{typeof t.onSuccess=="function"&&t.onSuccess(A,M,O)},V=(A,M)=>{var O,K;(K=(O=f.value)==null?void 0:O.handleRemove)==null||K.call(O,A)},R=(A,M)=>{const O=g.value.findIndex(ae=>ae.uid===A.uid);O>-1&&g.value.splice(O,1);let K=t.modelValue;A.url&&T.value[A.url]&&delete T.value[A.url];const se=ae=>{if(a.pubfn.isNull(ae))return!1;if(ae===A||ae===A.sourceValue||typeof ae=="object"&&a.pubfn.isNotNull(A.uid)&&ae.uid===A.uid)return!0;const fe=typeof ae=="object"?ae.url:ae;return a.pubfn.isNotNull(A.url)&&(A.url===fe||A.url===C(ae))};if(t.limit===1)se(K)&&(v.value=!0,s("update:modelValue",""));else if(Array.isArray(K)){K=[...K];const ae=K.findIndex(se);ae>-1&&(K.splice(ae,1),v.value=!0,s("update:modelValue",K))}typeof t.onRemove=="function"&&t.onRemove(A,M)},q=(A,M)=>typeof t.beforeRemove=="function"?t.beforeRemove(A,M):!0,I=(A,M,O)=>{typeof t.onError=="function"&&t.onError(A,M,O)},B=(A,M,O)=>{typeof t.onProgress=="function"&&t.onProgress(A,M,O)},P=async(A,M)=>{if(g.value=M,!(t.autoUpload!==!1)){if(!u(A)){const ae=M.findIndex(fe=>fe.uid===A.uid);return ae>-1&&M.splice(ae,1),!1}const K=t.tempFileType||"tempPath";let se;if(K==="base64"?se=await a.pubfn.fileToBase64(A.raw):se=URL.createObjectURL(A.raw),A.url=se,t.echoUseLocalUrl&&(T.value[se]=se),t.limit===1)v.value=!0,s("update:modelValue",A);else{const ae=[...t.modelValue||[],A];v.value=!0,s("update:modelValue",ae)}}typeof t.onChange=="function"&&t.onChange(A,M)},Q=(A,M)=>{typeof t.onExceed=="function"?t.onExceed(A,M):k.value=`最多只能上传 ${t.limit} 个文件`},z=()=>{var A,M;(M=(A=f.value)==null?void 0:A.clearFiles)==null||M.call(A),T.value={},a.pubfn.isNotNull(t.modelValue)&&(v.value=!0,t.limit===1?s("update:modelValue",""):s("update:modelValue",[]))},$=A=>{window.open(A)},x=A=>{const M=(Array.isArray(A)?A:g.value).map(O=>({url:O==null?void 0:O.url,name:O==null?void 0:O.name}));return t.limit===1?M[0]:M},L={isStart:!1,startIndex:null,endIndex:null},re=A=>{var M,O;if((t.limit||0)>1){L.isStart=!0;const K=(O=(M=A.currentTarget)==null?void 0:M.dataset)==null?void 0:O.uid;L.startIndex=g.value.findIndex(se=>se.uid==K)}},ne=A=>{var M;if(de(A),L.isStart){const O=A.currentTarget,K=(M=O==null?void 0:O.dataset)==null?void 0:M.uid;if(K){const se=g.value.findIndex(ae=>ae.uid==K);se>-1&&(L.endIndex=se)}}},de=A=>{A.preventDefault()},he=A=>{de(A);const M=t.limit||0,{startIndex:O,endIndex:K}=L;if(M>1&&typeof O=="number"&&typeof K=="number"&&O!==K){const se=JSON.parse(JSON.stringify(t.modelValue||[])),[ae]=se.splice(O,1);se.splice(K,0,ae);const[fe]=g.value.splice(O,1);g.value.splice(K,0,fe),v.value=!0,s("update:modelValue",se)}L.isStart=!1,L.startIndex=null,L.endIndex=null};return e.watch(()=>t.modelValue,A=>{var M,O;if(v.value){v.value=!1,s("change",A);return}a.pubfn.isNotNull(A)?l():((O=(M=f.value)==null?void 0:M.clearFiles)==null||O.call(M),T.value={},g.value=[]),s("change",A)},{immediate:!0}),{vc:a,uploadRef:f,fileList:g,dialogImageUrl:i,dialogVisible:c,msg:k,multipleCom:N,listTypeCom:y,styleCom:r,isMax:m,customStyle:h,getDisplayUrl:C,urlMapping:T,beforeUploadFn:E,beforeRemoveFn:q,httpRequestProp:p,handlePreview:n,handleSuccess:_,handleRemove:R,removeFile:V,handleError:I,handleProgress:B,handleChange:P,handleExceed:Q,clearFiles:z,downloadFile:$,getOption:x,isInternalUpdate:v,handleDragstart:re,handleDragenter:ne,handleDragover:de,handleDragend:he}},mo={style:{flex:"1 1 0%"}},po=["data-uid"],fo=["src"],ho={class:"el-upload-list__item-actions"},_o=["onClick"],yo=["onClick"],vo={key:1},go={class:"el-upload__text"},bo={style:{color:"#409EFF"}},ko={key:0,class:"tips-max"},wo={class:"el-upload__tip"},Co={key:0,class:"tips"},Bo={key:0,style:{margin:"0 10px"}},So={class:"upload-dialog"},Vo={key:2,style:{margin:"auto",height:"80vh"}},No=["src"],To={key:3,style:{width:"100%","text-align":"center"}},Eo=e.defineComponent({name:"vc-data-upload",__name:"data-upload",props:io,emits:so,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,uploadRef:c,fileList:k,dialogImageUrl:T,dialogVisible:v,msg:N,multipleCom:y,listTypeCom:r,styleCom:m,isMax:h,customStyle:w,getDisplayUrl:C,beforeUploadFn:u,beforeRemoveFn:l,httpRequestProp:d,handlePreview:o,handleSuccess:p,handleRemove:E,removeFile:n,handleError:_,handleProgress:V,handleChange:R,handleExceed:q,clearFiles:I,downloadFile:B,getOption:P,handleDragstart:Q,handleDragenter:z,handleDragover:$,handleDragend:x}=uo(f,g);return s({clearFiles:I,getOption:P,downloadFile:B,getDisplayUrl:C}),(L,re)=>{const ne=e.resolveComponent("el-icon"),de=e.resolveComponent("el-image"),he=e.resolveComponent("el-button"),A=e.resolveComponent("el-upload"),M=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["vc-data-upload",[L.drag?"upload-drag":"",e.unref(h)?"is-max":"",L.limit===1?"upload-one":"upload-many",L.disabled&&e.unref(i).pubfn.isNotNull(L.modelValue)?"upload-disabled":"",L.tipsImage?"tips-image":""]]),style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("view",{style:e.normalizeStyle([e.unref(m),{display:"flex","align-items":"flex-start"}])},[e.createElementVNode("view",mo,[e.createVNode(A,e.mergeProps({ref_key:"uploadRef",ref:c},L.$attrs,{"file-list":e.unref(k),"onUpdate:fileList":re[5]||(re[5]=O=>e.isRef(k)?k.value=O:null),action:L.action,headers:L.headers,multiple:e.unref(y),data:L.data,name:L.name,"with-credentials":L.withCredentials,"show-file-list":L.showFileList,drag:L.drag,accept:L.accept,"on-preview":e.unref(o),"on-remove":e.unref(E),"on-success":e.unref(p),"on-error":e.unref(_),"on-progress":e.unref(V),"on-change":e.unref(R),"before-upload":e.unref(u),"before-remove":e.unref(l),"http-request":e.unref(d),"list-type":e.unref(r),"auto-upload":L.autoUpload,disabled:L.disabled,limit:L.limit,"on-exceed":e.unref(q)}),e.createSlots({default:e.withCtx(()=>[L.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[L.uploadType==="image"&&L.limit===1&&e.unref(i).pubfn.isNotNull(L.modelValue)?(e.openBlock(),e.createElementBlock("view",{key:0,style:{display:"flex","justify-content":"center","align-items":"center"},onClick:re[4]||(re[4]=e.withModifiers(O=>e.unref(o)({url:e.unref(C)(L.modelValue)}),["stop"]))},[e.createVNode(de,{style:{width:"100%",height:"140px"},src:e.unref(C)(L.modelValue),fit:"scale-down"},null,8,["src"])])):(e.openBlock(),e.createElementBlock("view",vo,[e.createVNode(ne,{class:"el-icon--upload"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.UploadFilled))]),_:1}),e.createElementVNode("view",go,[re[10]||(re[10]=e.createTextVNode(" 将文件拖到此处,或 ",-1)),e.createElementVNode("text",bo,e.toDisplayString(L.buttonText||"点击上传"),1)])]))],64)):L.uploadType==="file"||L.listType==="text"||L.listType==="picture"?(e.openBlock(),e.createBlock(he,{key:1,size:"default",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.buttonText||"点击上传"),1)]),_:1})):e.createCommentVNode("",!0)]),_:2},[e.unref(r)==="picture-card"?{name:"file",fn:e.withCtx(({file:O})=>[e.createElementVNode("view",{style:{width:"100%",height:"100%",position:"relative",cursor:"move"},draggable:!0,"data-uid":O.uid,onDragstart:re[0]||(re[0]=(...K)=>e.unref(Q)&&e.unref(Q)(...K)),onDragend:re[1]||(re[1]=(...K)=>e.unref(x)&&e.unref(x)(...K)),onDragover:re[2]||(re[2]=e.withModifiers((...K)=>e.unref($)&&e.unref($)(...K),["prevent"])),onDragenter:re[3]||(re[3]=e.withModifiers((...K)=>e.unref(z)&&e.unref(z)(...K),["prevent"]))},[e.createElementVNode("image",{class:"el-upload-list__item-thumbnail",src:O.url,mode:"aspectFill",draggable:!1},null,8,fo),e.createElementVNode("span",ho,[e.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:K=>e.unref(o)(O)},[e.createVNode(ne,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.ZoomIn))]),_:1})],8,_o),L.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"el-upload-list__item-delete",onClick:K=>e.unref(n)(O,e.unref(k))},[e.createVNode(ne,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Delete))]),_:1})],8,yo))])],40,po)]),key:"0"}:void 0,!L.drag&&L.uploadType!=="file"&&L.listType!=="text"&&L.listType!=="picture"?{name:"trigger",fn:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createElementBlock("view",ko,"已达上限 * "+e.toDisplayString(L.limit),1)):(e.openBlock(),e.createBlock(ne,{key:1,class:"el-icon-plus"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Plus))]),_:1}))]),key:"1"}:void 0,L.drag?{name:"tip",fn:e.withCtx(()=>[e.createElementVNode("view",wo,[e.renderSlot(L.$slots,"tip",{},void 0,!0)])]),key:"2"}:void 0]),1040,["file-list","action","headers","multiple","data","name","with-credentials","show-file-list","drag","accept","on-preview","on-remove","on-success","on-error","on-progress","on-change","before-upload","before-remove","http-request","list-type","auto-upload","disabled","limit","on-exceed"]),e.unref(N)?(e.openBlock(),e.createElementBlock("view",Co,e.toDisplayString(e.unref(N)),1)):e.createCommentVNode("",!0)]),L.tipsImage&&L.tipsImageText?(e.openBlock(),e.createElementBlock("text",Bo,e.toDisplayString(L.tipsImageText),1)):e.createCommentVNode("",!0),L.tipsImage?(e.openBlock(),e.createBlock(de,{key:1,style:e.normalizeStyle(L.tipsImageStyle||"width: 200px;"),src:L.tipsImage,"preview-src-list":[L.tipsImage],fit:"scale-down"},null,8,["style","src","preview-src-list"])):e.createCommentVNode("",!0)],4),e.createVNode(M,{modelValue:e.unref(v),"onUpdate:modelValue":re[8]||(re[8]=O=>e.isRef(v)?v.value=O:null),"append-to-body":!0,width:"40%",top:"7vh",onClose:re[9]||(re[9]=O=>{T.value="",v.value=!1})},{default:e.withCtx(()=>[e.createElementVNode("view",So,[e.unref(T)?L.uploadType==="image"?(e.openBlock(),e.createBlock(de,{key:1,style:{width:"100%"},src:e.unref(T),fit:"scale-down"},null,8,["src"])):e.unref(i).pubfn.getFileType(e.unref(T))==="video"?(e.openBlock(),e.createElementBlock("view",Vo,[e.unref(v)?(e.openBlock(),e.createElementBlock("video",{key:0,style:{width:"100%",height:"100%",display:"block"},src:e.unref(T),autoplay:"","object-fit":"scale-down"},null,8,No)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("view",To,[re[11]||(re[11]=e.createElementVNode("view",null,"该文件不支持预览",-1)),e.createElementVNode("view",{style:{color:"cornflowerblue",textDecoration:"underline",cursor:"pointer"},onClick:re[6]||(re[6]=O=>e.unref(B)(e.unref(T)))},e.toDisplayString(e.unref(T)),1),e.createElementVNode("view",{style:{color:"cornflowerblue",textDecoration:"underline",cursor:"pointer"},onClick:re[7]||(re[7]=O=>e.unref(B)(e.unref(T)))},"下载文件")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[],64))])]),_:1},8,["modelValue"])],6)}}}),zo=De(Eo,[["__scopeId","data-v-40839bd2"]]),Do=["default","button"],Fo=["row","column"],Io={modelValue:{type:[String,Number,Boolean],default:void 0},localdata:{type:[Array,Function],default:()=>[]},disabled:{type:Boolean,default:!1},size:{type:String,values:qe,default:""},textColor:{type:String,default:""},fill:{type:String,default:""},optionType:{type:String,values:Do,default:"default"},border:{type:Boolean,default:!1},itemWidth:{type:Number,default:void 0},action:{type:[String,Function],default:""},actionData:{type:[Object,Function],default:()=>({})},encryptAction:{type:Boolean,default:!1},props:{type:Object,default:()=>({list:"list",value:"value",label:"label"})},dataPreprocess:{type:Function,default:void 0},isRequest:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:void 0},requestMethod:{type:String,default:""},direction:{type:String,values:Fo,default:"row"},columnMargin:{type:[String,Number],default:10},defaultIndex:{type:[Number,String],default:""}},Ao={"update:modelValue":t=>!0,change:(t,s)=>!0},Mo=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=e.ref([]),i=e.ref(0),c=e.computed(()=>{const h=t.localdata;return typeof h=="function"?h():h||[]}),k=e.computed(()=>{var C,u;const h=g.value,w=c.value;return((u=(C=a.pubfn)==null?void 0:C.isNotNull)!=null&&u.call(C,h)?h:w)||[]}),T=e.computed(()=>{const h=t.actionData;return typeof h=="object"&&h!==null?h:typeof h=="function"?h():{}}),v=h=>{const w={};return t.itemWidth&&(w.minWidth=a.pubfn.addUnit(t.itemWidth)),t.direction==="column"&&h>0&&(w.marginTop=a.pubfn.addUnit(t.columnMargin)),w},N=h=>{var u,l;const w=k.value,C=t.props;return(l=(u=a.pubfn)==null?void 0:u.getListItem)==null?void 0:l.call(u,w,C.value,h)},y=h=>{h!==t.modelValue&&m(h)},r=()=>{const h=t.action;if(!h)return;const C=(t.props||{}).list||"list",u=++i.value;f.value=!0,(typeof h=="function"?h:t.isRequest?a.request:a.callFunction)({url:h,header:t.requestHeader,method:t.requestMethod,data:T.value,encrypt:t.encryptAction,success:d=>{var p,E;if(u!==i.value)return;let o=((E=(p=a.pubfn)==null?void 0:p.getData)==null?void 0:E.call(p,d,C))||[];typeof t.dataPreprocess=="function"&&(o=t.dataPreprocess(o)),g.value=o},complete:()=>{u===i.value&&(f.value=!1)}})},m=h=>{s("update:modelValue",h);const w=N(h)||{};s("change",h,w)};return e.onMounted(()=>{r()}),e.onBeforeUnmount(()=>{i.value++}),e.watch(()=>T.value,(h,w)=>{JSON.stringify(h)!==JSON.stringify(w)&&r()},{deep:!0}),e.watch(()=>k.value,h=>{var l,d;const w=t.defaultIndex;if(typeof w!="number")return;const C=t.modelValue;let u=(d=(l=a.pubfn)==null?void 0:l.isNull)==null?void 0:d.call(l,C);u||N(C)||(u=!0),u&&h[w]&&y(h[w][t.props.value])},{immediate:!0}),{vc:a,loading:f,dataCom:k,itemStyleCom:v,getOption:N,init:r,handleChange:m}},Po={key:0,class:"vc-contents"},Ro={key:0,class:"column-tips"},Lo=e.defineComponent({name:"vc-data-input-radio",__name:"data-input-radio",props:Io,emits:Ao,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,loading:c,dataCom:k,itemStyleCom:T,getOption:v,init:N,handleChange:y}=Mo(f,g);return s({init:N,getOption:v}),(r,m)=>{const h=e.resolveComponent("el-radio-button"),w=e.resolveComponent("el-radio"),C=e.resolveComponent("el-radio-group"),u=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(C,e.mergeProps({"model-value":r.modelValue,disabled:r.disabled,size:e.unref(i).pubfn.elementUtil.getComponentSize(r.size),"text-color":r.textColor,fill:r.fill},r.$attrs,{onChange:e.unref(y)}),{default:e.withCtx(()=>[r.optionType==="button"?(e.openBlock(),e.createElementBlock("view",Po,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(l,d)=>(e.openBlock(),e.createBlock(h,{key:d,value:l[f.props.value],disabled:l.disabled,style:e.normalizeStyle(e.unref(T)(d))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l[f.props.label]),1)]),_:2},1032,["value","disabled","style"]))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(`direction-${r.direction}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(l,d)=>(e.openBlock(),e.createBlock(w,{key:d,value:l[f.props.value],size:e.unref(i).pubfn.elementUtil.getComponentSize(r.size),border:r.border,disabled:l.disabled,style:e.normalizeStyle(e.unref(T)(d))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l[f.props.label])+" ",1),r.direction==="column"&&l.tips?(e.openBlock(),e.createElementBlock("view",Ro,e.toDisplayString(l.tips),1)):e.createCommentVNode("",!0)]),_:2},1032,["value","size","border","disabled","style"]))),128))],2))]),_:1},16,["model-value","disabled","size","text-color","fill","onChange"])),[[u,e.unref(c)]])}}}),$o=De(Lo,[["__scopeId","data-v-a91459c7"]]),Oo=["default","button"],Uo=["row","column"],qo={modelValue:{type:Array,default:void 0},localdata:{type:[Array,Function],default:()=>[]},disabled:{type:Boolean,default:!1},size:{type:String,values:qe,default:""},min:{type:Number,default:void 0},max:{type:Number,default:void 0},textColor:{type:String,default:""},fill:{type:String,default:""},optionType:{type:[String,Number],values:Oo,default:"default"},border:{type:Boolean,default:!1},itemWidth:{type:Number,default:void 0},action:{type:[String,Function],default:void 0},actionData:{type:[Object,Function],default:()=>({})},encryptAction:{type:Boolean,default:!1},props:{type:Object,default:()=>({list:"list",value:"value",label:"label"})},dataPreprocess:{type:Function,default:void 0},isRequest:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:void 0},requestMethod:{type:String,default:void 0},direction:{type:String,values:Uo,default:"row"},columnMargin:{type:[String,Number],default:20}},jo={"update:modelValue":t=>!0,change:(t,s)=>!0},Wo=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=e.ref([]),i=e.ref(0),c=e.computed(()=>{const w=t.localdata;return typeof w=="function"?w():w}),k=e.computed(()=>{const w=g.value,C=c.value;return a.pubfn.isNotNull(w)?w:C}),T=e.computed(()=>Array.isArray(t.modelValue)?t.modelValue:[]),v=e.computed(()=>Object.assign({value:"value",label:"label"},t.props||{})),N=e.computed(()=>{const w=t.actionData;return typeof w=="object"&&w!==null?w:typeof w=="function"?w():{}}),y=w=>{const C={};return t.itemWidth&&(C.minWidth=a.pubfn.addUnit(t.itemWidth)),t.direction==="column"&&(C.marginTop=w>0?a.pubfn.addUnit(t.columnMargin):"9px"),C},r=w=>{const C=k.value,u=v.value,l=[];return(w||[]).forEach(d=>{l.push(a.pubfn.getListItem(C,u.value,d))}),l},m=()=>{const{action:w,props:C,actionData:u,requestHeader:l,requestMethod:d,encryptAction:o,dataPreprocess:p}=t,E=++i.value;if(f.value=!1,Array.isArray(t.modelValue)||s("update:modelValue",[]),!w)return;const n=C.list||"list";f.value=!0;let _={};typeof u=="object"&&u!==null?_=a.pubfn.copyObject(u):typeof u=="function"&&(_=u()),(typeof w=="function"?w:t.isRequest?a.request:a.callFunction)({url:w,header:l,method:d,data:_,encrypt:o,success:R=>{if(E===i.value){let q=a.pubfn.getData(R,n);typeof p=="function"&&(q=p(q)),g.value=q}},complete:()=>{E===i.value&&(f.value=!1)}})},h=w=>{const C=r(w)||[];s("change",w,C)};return e.onMounted(()=>{m()}),e.onBeforeUnmount(()=>{i.value++}),e.watch(()=>N.value,(w,C)=>{JSON.stringify(w)!==JSON.stringify(C)&&m()},{deep:!0}),{vc:a,loading:f,dataCom:k,valueCom:T,propsCom:v,itemStyleCom:y,getOption:r,init:m,handleChange:h}},Ko={key:0,class:"vc-contents"},Ho={key:0,class:"column-tips"},xo=e.defineComponent({name:"vc-data-input-checkbox",__name:"data-input-checkbox",props:qo,emits:jo,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,loading:c,dataCom:k,valueCom:T,propsCom:v,itemStyleCom:N,getOption:y,init:r,handleChange:m}=Wo(f,g);return s({init:r,getOption:y}),(h,w)=>{const C=e.resolveComponent("el-checkbox-button"),u=e.resolveComponent("el-checkbox"),l=e.resolveComponent("el-checkbox-group"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createBlock(l,e.mergeProps({"model-value":e.unref(T),disabled:h.disabled,size:e.unref(i).pubfn.elementUtil.getComponentSize(h.size),min:h.min,max:h.max,"text-color":h.textColor,fill:h.fill},h.$attrs,{"onUpdate:modelValue":w[0]||(w[0]=o=>g("update:modelValue",o)),onChange:e.unref(m)}),{default:e.withCtx(()=>[h.optionType==="button"?(e.openBlock(),e.createElementBlock("view",Ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(o,p)=>(e.openBlock(),e.createBlock(C,{key:p,value:o[e.unref(v).value],disabled:o.disabled,style:e.normalizeStyle(e.unref(N)(p))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o[e.unref(v).label]),1)]),_:2},1032,["value","disabled","style"]))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(`direction-${h.direction}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(o,p)=>(e.openBlock(),e.createBlock(u,{key:p,value:o[e.unref(v).value],border:h.border,disabled:o.disabled,style:e.normalizeStyle(e.unref(N)(p))},{default:e.withCtx(()=>[e.createElementVNode("view",null,e.toDisplayString(o[e.unref(v).label]),1),h.direction==="column"&&o.tips?(e.openBlock(),e.createElementBlock("view",Ho,e.toDisplayString(o.tips),1)):e.createCommentVNode("",!0)]),_:2},1032,["value","border","disabled","style"]))),128))],2))]),_:1},16,["model-value","disabled","size","min","max","text-color","fill","onChange"])),[[d,e.unref(c)]])}}}),Yo=De(xo,[["__scopeId","data-v-55f30af4"]]),Jo=["switch","checkbox"],Go={modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},trueValue:{type:[String,Number],default:""},falseValue:{type:[String,Number],default:""},activeColor:{type:String,default:"#13ce66"},inactiveColor:{type:String,default:"#ff4949"},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},inlinePrompt:{type:Boolean,default:!1},switchType:{type:String,values:Jo,default:"switch"},label:{type:String,default:""}},Qo={"update:modelValue":t=>!0,input:t=>!0,change:t=>!0},Xo=(t,s)=>({handleInput:c=>{s("update:modelValue",c),s("input",c)},handleChange:c=>{s("change",c)},handleCheckboxInput:c=>{const k=c?t.activeValue:t.inactiveValue;s("update:modelValue",k),s("input",k)},handleCheckboxChange:c=>{s("change",c?t.activeValue:t.inactiveValue)}}),Zo=t=>({switchStyleCom:e.computed(()=>{const a={};if(t.activeColor&&(a["--el-switch-on-color"]=t.activeColor),t.inactiveColor&&(a["--el-switch-off-color"]=t.inactiveColor),!t.inlinePrompt)return a;const f=typeof t.activeText=="string"?t.activeText.length:0,g=typeof t.inactiveText=="string"?t.inactiveText.length:0,i=Math.max(f,g);if(i===0)return a;const c=Math.max(Number(t.width)||0,i===1?45:60),k=i===1?22:20;return a["--switch-width"]=`${c}px`,a["--switch-left"]=`${k}px`,a})}),ea={class:"vc-data-input-switch"},ta=e.defineComponent({name:"vc-data-input-switch",__name:"data-input-switch",props:Go,emits:Qo,setup(t,{emit:s}){const a=t,f=s,{handleInput:g,handleChange:i,handleCheckboxInput:c,handleCheckboxChange:k}=Xo(a,f),{switchStyleCom:T}=Zo(a);return(v,N)=>{const y=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-switch");return e.openBlock(),e.createElementBlock("view",ea,[v.switchType==="checkbox"?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0},v.$attrs,{"model-value":v.modelValue===v.activeValue,disabled:v.disabled,size:v.size,name:v.name,"onUpdate:modelValue":e.unref(c),onChange:e.unref(k)}),{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(v.label),1)],!0)]),_:3},16,["model-value","disabled","size","name","onUpdate:modelValue","onChange"])):(e.openBlock(),e.createBlock(r,e.mergeProps({key:1},v.$attrs,{class:v.inlinePrompt&&e.unref(T)?"inline-prompt":"",style:e.unref(T),"model-value":v.modelValue,disabled:v.disabled,size:v.size,width:v.vc.pubfn.addUnit(v.width),"active-text":v.activeText,"inactive-text":v.inactiveText,"active-value":v.activeValue,"inactive-value":v.inactiveValue,name:v.name,"validate-event":v.validateEvent,"onUpdate:modelValue":e.unref(g),onChange:e.unref(i)}),null,16,["class","style","model-value","disabled","size","width","active-text","inactive-text","active-value","inactive-value","name","validate-event","onUpdate:modelValue","onChange"]))])}}}),na=De(ta,[["__scopeId","data-v-bcc0e543"]]),oa={modelValue:{type:[Array,String,Number],default:void 0},localdata:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})},action:{type:[String,Function],default:""},actionData:{type:[Object,Function],default:()=>({})},encryptAction:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},showAllLevels:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},separator:{type:String,default:" / "},filterMethod:{type:Function,default:void 0},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:void 0},popperClass:{type:String,default:""},multiple:{type:Boolean,default:!1},isRequest:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:!1},requestMethod:{type:String,default:""}},aa={"update:modelValue":t=>!0,change:(t,s)=>!0,clear:t=>!0,blur:t=>!0,focus:t=>!0,"visible-change":t=>!0},ca=(t,s)=>{const a=uni.vc||{},f=e.ref(null),g=e.ref(!1),i=e.ref({}),c=e.ref(0),k=e.ref(0),T=e.computed(()=>{const n=t.actionData;return typeof n=="object"&&n!==null?n:typeof n=="function"?n():{}}),v=e.computed(()=>{const n=t.localdata,_=i.value,V=t.action,R=t.props||{},q=R.list===void 0?"rows":R.list,I=typeof n=="function"?n():n;let B=[];return V?B=_[q]:B=I,B&&B.length>0&&B.forEach(P=>r(P)),B}),N=e.computed(()=>{const n=t.props||{},_={multiple:t.multiple,...n};return _.lazy&&typeof _.lazyLoad!="function"&&(_.lazyLoad=(V,R)=>{const q=c.value,I=t.action,B={...T.value};B.node={root:V.root,value:V.value,level:V.level,data:V.data,path:V.path,pathLabels:V.pathLabels};const P=typeof I=="function"?I:t.isRequest?a.request:a.callFunction,Q=n.list===void 0?"list":n.list;P({url:I,header:t.requestHeader,method:t.requestMethod,data:B,encrypt:t.encryptAction,success:z=>{q===c.value&&R(z[Q])},complete:()=>{}})}),_}),y=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),r=n=>{var R,q;const V=(t.props||{}).children||"children";(q=(R=a.pubfn)==null?void 0:R.isNull)!=null&&q.call(R,n[V])?delete n[V]:n[V]&&n[V].forEach(I=>r(I))},m=()=>{var P;const{action:n,isRequest:_,requestHeader:V,requestMethod:R,encryptAction:q}=t;if((P=t.props)!=null&&P.lazy||!n)return;const I=++c.value;g.value=!0,(typeof n=="function"?n:_?a.request:a.callFunction)({url:n,header:V,method:R,data:T.value,encrypt:q,success:Q=>{I===c.value&&(i.value=Q)},complete:()=>{I===c.value&&(g.value=!1)}})},h=n=>{var V,R,q;let _;try{const I=!N.value.checkStrictly,B=(R=(V=f.value)==null?void 0:V.getCheckedNodes)==null?void 0:R.call(V,I);B&&B.length>0&&(_=t.multiple?B.map(P=>P.data):(q=B[0])==null?void 0:q.data)}catch{}return _},w=n=>{s("update:modelValue",n)},C=n=>{let _=h();_===void 0&&(_=t.multiple?[]:{}),s("change",n,_)},u=()=>{s("clear")},l=()=>{s("blur",t.modelValue)},d=()=>{s("focus",t.modelValue)},o=n=>{s("visible-change",n)};e.onMounted(()=>{m()}),e.onBeforeUnmount(()=>{c.value++}),e.watch(()=>T.value,()=>{var n;(n=t.props)!=null&&n.lazy?(c.value++,k.value++,g.value=!1):m()},{deep:!0});let p=null;const E=()=>{p&&(p.close(),p=null)};return e.watch(g,n=>{if(E(),!n)return;const _=f.value;let V=(_==null?void 0:_.$el)||null;!V||V.nodeType!==1||(V.classList.contains("el-cascader")||(V=V.querySelector(".el-cascader")||V),p=Ue.ElLoading.service({target:V}))}),e.getCurrentInstance()&&e.onBeforeUnmount(E),{vc:a,cascaderRef:f,treeVersion:k,localdataCom:v,propsCom:N,customStyle:y,init:m,getOption:h,handleModelUpdate:w,handleChange:C,handleClear:u,handleBlur:l,handleFocus:d,handleVisibleChange:o}},ra=e.defineComponent({name:"vc-data-input-cascader",inheritAttrs:!1,__name:"data-input-cascader",props:oa,emits:aa,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,cascaderRef:c,treeVersion:k,localdataCom:T,propsCom:v,customStyle:N,init:y,getOption:r,handleModelUpdate:m,handleChange:h,handleClear:w,handleBlur:C,handleFocus:u,handleVisibleChange:l}=ca(f,g);return s({init:y,getOption:r,onChange:()=>h(),onClear:()=>w(),onBlur:()=>C(),onFocus:()=>u()}),(d,o)=>{const p=e.resolveComponent("el-cascader");return e.openBlock(),e.createBlock(p,e.mergeProps({ref_key:"cascaderRef",ref:c,key:e.unref(k)},d.$attrs,{"model-value":d.modelValue,options:e.unref(T),size:e.unref(i).pubfn.elementUtil.getComponentSize(d.size),style:e.unref(N),props:e.unref(v),placeholder:d.placeholder,disabled:d.disabled,clearable:d.clearable,filterable:d.filterable,"show-all-levels":d.showAllLevels,"collapse-tags":d.collapseTags,separator:d.separator,"filter-method":d.filterMethod,debounce:d.debounce,"before-filter":d.beforeFilter,"popper-class":d.popperClass,"onUpdate:modelValue":e.unref(m),onChange:e.unref(h),onBlur:e.unref(C),onFocus:e.unref(u),onClear:e.unref(w),onVisibleChange:e.unref(l)}),null,16,["model-value","options","size","style","props","placeholder","disabled","clearable","filterable","show-all-levels","collapse-tags","separator","filter-method","debounce","before-filter","popper-class","onUpdate:modelValue","onChange","onBlur","onFocus","onClear","onVisibleChange"])}}}),da={modelValue:{type:[String,Number,Date,Array],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:""},type:{type:String,default:"date"},format:{type:String,default:""},pickerOptions:{type:Object,default:{}},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},defaultValue:{type:Object,default:void 0},defaultTime:{type:Object,default:void 0},valueFormat:{type:String,default:"x"}},la={"update:modelValue":t=>!0,change:t=>!0,blur:t=>!0,focus:t=>!0},ia=(t,s)=>{const a=uni.vc||{},f={"el.datepicker.selectDate":"选择日期","el.datepicker.startDate":"开始日期","el.datepicker.endDate":"结束日期"},g=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),i=e.computed(()=>{if(t.format)return t.format;switch(t.type){case"year":return"YYYY";case"month":return"YYYY-MM";case"date":return"YYYY-MM-DD";case"dates":return"YYYY-MM-DD";case"week":return"YYYY 第 ww 周";case"datetime":return"YYYY-MM-DD HH:mm:ss";case"datetimerange":return"YYYY-MM-DD HH:mm:ss";case"daterange":return"YYYY-MM-DD";case"monthrange":return"YYYY-MM";default:return"YYYY-MM-DD"}}),c=e.computed(()=>{if(t.defaultTime!==void 0)return t.defaultTime;if(["datetimerange"].indexOf(t.type)>-1)return[new Date(2e3,0,1,0,0,0),new Date(2e3,0,1,23,59,59)]}),k=e.computed(()=>{const r=t.pickerOptions;if(r&&r.shortcuts&&r.shortcuts.length)return r.shortcuts;const m=a.pubfn&&a.pubfn.getDatePickerShortcuts;return typeof m=="function"?m(t.type):[]});return{vc:a,language:f,shortcuts:k,customStyle:g,formatCom:i,defaultTimeCom:c,handleInput:r=>{s("update:modelValue",r)},handleChange:r=>{s("change",r)},handleBlur:r=>{s("blur",r)},handleFocus:r=>{s("focus",r)}}},sa={class:"vc-data-input-date-time"},ua=e.defineComponent({name:"vc-data-input-date-time",__name:"data-input-date-time",props:da,emits:la,setup(t,{emit:s}){const a=t,f=s,{vc:g,language:i,shortcuts:c,customStyle:k,formatCom:T,defaultTimeCom:v,handleInput:N,handleChange:y,handleBlur:r,handleFocus:m}=ia(a,f);return(h,w)=>{const C=e.resolveComponent("el-date-picker");return e.openBlock(),e.createElementBlock("view",sa,[e.createVNode(C,e.mergeProps(h.$attrs,{"model-value":h.modelValue,type:h.type,placeholder:h.placeholder||e.unref(i)["el.datepicker.selectDate"],disabled:h.disabled,clearable:h.clearable,size:e.unref(g).pubfn.elementUtil.getComponentSize(h.size),style:e.unref(k),format:e.unref(T),"start-placeholder":h.startPlaceholder||e.unref(i)["el.datepicker.startDate"],"end-placeholder":h.endPlaceholder||e.unref(i)["el.datepicker.endDate"],"range-separator":h.rangeSeparator,"default-value":h.defaultValue,"value-format":h.valueFormat,"default-time":e.unref(v),shortcuts:e.unref(c),"onUpdate:modelValue":e.unref(N),onChange:e.unref(y),onBlur:e.unref(r),onFocus:e.unref(m)}),null,16,["model-value","type","placeholder","disabled","clearable","size","style","format","start-placeholder","end-placeholder","range-separator","default-value","value-format","default-time","shortcuts","onUpdate:modelValue","onChange","onBlur","onFocus"])])}}}),ma=De(ua,[["__scopeId","data-v-d24d0c76"]]),pa={modelValue:{type:[String,Array,Date],default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:""},format:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},defaultValue:{type:[Date,Array],default:void 0},valueFormat:{type:String,default:"HH:mm:ss"},isRange:{type:Boolean,default:!1},custom:{type:Boolean,default:!1}},fa={"update:modelValue":t=>!0,change:t=>!0,blur:t=>!0,focus:t=>!0},ha=(t,s)=>{const a=uni.vc||{},f=e.computed(()=>t.placeholder||"选择时间"),g=e.computed(()=>t.startPlaceholder||"开始时间"),i=e.computed(()=>t.endPlaceholder||"结束时间"),c=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{});return{vc:a,placeholderCom:f,startPlaceholderCom:g,endPlaceholderCom:i,customStyle:c,handleInput:y=>{s("update:modelValue",y)},handleChange:y=>{s("change",y)},handleBlur:y=>{s("blur",y)},handleFocus:y=>{s("focus",y)}}},_a={class:"vc-data-input-time"},ya=e.defineComponent({name:"vc-data-input-time",__name:"data-input-time",props:pa,emits:fa,setup(t,{emit:s}){const a=t,f=s,{vc:g,customStyle:i,handleInput:c,handleChange:k,handleBlur:T,handleFocus:v}=ha(a,f);return(N,y)=>{const r=e.resolveComponent("el-time-select"),m=e.resolveComponent("el-time-picker");return e.openBlock(),e.createElementBlock("view",_a,[N.custom?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0},N.$attrs,{"model-value":N.modelValue,placeholder:N.placeholder||"选择时间",disabled:N.disabled,clearable:N.clearable,size:e.unref(g).pubfn.elementUtil.getComponentSize(N.size),style:e.unref(i),"onUpdate:modelValue":e.unref(c),onChange:e.unref(k),onBlur:e.unref(T),onFocus:e.unref(v)}),null,16,["model-value","placeholder","disabled","clearable","size","style","onUpdate:modelValue","onChange","onBlur","onFocus"])):(e.openBlock(),e.createBlock(m,e.mergeProps({key:1},N.$attrs,{"model-value":N.modelValue,placeholder:N.placeholder||"选择时间",disabled:N.disabled,clearable:N.clearable,size:e.unref(g).pubfn.elementUtil.getComponentSize(N.size),style:e.unref(i),"start-placeholder":N.startPlaceholder||"开始时间","end-placeholder":N.endPlaceholder||"结束时间","range-separator":N.rangeSeparator,"default-value":N.defaultValue,format:N.format||void 0,"value-format":N.valueFormat,"is-range":N.isRange,"onUpdate:modelValue":e.unref(c),onChange:e.unref(k),onBlur:e.unref(T),onFocus:e.unref(v)}),null,16,["model-value","placeholder","disabled","clearable","size","style","start-placeholder","end-placeholder","range-separator","default-value","format","value-format","is-range","onUpdate:modelValue","onChange","onBlur","onFocus"]))])}}}),va=De(ya,[["__scopeId","data-v-ef721ea8"]]),ga=(t,s)=>{const a=uni.vc||{},f=e.ref(null),g=e.ref([]),i=e.reactive({show:!1,value:""}),c=e.reactive({}),k=e.reactive({}),T=e.computed(()=>!!(t.modelValue&&t.modelValue.length>=t.limit)),v=e.computed(()=>t.addButtonText||"添加"),N=d=>a.pubfn&&typeof a.pubfn.isNull=="function"?a.pubfn.isNull(d):d===""||d===null||d===void 0,y=d=>{s("update:modelValue",d),s("change",d)},r=()=>{Object.keys(c).forEach(d=>{delete c[Number(d)]}),Object.keys(k).forEach(d=>{delete k[Number(d)]})},m=d=>{if(t.disabled||!t.closable)return;r();const o=[...t.modelValue];o.splice(d,1),y(o)},h=()=>{t.disabled||!t.showAdd||T.value||i.show||(i.value="",i.show=!0,e.nextTick(()=>{var d,o;i.show&&!t.disabled&&((o=(d=f.value)==null?void 0:d.focus)==null||o.call(d))}))},w=()=>{if(!i.show)return;const d=i.value;if(i.show=!1,i.value="",t.disabled||T.value||N(d))return;const o=[...t.modelValue];o.push(d),y(o)},C=d=>{t.disabled||(k[d]=t.modelValue[d],c[d]=!0,e.nextTick(()=>{var o,p;c[d]&&!t.disabled&&((p=(o=g.value[d])==null?void 0:o.focus)==null||p.call(o))}))},u=d=>{if(!c[d])return;const o=k[d];if(c[d]=!1,delete k[d],t.disabled||d>=t.modelValue.length||t.modelValue[d]===o)return;const p=[...t.modelValue];p[d]=o,y(p)},l=(d,o)=>{k[d]=o};return e.watch(()=>t.disabled,d=>{d&&(i.show=!1,i.value="",r())}),e.watch(()=>t.modelValue,()=>{r()}),{vc:a,add:i,updateShow:c,updateValues:k,isMax:T,addButtonTextCom:v,saveTagInput:f,updateTagInputs:g,handleClose:m,showAddInput:h,handleAddInputConfirm:w,showUpdateInput:C,handleUpdateInputConfirm:u,handleUpdateValue:l}},ba=["text","number","money","percentage","discount"],ka={modelValue:{type:Array,default:()=>[]},limit:{type:Number,default:1e8},inputType:{type:String,values:ba,default:"text"},inputWidth:{type:[Number,String],default:90},size:{type:String,values:qe,default:"small"},precision:{type:Number,default:2},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},showAdd:{type:Boolean,default:!0},addButtonText:{type:String,default:void 0},maxlength:{type:Number,default:void 0},min:{type:Number,default:void 0},max:{type:Number,default:void 0},placeholder:{type:String,default:""}},wa={"update:modelValue":t=>!0,change:t=>!0},Ca={class:"vc-data-input-tag"},Ba={key:0},Sa={key:1},Va={key:2},Na={key:3},Ta=e.defineComponent({name:"vc-data-input-tag",__name:"data-input-tag",props:ka,emits:wa,setup(t,{emit:s}){const a=t,f=s,{vc:g,add:i,updateShow:c,updateValues:k,isMax:T,addButtonTextCom:v,saveTagInput:N,updateTagInputs:y,handleClose:r,showAddInput:m,handleAddInputConfirm:h,showUpdateInput:w,handleUpdateInputConfirm:C,handleUpdateValue:u}=ga(a,f);return(l,d)=>{const o=e.resolveComponent("vc-data-input-numeric"),p=e.resolveComponent("vc-data-icon"),E=e.resolveComponent("el-tag"),n=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("view",Ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.modelValue,(_,V)=>(e.openBlock(),e.createElementBlock("view",{class:"vc-contents",key:V},[e.unref(c)[V]?(e.openBlock(),e.createBlock(o,{key:0,ref_for:!0,ref:R=>{R&&(e.unref(y)[V]=R)},class:"input-update-tag","model-value":e.unref(k)[V],mode:l.inputType,width:l.inputWidth,size:l.size,maxlength:l.maxlength,min:l.min,max:l.max,precision:l.precision,placeholder:l.placeholder,disabled:l.disabled,"onUpdate:modelValue":R=>e.unref(u)(V,R),onBlur:R=>e.unref(C)(V),onEnter:R=>e.unref(C)(V)},null,8,["model-value","mode","width","size","maxlength","min","max","precision","placeholder","disabled","onUpdate:modelValue","onBlur","onEnter"])):(e.openBlock(),e.createBlock(E,{key:1,class:"el-tag",closable:!l.disabled&&l.closable,"disable-transitions":!0,onClose:R=>e.unref(r)(V)},{default:e.withCtx(()=>[l.inputType==="money"?(e.openBlock(),e.createElementBlock("text",Ba,e.toDisplayString(e.unref(g).pubfn.priceFilter(_)),1)):l.inputType==="percentage"?(e.openBlock(),e.createElementBlock("text",Sa,e.toDisplayString(e.unref(g).pubfn.percentageFilter(_)),1)):l.inputType==="discount"?(e.openBlock(),e.createElementBlock("text",Va,e.toDisplayString(e.unref(g).pubfn.discountFilter(_)),1)):(e.openBlock(),e.createElementBlock("text",Na,e.toDisplayString(_),1)),l.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{key:4,name:"Edit",size:12,style:{"margin-left":"10px",cursor:"pointer"},onClick:R=>e.unref(w)(V)},null,8,["onClick"]))]),_:2},1032,["closable","onClose"]))]))),128)),e.unref(i).show?(e.openBlock(),e.createBlock(o,{key:0,ref_key:"saveTagInput",ref:N,class:"input-new-tag",modelValue:e.unref(i).value,"onUpdate:modelValue":d[0]||(d[0]=_=>e.unref(i).value=_),mode:l.inputType,width:l.inputWidth,size:l.size,maxlength:l.maxlength,min:l.min,max:l.max,precision:l.precision,placeholder:l.placeholder,disabled:l.disabled,onBlur:e.unref(h),onEnter:e.unref(h)},null,8,["modelValue","mode","width","size","maxlength","min","max","precision","placeholder","disabled","onBlur","onEnter"])):!e.unref(T)&&!l.disabled&&l.showAdd?(e.openBlock(),e.createBlock(n,{key:1,class:"button-new-tag",size:l.size,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(" + "+e.toDisplayString(e.unref(v)),1)]),_:1},8,["size","onClick"])):e.createCommentVNode("",!0)])}}}),Ea=De(Ta,[["__scopeId","data-v-75e4affa"]]),za={modelValue:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},action:{type:[String,Function],default:""},beforeAction:{type:Function,default:void 0},encryptAction:{type:Boolean,default:!1},isRequest:{type:Boolean,default:!1},requestHeader:{type:Object,default:()=>({})},formType:{type:String,default:""},columns:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"80px"},inputWidth:{type:[String,Number],default:""},footerShow:{type:Boolean,default:!0},footerCenter:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:""},submitText:{type:String,default:""},submitDisabled:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},autoReset:{type:Boolean,default:!0},labelPosition:{type:String,default:"right"},maxHeight:{type:[String,Number],default:""},size:{type:String,values:qe,default:""},labelSuffix:{type:String,default:""},hideRequiredAsterisk:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},statusIcon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},columnsNumber:{type:Number,default:2},width:{type:[String,Number],default:"100%"},as:{type:String,default:""},isTableForm:{type:Boolean,default:!1},successMsg:{type:String,default:""},needAlert:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0}},Da={"update:modelValue":t=>!0,submit:t=>!0,cancel:()=>!0,success:t=>!0,fail:t=>!0,complete:t=>!0,loading:t=>!0,"update:loading":t=>!0,validate:(...t)=>!0,reset:()=>!0},Fa=(t,s)=>{const a=uni.vc||{},f=e.ref(),g=e.inject("vc-data-dialog",null),i=e.ref(null),c=e.ref({}),k=e.ref(!1),T={close:"关 闭",submit:"确 定",success:"操作成功!",cannotBeEmpty:"不能为空"},v=e.computed({get:()=>t.modelValue??{},set:z=>{s("update:modelValue",z)}}),N=e.computed(()=>{let z=!0;return i.value&&typeof i.value.isShow=="boolean"&&i.value.destroyOnClose&&(z=i.value.isShow),z}),y=e.computed(()=>{const z=t.width||t.inputWidth,$=a.getPinia("$app.isPC")??!0;return z&&$?a.pubfn.addUnit(z):"100%"}),r=e.computed(()=>{const z=t.labelWidth;return typeof z=="number"?`${z}px`:typeof z=="string"&&z!==""&&!isNaN(Number(z))?`${Number(z)}px`:z}),m=e.computed(()=>i.value&&typeof i.value.center=="boolean"?i.value.center:t.footerCenter),h=e.computed(()=>{const z=a.pubfn.deepClone(t.rules||{}),$=t.columns;for(const x of $)x.required&&x.key&&(z[x.key]||(z[x.key]=[]),Array.isArray(z[x.key])||(z[x.key]=[z[x.key]]),z[x.key].some(re=>re.required)||z[x.key].push({required:!0,message:`${x.title||x.key} ${T.cannotBeEmpty}`,trigger:["blur","change"]}));return z}),w=e.computed(()=>a.pubfn.deepClone(t.columns||[]).map($=>(($.showLabel===!1||$.type==="group")&&($.title="",$.labelWidth=0),$))),C=e.computed(()=>{const z={};if(t.maxHeight)z.maxHeight=typeof t.maxHeight=="number"?`${t.maxHeight}px`:String(t.maxHeight);else if(i.value){let $=i.value.top||"5vh";!!e.unref(i.value.isFullscreen)&&($="0"),z.maxHeight=`calc(100vh - ${$} - 150px)`}return z.height="calc(100% - 15px)",z}),u=(z,$)=>{for(const x of z){if($[x.key]===void 0&&x.type==="checkbox"&&($[x.key]=[]),x.type==="object"){const L=$[x.key]||{};$[x.key]=u(x.columns||[],L)}x.type==="group"&&u(x.columns||[],$)}return $},l=()=>{let z={...v.value||{}};t.columns&&t.columns.length>0&&(z=u(t.columns,z));const $=Object.keys(v.value||{});return Object.keys(z).length>$.length&&s("update:modelValue",z),k.value=!1,s("loading",!1),z},d=()=>{i.value=g;const z=l();c.value=a.pubfn.deepClone(z)},o=(...z)=>{var $;return($=f.value)==null?void 0:$.validate(...z)},p=(...z)=>{var $;($=f.value)==null||$.validateField(...z)},E=()=>{var z;(z=f.value)==null||z.clearValidate()},n=()=>{var $,x;const z=a.pubfn.deepClone(c.value);s("update:modelValue",z),(x=($=f.value)==null?void 0:$.resetFields)==null||x.call($)},_=z=>{c.value=a.pubfn.deepClone(z)},V=z=>{s("update:modelValue",a.pubfn.deepClone(z)),_(z)},R=z=>{const{data:$,success:x,fail:L,complete:re}=z||{},{action:ne,formType:de,beforeAction:he,as:A,requestHeader:M,needAlert:O}=t,K=v.value,se=t;(async()=>{var Se;let fe=a.pubfn.copyObject(K||{});if(typeof he=="function"){const Ce=await he(K);if(Ce===!1)return!1;typeof Ce=="object"&&Ce!==null&&(fe=a.pubfn.objectAssign(fe,Ce))}typeof $=="object"&&$!==null&&(fe=a.pubfn.objectAssign(fe,$));let ge={};a.pubfn.isNotNull(A)?a.pubfn.setData(ge,A,fe):ge=fe,(Se=f.value)==null||Se.validate(Ce=>{if(!Ce)return;k.value=!0,s("loading",!0),s("update:loading",!0),(typeof ne=="function"?ne:se.isRequest?a.request:a.callFunction)({url:ne,data:ge,needAlert:O,header:M,encrypt:t.encryptAction,success:Ve=>{Ue.ElNotification({message:t.successMsg||T.success,type:"success"}),t.autoClose&&I({beforeClose:!1}),typeof x=="function"&&x(Ve),s("success",{data:Ve,formType:de})},fail:Ve=>{typeof L=="function"&&L(Ve),s("fail",{data:Ve,formType:de})},complete:Ve=>{setTimeout(()=>{k.value=!1,s("loading",!1),s("update:loading",!1)},300),typeof re=="function"&&re(Ve),s("complete",{data:Ve,formType:de})}})})})()},q=()=>{I(),s("cancel")},I=z=>{i.value&&typeof i.value.close=="function"&&i.value.close(z)},B=z=>{let $="";return t.inline&&(["object","textarea","json"].includes(z.type||"")||($=`width: calc(100% / ${t.columnsNumber} - 10px * (${t.columnsNumber} - 1));`),z.oneLine&&($="width: calc(100% - 10px);")),(z.type==="object"&&z.showErrMsg===!1||["object","group"].includes(z.type||"")&&z.marginBottom===!1)&&($+="margin-bottom: 0;"),$},P=(z,$,x,...L)=>{if(typeof $.onChange=="function"){const re=v.value;$.onChange(z,re,$,x,...L)}},Q=(...z)=>{s("validate",...z)};return e.watch(()=>{var z;return(z=i.value)==null?void 0:z.isShow},z=>{z===!1&&E()}),e.watch(()=>t.modelValue,()=>{l()}),d(),{vc:a,formRef:f,originalForm:c,formLoading:k,language:T,formValue:v,showCom:N,widthCom:y,labelWidthCom:r,footerCenterCom:m,rulesCom:h,columnsCom:w,formStyleCom:C,init:d,_initValue:l,validate:o,validateField:p,clearValidate:E,resetForm:n,setResetFormData:_,setFormData:V,submitForm:R,cancelForm:q,closeDialog:I,getItemStyle:B,onChange:P,_validate:Q}},Ia={key:0,class:"vc-contents"},Aa={key:0},Ma={key:0,class:"bar-title"},Pa=e.defineComponent({name:"vc-data-form",__name:"data-form",props:za,emits:Da,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,formRef:c,formLoading:k,language:T,formValue:v,showCom:N,widthCom:y,labelWidthCom:r,footerCenterCom:m,rulesCom:h,columnsCom:w,formStyleCom:C,validate:u,validateField:l,clearValidate:d,resetForm:o,submitForm:p,cancelForm:E,setResetFormData:n,setFormData:_,getItemStyle:V,onChange:R,_validate:q}=Fa(f,g);return s({validate:u,validateField:l,resetForm:o,clearValidate:d,submitForm:p,cancelForm:E,setFormData:_,setResetFormData:n,getFormRef:()=>c.value}),(I,B)=>{const P=e.resolveComponent("vc-data-form-item"),Q=e.resolveComponent("vc-data-tips"),z=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-form"),x=e.resolveComponent("el-button");return e.unref(N)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"vc-data-form",style:e.normalizeStyle(`width: ${e.unref(y)}`)},[e.createVNode($,{ref_key:"formRef",ref:c,class:e.normalizeClass(["admin-form dialog-form",I.inline?"form-inline":""]),style:e.normalizeStyle(e.unref(C)),model:e.unref(v),rules:e.unref(h),"label-width":e.unref(r),"label-position":I.labelPosition,"label-suffix":I.labelSuffix,size:e.unref(i).pubfn.elementUtil.getComponentSize(I.size),inline:I.inline,disabled:I.disabled,"hide-required-asterisk":I.hideRequiredAsterisk,"show-message":I.showMessage,"inline-message":I.inlineMessage,"status-icon":I.statusIcon,"validate-on-rule-change":I.validateOnRuleChange,onsubmit:"return false",onValidate:e.unref(q)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(L,re)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:L.key},[e.unref(i).pubfn.itemDisplay(L,e.unref(v),I.formType)?(e.openBlock(),e.createElementBlock("view",Ia,[L.type&&L.type.indexOf("bar-")===0?(e.openBlock(),e.createElementBlock("view",Aa,[e.renderSlot(I.$slots,L.key,{val:e.unref(v)[L.key],form:e.unref(v),keyName:L.key},()=>[L.type==="bar-title"?(e.openBlock(),e.createElementBlock("view",Ma,e.toDisplayString(L.title),1)):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(z,{key:1,label:L.showLabel!==!1?L.title:"",prop:L.key,"label-width":L.labelWidth!=null?`${L.labelWidth}px`:void 0,"show-message":L.showMessage,"inline-message":L.inlineMessage,required:L.required,rules:L.rules,style:e.normalizeStyle(e.unref(V)(L))},{default:e.withCtx(()=>[I.$slots[L.key]?e.renderSlot(I.$slots,L.key,{val:e.unref(v)[L.key],form:e.unref(v),keyName:L.key,labelWidth:I.labelWidth,column:L},void 0,void 0,0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(P,{modelValue:e.unref(v),"onUpdate:modelValue":B[0]||(B[0]=ne=>e.isRef(v)?v.value=ne:null),item:L,"form-type":I.formType,"input-width":I.inputWidth,"is-table-form":I.isTableForm,clearable:L.clearable||I.clearable,disabled:e.unref(i).pubfn.itemDisabled(L,e.unref(v),I.formType),size:I.size,index:re,onChange:(ne,...de)=>e.unref(R)(ne,L,re,...de)},null,8,["modelValue","item","form-type","input-width","is-table-form","clearable","disabled","size","index","onChange"]),L.tips?(e.openBlock(),e.createBlock(Q,{key:0,tips:L.tips,"custom-style":L.tipsStyle},null,8,["tips","custom-style"])):e.createCommentVNode("",!0)],64))]),_:2},1032,["label","prop","label-width","show-message","inline-message","required","rules","style"]))])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(I.$slots,"default")]),_:3},8,["class","style","model","rules","label-width","label-position","label-suffix","size","inline","disabled","hide-required-asterisk","show-message","inline-message","status-icon","validate-on-rule-change","onValidate"]),I.footerShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["dialog-footer",{center:e.unref(m)}])},[e.renderSlot(I.$slots,"footer",{loading:e.unref(k)},()=>[I.showCancel?(e.openBlock(),e.createBlock(x,{key:0,size:e.unref(i).pubfn.elementUtil.getComponentSize(I.size),onClick:e.unref(E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.cancelText||e.unref(T).close),1)]),_:1},8,["size","onClick"])):e.createCommentVNode("",!0),e.createVNode(x,{type:"primary","native-type":"button",size:e.unref(i).pubfn.elementUtil.getComponentSize(I.size),loading:e.unref(k),disabled:I.submitDisabled,onClick:B[1]||(B[1]=L=>e.unref(p)())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.submitText||e.unref(T).submit),1)]),_:1},8,["size","loading","disabled"])])],2)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)}}}),Ra={modelValue:{type:Object,default:{}},item:{type:Object,default:{}},formType:{type:String,default:""},parentKey:{type:String,default:""},size:{type:String,default:""},inputWidth:{type:[String,Number],default:""},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isTableForm:{type:Boolean,default:!1},index:{type:Number,default:0},language:{type:Object,default:()=>({})}},La={"update:modelValue":t=>!0,change:(t,s,a,f)=>!0},$a=(t,s)=>{const a=uni.vc||{},f=B=>{const P={};for(const Q of Object.keys(B)){const z=B[Q];z!==null&&typeof z=="object"&&!Array.isArray(z)?P[Q]={...z}:P[Q]=z}return P},g=(B,P)=>{if(P===null||typeof P!="object"||Array.isArray(P))return!1;const Q=Object.keys(B),z=Object.keys(P);return Q.length!==z.length?!1:Q.every($=>B[$]===P[$])},i=(B,P="trim")=>{if(typeof B=="string"&&B.length>0)switch(P){case"trim":return B.trim();case"removeAll":return B.replace(/\s/g,"");case"none":return B;default:return B.trim()}return B},c=!!t.parentKey&&!t.isTableForm,k=a.getPinia?a.getPinia("$app.isPC")??!0:!0,T=e.computed(()=>t.item.type==="datetimerange"?"datetimerange":t.item.dateType||"date"),v=e.computed(()=>{if(t.item.valueFormat)return t.item.valueFormat;if(t.item.type==="datetimerange")return"x";const B=t.item.dateType;return!B||B==="date"?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss"}),N=e.computed(()=>{const B=t.item.width?t.item.width:t.inputWidth||void 0;return k&&!t.isTableForm?typeof B=="number"?`${B}px`:B||"100%":"100%"});let y=c?t.modelValue:e.reactive(f(t.modelValue||{}));const r=e.computed(()=>c?t.modelValue||{}:y),m=e.computed({get:()=>r.value[t.item.key]||{},set:B=>{if(y[t.item.key]=B,c)s("update:modelValue",{...y});else{const P={...t.modelValue||{}};P[t.item.key]=B,s("update:modelValue",P)}}}),h=e.computed({get:()=>r.value,set:B=>{if(Object.assign(y,B),c)s("update:modelValue",{...y});else{const P={...t.modelValue||{}};for(const Q of t.item.columns||[])Q.key&&(P[Q.key]=y[Q.key]);s("update:modelValue",P)}}}),w=B=>{if(B&&B.indexOf(".")>-1)return B;const P=t.parentKey;return P?`${P}.${B}`:B},C=(B,P)=>{const Q=t.parentKey;return`${Q?`${Q}.${P}`:P}.${B}`},u=B=>{if(!B||!Array.isArray(B))return[];const P=a.pubfn.deepClone(B),Q=Math.floor(24/P.length);return P.map(z=>((z.showLabel===!1||z.type==="group")&&(z.title="",z.labelWidth=0),z.col||(z.col={}),z.col.span||(z.col.span=Q),z))},l=e.computed(()=>u(t.item.columns||[])),d=B=>{const P=B.style;return!P||typeof P!="object"?"":Object.entries(P).map(([Q,z])=>`${Q}: ${z}`).join("; ")},o=B=>{if(!B)return"";if(typeof B=="string"||typeof B=="number")return String(B);if(typeof B=="object"){const P=B;return String(P.label||P.text||P.name||"")}return""},p=B=>{if(B){if(typeof B=="string"||typeof B=="number"||typeof B=="boolean")return B;if(typeof B=="object"){const P=B;return P.value??P.id??P[Object.keys(P)[0]]}}},E=e.computed(()=>{const B=t.parentKey,P=t.item.key;return B?`${B}.${P}`:P}),n=B=>typeof B=="boolean"?B:t.clearable,_=B=>!!t.disabled||!!a.pubfn.itemDisabled(B,r.value,t.formType),V=B=>{if(y[t.item.key]=B,c)R(y[t.item.key]);else{const P={...t.modelValue||{}};P[t.item.key]=y[t.item.key],s("update:modelValue",P)}},R=(B,P,Q,z)=>{const x=(t.item.type==="text"||t.item.type==="textarea")&&a.pubfn.isString(B)?i(B,t.item.trimMode):B;if(typeof t.item.onChange=="function"){const de=y;t.item.onChange(x,de,t.item,t.index,P)}const L=t.modelValue,re={};if(L)for(const de of Object.keys(L)){const he=L[de];(typeof he!="object"||he===null||Array.isArray(he))&&(re[de]=he)}if(s("change",B,P,Q,z),L)for(const de of Object.keys(L)){const he=L[de];if(typeof he!="object"||he===null||Array.isArray(he)){const A=re[de];he!==A&&(y[de]=he)}}let ne=[];if(typeof t.item.watch=="function"){const de={...y},he={value:B,column:t.item,index:t.index,formData:y,$set:(A,M)=>{y[A]=M}};P&&(he.option=P),Q&&(he.value2=Q),z&&(he.option2=z),t.item.watch(he),ne=Object.keys(y).filter(A=>y[A]!==de[A])}if(y[t.item.key]=x,c)s("update:modelValue",{...y});else{const de={...t.modelValue||{}};de[t.item.key]=x;for(const he of ne)he!==t.item.key&&(de[he]=y[he]);s("update:modelValue",de)}},q=B=>{if(y[t.item.key]=B,c)s("update:modelValue",{...y});else{const P={...t.modelValue||{}};P[t.item.key]=B,s("update:modelValue",P)}},I=()=>{const B=y[t.item.key];if(B&&typeof B=="string")try{const P=JSON.parse(B);y[t.item.key]=JSON.stringify(P,null,2),R(y[t.item.key])}catch{}};return e.watch(()=>t.modelValue,B=>{if(!B)return;if(c&&B!==y){y=B;return}const P=B;for(const Q of Object.keys(P)){const z=P[Q],$=Q in y,x=y[Q];$?z!==null&&typeof z=="object"&&!Array.isArray(z)?z!==x&&!g(z,x)&&(y[Q]=f(z)):z!==x&&(y[Q]=z):y[Q]=z!==null&&typeof z=="object"&&!Array.isArray(z)?f(z):z}},{deep:!0}),{vc:a,value:r,isPC:k,widthCom:N,dateTypeCom:T,valueFormatCom:v,nestedValue:m,groupValue:h,isNested:c,groupColumns:l,formPropCom:E,parentKeyFn:w,propKeyFn:C,itemStyle:d,itemClearable:n,itemDisabled:_,onInputChange:V,onChange:R,onSubComponentUpdate:q,getOptionValue:p,getOptionLabel:o,onJsonBlur:I}},Oa={class:"vc-data-form-item"},Ua={class:"vc-form-bar-title"},qa={key:1},ja={key:24,class:"vc-contents"},Wa={style:{padding:"20px"}},Ka={class:"vc-form-text-view"},Ha=["innerHTML"],xa={class:"vc-form-money-view"},Ya={class:"vc-contents"},Ja={class:"vc-data-form-sub"},Ga={class:"vc-form-unsupported"},Qa=e.defineComponent({name:"vc-data-form-item",__name:"data-form-item",props:Ra,emits:La,setup(t,{emit:s}){const a=e.ref(!1),f=t,g=s,{vc:i,value:c,isPC:k,widthCom:T,dateTypeCom:v,valueFormatCom:N,nestedValue:y,groupValue:r,groupColumns:m,formPropCom:h,parentKeyFn:w,propKeyFn:C,itemStyle:u,itemClearable:l,itemDisabled:d,onInputChange:o,onChange:p,onSubComponentUpdate:E}=$a(f,g);return(n,_)=>{const V=e.resolveComponent("block"),R=e.resolveComponent("el-input"),q=e.resolveComponent("vc-data-input-select"),I=e.resolveComponent("vc-data-input-radio"),B=e.resolveComponent("vc-data-input-checkbox"),P=e.resolveComponent("vc-data-input-switch"),Q=e.resolveComponent("vc-data-input-date-time"),z=e.resolveComponent("vc-data-input-time"),$=e.resolveComponent("el-color-picker"),x=e.resolveComponent("el-slider"),L=e.resolveComponent("el-rate"),re=e.resolveComponent("vc-data-upload"),ne=e.resolveComponent("vc-data-input-cascader"),de=e.resolveComponent("vc-data-input-json"),he=e.resolveComponent("vc-data-input-table-select"),A=e.resolveComponent("vc-data-input-remote-select"),M=e.resolveComponent("vc-data-input-province"),O=e.resolveComponent("vc-data-input-number-box"),K=e.resolveComponent("vc-data-input-numeric"),se=e.resolveComponent("vc-data-input-address"),ae=e.resolveComponent("vc-data-input-tag"),fe=e.resolveComponent("vc-data-input-editor"),ge=e.resolveComponent("vc-data-input-tree-select"),Se=e.resolveComponent("vc-data-input-array"),Ce=e.resolveComponent("el-button"),Ne=e.resolveComponent("vc-data-input-array-object"),Ve=e.resolveComponent("vc-data-dialog"),ee=e.resolveComponent("vc-data-input-file-select"),H=e.resolveComponent("vc-data-input-icon"),J=e.resolveComponent("vc-data-form-item"),Y=e.resolveComponent("vc-data-tips"),me=e.resolveComponent("el-form-item"),G=e.resolveComponent("el-col"),S=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("view",Oa,[n.item.type==="bar-title"?(e.openBlock(),e.createBlock(V,{key:0},{default:e.withCtx(()=>[e.createElementVNode("view",Ua,e.toDisplayString(n.item.title),1)]),_:1})):n.item.type==="password"?(e.openBlock(),e.createBlock(V,{key:1},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[0]||(_[0]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{type:"password",placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),"show-password":"",onInput:e.unref(o)}),null,16,["modelValue","placeholder","disabled","clearable","size","onInput"])]),_:1})):n.item.type==="select"?(e.openBlock(),e.createBlock(V,{key:2},{default:e.withCtx(()=>[e.createVNode(q,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[1]||(_[1]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,props:n.item.props,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),size:n.size,width:e.unref(T),group:n.item.group,disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),filterable:n.item.filterable,multiple:n.item.multiple,"multiple-limit":n.item.multipleLimit,"collapse-tags":n.item.collapseTags,"allow-create":n.item.allowCreate,"filter-method":n.item.filterMethod,remote:n.item.remote,"remote-method":n.item.remoteMethod,loading:n.item.loading,"loading-text":n.item.loadingText,"no-match-text":n.item.noMatchText,"no-data-text":n.item.noDataText,"popper-class":n.item.popperClass,"reserve-keyword":n.item.reserveKeyword,"default-first-option":n.item.defaultFirstOption,"popper-append-to-body":n.item.popperAppendToBody,"automatic-dropdown":n.item.automaticDropdown,"default-index":n.item.defaultIndex,"show-desc":n.item.showDesc,onChange:e.unref(p),onClear:e.unref(p)}),null,16,["modelValue","localdata","props","placeholder","size","width","group","disabled","clearable","filterable","multiple","multiple-limit","collapse-tags","allow-create","filter-method","remote","remote-method","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body","automatic-dropdown","default-index","show-desc","onChange","onClear"])]),_:1})):n.item.type==="radio"?(e.openBlock(),e.createBlock(V,{key:3},{default:e.withCtx(()=>[e.createVNode(I,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[2]||(_[2]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,disabled:e.unref(d)(n.item),"text-color":n.item.textColor,fill:n.item.fill,"option-type":n.item.optionType,border:n.item.border,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),"item-width":n.item.itemWidth,action:n.item.action,"action-data":n.item.actionData,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,props:n.item.props,"data-preprocess":n.item.dataPreprocess,direction:n.item.direction,"column-margin":n.item.columnMargin,"default-index":n.item.defaultIndex,"encrypt-action":n.item.encryptAction,onChange:e.unref(p)}),null,16,["modelValue","localdata","disabled","text-color","fill","option-type","border","size","item-width","action","action-data","is-request","request-header","request-method","props","data-preprocess","direction","column-margin","default-index","encrypt-action","onChange"])]),_:1})):n.item.type==="checkbox"?(e.openBlock(),e.createBlock(V,{key:4},{default:e.withCtx(()=>[e.createVNode(B,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[3]||(_[3]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,disabled:e.unref(d)(n.item),min:n.item.minSelect,max:n.item.maxSelect,"text-color":n.item.textColor,fill:n.item.fill,"option-type":n.item.optionType,border:n.item.border,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),"item-width":n.item.itemWidth,action:n.item.action,"action-data":n.item.actionData,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,props:n.item.props,"data-preprocess":n.item.dataPreprocess,direction:n.item.direction,"column-margin":n.item.columnMargin,"encrypt-action":n.item.encryptAction,onChange:e.unref(p)}),null,16,["modelValue","localdata","disabled","min","max","text-color","fill","option-type","border","size","item-width","action","action-data","is-request","request-header","request-method","props","data-preprocess","direction","column-margin","encrypt-action","onChange"])]),_:1})):n.item.type==="switch"?(e.openBlock(),e.createBlock(V,{key:5},{default:e.withCtx(()=>[e.createVNode(P,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[4]||(_[4]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{disabled:e.unref(d)(n.item),"active-text":n.item.activeText,"inactive-text":n.item.inactiveText,"active-color":n.item.activeColor,"inactive-color":n.item.inactiveColor,"active-value":n.item.activeValue??!0,"inactive-value":n.item.inactiveValue??!1,"inline-prompt":n.item.inlinePrompt,"switch-type":n.item.switchType,label:n.item.label,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),onChange:e.unref(p)}),null,16,["modelValue","disabled","active-text","inactive-text","active-color","inactive-color","active-value","inactive-value","inline-prompt","switch-type","label","size","onChange"])]),_:1})):n.item.type==="date"||n.item.type==="datetimerange"?(e.openBlock(),e.createBlock(V,{key:6},{default:e.withCtx(()=>[n.item.type!=="datetimerange"||e.unref(k)?(e.openBlock(),e.createBlock(Q,e.mergeProps({key:0,modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[5]||(_[5]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{type:e.unref(v),placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),"value-format":e.unref(N),"start-placeholder":n.item.startPlaceholder,"end-placeholder":n.item.endPlaceholder,"range-separator":n.item.rangeSeparator,"picker-options":n.item.pickerOptions,"default-value":n.item.defaultValue,"default-time":n.item.defaultTime,width:e.unref(T),onChange:e.unref(p)}),null,16,["modelValue","type","placeholder","disabled","clearable","value-format","start-placeholder","end-placeholder","range-separator","picker-options","default-value","default-time","width","onChange"])):(e.openBlock(),e.createElementBlock("view",qa,"手机端不支持该组件"))]),_:1})):n.item.type==="time"?(e.openBlock(),e.createBlock(V,{key:7},{default:e.withCtx(()=>[e.createVNode(z,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[6]||(_[6]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),format:n.item.format||"HH:mm:ss","value-format":n.item.valueFormat||"HH:mm:ss","start-placeholder":n.item.startPlaceholder,"end-placeholder":n.item.endPlaceholder,"range-separator":n.item.rangeSeparator,"default-value":n.item.defaultValue,"default-time":n.item.defaultTime,"is-range":n.item.range||n.item.isRange,custom:n.item.custom,width:e.unref(T),onChange:e.unref(p)}),null,16,["modelValue","placeholder","disabled","clearable","format","value-format","start-placeholder","end-placeholder","range-separator","default-value","default-time","is-range","custom","width","onChange"])]),_:1})):n.item.type==="color"?(e.openBlock(),e.createBlock(V,{key:8},{default:e.withCtx(()=>[e.createVNode($,e.mergeProps({"model-value":e.unref(c)[n.item.key]},n.$attrs,{disabled:e.unref(d)(n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),"show-alpha":n.item.showAlpha,"color-format":n.item.colorFormat,"popper-class":n.item.popperClass,predefine:n.item.predefine,onChange:e.unref(p)}),null,16,["model-value","disabled","size","show-alpha","color-format","popper-class","predefine","onChange"])]),_:1})):n.item.type==="slider"?(e.openBlock(),e.createBlock(V,{key:9},{default:e.withCtx(()=>[e.createVNode(x,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[7]||(_[7]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{disabled:e.unref(d)(n.item),min:n.item.min??0,max:n.item.max??100,step:n.item.step??1,"show-stops":n.item.showStops,range:n.item.range,marks:n.item.marks,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),style:{width:e.unref(T)},"show-input":n.item.showInput||!1,onChange:e.unref(p)}),null,16,["modelValue","disabled","min","max","step","show-stops","range","marks","size","style","show-input","onChange"])]),_:1})):n.item.type==="rate"?(e.openBlock(),e.createBlock(V,{key:10},{default:e.withCtx(()=>[e.createVNode(L,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[8]||(_[8]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{disabled:e.unref(d)(n.item),max:n.item.maxRate||5,"allow-half":n.item.allowHalf,"show-text":n.item.showText,"show-score":n.item.showScore,texts:n.item.texts||["极差","失望","一般","满意","惊喜"],onChange:e.unref(p)}),null,16,["modelValue","disabled","max","allow-half","show-text","show-score","texts","onChange"])]),_:1})):["image","avatar","file"].includes(n.item.type)?(e.openBlock(),e.createBlock(V,{key:11},{default:e.withCtx(()=>[e.createVNode(re,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[9]||(_[9]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{action:n.item.action,headers:n.item.headers,multiple:n.item.multiple,data:n.item.data,name:n.item.name||"file","with-credentials":n.item.withCredentials,"show-file-list":n.item.showFileList!==!1,drag:n.item.drag,accept:n.item.accept||(["image","avatar"].includes(n.item.type)?".jpg,.jpeg,.png,.gif,.JPG,.JPEG,.PNG,.GIF":void 0),"button-text":n.item.buttonText,"file-size":n.item.fileSize,"size-unit":n.item.sizeUnit,"list-type":n.item.listType||(n.item.type==="file"?"text":void 0),"auto-upload":n.item.autoUpload!==!1,"file-list":n.item.fileList,disabled:e.unref(d)(n.item),limit:n.item.type==="avatar"?1:n.item.limit,"upload-type":n.item.type==="file"?"file":n.item.uploadType,provider:n.item.provider,"need-save":n.item.needSave,"category-id":n.item.categoryId,"cloud-directory":n.item.cloudDirectory,"cloud-path-remove-chinese":n.item.cloudPathRemoveChinese,"echo-use-local-url":n.item.echoUseLocalUrl,"uni-cloud":n.item.uniCloud,env:n.item.env,width:e.unref(T),"file-name-max-width":n.item.fileNameMaxWidth,"on-preview":n.item.onPreview,"on-remove":n.item.onRemove,"on-success":n.item.onSuccess,"on-error":n.item.onError,"on-progress":n.item.onProgress,"before-upload":n.item.beforeUpload,"before-remove":n.item.beforeRemove,"http-request":n.item.httpRequest,"on-exceed":n.item.onExceed,"onUpdate:modelValue":_[10]||(_[10]=j=>{e.unref(c)[n.item.key]=j,e.unref(p)(j)})}),null,16,["modelValue","action","headers","multiple","data","name","with-credentials","show-file-list","drag","accept","button-text","file-size","size-unit","list-type","auto-upload","file-list","disabled","limit","upload-type","provider","need-save","category-id","cloud-directory","cloud-path-remove-chinese","echo-use-local-url","uni-cloud","env","width","file-name-max-width","on-preview","on-remove","on-success","on-error","on-progress","before-upload","before-remove","http-request","on-exceed"])]),_:1})):n.item.type==="cascader"?(e.openBlock(),e.createBlock(V,{key:12},{default:e.withCtx(()=>[e.createVNode(ne,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[11]||(_[11]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,action:n.item.action,"action-data":n.item.actionData,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,props:n.item.props,disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),"show-all-levels":n.item.showAllLevels!==!1,"collapse-tags":n.item.collapseTags,separator:n.item.separator||"/",filterable:n.item.filterable,"filter-method":n.item.filterMethod,debounce:n.item.debounce,"before-filter":n.item.beforeFilter,"popper-class":n.item.popperClass,"encrypt-action":n.item.encryptAction,width:e.unref(T),onChange:_[12]||(_[12]=(j,le)=>e.unref(p)(j,le))}),null,16,["modelValue","localdata","action","action-data","is-request","request-header","request-method","props","disabled","clearable","placeholder","show-all-levels","collapse-tags","separator","filterable","filter-method","debounce","before-filter","popper-class","encrypt-action","width"])]),_:1})):n.item.type==="json"?(e.openBlock(),e.createBlock(V,{key:13},{default:e.withCtx(()=>[e.createVNode(de,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[13]||(_[13]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{mode:n.item.mode||"code",disabled:e.unref(d)(n.item),width:e.unref(T),height:n.item.height||"300px","expanded-on-start":n.item.expandedOnStart,onChange:e.unref(p)}),null,16,["modelValue","mode","disabled","width","height","expanded-on-start","onChange"])]),_:1})):n.item.type==="table-select"?(e.openBlock(),e.createBlock(V,{key:14},{default:e.withCtx(()=>[e.createVNode(he,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[14]||(_[14]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{action:n.item.action,"form-data":n.item.formData,placeholder:n.item.placeholder,width:e.unref(T),disabled:e.unref(d)(n.item),multiple:n.item.multiple,"multiple-limit":n.item.multipleLimit||n.item.limit,columns:n.item.columns,"query-columns":n.item.queryColumns,"show-cancel":n.item.showCancel,"cancel-text":n.item.cancelText,"submit-text":n.item.submitText,"page-size":n.item.pageSize,"value-fields":n.item.valueFields,"main-columns":n.item.mainColumns,"dialog-width":n.item.dialogWidth,"row-height":n.item.rowHeight,"left-fixed":n.item.leftFixed,"right-fixed":n.item.rightFixed,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,props:n.item.props,"data-preprocess":n.item.dataPreprocess,"show-summary":n.item.showSummary,"total-option":n.item.totalOption,"summary-method":n.item.summaryMethod,"close-on-click-modal":n.item.closeOnClickModal,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),"label-format":n.item.labelFormat,"need-alert":n.item.needAlert,"custom-name":n.item.customName,"get-count":n.item.getCount,"max-page-count":n.item.maxPageCount,"encrypt-action":n.item.encryptAction,onChange:e.unref(p)}),null,16,["modelValue","action","form-data","placeholder","width","disabled","multiple","multiple-limit","columns","query-columns","show-cancel","cancel-text","submit-text","page-size","value-fields","main-columns","dialog-width","row-height","left-fixed","right-fixed","is-request","request-header","request-method","props","data-preprocess","show-summary","total-option","summary-method","close-on-click-modal","size","label-format","need-alert","custom-name","get-count","max-page-count","encrypt-action","onChange"])]),_:1})):n.item.type==="remote-select"?(e.openBlock(),e.createBlock(V,{key:15},{default:e.withCtx(()=>[e.createVNode(A,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[15]||(_[15]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{action:n.item.action,placeholder:n.item.placeholder,width:e.unref(T),disabled:e.unref(d)(n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),multiple:n.item.multiple,clearable:e.unref(l)(n.item.clearable),filterable:n.item.filterable!==!1,"show-all":n.item.showAll,"show-refresh":n.item.showRefresh,props:n.item.props,"action-data":n.item.actionData,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,"data-preprocess":n.item.dataPreprocess,"encrypt-action":n.item.encryptAction,onChange:e.unref(p)}),null,16,["modelValue","action","placeholder","width","disabled","size","multiple","clearable","filterable","show-all","show-refresh","props","action-data","is-request","request-header","request-method","data-preprocess","encrypt-action","onChange"])]),_:1})):n.item.type==="province"?(e.openBlock(),e.createBlock(V,{key:16},{default:e.withCtx(()=>[e.createVNode(M,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[16]||(_[16]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{width:e.unref(T),disabled:e.unref(d)(n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),clearable:e.unref(l)(n.item.clearable),onChange:e.unref(p)}),null,16,["modelValue","width","disabled","size","placeholder","clearable","onChange"])]),_:1})):n.item.type==="number"&&n.item.controls?(e.openBlock(),e.createBlock(V,{key:17},{default:e.withCtx(()=>[e.createVNode(O,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[17]||(_[17]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:e.unref(T),precision:n.item.precision,max:n.item.max,min:n.item.min,step:n.item.step,"step-strictly":n.item.stepStrictly,controls:n.item.controls||!1,align:n.item.align||(n.item.controls?"center":"left"),"controls-position":n.item.controlsPosition,onInput:e.unref(o)}),null,16,["modelValue","placeholder","disabled","size","width","precision","max","min","step","step-strictly","controls","align","controls-position","onInput"])]),_:1})):["number","money","percentage","discount"].includes(n.item.type)?(e.openBlock(),e.createBlock(V,{key:18},{default:e.withCtx(()=>[e.createVNode(K,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[18]||(_[18]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{mode:n.item.type,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),readonly:n.item.readonly,width:e.unref(T),precision:n.item.precision,max:n.item.max,min:n.item.min,"allow-negative":n.item.allowNegative,range:n.item.range,"range-separator":n.item.rangeSeparator,"empty-value":n.item.emptyValue,"right-text":n.item.rightText,"show-right-text":n.item.showRightText,onInput:e.unref(o),onChange:e.unref(p)}),null,16,["modelValue","mode","placeholder","disabled","clearable","size","readonly","width","precision","max","min","allow-negative","range","range-separator","empty-value","right-text","show-right-text","onInput","onChange"])]),_:1})):n.item.type==="address"?(e.openBlock(),e.createBlock(V,{key:19},{default:e.withCtx(()=>[e.createVNode(se,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[19]||(_[19]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,props:n.item.props,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:e.unref(T),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),filterable:n.item.filterable,level:n.item.level,onChange:e.unref(p)}),null,16,["modelValue","localdata","props","placeholder","size","width","disabled","clearable","filterable","level","onChange"])]),_:1})):n.item.type==="tag"?(e.openBlock(),e.createBlock(V,{key:20},{default:e.withCtx(()=>[e.createVNode(ae,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[20]||(_[20]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{"input-type":n.item.inputType||"text",placeholder:n.item.placeholder,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:n.item.width,disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),limit:n.item.limit,precision:n.item.precision,min:n.item.min,max:n.item.max,maxlength:n.item.maxlength,"add-button-text":n.item.addButtonText,"show-add":n.item.showAdd,onChange:e.unref(p)}),null,16,["modelValue","input-type","placeholder","size","width","disabled","clearable","limit","precision","min","max","maxlength","add-button-text","show-add","onChange"])]),_:1})):n.item.type==="editor"?(e.openBlock(),e.createBlock(V,{key:21},{default:e.withCtx(()=>[e.createVNode(fe,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[21]||(_[21]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{placeholder:n.item.placeholder,width:e.unref(T),"min-height":n.item.minHeight,"max-height":n.item.maxHeight,disabled:e.unref(d)(n.item),onChange:e.unref(p)}),null,16,["modelValue","placeholder","width","min-height","max-height","disabled","onChange"])]),_:1})):n.item.type==="tree-select"?(e.openBlock(),e.createBlock(V,{key:22},{default:e.withCtx(()=>[e.createVNode(ge,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[22]||(_[22]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{localdata:n.item.data,action:n.item.action,"action-data":n.item.actionData,props:n.item.props,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:n.item.width,disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),multiple:n.item.multiple,"show-checkbox":n.item.showCheckbox,"check-strictly":n.item.checkStrictly,"default-expand-all":n.item.defaultExpandAll!==!1,"expand-on-click-node":n.item.expandOnClickNode,"check-on-click-node":n.item.checkOnClickNode,accordion:n.item.accordion,indent:n.item.indent,"is-request":n.item.isRequest,"request-header":n.item.requestHeader,"request-method":n.item.requestMethod,"encrypt-action":n.item.encryptAction,onChange:e.unref(p),onClear:e.unref(p)}),null,16,["modelValue","localdata","action","action-data","props","placeholder","size","width","disabled","clearable","multiple","show-checkbox","check-strictly","default-expand-all","expand-on-click-node","check-on-click-node","accordion","indent","is-request","request-header","request-method","encrypt-action","onChange","onClear"])]),_:1})):n.item.type==="array"||n.item.type==="array<string>"||n.item.type==="array<number>"?(e.openBlock(),e.createBlock(V,{key:23},{default:e.withCtx(()=>[e.createVNode(Se,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[23]||(_[23]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{type:n.item.type==="array<number>"?"number":"text",placeholder:n.item.placeholder,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:e.unref(T),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),min:n.item.min,max:n.item.max,precision:n.item.precision,maxlength:n.item.maxlength,"show-word-limit":n.item.showWordLimit,"add-button-text":n.item.addButtonText,"show-add":n.item.showAdd,"clear-button-text":n.item.clearButtonText,"show-clear":n.item.showClear,"show-delete":n.item.showDelete,"is-unique":n.item.isUnique,"allow-repeat":n.item.allowRepeat,"trim-mode":n.item.trimMode,onChange:e.unref(p)}),null,16,["modelValue","type","placeholder","size","width","disabled","clearable","min","max","precision","maxlength","show-word-limit","add-button-text","show-add","clear-button-text","show-clear","show-delete","is-unique","allow-repeat","trim-mode","onChange"])]),_:1})):n.item.type==="array<object>"?(e.openBlock(),e.createElementBlock("view",ja,[n.item.dialog?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Ce,{type:n.item.buttonType,disabled:n.disabled,onClick:_[24]||(_[24]=j=>a.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.item.buttonText||n.language&&n.language["vc.form.setUp"]||"设置"),1)]),_:1},8,["type","disabled"]),e.createVNode(Ve,{modelValue:a.value,"onUpdate:modelValue":_[27]||(_[27]=j=>a.value=j),title:n.item.title,width:n.item.dialogWidth?n.item.dialogWidth+"px":"1000px",top:"7vh",center:"",mode:"form","close-on-click-modal":!0},{footer:e.withCtx(()=>[e.createVNode(Ce,{type:"primary",onClick:_[25]||(_[25]=j=>a.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.language&&n.language["vc.form.submit"]||"确 定"),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("view",Wa,[e.createVNode(Ne,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[26]||(_[26]=j=>e.unref(c)[n.item.key]=j),class:"width-box"},n.$attrs,{columns:n.item.columns,placeholder:n.item.placeholder,size:n.item.size,width:e.unref(T),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),"form-prop":e.unref(h),"item-width":n.item.itemWidth,"item-min-width":n.item.itemMinWidth,"add-button-text":n.item.addButtonText,"clear-button-text":n.item.clearButtonText,"show-add":n.item.showAdd,"show-clear":n.item.showClear,"show-sort":n.item.showSort,"row-no":n.item.rowNo,"empty-text":n.item.emptyText,"row-key":n.item.rowKey,"default-value":n.item.defaultValue,"column-index-method":n.item.columnIndexMethod,"column-index-width":n.item.columnIndexWidth,"column-index-label":n.item.columnIndexLabel,"right-btns":n.item.rightBtns,"left-fixed":n.item.leftFixed,"right-fixed":n.item.rightFixed,maxlength:n.item.maxlength,"before-remove":n.item.beforeRemove,"onUpdate:modelValue":e.unref(E),onChange:e.unref(p)}),null,16,["modelValue","columns","placeholder","size","width","disabled","clearable","form-prop","item-width","item-min-width","add-button-text","clear-button-text","show-add","show-clear","show-sort","row-no","empty-text","row-key","default-value","column-index-method","column-index-width","column-index-label","right-btns","left-fixed","right-fixed","maxlength","before-remove","onUpdate:modelValue","onChange"])])]),_:1},8,["modelValue","title","width"])],64)):(e.openBlock(),e.createBlock(Ne,e.mergeProps({key:1,modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[28]||(_[28]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{columns:n.item.columns,placeholder:n.item.placeholder,size:n.item.size,width:e.unref(T),disabled:e.unref(d)(n.item),clearable:e.unref(l)(n.item.clearable),"form-prop":e.unref(h),"item-width":n.item.itemWidth,"item-min-width":n.item.itemMinWidth,"add-button-text":n.item.addButtonText,"clear-button-text":n.item.clearButtonText,"show-add":n.item.showAdd,"show-clear":n.item.showClear,"show-sort":n.item.showSort,"row-no":n.item.rowNo,"empty-text":n.item.emptyText,"row-key":n.item.rowKey,"default-value":n.item.defaultValue,"column-index-method":n.item.columnIndexMethod,"column-index-width":n.item.columnIndexWidth,"column-index-label":n.item.columnIndexLabel,"right-btns":n.item.rightBtns,"left-fixed":n.item.leftFixed,"right-fixed":n.item.rightFixed,maxlength:n.item.maxlength,"before-remove":n.item.beforeRemove,"onUpdate:modelValue":e.unref(E),onChange:e.unref(p)}),null,16,["modelValue","columns","placeholder","size","width","disabled","clearable","form-prop","item-width","item-min-width","add-button-text","clear-button-text","show-add","show-clear","show-sort","row-no","empty-text","row-key","default-value","column-index-method","column-index-width","column-index-label","right-btns","left-fixed","right-fixed","maxlength","before-remove","onUpdate:modelValue","onChange"]))])):n.item.type==="file-select"?(e.openBlock(),e.createBlock(V,{key:25},{default:e.withCtx(()=>[e.createVNode(ee,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[29]||(_[29]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{"return-type":n.item.returnType||"url","file-type":n.item.fileType||"image",disabled:e.unref(d)(n.item),multiple:n.item.multiple,"multiple-limit":n.item.multipleLimit,"default-category":n.item.defaultCategory,upload:n.item.upload!==!1,"update-category":n.item.updateCategory!==!1,controls:n.item.controls!==!1,"image-fit":n.item.imageFit||"cover","cloud-directory":n.item.cloudDirectory,"cloud-path-remove-chinese":n.item.cloudPathRemoveChinese!==!1,provider:n.item.provider,"uni-cloud":n.item.uniCloud,env:n.item.env,"file-size":n.item.fileSize,"size-unit":n.item.sizeUnit||"MB","encrypt-action":n.item.encryptAction,onChange:e.unref(p),onSelected:e.unref(p)}),null,16,["modelValue","return-type","file-type","disabled","multiple","multiple-limit","default-category","upload","update-category","controls","image-fit","cloud-directory","cloud-path-remove-chinese","provider","uni-cloud","env","file-size","size-unit","encrypt-action","onChange","onSelected"])]),_:1})):n.item.type==="info"||n.item.type==="text-view"?(e.openBlock(),e.createBlock(V,{key:26},{default:e.withCtx(()=>[e.createElementVNode("view",Ka,e.toDisplayString(n.item.text||e.unref(c)[n.item.key]),1)]),_:1})):n.item.type==="html"?(e.openBlock(),e.createBlock(V,{key:27},{default:e.withCtx(()=>[e.createElementVNode("view",{class:"vc-form-html",innerHTML:n.item.html||e.unref(c)[n.item.key]},null,8,Ha)]),_:1})):n.item.type==="money-view"?(e.openBlock(),e.createBlock(V,{key:28},{default:e.withCtx(()=>[e.createElementVNode("view",xa,e.toDisplayString(e.unref(i).pubfn.priceFilter(e.unref(c)[n.item.key])),1)]),_:1})):n.item.type==="icon"?(e.openBlock(),e.createBlock(V,{key:29},{default:e.withCtx(()=>[e.createVNode(H,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[30]||(_[30]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),clearable:n.item.clearable!==!1,size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),width:e.unref(T),multiple:n.item.multiple,"multiple-limit":n.item.multipleLimit||0,filter:n.item.filter,onChange:e.unref(p)}),null,16,["modelValue","placeholder","disabled","clearable","size","width","multiple","multiple-limit","filter","onChange"])]),_:1})):n.item.type==="custom"?(e.openBlock(),e.createBlock(V,{key:30},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.item.component),e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[31]||(_[31]=j=>e.unref(c)[n.item.key]=j)},n.item.componentProps||{},{disabled:e.unref(d)(n.item),onChange:e.unref(p)}),null,16,["modelValue","disabled","onChange"]))]),_:1})):n.item.type==="group"?(e.openBlock(),e.createBlock(V,{key:31},{default:e.withCtx(()=>[e.createElementVNode("view",Ya,[e.createVNode(S,{class:"group-item",type:"flex",gutter:n.item.gutter,justify:n.item.justify||"start",align:n.item.align||"top"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(j,le)=>{var Te,Ae,Le,U;return e.openBlock(),e.createElementBlock(e.Fragment,{key:j.key},[e.unref(i).pubfn.itemDisplay(j,e.unref(c),n.formType)?(e.openBlock(),e.createBlock(G,{key:0,span:(Te=j.col)==null?void 0:Te.span,offset:(Ae=j.col)==null?void 0:Ae.offset,push:(Le=j.col)==null?void 0:Le.push,pull:(U=j.col)==null?void 0:U.pull},{default:e.withCtx(()=>[e.createVNode(me,{label:j.showLabel!==!1?j.title:"",prop:e.unref(w)(j.key),"label-width":j.labelWidth!=null?e.unref(i).pubfn.addUnit(j.labelWidth):void 0,"show-message":j.showMessage!==!1,"inline-message":j.inlineMessage,required:j.required,rules:j.rules,style:e.normalizeStyle(e.unref(u)(j))},{default:e.withCtx(()=>[e.createVNode(J,{modelValue:e.unref(r),"onUpdate:modelValue":_[32]||(_[32]=te=>e.isRef(r)?r.value=te:null),item:j,"form-type":n.formType,disabled:e.unref(d)(j),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),index:le},null,8,["modelValue","item","form-type","disabled","size","index"]),j.tips?(e.openBlock(),e.createBlock(Y,{key:0,tips:j.tips,"custom-style":j.tipsStyle},null,8,["tips","custom-style"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","label-width","show-message","inline-message","required","rules","style"])]),_:2},1032,["span","offset","push","pull"])):e.createCommentVNode("",!0)],64)}),128))]),_:1},8,["gutter","justify","align"])])]),_:1})):n.item.type==="object"?(e.openBlock(),e.createBlock(V,{key:32},{default:e.withCtx(()=>[e.createElementVNode("view",Ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.item.columns,(j,le)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:j.key},[e.unref(i).pubfn.itemDisplay(j,e.unref(c),n.formType)?(e.openBlock(),e.createBlock(me,{key:0,label:j.showLabel!==!1&&(j.type||"").indexOf("bar-")!==0?j.title:"",prop:e.unref(C)(j.key,n.item.key),"label-width":j.showLabel===!1||(j.type||"").indexOf("bar-")===0?"0":j.labelWidth!=null?e.unref(i).pubfn.addUnit(j.labelWidth):void 0,"show-message":j.showMessage!==!1,"inline-message":j.inlineMessage,required:j.required,rules:j.rules,style:e.normalizeStyle(e.unref(u)(j))},{default:e.withCtx(()=>[e.createVNode(J,{modelValue:e.unref(y),"onUpdate:modelValue":_[33]||(_[33]=Te=>e.isRef(y)?y.value=Te:null),item:j,"form-type":n.formType,"parent-key":e.unref(w)(n.item.key),disabled:e.unref(d)(j),size:e.unref(i).pubfn.elementUtil.getComponentSize(n.item.size||n.size),index:le},null,8,["modelValue","item","form-type","parent-key","disabled","size","index"]),j.tips?(e.openBlock(),e.createBlock(Y,{key:0,tips:j.tips,"custom-style":j.tipsStyle},null,8,["tips","custom-style"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop","label-width","show-message","inline-message","required","rules","style"])):e.createCommentVNode("",!0)],64))),128))])]),_:1})):n.item.type==="text"?(e.openBlock(),e.createBlock(V,{key:33},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[34]||(_[34]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{style:{width:e.unref(T)},maxlength:n.item.maxlength,"show-word-limit":n.item.showWordLimit,readonly:n.item.readonly,autocomplete:n.item.autocomplete,resize:n.item.resize,autofocus:n.item.autofocus,tabindex:n.item.tabindex,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),"prefix-icon":n.item.prefixIcon,"suffix-icon":n.item.suffixIcon,clearable:e.unref(l)(n.item.clearable),disabled:e.unref(d)(n.item),onInput:e.unref(o),onChange:e.unref(p)}),e.createSlots({_:2},[n.item.prepend?{name:"prepend",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.item.prepend),1)]),key:"0"}:void 0,n.item.append?{name:"append",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.item.append),1)]),key:"1"}:void 0]),1040,["modelValue","style","maxlength","show-word-limit","readonly","autocomplete","resize","autofocus","tabindex","placeholder","prefix-icon","suffix-icon","clearable","disabled","onInput","onChange"])]),_:1})):n.item.type==="textarea"?(e.openBlock(),e.createBlock(V,{key:34},{default:e.withCtx(()=>[e.createVNode(R,e.mergeProps({modelValue:e.unref(c)[n.item.key],"onUpdate:modelValue":_[35]||(_[35]=j=>e.unref(c)[n.item.key]=j)},n.$attrs,{type:"textarea",style:{width:e.unref(T)},maxlength:n.item.maxlength,"show-word-limit":n.item.showWordLimit,readonly:n.item.readonly,autosize:n.item.autosize,autocomplete:n.item.autocomplete,resize:n.item.resize,autofocus:n.item.autofocus,tabindex:n.item.tabindex,placeholder:e.unref(i).pubfn.placeholderFilter(n.item.placeholder,n.item),disabled:e.unref(d)(n.item),onInput:e.unref(o),onChange:e.unref(p)}),null,16,["modelValue","style","maxlength","show-word-limit","readonly","autosize","autocomplete","resize","autofocus","tabindex","placeholder","disabled","onInput","onChange"])]),_:1})):(e.openBlock(),e.createBlock(V,{key:35},{default:e.withCtx(()=>[e.createElementVNode("view",Ga,"不支持"+e.toDisplayString(n.item.type)+"组件",1)]),_:1}))])}}}),Xa=De(Qa,[["__scopeId","data-v-940cee20"]]),Za=(t,s)=>{const a=uni.vc||{},f=e.reactive({show:!1,loading:!1}),g=e.ref(""),i=e.ref([]),c=e.ref(null),k=e.computed(()=>{const p=t.actionData;return typeof p=="object"?p:typeof p=="function"?p():{}}),T=e.computed(()=>{var E,n;const p=t.localdata;if(t.action){const _=((E=t.props)==null?void 0:E.list)||"rows";return((n=i.value)==null?void 0:n[_])||[]}return p?typeof p=="function"?p():p:i.value}),v=e.computed(()=>t.multiple||t.showCheckbox),N=e.computed(()=>{var p;return((p=t.props)==null?void 0:p.value)||"value"}),y=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),r=()=>{const p=t.action;if(!p)return;f.loading=!0,(typeof p=="function"?p:t.isRequest?a.request:a.callFunction)({url:p,header:t.requestHeader,method:t.requestMethod,data:k.value,encrypt:t.encryptAction,success:n=>{i.value=n},complete:()=>{f.loading=!1}})},m=p=>{var V,R;const E=((V=t.props)==null?void 0:V.value)||"value",n=a.pubfn.treeUtil.treeToArray(T.value,{id:E,parent_id:"parent_id",children:((R=t.props)==null?void 0:R.children)||"children"}),_=a.pubfn.getListItem(n,E,p);return a.pubfn.isNotNull(_)?h(n,p):p},h=(p,E,n="")=>{var q,I;const _=((q=t.props)==null?void 0:q.value)||"value",V=((I=t.props)==null?void 0:I.label)||"label";if(a.pubfn.isNull(E))return n;const R=a.pubfn.getListItem(p,_,E);return n=n?`${R[V]} / ${n}`:`${R[V]}`,h(p,R.parent_id,n)},w=()=>{t.disabled||(f.show=!0)},C=()=>{var p,E;t.modelValue&&(t.multiple?(p=c.value)==null||p.setCheckedKeys(t.modelValue,!0):(E=c.value)==null||E.setCurrentKey(t.modelValue,!0))},u=(p,E)=>{var _,V;if(!p)return!0;const n=((_=t.props)==null?void 0:_.label)||"label";return((V=E[n])==null?void 0:V.indexOf(p))>-1},l=()=>{var p,E;(p=c.value)==null||p.setCurrentKey(),(E=c.value)==null||E.setCheckedNodes([]),s("update:modelValue",null),s("change",null,null),s("clear")},d=()=>{f.show=!1},o=()=>{if(t.multiple){const p=t.checkStrictly,E=c.value.getCheckedKeys(!p),n=c.value.getCheckedNodes(!p),_=c.value.getHalfCheckedKeys(),V=E.concat(_),R=c.value.getCheckedNodes(!1,!0);s("update:modelValue",E),s("change",E,n,V,R)}else{const p=c.value.getCurrentKey(),E=c.value.getCurrentNode();s("update:modelValue",p),s("change",p,E)}f.show=!1};return e.onMounted(()=>{r()}),e.watch(k,(p,E)=>{JSON.stringify(p)!==JSON.stringify(E)&&r()},{deep:!0}),e.watch(g,p=>{var E;(E=c.value)==null||E.filter(p)}),{vc:a,dialog:f,filterText:g,data:i,treeRef:c,actionDataCom:k,localdataCom:T,showCheckboxCom:v,nodeKeyCom:N,customStyle:y,valueFn:m,showDialog:w,onOpened:C,filterNode:u,onClear:l,close:d,confirm:o}},ec={modelValue:{type:[String,Number,Array],default:""},localdata:{type:[Array,Function],default:[]},props:{type:Object,default:()=>({list:"list",value:"value",label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"})},action:{type:[String,Function],default:""},actionData:{type:[Object,Function],default:{}},placeholder:{type:String,default:""},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!1},checkOnClickNode:{type:Boolean,default:!0},defaultExpandedKeys:{type:Array,default:[]},defaultCheckedKeys:{type:Array,default:[]},currentNodeKey:{type:[String,Number],default:""},accordion:{type:Boolean,default:!1},indent:{type:Number,default:16},iconClass:{type:String,default:""},isRequest:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:!1},requestMethod:{type:String,default:""},encryptAction:{type:Boolean,default:!1}},tc={"update:modelValue":t=>!0,change:(t,s,a,f)=>!0,clear:()=>!0},nc={style:{display:"flex","flex-direction":"column",gap:"6px"}},oc={style:{"text-align":"left"}},ac={class:"vc-data-input-tree-select-content"},cc=e.defineComponent({name:"vc-data-input-tree-select",__name:"data-input-tree-select",props:ec,emits:tc,setup(t,{emit:s}){const a=t,f=s,{vc:g,dialog:i,filterText:c,treeRef:k,localdataCom:T,valueFn:v,showDialog:N,onOpened:y,filterNode:r,onClear:m,close:h,confirm:w}=Za(a,f);return(C,u)=>{const l=e.resolveComponent("el-button"),d=e.resolveComponent("block"),o=e.resolveComponent("vc-data-icon"),p=e.resolveComponent("el-input"),E=e.resolveComponent("el-tree"),n=e.resolveComponent("vc-data-dialog");return e.openBlock(),e.createElementBlock("view",{class:"vc-data-input-tree-select",style:e.normalizeStyle({width:e.unref(g).pubfn.addUnit(C.width)})},[e.unref(i).loading?(e.openBlock(),e.createBlock(l,{key:0,loading:e.unref(i).loading,onClick:e.unref(N)},{default:e.withCtx(()=>[...u[2]||(u[2]=[e.createTextVNode("加载中...",-1)])]),_:1},8,["loading","onClick"])):(e.openBlock(),e.createBlock(l,{key:1,style:{height:"auto"},onClick:e.unref(N)},{default:e.withCtx(()=>[!C.multiple&&C.modelValue?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx(()=>[e.createElementVNode("view",null,e.toDisplayString(e.unref(v)(C.modelValue)),1)]),_:1})):C.multiple&&C.modelValue&&C.modelValue.length>0?(e.openBlock(),e.createBlock(d,{key:1},{default:e.withCtx(()=>[e.createElementVNode("view",nc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.modelValue,(_,V)=>(e.openBlock(),e.createBlock(d,{key:V},{default:e.withCtx(()=>[e.createElementVNode("view",oc,e.toDisplayString(e.unref(v)(_)),1)]),_:2},1024))),128))])]),_:1})):(e.openBlock(),e.createBlock(d,{key:2},{default:e.withCtx(()=>[e.createElementVNode("view",null,e.toDisplayString(C.placeholder),1)]),_:1}))]),_:1},8,["onClick"])),C.clearable&&!C.disabled&&C.modelValue&&C.modelValue.length>0?(e.openBlock(),e.createBlock(o,{key:2,style:{"margin-left":"10px",cursor:"pointer"},name:"CircleClose",size:"100%",color:"#9fa2a7",onClick:e.unref(m)},null,8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:e.unref(i).show,"onUpdate:modelValue":u[1]||(u[1]=_=>e.unref(i).show=_),title:"选择",top:"3vh",width:"900px","close-on-click-modal":!0,mode:"form","max-height":"80vh",onOpened:e.unref(y)},{footer:e.withCtx(()=>[e.createVNode(l,{style:{width:"80px"},loading:e.unref(i).loading,size:e.unref(g).pubfn.elementUtil.getComponentSize(C.size),onClick:e.unref(h)},{default:e.withCtx(()=>[...u[3]||(u[3]=[e.createTextVNode("关闭",-1)])]),_:1},8,["loading","size","onClick"]),e.createVNode(l,{style:{width:"80px"},loading:e.unref(i).loading,type:"primary",size:e.unref(g).pubfn.elementUtil.getComponentSize(C.size),onClick:e.unref(w)},{default:e.withCtx(()=>[...u[4]||(u[4]=[e.createTextVNode("确定",-1)])]),_:1},8,["loading","size","onClick"])]),default:e.withCtx(()=>{var _;return[e.createElementVNode("view",ac,[e.createVNode(p,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=V=>e.isRef(c)?c.value=V:null),placeholder:"输入关键字进行过滤",style:{"margin-bottom":"10px"},size:e.unref(g).pubfn.elementUtil.getComponentSize(C.size)},null,8,["modelValue","size"]),e.createVNode(E,{ref_key:"treeRef",ref:k,data:e.unref(T),props:a.props,"node-key":((_=a.props)==null?void 0:_.value)||"value","highlight-current":"","show-checkbox":C.multiple||C.showCheckbox,"expand-on-click-node":a.expandOnClickNode??!1,"check-on-click-node":a.checkOnClickNode??!0,"check-strictly":a.checkStrictly,"default-expand-all":a.defaultExpandAll,"filter-node-method":e.unref(r),"default-expanded-keys":a.defaultExpandedKeys,"default-checked-keys":a.defaultCheckedKeys,"current-node-key":a.currentNodeKey,accordion:a.accordion,indent:a.indent},null,8,["data","props","node-key","show-checkbox","expand-on-click-node","check-on-click-node","check-strictly","default-expand-all","filter-node-method","default-expanded-keys","default-checked-keys","current-node-key","accordion","indent"])])]}),_:1},8,["modelValue","onOpened"])],4)}}}),rc=De(cc,[["__scopeId","data-v-57c0f081"]]),dc={modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"开始输入..."},width:{type:[String,Number],default:"100%"},minHeight:{type:[String,Number],default:"200px"},maxHeight:{type:[String,Number],default:"500px"}},lc={"update:modelValue":t=>!0,change:t=>!0},Kt=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Jt=["h1","h2","h3","h4","h5","h6"],Gt=[{type:"小",size:"12px"},{type:"正常",size:"16px"},{type:"大",size:"18px"},{type:"超大",size:"22px"}],ic=(t,s)=>{const a=e.ref(null),f=e.ref(null),g=e.ref(""),i=e.ref(0),c=e.reactive({bg_opacity:0,bg_color:"#000000",text_opacity:0,text_color:"#000000",font_size_display:0,header_display:0}),k=e.computed(()=>{const H={};return t.width&&(H.width=typeof t.width=="number"?`${t.width}px`:t.width),H}),T=e.computed(()=>({"--bg_color":c.bg_color,"--bg_opacity":c.bg_opacity,"--text_color":c.text_color,"--text_opacity":c.text_opacity,"--font_size_display":c.font_size_display,"--header_display":c.header_display})),v=(H,J)=>{var Y;(Y=a.value)==null||Y.focus(),document.execCommand(H,!1,J),y()},N=()=>{var H;(H=a.value)==null||H.focus()},y=()=>{var J;let H=((J=a.value)==null?void 0:J.innerHTML)||"";H&&(/<(p|div|h[1-6]|ul|ol|li|hr|table|blockquote|pre)/i.test(H)||(H=`<p>${H}</p>`)),i.value=Date.now(),s("update:modelValue",H),s("change",H)},r=()=>{c.header_display=0,c.font_size_display=0,c.bg_opacity=0,c.text_opacity=c.text_opacity?0:1},m=H=>{const J=Kt[H];v("foreColor",J),c.text_opacity=0,c.text_color=J==="#ffffff"?"#efebeb":J},h=()=>{c.header_display=0,c.font_size_display=0,c.text_opacity=0,c.bg_opacity=c.bg_opacity?0:1},w=H=>{const J=Kt[H];v("backColor",J),c.bg_opacity=0,c.bg_color=J==="#ffffff"?"#efebeb":J},C=()=>{c.header_display=0,c.text_opacity=0,c.bg_opacity=0,c.font_size_display=c.font_size_display?0:1},u=H=>{v("fontSize",Gt[H].size),c.font_size_display=0},l=()=>{c.font_size_display=0,c.text_opacity=0,c.bg_opacity=0,c.header_display=c.header_display?0:1},d=H=>{(H+1).toString(),v("formatBlock",`<${Jt[H].toUpperCase()}>`),c.header_display=0},o=()=>v("bold"),p=()=>v("italic"),E=()=>v("underline"),n=()=>v("strikeThrough"),_=()=>v("justifyLeft"),V=()=>v("justifyCenter"),R=()=>v("justifyRight"),q=()=>v("justifyFull"),I=()=>v("lineHeight","2"),B=()=>v("fontSize","2em"),P=()=>v("formatBlock","<div>"),Q=()=>v("formatBlock","<div>"),z=()=>v("fontName","Pacifico"),$=()=>v("insertOrderedList"),x=()=>v("insertUnorderedList"),L=()=>v("insertUnorderedList"),re=()=>v("indent"),ne=()=>v("outdent"),de=()=>v("insertHorizontalRule"),he=()=>v("subscript"),A=()=>v("superscript"),M=()=>v("formatBlock","<div>"),O=()=>v("undo"),K=()=>v("redo"),se=()=>{a.value&&(a.value.innerHTML="",y())},ae=()=>{v("removeFormat"),c.bg_color="#000000",c.text_color="#000000"},fe=()=>{var H;(H=f.value)==null||H.click()},ge=H=>{var G;const J=H.target,Y=(G=J.files)==null?void 0:G[0];if(!Y)return;const me=new FileReader;me.onload=S=>{var le,Te;const j=(le=S.target)==null?void 0:le.result;(Te=a.value)==null||Te.focus(),document.execCommand("insertImage",!1,j),y()},me.readAsDataURL(Y),J.value=""},Se=()=>{fe()},Ce=H=>{var U;const J=H instanceof Date?H:new Date(H);if(isNaN(J.getTime()))return;const Y=J.getFullYear(),me=J.getMonth()+1,G=J.getDate(),S=J.getHours(),j=J.getMinutes().toString().padStart(2,"0"),le=J.getSeconds();let Te="";S<11?Te="上午":S>13?Te="下午":Te="中午";const Ae=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][J.getDay()],Le=`${Y}年${me}月${G}日${Ae}${Te}${S}时${j}分${le}秒`;(U=a.value)==null||U.focus(),document.execCommand("insertText",!1,Le),y()},Ne=()=>{c.bg_opacity=0,c.text_opacity=0,c.font_size_display=0,c.header_display=0};return e.watch(()=>t.modelValue,H=>{const J=Date.now(),Y=i.value||0;J-Y>60&&a.value&&(a.value.innerHTML=H||"")}),{choice_color_list:Kt,header_list:Jt,fontSize_list:Gt,editorRef:a,fileInputRef:f,formatDate:g,panelState:c,styleCom:k,panelStyle:T,text_color:r,change_text_color:m,bg_color:h,change_bg_color:w,change_font:C,change_font_size:u,trade_name:l,trade_name_size:d,doBold:o,doItalic:p,doUnderline:E,doStrike:n,doAlignLeft:_,doAlignCenter:V,doAlignRight:R,doAlignJustify:q,doLineHeight:I,doLetterSpacing:B,doMarginTop:P,doMarginBottom:Q,doFontFamily:z,doOrderedList:$,doUnorderedList:x,doCheckList:L,doIndent:re,doOutdent:ne,doInsertDivider:de,doScriptSub:he,doScriptSuper:A,doRTL:M,undo:O,redo:K,clear:se,removeFormat:ae,insertImage:fe,insertImageFromFileSelect:Se,onFileInputChange:ge,determine_time:Ce,close_popup:Ne,focusEditor:N,emitChange:y,initContent:()=>{e.nextTick(()=>{a.value&&t.modelValue&&(a.value.innerHTML=t.modelValue)})},disabledFn:()=>t.disabled}},sc={class:"wrapper"},uc={class:"text_color"},mc=["onClick"],pc={class:"bg_color"},fc=["onClick"],hc={class:"fontSize"},_c=["onClick"],yc={class:"iconfont icon-date"},vc={class:"header_size"},gc=["onClick"],bc=["contenteditable","data-placeholder"],kc=e.defineComponent({name:"vc-data-input-editor",__name:"data-input-editor",props:dc,emits:lc,setup(t,{emit:s}){const a=t,f=s,{choice_color_list:g,header_list:i,fontSize_list:c,editorRef:k,fileInputRef:T,formatDate:v,styleCom:N,panelStyle:y,text_color:r,change_text_color:m,bg_color:h,change_bg_color:w,change_font:C,change_font_size:u,trade_name:l,trade_name_size:d,doBold:o,doItalic:p,doUnderline:E,doStrike:n,doAlignLeft:_,doAlignCenter:V,doAlignRight:R,doAlignJustify:q,doLineHeight:I,doLetterSpacing:B,doMarginTop:P,doMarginBottom:Q,doFontFamily:z,doOrderedList:$,doUnorderedList:x,doCheckList:L,doIndent:re,doOutdent:ne,doInsertDivider:de,doScriptSub:he,doScriptSuper:A,doRTL:M,undo:O,redo:K,clear:se,removeFormat:ae,insertImage:fe,insertImageFromFileSelect:ge,onFileInputChange:Se,determine_time:Ce,close_popup:Ne,emitChange:Ve,initContent:ee,disabledFn:H}=ic(a,f);return e.onMounted(()=>{ee()}),(J,Y)=>{const me=e.resolveComponent("el-date-picker");return e.openBlock(),e.createElementBlock("div",{class:"vc-data-input-editor",style:e.normalizeStyle({...e.unref(N),...e.unref(y)}),onClick:Y[36]||(Y[36]=e.withModifiers((...G)=>e.unref(Ne)&&e.unref(Ne)(...G),["self"]))},[e.createElementVNode("div",sc,[e.createElementVNode("div",{class:"toolbar",onClick:Y[33]||(Y[33]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",uc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),(G,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,style:e.normalizeStyle({backgroundColor:G}),onClick:e.withModifiers(j=>e.unref(m)(S),["stop"])},null,12,mc))),128))]),e.createElementVNode("div",pc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),(G,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,style:e.normalizeStyle({backgroundColor:G}),onClick:e.withModifiers(j=>e.unref(w)(S),["stop"])},null,12,fc))),128))]),e.createElementVNode("span",{class:"iconfont icon-text_color",onClick:Y[0]||(Y[0]=e.withModifiers((...G)=>e.unref(r)&&e.unref(r)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-fontbgcolor",onClick:Y[1]||(Y[1]=e.withModifiers((...G)=>e.unref(h)&&e.unref(h)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zitijiacu",onClick:Y[2]||(Y[2]=e.withModifiers((...G)=>e.unref(o)&&e.unref(o)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zitixieti",onClick:Y[3]||(Y[3]=e.withModifiers((...G)=>e.unref(p)&&e.unref(p)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zitixiahuaxian",onClick:Y[4]||(Y[4]=e.withModifiers((...G)=>e.unref(E)&&e.unref(E)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zitishanchuxian",onClick:Y[5]||(Y[5]=e.withModifiers((...G)=>e.unref(n)&&e.unref(n)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zuoduiqi",onClick:Y[6]||(Y[6]=e.withModifiers((...G)=>e.unref(_)&&e.unref(_)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-juzhongduiqi",onClick:Y[7]||(Y[7]=e.withModifiers((...G)=>e.unref(V)&&e.unref(V)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-youduiqi",onClick:Y[8]||(Y[8]=e.withModifiers((...G)=>e.unref(R)&&e.unref(R)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zuoyouduiqi",onClick:Y[9]||(Y[9]=e.withModifiers((...G)=>e.unref(q)&&e.unref(q)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-line-height",onClick:Y[10]||(Y[10]=e.withModifiers((...G)=>e.unref(I)&&e.unref(I)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-Character-Spacing",onClick:Y[11]||(Y[11]=e.withModifiers((...G)=>e.unref(B)&&e.unref(B)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-722bianjiqi_duanqianju",onClick:Y[12]||(Y[12]=e.withModifiers((...G)=>e.unref(P)&&e.unref(P)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-723bianjiqi_duanhouju",onClick:Y[13]||(Y[13]=e.withModifiers((...G)=>e.unref(Q)&&e.unref(Q)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-font",onClick:Y[14]||(Y[14]=e.withModifiers((...G)=>e.unref(z)&&e.unref(z)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-fontsize",onClick:Y[15]||(Y[15]=e.withModifiers((...G)=>e.unref(C)&&e.unref(C)(...G),["stop"]))},[e.createElementVNode("div",hc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(G,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,onClick:e.withModifiers(j=>e.unref(u)(S),["stop"])},e.toDisplayString(G.type),9,_c))),128))])]),e.createElementVNode("span",yc,[e.createVNode(me,{modelValue:e.unref(v),"onUpdate:modelValue":Y[16]||(Y[16]=G=>e.isRef(v)?v.value=G:null),class:"el-date-picker",type:"datetime",placeholder:"",onChange:e.unref(Ce)},null,8,["modelValue","onChange"])]),e.createElementVNode("span",{class:"iconfont icon--checklist",onClick:Y[17]||(Y[17]=e.withModifiers((...G)=>e.unref(L)&&e.unref(L)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-youxupailie",onClick:Y[18]||(Y[18]=e.withModifiers((...G)=>e.unref($)&&e.unref($)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-wuxupailie",onClick:Y[19]||(Y[19]=e.withModifiers((...G)=>e.unref(x)&&e.unref(x)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-outdent",onClick:Y[20]||(Y[20]=e.withModifiers((...G)=>e.unref(ne)&&e.unref(ne)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-indent",onClick:Y[21]||(Y[21]=e.withModifiers((...G)=>e.unref(re)&&e.unref(re)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-fengexian",onClick:Y[22]||(Y[22]=e.withModifiers((...G)=>e.unref(de)&&e.unref(de)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-charutupian",onClick:Y[23]||(Y[23]=e.withModifiers((...G)=>e.unref(fe)&&e.unref(fe)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-charutupian",onClick:Y[24]||(Y[24]=e.withModifiers((...G)=>e.unref(ge)&&e.unref(ge)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-format-header-1",onClick:Y[25]||(Y[25]=e.withModifiers((...G)=>e.unref(l)&&e.unref(l)(...G),["stop"]))},[e.createElementVNode("div",vc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(G,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,onClick:e.withModifiers(j=>e.unref(d)(S),["stop"])},e.toDisplayString(G),9,gc))),128))])]),e.createElementVNode("span",{class:"iconfont icon-zitixiabiao",onClick:Y[26]||(Y[26]=e.withModifiers((...G)=>e.unref(he)&&e.unref(he)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-zitishangbiao",onClick:Y[27]||(Y[27]=e.withModifiers((...G)=>e.unref(A)&&e.unref(A)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-shanchu",onClick:Y[28]||(Y[28]=e.withModifiers((...G)=>e.unref(se)&&e.unref(se)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-direction-rtl",onClick:Y[29]||(Y[29]=e.withModifiers((...G)=>e.unref(M)&&e.unref(M)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-undo",onClick:Y[30]||(Y[30]=e.withModifiers((...G)=>e.unref(O)&&e.unref(O)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-redo",onClick:Y[31]||(Y[31]=e.withModifiers((...G)=>e.unref(K)&&e.unref(K)(...G),["stop"]))}),e.createElementVNode("span",{class:"iconfont icon-clearedformat",onClick:Y[32]||(Y[32]=e.withModifiers((...G)=>e.unref(ae)&&e.unref(ae)(...G),["stop"]))})]),e.createElementVNode("div",{ref_key:"editorRef",ref:k,class:"ql-container",contenteditable:!e.unref(H)(),"data-placeholder":J.placeholder,onInput:Y[34]||(Y[34]=(...G)=>e.unref(Ve)&&e.unref(Ve)(...G))},null,40,bc),e.createElementVNode("input",{ref_key:"fileInputRef",ref:T,type:"file",accept:"image/*",style:{display:"none"},onChange:Y[35]||(Y[35]=(...G)=>e.unref(Se)&&e.unref(Se)(...G))},null,544)])],4)}}}),wc=De(kc,[["__scopeId","data-v-1ce8e2b0"]]),Cc=["url","id"],Bc=["image","video","other"],Sc=["KB","MB","GB"],Vc=["contain","cover","fill","none","scale-down"],Nc={modelValue:{type:[String,Array],default:void 0},returnType:{type:String,values:Cc,default:"url"},fileType:{type:String,values:Bc,default:"image"},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleLimit:{type:Number,default:9},defaultCategory:{type:String,default:""},upload:{type:Boolean,default:!0},updateCategory:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},imageFit:{type:String,values:Vc,default:"cover"},cloudDirectory:{type:String,default:""},cloudPathRemoveChinese:{type:Boolean,default:!0},provider:{type:String,default:""},uniCloud:{type:Object,default:void 0},env:{type:String,default:""},fileSize:{type:Number,default:void 0},sizeUnit:{type:String,values:Sc,default:"MB"},encryptAction:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择素材"},width:{type:[String,Number],default:""}},Tc={"update:modelValue":t=>!0,change:(t,s)=>!0},Ec=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=e.ref([]),i=e.ref(""),c=e.ref([]),k=e.ref(0),T=e.ref(!1),v=e.ref(""),N=e.ref(1),y=e.ref(48),r=e.ref([]),m=e.ref([]),h=e.ref({}),w=e.ref([]),C=e.ref(!1),u=e.ref(""),l=e.ref(!1),d=e.ref(!1),o=e.ref([]),p=e.reactive({show:!1,name:"",url:""}),E=e.computed(()=>{const U=t.modelValue;return t.multiple?Array.isArray(U)&&U.length>0:!!U}),n=e.computed(()=>{const U=t.modelValue;return U?t.multiple?Array.isArray(U)?U:[]:[U]:[]}),_=e.computed(()=>{const U=t.modelValue;return a.pubfn.isNull(U)?!1:t.multiple?Array.isArray(U)&&U.length>=t.multipleLimit:a.pubfn.isNotNull(U)}),V=e.computed(()=>{const U=r.value.length,te=t.modelValue,pe=Array.isArray(te)?te.length:0,oe=t.multipleLimit-pe;return`${U} / ${oe}`}),R=e.computed(()=>{const U=[{_id:"",name:"全部"},{_id:"null",name:"未分组"}];return g.value.forEach(te=>{U.push({_id:te._id,name:te.name})}),U}),q=e.computed(()=>{if(!t.width)return{};const U=a.pubfn.addUnit(t.width);return{width:U,height:U,lineHeight:U}}),I=U=>r.value.includes(U),B=async()=>{l.value=!0;try{const U=await a.callFunction({url:"admin/system_uni/uni-id-files/categories/kh/getList",data:{pageIndex:1,pageSize:1e3},encrypt:t.encryptAction});U.rows?g.value=U.rows:U.data&&(g.value=U.data)}catch(U){Ue.ElMessage.error(U.msg||"获取分类列表失败")}l.value=!1},P=async()=>{T.value=!0;try{const U={pageIndex:N.value,pageSize:y.value,formData:{display_name:v.value,category_id:i.value,type:t.fileType},columns:[{key:"display_name",title:"名称",type:"text",mode:"%%"},{key:"category_id",title:"分类id",type:"text",mode:"="},{key:"type",title:"文件类型",type:"text",mode:"="}]},te=await a.callFunction({url:"admin/system_uni/uni-id-files/files/kh/getList",data:U,encrypt:t.encryptAction});te&&(c.value=te.rows||te.data||[],k.value=te.total||0,t.returnType==="id"&&await Q())}catch(U){Ue.ElMessage.error(U.msg||"获取素材列表失败")}T.value=!1},Q=async()=>{const U=c.value.map(te=>te.file_id).filter(te=>te&&!h.value[te]);if(U.length!==0)try{const te=await a.callFunction({url:"admin/system_uni/uni-id-files/files/sys/getTempFileURL",data:{ids:U},encrypt:t.encryptAction});te.fileList&&te.fileList.forEach(pe=>{pe.fileID&&pe.tempFileURL&&(h.value[pe.fileID]=pe.tempFileURL)})}catch(te){console.error("getTempFileURL 失败",te)}},z=U=>{if(!U)return"";if(t.returnType==="url")return U.url||"";const te=U.file_id||(typeof U=="string"?U:"");return h.value[te]||U.url||""},$=U=>{const te=U.file_id||U;te&&!w.value.includes(te)&&(w.value.push(te),setTimeout(async()=>{const pe=[...w.value];if(w.value=[],pe.length!==0)try{const oe=await a.callFunction({url:"admin/system_uni/uni-id-files/files/sys/getTempFileURL",data:{ids:pe},encrypt:t.encryptAction});oe.fileList&&oe.fileList.forEach(Ee=>{Ee.fileID&&Ee.tempFileURL&&(h.value[Ee.fileID]=Ee.tempFileURL)})}catch(oe){console.error("批量获取临时URL失败",oe)}},50))},x=async()=>{if(!u.value){Ue.ElMessage.warning("请输入分类名称");return}try{const U=await a.callFunction({url:"admin/system_uni/uni-id-files/categories/sys/add",data:{name:u.value},encrypt:t.encryptAction});U.id||U.data||U.code===0?(Ue.ElMessage.success("添加成功"),u.value="",C.value=!1,await B()):Ue.ElMessage.error(U.msg||"添加失败")}catch(U){Ue.ElMessage.error(U.msg||"添加分类失败")}},L=async U=>{try{const te=await a.callFunction({url:"admin/system_uni/uni-id-files/categories/sys/delete",data:{_id:U._id},encrypt:t.encryptAction});te.code===0?(Ue.ElMessage.success("删除成功"),await B(),i.value===U._id&&(i.value="",await P())):Ue.ElMessage.error(te.msg||"删除失败")}catch(te){Ue.ElMessage.error(te.msg||"删除分类失败")}},re=()=>{const U={image:".jpg,.jpeg,.png,.gif,.webp,.bmp",video:".mp4,.webm,.ogg,.mov,.avi",other:"*"},te=document.createElement("input");te.type="file",te.accept=U[t.fileType]||".jpg,.jpeg,.png,.gif",t.multiple&&(te.multiple=!0),te.onchange=async()=>{const pe=te.files;if(!(!pe||pe.length===0)){d.value=!0,o.value=[];for(const oe of Array.from(pe)){if(t.fileSize&&!ne(oe))continue;const Ee=e.reactive({name:oe.name,percent:0,status:"uploading",url:""});o.value.push(Ee);const Me=URL.createObjectURL(oe);await a.uploadFile({title:"上传中...",filePath:Me,file:oe,fileType:t.fileType,cloudDirectory:t.cloudDirectory,cloudPathRemoveChinese:t.cloudPathRemoveChinese,provider:t.provider,uniCloud:t.uniCloud,env:t.env,needSave:!0,category_id:i.value||t.defaultCategory,onUploadProgress:je=>{Ee.percent=je.progress||0},success:je=>{Ee.status="success",Ee.url=je.url||"",Ee.percent=100},fail:je=>{Ee.status="fail",Ue.ElMessage.error(je.msg||"上传失败")}})}await P(),setTimeout(()=>{o.value.every(Ee=>Ee.status!=="uploading")&&setTimeout(()=>{d.value=!1},1e3)},500)}},te.click()},ne=U=>{if(!t.fileSize)return!0;const te=(t.sizeUnit||"MB").toUpperCase(),pe={B:1,KB:1024,MB:1024*1024,GB:1024*1024*1024},oe=t.fileSize*(pe[te]||1024*1024);return U.size>oe?(Ue.ElMessage.error(`${U.name} 超出 ${t.fileSize} ${t.sizeUnit} 大小限制`),!1):!0},de=()=>{if(t.disabled)return;J();const U=t.modelValue;if(a.pubfn.isNull(U)&&t.multiple&&s("update:modelValue",[]),t.returnType==="id"&&a.pubfn.isNotNull(U)&&he(),U)if(t.multiple&&Array.isArray(U))m.value=[...U],U.forEach(te=>{const pe=typeof te=="string"?te:(te==null?void 0:te.url)||(te==null?void 0:te.file_id);pe&&r.value.push(pe)});else{m.value=[U];const te=typeof U=="string"?U:(U==null?void 0:U.url)||(U==null?void 0:U.file_id);te&&r.value.push(te)}g.value.length||(i.value=t.defaultCategory||"",v.value="",N.value=1),f.value=!0,g.value.length||B(),c.value.length||P()},he=async()=>{const U=t.modelValue;if(!U)return;const te=[];if(t.multiple&&Array.isArray(U))U.forEach(pe=>{const oe=typeof pe=="string"?pe:pe==null?void 0:pe.file_id;oe&&!h.value[oe]&&te.push(oe)});else{const pe=typeof U=="string"?U:U==null?void 0:U.file_id;pe&&!h.value[pe]&&te.push(pe)}if(te.length!==0)try{const pe=await a.callFunction({url:"admin/system_uni/uni-id-files/files/sys/getTempFileURL",data:{ids:te},encrypt:t.encryptAction});pe.fileList&&pe.fileList.forEach(oe=>{oe.fileID&&oe.tempFileURL&&(h.value[oe.fileID]=oe.tempFileURL)})}catch(pe){console.error("初始化获取临时URL失败",pe)}},A=U=>{const te=U._id||U.file_id||U.url;if(t.multiple){const pe=r.value.indexOf(te);if(pe>-1)r.value.splice(pe,1),m.value.splice(pe,1);else{if(r.value.length>=t.multipleLimit){Ue.ElMessage.warning("已达上限");return}r.value.push(te),m.value.push(t.returnType==="id"?U.file_id:U.url)}}else r.value=[te],m.value=[t.returnType==="id"?U.file_id:U.url],M()},M=()=>{if(m.value.length===0){f.value=!1;return}let U;t.multiple?U=[...m.value]:U=m.value[0]||"",s("update:modelValue",U),s("change",U,O(U)),f.value=!1},O=U=>{if(!U)return null;const te=c.value;return t.multiple&&Array.isArray(U)?U.map(pe=>te.find(oe=>t.returnType==="id"?oe.file_id===pe:oe.url===pe)||{url:pe,file_id:pe}):te.find(pe=>t.returnType==="id"?pe.file_id===U:pe.url===U)||{url:U,file_id:U}},K=()=>{f.value=!1},se=U=>{if(t.disabled)return;const te=t.modelValue;if(t.multiple&&Array.isArray(te)){const pe=[...te];pe.splice(U,1),s("update:modelValue",pe),s("change",pe,O(pe))}else s("update:modelValue",""),s("change","",null)},ae=()=>{t.disabled||(J(),t.multiple?(s("update:modelValue",[]),s("change",[],[])):(s("update:modelValue",""),s("change","",null)))},fe=U=>U?typeof U=="string"?t.returnType==="id"&&h.value[U]||U:U.url?U.url:U.file_id&&h.value[U.file_id]||"":"",ge=U=>{const te=fe(U);te&&(p.url=te,p.name=te,p.show=!0)},Se=U=>{U&&window.open(U)},Ce=U=>{if(!U)return"";if(t.fileType==="video"){const te="x-oss-process=video/snapshot,t_1000,f_jpg,w_600,h_600,m_fast",pe="vframe/jpg/offset/1/w_600/h_600",oe=U.indexOf("?")===-1?"?":"&";return`${U}${oe}${te}&${pe}`}return U},Ne=U=>{if(U.cover_image)return U.cover_image;const te=z(U);return te?`${te}?x-oss-process=video/snapshot,t_1000,f_jpg,m_fast&vframe/jpg/offset/1`:""},Ve=U=>{const te=parseInt(U)||0,pe=Math.floor(te/3600),oe=Math.floor(te%3600/60),Ee=te%60,Me=je=>je<10?"0"+je:""+je;return`${Me(pe)}:${Me(oe)}:${Me(Ee)}`},ee=U=>{if(!U)return"";const te=U.split(".");return te.length>1?te[te.length-1]:""},H=U=>{const te=r.value.indexOf(U);return te>-1?te+1:""},J=()=>{r.value=[],m.value=[]},Y=e.reactive({isStart:!1,startIndex:null,endIndex:null}),me=U=>{var te,pe;if(t.multiple){Y.isStart=!0;const oe=Number((pe=(te=U.currentTarget)==null?void 0:te.dataset)==null?void 0:pe.index);Y.startIndex=oe}},G=U=>{var te,pe;if(U.preventDefault(),Y.isStart){const oe=Number((pe=(te=U.currentTarget)==null?void 0:te.dataset)==null?void 0:pe.index);oe>-1&&(Y.endIndex=oe)}},S=U=>{U.preventDefault()},j=U=>{U.preventDefault();const{startIndex:te,endIndex:pe}=Y;if(t.multiple&&typeof te=="number"&&typeof pe=="number"&&te!==pe){const oe=JSON.parse(JSON.stringify(t.modelValue||[])),[Ee]=oe.splice(te,1);oe.splice(pe,0,Ee),s("update:modelValue",oe),s("change",oe,O(oe))}Y.isStart=!1,Y.startIndex=null,Y.endIndex=null},le=U=>{i.value=U,N.value=1,P()},Te=()=>{N.value=1,P()},Ae=U=>{N.value=U,P()},Le=U=>{y.value=U,N.value=1,P()};return e.watch(()=>t.modelValue,async U=>{t.returnType==="id"&&U&&await he()},{immediate:!0}),{vc:a,dialogVisible:f,categories:g,currentCategoryId:i,categoryOptions:R,categoryLoading:l,categoryDialogVisible:C,newCategoryName:u,fileList:c,fileListTotal:k,fileListLoading:T,searchKeyword:v,currentPage:N,pageSize:y,selectedIds:r,selectedValues:m,fileMap:h,failedImageIds:w,uploadDialogVisible:d,uploadProgressList:o,dragData:Y,preview:p,hasValue:E,displayList:n,isMaxCom:_,selectedNumCom:V,customStyle:q,isSelectedInDialog:I,getCategories:B,getFileList:P,batchGetTempFileURL:Q,getFileUrl:z,onImageLoadError:$,addCategory:x,deleteCategory:L,uploadFile:re,checkFileSize:ne,openDialog:de,toggleSelect:A,confirmSelect:M,cancelSelect:K,getOption:O,deleteItem:se,clearItem:ae,getDisplayUrl:fe,previewItem:ge,downloadFile:Se,imageSrc:Ce,coverImageFilter:Ne,durationFilter:Ve,suffixFilter:ee,selectedIndexFn:H,cleanSelected:J,handleDragstart:me,handleDragenter:G,handleDragover:S,handleDragend:j,changeCategory:le,handleSearch:Te,handlePageChange:Ae,handleSizeChange:Le}},zc={class:"vc-data-input-file-select"},Dc={key:0,class:"vc-contents"},Fc={class:"image-list"},Ic=["draggable","data-index"],Ac={key:0,class:"image-mask"},Mc={key:1,class:"image-mask"},Pc={class:"image-list"},Rc={key:0,class:"image-mask"},Lc={key:1,class:"image-mask"},$c={style:{margin:"auto",height:"80vh"}},Oc=["src"],Uc={style:{width:"100%","text-align":"center"}},qc={class:"vc-data-input-file-select page-body"},jc={class:"header"},Wc={key:0,class:"header-item"},Kc={class:"header-item"},Hc={class:"nav"},xc=["onClick"],Yc={class:"nav-name text-one"},Jc={key:0,class:"nav-btn"},Gc={class:"main"},Qc={key:0,class:"empty-list"},Xc=["onClick"],Zc={class:"item-file"},er={key:1,class:"vc-contents"},tr={class:"duration"},nr={class:"size"},or={key:2,class:"other-icon"},ar={key:3,class:"suffix"},cr={class:"suffix-index"},rr={class:"tips"},dr={class:"text-one",style:{"text-align":"center"}},lr={class:"footer"},ir={class:"upload-progress-list"},sr={class:"progress-name"},ur=e.defineComponent({name:"vc-data-input-file-select",__name:"data-input-file-select",props:Nc,emits:Tc,setup(t,{emit:s}){const a=t,f=s,{vc:g,dialogVisible:i,currentCategoryId:c,categoryOptions:k,categoryLoading:T,categoryDialogVisible:v,newCategoryName:N,fileList:y,fileListTotal:r,fileListLoading:m,searchKeyword:h,currentPage:w,pageSize:C,uploadDialogVisible:u,uploadProgressList:l,preview:d,hasValue:o,displayList:p,isMaxCom:E,selectedNumCom:n,customStyle:_,isSelectedInDialog:V,getFileUrl:R,onImageLoadError:q,addCategory:I,deleteCategory:B,uploadFile:P,openDialog:Q,toggleSelect:z,confirmSelect:$,cancelSelect:x,deleteItem:L,clearItem:re,getDisplayUrl:ne,previewItem:de,downloadFile:he,imageSrc:A,coverImageFilter:M,durationFilter:O,suffixFilter:K,selectedIndexFn:se,handleDragstart:ae,handleDragenter:fe,handleDragover:ge,handleDragend:Se,changeCategory:Ce,handleSearch:Ne,handlePageChange:Ve,handleSizeChange:ee}=Ec(a,f);return(H,J)=>{const Y=e.resolveComponent("el-image"),me=e.resolveComponent("el-icon"),G=e.resolveComponent("block"),S=e.resolveComponent("el-dialog"),j=e.resolveComponent("el-button"),le=e.resolveComponent("el-input"),Te=e.resolveComponent("el-popconfirm"),Ae=e.resolveComponent("el-pagination"),Le=e.resolveComponent("el-form-item"),U=e.resolveComponent("el-form"),te=e.resolveComponent("el-progress"),pe=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("view",zc,[H.controls?(e.openBlock(),e.createElementBlock("view",Dc,[H.multiple?(e.openBlock(),e.createBlock(G,{key:0},{default:e.withCtx(()=>[e.createElementVNode("view",Fc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(oe,Ee)=>(e.openBlock(),e.createElementBlock("view",{key:Ee,class:"image-item",style:e.normalizeStyle({...e.unref(_),...H.disabled?{}:{cursor:"move"}}),draggable:!H.disabled,"data-index":Ee,onDragstart:J[0]||(J[0]=(...Me)=>e.unref(ae)&&e.unref(ae)(...Me)),onDragend:J[1]||(J[1]=(...Me)=>e.unref(Se)&&e.unref(Se)(...Me)),onDragover:J[2]||(J[2]=e.withModifiers((...Me)=>e.unref(ge)&&e.unref(ge)(...Me),["prevent"])),onDragenter:J[3]||(J[3]=e.withModifiers((...Me)=>e.unref(fe)&&e.unref(fe)(...Me),["prevent"]))},[e.createVNode(Y,{class:"image",src:e.unref(A)(e.unref(ne)(oe)),fit:H.imageFit},null,8,["src","fit"]),H.disabled?(e.openBlock(),e.createElementBlock("view",Ac,[e.createVNode(me,{class:"mask-item mask-item-11",size:"20",color:"#ffffff",onClick:e.withModifiers(Me=>e.unref(de)(oe),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.ZoomIn))]),_:1},8,["onClick"])])):(e.openBlock(),e.createElementBlock("view",Mc,[e.createVNode(me,{class:"mask-item mask-item-1",size:"20",color:"#ffffff",onClick:e.withModifiers(Me=>e.unref(de)(oe),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.ZoomIn))]),_:1},8,["onClick"]),e.createVNode(me,{class:"mask-item mask-item-2",size:"20",color:"#ffffff",onClick:e.withModifiers(Me=>e.unref(L)(Ee),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Delete))]),_:1},8,["onClick"])]))],44,Ic))),128)),e.unref(E)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"add-btn",style:e.normalizeStyle(e.unref(_)),onClick:J[4]||(J[4]=(...oe)=>e.unref(Q)&&e.unref(Q)(...oe))},[e.createVNode(me,{size:"28",color:"#8c939d"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Plus))]),_:1})],4))])]),_:1})):(e.openBlock(),e.createBlock(G,{key:1},{default:e.withCtx(()=>[e.createElementVNode("view",Pc,[e.unref(o)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"image-item",style:e.normalizeStyle(e.unref(_))},[e.createVNode(Y,{class:"image",src:e.unref(A)(e.unref(ne)(H.modelValue)),fit:H.imageFit},null,8,["src","fit"]),H.disabled?(e.openBlock(),e.createElementBlock("view",Rc,[e.createVNode(me,{class:"mask-item mask-item-11",size:"20",color:"#ffffff",onClick:J[5]||(J[5]=e.withModifiers(oe=>e.unref(de)(H.modelValue),["stop"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.ZoomIn))]),_:1})])):(e.openBlock(),e.createElementBlock("view",Lc,[e.createVNode(me,{class:"mask-item mask-item-1",size:"20",color:"#ffffff",onClick:J[6]||(J[6]=e.withModifiers(oe=>e.unref(de)(H.modelValue),["stop"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.ZoomIn))]),_:1}),e.createVNode(me,{class:"mask-item mask-item-2",size:"20",color:"#ffffff",onClick:e.withModifiers(e.unref(re),["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Delete))]),_:1},8,["onClick"])]))],4)):e.createCommentVNode("",!0),e.unref(E)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"add-btn",style:e.normalizeStyle(e.unref(_)),onClick:J[7]||(J[7]=(...oe)=>e.unref(Q)&&e.unref(Q)(...oe))},[e.createVNode(me,{size:"28",color:"#8c939d"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Plus))]),_:1})],4))])]),_:1}))])):e.createCommentVNode("",!0),e.createVNode(S,{modelValue:e.unref(d).show,"onUpdate:modelValue":J[10]||(J[10]=oe=>e.unref(d).show=oe),width:"800px",top:"2vh","append-to-body":!0,"close-on-click-modal":!0,"custom-class":"padding20"},{default:e.withCtx(()=>[H.fileType==="image"?(e.openBlock(),e.createBlock(G,{key:0},{default:e.withCtx(()=>[e.createVNode(Y,{style:{width:"100%"},src:e.unref(d).url,fit:"contain"},null,8,["src"])]),_:1})):H.fileType==="video"?(e.openBlock(),e.createBlock(G,{key:1},{default:e.withCtx(()=>[e.createElementVNode("view",$c,[e.unref(d).show?(e.openBlock(),e.createElementBlock("video",{key:0,style:{width:"100%",height:"100%",display:"block"},src:e.unref(d).url,autoplay:"","object-fit":"scale-down"},null,8,Oc)):e.createCommentVNode("",!0)])]),_:1})):(e.openBlock(),e.createBlock(G,{key:2},{default:e.withCtx(()=>[e.createElementVNode("view",Uc,[J[19]||(J[19]=e.createElementVNode("view",null,"该文件不支持预览",-1)),e.createElementVNode("view",{style:{color:"cornflowerblue","text-decoration":"underline",cursor:"pointer"},onClick:J[8]||(J[8]=oe=>e.unref(he)(e.unref(d).url))},e.toDisplayString(e.unref(d).name),1),e.createElementVNode("view",{style:{color:"cornflowerblue","text-decoration":"underline",cursor:"pointer"},onClick:J[9]||(J[9]=oe=>e.unref(he)(e.unref(d).url))}," 点击下载 ")])]),_:1}))]),_:1},8,["modelValue"]),e.createVNode(S,{modelValue:e.unref(i),"onUpdate:modelValue":J[14]||(J[14]=oe=>e.isRef(i)?i.value=oe:null),title:"列表",width:"1200px",top:"2vh","append-to-body":!0,"close-on-click-modal":!0,class:"vc-data-input-file-select file-list",onClose:e.unref(x)},{default:e.withCtx(()=>[e.createElementVNode("view",qc,[e.createElementVNode("view",jc,[H.upload&&H.controls?(e.openBlock(),e.createElementBlock("view",Wc,[e.createVNode(j,{class:"upload-btn",type:"primary",size:"default",icon:e.unref(Ie.Plus),round:!1,onClick:e.unref(P)},{default:e.withCtx(()=>[...J[20]||(J[20]=[e.createTextVNode("上传到当前分组",-1)])]),_:1},8,["icon","onClick"])])):e.createCommentVNode("",!0),e.createElementVNode("view",Kc,[e.createVNode(le,{class:"search-input",modelValue:e.unref(h),"onUpdate:modelValue":J[11]||(J[11]=oe=>e.isRef(h)?h.value=oe:null),clearable:"",size:"default",placeholder:"请输入名称搜索...",onKeyup:e.withKeys(e.unref(Ne),["enter"]),onClear:e.unref(Ne)},null,8,["modelValue","onKeyup","onClear"]),e.createVNode(j,{class:"border-radius-0440",type:"primary",size:"default",round:!1,icon:e.unref(Ie.Search),loading:e.unref(m),onClick:e.withModifiers(e.unref(Ne),["stop"])},null,8,["icon","loading","onClick"])])]),e.withDirectives((e.openBlock(),e.createElementBlock("view",Hc,[H.updateCategory&&H.controls?(e.openBlock(),e.createElementBlock("view",{key:0,class:"add-group",onClick:J[12]||(J[12]=e.withModifiers(oe=>v.value=!0,["stop"]))}," 添加分组 ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(k),(oe,Ee)=>(e.openBlock(),e.createElementBlock("view",{key:oe._id,class:e.normalizeClass(["nav-list",{selected_nav:e.unref(c)===oe._id}]),onClick:e.withModifiers(Me=>e.unref(Ce)(oe._id),["stop"])},[e.createElementVNode("text",Yc,e.toDisplayString(oe.name),1),H.updateCategory&&H.controls&&Ee>1?(e.openBlock(),e.createElementBlock("view",Jc,[e.createVNode(Te,{title:"确定删除该分组吗?(组内图片不会删除)",onConfirm:Me=>e.unref(B)(oe)},{reference:e.withCtx(()=>[e.createVNode(me,{class:"btn",size:13,color:"#606266",onClick:J[13]||(J[13]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Delete))]),_:1})]),_:1},8,["onConfirm"])])):e.createCommentVNode("",!0)],10,xc))),128))])),[[pe,e.unref(T)]]),e.withDirectives((e.openBlock(),e.createElementBlock("view",Gc,[!e.unref(m)&&e.unref(y).length===0?(e.openBlock(),e.createElementBlock("view",Qc," 此分组为空 ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),oe=>(e.openBlock(),e.createElementBlock("view",{key:oe._id||oe.file_id,class:e.normalizeClass(["content-item",{"choose-image":e.unref(V)(oe._id||oe.file_id)}]),onClick:e.withModifiers(Ee=>e.unref(z)(oe),["stop"])},[e.createElementVNode("view",Zc,[oe.type==="image"?(e.openBlock(),e.createBlock(Y,{key:0,class:"image",src:e.unref(R)(oe),fit:"contain",lazy:"",onError:Ee=>e.unref(q)(oe)},null,8,["src","onError"])):oe.type==="video"?(e.openBlock(),e.createElementBlock("view",er,[e.createVNode(Y,{class:"image",src:e.unref(M)(oe),fit:"contain"},null,8,["src"]),e.createElementVNode("view",tr,e.toDisplayString(e.unref(O)(oe.duration)),1),e.createElementVNode("view",nr,e.toDisplayString(e.unref(g).filters.sizeFilter(oe.size,["B","KB","MB","GB"],1024,1,"MB")),1)])):(e.openBlock(),e.createElementBlock("view",or,[e.createVNode(me,{size:"80",color:"#d5d5de"},{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Document))]),_:1})])),oe.type==="other"?(e.openBlock(),e.createElementBlock("view",ar,e.toDisplayString(e.unref(K)(oe.original_name||oe.original_file_name)),1)):e.createCommentVNode("",!0),e.createElementVNode("view",cr,e.toDisplayString(e.unref(se)(oe._id||oe.file_id)),1)]),e.createElementVNode("view",rr,[e.createElementVNode("view",dr,e.toDisplayString(oe.display_name||oe.original_file_name||""),1)])],10,Xc))),128))])),[[pe,e.unref(m)]]),e.createElementVNode("view",lr,[e.createVNode(Ae,{class:"paging",background:"",layout:"total, sizes, prev, pager, next","pager-count":5,size:"small","current-page":e.unref(w),"page-size":e.unref(C),"page-sizes":[48,120,240],total:e.unref(r),onSizeChange:e.unref(ee),onCurrentChange:e.unref(Ve)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"]),H.multiple?(e.openBlock(),e.createBlock(j,{key:0,size:"small",type:"primary",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(" 选中 "+e.toDisplayString(e.unref(n)),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)])])]),_:1},8,["modelValue","onClose"]),e.createVNode(S,{modelValue:e.unref(v),"onUpdate:modelValue":J[17]||(J[17]=oe=>e.isRef(v)?v.value=oe:null),title:"新增分类",width:"400px","append-to-body":!0},{footer:e.withCtx(()=>[e.createVNode(j,{onClick:J[16]||(J[16]=oe=>v.value=!1)},{default:e.withCtx(()=>[...J[21]||(J[21]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(j,{type:"primary",onClick:e.unref(I)},{default:e.withCtx(()=>[...J[22]||(J[22]=[e.createTextVNode("确定",-1)])]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(U,null,{default:e.withCtx(()=>[e.createVNode(Le,{label:"分类名称"},{default:e.withCtx(()=>[e.createVNode(le,{modelValue:e.unref(N),"onUpdate:modelValue":J[15]||(J[15]=oe=>e.isRef(N)?N.value=oe:null),placeholder:"请输入分类名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(S,{modelValue:e.unref(u),"onUpdate:modelValue":J[18]||(J[18]=oe=>e.isRef(u)?u.value=oe:null),title:"上传进度",width:"500px","append-to-body":!0},{default:e.withCtx(()=>[e.createElementVNode("view",ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(oe,Ee)=>(e.openBlock(),e.createElementBlock("view",{key:Ee,class:"upload-progress-item"},[e.createElementVNode("text",sr,e.toDisplayString(oe.name),1),e.createVNode(te,{percentage:oe.percent,status:oe.status==="success"?"success":oe.status==="fail"?"exception":""},null,8,["percentage","status"])]))),128))])]),_:1},8,["modelValue"])])}}}),mr={modelValue:{type:[String,Array],default:void 0},placeholder:{type:String,default:""},size:{type:String,default:""},width:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},filter:{type:[Function,String],default:void 0}},pr={"update:modelValue":t=>!0,change:t=>!0},fr=["vc-icon-shengji3-xianxing","vc-icon-zhankaicaidan","vc-icon-shouqicaidan","vc-icon-similar","vc-icon-punch_light","vc-icon-appreciatefill","vc-icon-evaluate_fill","vc-icon-infofill","vc-icon-furniture","vc-icon-info","vc-icon-dress","vc-icon-tao","vc-icon-coffee","vc-icon-mobiletao","vc-icon-sports","vc-icon-forwardfill","vc-icon-group_light","vc-icon-forward","vc-icon-location_light","vc-icon-rechargefill","vc-icon-attention_light","vc-icon-recharge","vc-icon-group_fill_light","vc-icon-group_fill","vc-icon-voice","vc-icon-play_forward_fill","vc-icon-voicefill","vc-icon-subscription_light","vc-icon-friendfavor","vc-icon-deliver_fill","vc-icon-wifi","vc-icon-notice_forbid_fill","vc-icon-share","vc-icon-qr_code_light","vc-icon-wefill","vc-icon-settings_light","vc-icon-we","vc-icon-pick","vc-icon-lightauto","vc-icon-form_favor_light","vc-icon-lightforbid","vc-icon-round_comment_light","vc-icon-lightfill","vc-icon-phone_light","vc-icon-camerarotate","vc-icon-round_down_light","vc-icon-light","vc-icon-friend_settings_light","vc-icon-barcode","vc-icon-change","vc-icon-flashlightclose","vc-icon-round_list_light","vc-icon-flashlightopen","vc-icon-ticket_fill","vc-icon-searchlist","vc-icon-round_friend_fill","vc-icon-service","vc-icon-round_crown_fill","vc-icon-sort","vc-icon-round_link_fill","vc-icon-1212","vc-icon-round_light_fill","vc-icon-down","vc-icon-round_favor_fill","vc-icon-mobile","vc-icon-round_menu_fill","vc-icon-mobilefill","vc-icon-round_location_fill","vc-icon-copy","vc-icon-round_pay_fill","vc-icon-countdownfill","vc-icon-round_like_fill","vc-icon-countdown","vc-icon-round_people_fill","vc-icon-noticefill","vc-icon-round_pay","vc-icon-notice","vc-icon-round_rank_fill","vc-icon-qiang","vc-icon-round_redpacket_fill","vc-icon-upstagefill","vc-icon-round_skin_fill","vc-icon-upstage","vc-icon-round_record_fill","vc-icon-babyfill","vc-icon-round_ticket_fill","vc-icon-baby","vc-icon-round_redpacket","vc-icon-brandfill","vc-icon-round_text_fill","vc-icon-brand","vc-icon-round_ticket","vc-icon-choicenessfill","vc-icon-round_transfer_fill","vc-icon-choiceness","vc-icon-subtitle_block_light","vc-icon-clothesfill","vc-icon-warn_light","vc-icon-clothes","vc-icon-round_transfer","vc-icon-creativefill","vc-icon-vip_code_light","vc-icon-creative","vc-icon-subtitle_unblock_light","vc-icon-female","vc-icon-round_shop_fill","vc-icon-keyboard","vc-icon-oppose_fill_light","vc-icon-male","vc-icon-oppose_light","vc-icon-newfill","vc-icon-living","vc-icon-new","vc-icon-goods_hot_fill","vc-icon-pullleft","vc-icon-ticket_money_fill","vc-icon-pullright","vc-icon-arrow_left_fill","vc-icon-rankfill","vc-icon-arrow_up_fill","vc-icon-rank","vc-icon-xiaoheiqun","vc-icon-bad","vc-icon-auction","vc-icon-cameraadd","vc-icon-return","vc-icon-focus","vc-icon-mall_light","vc-icon-friendfill","vc-icon-mall_fill_light","vc-icon-cameraaddfill","vc-icon-broadcast_fill","vc-icon-apps","vc-icon-at","vc-icon-paintfill","vc-icon-card_fill","vc-icon-paint","vc-icon-picfill","vc-icon-refresharrow","vc-icon-markfill","vc-icon-mark","vc-icon-presentfill","vc-icon-repeal","vc-icon-album","vc-icon-peoplefill","vc-icon-people","vc-icon-servicefill","vc-icon-repair","vc-icon-file","vc-icon-repairfill","vc-icon-taoxiaopu","vc-icon-attentionfill","vc-icon-attention","vc-icon-commandfill","vc-icon-command","vc-icon-communityfill","vc-icon-community","vc-icon-read","vc-icon-suan","vc-icon-hua","vc-icon-ju","vc-icon-tian","vc-icon-calendar","vc-icon-cut","vc-icon-magic","vc-icon-backwardfill","vc-icon-playfill","vc-icon-stop","vc-icon-tagfill","vc-icon-tag","vc-icon-group","vc-icon-all","vc-icon-backdelete","vc-icon-hotfill","vc-icon-hot","vc-icon-post","vc-icon-radiobox","vc-icon-rounddown","vc-icon-upload","vc-icon-writefill","vc-icon-write","vc-icon-radioboxfill","vc-icon-punch","vc-icon-shake","vc-icon-add1","vc-icon-move","vc-icon-safe","vc-icon-haodian","vc-icon-mao","vc-icon-qi","vc-icon-ye","vc-icon-juhuasuan","vc-icon-taoqianggou","vc-icon-tianmao","vc-icon-activityfill","vc-icon-crownfill","vc-icon-goodsfill","vc-icon-messagefill","vc-icon-profilefill","vc-icon-sponsorfill","vc-icon-upblock","vc-icon-weblock","vc-icon-weunblock","vc-icon-myfill","vc-icon-emojifill","vc-icon-emojiflashfill","vc-icon-flashbuyfill-copy","vc-icon-goodsfavor","vc-icon-musicfill","vc-icon-musicforbidfill","vc-icon-xiamiforbid","vc-icon-xiami","vc-icon-roundleftfill","vc-icon-triangledownfill","vc-icon-triangleupfill","vc-icon-roundleftfill-copy","vc-icon-pulldown1","vc-icon-emojilight","vc-icon-keyboardlight","vc-icon-recordfill","vc-icon-appreciate","vc-icon-recordlight","vc-icon-check","vc-icon-record","vc-icon-close","vc-icon-roundaddlight","vc-icon-edit","vc-icon-soundlight","vc-icon-emoji","vc-icon-cardboardfill","vc-icon-favorfill","vc-icon-cardboard","vc-icon-favor","vc-icon-formfill","vc-icon-loading","vc-icon-coin","vc-icon-locationfill","vc-icon-sortlight","vc-icon-location","vc-icon-cardboardforbid","vc-icon-phone","vc-icon-circlefill","vc-icon-roundcheckfill","vc-icon-circle","vc-icon-roundcheck","vc-icon-attentionforbid","vc-icon-roundclosefill","vc-icon-attentionforbidfill","vc-icon-roundclose","vc-icon-attentionfavorfill","vc-icon-roundrightfill","vc-icon-attentionfavor","vc-icon-roundright","vc-icon-piclight","vc-icon-search","vc-icon-shoplight","vc-icon-taxi","vc-icon-voicelight","vc-icon-timefill","vc-icon-attentionfavorfill-copy","vc-icon-time","vc-icon-full","vc-icon-unfold","vc-icon-mail","vc-icon-warnfill","vc-icon-peoplelist","vc-icon-warn","vc-icon-goodsnewfill","vc-icon-camerafill","vc-icon-goodsnew","vc-icon-camera","vc-icon-medalfill","vc-icon-commentfill","vc-icon-medal","vc-icon-comment","vc-icon-newsfill","vc-icon-likefill","vc-icon-newshotfill","vc-icon-like","vc-icon-newshot","vc-icon-notificationfill","vc-icon-news","vc-icon-notification","vc-icon-videofill","vc-icon-order","vc-icon-video","vc-icon-samefill","vc-icon-askfill","vc-icon-same","vc-icon-ask","vc-icon-deliver","vc-icon-exit","vc-icon-evaluate","vc-icon-skinfill","vc-icon-pay","vc-icon-skin","vc-icon-send","vc-icon-moneybagfill","vc-icon-shop","vc-icon-usefullfill","vc-icon-ticket","vc-icon-usefull","vc-icon-wang","vc-icon-moneybag","vc-icon-back","vc-icon-redpacket_fill","vc-icon-cascades","vc-icon-subscription","vc-icon-discover","vc-icon-home_light","vc-icon-list","vc-icon-my_light","vc-icon-more","vc-icon-community_light","vc-icon-scan","vc-icon-cart_light","vc-icon-settings","vc-icon-we_light","vc-icon-questionfill","vc-icon-home_fill_light","vc-icon-question","vc-icon-cart_fill_light","vc-icon-shopfill","vc-icon-community_fill_light","vc-icon-form","vc-icon-my_fill_light","vc-icon-wangfill","vc-icon-we_fill_light","vc-icon-pic","vc-icon-skin_light","vc-icon-filter","vc-icon-search_light","vc-icon-footprint","vc-icon-scan_light","vc-icon-top","vc-icon-people_list_light","vc-icon-pulldown","vc-icon-message_light","vc-icon-pullup","vc-icon-close_light","vc-icon-right","vc-icon-add_light","vc-icon-refresh","vc-icon-profile_light","vc-icon-moreandroid","vc-icon-service_light","vc-icon-deletefill","vc-icon-friend_add_light","vc-icon-refund","vc-icon-edit_light","vc-icon-cart","vc-icon-camera_light","vc-icon-qrcode","vc-icon-hot_light","vc-icon-remind","vc-icon-refresh_light","vc-icon-delete","vc-icon-back_light","vc-icon-profile","vc-icon-share_light","vc-icon-home","vc-icon-comment_light","vc-icon-cartfill","vc-icon-appreciate_light","vc-icon-discoverfill","vc-icon-favor_light","vc-icon-homefill","vc-icon-appreciate_fill_light","vc-icon-message","vc-icon-comment_fill_light","vc-icon-addressbook","vc-icon-wang_light","vc-icon-link","vc-icon-more_android_light","vc-icon-lock","vc-icon-friend_light","vc-icon-unlock","vc-icon-more_light","vc-icon-vip","vc-icon-goods_favor_light","vc-icon-weibo","vc-icon-goods_new_fill_light","vc-icon-activity","vc-icon-goods_new_light","vc-icon-big","vc-icon-goods_light","vc-icon-friendaddfill","vc-icon-medal_fill_light","vc-icon-friendadd","vc-icon-medal_light","vc-icon-friendfamous","vc-icon-news_fill_light","vc-icon-friend","vc-icon-news_hot_fill_light","vc-icon-goods","vc-icon-news_hot_light","vc-icon-selection","vc-icon-news_light","vc-icon-tmall","vc-icon-video_fill_light","vc-icon-explore","vc-icon-message_fill_light","vc-icon-present","vc-icon-form_light","vc-icon-squarecheckfill","vc-icon-video_light","vc-icon-square","vc-icon-search_list_light","vc-icon-squarecheck","vc-icon-form_fill_light","vc-icon-round","vc-icon-global_light","vc-icon-roundaddfill","vc-icon-global","vc-icon-roundadd","vc-icon-favor_fill_light","vc-icon-add","vc-icon-delete_light","vc-icon-notificationforbidfill","vc-icon-back_android","vc-icon-explorefill","vc-icon-back_android_light","vc-icon-fold","vc-icon-down_light","vc-icon-game","vc-icon-round_close_light","vc-icon-redpacket","vc-icon-round_close_fill_light","vc-icon-selectionfill","vc-icon-expressman","vc-icon-i111","vc-icon-my","vc-icon-text","vc-icon-crown","vc-icon-sound","vc-icon-sponsor"],hr=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=e.ref(""),i=e.ref(""),c=e.ref([]),k=e.computed(()=>{const d=t.modelValue;return t.multiple?Array.isArray(d)&&d.length>0:!!d}),T=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),v=e.computed(()=>{const d=Object.keys(zt).map((n,_)=>({icon_id:`el_${_}`,name:n,title:n,source:"element-plus"})),o=fr.map((n,_)=>({icon_id:`vc_${_}`,name:n,title:n.replace("vc-icon-",""),source:"vc-iconfont"})),p=a.getConfig("customIcon");let E=[];return p&&a.pubfn.isArray(p.glyphs)&&(E=p.glyphs.map((n,_)=>({icon_id:`vc_custom_${_}`,name:`${p.css_prefix_text}${n.font_class}`,title:n.name,source:"vc-custom-iconfont"}))),o.concat(d).concat(E)}),N=e.computed(()=>{const d=t.filter,o=i.value,p=v.value,E=[];for(let n=0;n<p.length;n++){const _=p[n];if(typeof d=="string"){if(!_.name.startsWith(d))continue}else if(typeof d=="function"&&!d(_.name))continue;if(o){const V=_.name.indexOf(o)>-1,R=_.title&&_.title.indexOf(o)>-1;if(!V&&!R)continue}E.push(_)}return E}),y=e.computed(()=>{if(!t.multiple)return"";const d=t.multipleLimit;return`已选 ${c.value.length}${d>0?` / ${d}`:""}`}),r=()=>{if(t.disabled)return;const d=t.modelValue;d?t.multiple&&Array.isArray(d)?c.value=[...d]:c.value=[d]:c.value=[],g.value="",i.value="",f.value=!0},m=d=>{if(t.multiple){const o=c.value.indexOf(d);if(o>-1)c.value.splice(o,1);else{if(t.multipleLimit>0&&c.value.length>=t.multipleLimit)return;c.value.push(d)}}else c.value=[d],C()},h=d=>c.value.includes(d),w=()=>{c.value=[];const d=t.multiple?[]:"";s("update:modelValue",d),s("change",d)},C=()=>{const d=t.multiple?a.pubfn.copyObject(c.value):c.value[0]||"";s("update:modelValue",d),s("change",d),f.value=!1};return{dialogVisible:f,searchKeyword:g,selectedIcons:c,hasValue:k,customStyle:T,allIconList:v,filteredIconList:N,selectedNumCom:y,openDialog:r,selectIcon:m,isSelectedInDialog:h,clearValue:w,confirm:C,closeDialog:()=>{f.value=!1},handleSearch:()=>{i.value=g.value}}},_r={key:0,class:"vc-contents"},yr={key:1},vr={class:"vc-data-input-icon dialog-content"},gr={class:"search-view"},br={class:"vc-data-input-icon-content"},kr=["onClick"],wr={class:"icon-text"},Cr={key:0,class:"icon-text"},Br={key:0,class:"multiple-text"},Sr=e.defineComponent({name:"vc-data-input-icon",__name:"data-input-icon",props:mr,emits:pr,setup(t,{emit:s}){const a=t,f=s,{dialogVisible:g,searchKeyword:i,hasValue:c,customStyle:k,filteredIconList:T,selectedNumCom:v,openDialog:N,selectIcon:y,isSelectedInDialog:r,clearValue:m,confirm:h,closeDialog:w,handleSearch:C}=hr(a,f);return(u,l)=>{const d=e.resolveComponent("vc-data-icon"),o=e.resolveComponent("el-button"),p=e.resolveComponent("el-input"),E=e.resolveComponent("vc-data-dialog");return e.openBlock(),e.createElementBlock("view",{class:"vc-data-input-icon",style:e.normalizeStyle(e.unref(k))},[e.createVNode(o,{disabled:u.disabled,onClick:e.unref(N)},{default:e.withCtx(()=>[e.unref(c)?(e.openBlock(),e.createElementBlock("view",_r,[u.multiple?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.modelValue,(n,_)=>(e.openBlock(),e.createBlock(d,{key:_,name:n,size:"100%",style:{"margin-right":"6px"}},null,8,["name"]))),128)):(e.openBlock(),e.createBlock(d,{key:1,name:u.modelValue,size:"100%"},null,8,["name"]))])):(e.openBlock(),e.createElementBlock("span",yr,e.toDisplayString(u.placeholder),1))]),_:1},8,["disabled","onClick"]),u.clearable&&!u.disabled&&e.unref(c)?(e.openBlock(),e.createBlock(d,{key:0,name:"CircleClose",size:"100%",color:"#9fa2a7",pointer:"",style:{"margin-left":"10px"},onClick:e.unref(m)},null,8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(E,{modelValue:e.unref(g),"onUpdate:modelValue":l[1]||(l[1]=n=>e.isRef(g)?g.value=n:null),title:"请选择",width:"920px",top:"3vh","close-on-click-modal":!0,mode:"form","max-height":"80vh"},{footer:e.withCtx(()=>[u.multiple&&u.multipleLimit>0?(e.openBlock(),e.createElementBlock("span",Br,e.toDisplayString(e.unref(v)),1)):e.createCommentVNode("",!0),e.createVNode(o,{loading:!1,size:u.size,style:{width:"80px"},onClick:e.unref(w)},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("关闭",-1)])]),_:1},8,["size","onClick"]),u.multiple?(e.openBlock(),e.createBlock(o,{key:1,loading:!1,size:u.size,type:"primary",style:{width:"80px"},onClick:e.unref(h)},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("确定",-1)])]),_:1},8,["size","onClick"])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("view",vr,[e.createElementVNode("view",gr,[e.createVNode(p,{modelValue:e.unref(i),"onUpdate:modelValue":l[0]||(l[0]=n=>e.isRef(i)?i.value=n:null),class:"search-input",placeholder:"搜索图标名称...",clearable:"",onKeyup:e.withKeys(e.unref(C),["enter"]),onClear:e.unref(C)},{append:e.withCtx(()=>[e.createVNode(o,{icon:e.unref(Ie.Search),onClick:e.unref(C)},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode("搜索",-1)])]),_:1},8,["icon","onClick"])]),_:1},8,["modelValue","onKeyup","onClear"])]),e.createElementVNode("view",br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(T),n=>(e.openBlock(),e.createElementBlock("view",{key:n.icon_id,class:e.normalizeClass(["icon-item pointer",{"selected-icon":e.unref(r)(n.name)}]),onClick:_=>e.unref(y)(n.name)},[e.createVNode(d,{name:n.name,size:"30"},null,8,["name"]),e.createElementVNode("span",wr,e.toDisplayString(n.name),1),n.title?(e.openBlock(),e.createElementBlock("span",Cr,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0)],10,kr))),128))])])]),_:1},8,["modelValue"])],4)}}}),Vr={modelValue:{type:[Array,String],default:void 0},placeholder:{type:String,default:""},min:{type:Number,default:void 0},max:{type:Number,default:1e16},precision:{type:Number,default:2},type:{type:String,default:"text"},size:{type:String,default:""},width:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},addButtonText:{type:String,default:""},showAdd:{type:Boolean,default:!0},clearButtonText:{type:String,default:""},showClear:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!0},formProp:{type:String,default:""},rules:{type:Array,default:()=>[]},isUnique:{type:Boolean,default:!1},allowRepeat:{type:Array,default:()=>[]},maxlength:{type:Number,default:void 0},trimMode:{type:String,default:"trim"}},Nr={"update:modelValue":t=>!0,change:(t,s)=>!0,blur:t=>!0},Tr=(t,s)=>{const a=uni.vc||{},f={clearAllTips:"确定全部清空吗?",add:"新增",clear:"清空",uniqueTips:"该项唯一,不可重复!"},g=e.inject(Ue.formContextKey,void 0),i=e.computed(()=>t.disabled||!!(g&&g.disabled)),c=(l,d="trim")=>{if(typeof l=="string"&&l.length>0)switch(d){case"trim":return l.trim();case"removeAll":return l.replace(/\s/g,"");case"none":return l;default:return l.trim()}return l},k=e.computed(()=>Array.isArray(t.modelValue)?t.modelValue:[]),T=e.computed(()=>!t.maxlength||!Array.isArray(t.modelValue)?!1:t.modelValue.length>=t.maxlength),v=e.computed(()=>{const l=[...t.rules||[]];return t.isUnique&&l.push({validator:(d,o,p)=>{let E=0;const n=Array.isArray(t.modelValue)?t.modelValue:[],_=t.allowRepeat||[];n.forEach(V=>{V===o&&_.indexOf(o)===-1&&E++}),E>1?p(new Error(d.message||f.uniqueTips)):p()},message:f.uniqueTips,trigger:["change","blur"]}),l}),N=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),y=l=>{s("update:modelValue",l)},r=(l,d)=>{const o=c(l,t.trimMode),p=t.modelValue||[];if(p[d]!==o){const n=[...p];n[d]=o,y(n)}const E=[...t.modelValue||[]];E[d]=o,s("change",E,d)},m=(l,d)=>{const o=[...t.modelValue||[]];o[l]=d,y(o)},h=l=>{if(i.value)return;const d=[...t.modelValue||[]];d.splice(l,1),y(d),s("change",d,l)},w=()=>{i.value||(y([]),s("change",[],void 0))},C=()=>{if(i.value)return;let l=t.modelValue||[];Array.isArray(l)||(l=[]),l=[...l,""],y(l),s("change",l,l.length-1)},u=()=>{const l=Array.isArray(t.modelValue)?t.modelValue:[];let d;t.type==="number"?d=l.map(o=>a.pubfn.isNotNull(o)?Number(o):o):d=l.map(o=>String(o)),y(d),s("blur",d)};return e.onMounted(()=>{t.modelValue===void 0&&y([""])}),{vc:a,language:f,disabledCom:i,valueArr:k,isMax:T,rulesCom:v,customStyle:N,trimValue:c,handleChange:r,handleItemInput:m,removeItem:h,clearItem:w,addItem:C,handleBlur:u}},Er={class:"vc-data-input-array"},zr={class:"btn-box"},Dr=e.defineComponent({name:"vc-data-input-array",__name:"data-input-array",props:Vr,emits:Nr,setup(t,{emit:s}){const a=t,f=s,{language:g,disabledCom:i,valueArr:c,isMax:k,rulesCom:T,customStyle:v,handleChange:N,handleItemInput:y,removeItem:r,clearItem:m,addItem:h,handleBlur:w}=Tr(a,f);return(C,u)=>{const l=e.resolveComponent("el-button"),d=e.resolveComponent("vc-data-input-numeric"),o=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),E=e.resolveComponent("el-popconfirm");return e.openBlock(),e.createElementBlock("view",Er,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(n,_)=>(e.openBlock(),e.createElementBlock("view",{class:"item-view",key:_},[e.createVNode(p,{rules:e.unref(T),prop:C.formProp+"."+_,style:e.normalizeStyle(e.unref(v))},{default:e.withCtx(()=>[C.type==="number"?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,class:"width-box"},{ref_for:!0},C.$attrs,{"model-value":e.unref(c)[_],disabled:e.unref(i),clearable:C.clearable,maxlength:C.max,"show-word-limit":C.showWordLimit,min:C.min,max:C.max,precision:C.precision,placeholder:C.placeholder,"onUpdate:modelValue":V=>e.unref(y)(_,V),onBlur:e.unref(w)}),e.createSlots({_:2},[C.showDelete?{name:"append",fn:e.withCtx(()=>[e.createVNode(l,{icon:"RemoveFilled",disabled:e.unref(i),onClick:V=>e.unref(r)(_)},null,8,["disabled","onClick"])]),key:"0"}:void 0]),1040,["model-value","disabled","clearable","maxlength","show-word-limit","min","max","precision","placeholder","onUpdate:modelValue","onBlur"])):(e.openBlock(),e.createBlock(o,e.mergeProps({key:1,class:"width-box"},{ref_for:!0},C.$attrs,{"model-value":e.unref(c)[_],disabled:e.unref(i),clearable:C.clearable,maxlength:C.max,"show-word-limit":C.showWordLimit,placeholder:C.placeholder,"onUpdate:modelValue":V=>e.unref(y)(_,V),onChange:V=>e.unref(N)(V,_),onBlur:e.unref(w)}),e.createSlots({_:2},[C.showDelete?{name:"append",fn:e.withCtx(()=>[e.createVNode(l,{icon:"RemoveFilled",disabled:e.unref(i),onClick:V=>e.unref(r)(_)},null,8,["disabled","onClick"])]),key:"0"}:void 0]),1040,["model-value","disabled","clearable","maxlength","show-word-limit","placeholder","onUpdate:modelValue","onChange","onBlur"]))]),_:2},1032,["rules","prop","style"])]))),128)),e.createElementVNode("view",zr,[C.showAdd?(e.openBlock(),e.createBlock(l,{key:0,class:"add-btn",icon:"Plus",disabled:e.unref(i)||e.unref(k),onClick:e.unref(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.addButtonText||e.unref(g).add),1)]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),C.showClear&&e.unref(c).length>0?(e.openBlock(),e.createBlock(E,{key:1,title:e.unref(g).clearAllTips,onConfirm:e.unref(m)},{reference:e.withCtx(()=>[e.createVNode(l,{class:"clear-btn",type:"danger",icon:"Delete",disabled:e.unref(i)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.clearButtonText||e.unref(g).clear),1)]),_:1},8,["disabled"])]),_:1},8,["title","onConfirm"])):e.createCommentVNode("",!0)])])}}}),Fr=De(Dr,[["__scopeId","data-v-0a89802c"]]),Ir={modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},formProp:{type:String,default:""},placeholder:{type:String,default:""},size:{type:String,values:qe,default:""},width:{type:[String,Number],default:""},itemWidth:{type:[String,Number],default:""},itemMinWidth:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},addButtonText:{type:String,default:""},showAdd:{type:Boolean,default:!0},clearButtonText:{type:String,default:""},showClear:{type:Boolean,default:!1},showSort:{type:Boolean,default:!1},emptyText:{type:String,default:""},rowKey:{type:String,default:"_index"},defaultValue:{type:[Object,Function],default:()=>({})},columnIndexMethod:{type:Function,default:null},columnIndexWidth:{type:Number,default:80},columnIndexLabel:{type:String,default:"#"},rightBtns:{type:Array,default:()=>[]},leftFixed:{type:Boolean,default:!0},rightFixed:{type:Boolean,default:!0},maxlength:{type:Number,default:void 0},rowNo:{type:Boolean,default:!0},beforeRemove:{type:Function,default:null}},Ar={"update:modelValue":t=>!0,change:(t,s,a,f)=>!0},Mr=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=e.inject(Ue.formContextKey,void 0),i=e.computed(()=>{const B=t.modelValue;return Array.isArray(B)?B:[]}),c={add:"新增",clear:"清空",clearAllTips:"确定全部清空吗?",addLine:"新增一行",sort:"排序",switchTips1:"选择需要交换的项",switchTips2:"与第{index}行互换位置",operate:"操作",copy:"复制",delete:"删除",uniqueTips:"该项唯一,不可重复!",emptyText:"暂无数据",errorTips1:"该项内有错误",errorTips2:"未满足递增规则",errorTips3:"未满足递减规则"},k={"vc.form.array.clearAllTips":"确定全部清空吗?","vc.form.array.add":"新增","vc.form.array.clear":"清空","vc.form.array.uniqueTips":"该项唯一,不可重复!","vc.form.array.sort":"排序","vc.form.array.switchTips1":"选择需要交换的项","vc.form.array.switchTips2":"与第{index}行互换位置","vc.form.array.operate":"操作","vc.form.array.copy":"复制","vc.form.array.delete":"删除","vc.form.array.addLine":"新增一行","vc.form.array.emptyText":"暂无数据","vc.form.array.errorTips1":"该项内有错误","vc.form.array.errorTips2":"未满足递增规则","vc.form.array.errorTips3":"未满足递减规则","vc.form.close":"关 闭","vc.form.submit":"确 定","vc.form.success":"操作成功!","vc.form.cannotBeEmpty":"不能为空","vc.form.setUp":"设 置","el.datepicker.selectDate":"选择日期","el.datepicker.startDate":"开始日期","el.datepicker.endDate":"结束日期"},T=e.computed(()=>t.disabled||!!(g&&g.disabled)),v=e.computed(()=>t.emptyText||c.emptyText),N=e.computed(()=>{const B=t.maxlength,P=i.value;return!!B&&P.length>=B}),y=e.computed(()=>a.pubfn.deepClone(t.columns).map(P=>(P.rules=p(P),P))),r=B=>{s("update:modelValue",B)},m=()=>{let B="";const P=i.value,Q=t.rowKey;do B=a.pubfn.random(25,"qwertyuiopasdfghjklzxcvbnm0123456789");while(a.pubfn.getListIndex(P,Q,B)>-1);return B},h=()=>{const B=i.value,P=t.rowKey,Q=t.columns;if(a.pubfn.isNotNull(B)){const z=B.map($=>(a.pubfn.isNull($[P])&&($[P]=m()),Q.map(x=>{const L=$[x.key];["checkbox"].indexOf(x.type)>-1&&!Array.isArray(L)?$[x.key]=L?[L]:[]:x.type==="select"&&x.multiple&&!Array.isArray(L)?$[x.key]=L!=null&&L!==""?[L]:[]:x.type==="switch"&&typeof L!="boolean"&&($[x.key]=!!L)}),$));r(z)}},w=async()=>{let B=t.defaultValue;const P=t.columns,Q=t.rowKey,z=i.value;if(typeof B=="function"){f.value=!0;try{B=await B({index:z.length,data:a.pubfn.copyObject(z)})}catch(x){console.error("err: ",x)}f.value=!1}typeof B!="object"&&(B={});const $=a.pubfn.copyObject(B);return a.pubfn.isNull($[Q])&&($[Q]=m()),P.map(x=>{if(a.pubfn.isNull($[x.key]))["array<object>"].indexOf(x.type)>-1?$[x.key]=[]:x.defaultValue!==void 0?$[x.key]=a.pubfn.copyObject(x.defaultValue):["checkbox"].indexOf(x.type)>-1?$[x.key]=[]:x.type==="select"&&x.multiple?$[x.key]=[]:x.type==="switch"&&($[x.key]=!1);else{const L=$[x.key];["checkbox"].indexOf(x.type)>-1&&!Array.isArray(L)?$[x.key]=L?[L]:[]:x.type==="select"&&x.multiple&&!Array.isArray(L)?$[x.key]=L!=null&&L!==""?[L]:[]:x.type==="switch"&&typeof L!="boolean"&&($[x.key]=!!L)}}),$},C=async B=>{if(T.value)return;const P=i.value,Q=await w();T.value||(a.pubfn.isNotNull(B)&&a.pubfn.objectAssign(Q,B),r([...P,Q]))},u=async B=>{if(T.value)return;const Q=i.value[B];if(!Q)return;const z=t.rowKey;a.pubfn.isNull(Q[z])&&(Q[z]=m());const $=Q[z];let x=!1;const L=()=>{if(x||T.value)return;x=!0;const re=a.pubfn.getListIndex(i.value,z,$);if(re>-1){const ne=[...i.value];ne.splice(re,1),r(ne)}};typeof t.beforeRemove=="function"&&await t.beforeRemove({row:Q,index:B,remove:L})===!1||L()},l=B=>{if(T.value)return;const P=i.value,Q=t.rowKey,z=a.pubfn.copyObject(P[B]);z[Q]=m(),r([...P,z])},d=(B,P)=>{if(T.value)return;const Q=i.value;if(!Q[B]||!Q[P])return;const z=[...Q],$=a.pubfn.copyObject(z[B]);z[B]=a.pubfn.copyObject(z[P]),z[P]=$,r(z)},o=()=>{T.value||r([])},p=B=>{let P=B.rules;const Q=B.isUnique,z=B.allowRepeat||[],$=B.type,x=i.value;if(P=a.pubfn.deepClone(P),Q&&(P||(P=[]),P.push({validator:(L,re,ne)=>{try{const de=L.field.split("."),he=de[de.length-1];let A=0;if(x.map(M=>{M[he]===re&&z.indexOf(re)===-1&&A++}),A>1)return ne(new Error(L.message||c.uniqueTips))}catch(de){console.error(de)}ne()},message:c.uniqueTips,trigger:["change","blur"]})),$==="array<object>"){const L=n();B.columns&&B.columns.length>0&&L&&L.validateField&&(P||(P=[]),P.push({validator:(re,ne,de)=>{try{const he=B.columns.map(M=>M.key),A=[];(Array.isArray(ne)?ne:[]).forEach((M,O)=>{he.forEach(K=>{A.push(`${re.fullField}.${O}.${K}`)})}),L.validateField(A,M=>{if(!M)return de(new Error(c.errorTips1));de()});return}catch(he){console.error(he)}de()},message:c.errorTips1,trigger:["change","blur"]}))}return B.incMode&&(P||(P=[]),P.push({validator:(L,re,ne)=>{try{const de=L.field.split("."),he=Number(de[1]),A=de[de.length-1];if(!isNaN(he)){const M=x[he],O=x[he-1],K=x[he+1];if(B.incMode===1){if(O&&M[A]<=O[A])return ne(new Error(B.incErrMsg||c.errorTips2));if(K&&M[A]>=K[A])return ne(new Error(B.incErrMsg||c.errorTips2))}else if(B.incMode===2){if(O&&M[A]<O[A])return ne(new Error(B.incErrMsg||c.errorTips2));if(K&&M[A]>K[A])return ne(new Error(B.incErrMsg||c.errorTips2))}else if(B.incMode===-1){if(O&&M[A]>=O[A])return ne(new Error(B.incErrMsg||c.errorTips3));if(K&&M[A]<=K[A])return ne(new Error(B.incErrMsg||c.errorTips3))}else if(B.incMode===-2){if(O&&M[A]>O[A])return ne(new Error(B.incErrMsg||c.errorTips3));if(K&&M[A]<K[A])return ne(new Error(B.incErrMsg||c.errorTips3))}}}catch(de){console.error(de)}ne()},trigger:["change","blur"]})),P},E=e.getCurrentInstance(),n=()=>{var P;let B=E==null?void 0:E.parent;for(;B;){if(((P=B.type)==null?void 0:P.name)==="vc-data-form")return B.exposed??B.proxy;B=B.parent}return null},_=(B,P,Q,z)=>{if(typeof P.onChange=="function"){const x=i.value[Q];P.onChange(B,x,P,Q,z)}s("change",B,P,Q,z)},V=(B,P,Q=!0,z)=>{var $,x;try{return typeof B=="boolean"?B:typeof B=="string"?((x=($=a.pubfn).checkDataExpText)==null?void 0:x.call($,P,B))??Q:typeof B=="function"?B(P,z):B==null?Q:!0}catch{return Q}},R=(B,P)=>{const Q=[];if(B&&B.length>0)for(let z=0;z<B.length;z++)P!==z&&Q.push({value:z,label:c.switchTips2.replace("{index}",String(z+1))});return Q},q=B=>{let P="array-object-column",Q=!1;const z=B.rules;return z&&Array.isArray(z)&&z.map($=>{$.required&&(Q=!0)}),Q&&(P+=" required"),P},I=(B,P)=>{const z=[...i.value];z[B]=P,r(z)};return e.onMounted(()=>{h()}),{vc:a,loading:f,language:c,formItemLanguage:k,disabledCom:T,emptyTextCom:v,isMax:N,columnsCom:y,safeList:i,addItem:C,removeItem:u,copyItem:l,sortExchange:d,clearItem:o,onChange:_,trueFn:V,selectDataFn:R,requiredFilter:q,onRowUpdate:I,updateValue:r}},Pr={class:"vc-data-input-array-object"},Rr={class:"btn-box"},Lr=e.defineComponent({name:"vc-data-input-array-object",__name:"data-input-array-object",props:Ir,emits:Ar,setup(t,{emit:s}){const a=t,f=s,{loading:g,language:i,formItemLanguage:c,disabledCom:k,emptyTextCom:T,isMax:v,columnsCom:N,safeList:y,addItem:r,removeItem:m,copyItem:h,sortExchange:w,clearItem:C,onChange:u,trueFn:l,selectDataFn:d,requiredFilter:o,onRowUpdate:p}=Mr(a,f);return(E,n)=>{const _=e.resolveComponent("el-button"),V=e.resolveComponent("el-table-column"),R=e.resolveComponent("vc-data-form-item"),q=e.resolveComponent("el-form-item"),I=e.resolveComponent("el-icon"),B=e.resolveComponent("vc-data-input-select"),P=e.resolveComponent("el-popover"),Q=e.resolveComponent("el-table"),z=e.resolveComponent("el-popconfirm");return e.openBlock(),e.createElementBlock("view",Pr,[e.createVNode(Q,{data:e.unref(y),border:"","row-key":E.rowKey,size:E.size,"empty-text":e.unref(T)},{empty:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(E.emptyText),1),E.showAdd?(e.openBlock(),e.createBlock(_,{key:0,class:"ml10",link:"",size:"small",type:"primary",loading:e.unref(g),disabled:e.unref(k),onClick:n[0]||(n[0]=$=>e.unref(r)())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).addLine),1)]),_:1},8,["loading","disabled"])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[E.rowNo?(e.openBlock(),e.createBlock(V,{key:0,type:"index",align:"center","header-align":"center",label:E.columnIndexLabel,width:E.columnIndexWidth,index:E.columnIndexMethod},null,8,["label","width","index"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),($,x)=>(e.openBlock(),e.createBlock(V,{key:x,align:$.align||"center","header-align":$.headerAlign||"center",prop:$.key,label:$.title,width:$.width||E.itemWidth,"min-width":$.minWidth||E.itemMinWidth,"class-name":e.unref(o)($),"show-overflow-tooltip":$.showOverflowTooltip},{default:e.withCtx(({column:L,$index:re})=>[e.createVNode(q,{rules:$.rules,prop:E.formProp?E.formProp+"."+re+"."+L.property:re+"."+L.property,size:E.size,required:!1,"label-width":"0"},{default:e.withCtx(()=>[e.unref(l)($.showRule,e.unref(y)[re],!0)?(e.openBlock(),e.createBlock(R,{key:0,"model-value":e.unref(y)[re],"onUpdate:modelValue":ne=>e.unref(p)(re,ne),item:$,clearable:$.clearable,disabled:e.unref(l)($.disabled,e.unref(y)[re],!1)||e.unref(k),"is-table-form":!0,"parent-key":E.formProp+"."+re,index:re,language:e.unref(c),onChange:(ne,de)=>e.unref(u)(ne,$,re,de)},null,8,["model-value","onUpdate:modelValue","item","clearable","disabled","parent-key","index","language","onChange"])):e.createCommentVNode("",!0)]),_:2},1032,["rules","prop","size"])]),_:2},1032,["align","header-align","prop","label","width","min-width","class-name","show-overflow-tooltip"]))),128)),E.showSort?(e.openBlock(),e.createBlock(V,{key:1,label:e.unref(i).sort,align:"center","header-align":"center",width:"120"},{default:e.withCtx(({$index:$})=>[$!==0?(e.openBlock(),e.createBlock(_,{key:0,link:"",size:"small",type:"primary",disabled:e.unref(k),onClick:x=>e.unref(w)($,$-1)},{default:e.withCtx(()=>[e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Top))]),_:1})]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),$!==e.unref(y).length-1?(e.openBlock(),e.createBlock(_,{key:1,link:"",size:"small",type:"primary",disabled:e.unref(k),onClick:x=>e.unref(w)($,$+1)},{default:e.withCtx(()=>[e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Bottom))]),_:1})]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),e.unref(y).length>1?(e.openBlock(),e.createBlock(P,{key:2,class:"ml10",placement:"top",width:"240",trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(_,{link:"",size:"small",type:"primary",disabled:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Rank))]),_:1})]),_:1},8,["disabled"])]),default:e.withCtx(()=>[e.createVNode(B,{placeholder:e.unref(i).switchTips1,width:"100%",localdata:e.unref(d)(e.unref(y),$),disabled:e.unref(k),onChange:x=>e.unref(w)(x,$)},null,8,["placeholder","localdata","disabled","onChange"])]),_:2},1024)):e.createCommentVNode("",!0)]),_:1},8,["label"])):e.createCommentVNode("",!0),E.rightBtns&&E.rightBtns.length>0?(e.openBlock(),e.createBlock(V,{key:2,label:e.unref(i).operate,align:"center","header-align":"center","min-width":"100"},{default:e.withCtx(({row:$,$index:x})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.rightBtns,(L,re)=>(e.openBlock(),e.createElementBlock("view",{class:"vc-contents",key:re},[(L==="copy"||typeof L=="object"&&L.mode==="copy")&&e.unref(l)(typeof L=="object"?L.show:void 0,$,!0,x)?(e.openBlock(),e.createBlock(_,{key:0,class:"right-button",link:"",size:"small",type:"primary",disabled:e.unref(k),onClick:ne=>e.unref(h)(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).copy),1)]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0),(L==="delete"||typeof L=="object"&&L.mode==="delete")&&e.unref(l)(typeof L=="object"?L.show:void 0,$,!0,x)?(e.openBlock(),e.createBlock(_,{key:1,class:"right-button",link:"",size:"small",type:"primary",disabled:e.unref(k),onClick:ne=>e.unref(m)(x)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i).delete),1)]),_:1},8,["disabled","onClick"])):e.createCommentVNode("",!0)]))),128))]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1},8,["data","row-key","size","empty-text"]),e.createElementVNode("view",Rr,[E.showAdd?(e.openBlock(),e.createBlock(_,{key:0,class:"add-btn",disabled:e.unref(k)||e.unref(v),loading:e.unref(g),onClick:n[1]||(n[1]=$=>e.unref(r)())},{default:e.withCtx(()=>[e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Plus))]),_:1}),e.createTextVNode(" "+e.toDisplayString(E.addButtonText||e.unref(i).add),1)]),_:1},8,["disabled","loading"])):e.createCommentVNode("",!0),E.showClear&&e.unref(y).length>0?(e.openBlock(),e.createBlock(z,{key:1,title:e.unref(i).clearAllTips,onConfirm:e.unref(C)},{reference:e.withCtx(()=>[e.createVNode(_,{type:"danger",disabled:e.unref(k)},{default:e.withCtx(()=>[e.createVNode(I,null,{default:e.withCtx(()=>[e.createVNode(e.unref(Ie.Delete))]),_:1}),e.createTextVNode(" "+e.toDisplayString(E.clearButtonText||e.unref(i).clear),1)]),_:1},8,["disabled"])]),_:1},8,["title","onConfirm"])):e.createCommentVNode("",!0)])])}}}),$r=De(Lr,[["__scopeId","data-v-3a29706f"]]),Or={modelValue:{type:[String,Number,Array,Object],default:void 0},columns:{type:Array,default:()=>[{key:"_id",title:"标识",type:"text",idKey:!0},{key:"name",title:"名称",type:"text",nameKey:!0}]},queryColumns:{type:Array,default:void 0},formData:{type:[Object,Function],default:()=>({})},dataPreprocess:{type:Function,default:void 0},pageSize:{type:Number,default:5},pagerCount:{type:[Number,String],default:5},maxPageCount:{type:[Number,String],default:void 0},getCount:{type:[String,Boolean],default:"auto"},action:{type:[String,Function],default:void 0},remoteMethod:{type:Function,default:void 0},encryptAction:{type:Boolean,default:!1},isRequest:{type:Boolean,default:!1},requestHeader:{type:[Object,Boolean],default:void 0},requestMethod:{type:String,default:"GET"},props:{type:Object,default:()=>({rows:"rows",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",formData:"formData"})},needAlert:{type:Boolean,default:!0},placeholder:{type:String,default:""},width:{type:[String,Number],default:"100%"},disabled:{type:Boolean,default:!1},size:{type:String,default:""},multiple:{type:Boolean,default:!1},multipleLimit:{type:Number,default:1e8},labelFormat:{type:[Function,String],default:""},customName:{type:Function,default:void 0},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:""},submitText:{type:String,default:""},dialogWidth:{type:[String,Number],default:void 0},closeOnClickModal:{type:Boolean,default:!0},valueFields:{type:Array,default:void 0},mainColumns:{type:Array,default:void 0},rowHeight:{type:Number,default:void 0},leftFixed:{type:Boolean,default:!0},rightFixed:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},totalOption:{type:Array,default:void 0},summaryMethod:{type:Function,default:void 0}},Ur={"update:modelValue":t=>!0,input:t=>!0,change:(t,s)=>!0,close:()=>!0,closed:()=>!0,open:()=>!0,opened:()=>!0},qr=(t,s)=>{const a=uni.vc,f=e.ref(null),g=e.ref(!1),i=e.ref(!1),c=e.ref([]),k=e.ref([]),T=e.ref([]),v=e.ref(!1),N=e.ref(!0),y=e.ref(!1),r=()=>{const ee=t.columns,H=a.pubfn.getListItem(ee,"idKey",!0),J=a.pubfn.getListItem(ee,"nameKey",!0),Y=a.pubfn.isNull(H)?{key:"_id",title:"标识",type:"text",idKey:!0}:H,me=a.pubfn.isNull(J)?{key:"name",title:"名称",type:"text",nameKey:!0}:J;return{idColumn:Y,nameColumn:me}},m=e.computed(()=>{const{idColumn:ee,nameColumn:H}=r();return{idKey:ee.key,idTitle:ee.title,nameKey:H.key}}),h=e.computed(()=>{const{formData:ee}=t;return a.pubfn.isObject(ee)?ee:a.pubfn.isFunction(ee)?ee():{}}),w=()=>{let ee=t.queryColumns;if(!ee){const{idColumn:H,nameColumn:J}=r();ee=[{key:J.key,title:J.title,type:"text",width:150,mode:"%%"},{key:H.key,title:H.title,type:"text",width:150,mode:"%%"}]}return ee},C=e.reactive({formData:{...h.value},columns:w()}),u=e.computed(()=>{const{nameColumn:ee}=r(),H=[{key:ee.key,title:ee.title,type:ee.type,width:250}];return t.columns.forEach(J=>{J.summaryKey&&H.push({key:J.key,title:J.title,type:J.type,width:100,summaryKey:!0,summaryUnit:J.summaryUnit})}),H}),l=e.computed(()=>u.value.some(ee=>ee.summaryKey)),d=e.computed(()=>{const ee=[];return u.value.forEach(H=>{H.summaryKey&&ee.push({key:H.key,unit:H.summaryUnit||"",type:H.type})}),ee}),o=e.computed(()=>a.pubfn.elementUtil.getComponentSize(t.size)),p=e.computed(()=>t.rowHeight?t.rowHeight:(o.value||"medium")==="small"?45:50),E=e.computed(()=>{const{pageSize:ee,multiple:H}=t,J=o.value||"medium",Y=p.value,me=H?1:0;return J==="small"?86+me+Y*ee:90+me+Y*ee}),n=e.computed(()=>(o.value||"medium")==="small"?7:10),_=e.computed(()=>{let ee=140;return u.value.forEach(H=>{ee+=H.width||250}),ee}),V=e.computed(()=>{if(t.dialogWidth)return a.pubfn.addUnit(t.dialogWidth);let ee=750;return t.multiple&&(ee+=_.value+10),a.pubfn.addUnit(ee)}),R=e.computed(()=>t.width?{width:a.pubfn.addUnit(t.width)}:{}),q=e.computed(()=>{const{labelFormat:ee,modelValue:H}=t,J=typeof H!="object"?[H]:Array.isArray(H)?H:[H];return typeof ee=="function"?ee(J):ee.replace(/{{length}}/g,String(J.length))}),I=()=>{c.value=[],k.value=[],B({success:ee=>P(ee)})},B=(ee={})=>{const{modelValue:H,action:J,multiple:Y,valueFields:me}=t,G=m.value.idKey,S=h.value,j=t.props;if(!J||a.pubfn.isNull(H))return!1;let le=[];a.pubfn.isNull(me)?le=Y?H:[H]:le=Y?a.pubfn.arrayObjectGetArray(H,G):[H[G]];let Te=!1;const Ae=[];for(let Le=0;Le<le.length;Le++){const U=a.pubfn.getListItem(T.value,G,le[Le]);if(a.pubfn.isNull(U)){Te=!0;break}Ae.push(U)}c.value=[...c.value,...Ae],k.value=[...k.value,...Ae],Te&&(i.value=!0,(typeof J=="function"?J:t.isRequest?a.request:a.callFunction)({url:J,header:t.requestHeader,method:t.requestMethod,data:{pageIndex:1,pageSize:le.length,formData:{...S,[G]:le},columns:[{key:G,mode:"in"}]},encrypt:t.encryptAction,success:U=>{const te=(j==null?void 0:j.rows)||"rows",pe=a.pubfn.getData(U,te);T.value=a.pubfn.arrConcat(pe,T.value,G),ee.success&&ee.success(pe)},complete:()=>{i.value=!1}})),N.value=!1},P=ee=>{const{modelValue:H,multiple:J,valueFields:Y}=t,me=m.value.idKey;if(!a.pubfn.isNull(H))if(J){const G=[];for(const S in H){const j=a.pubfn.isNull(Y)?H[S]:H[S][me],le=a.pubfn.getListItem(ee,me,j);le&&G.push(le)}G.length>0&&(k.value=G,c.value=a.pubfn.copyObject(k.value))}else{const G=a.pubfn.isNull(Y)?H:H[me],S=a.pubfn.getListItem(ee,me,G);S&&(k.value=[S],c.value=a.pubfn.copyObject(k.value))}},Q=ee=>{const{multiple:H,valueFields:J}=t,Y=m.value.idKey;let me;a.pubfn.isNull(J)?me=a.pubfn.arrayObjectGetArray(ee,Y):me=ee.map(S=>{const j={};return J.forEach(le=>{j[le]=S[le]}),j}),!H&&typeof me=="object"&&(me=me[0]),s("update:modelValue",me),s("input",me);const G=L(me);s("change",me,G!==void 0?G:H?[]:{})},z=()=>{f.value&&f.value.search()},$=()=>f.value?f.value.getTableData?f.value.getTableData():[]:[],x=ee=>{const H=m.value.idKey;T.value=a.pubfn.arrConcat(ee.list,T.value,H),e.nextTick(()=>{re()})},L=ee=>{const{multiple:H,valueFields:J}=t,Y=ee!==void 0?ee:t.modelValue,me=m.value.idKey,G=[];return Y&&(H?Y:[Y]).forEach(S=>{const j=a.pubfn.isNull(J)?S:S[me],le=a.pubfn.getListItem(T.value,me,j);le!==void 0&&G.push(le)}),H?G:G[0]},re=()=>{if(!f.value)return;y.value=!0;const ee=m.value.idKey,H=$();f.value.clearSelection(),k.value&&k.value.length>0&&k.value.forEach(J=>{const Y=a.pubfn.getListIndex(H,ee,J[ee]);Y>-1&&f.value.toggleRowSelection(H[Y],!0)}),e.nextTick(()=>{y.value=!1})},ne=ee=>{if(y.value)return;const H=m.value.idKey;if(ee.length===0){const J=$(),Y=new Set(J.map(me=>me[H]));k.value=k.value.filter(me=>!Y.has(me[H]))}else k.value=a.pubfn.arrConcat(k.value,ee,H)},de=()=>{var H;const ee=t.multiple?t.multipleLimit:1;(H=uni.$message)==null||H.call(uni,{message:`最多只能选择 : ${ee}`,showClose:!0,type:"warning"})},he=(ee,H)=>{var S,j;if(y.value)return;const{multiple:J,multipleLimit:Y}=t,me=m.value.idKey,G=ee.some(le=>le===H);if(J)if(G){if(k.value.length>=Y)return de(),y.value=!0,e.nextTick(()=>{var Ae;const le=$(),Te=a.pubfn.getListIndex(le,me,H[me]);Te>-1&&((Ae=f.value)==null||Ae.toggleRowSelection(le[Te],!1)),y.value=!1}),!1;k.value=[...k.value,H]}else k.value=k.value.filter(le=>le[me]!==H[me]);else{if(y.value=!0,G){const le=$();(S=f.value)==null||S.clearSelection(),k.value=[H];const Te=a.pubfn.getListIndex(le,me,H[me]);Te>-1&&((j=f.value)==null||j.toggleRowSelection(le[Te],!0))}else k.value=[];e.nextTick(()=>{y.value=!1})}},A=(ee,H)=>{var Te,Ae,Le;if((H==null?void 0:H.type)==="selection"||y.value)return;const{multiple:J,multipleLimit:Y}=t,me=m.value.idKey,G=$(),S=a.pubfn.getListIndex(G,me,ee[me]),le=a.pubfn.getListIndex(k.value,me,ee[me])===-1;if(J){if(le&&k.value.length>=Y)return de(),!1}else{y.value=!0,(Te=f.value)==null||Te.clearSelection(),k.value=le?[ee]:[],S>-1&&le&&((Ae=f.value)==null||Ae.toggleRowSelection(G[S],!0)),e.nextTick(()=>{y.value=!1});return}S>-1&&((Le=f.value)==null||Le.toggleRowSelection(G[S],le))},M=(ee,H,J)=>{var me;const Y=m.value.idKey;if(H.title==="删除"){const G=$();k.value=k.value.filter(j=>j[Y]!==ee[Y]);const S=a.pubfn.getListIndex(G,Y,ee[Y]);S>-1&&(y.value=!0,(me=f.value)==null||me.toggleRowSelection(G[S],!1),e.nextTick(()=>{y.value=!1}))}},O=()=>{const{multiple:ee,multipleLimit:H}=t,J=ee?H:1;if(k.value.length>J)return de(),!1;g.value=!1,Q(k.value),c.value=a.pubfn.copyObject(k.value)},K=()=>{g.value=!1},se=()=>{g.value=!0},ae=()=>{s("close")},fe=()=>{k.value=a.pubfn.copyObject(c.value),e.nextTick(()=>{re()}),s("closed")},ge=()=>{k.value=a.pubfn.copyObject(c.value),v.value&&(z(),v.value=!1),s("open")},Se=()=>{e.nextTick(()=>{re()}),s("opened")},Ce=ee=>{Ne(ee),c.value=a.pubfn.copyObject(k.value),Q(c.value)},Ne=ee=>{const H=m.value.idKey;k.value=k.value.filter(J=>J[H]!==ee)},Ve=ee=>{const H=t.customName;return typeof H=="function"?H({row:ee}):a.pubfn.getData(ee,m.value.nameKey)};return e.onMounted(()=>{I()}),e.watch(h,ee=>{C.formData={...ee},v.value=!0},{immediate:!0}),e.watch(()=>t.modelValue,(ee,H)=>{const J=m.value.idKey,Y=t.multiple,me=c.value;if(Y){if(a.pubfn.isNull(ee)){I();return}let G=ee.length!==me.length;G||ee.forEach(S=>{a.pubfn.getListIndex(me,J,S)===-1&&(G=!0)}),G&&I()}else(N.value||!me[0]&&ee||me[0]&&ee!==me[0][J])&&I()}),{show:g,loading:i,userSelectData:c,rightSelectData:k,table1Ref:f,queryForm1:C,keysConfig:m,table2Columns:u,table2showSummaryCom:l,table2totalOptionCom:d,sizeCom:o,table1RowHeightCom:p,table1HeightCom:E,table2MarginTopCom:n,table2WidthCom:_,dialogWidthCom:V,styleCom:R,labelFormatCom:q,openDialog:se,closeDialog:K,submit:O,search:z,actionSuccess:x,selectAll:ne,selectionChange:he,onRowClick:A,customRightBtns:M,_close:ae,_closed:fe,_open:ge,_opened:Se,_closeTag:Ce,nameFn:Ve}},jr={key:0,style:{"margin-right":"10px"}},Wr={class:""},Kr={class:"table-select-form-view"},Hr=e.defineComponent({name:"vc-data-input-table-select",__name:"data-input-table-select",props:Or,emits:Ur,setup(t,{emit:s}){const a=t,f=s,{show:g,loading:i,userSelectData:c,rightSelectData:k,table1Ref:T,queryForm1:v,keysConfig:N,table2Columns:y,table2showSummaryCom:r,table2totalOptionCom:m,sizeCom:h,table1RowHeightCom:w,table1HeightCom:C,table2MarginTopCom:u,table2WidthCom:l,dialogWidthCom:d,styleCom:o,labelFormatCom:p,openDialog:E,closeDialog:n,submit:_,search:V,actionSuccess:R,selectAll:q,selectionChange:I,onRowClick:B,customRightBtns:P,_close:Q,_closed:z,_open:$,_opened:x,_closeTag:L,nameFn:re}=qr(a,f);return(ne,de)=>{const he=e.resolveComponent("el-tag"),A=e.resolveComponent("block"),M=e.resolveComponent("el-button"),O=e.resolveComponent("vc-data-table-query"),K=e.resolveComponent("vc-data-table"),se=e.resolveComponent("vc-data-dialog"),ae=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("view",{class:"vc-data-input-table-select",style:e.normalizeStyle(e.unref(o))},[ne.multiple&&ne.labelFormat?(e.openBlock(),e.createElementBlock("text",jr,e.toDisplayString(e.unref(p)),1)):(e.openBlock(),e.createBlock(A,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),fe=>(e.openBlock(),e.createBlock(he,{key:fe[e.unref(N).idKey],class:"select-tag",closable:!ne.disabled,"disable-transitions":!1,onClose:ge=>e.unref(L)(fe[e.unref(N).idKey])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(re)(fe)),1)]),_:2},1032,["closable","onClose"]))),128))]),_:1})),e.withDirectives((e.openBlock(),e.createElementBlock("view",Wr,[ne.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,onClick:e.unref(E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne.placeholder),1)]),_:1},8,["onClick"]))])),[[ae,e.unref(i)]]),e.createVNode(se,{modelValue:e.unref(g),"onUpdate:modelValue":de[1]||(de[1]=fe=>e.isRef(g)?g.value=fe:null),title:ne.placeholder,width:e.unref(d),top:"7vh",mode:"form","close-on-click-modal":ne.closeOnClickModal,onClose:e.unref(Q),onClosed:e.unref(z),onOpen:e.unref($),onOpened:e.unref(x)},{footer:e.withCtx(()=>[ne.showCancel?(e.openBlock(),e.createBlock(M,{key:0,type:"default",size:e.unref(h),onClick:e.unref(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne.cancelText||"关 闭"),1)]),_:1},8,["size","onClick"])):e.createCommentVNode("",!0),e.createVNode(M,{type:"primary",size:e.unref(h),onClick:e.unref(_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne.submitText||"确 定"),1)]),_:1},8,["size","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("view",Kr,[e.createElementVNode("view",{style:e.normalizeStyle(ne.multiple?`width: calc(100% - ${e.unref(l)+10}px);`:"width: 100%;")},[e.createVNode(O,{modelValue:e.unref(v).formData,"onUpdate:modelValue":de[0]||(de[0]=fe=>e.unref(v).formData=fe),columns:e.unref(v).columns,"show-reset":!0,size:e.unref(h),"main-columns":ne.mainColumns,onSearch:e.unref(V)},null,8,["modelValue","columns","size","main-columns","onSearch"]),e.createVNode(K,{ref_key:"table1Ref",ref:T,action:ne.action,"encrypt-action":ne.encryptAction,columns:ne.columns,"query-form-param":e.unref(v),size:e.unref(h),"right-btns":[],selection:!0,"row-no":!1,"row-key":e.unref(N).idKey,"searched-clean-selection":!1,pagination:!0,"page-size":ne.pageSize,height:e.unref(C),"row-height":e.unref(w),border:!0,multiple:ne.multiple,"left-fixed":ne.leftFixed,"right-fixed":ne.rightFixed,"pager-count":ne.pagerCount,"is-request":ne.isRequest,"request-header":ne.requestHeader,"request-method":ne.requestMethod,props:a,"data-preprocess":ne.dataPreprocess,"show-summary":ne.showSummary,"total-option":ne.totalOption,"summary-method":ne.summaryMethod,"need-alert":ne.needAlert,"get-count":ne.getCount,"max-page-count":ne.maxPageCount,onRowClick:e.unref(B),onSelect:e.unref(I),onSelectAll:e.unref(q),onSuccess:e.unref(R)},null,8,["action","encrypt-action","columns","query-form-param","size","row-key","page-size","height","row-height","multiple","left-fixed","right-fixed","pager-count","is-request","request-header","request-method","props","data-preprocess","show-summary","total-option","summary-method","need-alert","get-count","max-page-count","onRowClick","onSelect","onSelectAll","onSuccess"])],4),ne.multiple?(e.openBlock(),e.createElementBlock("view",{key:0,class:"right-view",style:e.normalizeStyle(`width: ${e.unref(l)}px;`)},[de[2]||(de[2]=e.createElementVNode("view",{class:"right-title"},"已选",-1)),e.createVNode(K,{style:e.normalizeStyle(`margin-top: ${e.unref(u)}px;`),data:e.unref(k),columns:e.unref(y),"max-height":ne.pageSize===5?335:585,border:!0,"row-height":e.unref(w),"right-btns":[],"custom-right-btns":[{title:"删除",type:"text"}],"show-summary":e.unref(r),"total-option":e.unref(m),onCustomRightBtns:e.unref(P)},null,8,["style","data","columns","max-height","row-height","show-summary","total-option","onCustomRightBtns"])],4)):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","title","width","close-on-click-modal","onClose","onClosed","onOpen","onOpened"])],4)}}}),xr=De(Hr,[["__scopeId","data-v-19f5e489"]]),Yr={data:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},collapse:{type:Boolean,default:!1},theme:{type:[String,Object],default:null},backgroundColor:{type:String,default:"#ffffff"},subBackgroundColor:{type:String,default:"#ffffff"},textColor:{type:String,default:"#515a6e"},activeTextColor:{type:String,default:"#409EFF"},activeBackgroundColor:{type:String,default:"#ecf5ff"},uniqueOpened:{type:Boolean,default:!1},defaultOpeneds:{type:Array,default:()=>[]},menuTrigger:{type:String,default:"hover"},router:{type:Boolean,default:!1},collapseTransition:{type:Boolean,default:!0},defaultMenuIcon:{type:String,default:"el-icon-folder-opened"},defaultSubMenuIcon:{type:String,default:"el-icon-tickets"}},Jr={open:t=>!0,close:t=>!0,select:t=>!0},Gr=t=>{const s={backgroundColor:"#ffffff",subBackgroundColor:"#ffffff",textColor:"#303133",activeTextColor:"#409EFF",activeBackgroundColor:"#ecf5ff",hoverTextColor:"#303133",hoverBackgroundColor:"#efefef"},a=e.computed(()=>{const g=t.theme;if(g&&g.use){const i=g[g.use];if(i&&i.leftMenu)return i.leftMenu}return s}),f=e.computed(()=>({"--activeTextColor":a.value.activeTextColor,"--activeBackgroundColor":a.value.activeBackgroundColor,"--collapseActiveTextColor":a.value.collapseActiveTextColor,"--collapseActiveBackgroundColor":a.value.collapseActiveBackgroundColor,"--backgroundColor":a.value.backgroundColor,"--subBackgroundColor":a.value.subBackgroundColor,"--hoverTextColor":a.value.hoverTextColor,"--hoverBackgroundColor":a.value.hoverBackgroundColor}));return{themeConfig:a,menuStyle:f}},Qr=(t,s)=>{const a=uni.vc,f=e.ref(""),g=e.reactive({currentOpeneds:t.defaultOpeneds}),i=e.computed(()=>{var r;if(!a)return f.value;const N=(r=a.getPinia("$app"))==null?void 0:r.route;if(!N)return f.value;const y=c(N);return(y==null?void 0:y.menu_id)||f.value});function c(N){var w,C;if(!a)return null;const y=a.getPinia("$app.menuList")||[],{path:r,url:m}=N;let h=m?(w=a.pubfn)==null?void 0:w.getListItem(y,"url",m):null;return h||(h=((C=a.pubfn)==null?void 0:C.getListItem(y,"url",r))||null),h??null}function k(N){s("open",N)}function T(N){s("close",N)}function v(N){f.value=N.menu_id,s("select",N)}return{active:f,privateData:g,defaultActiveCom:i,handleOpen:k,handleClose:T,handleSelect:v}},Xr={class:"vc-data-menu-nav no-user-select"},Zr=e.defineComponent({name:"vc-data-menu-nav",__name:"data-menu-nav",props:Yr,emits:Jr,setup(t,{emit:s}){const a=t,f=s,{privateData:g,defaultActiveCom:i,handleOpen:c,handleClose:k,handleSelect:T}=Qr(a,f),{themeConfig:v,menuStyle:N}=Gr(a);return(y,r)=>{const m=e.resolveComponent("vc-data-menu-sub"),h=e.resolveComponent("el-menu"),w=e.resolveComponent("el-col"),C=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("view",Xr,[e.createVNode(C,{class:"tac"},{default:e.withCtx(()=>[e.createVNode(w,{span:24},{default:e.withCtx(()=>[e.createVNode(h,{style:e.normalizeStyle(e.unref(N)),mode:y.mode,collapse:y.collapse,"background-color":e.unref(v).backgroundColor||y.backgroundColor,"text-color":e.unref(v).textColor||y.textColor,"active-text-color":e.unref(v).activeTextColor||y.activeTextColor,"default-active":e.unref(i),"default-openeds":e.unref(g).currentOpeneds,"unique-opened":y.uniqueOpened,"menu-trigger":y.menuTrigger,router:y.router,"collapse-transition":y.collapseTransition,onOpen:e.unref(c),onClose:e.unref(k)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u.menu_id},[!u.hiddenMenu&&!u.hidden_menu?(e.openBlock(),e.createBlock(m,{key:0,data:u,active:e.unref(i),"default-menu-icon":y.defaultMenuIcon,"default-sub-menu-icon":y.defaultSubMenuIcon,onSelect:e.unref(T)},null,8,["data","active","default-menu-icon","default-sub-menu-icon","onSelect"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["style","mode","collapse","background-color","text-color","active-text-color","default-active","default-openeds","unique-opened","menu-trigger","router","collapse-transition","onOpen","onClose"])]),_:1})]),_:1})])}}}),ed=De(Zr,[["__scopeId","data-v-24d4673b"]]),td={data:{type:Object,default:()=>({})},active:{type:String,default:""},defaultMenuIcon:{type:String,default:"el-icon-folder-opened"},defaultSubMenuIcon:{type:String,default:"el-icon-tickets"}},nd={select:t=>!0},od=(t,s)=>{const a=uni.vc,f=e.ref("redirectTo");e.onMounted(()=>{f.value=(a==null?void 0:a.getPinia("$app.config.sideBar.navigateMode"))||"redirectTo"});const g=e.computed(()=>{var v;return t.data.icon?t.data.icon:(v=t.data.children)!=null&&v.length?t.defaultMenuIcon:t.defaultSubMenuIcon}),i=e.computed(()=>{const v=t.data.children;return!v||v.length===0?!1:v.some(N=>!N.hiddenMenu&&!N.hidden_menu)});function c(v){return f.value==="navigateTo"?v+t.active:v}function k(v){const N=v.url;if(!N)return;if(N.startsWith("http")){window.open(N);return}(f.value==="navigateTo"?uni.navigateTo:uni.redirectTo)({url:N,fail(r){uni.showModal({title:"提示",content:`页面 ${N} 跳转失败`,showCancel:!1}),console.error(r)}})}function T(v){s("select",v)}return{navigateMode:f,iconName:g,isLeafNode:i,getKey:c,clickMenuItem:k,handleChildSelect:T}},ad={class:"menu-name"},cd={class:"menu-name"},rd=e.defineComponent({name:"vc-data-menu-sub",__name:"data-menu-sub",props:td,emits:nd,setup(t,{emit:s}){const a=t,f=s,{iconName:g,isLeafNode:i,getKey:c,clickMenuItem:k,handleChildSelect:T}=od(a,f);return(v,N)=>{const y=e.resolveComponent("vc-data-icon"),r=e.resolveComponent("vc-data-menu-sub"),m=e.resolveComponent("el-sub-menu"),h=e.resolveComponent("el-menu-item");return e.unref(i)?(e.openBlock(),e.createBlock(m,{key:0,index:e.unref(c)(v.data.menu_id)},{title:e.withCtx(()=>[e.createVNode(y,{class:"menu-custom-icon",name:e.unref(g)},null,8,["name"]),e.createElementVNode("span",ad,e.toDisplayString(v.data.name),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.data.children,w=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:e.unref(c)(w.menu_id)},[!w.hiddenMenu&&!w.hidden_menu?(e.openBlock(),e.createBlock(r,{key:0,data:w,active:v.active,"default-menu-icon":v.defaultMenuIcon,"default-sub-menu-icon":v.defaultSubMenuIcon,onSelect:e.unref(T)},null,8,["data","active","default-menu-icon","default-sub-menu-icon","onSelect"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["index"])):(e.openBlock(),e.createBlock(h,{key:1,class:"vc-menuitem",index:e.unref(c)(v.data.menu_id),onClick:N[0]||(N[0]=w=>e.unref(k)(v.data))},{title:e.withCtx(()=>[e.createElementVNode("span",cd,e.toDisplayString(v.data.name),1)]),default:e.withCtx(()=>[e.createVNode(y,{class:"menu-custom-icon",name:e.unref(g)},null,8,["name"])]),_:1},8,["index"]))}}}),dd=De(rd,[["__scopeId","data-v-50cd2d2c"]]),ld=["default","form"],id={modelValue:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[String,Number],default:""},mode:{type:String,values:ld,default:"default"},top:{type:String,default:"5vh"},closeOnClickModal:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},beforeClose:{type:Function,default:void 0},center:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!1},maxHeight:{type:[Number,String],default:void 0},customClass:{type:String,default:""}},sd={"update:modelValue":t=>!0,open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0},ud=(t,s)=>{const a=uni.vc||{},f=e.ref(t.fullscreen),g=e.ref(!1),i=e.computed(()=>{const o={};return t.maxHeight&&(o.overflowY="auto",o.maxHeight=typeof t.maxHeight=="number"?`${t.maxHeight}px`:String(t.maxHeight)),o}),c=e.computed(()=>{const o=t.showClose;return o===void 0||o===!0}),k=e.computed(()=>!((a==null?void 0:a.getPinia("$app.isPC"))??!0)||f.value),T=e.computed(()=>{let o="vc-data-dialog";return t.customClass&&(o+=" "+t.customClass),t.mode&&(o+=" dialog-"+t.mode),t.showHeader||(o+=" hide-header"),o}),v=e.computed(()=>t.closeOnClickModal!==void 0?t.closeOnClickModal:t.mode!=="form"),N=()=>{t.modelValue&&y(),t.fullscreen&&(f.value=!0)},y=()=>{s("open"),g.value=!0},r=()=>{s("opened")},m=()=>{s("close")},h=()=>{s("closed"),g.value=!1},w=()=>{s("update:modelValue",!0)},C=()=>{s("update:modelValue",!1)},u=(o={})=>{const{beforeClose:p=!0}=o;p&&typeof t.beforeClose=="function"?t.beforeClose(C):C()},l=()=>{f.value=!f.value},d=o=>{o?y():m()};return e.onMounted(()=>{N()}),e.watch(()=>t.modelValue,o=>{d(o)}),e.provide("vc-data-dialog",{close:u,isShow:g,isFullscreen:f,top:t.top,center:t.center,destroyOnClose:t.destroyOnClose}),{isFullscreen:f,isShow:g,classCom:T,titleStyleCom:i,showCloseCom:c,fullscreenCom:k,closeOnClickModalCom:v,handleOpen:y,handleOpened:r,handleClose:m,handleClosed:h,open:w,close:u,changeFullscreen:l}},md={class:"el-dialog__title"},pd={key:0,class:"right-btn-box"},fd=e.defineComponent({name:"vc-data-dialog",__name:"data-dialog",props:id,emits:sd,setup(t,{expose:s,emit:a}){const f=t,g=a,{isShow:i,isFullscreen:c,classCom:k,titleStyleCom:T,showCloseCom:v,fullscreenCom:N,closeOnClickModalCom:y,handleOpened:r,handleClose:m,handleClosed:h,open:w,close:C,changeFullscreen:u}=ud(f,g);return s({open:w,close:C,changeFullscreen:u,isShow:i,isFullscreen:c,top:f.top,center:f.center,destroyOnClose:f.destroyOnClose}),(l,d)=>{const o=e.resolveComponent("vc-data-icon"),p=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(p,e.mergeProps(l.$attrs,{class:e.unref(k),"model-value":l.modelValue,title:l.title,width:l.vc.pubfn.addUnit(l.width),fullscreen:e.unref(N),top:l.top,modal:l.modal,"modal-append-to-body":l.modalAppendToBody,"append-to-body":l.appendToBody,"lock-scroll":l.lockScroll,"close-on-click-modal":e.unref(y),"close-on-press-escape":l.closeOnPressEscape,"show-close":e.unref(v),center:l.center,"destroy-on-close":l.destroyOnClose,"before-close":e.unref(C),onClose:e.unref(m),onOpened:e.unref(r),onClosed:e.unref(h)}),e.createSlots({header:e.withCtx(()=>[e.renderSlot(l.$slots,"header",{},()=>[e.createElementVNode("span",md,e.toDisplayString(l.title),1)]),l.mode==="form"?(e.openBlock(),e.createElementBlock("view",pd,[l.showFullscreen?(e.openBlock(),e.createBlock(o,{key:0,name:"vc-icon-full",size:16,color:"rgba(0,0,0,.7)",pointer:!0,onClick:e.unref(u)},null,8,["onClick"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:2},[l.maxHeight?{name:"default",fn:e.withCtx(()=>[e.createElementVNode("view",{style:e.normalizeStyle(e.unref(T))},[e.renderSlot(l.$slots,"default")],4)]),key:"0"}:{name:"default",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),key:"1"},l.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"footer",{close:e.unref(C)})]),key:"2"}:void 0]),1040,["class","model-value","title","width","fullscreen","top","modal","modal-append-to-body","append-to-body","lock-scroll","close-on-click-modal","close-on-press-escape","show-close","center","destroy-on-close","before-close","onClose","onOpened","onClosed"])}}}),hd={modelValue:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[String,Number],default:""},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl"},showHeader:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},beforeClose:{type:Function,default:void 0},destroyOnClose:{type:Boolean,default:!1}},_d={"update:modelValue":t=>!0,open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0},yd=(t,s)=>{const a=e.ref(!1),f=()=>{t.modelValue&&g()},g=()=>{s("open"),a.value=!0},i=()=>{s("opened")},c=()=>{s("close")},k=()=>{s("closed"),a.value=!1},T=()=>{s("update:modelValue",!0)},v=()=>{typeof t.beforeClose=="function"?t.beforeClose(N):N()},N=()=>{s("update:modelValue",!1)};return e.onMounted(()=>{f()}),e.watch(()=>t.modelValue,y=>{y?g():c()}),{isShow:a,handleOpen:g,handleOpened:i,handleClose:c,handleClosed:k,open:T,close:v}},vd={class:"el-drawer__title"},gd=e.defineComponent({name:"vc-data-drawer",__name:"data-drawer",props:hd,emits:_d,setup(t,{expose:s,emit:a}){const f=t,g=a,{handleOpen:i,handleOpened:c,handleClose:k,handleClosed:T,open:v,close:N}=yd(f,g);return s({open:v,close:N}),(y,r)=>{const m=e.resolveComponent("el-drawer");return e.openBlock(),e.createBlock(m,{"model-value":y.modelValue,title:y.title,size:y.vc.pubfn.addUnit(y.width),modal:y.modal,direction:y.direction,"with-header":y.showHeader,"append-to-body":y.appendToBody,"modal-class":(y.modalAppendToBody,""),"close-on-click-modal":y.closeOnClickModal,"close-on-press-escape":y.closeOnPressEscape,"show-close":y.showClose,"before-close":e.unref(N),"destroy-on-close":y.destroyOnClose,onOpen:e.unref(i),onOpened:e.unref(c),onClose:e.unref(k),onClosed:e.unref(T)},{header:e.withCtx(()=>[e.renderSlot(y.$slots,"title",{},()=>[e.createElementVNode("span",vd,e.toDisplayString(y.title),1)])]),default:e.withCtx(()=>[e.renderSlot(y.$slots,"default")]),_:3},8,["model-value","title","size","modal","direction","with-header","append-to-body","modal-class","close-on-click-modal","close-on-press-escape","show-close","before-close","destroy-on-close","onOpen","onOpened","onClose","onClosed"])}}}),bd={href:{type:String,default:""},text:{type:String,default:""},showUnderLine:{type:Boolean,default:!0},color:{type:String,default:"inherit"},fontSize:{type:[Number,String],default:13}},kd=t=>{const s=uni.vc||{};return{linkStyle:e.computed(()=>{const{fontSize:f,color:g}=t,i={color:g};return i.fontSize=s.pubfn.addUnit(f),i})}},wd=t=>{const s=e.computed(()=>g(t.href)),a=e.computed(()=>!s.value&&!!t.href),f=()=>{t.href&&i(t.href)},g=c=>/^https?:\/\//.test(c),i=c=>{window.open(c,"_blank")};return{isExternal:s,isInternal:a,openURL:f}},Cd=e.defineComponent({name:"vc-data-link",__name:"data-link",props:bd,setup(t){const s=t,{openURL:a}=wd(s),{linkStyle:f}=kd(s);return(g,i)=>(e.openBlock(),e.createElementBlock("text",{class:e.normalizeClass(["vc-data-link",{"vc-data-link--underline":g.showUnderLine}]),style:e.normalizeStyle(e.unref(f)),onClick:i[0]||(i[0]=(...c)=>e.unref(a)&&e.unref(a)(...c))},[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(g.text),1)],!0)],6))}}),Bd=De(Cd,[["__scopeId","data-v-727263b4"]]),Sd={tips:{type:[String,Array],default:""},customStyle:{type:[String,Object],default:""}},Vd={class:"vc-data-tips"},Nd=["innerHTML"],Td={key:1},Ed=["innerHTML","onClick"],zd=["innerHTML"],Dd=["innerHTML"],Fd=e.defineComponent({name:"vc-data-tips",__name:"data-tips",props:Sd,setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("view",Vd,[typeof s.tips=="string"?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle(s.customStyle),innerHTML:s.tips},null,12,Nd)):Array.isArray(s.tips)?(e.openBlock(),e.createElementBlock("view",Td,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tips,(f,g)=>(e.openBlock(),e.createElementBlock("view",{class:"vc-contents",key:g},[typeof f.click=="function"?(e.openBlock(),e.createElementBlock("text",{key:0,class:"button-text",style:e.normalizeStyle(f.style),innerHTML:f.text,onClick:i=>f.click()},null,12,Ed)):(e.openBlock(),e.createElementBlock("text",{key:1,style:e.normalizeStyle(f.style),innerHTML:f.text},null,12,zd))]))),128))])):(e.openBlock(),e.createElementBlock("view",{key:2,style:e.normalizeStyle(s.customStyle),innerHTML:s.tips},null,12,Dd))]))}}),Id=De(Fd,[["__scopeId","data-v-dec7639e"]]),Ad={modelValue:{type:String},text:{type:String,default:""},size:{type:Number,default:200},unit:{type:String,default:"rpx"},show:{type:Boolean,default:!0},background:{type:String,default:"#ffffff"},foreground:{type:String,default:"#000000"},pdground:{type:String,default:"#000000"},image:{type:String,default:""},imageSize:{type:Number,default:40},lv:{type:Number,default:3},onval:{type:Boolean,default:!0},loadMake:{type:Boolean,default:!0},usingComponents:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!1},loadingText:{type:String,default:""},loading:{type:Boolean,default:!1},language:{type:String,default:""}},Md={"update:modelValue":t=>!0,result:t=>!0,input:t=>!0};let xt={};(function(){function t(r){var m,h,w;return r<128?[r]:r<2048?(m=192+(r>>6),h=128+(r&63),[m,h]):(m=224+(r>>12),h=128+(r>>6&63),w=128+(r&63),[m,h,w])}function s(r){for(var m=[],h=0;h<r.length;h++)for(var w=r.charCodeAt(h),C=t(w),u=0;u<C.length;u++)m.push(C[u]);return m}function a(r,m){this.typeNumber=-1,this.errorCorrectLevel=m,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=r,this.utf8bytes=s(r),this.make()}a.prototype={constructor:a,getModuleCount:function(){return this.moduleCount},make:function(){this.getRightType(),this.dataCache=this.createData(),this.createQrcode()},makeImpl:function(r){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var m=0;m<this.moduleCount;m++)this.modules[m]=new Array(this.moduleCount);this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(!0,r),this.typeNumber>=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(r,m){for(var h=-1;h<=7;h++)if(!(r+h<=-1||this.moduleCount<=r+h))for(var w=-1;w<=7;w++)m+w<=-1||this.moduleCount<=m+w||(0<=h&&h<=6&&(w==0||w==6)||0<=w&&w<=6&&(h==0||h==6)||2<=h&&h<=4&&2<=w&&w<=4?this.modules[r+h][m+w]=!0:this.modules[r+h][m+w]=!1)},createQrcode:function(){for(var r=0,m=0,h=null,w=0;w<8;w++){this.makeImpl(w);var C=i.getLostPoint(this);(w==0||r>C)&&(r=C,m=w,h=this.modules)}this.modules=h,this.setupTypeInfo(!1,m),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var r=8;r<this.moduleCount-8;r++)this.modules[r][6]==null&&(this.modules[r][6]=r%2==0,this.modules[6][r]==null&&(this.modules[6][r]=r%2==0))},setupPositionAdjustPattern:function(){for(var r=i.getPatternPosition(this.typeNumber),m=0;m<r.length;m++)for(var h=0;h<r.length;h++){var w=r[m],C=r[h];if(this.modules[w][C]==null)for(var u=-2;u<=2;u++)for(var l=-2;l<=2;l++)u==-2||u==2||l==-2||l==2||u==0&&l==0?this.modules[w+u][C+l]=!0:this.modules[w+u][C+l]=!1}},setupTypeNumber:function(r){for(var m=i.getBCHTypeNumber(this.typeNumber),h=0;h<18;h++){var w=!r&&(m>>h&1)==1;this.modules[Math.floor(h/3)][h%3+this.moduleCount-8-3]=w,this.modules[h%3+this.moduleCount-8-3][Math.floor(h/3)]=w}},setupTypeInfo:function(r,m){for(var h=f[this.errorCorrectLevel]<<3|m,w=i.getBCHTypeInfo(h),C=0;C<15;C++){var u=!r&&(w>>C&1)==1;C<6?this.modules[C][8]=u:C<8?this.modules[C+1][8]=u:this.modules[this.moduleCount-15+C][8]=u;var u=!r&&(w>>C&1)==1;C<8?this.modules[8][this.moduleCount-C-1]=u:C<9?this.modules[8][15-C-1+1]=u:this.modules[8][15-C-1]=u}this.modules[this.moduleCount-8][8]=!r},createData:function(){var r=new N,m=this.typeNumber>9?16:8;r.put(4,4),r.put(this.utf8bytes.length,m);for(var h=0,w=this.utf8bytes.length;h<w;h++)r.put(this.utf8bytes[h],8);for(r.length+4<=this.totalDataCount*8&&r.put(0,4);r.length%8!=0;)r.putBit(!1);for(;!(r.length>=this.totalDataCount*8||(r.put(a.PAD0,8),r.length>=this.totalDataCount*8));)r.put(a.PAD1,8);return this.createBytes(r)},createBytes:function(r){for(var m=0,h=0,w=0,C=this.rsBlock.length/3,u=new Array,l=0;l<C;l++)for(var d=this.rsBlock[l*3+0],o=this.rsBlock[l*3+1],p=this.rsBlock[l*3+2],E=0;E<d;E++)u.push([p,o]);for(var n=new Array(u.length),_=new Array(u.length),V=0;V<u.length;V++){var R=u[V][0],q=u[V][1]-R;h=Math.max(h,R),w=Math.max(w,q),n[V]=new Array(R);for(var l=0;l<n[V].length;l++)n[V][l]=255&r.buffer[l+m];m+=R;var I=i.getErrorCorrectPolynomial(q),B=new T(n[V],I.getLength()-1),P=B.mod(I);_[V]=new Array(I.getLength()-1);for(var l=0;l<_[V].length;l++){var Q=l+P.getLength()-_[V].length;_[V][l]=Q>=0?P.get(Q):0}}for(var z=new Array(this.totalDataCount),$=0,l=0;l<h;l++)for(var V=0;V<u.length;V++)l<n[V].length&&(z[$++]=n[V][l]);for(var l=0;l<w;l++)for(var V=0;V<u.length;V++)l<_[V].length&&(z[$++]=_[V][l]);return z},mapData:function(r,m){for(var h=-1,w=this.moduleCount-1,C=7,u=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var d=0;d<2;d++)if(this.modules[w][l-d]==null){var o=!1;u<r.length&&(o=(r[u]>>>C&1)==1);var p=i.getMask(m,w,l-d);p&&(o=!o),this.modules[w][l-d]=o,C--,C==-1&&(u++,C=7)}if(w+=h,w<0||this.moduleCount<=w){w-=h,h=-h;break}}}},a.PAD0=236,a.PAD1=17;for(var f=[1,0,3,2],g={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(r){for(var m=r<<10;i.getBCHDigit(m)-i.getBCHDigit(i.G15)>=0;)m^=i.G15<<i.getBCHDigit(m)-i.getBCHDigit(i.G15);return(r<<10|m)^i.G15_MASK},getBCHTypeNumber:function(r){for(var m=r<<12;i.getBCHDigit(m)-i.getBCHDigit(i.G18)>=0;)m^=i.G18<<i.getBCHDigit(m)-i.getBCHDigit(i.G18);return r<<12|m},getBCHDigit:function(r){for(var m=0;r!=0;)m++,r>>>=1;return m},getPatternPosition:function(r){return i.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,m,h){switch(r){case g.PATTERN000:return(m+h)%2==0;case g.PATTERN001:return m%2==0;case g.PATTERN010:return h%3==0;case g.PATTERN011:return(m+h)%3==0;case g.PATTERN100:return(Math.floor(m/2)+Math.floor(h/3))%2==0;case g.PATTERN101:return m*h%2+m*h%3==0;case g.PATTERN110:return(m*h%2+m*h%3)%2==0;case g.PATTERN111:return(m*h%3+(m+h)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var m=new T([1],0),h=0;h<r;h++)m=m.multiply(new T([1,c.gexp(h)],0));return m},getLostPoint:function(r){for(var m=r.getModuleCount(),h=0,w=0,C=0;C<m;C++)for(var u=0,l=r.modules[C][0],d=0;d<m;d++){var o=r.modules[C][d];if(d<m-6&&o&&!r.modules[C][d+1]&&r.modules[C][d+2]&&r.modules[C][d+3]&&r.modules[C][d+4]&&!r.modules[C][d+5]&&r.modules[C][d+6]&&(d<m-10?r.modules[C][d+7]&&r.modules[C][d+8]&&r.modules[C][d+9]&&r.modules[C][d+10]&&(h+=40):d>3&&r.modules[C][d-1]&&r.modules[C][d-2]&&r.modules[C][d-3]&&r.modules[C][d-4]&&(h+=40)),C<m-1&&d<m-1){var p=0;o&&p++,r.modules[C+1][d]&&p++,r.modules[C][d+1]&&p++,r.modules[C+1][d+1]&&p++,(p==0||p==4)&&(h+=3)}l^o?u++:(l=o,u>=5&&(h+=3+u-5),u=1),o&&w++}for(var d=0;d<m;d++)for(var u=0,l=r.modules[0][d],C=0;C<m;C++){var o=r.modules[C][d];C<m-6&&o&&!r.modules[C+1][d]&&r.modules[C+2][d]&&r.modules[C+3][d]&&r.modules[C+4][d]&&!r.modules[C+5][d]&&r.modules[C+6][d]&&(C<m-10?r.modules[C+7][d]&&r.modules[C+8][d]&&r.modules[C+9][d]&&r.modules[C+10][d]&&(h+=40):C>3&&r.modules[C-1][d]&&r.modules[C-2][d]&&r.modules[C-3][d]&&r.modules[C-4][d]&&(h+=40)),l^o?u++:(l=o,u>=5&&(h+=3+u-5),u=1)}var E=Math.abs(100*w/m/m-50)/5;return h+=E*10,h}},c={glog:function(r){if(r<1)throw new Error("glog("+r+")");return c.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return c.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},k=0;k<8;k++)c.EXP_TABLE[k]=1<<k;for(var k=8;k<256;k++)c.EXP_TABLE[k]=c.EXP_TABLE[k-4]^c.EXP_TABLE[k-5]^c.EXP_TABLE[k-6]^c.EXP_TABLE[k-8];for(var k=0;k<255;k++)c.LOG_TABLE[c.EXP_TABLE[k]]=k;function T(r,m){if(r.length==null)throw new Error(r.length+"/"+m);for(var h=0;h<r.length&&r[h]==0;)h++;this.num=new Array(r.length-h+m);for(var w=0;w<r.length-h;w++)this.num[w]=r[w+h]}T.prototype={get:function(r){return this.num[r]},getLength:function(){return this.num.length},multiply:function(r){for(var m=new Array(this.getLength()+r.getLength()-1),h=0;h<this.getLength();h++)for(var w=0;w<r.getLength();w++)m[h+w]^=c.gexp(c.glog(this.get(h))+c.glog(r.get(w)));return new T(m,0)},mod:function(r){var m=this.getLength(),h=r.getLength();if(m-h<0)return this;for(var w=new Array(m),C=0;C<m;C++)w[C]=this.get(C);for(;w.length>=h;){for(var u=c.glog(w[0])-c.glog(r.get(0)),C=0;C<r.getLength();C++)w[C]^=c.gexp(c.glog(r.get(C))+u);for(;w[0]==0;)w.shift()}return new T(w,0)}};var v=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];a.prototype.getRightType=function(){for(var r=1;r<41;r++){var m=v[(r-1)*4+this.errorCorrectLevel];if(m==null)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+this.errorCorrectLevel);for(var h=m.length/3,w=0,C=0;C<h;C++){var u=m[C*3+0],l=m[C*3+2];w+=l*u}var d=r>9?2:1;if(this.utf8bytes.length+d<w||r==40){this.typeNumber=r,this.rsBlock=m,this.totalDataCount=w;break}}};function N(){this.buffer=new Array,this.length=0}N.prototype={get:function(r){var m=Math.floor(r/8);return this.buffer[m]>>>7-r%8&1},put:function(r,m){for(var h=0;h<m;h++)this.putBit(r>>>m-h-1&1)},putBit:function(r){var m=Math.floor(this.length/8);this.buffer.length<=m&&this.buffer.push(0),r&&(this.buffer[m]|=128>>>this.length%8),this.length++}};let y=[];xt=function(r){if(this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:r.canvasId,context:r.context,usingComponents:r.usingComponents,showLoading:r.showLoading,loadingText:r.loadingText},typeof r=="string"&&(r={text:r}),r)for(var m in r)this.options[m]=r[m];for(var h=null,m=0,w=y.length;m<w;m++)if(y[m].text==this.options.text&&y[m].text.correctLevel==this.options.correctLevel){h=y[m].obj;break}m==w&&(h=new a(this.options.text,this.options.correctLevel),y.push({text:this.options.text,correctLevel:this.options.correctLevel,obj:h}));let C=function(l){var d=l.options;return d.pdground&&(l.row>1&&l.row<5&&l.col>1&&l.col<5||l.row>l.count-6&&l.row<l.count-2&&l.col>1&&l.col<5||l.row>1&&l.row<5&&l.col>l.count-6&&l.col<l.count-2)?d.pdground:d.foreground};(function(l){l.showLoading&&uni.showLoading({title:l.loadingText,mask:!0});for(var d=uni.createCanvasContext(l.canvasId,l.context),o=h.getModuleCount(),p=l.size,E=l.imageSize,n=(p/o).toPrecision(4),_=(p/o).toPrecision(4),V=0;V<o;V++)for(var R=0;R<o;R++){var q=Math.ceil((R+1)*n)-Math.floor(R*n),I=Math.ceil((V+1)*n)-Math.floor(V*n),B=C({row:V,col:R,count:o,options:l});d.setFillStyle(h.modules[V][R]?B:l.background),d.fillRect(Math.round(R*n),Math.round(V*_),q,I)}if(l.image){let z=function($,x,L,re,ne,de,he,A,M){$.setLineWidth(he),$.setFillStyle(l.background),$.setStrokeStyle(l.background),$.beginPath(),$.moveTo(x+de,L),$.arcTo(x+re,L,x+re,L+de,de),$.arcTo(x+re,L+ne,x+re-de,L+ne,de),$.arcTo(x,L+ne,x,L+ne-de,de),$.arcTo(x,L,x+de,L,de),$.closePath(),$.fill(),$.stroke()};var P=Number(((p-E)/2).toFixed(2)),Q=Number(((p-E)/2).toFixed(2));z(d,P,Q,E,E,2,6),d.drawImage(l.image,P,Q,E,E)}setTimeout(()=>{d.draw(!0,()=>{setTimeout(()=>{uni.canvasToTempFilePath({width:l.width,height:l.height,destWidth:l.width,destHeight:l.height,canvasId:l.canvasId,quality:1,success:function(z){l.cbResult&&l.cbResult(z.tempFilePath)},fail:function(z){l.cbResult&&l.cbResult(z)},complete:function(){l.showLoading&&uni.hideLoading()}},l.context)},l.text.length+100)})},l.usingComponents?0:150)})(this.options)},xt.prototype.clear=function(r){var m=uni.createCanvasContext(this.options.canvasId,this.options.context);m.clearRect(0,0,this.options.size,this.options.size),m.draw(!1,()=>{r&&r()})}})();const Pd={"vc.qrcode.loadingText":"loading...","vc.qrcode.contentEmpty":"QR code content cannot be empty","vc.qrcode.saveSuccess":"QR code saved successfully"},Rd={"vc.qrcode.loadingText":"二维码生成中","vc.qrcode.contentEmpty":"二维码内容不能为空","vc.qrcode.saveSuccess":"二维码保存成功"},Ld={"vc.qrcode.loadingText":"二維碼產生中","vc.qrcode.contentEmpty":"二維碼內容不能為空","vc.qrcode.saveSuccess":"二維碼儲存成功"},Qt={en:Pd,"zh-Hans":Rd,"zh-Hant":Ld},$d=(t,s)=>{const a=e.getCurrentInstance(),f=uni.vc||{},g=e.ref(""),i=e.ref(""),c=e.ref(null);let k=null;const T=()=>t.language||uni.getLocale()||"zh-Hans",v=l=>{const d=T();return(Qt[d]||Qt["zh-Hans"]||{})[l]??l},N=()=>{if(h(t.text)){uni.showToast({title:v("vc.qrcode.contentEmpty"),icon:"none",duration:2e3});return}k=new xt({context:a==null?void 0:a.proxy,canvasId:i.value,usingComponents:t.usingComponents,showLoading:t.showLoading,loadingText:C.value,text:t.text,size:u.value,background:t.background,foreground:t.foreground,pdground:t.pdground,correctLevel:t.lv,image:t.image,imageSize:t.imageSize,cbResult:l=>{m(l)}})},y=()=>{m(""),k&&typeof k.clear=="function"&&k.clear()},r=()=>{g.value!==""&&uni.saveImageToPhotosAlbum({filePath:g.value,success:()=>{uni.showToast({title:v("vc.qrcode.saveSuccess"),icon:"success",duration:2e3})}})},m=l=>{g.value=l,s("result",l),s("input",l),s("update:modelValue",l)},h=l=>{const d=typeof l;return d==="number"&&String(l)===""||d==="undefined"||d==="object"&&(l===null||JSON.stringify(l)==="{}"||JSON.stringify(l)==="[]")||d==="string"&&(l===""||l==="undefined"||l==="null"||l==="{}"||l==="[]")},w=()=>g.value;e.watch(()=>t.size,(l,d)=>{l!==d&&!h(l)&&!h(t.text)&&setTimeout(()=>N(),100)}),e.watch(()=>t.text,(l,d)=>{t.onval&&(l===d||h(l)||(c.value&&clearTimeout(c.value),c.value=setTimeout(()=>N(),300)))});const C=e.computed(()=>t.loadingText||v("vc.qrcode.loadingText")),u=e.computed(()=>t.unit==="rpx"?uni.upx2px(t.size):t.size);return e.onMounted(()=>{i.value="vc-data-qrcode-canvas-"+Math.floor(Math.random()*1e6),t.loadMake&&!h(t.text)&&setTimeout(()=>N(),100)}),e.onBeforeUnmount(()=>{c.value&&clearTimeout(c.value)}),{vc:f,result:g,canvasId:i,actualLoadingText:C,cpSize:u,t:v,getBase64:w,makeCode:N,clearCode:y,saveCode:r}},Od={key:0,class:"vc-data-qrcode"},Ud=["canvas-id"],qd=["id","width","height"],jd=["src"],Wd=e.defineComponent({__name:"data-qrcode",props:Ad,emits:Md,setup(t,{expose:s,emit:a}){const f=t,g=a,{result:i,canvasId:c,actualLoadingText:k,cpSize:T,getBase64:v,makeCode:N,clearCode:y,saveCode:r}=$d(f,g);return s({getBase64:v,makeCode:N,clearCode:y,saveCode:r}),(m,h)=>e.unref(c)&&m.text!==""&&!m.loading?(e.openBlock(),e.createElementBlock("view",Od,[e.createElementVNode("canvas",{class:"vc-data-qrcode-canvas","canvas-id":e.unref(c),style:e.normalizeStyle({width:e.unref(T)+"px",height:e.unref(T)+"px"})},null,12,Ud),e.createElementVNode("canvas",{id:e.unref(c),width:e.unref(T),height:e.unref(T),class:"vc-data-qrcode-canvas"},null,8,qd),e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("image",{key:0,class:"image",src:e.unref(i),style:e.normalizeStyle({width:e.unref(T)+"px",height:e.unref(T)+"px"})},null,12,jd)),[[e.vShow,m.show]]):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading-text",style:e.normalizeStyle("width: "+m.size+m.unit+";height: "+m.size+m.unit+";")},e.toDisplayString(e.unref(k)),5))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"loading-text",style:e.normalizeStyle("width: "+m.size+m.unit+";height: "+m.size+m.unit+";")},e.toDisplayString(e.unref(k)),5))}}),Kd=De(Wd,[["__scopeId","data-v-965ffcbd"]]),Hd=()=>{const t=uni.vc||{},s=e.reactive({show:!1}),a=e.reactive({list:[]}),f={"vc.menuTabs.closeLeft":"关闭左侧","vc.menuTabs.closeRight":"关闭右侧","vc.menuTabs.closeOther":"关闭其他","vc.menuTabs.closeAll":"关闭全部"},g=e.computed(()=>[{label:f["vc.menuTabs.closeLeft"],icon:"Back",index:0},{label:f["vc.menuTabs.closeRight"],icon:"Right",index:1},{label:f["vc.menuTabs.closeOther"],icon:"Close",index:2},{label:f["vc.menuTabs.closeAll"],icon:"CircleCloseFilled",index:3}]),i=e.computed(()=>t&&t.getPinia("$app.route.path")||""),c=d=>{var _,V,R;if(!t)return null;const o=t.getPinia("$app.menuList")||[],{path:p,url:E}=d;let n=null;return E&&(n=((_=t.pubfn)==null?void 0:_.getListItem(o,"url",E))||null),n||(n=((V=t.pubfn)==null?void 0:V.getListItem(o,"url",p))||null),!n&&(o!=null&&o.length)&&(n=((R=t.pubfn)==null?void 0:R.getListItem(o,"menu_id",p))||null),n},k=d=>{var n;if(!t)return;const o=d.paneName,p=(n=t.pubfn)==null?void 0:n.getListItem(a.list,"path",o);if(!p)return;const E=t.getPinia("$app.route");p.url!==(E==null?void 0:E.url)&&t.redirectTo(p.url)},T=(d,o,p)=>{var n;let E=o;for(let _=o;_<p;_++)(n=d[E])!=null&&n.fixed?E++:d.splice(E,1);return d},v=(d,o=0)=>{var V;if(!t)return;const p=a.list,E=(V=t.pubfn)==null?void 0:V.getListItemIndex(p,"path",d);if(s.show=!1,!E||E.index===-1)return;const n=E.item;if(o===1){T(p,0,E.index);return}if(o===2){T(p,E.index+1,p.length);return}if(o===3){T(p,E.index+1,p.length),T(p,0,E.index);return}if(o===4){T(p,0,p.length),t.navigateTo("/");return}const _=t.getPinia("$app.route");n.fixed||(n.path===(_==null?void 0:_.path)&&(p.length===1?t.navigateTo("/"):E.index===p.length-1?t.navigateTo(p[E.index-1].url):t.navigateTo(p[E.index+1].url)),p.splice(E.index,1))},N=d=>{v(d,0)},y=d=>{if(!t)return;const o=t.getPinia("$app.route");v((o==null?void 0:o.path)||"",d+1)},r=()=>{if(!t)return;const d=t.getPinia("$app.route");v((d==null?void 0:d.path)||"",0)},m=()=>{if(!t)return;const d=a.list;T(d,0,d.length)},h=d=>{var n;if(!t)return;const o=[];o.unshift(d);let p=d;const E=t.getPinia("$app.menuList")||[];for(;p.parent_id;){const _=(n=t.pubfn)==null?void 0:n.getListItem(E,"menu_id",p.parent_id);if(_)o.unshift(_),p=_;else break}t.setPinia("$app.menuMap",o)},w=d=>{if(!t)return;const o=d.path,p=a.list;if(!o)return;for(let n=0;n<p.length;n++)if(p[n].path===o){p[n]=d;return}const E=c(d);E&&(E.hiddenTab||E.hidden_tab)||p.push(d)},C=()=>{var _,V;if(!t)return;const d=t.getPinia("$app.route");if(!d)return;const o=d.path,p=d.query||{},E=`${o}${((_=t.pubfn)==null?void 0:_.queryParams(p))||""}`,n=c(d);if(n&&((V=t.pubfn)!=null&&V.isNotNull(n))){const R={...n,url:E,path:o,query:p};w(R),h(R)}},u=()=>{},l=()=>{C()};return e.watch(()=>{var d;return(d=t==null?void 0:t.getPinia("$app.route"))==null?void 0:d.path},(d,o)=>{d&&d!==o&&C()},{immediate:!0}),e.watch(()=>t.getPinia("$app.menuList"),d=>{d&&d.length>0&&a.list.length===0&&C()}),{popover:s,tabs:a,rightBarCom:g,activePath:i,tabsClick:k,closeTabs:N,closeTag:y,closeCurrent:r,clear:m,setMenuMap:h,getMenuInfo:c,contextmenu:u,syncRoute:l}},xd={class:"main"},Yd={class:"right-dropdown-menu"},Jd=["onClick"],Gd={class:"text"},Qd=e.defineComponent({name:"vc-data-menu-tabs",__name:"data-menu-tabs",setup(t,{expose:s}){const{popover:a,tabs:f,rightBarCom:g,activePath:i,tabsClick:c,closeTabs:k,closeTag:T,closeCurrent:v,clear:N,contextmenu:y,syncRoute:r}=Hd();return s({syncRoute:r,clear:N,closeCurrent:v}),(m,h)=>{const w=e.resolveComponent("el-tab-pane"),C=e.resolveComponent("el-tabs"),u=e.resolveComponent("vc-data-icon"),l=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("view",{class:"vc-data-menu-tabs no-user-select",onContextmenu:h[1]||(h[1]=e.withModifiers((...d)=>e.unref(y)&&e.unref(y)(...d),["prevent"]))},[e.createElementVNode("view",xd,[e.createVNode(C,{"model-value":e.unref(i),type:"card",onTabRemove:e.unref(k),onTabClick:e.unref(c)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f).list,d=>(e.openBlock(),e.createBlock(w,{key:d.path,label:d.name,name:d.path,closable:!d.fixed},null,8,["label","name","closable"]))),128))]),_:1},8,["model-value","onTabRemove","onTabClick"])]),e.createElementVNode("view",Yd,[e.createVNode(l,{visible:e.unref(a).show,"onUpdate:visible":h[0]||(h[0]=d=>e.unref(a).show=d),"popper-class":"vc-tabs-dropdown-menu",placement:"top-start",width:128,trigger:"click"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),d=>(e.openBlock(),e.createElementBlock("view",{key:d.index,class:"dropdown-item",onClick:o=>e.unref(T)(d.index)},[e.createVNode(u,{name:d.icon,class:"icon"},null,8,["name"]),e.createElementVNode("text",Gd,e.toDisplayString(d.label),1)],8,Jd))),128))]),reference:e.withCtx(()=>[e.createVNode(u,{name:"ArrowDown",class:"arrow-down"})]),_:1},8,["visible"])])],32)}}}),Xd={title:{type:String,default:""},subTitle:{type:String,default:""},showBack:{type:Boolean,default:!1},bgColor:{type:String,default:""},bottom:{type:[Number,String],default:0},radius:{type:[Number,String],default:0},backText:{type:String,default:""}},Zd={back:()=>!0},el=(t,s)=>{const a=uni.vc||{},f={"el.pageHeader.title":"����"},g=()=>{s("back")},i=e.computed(()=>{const v=a.getPinia?a.getPinia("$app.isPC"):void 0;return v==null?!0:!!v}),c=e.computed(()=>i.value&&!!(t.title||t.subTitle)),k=e.computed(()=>{const v=t.bottom,N=t.radius;return{backgroundColor:t.bgColor,marginBottom:isNaN(v)?v:`${v}px`,borderRadius:isNaN(N)?N:`${N}px`}}),T=e.computed(()=>t.backText||f["el.pageHeader.title"]);return{vc:a,language:f,isPC:i,showCom:c,styleCom:k,backTextCom:T,handleBack:g}},tl={class:"header-group"},nl={class:"header-title"},ol={class:"header-sub-title"},al=e.defineComponent({name:"vc-data-page-header",__name:"data-page-header",props:Xd,emits:Zd,setup(t,{emit:s}){const a=t,f=s,{showCom:g,styleCom:i,backTextCom:c,handleBack:k}=el(a,f);return(T,v)=>{const N=e.resolveComponent("el-button");return e.unref(g)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"vc-data-page-header",style:e.normalizeStyle(e.unref(i))},[e.createElementVNode("view",tl,[e.createElementVNode("view",nl,[e.renderSlot(T.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(T.title),1)],!0)]),e.createElementVNode("view",ol,[e.renderSlot(T.$slots,"sub-title",{},()=>[e.createTextVNode(e.toDisplayString(T.subTitle),1)],!0)])]),e.createElementVNode("view",null,[e.renderSlot(T.$slots,"right",{},()=>[T.showBack?(e.openBlock(),e.createBlock(N,{key:0,size:"small",type:"primary",onClick:e.unref(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)]),_:1},8,["onClick"])):e.createCommentVNode("",!0)],!0)])],4)):e.createCommentVNode("",!0)}}}),cl=De(al,[["__scopeId","data-v-a8636dea"]]),rl=["right","left","top"],dl=["detail","expand","row"],ll={data:{type:Object,default:{}},columns:{type:Array,default:[]},size:{type:String,values:qe,default:""},labelWidth:{type:[String,Number],default:void 0},labelPosition:{type:String,values:rl,default:"right"},parentType:{type:String,default:"form"},showType:{type:String,values:dl,default:"detail"}},il={preview:t=>!0},sl=(t,s)=>{const a=uni.vc,f=(k,T)=>{var v,N;return(N=(v=a.pubfn)==null?void 0:v.getData)==null?void 0:N.call(v,k,T)},g=e.computed(()=>{const k=t.labelWidth;if(k!=null)return typeof k=="number"?`${k}px`:k}),i=e.computed(()=>{const{data:k,columns:T,showType:v}=t,N=[];for(const y of T||[]){if(y.show&&y.show.indexOf(v)===-1)continue;const r=f(k,y.key);N.push({key:y.key,value:r,column:y,title:y.title,type:y.type,detail:y.detail})}return N});return{labelWidthCom:g,detailInfoCom:i,previewFile:k=>{s("preview",k)}}},ul={class:"scroll-y","scroll-y":"true"},ml={key:0,class:"block"},pl={class:"table-title"},fl=e.defineComponent({name:"vc-data-detail",__name:"data-detail",props:ll,emits:il,setup(t,{emit:s}){const a=t,f=s,{labelWidthCom:g,detailInfoCom:i,previewFile:c}=sl(a,f);return(k,T)=>{const v=e.resolveComponent("vc-data-table"),N=e.resolveComponent("vc-data-detail-item"),y=e.resolveComponent("el-form-item"),r=e.resolveComponent("el-form");return k.data&&JSON.stringify(k.data)!=="{}"?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["vc-data-detail",k.size?`detail-${k.size}`:""])},[e.createElementVNode("view",ul,[e.createVNode(r,{"label-suffix":" : ","label-width":e.unref(g),size:k.size,"label-position":k.labelPosition,onsubmit:"return false"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(m,h)=>(e.openBlock(),e.createElementBlock("view",{key:h},[m.type==="table"?(e.openBlock(),e.createElementBlock("view",ml,[e.createElementVNode("view",pl,e.toDisplayString(m.title),1),e.createVNode(v,{data:m.value,columns:m.column.columns,"max-height":m.column.maxHeight||300},null,8,["data","columns","max-height"])])):(e.openBlock(),e.createBlock(y,{key:1,label:m.title},{default:e.withCtx(()=>[e.createVNode(N,{data:k.data,item:m,size:k.size,"parent-type":k.parentType,"show-type":k.showType,onPreview:e.unref(c)},null,8,["data","item","size","parent-type","show-type","onPreview"])]),_:2},1032,["label"]))]))),128))]),_:1},8,["label-width","size","label-position"])])],2)):e.createCommentVNode("",!0)}}}),hl=De(fl,[["__scopeId","data-v-f6215320"]]),_l=[],yl=["detail","expand","row"],vl={data:{type:Object,default:{}},item:{type:Object,default:{}},columns:{type:Array,default:[]},size:{type:String,values:qe,default:""},labelWidth:{type:[String,Number],default:260},index:{type:Number,default:void 0},parentType:{type:String,values:_l,default:"form"},showType:{type:String,values:yl,default:"detail"}},gl={preview:t=>!0},bl=(t,s)=>{const a=uni.vc||{},{data:f,item:g,index:i,parentType:c,showType:k,size:T}=t,v=(_,V)=>{var R,q;return(q=(R=a.pubfn)==null?void 0:R.getData)==null?void 0:q.call(R,_,V)},N=(_,V,R,q)=>{var I,B;return((B=(I=a.pubfn)==null?void 0:I.formatter)==null?void 0:B.call(I,_,V,R,q))??_},y=(_,V,R,q)=>{const I=N(_,V,R,q),B=R==null?void 0:R.precision;return typeof B=="number"&&!isNaN(Number(I))?Number(I).toFixed(B):I},r=(_,V,R)=>{var q,I;return(I=(q=a.pubfn)==null?void 0:q.getListItem)==null?void 0:I.call(q,_,V,R)},m=(_,V)=>{var P,Q;const R=(V==null?void 0:V.data)||[],q=((P=V==null?void 0:V.props)==null?void 0:P.value)||"value",I=((Q=V==null?void 0:V.props)==null?void 0:Q.label)||"label",B=R.find(z=>z[q]===_);return B?B[I]:_??""},h=(_,V)=>{var B,P;if(!Array.isArray(_))return"";const R=(V==null?void 0:V.data)||[],q=((B=V==null?void 0:V.props)==null?void 0:B.value)||"value",I=((P=V==null?void 0:V.props)==null?void 0:P.label)||"label";return _.map(Q=>{const z=R.find($=>$[q]===Q);return z?z[I]:Q}).join("、")},w=(_,V)=>{var R,q;return _?((q=(R=a.pubfn)==null?void 0:R.timeFilter)==null?void 0:q.call(R,_,V))??"":""},C=_=>{var V,R;return _?((R=(V=a.pubfn)==null?void 0:V.dateDiff)==null?void 0:R.call(V,_))??"":""},u=(_,V="")=>_?typeof _=="number"?`${_}px`:String(_):V,l=_=>{if(!_)return 168;const V=168,R=_.imageWidth,q=_.width;let I=0;if(typeof R=="object"&&Array.isArray(R)){let B;k==="row"?B=R[0]:k==="detail"?B=R[1]:k==="expand"&&(B=R[2]||R[1]),I=typeof B=="object"?B[0]:B}else I=R;return["detail","expand"].includes(k)?I||q||V:I};return{vc:a,getData:v,formatterFn:N,formatterNumber:y,getListItem:r,radioFilter:m,checkboxFilter:h,timeFilter:w,dateDiff:C,addressFilter:(_,V)=>{var q;if(!_)return"";if(typeof _=="object"&&_!==null&&_.showText)return N(_.showText,f,V,i);let R;return(q=a.pubfn)!=null&&q.addressFilter?R=a.pubfn.addressFilter(_,V):R=String(_),N(R,f,V,i)},provinceFilter:(_,V)=>{var q;if(!_)return"";let R;return(q=a.pubfn)!=null&&q.provinceFilter?R=a.pubfn.provinceFilter(_):typeof _=="object"&&_!==null&&_.name?R=_.name:R=String(_),N(R,f,V,i)},heightFn:u,imageWidthFn:l,imageBoxWidthFn:_=>{if(!_)return 0;const V=_.imageWidth,R=l(_);let q=0;if(typeof V=="object"&&Array.isArray(V)){let I;k==="row"?I=V[0]:k==="detail"?I=V[1]:k==="expand"&&(I=V[2]||V[1]),typeof I=="object"&&(q=I[1])}return q>0?q*(R+5):0},imageStyleFn:_=>_?{width:`${_}px`,height:`${_}px`}:{},previewFile:_=>{s("preview",_)}}},kl={key:0,class:"vc-contents"},wl={key:1,class:"block images-view"},Cl={key:0},Bl={class:"el-image__error"},Sl={key:1},Vl={key:2,class:"block file-view"},Nl={key:3,class:"vc-contents"},Tl={key:4,class:"vc-contents"},El={key:5,class:"vc-contents"},zl={key:6,class:"vc-contents"},Dl={key:0},Fl={key:1},Il={key:2},Al={key:3},Ml={key:7,class:"vc-contents"},Pl={key:8,class:"vc-contents"},Rl={key:9,class:"vc-contents"},Ll=["innerHTML"],$l={key:10,class:"vc-contents"},Ol={key:11,class:"vc-contents"},Ul={key:12,class:"vc-contents"},ql={key:13,class:"vc-contents"},jl={key:14,class:"vc-contents"},Wl={key:15,class:"vc-contents"},Kl={key:16,class:"inline-block"},Hl={class:"user-info-nickname"},xl={key:1,class:"user-info-id"},Yl={key:1},Jl={key:17,class:"block"},Gl={key:18,class:"block"},Ql={key:19,class:"vc-contents"},Xl={key:20,class:"vc-contents"},Zl={key:21,class:"vc-contents"},e0={key:22,class:"vc-contents"},t0={key:23,class:"inline-block"},n0={style:{flex:"1"}},o0={key:24,class:"vc-contents"},a0=e.defineComponent({name:"vc-data-detail-item",__name:"data-detail-item",props:vl,emits:gl,setup(t,{emit:s}){const a=t,f=s,{vc:g,getData:i,formatterFn:c,formatterNumber:k,getListItem:T,radioFilter:v,checkboxFilter:N,timeFilter:y,dateDiff:r,addressFilter:m,provinceFilter:h,heightFn:w,imageWidthFn:C,imageBoxWidthFn:u,imageStyleFn:l,previewFile:d}=bl(a,f);return(o,p)=>{var Q,z,$,x,L,re,ne,de,he,A,M,O,K,se,ae,fe,ge,Se,Ce,Ne,Ve,ee,H,J,Y,me,G,S,j,le,Te,Ae,Le,U,te,pe,oe,Ee,Me,je,ht,mt;const E=e.resolveComponent("el-image"),n=e.resolveComponent("PictureFilled"),_=e.resolveComponent("el-icon"),V=e.resolveComponent("vc-data-icon"),R=e.resolveComponent("el-rate"),q=e.resolveComponent("vc-data-input-switch"),I=e.resolveComponent("el-tag"),B=e.resolveComponent("vc-data-detail"),P=e.resolveComponent("vc-data-detail-table");return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["vc-data-detail-item",o.showType])},[o.item.type==="avatar"?(e.openBlock(),e.createElementBlock("view",kl,[e.createVNode(E,{class:e.normalizeClass(["images-avatar",(Q=o.item.column)==null?void 0:Q.shape]),style:e.normalizeStyle(e.unref(l)(e.unref(C)(o.item.column))),src:e.unref(c)(o.item.value,o.data,o.item.column,o.index),"preview-src-list":[e.unref(c)(o.item.value,o.data,o.item.column,o.index)],lazy:(z=o.item.column)==null?void 0:z.lazy,fit:"cover"},null,8,["class","style","src","preview-src-list","lazy"])])):o.item.type==="image"?(e.openBlock(),e.createElementBlock("view",wl,[typeof o.item.value=="object"&&o.item.value?(e.openBlock(),e.createElementBlock("view",Cl,[e.createElementVNode("view",{class:"images-box",style:e.normalizeStyle(e.unref(u)(o.item.column)?{width:e.unref(u)(o.item.column)+"px"}:{})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.item.value,($e,Xe)=>{var He;return e.openBlock(),e.createElementBlock("view",{class:"vc-contents",key:Xe},[e.createVNode(E,{class:"images-item",style:e.normalizeStyle(e.unref(l)(e.unref(C)(o.item.column))),src:$e,"preview-src-list":o.item.value,lazy:(He=o.item.column)==null?void 0:He.lazy,fit:"contain"},{error:e.withCtx(()=>[e.createElementVNode("div",Bl,[e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(n)]),_:1})])]),_:1},8,["style","src","preview-src-list","lazy"])])}),128))],4)])):(e.openBlock(),e.createElementBlock("view",Sl,[e.createVNode(E,{class:"images-item",style:e.normalizeStyle(e.unref(l)(e.unref(C)(o.item.column))),src:o.item.value,"preview-src-list":[o.item.value],lazy:($=o.item.column)==null?void 0:$.lazy,fit:"contain"},null,8,["style","src","preview-src-list","lazy"])]))])):o.item.type==="file"?(e.openBlock(),e.createElementBlock("view",Vl,[o.item.value?(e.openBlock(),e.createBlock(V,{key:0,name:"el-icon-download",size:20,style:{color:"#66b1ff",cursor:"pointer"},onClick:p[0]||(p[0]=$e=>e.unref(d)(o.item.value))})):e.createCommentVNode("",!0)])):o.item.type==="rate"?(e.openBlock(),e.createElementBlock("view",Nl,[e.createVNode(R,{"model-value":o.item.value,disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},null,8,["model-value"])])):o.item.type==="switch"?(e.openBlock(),e.createElementBlock("view",Tl,[e.createVNode(q,{"model-value":o.item.value,disabled:!0,"inline-prompt":(x=o.item.column)==null?void 0:x.inlinePrompt,"active-text":(L=o.item.column)==null?void 0:L.activeText,"inactive-text":(re=o.item.column)==null?void 0:re.inactiveText,"active-color":(ne=o.item.column)==null?void 0:ne.activeColor,"inactive-color":(de=o.item.column)==null?void 0:de.inactiveColor,"active-value":(he=o.item.column)==null?void 0:he.activeValue,"inactive-value":(A=o.item.column)==null?void 0:A.inactiveValue,"switch-type":(M=o.item.column)==null?void 0:M.switchType,name:(O=o.item.column)==null?void 0:O.name,"active-icon-class":(K=o.item.column)==null?void 0:K.activeIconClass,"inactive-icon-class":(se=o.item.column)==null?void 0:se.inactiveIconClass,label:(ae=o.item.column)==null?void 0:ae.label},null,8,["model-value","inline-prompt","active-text","inactive-text","active-color","inactive-color","active-value","inactive-value","switch-type","name","active-icon-class","inactive-icon-class","label"])])):o.item.type==="icon"?(e.openBlock(),e.createElementBlock("view",El,[(fe=o.item.column)!=null&&fe.data&&o.item.column.data.length>0?(e.openBlock(),e.createBlock(V,{key:0,name:(ge=e.unref(T)(o.item.column.data,"value",e.unref(i)(o.data,o.item.column.key)))==null?void 0:ge.icon,color:(Se=o.item.column)==null?void 0:Se.color,size:(Ce=o.item.column)==null?void 0:Ce.size},null,8,["name","color","size"])):(e.openBlock(),e.createBlock(V,{key:1,name:e.unref(c)(o.item.value,o.item.column,o.index),color:(Ne=o.item.column)==null?void 0:Ne.color,size:(Ve=o.item.column)==null?void 0:Ve.size},null,8,["name","color","size"]))])):o.item.type==="tag"&&e.unref(c)(o.item.value,o.data,o.item.column,o.index)!==void 0?(e.openBlock(),e.createElementBlock("view",zl,[(ee=o.item.column)!=null&&ee.data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[typeof e.unref(c)(o.item.value,o.data,o.item.column,o.index)=="object"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c)(o.item.value,o.data,o.item.column,o.index),($e,Xe)=>{var He,ot,Ze,et;return e.openBlock(),e.createElementBlock("view",{class:"vc-contents",key:Xe},[e.unref(T)(o.item.column.data,"value",$e)?(e.openBlock(),e.createBlock(I,{key:0,style:{"margin-right":"10px"},effect:((He=e.unref(T)(o.item.column.data,"value",$e))==null?void 0:He.effect)||((ot=o.item.column)==null?void 0:ot.effect)||"dark",type:(Ze=e.unref(T)(o.item.column.data,"value",$e))==null?void 0:Ze.tagType,size:o.size},{default:e.withCtx(()=>{var Je;return[e.createTextVNode(e.toDisplayString((Je=e.unref(T)(o.item.column.data,"value",$e))==null?void 0:Je.label),1)]}),_:2},1032,["effect","type","size"])):(e.openBlock(),e.createBlock(I,{key:1,effect:(et=o.item.column)==null?void 0:et.effect,size:o.size},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($e),1)]),_:2},1032,["effect","size"]))])}),128)):(e.openBlock(),e.createBlock(I,{key:1,effect:((H=e.unref(T)(o.item.column.data,"value",e.unref(c)(o.item.value,o.data,o.item.column,o.index)))==null?void 0:H.effect)||((J=o.item.column)==null?void 0:J.effect)||"dark",type:(Y=e.unref(T)(o.item.column.data,"value",e.unref(c)(o.item.value,o.data,o.item.column,o.index)))==null?void 0:Y.tagType,size:o.size},{default:e.withCtx(()=>{var $e;return[e.createTextVNode(e.toDisplayString(($e=e.unref(T)(o.item.column.data,"value",e.unref(c)(o.item.value,o.data,o.item.column,o.index)))==null?void 0:$e.label),1)]}),_:1},8,["effect","type","size"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(g).pubfn.isArray(e.unref(c)(o.item.value,o.data,o.item.column,o.index))?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c)(o.item.value,o.data,o.item.column,o.index),($e,Xe)=>{var He,ot,Ze;return e.openBlock(),e.createBlock(I,{key:Xe,class:"el-tag","disable-transitions":!0,effect:((He=o.item.column)==null?void 0:He.effect)||"light",type:(ot=o.item.column)==null?void 0:ot.tagType,size:(Ze=o.item.column)==null?void 0:Ze.size},{default:e.withCtx(()=>{var et,Je,at;return[((et=o.item.column)==null?void 0:et.inputType)==="money"?(e.openBlock(),e.createElementBlock("text",Dl,e.toDisplayString(e.unref(g).pubfn.priceFilter($e)),1)):((Je=o.item.column)==null?void 0:Je.inputType)==="percentage"?(e.openBlock(),e.createElementBlock("text",Fl,e.toDisplayString(e.unref(g).pubfn.percentageFilter($e)),1)):((at=o.item.column)==null?void 0:at.inputType)==="discount"?(e.openBlock(),e.createElementBlock("text",Il,e.toDisplayString(e.unref(g).pubfn.discountFilter($e)),1)):(e.openBlock(),e.createElementBlock("view",Al,e.toDisplayString($e),1))]}),_:2},1032,["effect","type","size"])}),128)):(e.openBlock(),e.createBlock(I,{key:1,effect:((me=e.unref(c)(o.item.value,o.data,o.item.column,o.index))==null?void 0:me.effect)||"dark",size:o.size,type:(G=e.unref(c)(o.item.value,o.data,o.item.column,o.index))==null?void 0:G.tagType},{default:e.withCtx(()=>{var $e;return[e.createTextVNode(e.toDisplayString(($e=e.unref(c)(o.item.value,o.data,o.item.column,o.index))==null?void 0:$e.val),1)]}),_:1},8,["effect","size","type"]))],64))])):o.item.type==="time"||o.item.type==="date"?(e.openBlock(),e.createElementBlock("view",Ml,e.toDisplayString(e.unref(c)(e.unref(y)(o.item.value,(S=o.item.column)==null?void 0:S.valueFormat),o.data,o.item.column,o.index)),1)):o.item.type==="dateDiff"?(e.openBlock(),e.createElementBlock("view",Pl,e.toDisplayString(e.unref(c)(e.unref(r)(o.item.value),o.data,o.item.column,o.index)),1)):o.item.type==="html"||o.item.type==="editor"?(e.openBlock(),e.createElementBlock("view",Rl,[e.createElementVNode("view",{innerHTML:e.unref(c)(o.item.value,o.data,o.item.column,o.index)},null,8,Ll)])):o.item.type==="number"?(e.openBlock(),e.createElementBlock("view",$l,e.toDisplayString(e.unref(k)(o.item.value,o.data,o.item.column,o.index)),1)):o.item.type==="money"?(e.openBlock(),e.createElementBlock("view",Ol,e.toDisplayString(e.unref(g).pubfn.priceFilter(e.unref(c)(o.item.value,o.data,o.item.column,o.index))),1)):o.item.type==="percentage"?(e.openBlock(),e.createElementBlock("view",Ul,e.toDisplayString(e.unref(g).pubfn.percentageFilter(o.item.value)),1)):o.item.type==="discount"?(e.openBlock(),e.createElementBlock("view",ql,e.toDisplayString(e.unref(g).pubfn.discountFilter(o.item.value)),1)):o.item.type==="province"?(e.openBlock(),e.createElementBlock("view",jl,e.toDisplayString(e.unref(h)(o.item.value,o.item.column)),1)):o.item.type==="address"?(e.openBlock(),e.createElementBlock("view",Wl,e.toDisplayString(e.unref(m)(o.item.value,o.item.column)),1)):o.item.type==="userInfo"?(e.openBlock(),e.createElementBlock("view",Kl,[o.item.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.item.value.avatar?(e.openBlock(),e.createBlock(E,{key:0,class:"images-avatar",src:o.item.value.avatar,"preview-src-list":o.parentType!=="rows"?[o.item.value.avatar]:void 0,lazy:(j=o.item.column)==null?void 0:j.lazy,fit:"cover"},null,8,["src","preview-src-list","lazy"])):e.createCommentVNode("",!0),e.createElementVNode("text",Hl,e.toDisplayString(o.item.value.nickname),1),o.item.value._id?(e.openBlock(),e.createElementBlock("text",xl,"("+e.toDisplayString(o.item.value._id)+")",1)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("text",Yl,e.toDisplayString((le=o.item.column)==null?void 0:le.defaultValue),1))])):o.item.type==="group"?(e.openBlock(),e.createElementBlock("view",Jl,[e.createVNode(B,{data:o.data,columns:(Te=o.item.column)==null?void 0:Te.columns,"label-width":(Ae=o.item.column)==null?void 0:Ae.labelWidth,size:o.size,"show-type":o.showType},null,8,["data","columns","label-width","size","show-type"])])):o.item.type==="object"?(e.openBlock(),e.createElementBlock("view",Gl,[o.parentType==="form"?(e.openBlock(),e.createBlock(B,{key:0,data:o.item.value,columns:(Le=o.item.column)==null?void 0:Le.columns,size:o.size,"label-width":(U=o.item.column)==null?void 0:U.labelWidth,"show-type":o.showType},null,8,["data","columns","size","label-width","show-type"])):(e.openBlock(),e.createBlock(P,{key:1,data:o.item.value,columns:(te=o.item.column)==null?void 0:te.columns,size:o.size,"label-width":(pe=o.item.column)==null?void 0:pe.labelWidth,"show-type":o.showType},null,8,["data","columns","size","label-width","show-type"]))])):o.item.type==="radio"?(e.openBlock(),e.createElementBlock("view",Ql,e.toDisplayString(e.unref(c)(e.unref(v)(o.item.value,o.item.column),o.data,o.item.column,o.index)),1)):o.item.type==="select"?(e.openBlock(),e.createElementBlock("view",Xl,[(oe=o.item.column)!=null&&oe.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(c)(e.unref(N)(o.item.value,o.item.column),o.data,o.item.column,o.index)),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(c)(e.unref(v)(o.item.value,o.item.column),o.data,o.item.column,o.index)),1)],64))])):o.item.type==="checkbox"?(e.openBlock(),e.createElementBlock("view",Zl,e.toDisplayString(e.unref(c)(e.unref(N)(o.item.value,o.item.column),o.data,o.item.column,o.index)),1)):o.item.type==="json"?(e.openBlock(),e.createElementBlock("view",e0,[e.createElementVNode("view",{class:"json-view",style:e.normalizeStyle({maxHeight:e.unref(w)(((Ee=o.item.column)==null?void 0:Ee.maxHeight)||((Me=o.item.column)==null?void 0:Me.height),"360px")})},[e.createElementVNode("pre",null,e.toDisplayString(JSON.stringify(o.item.value,null,2)),1)],4)])):o.item.type==="color"?(e.openBlock(),e.createElementBlock("view",t0,[e.createElementVNode("view",{style:e.normalizeStyle({background:o.item.value,width:"12px",height:"12px",display:"block",marginTop:"1px",marginRight:"5px"})},null,4),e.createElementVNode("view",n0,e.toDisplayString(e.unref(c)(o.item.value,o.data,o.item.column,o.index)),1)])):o.item.type==="custom"?(e.openBlock(),e.createElementBlock("view",o0,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent((je=o.item.column)==null?void 0:je.component),{column:o.item.column,value:o.item.value,scene:"detail"},null,8,["column","value"]))])):(e.openBlock(),e.createElementBlock("view",{key:25,class:"vc-contents",style:e.normalizeStyle((ht=o.item.column)==null?void 0:ht.style)},e.toDisplayString(e.unref(c)(o.item.value,o.data,o.item.column,o.index)??((mt=o.item.column)==null?void 0:mt.defaultValue)),5))],2)}}}),c0=De(a0,[["__scopeId","data-v-830a8674"]]),r0=["detail","expand","row"],d0={data:{type:Object,default:{}},columns:{type:Array,default:[]},size:{type:String,values:qe,default:""},labelWidth:{type:[String,Number],default:200},border:{type:Boolean,default:!0},tableColumn:{type:Boolean,default:!1},showType:{type:String,values:r0,default:"detail"},showBodyOverflow:{type:Boolean,default:!0},maxHeight:{type:[String,Number],default:""}},l0={preview:t=>!0},i0=(t,s)=>{const a=uni.vc||{},f=(N,y)=>{var r,m;return(m=(r=a.pubfn)==null?void 0:r.getData)==null?void 0:m.call(r,N,y)},g=e.computed(()=>{if(!t.tableColumn)return"";const N=t.labelWidth;return typeof N=="number"?`width: ${N}px`:`width: ${N}`}),i=e.computed(()=>{const N=t.maxHeight;return N?typeof N=="number"?{maxHeight:`${N}px`}:N==="auto"?{maxHeight:"inherit"}:{maxHeight:String(N)}:{maxHeight:"calc(100vh - 230px)"}}),c=({row:N,columnIndex:y})=>{var r,m,h;return N.detail&&!((h=(r=a.pubfn)==null?void 0:r.isNull)!=null&&h.call(r,(m=N.detail)==null?void 0:m.buttons))||y!==1?N.type==="table"&&y===0?[1,3]:void 0:[1,2]},k=e.computed(()=>{const{data:N,columns:y,showType:r}=t,m=[];for(const h of y||[]){if(h.show&&h.show.indexOf(r)===-1)continue;const w=f(N,h.key);m.push({key:h.key,value:w,column:h,title:h.title,type:h.type,detail:h.detail})}return m}),T=N=>{s("preview",N)},v=e.computed(()=>t.showBodyOverflow);return{tableTitleStyleCom:g,scrollYStyleCom:i,showBodyOverflow:v,spanMethod:c,detailInfoCom:k,previewFile:T}},s0={key:0,class:"block"},u0={class:"table-title"},m0={key:0,class:"block"},p0={key:0},f0=e.defineComponent({name:"vc-data-detail-table",__name:"data-detail-table",props:d0,emits:l0,setup(t,{emit:s}){const a=t,f=s,{tableTitleStyleCom:g,scrollYStyleCom:i,showBodyOverflow:c,spanMethod:k,detailInfoCom:T,previewFile:v}=i0(a,f);return(N,y)=>{const r=e.resolveComponent("vc-data-table"),m=e.resolveComponent("el-table-column"),h=e.resolveComponent("vc-data-detail-item"),w=e.resolveComponent("el-button"),C=e.resolveComponent("el-table");return N.data&&JSON.stringify(N.data)!=="{}"?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["vc-data-detail-table",N.tableColumn?"detail-no-border":""])},[e.createElementVNode("view",{class:"scroll-y",style:e.normalizeStyle(e.unref(c)?e.unref(i):{}),"scroll-y":"true"},[e.createVNode(C,{style:e.normalizeStyle([{width:"100%"},N.tableColumn?"border: 0px solid rgba(255,255,255,0);":""]),data:e.unref(T),"show-header":!1,size:N.size,border:!0,"span-method":e.unref(k)},{default:e.withCtx(()=>[e.createVNode(m,{prop:"title",label:"Key",width:N.labelWidth,"class-name":N.tableColumn?"no-border":""},{default:e.withCtx(({row:u})=>[u.type==="table"?(e.openBlock(),e.createElementBlock("view",s0,[e.createElementVNode("view",u0,e.toDisplayString(u.title),1),e.createVNode(r,{data:u.value,columns:u.column.columns,"max-height":u.column.maxHeight||300,"row-height":u.column.rowHeight},null,8,["data","columns","max-height","row-height"])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"block",style:e.normalizeStyle(e.unref(g))},e.toDisplayString(u.title),5))]),_:1},8,["width","class-name"]),e.createVNode(m,{prop:"value",label:"Value","class-name":N.tableColumn?"no-border":""},{default:e.withCtx(({row:u})=>[u.type==="table"?(e.openBlock(),e.createElementBlock("view",m0)):(e.openBlock(),e.createBlock(h,{key:1,data:N.data,item:u,size:N.size,"parent-type":"table","show-type":N.showType,onPreview:e.unref(v)},null,8,["data","item","size","show-type","onPreview"]))]),_:1},8,["class-name"]),e.createVNode(m,{prop:"buttons",label:"operate",width:"150",align:"center","class-name":N.tableColumn?"no-border":""},{default:e.withCtx(({row:u})=>[u.detail?(e.openBlock(),e.createElementBlock("view",p0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.detail.buttons,(l,d)=>(e.openBlock(),e.createElementBlock("view",{class:"btns-box",key:d},[e.createVNode(w,{size:l.size||"small",type:l.type!=="text"?l.type:"primary",text:l.type==="text",plain:l.plain,round:l.round,circle:l.circle,loading:l.loading,disabled:l.disabled,icon:l.icon,autofocus:l.autofocus,"native-type":l.nativeType||"button",onClick:l.callback},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["size","type","text","plain","round","circle","loading","disabled","icon","autofocus","native-type","onClick"])]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["class-name"])]),_:1},8,["style","data","size","span-method"])],4)],2)):e.createCommentVNode("",!0)}}}),h0=De(f0,[["__scopeId","data-v-bfdfb72d"]]),_0=["right","left","top","bottom"],y0=["detail","expand","row"],v0={list:{type:Array,default:[]},showType:{type:String,values:y0,default:"detail"},data:{type:Object,default:{}},item:{type:Object,default:{}},position:{type:String,values:_0,default:"right"}},g0=t=>{const s=uni.vc||{},a={"vc.common.close":"关闭","vc.common.confirm":"确定","vc.common.success":"成功","vc.common.fail":"失败"};let f=!1;const g=e.ref(!1),i=e.ref(!1),c=e.reactive({}),k=e.computed(()=>{const w=t.position||"right";return w==="right"?"margin-left: 6px;":w==="left"?"margin-right: 6px;":w==="bottom"||w==="top"?"margin: 0 5px;":""}),T=()=>{const w=t.data||{};Object.keys(c).forEach(C=>delete c[C]),Object.assign(c,JSON.parse(JSON.stringify(w)))},v=w=>{var d,o;const{showType:C,data:u}=t;let l=!0;return typeof w.show=="boolean"&&!w.show&&(l=!1),Array.isArray(w.show)&&!w.show.includes(C)&&(l=!1),typeof w.showRule=="object"&&Array.isArray(w.showRule.list)&&(w.showRule.list.includes(u[w.showRule.key])||(l=!1)),typeof w.showRule=="string"&&((o=(d=s.pubfn)==null?void 0:d.checkDataExpText)!=null&&o.call(d,u,w.showRule)||(l=!1)),typeof w.showRule=="function"&&(w.showRule(u)||(l=!1)),l},N=()=>{f||(f=!0,g.value=!0)},y=()=>{f=!1,g.value=!1,i.value=!1},r=()=>{T()},m=w=>{var u,l,d,o;const C=(d=(u=s.pubfn)==null?void 0:u.getData)==null?void 0:d.call(u,c,(l=t.item)==null?void 0:l.key);(o=w.click)==null||o.call(w,{row:t.data,formData:c,value:C,success:()=>{}})},h=w=>{var u,l,d,o;i.value=!0;const C=(d=(u=s.pubfn)==null?void 0:u.getData)==null?void 0:d.call(u,c,(l=t.item)==null?void 0:l.key);try{(o=w.click)==null||o.call(w,{row:t.data,formData:c,value:C,success:(p={})=>{var E;y(),p.code?p.msg&&Ue.ElNotification.error({title:a["vc.common.fail"],message:p.msg}):(t.data&&((E=t.item)!=null&&E.key)&&(t.data[t.item.key]=C),p.msg&&Ue.ElNotification({title:a["vc.common.success"],message:p.msg,type:"success"}))}})}catch{i.value=!1}};return e.onMounted(()=>{T()}),e.watch(()=>t.data,w=>{Object.keys(c).forEach(C=>delete c[C]),Object.assign(c,JSON.parse(JSON.stringify(w||{})))},{deep:!0}),{language:a,visible:g,loading:i,formData:c,buttonStyleCom:k,itemDisplay:v,open:N,close:y,onShow:r,onClick:m,submit:h}},b0={class:"vc-data-detail-buttons vc-contents"},k0={key:0,class:"vc-contents"},w0={style:{"margin-bottom":"10px"}},C0={style:{"margin-top":"20px",display:"flex","justify-content":"center"}},B0=e.defineComponent({name:"vc-data-detail-buttons",__name:"data-detail-buttons",props:v0,setup(t){const s=t,{language:a,visible:f,loading:g,formData:i,buttonStyleCom:c,itemDisplay:k,open:T,close:v,onShow:N,onClick:y,submit:r}=g0(s);return(m,h)=>{const w=e.resolveComponent("vc-data-form-item"),C=e.resolveComponent("el-button"),u=e.resolveComponent("el-popover"),l=e.resolveComponent("block");return e.openBlock(),e.createElementBlock("view",b0,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.list,(d,o)=>(e.openBlock(),e.createBlock(l,{key:o},{default:e.withCtx(()=>[e.unref(k)(d)?(e.openBlock(),e.createElementBlock("view",k0,[d.mode==="update"?(e.openBlock(),e.createBlock(u,{key:0,placement:"right",trigger:"manual","model-value":e.unref(f),onShow:e.unref(N)},{reference:e.withCtx(()=>[e.createVNode(C,{style:e.normalizeStyle([{padding:"0"},e.unref(c)]),size:"small",type:d.type,plain:d.plain,round:d.round,circle:d.circle,loading:d.loading,disabled:d.disabled,icon:d.icon,onClick:e.unref(T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:2},1032,["style","type","plain","round","circle","loading","disabled","icon","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("view",null,[e.createElementVNode("view",w0,e.toDisplayString(m.item.title),1),e.createVNode(w,{modelValue:e.unref(i),"onUpdate:modelValue":h[0]||(h[0]=p=>e.isRef(i)?i.value=p:null),disabled:e.unref(g),size:"small",item:m.item,clearable:!1},null,8,["modelValue","disabled","item"]),e.createElementVNode("view",C0,[e.createVNode(C,{size:"small",onClick:e.unref(v)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)["vc.common.close"]),1)]),_:1},8,["onClick"]),e.createVNode(C,{style:{"margin-left":"20px"},size:"small",type:"primary",loading:e.unref(g),onClick:p=>e.unref(r)(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)["vc.common.confirm"]),1)]),_:1},8,["loading","onClick"])])])]),_:2},1032,["model-value","onShow"])):(e.openBlock(),e.createBlock(C,{key:1,style:e.normalizeStyle([{padding:"0"},e.unref(c)]),size:"small",type:d.type,plain:d.plain,round:d.round,circle:d.circle,loading:d.loading,disabled:d.disabled,icon:d.icon,onClick:p=>e.unref(y)(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:2},1032,["style","type","plain","round","circle","loading","disabled","icon","onClick"]))])):e.createCommentVNode("",!0)]),_:2},1024))),128))])}}}),S0=De(B0,[["__scopeId","data-v-4ac3cc37"]]),V0={modelValue:{type:Object,default:()=>({})},columns:{type:Array,default:()=>[]},size:{type:String,values:qe,default:""},span:{type:[String,Number],default:void 0},minWidth:{type:[String,Number],default:200},labelWidth:{type:[String,Number],default:void 0},showReset:{type:[Boolean,String],default:"auto"},autoSearch:{type:Boolean,default:!0},drawer:{type:Object,default:()=>({})},searchText:{type:String,default:void 0},seniorSearchText:{type:String,default:void 0},mainColumns:{type:Array,default:void 0},collapseRows:{type:[String,Number],default:void 0},collapseDefaultExpand:{type:Boolean,default:!1},labelPosition:{type:String,default:"right"}},N0={"update:modelValue":t=>!0,search:t=>!0,reset:()=>!0,"collapse-change":t=>!0},T0=(t,s)=>{const a=uni.vc||{},f={"vc.common.close":"关闭","vc.table.reset":"重置","vc.table.search":"搜索","vc.table.seniorSearch":"高级搜索","vc.table.expand":"展开","vc.table.collapse":"收起","el.datepicker.startDate":"开始日期","el.datepicker.endDate":"结束日期"},g=e.ref(null),i=e.ref(null),c=e.ref(null),k=e.ref({}),T=e.ref({show:!1,formData:{}}),v=e.ref(0),N=e.ref(0),y=e.ref(null),r=e.ref(null),m=e.ref(null),h=["number","money","percentage","discount"];let w=null,C=null,u=null,l=null,d=null;const o=e.computed(()=>{try{if(typeof a.getPiniaStore=="function"){const W=a.getPiniaStore();if(W&&typeof W.isPC<"u")return!!W.isPC}}catch{}try{if(typeof a.getPinia=="function")return!!a.getPinia("$app.isPC")}catch{}return!1}),p=()=>{var W;return((W=g.value)==null?void 0:W.$el)||g.value||null},E=()=>{var Z;return((Z=i.value)==null?void 0:Z.$el)||i.value||null},n=()=>{var Z;const W=((Z=c.value)==null?void 0:Z.$el)||c.value;return W?W.querySelector&&W.querySelector(".el-form-item__content")||W:null},_=()=>{const W=E(),Z=W&&W.clientWidth?W.clientWidth:0;v.value!==Z&&(v.value=Z)},V=W=>{if(!W)return 0;const Z=W.offsetWidth||0;if(typeof window>"u")return Z;const ie=window.getComputedStyle(W),_e=parseFloat(ie.marginLeft)||0,Be=parseFloat(ie.marginRight)||0;return Math.ceil(Z+_e+Be)},R=W=>{if(!W)return 0;const Z=W.children||[];if(!Z.length)return V(W);let ie=0;for(let _e=0;_e<Z.length;_e++)ie+=V(Z[_e]);return Math.ceil(ie)},q=()=>{const W=n(),Z=R(W);N.value!==Z&&(N.value=Z)},I=()=>{_(),q()},B=()=>{o.value&&e.nextTick(()=>{const W=E(),Z=n();if(W)if(I(),typeof ResizeObserver<"u"){P();const ie=typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):_e=>setTimeout(_e,16);l=()=>{u||(u=ie(()=>{u=null,I()}))},C=new ResizeObserver(l),C.observe(W),Z&&C.observe(Z)}else typeof window<"u"&&window.addEventListener("resize",I)})},P=()=>{C&&(C.disconnect(),C=null),u&&typeof window<"u"&&typeof window.cancelAnimationFrame=="function"&&window.cancelAnimationFrame(u),u=null,l=null,typeof window<"u"&&window.removeEventListener("resize",I)},Q=()=>{w&&(clearTimeout(w),w=null),y.value=null,r.value=null},z=(W,Z)=>{if(typeof W!="function")return;const ie=p();if(!o.value||typeof window>"u"||!ie){W(),e.nextTick(()=>{I(),typeof Z=="function"&&Z()});return}Q();const _e=ie.getBoundingClientRect(),Be=Math.ceil(_e.height),Pe=Math.ceil(_e.width);y.value=Be,r.value=Pe,ie.offsetHeight,W(),e.nextTick(()=>{I(),window.requestAnimationFrame(()=>{const Re=E(),ke=ie.parentElement;let ue=0,Fe=0;Re&&(ue=Math.ceil(Re.getBoundingClientRect().height)),ue||(ue=Math.ceil(ie.scrollHeight||0)),ke&&ke.clientWidth&&(Fe=Math.ceil(ke.clientWidth)),!Fe&&Re&&(Fe=Math.ceil(Re.getBoundingClientRect().width)),y.value=ue||null,r.value=Fe||null,w=setTimeout(()=>{w=null,y.value=null,r.value=null,e.nextTick(()=>{I(),typeof Z=="function"&&Z()})},230)})})},$=(W,Z)=>{if(typeof W!="string"||W.length===0)return W;const ie=Z===void 0?"trim":Z;return ie==="none"?W:ie==="removeAll"?W.replace(/\s+/g,""):W.trim()},x=()=>{k.value=a.pubfn.deepClone(t.modelValue||{})},L=W=>s("update:modelValue",W),re=W=>s("search",W),ne=W=>s("collapse-change",W),de=(W=void 0)=>{const Z=!W,ie=W||{};let _e=ie.autoSearch;_e===void 0&&(_e=!(ie.multiple||ie.props&&ie.props.multiple));const Be=t.modelValue;(Z||_e&&(t.autoSearch===void 0||t.autoSearch))&&re({formQueryParam:Be}),T.value.show=!1},he=()=>de(),A=()=>{L(a.pubfn.deepClone(k.value)),s("reset"),e.nextTick(()=>{de()})},M=W=>{k.value=a.pubfn.deepClone(W)},O=()=>{T.value.formData=a.pubfn.deepClone(t.modelValue||{}),T.value.show=!0},K=()=>{L(a.pubfn.deepClone(T.value.formData)),e.nextTick(()=>{de()})},se=()=>{const W=!Je.value;z(()=>{m.value=W},()=>{ne(W)})},ae=(W,Z)=>{if(["text","textarea"].includes(Z.type)){const ie=$(W,Z.trimMode);(t.modelValue||{})[Z.key]!==ie&&L({...t.modelValue||{},[Z.key]:ie})}},fe=(W={},Z)=>a.pubfn.getData(W,Z),ge=(W={})=>{const Z=W.hidden,ie=W.show;return typeof Z=="boolean"?!Z:typeof ie=="boolean"?ie:Array.isArray(ie)?ie.indexOf("page")>-1:typeof ie!="function"||!!ie(t.modelValue||{})},Se=W=>{if(["",null,void 0].indexOf(W)>-1)return 0;const Z=Math.round(Number(W));return Number.isNaN(Z)?0:Z<1?1:Z>24?24:Z},Ce=W=>{if(["",null,void 0].indexOf(W)>-1)return 0;const Z=Math.round(Number(W));return Number.isNaN(Z)||Z<1?0:Z},Ne=W=>{if(["",null,void 0].indexOf(W)>-1)return 0;const Z=Math.round(Number(W));return Number.isNaN(Z)||Z<1?0:Z},Ve=W=>{if(typeof W=="number")return Number.isFinite(W)&&W>0?Math.ceil(W):0;if(typeof W=="string"&&/px$/i.test(W)){const Z=Number(W.replace(/px$/i,"").trim());return Number.isNaN(Z)||Z<=0?0:Math.ceil(Z)}return 0},ee=W=>{let Z=W;return typeof Z=="string"&&(Z=Z.replace(/px$/i,"").trim()),Z=Number(Z),Number.isNaN(Z)||Z<=0?0:Math.ceil(Z)},H=(W={},Z=!1,ie=!1)=>{const _e=Ce(W.minWidth);if(_e)return _e;if(ie){const Be=Ve(W.width);if(Be)return Be+te()}return W.type==="datetimerange"?360:Z?Ce(t.minWidth):0},J=W=>v.value?Math.max(v.value*W/24-10,0):0,Y=(W={})=>{let Z=Se(W.span),ie=!1;if(!Z){const Pe=Se(t.span);Pe&&(Z=Pe,ie=!0)}if(!Z)return 0;const _e=H(W,ie,!0);if(!_e||!v.value)return Z;let Be=Z;for(;Be<24&&J(Be)<_e;)Be=Math.min(2*Be,24);return Be},me=()=>{const W=o.value,Z=_t.value||[],ie=Z.map(Re=>Y(Re));if(!W)return ie;const _e=(Re=!1)=>{Be.length===1&&(ie[Be[0]]=Re?12:24),Be=[],Pe=0};let Be=[],Pe=0;return Z.forEach((Re,ke)=>{const ue=ie[ke];ue?(Pe+ue>24&&_e(),Be.push(ke),Pe+=ue,Pe===24&&_e()):_e()}),_e(!0),ie},G=(W={},Z=-1)=>{let ie=Z;return ie<0&&(ie=_t.value.indexOf(W),ie<0)?Y(W):Xe.value[ie]||0},S=(W={},Z=-1)=>G(W,Z)>0,j=()=>{if(!o.value)return pt.value.map(()=>({isLast:!0,isFull:!0,rowSpan:24}));const W=pt.value.map(()=>({isLast:!1,isFull:!1,rowSpan:0}));let Z=0,ie=[];const _e=()=>{if(ie.length){const Be=Z>=24;ie.forEach((Pe,Re)=>{W[Pe]={isLast:Re===ie.length-1,isFull:Be,rowSpan:Z}}),Z=0,ie=[]}};return pt.value.forEach((Be,Pe)=>{const Re=G(Be,Pe);Re?(Z>0&&Z+Re>24&&_e(),ie.push(Pe),Z+=Re,Z>=24&&_e()):_e()}),_e(),W},le=()=>{const W=o.value,Z=_t.value||[],ie=Z.length,_e=v.value||0;if(!W||!_e)return{totalRows:ie>0?ie+1:1,totalVisibleCount:ie,collapseVisibleCount:ie,canCollapse:!1};const Be=Te(),Pe=et.value;let Re=1,ke=0,ue=ie,Fe=!1;for(let We=0;We<ie;We++){const wt=Ae(Z[We],We);let rt=Re,tt=ke;if(tt>0&&tt+wt>_e&&(rt++,tt=0),tt+=wt,Pe&&!Fe){let vt=rt;Be>0&&tt>0&&tt+Be>_e&&vt++,vt>Pe&&(ue=We,Fe=!0)}Re=rt,ke=tt}let Ge=Re;return Be>0&&ke>0&&ke+Be>_e&&Ge++,{totalRows:Ge,totalVisibleCount:ie,collapseVisibleCount:ue,canCollapse:!!(Pe&&Ge>Pe&&ie>ue)}},Te=()=>{if(!o.value)return 0;if(N.value>0)return N.value;let W=0;return bt.value.length>0&&(W+=88),yt.value.length>0&&(W+=88),ot.value&&(W+=88),Ne(t.collapseRows)>0&&(W+=72),W},Ae=(W={},Z=-1)=>{if(!o.value)return v.value||0;const ie=G(W,Z);if(ie&&v.value)return Math.ceil(v.value*ie/24);const _e=H(W);if(_e)return _e+10;const Be=W.width;return typeof Be=="number"?Be+10:typeof Be=="string"&&/px$/i.test(Be)?Math.ceil(Number(Be.replace(/px$/i,"").trim())+10):Ce(t.minWidth)+10},Le=(W,Z,ie=-1)=>{if(!o.value||typeof W=="object"&&W!==null&&S(W,ie))return Z?"width:100%;":"100%";let _e=W;typeof W=="object"&&W!==null&&(_e=W.width);let Be=typeof _e=="number"?_e+"px":_e||"";return Be&&Z&&(Be="width:"+Be+";"),Be||""},U=(W={})=>W.title?W.title:o.value?"":" ",te=()=>{let W=ee(t.labelWidth);return console.log("/////////////////////",W),W||(W=Ee()),W},pe=()=>{const W="400 14px Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif";if(typeof window>"u")return W;const Z=E();if(!Z||!Z.querySelector)return W;const ie=Z.querySelector(".el-form-item__label");if(!ie)return W;const _e=window.getComputedStyle(ie);return`${_e.fontWeight} ${_e.fontSize} ${_e.fontFamily}`},oe=(W,Z)=>{const ie=String(W||"");if(!ie)return 0;if(typeof document>"u")return 14*ie.length;d||(d=document.createElement("canvas"));const _e=d.getContext&&d.getContext("2d");return _e?(_e.font=Z||pe(),Math.ceil(_e.measureText(ie).width)):14*ie.length},Ee=()=>{const W=o.value,Z=yt.value.length>0?yt.value:bt.value;let ie=0;const _e=pe();return Z.forEach((Be={})=>{ge(Be)&&(ie=Math.max(ie,oe(Be.title,_e)))}),ie?Math.ceil(ie+12):W?0:80},Me=W=>W.type==="datetimerange"?"datetimerange":W.type==="date"?W.dateType||"date":W.type,je=e.computed(()=>a.pubfn.elementUtil.getComponentSize(t.size)),ht=e.computed(()=>!!Se(t.span)||o.value),mt=e.computed(()=>t.span?`${te()}px`:void 0),$e=e.computed(()=>{const W=y.value,Z=r.value;if(W==null&&Z==null)return{};const ie={};return W!=null&&(ie.height=`${W}px`),Z!=null&&(ie.width=`${Z}px`,ie.maxWidth="100%"),ie}),Xe=e.computed(()=>me()),He=e.computed(()=>j()),ot=e.computed(()=>{const W=t.showReset,Z=t.columns||[];return typeof W=="boolean"?W:W==="auto"&&Z.length>1}),Ze=e.computed(()=>o.value&&Se(t.span)>0),et=e.computed(()=>Ne(t.collapseRows)),Je=e.computed(()=>typeof m.value=="boolean"?m.value:!!t.collapseDefaultExpand),at=e.computed(()=>le()),gt=e.computed(()=>at.value.canCollapse),Nt=e.computed(()=>Je.value?f["vc.table.collapse"]:f["vc.table.expand"]),bt=e.computed(()=>{const W=t.columns||[],Z=t.mainColumns;if(Z==null)return W;const ie=new Set(Z);return W.filter(_e=>ie.has(_e.key))}),_t=e.computed(()=>bt.value.filter(W=>ge(W))),pt=e.computed(()=>{const W=_t.value||[],Z=at.value;return!Z.canCollapse||Je.value?W:W.slice(0,Z.collapseVisibleCount)}),ct=e.computed(()=>{const W=pt.value,Z=He.value,ie=o.value;return W.map((_e,Be)=>{const Pe=G(_e,Be),Re=Pe>0;let ke="",ue="";if(ie)if(Re)ke="width:100%;",ue="100%";else{const Ge=_e&&typeof _e=="object"?_e.width:_e;ue=typeof Ge=="number"?Ge+"px":Ge||"",ke=ue?"width:"+ue+";":""}else ke="width:100%;",ue="100%";let Fe="";if(ie){if(Pe){const Ge=`${Pe/24*100}%`,We=Z[Be]||{};Fe=We.isLast&&We.isFull?`width: ${Ge};`:`width: calc(${Ge} - 10px);`}}else Fe="width:100%;";return{hasSpan:Re,widthStyle:ke,widthValue:ue,itemStyle:Fe,rowLast:!!(Z[Be]||{}).isLast}})}),yt=e.computed(()=>t.mainColumns!==void 0?t.columns||[]:[]),kt=e.computed(()=>{const W=t.drawer||{};return o.value?W.size||"450px":"90%"}),Bt=e.computed(()=>t.searchText||f["vc.table.search"]),Tt=e.computed(()=>t.seniorSearchText||f["vc.table.seniorSearch"]),St=W=>{const Z=W.data??W.options;return typeof Z=="function"?Z()||[]:Z||[]};return e.onMounted(()=>{x(),B()}),e.onBeforeUnmount(()=>{Q(),P(),d=null}),{vc:a,language:f,formWrapRef:g,formRef:i,actionFormItemRef:c,originalForm:k,seniorSearch:T,numericModes:h,isPC:o,inlineCom:ht,sizeCom:je,labelWidthCom:mt,formWrapStyleCom:$e,colDateTypeCom:Me,mainColumnsCom:bt,filteredMainColumnsCom:_t,visibleMainColumnsCom:pt,itemMetaListCom:ct,drawerColumnsCom:yt,drawerSizeCom:kt,showResetCom:ot,searchTextCom:Bt,seniorSearchTextCom:Tt,collapseRowsCom:et,collapseExpandedCom:Je,collapseMetaCom:at,collapseActionVisibleCom:gt,collapseActionTextCom:Nt,actionAlignRightCom:Ze,layoutSpanListCom:Xe,rowLayoutMetaListCom:He,hiddenFn:ge,getSelectData:St,widthFn:Le,labelFn:U,getItemSpan:G,hasSpan:S,normalizeSpan:Se,normalizeMinWidth:Ce,normalizeCollapseRows:Ne,parseWidthToPx:Ve,getBaseItemSpan:Y,getLayoutSpanList:me,buildRowLayoutMetaList:j,getCollapseMeta:le,getActionRowWidth:Te,getItemRowWidth:Ae,getCurrentLabelWidth:te,getAutoLabelWidth:Ee,measureLabelTextWidth:oe,trimValue:$,init:x,search:de,searchClick:he,reset:A,setResetFormData:M,showSeniorSearch:O,seniorSearchBtn:K,toggleCollapse:se,handleChange:ae,getData:fe,updateLayoutMetrics:I}},E0={class:"vc-contents"},z0={key:0,class:"vc-contents"},D0={key:1},F0={key:1,class:"vc-contents"},I0={key:2,class:"vc-contents"},A0={key:3,class:"vc-contents"},M0={key:4,class:"vc-contents"},P0={key:5,class:"vc-contents"},R0={key:6,class:"vc-contents"},L0={key:7,class:"vc-contents"},$0={key:8,class:"vc-contents"},O0={key:9,class:"vc-contents"},U0={key:10,class:"vc-contents"},q0={key:11},j0={class:"vc-data-table-query-drawer"},W0={class:"content"},K0={class:"footer"},H0=e.defineComponent({name:"vc-data-table-query",__name:"data-table-query",props:V0,emits:N0,setup(t,{expose:s,emit:a}){const f=t,g=a,{vc:i,language:c,formWrapRef:k,formRef:T,actionFormItemRef:v,seniorSearch:N,numericModes:y,isPC:r,inlineCom:m,sizeCom:h,labelWidthCom:w,formWrapStyleCom:C,colDateTypeCom:u,mainColumnsCom:l,visibleMainColumnsCom:d,itemMetaListCom:o,drawerColumnsCom:p,drawerSizeCom:E,showResetCom:n,searchTextCom:_,seniorSearchTextCom:V,collapseExpandedCom:R,collapseActionVisibleCom:q,collapseActionTextCom:I,actionAlignRightCom:B,getSelectData:P,labelFn:Q,search:z,reset:$,setResetFormData:x,showSeniorSearch:L,seniorSearchBtn:re,toggleCollapse:ne,handleChange:de,getData:he}=T0(f,g);return s({search:z,reset:$,setResetFormData:x,showSeniorSearch:L,toggleCollapse:ne,getData:he}),(A,M)=>{const O=e.resolveComponent("vc-data-input-date-time"),K=e.resolveComponent("vc-data-input-time"),se=e.resolveComponent("vc-data-input-select"),ae=e.resolveComponent("vc-data-input-address"),fe=e.resolveComponent("vc-data-input-province"),ge=e.resolveComponent("vc-data-input-radio"),Se=e.resolveComponent("vc-data-input-remote-select"),Ce=e.resolveComponent("vc-data-input-cascader"),Ne=e.resolveComponent("vc-data-input-table-select"),Ve=e.resolveComponent("vc-data-input-numeric"),ee=e.resolveComponent("el-input"),H=e.resolveComponent("el-form-item"),J=e.resolveComponent("el-button"),Y=e.resolveComponent("el-form"),me=e.resolveComponent("vc-data-form"),G=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock("view",E0,[A.columns&&A.columns.length>0?(e.openBlock(),e.createElementBlock("view",{key:0,ref_key:"formWrapRef",ref:k,class:"vc-data-table-query",style:e.normalizeStyle(e.unref(C))},[e.createVNode(Y,{ref_key:"formRef",ref:T,inline:e.unref(m),model:A.modelValue,"label-width":e.unref(w),"label-position":A.labelPosition,size:e.unref(h),"show-message":!1,"inline-message":!1,onsubmit:"return false"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(S,j)=>(e.openBlock(),e.createBlock(H,{key:j,class:e.normalizeClass(["form-item",{"form-item--span":e.unref(o)[j]&&e.unref(o)[j].hasSpan,"form-item--row-last":e.unref(o)[j]&&e.unref(o)[j].rowLast}]),style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].itemStyle||""),label:e.unref(Q)(S)},{default:e.withCtx(()=>[e.renderSlot(A.$slots,S.key,{form:A.modelValue,keyName:S.key},()=>[["date","datetime","datetimerange"].includes(S.type)?(e.openBlock(),e.createElementBlock("view",z0,[S.type!=="datetimerange"||e.unref(r)?(e.openBlock(),e.createBlock(O,{key:0,modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,width:e.unref(o)[j]&&e.unref(o)[j].widthValue||"",disabled:S.disabled,clearable:S.clearable,type:e.unref(u)(S),format:S.format,"start-placeholder":S.startPlaceholder,"end-placeholder":S.endPlaceholder,"range-separator":S.rangeSeparator,"picker-options":S.pickerOptions,"default-value":S.defaultValue,"default-time":S.defaultTime,"value-format":S.valueFormat,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","width","disabled","clearable","type","format","start-placeholder","end-placeholder","range-separator","picker-options","default-value","default-time","value-format","placeholder","onChange"])):(e.openBlock(),e.createElementBlock("view",D0,"手机端不支持该组件"))])):S.type==="time"?(e.openBlock(),e.createElementBlock("view",F0,[e.createVNode(K,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,width:e.unref(o)[j]&&e.unref(o)[j].widthValue||"",disabled:S.disabled,clearable:S.clearable,format:S.format,"start-placeholder":S.startPlaceholder,"end-placeholder":S.endPlaceholder,"range-separator":S.rangeSeparator,"default-value":S.defaultValue,"value-format":S.valueFormat,"is-range":S.isRange,custom:S.custom,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","width","disabled","clearable","format","start-placeholder","end-placeholder","range-separator","default-value","value-format","is-range","custom","placeholder","onChange"])])):S.type==="select"?(e.openBlock(),e.createElementBlock("view",I0,[e.createVNode(se,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),localdata:e.unref(P)(S),filterable:S.filterable,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),multiple:S.multiple,"multiple-limit":S.multipleLimit,disabled:S.disabled,clearable:S.clearable,group:S.group,props:S.props,"collapse-tags":S.collapseTags,"allow-create":S.allowCreate,"filter-method":S.filterMethod,remote:S.remote,"remote-method":S.remoteMethod,loading:S.loading,"loading-text":S.loadingText,"no-match-text":S.noMatchText,"no-data-text":S.noDataText,"popper-class":S.popperClass,"reserve-keyword":S.reserveKeyword,"default-first-option":S.defaultFirstOption,"popper-append-to-body":S.popperAppendToBody,"automatic-dropdown":S.automaticDropdown,"default-index":S.defaultIndex,"show-desc":S.showDesc,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","style","localdata","filterable","placeholder","multiple","multiple-limit","disabled","clearable","group","props","collapse-tags","allow-create","filter-method","remote","remote-method","loading","loading-text","no-match-text","no-data-text","popper-class","reserve-keyword","default-first-option","popper-append-to-body","automatic-dropdown","default-index","show-desc","onChange"])])):S.type==="address"?(e.openBlock(),e.createElementBlock("view",A0,[e.createVNode(ae,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),level:S.level,disabled:S.disabled,clearable:S.clearable,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","style","placeholder","level","disabled","clearable","onChange"])])):S.type==="province"?(e.openBlock(),e.createElementBlock("view",M0,[e.createVNode(fe,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),disabled:S.disabled,clearable:S.clearable,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","style","placeholder","disabled","clearable","onChange"])])):S.type==="radio"?(e.openBlock(),e.createElementBlock("view",P0,[e.createVNode(ge,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,disabled:S.disabled,localdata:e.unref(P)(S),"text-color":S.textColor,fill:S.fill,"option-type":S.optionType,border:S.border,size:S.size,"item-width":S.itemWidth,action:S.action,"action-data":S.actionData,"is-request":S.isRequest,"request-header":S.requestHeader,"request-method":S.requestMethod,props:S.props,"data-preprocess":S.dataPreprocess,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","disabled","localdata","text-color","fill","option-type","border","size","item-width","action","action-data","is-request","request-header","request-method","props","data-preprocess","onChange"])])):S.type==="remote-select"?(e.openBlock(),e.createElementBlock("view",R0,[e.createVNode(Se,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),"remote-method":S.remoteMethod,clearable:S.clearable,action:S.action,"action-data":S.actionData,"show-all":S.showAll,"show-refresh":S.showRefresh,multiple:S.multiple,limit:S.limit,"reserve-keyword":S.reserveKeyword,width:e.unref(o)[j]&&e.unref(o)[j].widthValue||"",disabled:S.disabled,filterable:S.filterable,"loading-text":S.loadingText,"no-match-text":S.noMatchText,"no-data-text":S.noDataText,"is-request":S.isRequest,"request-header":S.requestHeader,"request-method":S.requestMethod,props:S.props,"data-preprocess":S.dataPreprocess,group:S.group,"show-desc":S.showDesc,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","style","placeholder","remote-method","clearable","action","action-data","show-all","show-refresh","multiple","limit","reserve-keyword","width","disabled","filterable","loading-text","no-match-text","no-data-text","is-request","request-header","request-method","props","data-preprocess","group","show-desc","onChange"])])):S.type==="cascader"?(e.openBlock(),e.createElementBlock("view",L0,[e.createVNode(Ce,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,action:S.action,localdata:e.unref(P)(S),"is-request":S.isRequest,"request-header":S.requestHeader,"request-method":S.requestMethod,props:S.props,width:e.unref(o)[j]&&e.unref(o)[j].widthValue||"",disabled:S.disabled,clearable:S.clearable,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),"show-all-levels":S.showAllLevels,"collapse-tags":S.collapseTags,separator:S.separator,filterable:S.filterable,"filter-method":S.filterMethod,debounce:S.debounce,"before-filter":S.beforeFilter,"popper-class":S.popperClass,onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","action","localdata","is-request","request-header","request-method","props","width","disabled","clearable","placeholder","show-all-levels","collapse-tags","separator","filterable","filter-method","debounce","before-filter","popper-class","onChange"])])):S.type==="table-select"?(e.openBlock(),e.createElementBlock("view",$0,[e.createVNode(Ne,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,action:S.action,"form-data":S.formData,"remote-method":S.remoteMethod,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),width:e.unref(o)[j]&&e.unref(o)[j].widthValue||"",disabled:S.disabled,multiple:S.multiple,"multiple-limit":S.limit,columns:S.columns,"query-columns":S.queryColumns,"submit-field":S.submitField,"list-key":S.listKey,"id-key":S.idKey,"id-title":S.idTitle,"name-key":S.nameKey,"name-title":S.nameTitle,"show-cancel":S.showCancel,"cancel-text":S.cancelText,"submit-text":S.submitText,"page-size":S.pageSize,"value-fields":S.valueFields,"main-columns":S.mainColumns,"dialog-width":S.dialogWidth,"row-height":S.rowHeight,"left-fixed":S.leftFixed,"right-fixed":S.rightFixed,"is-request":S.isRequest,"request-header":S.requestHeader,"request-method":S.requestMethod,props:S.props,"data-preprocess":S.dataPreprocess,"show-summary":S.showSummary,"total-option":S.totalOption,"summary-method":S.summaryMethod,"close-on-click-modal":S.closeOnClickModal,"label-format":S.labelFormat,size:e.unref(h),onChange:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","action","form-data","remote-method","placeholder","width","disabled","multiple","multiple-limit","columns","query-columns","submit-field","list-key","id-key","id-title","name-key","name-title","show-cancel","cancel-text","submit-text","page-size","value-fields","main-columns","dialog-width","row-height","left-fixed","right-fixed","is-request","request-header","request-method","props","data-preprocess","show-summary","total-option","summary-method","close-on-click-modal","label-format","size","onChange"])])):e.unref(y).includes(S.type)?(e.openBlock(),e.createElementBlock("view",O0,[e.createVNode(Ve,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),mode:S.type,precision:S.precision,placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),min:S.min,max:S.max,"allow-negative":S.allowNegative,range:S.range,"range-separator":S.rangeSeparator,"right-text":S.rightText,"show-right-text":S.showRightText,clearable:S.clearable,disabled:S.disabled,readonly:S.readonly,"empty-value":S.emptyValue,onEnter:M[0]||(M[0]=le=>e.unref(z)()),onClear:le=>e.unref(z)(S)},null,8,["modelValue","onUpdate:modelValue","style","mode","precision","placeholder","min","max","allow-negative","range","range-separator","right-text","show-right-text","clearable","disabled","readonly","empty-value","onClear"])])):S.type==="text"?(e.openBlock(),e.createElementBlock("view",U0,[e.createVNode(ee,{modelValue:A.modelValue[S.key],"onUpdate:modelValue":le=>A.modelValue[S.key]=le,class:"query-input",style:e.normalizeStyle(e.unref(o)[j]&&e.unref(o)[j].widthStyle||""),placeholder:e.unref(i).pubfn.placeholderFilter(S.placeholder,S),clearable:"","prefix-icon":S.prefixIcon,"suffix-icon":S.suffixIcon,disabled:S.disabled,maxlength:S.maxlength,"show-word-limit":S.showWordLimit,readonly:S.readonly,onChange:le=>e.unref(de)(le,S),onClear:le=>e.unref(z)(S),onKeyup:M[1]||(M[1]=e.withKeys(le=>e.unref(z)(),["enter"]))},null,8,["modelValue","onUpdate:modelValue","style","placeholder","prefix-icon","suffix-icon","disabled","maxlength","show-word-limit","readonly","onChange","onClear"])])):(e.openBlock(),e.createElementBlock("view",q0,"不支持"+e.toDisplayString(S.type)+"组件",1))],!0)]),_:2},1032,["class","style","label"]))),128)),e.createVNode(H,{ref_key:"actionFormItemRef",ref:v,class:e.normalizeClass(["form-item form-item--actions",{"form-item--actions-right":e.unref(B)}])},{default:e.withCtx(()=>[e.unref(l).length>0?(e.openBlock(),e.createBlock(J,{key:0,class:"search-btn",type:"primary",icon:e.unref(Ie.Search),onClick:M[2]||(M[2]=S=>e.unref(z)())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(_)),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),e.unref(p).length>0?(e.openBlock(),e.createBlock(J,{key:1,class:"search-btn",type:"primary",icon:e.unref(Ie.Search),onClick:e.unref(L)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)),1)]),_:1},8,["icon","onClick"])):e.createCommentVNode("",!0),e.unref(n)?(e.openBlock(),e.createBlock(J,{key:2,class:"search-btn",icon:e.unref(Ie.RefreshRight),onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)["vc.table.reset"]),1)]),_:1},8,["icon","onClick"])):e.createCommentVNode("",!0),e.unref(q)?(e.openBlock(),e.createBlock(J,{key:3,class:"search-btn collapse-btn",link:"",type:"primary",icon:e.unref(R)?e.unref(Ie.ArrowUp):e.unref(Ie.ArrowDown),onClick:e.unref(ne)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(I)),1)]),_:1},8,["icon","onClick"])):e.createCommentVNode("",!0),e.renderSlot(A.$slots,"right-btns",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["inline","model","label-width","label-position","size"])],4)):e.createCommentVNode("",!0),e.unref(p).length>0?(e.openBlock(),e.createBlock(G,{key:1,title:A.drawer&&A.drawer.title||e.unref(c)["vc.table.search"],modelValue:e.unref(N).show,"onUpdate:modelValue":M[5]||(M[5]=S=>e.unref(N).show=S),direction:A.drawer&&A.drawer.direction||"rtl",size:e.unref(E),"append-to-body":!0},{default:e.withCtx(()=>[e.createElementVNode("view",j0,[e.createElementVNode("view",W0,[e.createVNode(me,{modelValue:e.unref(N).formData,"onUpdate:modelValue":M[3]||(M[3]=S=>e.unref(N).formData=S),"form-type":"drawer",columns:e.unref(p),"footer-show":!1,"label-width":A.drawer&&A.drawer.labelWidth||e.unref(w),"is-table-form":!0},null,8,["modelValue","columns","label-width"])]),e.createElementVNode("view",K0,[e.createVNode(J,{class:"button",size:"large",onClick:M[4]||(M[4]=S=>e.unref(N).show=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.drawer&&A.drawer.cancelText||e.unref(c)["vc.common.close"]),1)]),_:1}),e.createVNode(J,{class:"button",type:"primary",size:"large",onClick:e.unref(re)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.drawer&&A.drawer.submitText||e.unref(c)["vc.table.search"]),1)]),_:1},8,["onClick"])])])]),_:1},8,["title","modelValue","direction","size"])):e.createCommentVNode("",!0)])}}}),x0=De(H0,[["__scopeId","data-v-6adff011"]]),Y0={action:{type:[String,Function],default:""},data:{type:Array,default:null},props:{type:Object,default:()=>({rows:"rows",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",formData:"formData",getCount:"getCount",hasMore:"hasMore"})},autoAction:{type:Boolean,default:!0},isRequest:{type:Boolean,default:!1},encryptAction:{type:Boolean,default:!1},requestHeader:{type:Boolean,default:void 0},requestMethod:{type:String,default:"POST"},retryCount:{type:Number,default:0},retryInterval:{type:Number,default:1e3},deleteAction:{type:String,default:""},deleteTips:{type:String,default:"确定要删除吗?"},deleteConfirm:{type:[Boolean,Object],default:!0},total:{type:Number,default:null},showSummary:{type:Boolean,default:!1},sumText:{type:String,default:"合计"},summaryMethod:{type:Function,default:void 0},dataPreprocess:{type:Function,default:void 0},pagination:{type:Boolean,default:!1},pageSizes:{type:Array,default:()=>[1,5,10,20,50,100,500]},maxPageCount:{type:[Number,String],default:void 0},searchedCleanSelection:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},selection:{type:Boolean,default:!1},rowNo:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:void 0},expandRowKeys:{type:Array,default:void 0},rowKey:{type:String,default:"_id"},rowClassName:{type:[String,Function],default:""},rowStyle:{type:[Object,Function],default:void 0},cellStyle:{type:[Object,Function],default:void 0},cellClassName:{type:[String,Function],default:""},headerRowClassName:{type:[String,Function],default:""},headerRowStyle:{type:[Object,Function],default:void 0},headerCellClassName:{type:[String,Function],default:""},headerCellStyle:{type:[Object,Function],default:()=>({background:"#eef1f6",color:"#606266"})},spanMethod:{type:Function,default:void 0},treeProps:{type:Object,default:()=>({children:"children",hasChildren:"hasChildren"})},indent:{type:Number,default:16},lazy:{type:Boolean,default:!1},load:{type:Function,default:void 0},maxHeight:{type:[Number,String],default:void 0},height:{type:[Number,String],default:void 0},rowHeight:{type:Number,default:void 0},top:{type:Number,default:10},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},size:{type:String,values:qe,default:""},emptyText:{type:String,default:""},fit:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!0},selectOnIndeterminate:{type:Boolean,default:!0},queryFormParam:{type:Object,default:()=>({})},rightBtns:{type:[Array],default:()=>[]},rightBtnsMore:{type:Array,default:()=>[]},customRightBtns:{type:Array,default:()=>[]},rightBtnsType:{type:String,default:"button"},rightBtnsAlign:{type:String,default:"center"},rightBtnsWidth:{type:[Number,String],default:void 0},detailDialogWidth:{type:[Number,String],default:"830px"},detailColumns:{type:Array,default:()=>[]},defaultSort:{type:Object,default:()=>({})},secondarySortKey:{type:String,default:void 0},selectable:{type:Function,default:void 0},header:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},timeout:{type:Number,default:6e4},needAlert:{type:Boolean,default:!0},rightFixed:{type:[Boolean,String],default:!0},leftFixed:{type:Boolean,default:!0},totalOption:{type:Array,default:void 0},useVirtual:{type:Boolean,default:!0},showBodyOverflow:{type:[Boolean,String],default:"tooltip"},showOverflowTooltip:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},pagerCount:{type:[Number,String],default:void 0},pageSize:{type:Number,default:10},getCount:{type:[String,Boolean],default:"auto"}},J0={update:t=>!0,delete:t=>!0,detail:t=>!0,"current-change":t=>!0,"selection-change":t=>!0,select:(t,s)=>!0,"select-all":t=>!0,"sort-change":t=>!0,success:t=>!0,fail:t=>!0,error:t=>!0,search:t=>!0,"row-click":(t,s,a)=>!0,"cell-click":(t,s,a,f)=>!0,"expand-change":(t,s)=>!0,"pagination-change":t=>!0,"table-mounted":()=>!0,"toggle-row-selection":t=>!0,"toggle-all-selection":()=>!0,complete:t=>!0,"custom-right-btns":(t,s,a)=>!0,"right-btns-more":(t,s,a)=>!0,"row-dblclick":(t,s,a)=>!0,"row-contextmenu":(t,s,a)=>!0,"cell-mouse-enter":(t,s,a,f)=>!0,"cell-mouse-leave":(t,s,a,f)=>!0,"cell-dblclick":(t,s,a,f)=>!0,"header-click":(t,s)=>!0,"header-contextmenu":(t,s)=>!0,"header-dragend":(t,s,a,f)=>!0,"filter-change":t=>!0,"toggle-tree-expand":(t,s,a)=>!0,"table-body-scroll":t=>!0},G0=(t,s)=>{const a=uni.vc||{},f=e.ref(null),g=e.resolveComponent("vc-data-table-column-item"),i=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-button"),k=e.ref(`vc-data-table-${Math.random().toString(36).substring(2,24)}`),T=e.ref(!1),v=e.ref([]),N=e.ref(0),y=e.ref(1),r=e.ref(t.pageSize||10),m=e.ref([]),h=e.ref([]),w=e.ref(null),C=e.ref(!1),u=e.ref(null),l=e.ref([]),d=e.ref(0),o=e.ref(!0),p=e.ref(!0),E=e.ref(!1),n=e.ref(null),_=e.ref(!0),V=e.ref(!1),R={close:"关闭",tip:"提示",success:"成功",warning:"警告",headerOperate:"操作",headerNo:"序号",detail:"详情",update:"编辑",delete:"删除",more:"更多",deleteTips:"确定删除吗?",deleteSuccess:"删除成功",noItemSelected:"请先选择一条数据",total:"合计",emptyText:"暂无数据",el:{pagination:{goto:"前往",page:"页",total:"共 {total} 条",pagesize:"条/页",pageClassifier:"页"}}},q=e.computed(()=>({rows:"rows",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",formData:"formData",getCount:"getCount",hasMore:"hasMore",...t.props})),I=e.computed(()=>{const b=uni.getSystemInfoSync(),D=b.windowTop||100,F=b.windowHeight-D,X=a.getPinia("$app.isPC")??!0;if(t.maxHeight!=null&&a.pubfn.isNotNull(t.maxHeight)||!X)return;let ce;return t.height?(ce=typeof t.height=="number"?t.height:parseInt(String(t.height)),t.pagination&&(ce-=46),ce):(ce=d.value>0?F-d.value-30:F-300,t.pagination&&(ce-=46),ce<Pt.value*5+50&&(ce=F-150),ce)}),B=e.computed(()=>!t.columns||!t.columns.length?[]:t.columns.filter(b=>b.show===void 0||b.show===!0?!0:Array.isArray(b.show)?b.show.includes("table"):!1).map(b=>{const D=b.width?typeof b.width=="number"?b.width:parseInt(b.width):void 0,F=b.minWidth?typeof b.minWidth=="number"?b.minWidth:parseInt(b.minWidth):void 0,X=!D&&!F?yt(b.title||b.key||""):void 0;return{...b,width:D,minWidth:F||X,prop:b.key}})),P=e.computed(()=>{var D;const b=((D=t.detailColumns)==null?void 0:D.length)>0?t.detailColumns:t.columns;return!b||!b.length?[]:b.filter(F=>F.show===void 0||F.show===!0?!0:Array.isArray(F.show)?F.show.includes("detail"):!1).map(F=>{const X=F.width?typeof F.width=="number"?F.width:parseInt(F.width):void 0,ce=F.minWidth?typeof F.minWidth=="number"?F.minWidth:parseInt(F.minWidth):void 0;return{...F,width:X,minWidth:ce,prop:F.key}})}),Q=e.computed(()=>!t.columns||!t.columns.length?[]:t.columns.filter(b=>b.show===void 0||b.show===!0?!0:Array.isArray(b.show)?b.show.includes("expand"):!1)),z=e.computed(()=>{const b=!a.pubfn.isNull(t.rightBtns),D=t.customRightBtns&&t.customRightBtns.length>0;return b||D}),$=e.computed(()=>a.pubfn.isNull(t.rightBtns)?[]:Array.isArray(t.rightBtns)?t.rightBtns.map(b=>typeof b=="string"?pt(b):b):[]),x=e.computed(()=>!(a.getPinia("$app.isPC")??!0)||t.rightFixed===!1?!1:t.rightFixed==="left"?"left":"right"),L=e.computed(()=>{if(t.rightBtnsWidth)return typeof t.rightBtnsWidth=="number"?`${t.rightBtnsWidth}px`:t.rightBtnsWidth;const b=t.rightBtnsType!=="dropdown";let D=b?32:20;const F=t.customRightBtns||[],X=t.rightBtns||[];return b?(F.length>0&&(D+=8*F.length,F.forEach(ce=>{D+=ct(ce.title||"")+30,ce.icon&&(D+=12)})),X.length>0&&(D+=8*X.length,X.forEach(ce=>{typeof ce=="string"?D+=30+ct(kt(ce))+12:(D+=ct(ce.title||"")+30,(ce.icon===void 0||ce.icon)&&(D+=12))}))):(F.length>0&&(D+=8*F.length,F.forEach(ce=>{D+=ct(ce.title||"")+2})),X.length>0&&(D+=8*X.length,X.forEach(ce=>{typeof ce=="string"?(D+=2+ct(kt(ce)),ce==="more"&&(D+=12)):(D+=ct(ce.title||"")+2,ce.mode==="more"&&(D+=12))}))),D}),re=e.computed(()=>{var b;return((b=t.rightBtns)==null?void 0:b.includes("more"))&&t.rightBtnsMore&&t.rightBtnsMore.length>0}),ne=e.computed(()=>{var b,D,F;return((F=(D=(b=a.pubfn)==null?void 0:b.elementUtil)==null?void 0:D.getComponentSize)==null?void 0:F.call(D,t.size))||t.size||""}),de=e.computed(()=>{const b=t.defaultSort;if(!b||typeof b!="object")return;const D=b.name||b.prop;let F=b.type||b.order;if(F==="desc"&&(F="descending"),F==="asc"&&(F="ascending"),D&&F)return{prop:D,order:F}}),he=e.computed(()=>{let b=t.pagerCount;const D=a.getPinia("$app.isPC")??!0;return b==null?b=D?7:5:typeof b=="string"&&(b=Number(b)),b<5&&(b=5),b>7&&(b=7),b}),A=e.computed(()=>t.total||N.value),M=e.computed(()=>{const b=A.value,D=r.value,F=t.maxPageCount;let X=b%D===0?b/D:Math.ceil(b/D);F&&X>Number(F)&&(X=Number(F));let ce=X*D;return ce>b&&(ce=b),ce}),O=e.computed(()=>{const b=a.getPinia("$app.isPC")??!0,D=[],F=["total","sizes","prev","pager","next","jumper"];return M.value!==A.value&&D.push("total"),b||(D.push("sizes"),D.push("jumper")),p.value||(D.push("total"),D.push("jumper")),F.filter(X=>!D.includes(X)).join(",")}),K=e.computed(()=>({background:"#eef1f6",color:"#606266"})),se=e.computed(()=>{var b,D;if(a.pubfn.isNotNull(t.totalOption)&&((D=(b=t.totalOption)==null?void 0:b[0])!=null&&D.label))return te;if(typeof t.summaryMethod=="function")return t.summaryMethod}),ae=e.computed(()=>({center:"center",left:"flex-start",right:"flex-end"})[t.rightBtnsAlign??"center"]||"center"),fe=e.computed(()=>t.emptyText||R.emptyText),ge=e.computed(()=>t.deleteTips||R.deleteTips),Se=(b,D)=>{if(!b)return"-";let F=b[D.key];if((F==null||F==="")&&D.defaultValue!==void 0&&(F=D.defaultValue),typeof D.formatter=="function")return D.formatter(F,b,D,b._index??0);if(F==null)return D.placeholder||"-";switch(D.type){case"money":return typeof F=="number"?`¥${F.toFixed(2)}`:`¥${F}`;case"number":{if(typeof F=="number"){const X=D.precision??2;return F.toFixed(X)}return String(F)}case"time":case"date":case"datetime":{if(!F)return"-";const X=D.valueFormat||"yyyy-MM-dd hh:mm:ss";return a.pubfn.timeFormat(new Date(F),X)}case"datetimerange":{if(!F||!Array.isArray(F))return"-";const[X,ce]=F,we=D.valueFormat||"yyyy-MM-dd hh:mm:ss",ve=X?a.pubfn.timeFormat(new Date(X),we):"-",Ke=ce?a.pubfn.timeFormat(new Date(ce),we):"-";return`${ve} ~ ${Ke}`}case"dateDiff":return F?a.pubfn.dateDiff(F):"-";case"avatar":case"image":return F;case"switch":return F;case"tag":{if(F==null||F==="")return;if(D.data){const X=D.data.find(ce=>ce.value===F);return X?{label:X.label,tagType:X.tagType,effect:X.effect}:{label:String(F),tagType:D.tagType||"info"}}if(D.options){const X=D.options.find(ce=>ce.value===F);return X?{label:X.label,tagType:X.tagType,effect:X.effect}:{label:String(F),tagType:D.tagType||"info"}}return F}case"radio":case"select":{if(D.options){const X=D.options.find(ce=>ce.value===F);return X?{label:X.label,tagType:X.tagType||"primary"}:{label:String(F),tagType:"info"}}if(D.data){const X=D.data.find(ce=>ce.value===F);return X?{label:X.label,tagType:X.tagType||"primary"}:{label:String(F),tagType:"info"}}return{label:String(F),tagType:"info"}}case"checkbox":return D.options&&Array.isArray(F)?F.map(X=>{const ce=D.options.find(we=>we.value===X);return ce?ce.label:X}).join(", "):String(F);case"array":return Array.isArray(F)?F.join(", "):String(F);case"userInfo":return typeof F=="object"&&F!==null?F.nickname||F.username||F.mobile||JSON.stringify(F):String(F);case"html":return F;case"success":case"error":case"primary":case"icon":case"textarea":case"desc":return F;case"table":return Array.isArray(F)&&F.length>0?`(${F.length}条)`:"-";case"group":return"";default:return String(F)}},Ce=b=>{const D=[];return b.type==="money"&&D.push("is-money"),(b.type==="image"||b.type==="avatar")&&D.push("is-image"),D.join(" ")},Ne=b=>{var F;return((F=a.getPinia)==null?void 0:F.call(a,"$app.isPC"))??!0?b==="left"||b===!0?t.leftFixed!==!1?"left":!1:b==="right"?t.rightFixed!==!1?"right":!1:b:!1},Ve=(b,D,F=!0)=>{var X,ce;try{return typeof b=="boolean"?b:typeof b=="string"?((ce=(X=a.pubfn).checkDataExpText)==null?void 0:ce.call(X,D,b))??F:typeof b=="function"?b(D):F}catch{return F}},ee=(b,D)=>{var F,X;try{return b.disabled===void 0?!1:typeof b.disabled=="boolean"?b.disabled:typeof b.disabled=="string"?((X=(F=a.pubfn).checkDataExpText)==null?void 0:X.call(F,D,b.disabled))??!1:typeof b.disabled=="function"?b.disabled(D):!1}catch{return!1}},H=b=>{const D=t.showOverflowTooltip,F=b.showOverflowTooltip;return["time","date","province","address","map","text","custom"].includes(b.type),F===void 0?D:F},J=b=>["group","object"].includes(b.type)?b.align||"left":b.align||"center",Y=b=>b.headerAlign||b.align||"center",me=()=>{uni.createSelectorQuery().select(`#${k.value} .vc-table-wrapper`).boundingClientRect(b=>{b&&d.value!==b.top&&(d.value=b.top)}).exec()},G=()=>{uni.onWindowResize(()=>{a.pubfn.debounce(()=>{me()},50,!1,"vc-data-table-onresize")})},S=(b={})=>{var we;const D=q.value,F={};if(a.pubfn.isNotNull(t.queryFormParam)){const ve=D.formData;ve&&ve!=="/"?(a.pubfn.objectAssign(F,t.queryFormParam),ve!=="formData"&&(F[ve]=a.pubfn.objectAssign(F[ve]||{},t.queryFormParam.formData))):(a.pubfn.objectAssign(F,t.queryFormParam),a.pubfn.objectAssign(F,t.queryFormParam.formData))}if(a.pubfn.isNotNull(b.formQueryParam)){const ve=D.formData;ve&&ve!=="/"&&F[ve]?F[ve]=a.pubfn.objectAssign(F[ve],b.formQueryParam):a.pubfn.objectAssign(F,b.formQueryParam)}a.pubfn.isNotNull(m.value)?((we=m.value[0])==null?void 0:we.type)==="none"?F.sortRule=[]:F.sortRule=m.value:a.pubfn.isNotNull(t.defaultSort)?(F.sortRule=[t.defaultSort],t.secondarySortKey&&F.sortRule.push({name:t.secondarySortKey,type:t.defaultSort.type})):F.sortRule=[],F[D.pageIndex]=y.value,F[D.pageSize]=r.value;const X=D.getCount,ce=t.getCount;return ce==="true"||ce===!0?F[X]=!0:ce==="false"||ce===!1?F[X]=!1:b.getCount===!1?(F[X]=!1,F[D.total]=N.value):delete F[X],F},j=async(b={})=>{o.value&&(o.value=!1);const D=t.action;if(!D)return;if(t.data&&!a.pubfn.isNull(t.data)){let X=[...t.data];t.dataPreprocess&&(X=t.dataPreprocess(X)),v.value=X,N.value=t.total??X.length,t.showSummary&&U();return}const F=S(b);T.value=!0;try{let X;const ce=typeof D=="function"?D:t.isRequest?a.request:a.callFunction;X=await new Promise((Qe,ut)=>{ce({url:typeof D=="string"?D:void 0,method:t.requestMethod,data:F,header:t.header,timeout:t.timeout,retryCount:t.retryCount,retryInterval:t.retryInterval,encrypt:t.encryptAction,success:ft=>Qe(ft),fail:ft=>ut(ft)})});const we=q.value,ve=X[we.rows]||[],Ke=X[we.total],nt=X[we.hasMore],st=X[we.getCount];let Ye=[...ve];t.dataPreprocess&&(Ye=t.dataPreprocess(Ye)),v.value=Ye,_.value=typeof st=="boolean"?st:y.value===1,V.value=typeof nt=="boolean"&&nt;const Ct=JSON.stringify(t.queryFormParam);if(E.value=Ct!==n.value,n.value=Ct,(y.value===1||E.value)&&(p.value=!!_.value),_.value)N.value=Number(Ke);else if(!p.value){let Qe=0;Qe=V.value?r.value*(y.value+1):r.value*(y.value-1)+(Ye.length>0?Ye.length:1),(N.value<Qe||E.value)&&(N.value=Qe)}t.showSummary&&U(),s("success",{data:X,list:Ye,total:N.value,getCount:_.value,hasMore:V.value,pageIndex:y.value,pageSize:r.value})}catch(X){v.value=[],N.value=0,s("fail",X),s("error",X),t.needAlert&&Ue.ElNotification({title:"警告",message:X.msg||X.message||"请求失败",type:"warning",position:"bottom-right"})}finally{T.value=!1,e.nextTick(()=>{s("complete",{list:v.value,total:N.value,getCount:_.value,hasMore:V.value,pageIndex:y.value,pageSize:r.value})})}},le=b=>{y.value=1,n.value=null,j({formQueryParam:b})},Te=(b={})=>{j(b)},Ae=b=>{le(b)},Le=()=>{var b;y.value=1,r.value=t.pageSize||10,m.value=[],(b=t.queryFormParam)!=null&&b.formData&&Object.keys(t.queryFormParam.formData).forEach(D=>{t.queryFormParam.formData[D]=""}),j()},U=()=>{t.showSummary&&t.summaryMethod&&(l.value=t.summaryMethod({columns:t.columns,data:v.value}))},te=b=>{const{columns:D,data:F}=b,X=[""];return D.forEach((ce,we)=>{var ve,Ke,nt,st,Ye,Ct;if(we===0)X.push(R.total);else{const Qe=(Ke=(ve=a.pubfn)==null?void 0:ve.getListItem)==null?void 0:Ke.call(ve,t.totalOption,"key",ce.property);if(!Qe)return;const ut=Qe.precision??2,ft=F.map(dt=>Number(dt[ce.property]));if(ft.every(dt=>isNaN(dt)))X[we]="";else{let dt=ft.reduce((Lt,$t)=>{const Vt=Number($t);return isNaN(Vt)?Lt:Lt+Vt},0);dt=((st=(nt=a.pubfn)==null?void 0:nt.toDecimal)==null?void 0:st.call(nt,dt,ut))??dt.toFixed(ut),Qe.type==="money"?X[we]=`<span style="color: red">${((Ct=(Ye=a.pubfn)==null?void 0:Ye.priceFilter)==null?void 0:Ct.call(Ye,dt))||"¥"+dt}${Qe.unit||""}</span>`:X[we]=`<span style="color: red">${dt}${Qe.unit||""}</span>`}}}),X},pe=async(b={})=>{const D=b.action||t.deleteAction,F=b.item||{},X=b.key||t.rowKey||"_id",ce=b.data||{[X]:F[X]},we=b.refresh!==!1;if(D){T.value=!0;try{const ve=await a.callFunction({url:D,data:ce,noAlert:!0});Ue.ElMessage.success(R.deleteSuccess),we?Te():(Ee({ids:[ce[X]]}),T.value=!1),typeof b.success=="function"&&b.success(ve),typeof b.complete=="function"&&b.complete(ve)}catch(ve){Ue.ElMessage.error(ve.msg||ve.message||"删除失败"),T.value=!1,typeof b.fail=="function"&&b.fail(ve),typeof b.complete=="function"&&b.complete(ve)}}},oe=(b,D)=>{const F=a.pubfn.copyObject(b);if(t.deleteAction)if(t.deleteConfirm!==!1){const X=typeof t.deleteConfirm=="object"&&t.deleteConfirm.title||"提示",ce=typeof t.deleteConfirm=="object"&&t.deleteConfirm.message||ge.value;Ue.ElMessageBox.confirm(ce,X,{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{pe({item:F,action:t.deleteAction,index:D})}).catch(()=>{})}else pe({item:F,action:t.deleteAction,index:D});s("delete",{item:F,index:D,row:b,deleteFn:pe})},Ee=(b={})=>{const D=b.ids||[],F=vt();t.data&&!a.pubfn.isNull(t.data)?D.forEach(X=>{const ce=a.pubfn.getListIndex(t.data,F,X);ce>-1&&t.data.splice(ce,1)}):D.forEach(X=>{const ce=a.pubfn.getListIndex(v.value,F,X);ce>-1&&v.value.splice(ce,1)}),typeof b.success=="function"&&b.success()},Me=(b={})=>{const D=b.rows||[],F=b.mode||"update",X=vt(),ce=t.data&&!a.pubfn.isNull(t.data)?t.data:v.value;D.forEach(we=>{const ve=a.pubfn.getListIndex(ce,X,we[X]);ve>-1&&(F==="set"?ce[ve]=we:ce[ve]=a.pubfn.objectAssign(ce[ve],we))}),typeof b.success=="function"&&b.success()},je=(b,D)=>{var ce;const F={...b,_index:D};let X=!1;(ce=t.rightBtns)==null||ce.forEach(we=>{(we==="detail_auto"||(we==null?void 0:we.mode)==="detail_auto")&&(X=!0)}),X&&mt(F),s("detail",{item:F,index:D,row:F,open:we=>{mt(a.pubfn.isNull(we)?F:we)}})},ht=(b,D)=>{const F=a.pubfn.copyObject(b);s("update",{item:F,row:b,index:D})},mt=b=>{u.value=b,C.value=!0},$e=()=>{C.value=!1,setTimeout(()=>{u.value=null},200)},Xe=async(b={})=>{var ce,we,ve;const D=window.ExcelJS;if(!D)throw new Error("Excel 导出功能需要先加载 ExcelJS 库");const F=b.fileName||"导出数据",X=b.title||"正在导出数据...";(ce=uni.showLoading)==null||ce.call(uni,{title:X,mask:!0});try{const Ke=b.pageSize===-1;let nt=[];if(Ke&&t.action){const xe=b.maxPageSize||500,lt=q.value,it=S(b);delete it[lt.getCount],delete it[lt.total],it[lt.pageSize]=xe,it[lt.pageIndex]=1;let jt;t.isRequest?jt=await new Promise((Xt,Zt)=>{a.request({url:t.action,method:t.requestMethod,data:it,header:t.header,timeout:t.timeout,success:Wt=>Xt(Wt),fail:Wt=>Zt(Wt)})}):jt=await a.callFunction({url:t.action,data:it,timeout:t.timeout}),nt=jt[lt.rows]||[]}else nt=[...v.value];const st=t.columns.filter(xe=>!["selection","expand","group"].includes(xe.type)),Ye=st.map(xe=>xe.title||xe.key),Ct=nt.map(xe=>st.map(lt=>{const it=xe[lt.key];return lt.type==="money"&&it!=null?`¥${Number(it).toFixed(2)}`:(lt.type==="time"||lt.type==="date"||lt.type==="datetime")&&it?a.pubfn.timeFormat(new Date(it),lt.valueFormat||"yyyy-MM-dd hh:mm:ss"):it??""})),Qe=new D.Workbook,ut=Qe.addWorksheet(F);ut.columns=st.map(xe=>({header:xe.title||xe.key,key:xe.key,width:(typeof xe.width=="number"?xe.width:parseInt(xe.width)||10)/6})),ut.addRow(Ye),Ct.forEach(xe=>ut.addRow(xe)),b.freezeHeader!==!1&&(ut.views=[{state:"frozen",xSplit:0,ySplit:1,topLeftCell:"A2",activeCell:"A2"}]),b.autoFilter!==!1&&Ye.length>0&&(ut.autoFilter={from:{row:1,column:1},to:{row:1,column:Ye.length}});const ft=ut.getRow(1);ft.font={bold:!0},ft.fill={type:"pattern",pattern:"solid"},ft.height=25;const dt=await Qe.xlsx.writeBuffer(),Lt=new Blob([dt],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),$t=URL.createObjectURL(Lt),Vt=document.createElement("a");Vt.href=$t,Vt.download=F.indexOf(".")>-1?F:`${F}.xlsx`,Vt.click(),URL.revokeObjectURL($t),(we=uni.hideLoading)==null||we.call(uni),Ue.ElMessage.success("导出成功")}catch(Ke){throw(ve=uni.hideLoading)==null||ve.call(uni),Ke}},He=({prop:b,order:D})=>{let F="";D==="ascending"&&(F="asc"),D==="descending"&&(F="desc"),F?(m.value=[{name:b,type:F}],t.secondarySortKey&&m.value.push({name:t.secondarySortKey,type:F})):m.value=[{name:"",type:"none"}],s("sort-change",{prop:b,order:D}),!(o.value&&!t.autoAction)&&le()},ot=b=>{w.value=b,s("current-change",b)},Ze=b=>{h.value=b,s("selection-change",[...b])},et=(b,D,F)=>{s("row-click",b,D,F)},Je=(b,D,F,X)=>{s("cell-click",b,D,F,X)},at=(b,D,F,X)=>{switch(F){case"detail_auto":je(D,X);break;case"detail":je(D,X);break;case"update":ht(D,X);break;case"delete":oe(D,X);break;default:b.onClick&&b.onClick(D,X)}},gt=(b,D)=>{const F=tt(D);typeof b.onClick=="function"&&b.onClick(D,F),s("custom-right-btns",D,b,F)},Nt=b=>{const D=We(!0),F=tt(D);typeof b.onClick=="function"&&b.onClick(D,F),s("right-btns-more",b,D,F)},bt=b=>{r.value=b,le(),s("pagination-change",{pageIndex:y.value,pageSize:b})},_t=b=>{y.value=b;const D={};b>1&&JSON.stringify(t.queryFormParam)===n.value&&(D.getCount=!1),Te(D),s("pagination-change",{pageIndex:b,pageSize:r.value})},pt=b=>({detail_auto:{title:R.detail,type:"default",icon:"Document"},detail:{title:R.detail,type:"default",icon:"Document"},update:{title:R.update,type:"primary",icon:"EditPen"},delete:{title:R.delete,type:"danger",icon:"Delete"},more:{title:R.more,type:"success",icon:"ArrowDown"}})[b]||{title:b,type:"default"},ct=(b,D=5.5,F=12)=>{if(!b||typeof b!="string")return 0;if(b.indexOf(`
4
+ `)>-1){let ce=0;return b.split(`
5
+ `).forEach(we=>{const ve=ct(we,D,F);ve>ce&&(ce=ve)}),ce}let X=0;for(let ce=0;ce<b.length;ce++){const we=b.charCodeAt(ce);X+=we>=32&&we<=126?D:F}return X},yt=b=>{const D=ct(b);return Math.max(D+40,60)},kt=b=>typeof b=="string"?{detail_auto:R.detail,detail:R.detail,update:R.update,delete:R.delete,more:R.more}[b]||b:b.title||"",Bt=b=>$.value.filter(D=>{const F=D.show!==void 0?D.show:D.mode?!0:void 0;return Ve(F,b,!0)}),Tt=b=>({详情:"Document",修改:"Edit",删除:"Delete"})[b]||null,St=b=>{var D;b&&((D=uni.previewFile)!=null&&D.call(uni,{url:b})||window.open(b))},W=(b,D)=>{let F=D.url||"";return typeof F=="function"?F(b):(typeof F=="string"&&Object.keys(b).forEach(X=>{F=F.replace(new RegExp(`\\{${X}\\}`,"g"),String(b[X]))}),F)},Z=({prop:b,order:D})=>{He({prop:b,order:D})},ie=(b,D)=>{s("expand-change",b,D)},_e=b=>typeof t.rowClassName=="function"?t.rowClassName(b):t.rowClassName||"",Be=b=>typeof t.rowStyle=="function"?t.rowStyle(b):t.rowStyle||{},Pe=b=>typeof t.cellClassName=="function"?t.cellClassName(b):t.cellClassName||"",Re=b=>typeof t.headerRowClassName=="function"?t.headerRowClassName(b):t.headerRowClassName||"",ke=b=>typeof t.headerRowStyle=="function"?t.headerRowStyle(b):t.headerRowStyle||{},ue=b=>typeof t.headerCellClassName=="function"?t.headerCellClassName(b):t.headerCellClassName||"",Fe=b=>se.value?se.value(b):t.summaryMethod?t.summaryMethod(b):l.value.length?l.value:[],Ge=(b,D,F)=>{t.load?t.load(b,D,F):F([])},We=(b=!1)=>b?w.value:a.pubfn.copyObject(w.value),wt=()=>h.value,rt=()=>v.value.map(b=>{const D={...b};return t.columns.forEach(F=>{D[`${F.key}_formatted`]=Se(b,F)}),D}),tt=b=>{const D=t.rowKey||"_id";for(const F in v.value)if(v.value[F][D]===b[D])return Number(F);return-1},vt=()=>{const b=t.rowKey;return typeof b=="function"?b():b||"_id"},Dt=()=>v.value,Ft=b=>{v.value=b},Et=b=>(y.value-1)*r.value+b+1,It=()=>w.value?!0:(Ue.ElMessage.warning(R.noItemSelected),!1),At=(b,D)=>{var F,X;return(X=(F=a.pubfn)==null?void 0:F.getData)==null?void 0:X.call(F,b,D)},Ut=()=>{if(t.pagination&&t.pageSize&&(r.value=t.pageSize),a.pubfn.isNotNull(t.defaultSort)&&(t.defaultSort.name||t.defaultSort.prop)){const b=t.defaultSort.name||t.defaultSort.prop;a.pubfn.getListIndex(t.columns,"key",b)===-1&&console.error(`万能表格:columns中未找到排序字段【${b}】请检查`)}if(t.autoAction)le();else if(t.data&&!a.pubfn.isNull(t.data)){let b=[...t.data];t.dataPreprocess&&(b=t.dataPreprocess(b)),v.value=b,N.value=t.total??b.length,t.showSummary&&U()}setTimeout(()=>{me(),G()},0),e.nextTick(()=>{s("table-mounted")})};e.watch(()=>t.action,b=>{b&&t.autoAction&&(y.value=1,le())}),e.watch(()=>t.data,b=>{if(b&&!a.pubfn.isNull(b)){let D=[...b];t.dataPreprocess&&(D=t.dataPreprocess(D)),v.value=D,N.value=t.total??b.length,t.showSummary&&U()}else v.value=[],N.value=0},{immediate:!0}),e.watch(()=>t.queryFormParam,()=>{t.searchedCleanSelection&&(h.value=[])},{deep:!0});const Mt=b=>a.getPinia("$app.isPC")??!0?b==="left"||b===!0?t.leftFixed!==!1?"left":!1:b==="right"?t.rightFixed!==!1?"right":!1:b:!1,qt=e.computed(()=>t.expand||t.defaultExpandAll?!1:v.value.length>500),Pt=e.computed(()=>{if(t.rowHeight)return t.rowHeight;const D=uni.getSystemInfoSync().windowWidth||1920,F=ne.value||"default";return D>=1600?F==="small"?40:F==="large"?56:50:F==="small"?40:F==="large"?52:44}),ye=e.computed(()=>{var D;if(m.value.length===0||((D=m.value[0])==null?void 0:D.type)==="none")return{key:"____",order:"asc"};const b=m.value[0];return{key:b.name,order:b.type==="asc"?"asc":"desc"}}),ze=({key:b,order:D})=>{He({prop:b,order:D==="asc"?"ascending":D==="desc"?"descending":""})},be={onClick:({rowData:b,rowIndex:D,event:F})=>{et(b,null,F)}},Oe=e.computed(()=>({rowData:b,rowIndex:D})=>{const F=[];t.stripe&&D%2===1&&F.push("vc-table-v2-row__striped");const X=_e({row:b,rowIndex:D});return X&&F.push(X),F.join(" ")}),Rt=e.computed(()=>{const b=[];if(t.selection&&b.push({key:"__selection__",dataKey:"__selection__",title:"",width:55,align:"center",fixed:!0,flexGrow:0,flexShrink:0,cellRenderer:({rowData:D,rowIndex:F})=>{const X=h.value.some(we=>we[t.rowKey]===D[t.rowKey]),ce=typeof t.selectable=="function"?t.selectable(D,F):!0;return e.h(i,{modelValue:X,disabled:!ce,"onUpdate:modelValue":we=>{we?h.value=[...h.value,D]:h.value=h.value.filter(ve=>ve[t.rowKey]!==D[t.rowKey]),Ze(h.value),s("select",[...h.value],D)}})},headerCellRenderer:()=>{const D=typeof t.selectable=="function"?v.value.filter((ce,we)=>t.selectable(ce,we)):v.value,F=D.length>0&&D.every(ce=>h.value.some(we=>we[t.rowKey]===ce[t.rowKey])),X=h.value.length>0&&!F;return e.h(i,{modelValue:F,indeterminate:X,"onUpdate:modelValue":ce=>{h.value=ce?[...D]:[],Ze(h.value),s("select-all",[...h.value])}})}}),t.rowNo&&b.push({key:"__rowNo__",dataKey:"__rowNo__",title:R.headerNo,width:100,align:"center",fixed:!0,flexGrow:0,flexShrink:0,cellRenderer:({rowIndex:D})=>e.h("span",{},String(Et(D)))}),B.value.forEach(D=>{const F=D.width||D.minWidth||120,X=!!D.width,ce=X?0:D.minWidth||120;b.push({key:D.key,dataKey:D.key,title:D.title,width:F,align:J(D),class:Ce(D),headerClass:"vc-table-v2-header-cell",fixed:Mt(D.fixed),sortable:D.sortable===!0,flexGrow:ce,flexShrink:X?0:1,minWidth:D.width?void 0:D.minWidth||120,cellRenderer:({rowData:we,rowIndex:ve})=>e.h(g,{data:we,item:D,size:ne.value,index:ve,onPreview:Ke=>St(Ke)})})}),z.value){const D=L.value,F=typeof D=="number"?D:parseInt(String(D))||200;b.push({key:"__action__",dataKey:"__action__",title:R.headerOperate,width:F,align:"center",headerClass:"vc-table-v2-header-cell",fixed:Mt("right"),flexGrow:0,flexShrink:0,cellRenderer:({rowData:X,rowIndex:ce})=>{const we=[];return(t.customRightBtns||[]).forEach(ve=>{Ve(ve.show,X,!0)&&we.push(e.h(c,{type:ve.type||"default",size:"small",disabled:ee(ve,X),class:"action-btns-item",onClick:Ke=>{Ke.stopPropagation(),gt(ve,X)}},{default:()=>ve.title}))}),t.rightBtnsType!=="dropdown"?Bt(X).forEach((ve,Ke)=>{const nt=typeof t.rightBtns[Ke]=="string"?t.rightBtns[Ke]:ve.title;ve.title!==R.more&&we.push(e.h(c,{type:ve.type||(ve.title===R.delete?"danger":"default"),size:"small",disabled:ee(ve,X),class:"action-btns-item",onClick:st=>{st.stopPropagation(),at(ve,X,nt,ce)}},{default:()=>ve.title}))}):$.value.forEach(ve=>{we.push(e.h(c,{type:ve.type||"default",size:"small",disabled:ee(ve,X),class:"action-btns-item",onClick:Ke=>{Ke.stopPropagation(),at(ve,X,ve.title,ce)}},{default:()=>ve.title}))}),e.h("div",{class:"action-btns",style:{display:"flex",alignItems:"center",justifyContent:ae.value}},we)}})}return b});return e.onMounted(()=>{Ut()}),{elTableRef:f,tableId:k,loading:T,tableData:v,total:N,currentPage:y,pageSizeRef:r,currentRow:w,multipleSelection:h,sortRule:m,detailVisible:C,detailData:u,summaryData:l,isFirst:o,firstCount:p,dbGetCount:_,dbHasMore:V,columnsCom:B,detailColumnsCom:P,expandColumnsCom:Q,hasActionColumn:z,actionBtns:$,rightFixedCom:x,actionColumnWidth:L,showMoreBtn:re,sizeCom:ne,defaultSortCom:de,pagerCountCom:he,totalCom:A,showTotalCom:M,paginationLayoutCom:O,headerCellStyleCom:K,summaryMethodCom:se,rightBtnsAlignCom:ae,emptyTextCom:fe,deleteTipsCom:ge,virtualCom:qt,rowHeightCom:Pt,virtualSortBy:ye,handleVirtualSortChange:ze,virtualRowEventHandlers:be,virtualRowClassCom:Oe,virtualColumnsCom:Rt,heightCom:I,language:R,formatCellValue:Se,getCellClass:Ce,_fixed:Ne,_trueFn:Ve,_disabledFn:ee,showOverflowTooltipFn:H,tableColumnAlignFilter:J,tableColumnHeaderAlignFilter:Y,getList:j,search:le,refresh:Te,query:Ae,reset:Le,calcSummary:U,deleteBtn:oe,deleteRows:Ee,updateRows:Me,doDelete:pe,deleteFn:pe,detailBtn:je,updateBtn:ht,showDetail:mt,closeDetail:$e,exportExcel:Xe,getCurrentRow:We,getSelectionRows:wt,getTableFormatterData:rt,getRowIndex:tt,getKeyName:vt,getTableData:Dt,setTableData:Ft,columnIndexMethod:Et,checkItem:It,getData:At,clearSelection:()=>{h.value=[]},toggleRowSelection:(b,D)=>{s("toggle-row-selection",{row:b,selected:D})},toggleAllSelection:()=>{s("toggle-all-selection")},setCurrentRow:b=>{w.value=b},initToolbarHeight:me,handleSortChange:He,handleCurrentChange:ot,handleSelectionChange:Ze,handleRowClick:et,handleCellClick:Je,handleActionClick:at,handleCustomRightBtns:gt,handleRightBtnsMoreCommand:Nt,handlePageChange:_t,handleSizeChange:bt,getBuiltInBtn:pt,visibleBtns:Bt,getBuiltInIcon:Tt,getUrl:W,previewFile:St,handleSortChangeProxy:Z,handleExpandChange:ie,handleRowClassName:_e,handleRowStyle:Be,handleCellClassName:Pe,handleHeaderRowClassName:Re,handleHeaderRowStyle:ke,handleHeaderCellClassName:ue,handleSummaryMethod:Fe,handleLazyLoad:Ge}},Q0=["id"],X0={class:"vc-table-wrapper"},Z0={class:"el-table__empty-text"},ei={class:"expand-content"},ti={class:"expand-label"},ni={class:"expand-value"},oi={key:2,class:"pagination-view"},ai={class:"detail-label"},ci=e.defineComponent({name:"vc-data-table",__name:"data-table",props:Y0,emits:J0,setup(t,{expose:s,emit:a}){const f=t,g=a,{elTableRef:i,tableId:c,loading:k,tableData:T,total:v,currentPage:N,pageSizeRef:y,currentRow:r,multipleSelection:m,detailVisible:h,detailData:w,isFirst:C,firstCount:u,dbGetCount:l,dbHasMore:d,columnsCom:o,detailColumnsCom:p,expandColumnsCom:E,hasActionColumn:n,actionBtns:_,rightFixedCom:V,actionColumnWidth:R,showMoreBtn:q,sizeCom:I,defaultSortCom:B,pagerCountCom:P,totalCom:Q,paginationLayoutCom:z,headerCellStyleCom:$,rightBtnsAlignCom:x,emptyTextCom:L,deleteTipsCom:re,virtualCom:ne,rowHeightCom:de,virtualSortBy:he,handleVirtualSortChange:A,virtualRowEventHandlers:M,virtualRowClassCom:O,virtualColumnsCom:K,heightCom:se,language:ae,getCellClass:fe,_fixed:ge,_trueFn:Se,_disabledFn:Ce,showOverflowTooltipFn:Ne,tableColumnAlignFilter:Ve,tableColumnHeaderAlignFilter:ee,getList:H,search:J,refresh:Y,query:me,reset:G,deleteBtn:S,deleteRows:j,updateRows:le,doDelete:Te,detailBtn:Ae,updateBtn:Le,showDetail:U,closeDetail:te,exportExcel:pe,getCurrentRow:oe,getSelectionRows:Ee,getTableFormatterData:Me,getRowIndex:je,getKeyName:ht,getTableData:mt,setTableData:$e,columnIndexMethod:Xe,checkItem:He,getData:ot,handleCurrentChange:Ze,handleSelectionChange:et,handleRowClick:Je,handleCellClick:at,handleActionClick:gt,handleCustomRightBtns:Nt,handleRightBtnsMoreCommand:bt,handlePageChange:_t,handleSizeChange:pt,visibleBtns:ct,getBuiltInIcon:yt,previewFile:kt,handleSortChangeProxy:Bt,handleExpandChange:Tt,handleRowClassName:St,handleRowStyle:W,handleCellClassName:Z,handleHeaderRowClassName:ie,handleHeaderRowStyle:_e,handleHeaderCellClassName:Be,handleSummaryMethod:Pe,handleLazyLoad:Re}=G0(f,g);return s({elTableRef:i,search:J,refresh:Y,loadData:H,query:me,reset:G,getCurrentRow:oe,getSelectionRows:Ee,getTableFormatterData:Me,getRowIndex:je,getKeyName:ht,getTableData:mt,setTableData:$e,getData:ot,clearSelection:()=>{var ke,ue;m.value=[],(ue=(ke=i.value)==null?void 0:ke.clearSelection)==null||ue.call(ke)},toggleRowSelection:(...ke)=>{var ue,Fe;(Fe=(ue=i.value)==null?void 0:ue.toggleRowSelection)==null||Fe.call(ue,...ke)},toggleAllSelection:()=>{var ke,ue;(ue=(ke=i.value)==null?void 0:ke.toggleAllSelection)==null||ue.call(ke)},toggleRowExpansion:(...ke)=>{var ue,Fe;(Fe=(ue=i.value)==null?void 0:ue.toggleRowExpansion)==null||Fe.call(ue,...ke)},setCurrentRow:ke=>{var ue,Fe;r.value=ke,(Fe=(ue=i.value)==null?void 0:ue.setCurrentRow)==null||Fe.call(ue,ke)},clearSort:()=>{var ke,ue;(ue=(ke=i.value)==null?void 0:ke.clearSort)==null||ue.call(ke)},clearFilter:ke=>{var ue,Fe;(Fe=(ue=i.value)==null?void 0:ue.clearFilter)==null||Fe.call(ue,ke)},doLayout:()=>{var ke,ue;(ue=(ke=i.value)==null?void 0:ke.doLayout)==null||ue.call(ke)},sort:(...ke)=>{var ue,Fe;(Fe=(ue=i.value)==null?void 0:ue.sort)==null||Fe.call(ue,...ke)},deleteBtn:S,deleteRows:j,updateRows:le,deleteFn:Te,detailBtn:Ae,updateBtn:Le,showDetail:U,closeDetail:te,exportExcel:pe,checkItem:He,columnIndexMethod:Xe,tableData:T,total:v,loading:k,isFirst:C,firstCount:u,dbGetCount:l,dbHasMore:d}),(ke,ue)=>{const Fe=e.resolveComponent("el-table-v2"),Ge=e.resolveComponent("el-auto-resizer"),We=e.resolveComponent("el-table-column"),wt=e.resolveComponent("vc-data-table-column-item"),rt=e.resolveComponent("el-button"),tt=e.resolveComponent("el-popconfirm"),vt=e.resolveComponent("ArrowDown"),Dt=e.resolveComponent("el-icon"),Ft=e.resolveComponent("el-dropdown-item"),Et=e.resolveComponent("el-dropdown-menu"),It=e.resolveComponent("el-dropdown"),At=e.resolveComponent("el-table"),Ut=e.resolveComponent("el-pagination"),Mt=e.resolveComponent("el-config-provider"),qt=e.resolveComponent("vc-data-dialog"),Pt=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("view",{id:e.unref(c),class:"vc-data-table",style:e.normalizeStyle({marginTop:ke.vc.pubfn.addUnit(ke.top)})},[e.withDirectives((e.openBlock(),e.createElementBlock("view",X0,[e.unref(ne)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"vc-data-table-virtual",style:e.normalizeStyle({height:`${e.unref(se)}px`})},[e.createVNode(Ge,null,{default:e.withCtx(({height:ye,width:ze})=>[e.createVNode(Fe,{columns:e.unref(K),data:e.unref(T),width:ze,height:ye,"row-height":e.unref(de),"row-key":ke.rowKey,"header-height":48,"sort-by":e.unref(he),"row-class":e.unref(O),"row-event-handlers":e.unref(M),onColumnSort:e.unref(A)},{empty:e.withCtx(()=>[e.createElementVNode("div",Z0,e.toDisplayString(e.unref(L)),1)]),_:1},8,["columns","data","width","height","row-height","row-key","sort-by","row-class","row-event-handlers","onColumnSort"])]),_:1})],4)):(e.openBlock(),e.createBlock(At,{key:1,ref_key:"elTableRef",ref:i,data:e.unref(T),stripe:f.stripe,border:f.border,size:e.unref(I)||f.size,"max-height":f.maxHeight,height:e.unref(se),"row-key":f.rowKey,"tree-props":f.treeProps,indent:f.indent,lazy:f.lazy,load:e.unref(Re),fit:f.fit,"show-header":f.showHeader,"highlight-current-row":f.highlightCurrentRow,"row-class-name":e.unref(St),"row-style":e.unref(W),"cell-class-name":e.unref(Z),"cell-style":f.cellStyle,"header-row-class-name":e.unref(ie),"header-row-style":e.unref(_e),"header-cell-class-name":e.unref(Be),"header-cell-style":e.unref($),"expand-row-keys":f.expandRowKeys,"default-expand-all":f.defaultExpandAll,"default-sort":e.unref(B),"select-on-indeterminate":f.selectOnIndeterminate,"span-method":f.spanMethod,"show-summary":f.showSummary,"sum-text":f.sumText,"summary-method":e.unref(Pe),"empty-text":e.unref(L),onSelectionChange:e.unref(et),onSelect:ue[2]||(ue[2]=(ye,ze)=>g("select",ye,ze)),onSelectAll:ue[3]||(ue[3]=ye=>g("select-all",ye)),onCurrentChange:e.unref(Ze),onRowClick:e.unref(Je),onRowDblclick:ue[4]||(ue[4]=(ye,ze,be)=>g("row-dblclick",ye,ze,be)),onRowContextmenu:ue[5]||(ue[5]=(ye,ze,be)=>g("row-contextmenu",ye,ze,be)),onCellClick:e.unref(at),onCellDblclick:ue[6]||(ue[6]=(ye,ze,be,Oe)=>g("cell-dblclick",ye,ze,be,Oe)),onCellMouseEnter:ue[7]||(ue[7]=(ye,ze,be,Oe)=>g("cell-mouse-enter",ye,ze,be,Oe)),onCellMouseLeave:ue[8]||(ue[8]=(ye,ze,be,Oe)=>g("cell-mouse-leave",ye,ze,be,Oe)),onSortChange:e.unref(Bt),onExpandChange:e.unref(Tt),onFilterChange:ue[9]||(ue[9]=ye=>g("filter-change",ye)),onHeaderClick:ue[10]||(ue[10]=(ye,ze)=>g("header-click",ye,ze)),onHeaderContextmenu:ue[11]||(ue[11]=(ye,ze)=>g("header-contextmenu",ye,ze)),onHeaderDragend:ue[12]||(ue[12]=(ye,ze,be,Oe)=>g("header-dragend",ye,ze,be,Oe))},{default:e.withCtx(()=>[f.selection?(e.openBlock(),e.createBlock(We,{key:0,type:"selection",width:"55",selectable:f.selectable,align:"center"},null,8,["selectable"])):e.createCommentVNode("",!0),f.expand?(e.openBlock(),e.createBlock(We,{key:1,type:"expand",fixed:e.unref(ge)("left"),label:"",width:"40",align:"center"},{default:e.withCtx(({row:ye})=>[e.renderSlot(ke.$slots,"expand",{row:ye},()=>[e.createElementVNode("div",ei,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(E),ze=>(e.openBlock(),e.createElementBlock("div",{key:ze.key,class:"expand-item"},[e.createElementVNode("span",ti,e.toDisplayString(ze.title)+":",1),e.createElementVNode("span",ni,[e.createVNode(wt,{data:ye,item:ze,size:e.unref(I),onPreview:e.unref(kt)},null,8,["data","item","size","onPreview"])])]))),128))])],!0)]),_:3},8,["fixed"])):e.createCommentVNode("",!0),f.rowNo?(e.openBlock(),e.createBlock(We,{key:2,type:"index",label:e.unref(ae).headerNo,width:100,align:"center",index:e.unref(Xe),fixed:!0},null,8,["label","index"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),ye=>(e.openBlock(),e.createBlock(We,{key:ye.key,prop:ye.key,label:ye.title,width:ye.width,"min-width":e.unref(R),sortable:ye.sortable,"show-overflow-tooltip":e.unref(Ne)(ye),align:e.unref(Ve)(ye),"header-align":e.unref(ee)(ye),fixed:e.unref(ge)(ye.fixed),"class-name":e.unref(fe)(ye)},{default:e.withCtx(({row:ze,$index:be})=>[ke.$slots[ye.key]?e.renderSlot(ke.$slots,ye.key,{row:ze,column:ye,value:ze[ye.key],index:be},void 0,!0,0):(e.openBlock(),e.createBlock(wt,{key:1,data:ze,item:ye,size:e.unref(I),index:be,onPreview:e.unref(kt)},null,8,["data","item","size","index","onPreview"]))]),_:2},1032,["prop","label","width","min-width","sortable","show-overflow-tooltip","align","header-align","fixed","class-name"]))),128)),e.unref(n)?(e.openBlock(),e.createBlock(We,{key:3,label:e.unref(ae).headerOperate,"min-width":e.unref(R),align:"center",fixed:e.unref(V)},{default:e.withCtx(({row:ye,$index:ze})=>[e.createElementVNode("view",{class:"action-btns",style:e.normalizeStyle({justifyContent:e.unref(x)})},[f.rightBtnsType!=="dropdown"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.customRightBtns||[],(be,Oe)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"a-"+Oe},[e.unref(Se)(be.show,ye,!0)?(e.openBlock(),e.createBlock(rt,{key:0,class:"action-btns-item",type:be.type!=="text"?be.type:"primary",text:be.type==="text",icon:be.icon,size:"small",disabled:e.unref(Ce)(be,ye),onClick:e.withModifiers(Rt=>e.unref(Nt)(be,ye),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.title),1)]),_:2},1032,["type","text","icon","disabled","onClick"])):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ct)(ye),(be,Oe)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"b-"+Oe},[be.title===e.unref(ae).delete?(e.openBlock(),e.createBlock(tt,{key:0,title:e.unref(re),placement:"bottom-end","confirm-button-text":"确定","cancel-button-text":"取消","icon-color":"#E6A23C",onConfirm:Rt=>e.unref(gt)(be,ye,typeof f.rightBtns[Oe]=="string"?f.rightBtns[Oe]:be.title,ze)},{reference:e.withCtx(()=>[e.createVNode(rt,{class:"action-btns-item",type:be.type!=="text"?be.type:"primary",text:be.type==="text",icon:be.icon||e.unref(yt)(typeof f.rightBtns[Oe]=="string"?f.rightBtns[Oe]:be.title),size:"small",disabled:e.unref(Ce)(be,ye),onClick:ue[0]||(ue[0]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.title),1)]),_:2},1032,["type","text","icon","disabled"])]),_:2},1032,["title","onConfirm"])):be.title!==e.unref(ae).more?(e.openBlock(),e.createBlock(rt,{key:1,class:"action-btns-item",type:be.type!=="text"?be.type:"primary",text:be.type==="text",icon:be.icon||e.unref(yt)(typeof f.rightBtns[Oe]=="string"?f.rightBtns[Oe]:be.title),size:"small",disabled:e.unref(Ce)(be,ye),onClick:Rt=>e.unref(gt)(be,ye,typeof f.rightBtns[Oe]=="string"?f.rightBtns[Oe]:be.title,ze)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.title),1)]),_:2},1032,["type","text","icon","disabled","onClick"])):e.createCommentVNode("",!0)],64))),128)),e.unref(q)?(e.openBlock(),e.createBlock(It,{key:0,class:"action-btns-item",trigger:"click",onCommand:ue[1]||(ue[1]=be=>e.unref(bt)(be))},{dropdown:e.withCtx(()=>[e.createVNode(Et,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.rightBtnsMore,(be,Oe)=>(e.openBlock(),e.createBlock(Ft,{key:Oe,command:be},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.title),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(rt,{type:"success",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(ae).more)+" ",1),e.createVNode(Dt,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(vt)]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(It,{key:1,trigger:"click",onCommand:be=>e.unref(gt)(be,ye,be.title,ze)},{dropdown:e.withCtx(()=>[e.createVNode(Et,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(be,Oe)=>(e.openBlock(),e.createBlock(Ft,{key:Oe,command:be,disabled:e.unref(Ce)(be,ye)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(be.title),1)]),_:2},1032,["command","disabled"]))),128))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(rt,{size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(ae).headerOperate)+" ",1),e.createVNode(Dt,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(vt)]),_:1})]),_:1})]),_:2},1032,["onCommand"]))],4)]),_:1},8,["label","min-width","fixed"])):e.createCommentVNode("",!0)]),_:3},8,["data","stripe","border","size","max-height","height","row-key","tree-props","indent","lazy","load","fit","show-header","highlight-current-row","row-class-name","row-style","cell-class-name","cell-style","header-row-class-name","header-row-style","header-cell-class-name","header-cell-style","expand-row-keys","default-expand-all","default-sort","select-on-indeterminate","span-method","show-summary","sum-text","summary-method","empty-text","onSelectionChange","onCurrentChange","onRowClick","onCellClick","onSortChange","onExpandChange"])),f.pagination?(e.openBlock(),e.createElementBlock("view",oi,[e.createVNode(Mt,{locale:e.unref(ae)},{default:e.withCtx(()=>[e.createVNode(Ut,{"current-page":e.unref(N),"onUpdate:currentPage":ue[13]||(ue[13]=ye=>e.isRef(N)?N.value=ye:null),"page-size":e.unref(y),"onUpdate:pageSize":ue[14]||(ue[14]=ye=>e.isRef(y)?y.value=ye:null),"page-sizes":f.pageSizes,total:e.unref(Q),"pager-count":e.unref(P),layout:e.unref(z),background:"",size:"default",onSizeChange:e.unref(pt),onCurrentChange:e.unref(_t)},null,8,["current-page","page-size","page-sizes","total","pager-count","layout","onSizeChange","onCurrentChange"])]),_:1},8,["locale"])])):e.createCommentVNode("",!0)])),[[Pt,e.unref(k)||f.loading]]),e.unref(h)?(e.openBlock(),e.createBlock(qt,{key:0,modelValue:e.unref(h),"onUpdate:modelValue":ue[15]||(ue[15]=ye=>e.isRef(h)?h.value=ye:null),title:e.unref(ae).detail,width:f.detailDialogWidth},{footer:e.withCtx(()=>[e.createVNode(rt,{type:"primary",size:"default",onClick:e.unref(te)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(ae).close),1)]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(At,{data:e.unref(p),border:"","show-header":!1},{default:e.withCtx(()=>[e.createVNode(We,{prop:"title",label:e.unref(ae).headerNo,width:"150"},{default:e.withCtx(({row:ye})=>[e.createElementVNode("text",ai,e.toDisplayString(ye.title),1)]),_:1},8,["label"]),e.createVNode(We,{prop:"key",label:"值"},{default:e.withCtx(({row:ye})=>[e.createVNode(wt,{data:e.unref(w),item:ye,onPreview:e.unref(kt)},null,8,["data","item","onPreview"])]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue","title","width"])):e.createCommentVNode("",!0)],12,Q0)}}}),ri=De(ci,[["__scopeId","data-v-2f927631"]]),di={data:{type:Object,default:()=>({})},item:{type:Object,default:()=>({})},index:{type:Number,default:void 0},size:{type:String,default:""}},li={preview:t=>!0},ii=(t,s)=>{const a=uni.vc||{},f=e.ref(!1),g=(o,p)=>{var E;return(E=a==null?void 0:a.pubfn)!=null&&E.getData?a.pubfn.getData(o,p):p.split(".").reduce((n,_)=>n==null?void 0:n[_],o)},i=(o,p,E)=>o.find(n=>n[p]===E),c=o=>{const p=o.imageWidth||"40px",E=typeof p=="object"?p[0]:p;return{width:typeof E=="number"?`${E}px`:E,height:typeof E=="number"?`${E}px`:E}},k=o=>{var E;if(typeof o!="string")return"******";const p=t.item.visibleRange||[0,0];return(E=a==null?void 0:a.pubfn)!=null&&E.hidden?a.pubfn.hidden(o,p[0],p[1]):"******"},T=(o,p)=>{let E="vc-contents";return(o==="bottom"&&p==="right"||o==="top"&&p==="left")&&(E=""),E},v=o=>typeof o.watch!="function",N=e.computed(()=>g(t.data,t.item.key)),y=e.computed(()=>{var p;const o=N.value;if(t.item.formatter){if(typeof t.item.formatter=="function")return t.item.formatter(o,t.data,t.item,t.index);if((p=a==null?void 0:a.pubfn)!=null&&p.formatter)return a.pubfn.formatter(o,t.data,t.item.formatter,t.item)}return w(o)}),r=e.computed(()=>{const o=N.value;if(t.item.data&&t.item.data.length>0){const p=i(t.item.data,t.item.dataKey||"value",o);return(p==null?void 0:p.label)||(p==null?void 0:p.name)||o}return o}),m=e.computed(()=>{const o=N.value;if(t.item.data&&t.item.data.length>0){const p=i(t.item.data,t.item.dataKey||"value",o);return(p==null?void 0:p.tagType)||(p==null?void 0:p.type)||""}return""}),h=e.computed(()=>{const o=N.value;return t.item.activeValue!==void 0&&t.item.inactiveValue!==void 0?o===t.item.activeValue:!!o}),w=o=>{var E,n,_,V,R;const p=t.item;if((o==null||o==="")&&p.defaultValue!==void 0&&(o=p.defaultValue),o==null)return p.placeholder||"";switch(p.type){case"money":return(E=a==null?void 0:a.pubfn)!=null&&E.priceFilter?a.pubfn.priceFilter(o,p.defaultValue):typeof o=="number"?`¥${o.toFixed(2)}`:`¥${o}`;case"number":{if(typeof o=="number"){const q=p.precision??0;return o.toFixed(q)}return String(o)}case"percentage":return(n=a==null?void 0:a.pubfn)!=null&&n.percentageFilter?a.pubfn.percentageFilter(o):`${o}%`;case"discount":return(_=a==null?void 0:a.pubfn)!=null&&_.discountFilter?a.pubfn.discountFilter(o):`${o}`;case"time":case"date":case"datetime":{if(!o)return"-";const q=p.valueFormat||"yyyy-MM-dd hh:mm:ss";return a.pubfn.timeFormat(new Date(o),q)}case"datetimerange":{if(!o||!Array.isArray(o))return"-";const[q,I]=o,B=p.valueFormat||"yyyy-MM-dd hh:mm:ss",P=q?a.pubfn.timeFormat(new Date(q),B):"-",Q=I?a.pubfn.timeFormat(new Date(I),B):"-";return`${P} ~ ${Q}`}case"dateDiff":return o?a.pubfn.dateDiff(o):"-";case"dateDiff2":{if(!o)return"-";const q=p.endText||"已结束";return a.pubfn.dateDiff2?a.pubfn.dateDiff2(o,q):a.pubfn.dateDiff(o)}case"avatar":case"image":case"switch":case"rate":case"icon":case"html":return o;case"tag":{if(o==null||o==="")return;if(p.data){const q=p.data.find(I=>I.value===o);return q?{label:q.label,tagType:q.tagType,effect:q.effect}:{label:String(o),tagType:p.tagType||"info"}}if(p.options){const q=p.options.find(I=>I.value===o);return q?{label:q.label,tagType:q.tagType,effect:q.effect}:{label:String(o),tagType:p.tagType||"info"}}return o}case"radio":case"select":{if(p.multiple&&Array.isArray(o))return C(o,p);if(p.options){const q=p.options.find(I=>I.value===o);return q?q.label:String(o)}if(p.data){const q=p.data.find(I=>I.value===o);return q?q.label:String(o)}return String(o)}case"checkbox":return C(o,p);case"array":return p.type==="array<string>"?u(o):Array.isArray(o)?o.join(", "):String(o);case"array<string>":return u(o);case"province":return(V=a==null?void 0:a.pubfn)!=null&&V.provinceFilter?a.pubfn.provinceFilter(o):String(o);case"address":return(R=a==null?void 0:a.pubfn)!=null&&R.addressFilter?a.pubfn.addressFilter(o):String(o);case"map":return g(t.data,p.key+".formatted_address")||"-";case"userInfo":return typeof o=="object"&&o!==null?o.nickname||o.username||o.mobile||JSON.stringify(o):String(o);case"color":return o;case"group":case"object":return"";case"table":return Array.isArray(o)&&o.length>0?`(${o.length}条)`:"-";case"json":if(o==null)return"";if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{return String(o)}default:return Array.isArray(o)?o.length===0?"":o:String(o)}},C=(o,p)=>{const E=Array.isArray(o)?o:[o],n=p.options||p.data||[];return E.map(_=>{const V=n.find(R=>R.value===_);return V?V.label:_}).join(", ")},u=(o,p)=>Array.isArray(o)?o.join(", "):String(o);return{showPassword:f,rawValue:N,formatterValue:y,tagValue:r,tagType:m,switchValue:h,getData:g,getListItem:i,imageStyleFn:c,passwordFn:k,buttonsClassFn:T,isDisabledSwitch:v,formatByType:w,checkboxFilter:C,arrayStringFilter:u,onSwitchChange:(o,p)=>{typeof p.watch=="function"&&p.watch({row:t.data,formData:t.data,value:o,column:p,index:t.index,change:E=>{const n=String(p.key).replace(/\s+/g,"").split(/[.[\]]/).filter(V=>V!=="");if(n.length===0)return;if(n.includes("__proto__"))throw new Error("禁止修改对象原型");let _=t.data;for(let V=0;V<n.length-1;V++){const R=n[V];(_[R]===null||typeof _[R]!="object")&&(_[R]=/^\d+$/.test(n[V+1])?[]:{}),_=_[R]}_[n[n.length-1]]=E!==void 0?E:o}})},onPreview:o=>{s("preview",o)}}},si={class:"vc-data-table-column-item"},ui={key:1,class:"vc-contents"},mi={class:"el-image__error"},pi={key:2,class:"block images-view"},fi={key:0,class:"block images-box images-view"},hi={key:3,class:"block images-view"},_i={key:4,class:"vc-contents"},yi={key:5,class:"vc-contents"},vi={key:6,class:"vc-contents"},gi={key:7,class:"vc-contents"},bi={key:8,class:"vc-contents"},ki={key:0},wi={key:1},Ci={key:9,class:"vc-contents"},Bi={class:"money-text"},Si={key:10,class:"vc-contents"},Vi={key:11,class:"vc-contents"},Ni={key:12,class:"vc-contents"},Ti={key:13,class:"vc-contents"},Ei={key:14,class:"vc-contents"},zi={key:15,class:"vc-contents"},Di={key:16,class:"vc-contents"},Fi={key:17,class:"vc-contents"},Ii={key:18,class:"vc-contents"},Ai={key:19,class:"vc-contents"},Mi={key:20,class:"vc-contents"},Pi={key:21,class:"vc-contents"},Ri={key:22,class:"vc-contents"},Li={key:23,class:"vc-contents"},$i={key:24,class:"vc-contents user-info-cell"},Oi={key:25,class:"vc-contents"},Ui={style:{"margin-left":"4px"}},qi={key:26,class:"vc-contents"},ji=["innerHTML"],Wi={key:28,class:"vc-contents"},Ki={key:29,class:"vc-contents"},Hi={key:30,class:"vc-contents"},xi={key:31,class:"vc-contents"},Yi={class:"vc-cell-text"},Ji=e.defineComponent({name:"vc-data-table-column-item",__name:"data-table-column-item",props:di,emits:li,setup(t,{emit:s}){const a=t,f=s,{showPassword:g,rawValue:i,formatterValue:c,switchValue:k,getListItem:T,imageStyleFn:v,passwordFn:N,buttonsClassFn:y,isDisabledSwitch:r,onSwitchChange:m,onPreview:h}=ii(a,f),w=u=>{var o;const l=a.item;if(!l.inputType)return u;const d=uni.vc;switch(l.inputType){case"money":return(o=d==null?void 0:d.pubfn)!=null&&o.priceFilter?d.pubfn.priceFilter(u):typeof u=="number"?`¥${u.toFixed(2)}`:`¥${u}`;case"percentage":return`${u}%`;case"discount":return`${u}`;default:return u}},C=(u,l)=>typeof l.url=="function"?l.url(u,l):l.url===!0?u[l.key]:l.url||u[l.key];return(u,l)=>{var q;const d=e.resolveComponent("vc-data-detail-buttons"),o=e.resolveComponent("vc-data-icon"),p=e.resolveComponent("el-image"),E=e.resolveComponent("el-rate"),n=e.resolveComponent("vc-data-input-switch"),_=e.resolveComponent("el-tag"),V=e.resolveComponent("vc-data-link"),R=e.resolveComponent("vc-data-detail");return e.openBlock(),e.createElementBlock("view",si,[u.item.buttons&&["left","top"].includes(u.item.buttonsPosition)?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(e.unref(y)(u.item.buttonsPosition,"left"))},[e.createVNode(d,{list:u.item.buttons,data:u.data,item:u.item,position:u.item.buttonsPosition,"show-type":"row"},null,8,["list","data","item","position"])],2)):e.createCommentVNode("",!0),u.item.type==="avatar"?(e.openBlock(),e.createElementBlock("view",ui,[e.createVNode(p,{class:e.normalizeClass(["images-avatar",u.item.shape]),style:e.normalizeStyle(e.unref(v)(u.item)),src:e.unref(c),lazy:u.item.lazy,fit:"cover","preview-src-list":u.item.preview!==!1&&e.unref(c)?[e.unref(c)]:[]},{error:e.withCtx(()=>[e.createElementVNode("view",mi,[e.createVNode(o,{name:"vc-icon-picfill"})])]),_:1},8,["class","style","src","lazy","preview-src-list"])])):u.item.type==="image"?(e.openBlock(),e.createElementBlock("view",pi,[Array.isArray(e.unref(i))?(e.openBlock(),e.createElementBlock("view",fi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(I,B)=>(e.openBlock(),e.createBlock(p,{key:B,class:"images-item",style:e.normalizeStyle(e.unref(v)(u.item)),src:I,lazy:u.item.lazy,fit:"contain","preview-src-list":u.item.preview!==!1?e.unref(i):[]},null,8,["style","src","lazy","preview-src-list"]))),128))])):(e.openBlock(),e.createBlock(p,{key:1,class:"images-item",style:e.normalizeStyle(e.unref(v)(u.item)),src:e.unref(c),lazy:u.item.lazy,fit:"contain","preview-src-list":u.item.preview!==!1&&e.unref(c)?[e.unref(c)]:[]},null,8,["style","src","lazy","preview-src-list"]))])):u.item.type==="file"?(e.openBlock(),e.createElementBlock("view",hi,[e.unref(c)?(e.openBlock(),e.createBlock(o,{key:0,style:{color:"#66b1ff",cursor:"pointer"},name:"el-icon-download",size:20,onClick:l[0]||(l[0]=I=>e.unref(h)(e.unref(c)))})):e.createCommentVNode("",!0)])):u.item.type==="rate"?(e.openBlock(),e.createElementBlock("view",_i,[e.createVNode(E,{"model-value":e.unref(i),disabled:"","show-score":"","text-color":"#ff9900","score-template":"{value}"},null,8,["model-value"])])):u.item.type==="switch"?(e.openBlock(),e.createElementBlock("view",yi,[e.createVNode(n,{"model-value":e.unref(k),disabled:e.unref(r)(u.item),inlinePrompt:u.item.inlinePrompt,switchType:u.item.switchType,activeText:u.item.activeText,inactiveText:u.item.inactiveText,activeValue:u.item.activeValue,inactiveValue:u.item.inactiveValue,activeColor:u.item.activeColor,inactiveColor:u.item.inactiveColor,onChange:l[1]||(l[1]=I=>e.unref(m)(I,u.item))},null,8,["model-value","disabled","inlinePrompt","switchType","activeText","inactiveText","activeValue","inactiveValue","activeColor","inactiveColor"])])):u.item.type==="icon"?(e.openBlock(),e.createElementBlock("view",vi,[u.item.data&&u.item.data.length>0?(e.openBlock(),e.createBlock(o,{key:0,name:((q=e.unref(T)(u.item.data,"value",e.unref(i)))==null?void 0:q.icon)||e.unref(i),size:u.item.iconSize||16},null,8,["name","size"])):(e.openBlock(),e.createBlock(o,{key:1,name:e.unref(c),size:u.item.iconSize||16},null,8,["name","size"]))])):u.item.type==="tag"?(e.openBlock(),e.createElementBlock("view",gi,[e.unref(c)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Array.isArray(e.unref(c))?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c),(I,B)=>(e.openBlock(),e.createBlock(_,{key:B,class:"vc-table-tag",effect:u.item.effect||"light",type:u.item.tagType||"success",size:u.item.size||"default","disable-transitions":!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["effect","type","size"]))),128)):typeof e.unref(c)=="object"?(e.openBlock(),e.createBlock(_,{key:1,class:"vc-table-tag",effect:e.unref(c).effect||u.item.effect||"dark",type:u.item.tagType||e.unref(c).tagType||"success",size:u.item.size||"default","disable-transitions":!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w(e.unref(c).label)),1)]),_:1},8,["effect","type","size"])):(e.openBlock(),e.createBlock(_,{key:2,class:"vc-table-tag",effect:u.item.effect||"dark",type:u.item.tagType||"success",size:u.item.size||"default","disable-transitions":!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)]),_:1},8,["effect","type","size"]))],64)):e.createCommentVNode("",!0)])):u.item.type==="password"?(e.openBlock(),e.createElementBlock("view",bi,[e.unref(g)?(e.openBlock(),e.createElementBlock("text",wi,e.toDisplayString(e.unref(i)),1)):(e.openBlock(),e.createElementBlock("text",ki,e.toDisplayString(e.unref(N)(e.unref(i))),1)),e.createVNode(o,{name:e.unref(g)?"el-icon-view":"el-icon-hide",size:14,style:{cursor:"pointer","margin-left":"4px"},onClick:l[2]||(l[2]=I=>g.value=!e.unref(g))},null,8,["name"])])):u.item.type==="money"?(e.openBlock(),e.createElementBlock("view",Ci,[e.createElementVNode("span",Bi,e.toDisplayString(e.unref(c)),1)])):u.item.type==="number"?(e.openBlock(),e.createElementBlock("view",Si,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="percentage"?(e.openBlock(),e.createElementBlock("view",Vi,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="discount"?(e.openBlock(),e.createElementBlock("view",Ni,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="time"||u.item.type==="date"||u.item.type==="datetime"?(e.openBlock(),e.createElementBlock("view",Ti,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="datetimerange"?(e.openBlock(),e.createElementBlock("view",Ei,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="dateDiff"?(e.openBlock(),e.createElementBlock("view",zi,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="dateDiff2"?(e.openBlock(),e.createElementBlock("view",Di,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="radio"?(e.openBlock(),e.createElementBlock("view",Fi,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="select"?(e.openBlock(),e.createElementBlock("view",Ii,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="checkbox"?(e.openBlock(),e.createElementBlock("view",Ai,[e.createVNode(_,{size:"large",type:"info",effect:"dark"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)]),_:1})])):u.item.type==="array"||u.item.type==="array<string>"?(e.openBlock(),e.createElementBlock("view",Mi,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="province"?(e.openBlock(),e.createElementBlock("view",Pi,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="address"?(e.openBlock(),e.createElementBlock("view",Ri,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="map"?(e.openBlock(),e.createElementBlock("view",Li,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="userInfo"?(e.openBlock(),e.createElementBlock("view",$i,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="color"?(e.openBlock(),e.createElementBlock("view",Oi,[e.createElementVNode("view",{class:"color-block",style:e.normalizeStyle({backgroundColor:e.unref(i)})},null,4),e.createElementVNode("span",Ui,e.toDisplayString(e.unref(i)),1)])):u.item.type==="url"||u.item.url?(e.openBlock(),e.createElementBlock("view",qi,[e.createVNode(V,{href:C(u.data,u.item),text:e.unref(c)},null,8,["href","text"])])):u.item.type==="html"?(e.openBlock(),e.createElementBlock("view",{key:27,class:"vc-contents",innerHTML:e.unref(c)},null,8,ji)):u.item.type==="group"||u.item.type==="object"?(e.openBlock(),e.createElementBlock("view",Wi,[u.item.columns?(e.openBlock(),e.createBlock(R,{key:0,data:u.item.type==="object"?e.unref(i):u.data,columns:u.item.columns,"label-width":u.item.labelWidth||"80px"},null,8,["data","columns","label-width"])):e.createCommentVNode("",!0)])):u.item.type==="table"?(e.openBlock(),e.createElementBlock("view",Ki,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)),1)])):u.item.type==="custom"?(e.openBlock(),e.createElementBlock("view",Hi,[u.item.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.item.component),{key:0,column:u.item,value:e.unref(i),data:u.data,index:u.index,scene:"table"},null,8,["column","value","data","index"])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("view",xi,[e.createElementVNode("span",Yi,e.toDisplayString(e.unref(c)),1)])),u.item.buttons&&["right","bottom"].includes(u.item.buttonsPosition)?(e.openBlock(),e.createElementBlock("view",{key:32,class:e.normalizeClass(e.unref(y)(u.item.buttonsPosition,"right"))},[e.createVNode(d,{list:u.item.buttons,data:u.data,item:u.item,position:u.item.buttonsPosition,"show-type":"row"},null,8,["list","data","item","position"])],2)):e.createCommentVNode("",!0)])}}}),Gi=De(Ji,[["__scopeId","data-v-1b59f26c"]]),Qi=[zt,cn,fn,vn,Vn,Dn,Mn,Hn,ao,zo,$o,Yo,na,ra,ma,va,Ea,Pa,Xa,rc,wc,ur,Sr,Fr,$r,xr,ed,dd,fd,gd,Bd,Id,Kd,Qd,cl,hl,c0,h0,S0,x0,ri,Gi],Xi=t=>{Qi.forEach(s=>{s.name&&t.component(s.name,s)});for(const[s,a]of Object.entries(zt))t.component(s,a)},Zi={install:Xi,version:"1.0.0"};module.exports=Zi;