index.a750f133.js 2.9 KB

1
  1. import{u as h,_ as B}from"./use-page-search.9647d4d5.js";import{u as F,_ as g}from"./use-page-modal.7c5ebbaa.js";import{P as y}from"./page-content.54e2b0f8.js";import{ar as k,as as E,aI as A,_ as b,e as w,r as v,o as P,c as x,h as o,A as R,a as D,j as e}from"./index.6ca3d92f.js";import{u as I}from"./use-permission.553ce1e5.js";import"./basic-form.c35703da.js";import"./global.9ad647c8.js";import"./hooks.ed4e148f.js";import"./index.d8c3f5e6.js";import"./responseHandle.256387af.js";import"./use-response-handle.a7e28e5a.js";const N={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})=>A(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}},T={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 U={class:"main role"},V={"w-full":""},L={name:"invoiceheader"},O=w({...L,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:_}=I({pageName:"clients",contentConfig:i,callback:a=>i.powers=a});return(a,$)=>{const C=v("PagePower");return P(),x("div",U,[o(C,{"is-show":e(f).list},{default:R(()=>[D("div",V,[o(e(B),{"form-config":e(N),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(T),"default-info":e(m),onConfirmBtnClick:e(d)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var oe=b(O,[["__scopeId","data-v-7fccd37c"]]);export{oe as default};