import{u as s,_ as F}from"./use-page-search.f38b29a1.js";import{u as C,_ as h}from"./use-page-modal.046367d9.js";import{P as f}from"./page-content.6b548a2d.js";import{h as m,a as _,b as g,c as B}from"./index.09459d5d.js";import{aN as b,_ as E,q as A,o as D,n as v,t,v as e}from"./index.10c3f8e5.js";import"./hooks.5f77ce90.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./use-response-handle.23bba72b.js";const k={formItems:[{field:"invoice_title",type:"input",placeholder:"\u53D1\u7968\u62AC\u5934\u540D\u79F0"},{field:"invoice_code",type:"input",placeholder:"\u53D1\u7968\u7F16\u53F7"}]},y=[{type:"selection",width:55,hide:({checkList:u})=>!u.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:u})=>!u.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:({createTime:u})=>b(u).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],w={title:"\u4E1A\u52A1\u516C\u53F8\u53D1\u7968",powers:["001","002","003","004","005","006","007","008"],columns:y,apis:{httpList:m,httpAdd:_,httpDelete:g,httpUpdate:B}},x={title:"\u4E1A\u52A1\u516C\u53F8\u53D1\u7968",colLayout:{span:24},itemStyle:{},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_mobile",type:"input",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"}]},{field:"invoice_people",type:"input",labelWidth:"120px",label:"\u6CD5\u4EBA",placeholder:"\u6CD5\u4EBA",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u6CD5\u4EBA"}]},{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:"\u53D1\u7968\u7F16\u53F7",placeholder:"\u53D1\u7968\u7F16\u53F7",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u53D1\u7968\u7F16\u53F7"}]},{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"}]}]};const q={class:"main role"},P={name:"invoiceheader"},R=A({...P,setup(u){const{pageContentRef:i,handleResetClick:l,handleSearchClick:a}=s(),{pageModalRef:o,handleUpdateData:n,handleCreateData:r,handlePreviewData:c,handleConfrim:p,defaultInfo:d}=C({pageContentRef:i});return(W,M)=>(D(),v("div",q,[t(e(F),{"form-config":e(k),onSearchBtnClick:e(a),onResetBtnClick:e(l)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),t(e(f),{ref_key:"pageContentRef",ref:i,"content-config":e(w),onCreateBtnClick:e(r),onUpdateBtnClick:e(n),onPreviewBtnClick:e(c)},null,8,["content-config","onCreateBtnClick","onUpdateBtnClick","onPreviewBtnClick"]),t(e(h),{ref_key:"pageModalRef",ref:o,"modal-config":e(x),"default-info":e(d),onConfirmBtnClick:e(p)},null,8,["modal-config","default-info","onConfirmBtnClick"])]))}});var T=E(R,[["__scopeId","data-v-bc5585ca"]]);export{T as default};
