import{u as d,_ as f}from"./use-page-search.43bc5391.js";import{u as m,_}from"./use-page-modal.b5ebad31.js";import{P as C}from"./page-content.ac155fae.js";import{aK as h,aL as B,aM as F,_ as y,q as E,o as g,n as k,t as n,v as e}from"./index.7a111e62.js";import"./hooks.f4063c52.js";import"./index.3ac3c8f0.js";import"./responseHandle.6edfaed2.js";import"./use-response-handle.f995d678.js";const b={formItems:[{field:"company",type:"input",placeholder:"\u5BA2\u6237\u516C\u53F8\u540D\u79F0"},{field:"contactor",type:"input",placeholder:"\u8054\u7CFB\u4EBA"}]},{VITE_PROXY_DOMAIN_REAL:q,VITE_PROXY_USER_REAL:A}=B(),v=A+"/admin/",x=t=>h.request("post",`${v}customerlist`,{data:t}),R=[{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:"\u8054\u7CFB\u4EBA",prop:"contactor"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({createTime:t})=>F(t).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],D={title:"\u4F01\u4E1A\u5BA2\u6237",columns:R,apis:{httpList:x}},P={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 w={class:"main role"},I={name:"invoiceheader"},M=E({...I,setup(t){const{pageContentRef:a,handleResetClick:o,handleSearchClick:l}=d(),{pageModalRef:u,handleUpdateData:i,handleCreateData:c,handlePreviewData:r,handleConfrim:p,defaultInfo:s}=m({pageContentRef:a});return(N,S)=>(g(),k("div",w,[n(e(f),{"form-config":e(b),onSearchBtnClick:e(l),onResetBtnClick:e(o)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),n(e(C),{ref_key:"pageContentRef",ref:a,"content-config":e(D),onCreateBtnClick:e(c),onUpdateBtnClick:e(i),onPreviewBtnClick:e(r)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"]),n(e(_),{ref_key:"pageModalRef",ref:u,"prview-description":"","modal-config":e(P),"default-info":e(s),onConfirmBtnClick:e(p)},null,8,["modal-config","default-info","onConfirmBtnClick"])]))}});var H=y(M,[["__scopeId","data-v-c0e0d148"]]);export{H as default};
