import{u as B,_ as E}from"./use-page-search.665e4825.js";import{u as g,_ as v}from"./use-page-modal.4a26f3da.js";import{P as A}from"./page-content.c90a59ec.js";import{aG as o,aH as b,aX as D,bK as k,_ as w,q as y,r as x,o as P,n as R,t as i,H as q,p as I,v as u}from"./index.d8ce26ef.js";import{u as M}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 N={formItems:[{field:"invoice_title",type:"input",placeholder:"\u53D1\u7968\u62AC\u5934\u540D\u79F0"},{field:"invoice_code",type:"input",placeholder:"\u53D1\u7968\u7F16\u53F7"}]},{VITE_PROXY_DOMAIN_REAL:ne,VITE_PROXY_USER_REAL:S}=b(),n=S+"/admin/",W=e=>o.request("post",`${n}involist`,{data:e}),Y=e=>o.request("post",`${n}invoicedel`,{data:e}),$=e=>o.request("post",`${n}invoiceadd`,{data:e}),L=e=>o.request("post",`${n}invoicesave`,{data:e}),U=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"invoice_title",width:100},{label:"\u4F01\u4E1A\u6CD5\u4EBA",prop:"invoice_people",width:100},{label:"\u4F01\u4E1A\u6CE8\u518C\u5730\u5740",prop:"invoice_addr",width:120},{label:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",prop:"invoice_mobile",width:120},{label:"\u4F01\u4E1A\u7EB3\u7A0E\u8BC6\u522B\u53F7",prop:"invoice_code",width:140},{label:"\u5BF9\u516C\u94F6\u884C",prop:"invoice_bank",width:120},{label:"\u5BF9\u516C\u94F6\u884C\u8D26\u6237",prop:"invoice_bankNo",width:120},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",formatter:({addtime:e})=>D(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],l={title:"\u4F01\u4E1A\u5BA2\u6237\u53D1\u7968",powers:["001","002","003","004","005","006","007","008"],columns:U,apis:{httpList:W,httpAdd:$,httpDelete:Y,httpUpdate:L}},H={title:"\u4F01\u4E1A\u5BA2\u6237\u53D1\u7968",colLayout:{span:24},itemStyle:{},contact:"invoice_mobile",formItems:[{field:"invoice_title",type:"input",label:"\u53D1\u7968\u62AC\u5934\u540D\u79F0",labelWidth:"120px",placeholder:"\u53D1\u7968\u62AC\u5934\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u53D1\u7968\u62AC\u5934\u540D\u79F0"}]},{field:"invoice_addr",type:"input",labelWidth:"120px",label:"\u4F01\u4E1A\u6CE8\u518C\u5730\u5740",placeholder:"\u4F01\u4E1A\u6CE8\u518C\u5730\u5740",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u6CE8\u518C\u5730\u5740"}]},{field:"invoice_code",type:"input",labelWidth:"120px",label:"\u7EB3\u7A0E\u8BC6\u522B\u53F7",placeholder:"\u7EB3\u7A0E\u8BC6\u522B\u53F7",rules:[{validator(e,t){return k(t)},required:!0,message:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7\u683C\u5F0F\u4E0D\u6B63\u786E"}]},{field:"invoice_bank",type:"input",labelWidth:"120px",label:"\u4F01\u4E1A\u5F00\u6237\u94F6\u884C",placeholder:"\u4F01\u4E1A\u5F00\u6237\u94F6\u884C",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u5F00\u6237\u94F6\u884C"}]},{field:"invoice_bankNo",type:"input",labelWidth:"120px",label:"\u94F6\u884C\u8D26\u6237",placeholder:"\u94F6\u884C\u8D26\u6237",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u6237"}]},{field:"invoice_mobile",type:"contact",label:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",labelWidth:"120px",placeholder:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F"}]}]};const V={class:"main role"},O={"w-full":""},T={name:"invoiceheader"},X=y({...T,setup(e){const{pageContentRef:t,handleResetClick:r,handleSearchClick:s}=B(),{pageModalRef:c,handleUpdateData:d,handleCreateData:p,handlePreviewData:F,handleConfrim:C,defaultInfo:_}=g({pageContentRef:t}),{permission:m,contentConfigRef:f}=M({pageName:"invoiceheader",contentConfig:l,callback:a=>l.powers=a});return(a,j)=>{const h=x("PagePower");return P(),R("div",V,[i(h,{"is-show":u(m).list},{default:q(()=>[I("div",O,[i(u(E),{"form-config":u(N),onSearchBtnClick:u(s),onResetBtnClick:u(r)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(u(A),{ref_key:"pageContentRef",ref:t,"content-config":u(f),onCreateBtnClick:u(p),onUpdateBtnClick:u(d),onPreviewBtnClick:u(F)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"])])]),_:1},8,["is-show"]),i(u(v),{ref_key:"pageModalRef",ref:c,"modal-config":u(H),"default-info":u(_),onConfirmBtnClick:u(C)},null,8,["modal-config","default-info","onConfirmBtnClick"])])}}});var ae=w(X,[["__scopeId","data-v-20990d6d"]]);export{ae as default};
