import{u as h,_ as B}from"./use-page-search.665e4825.js";import{u as F,_ as g}from"./use-page-modal.4a26f3da.js";import{P as y}from"./page-content.c90a59ec.js";import{aG as k,aH as E,aX as b,_ as A,q as v,r as w,o as P,n as x,t as o,H as R,p as D,v as e}from"./index.d8ce26ef.js";import{u as N}from"./use-permission.314b29b7.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./use-response-handle.e6cae34f.js";const I={formItems:[{field:"company",type:"input",placeholder:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0"},{field:"contactor",type:"input",placeholder:"\u8054\u7CFB\u4EBA"}]},{VITE_PROXY_DOMAIN_REAL:te,VITE_PROXY_USER_REAL:M}=E(),S=M+"/admin/",Y=t=>k.request("post",`${S}customerlist`,{data:t}),W=[{type:"selection",width:55,hide:({checkList:t})=>!t.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:t})=>!t.includes("\u5E8F\u53F7\u5217")},{label:"\u5BA2\u6237\u7F16\u53F7",prop:"companyNo"},{label:"\u5BA2\u6237\u540D\u79F0",prop:"companyName"},{label:"\u5F52\u5C5E\u96C6\u56E2",prop:"parent"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({addtime:t})=>b(t).format("YYYY-MM-DD HH:mm:ss")}],i={title:"\u4F01\u4E1A\u5BA2\u6237",powers:["001","002","003","004","005","006","007","008"],columns:W,apis:{httpList:Y}},H={title:"\u5BA2\u6237",itemStyle:{},formItems:[{field:"companyNo",type:"input",label:"\u5BA2\u6237\u7F16\u53F7",labelWidth:"120px"},{field:"companyName",type:"input",labelWidth:"120px",label:"\u5BA2\u6237\u540D\u79F0"},{field:"parent",type:"input",labelWidth:"120px",label:"\u5F52\u5C5E\u96C6\u56E2"},{field:"contactor",type:"input",labelWidth:"120px",label:"\u8054\u7CFB\u4EBA"},{field:"createTime",type:"input",labelWidth:"120px",label:"\u521B\u5EFA\u65F6\u95F4"}]};const T={class:"main role"},U={"w-full":""},V={name:"invoiceheader"},L=v({...V,setup(t){const{pageContentRef:n,handleResetClick:l,handleSearchClick:u}=h(),{pageModalRef:c,handleUpdateData:r,handleCreateData:s,handlePreviewData:p,handleConfrim:d,defaultInfo:m}=F({pageContentRef:n}),{permission:f,contentConfigRef:_}=N({pageName:"clients",contentConfig:i,callback:a=>i.powers=a});return(a,O)=>{const C=w("PagePower");return P(),x("div",T,[o(C,{"is-show":e(f).list},{default:R(()=>[D("div",U,[o(e(B),{"form-config":e(I),onSearchBtnClick:e(u),onResetBtnClick:e(l)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(e(y),{ref_key:"pageContentRef",ref:n,"content-config":e(_),onCreateBtnClick:e(s),onUpdateBtnClick:e(r),onPreviewBtnClick:e(p)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"])])]),_:1},8,["is-show"]),o(e(g),{ref_key:"pageModalRef",ref:c,"prview-description":"","modal-config":e(H),"default-info":e(m),onConfirmBtnClick:e(d)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var oe=A(L,[["__scopeId","data-v-7fccd37c"]]);export{oe as default};
