index.292c4c27.js 2.9 KB

1
  1. import{u as C,_ as h}from"./use-page-search.bec6fb0d.js";import{u as B,_ as F}from"./use-page-modal.f2dcb7cf.js";import{P as y}from"./page-content.b704528a.js";import{ar as g,as as k,aI as E,_ as b,e as A,o as v,c as w,h as o,A as x,a as R,j as e,bp as P}from"./index.e7c72e95.js";import{u as D}from"./use-permission.13411f65.js";import"./basic-form.82727b1d.js";import"./global.9ad647c8.js";import"./hooks.93e407ab.js";import"./index.e6c308d2.js";import"./responseHandle.c92eeb9c.js";import"./use-response-handle.0e27bb38.js";import"./export.c7be1f75.js";import"./xlsx.ed122d16.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:oe,VITE_PROXY_USER_REAL:N}=k(),M=N+"/admin/",S=t=>g.request("post",`${M}customerlist`,{data:t}),Y=[{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})=>E(t).format("YYYY-MM-DD HH:mm:ss")}],i={title:"\u4F01\u4E1A\u5BA2\u6237",powers:["001","002","003","004","005","006","007","008"],columns:Y,apis:{httpList:S}},W={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"},$=A({...V,setup(t){const{pageContentRef:a,handleResetClick:l,handleSearchClick:u}=C(),{pageModalRef:c,handleUpdateData:s,handleCreateData:r,handlePreviewData:p,handleConfrim:d,defaultInfo:m}=B({pageContentRef:a}),{permission:f,contentConfigRef:_}=D({pageName:"clients",contentConfig:i,callback:n=>i.powers=n});return(n,L)=>(v(),w("div",T,[o(P,{"is-show":e(f).list},{default:x(()=>[R("div",U,[o(e(h),{"form-config":e(I),onSearchBtnClick:e(u),onResetBtnClick:e(l)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(e(y),{ref_key:"pageContentRef",ref:a,"content-config":e(_),onCreateBtnClick:e(r),onUpdateBtnClick:e(s),onPreviewBtnClick:e(p)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"])])]),_:1},8,["is-show"]),o(e(F),{ref_key:"pageModalRef",ref:c,"prview-description":"","modal-config":e(W),"default-info":e(m),onConfirmBtnClick:e(d)},null,8,["modal-config","default-info","onConfirmBtnClick"])]))}});var ae=b($,[["__scopeId","data-v-c46e3bca"]]);export{ae as default};