import{aT as t,ac as p,bz as d,_ as F,d as h,r as n,o as C,G as E,C as g,j as m,l as i}from"./index.js";import{u as _}from"./use-page-search.f7bc460e.js";import{u as B}from"./use-page-modal.5cf2c59f.js";const{VITE_PROXY_DOMAIN_REAL:W,VITE_PROXY_USER_REAL:A}=p(),o=A+"/admin/",b=u=>t.request("post",`${o}involist`,{data:u}),f=u=>t.request("post",`${o}invoiceadd`,{data:u}),v=u=>t.request("post",`${o}invoicesave`,{data:u}),D=[{type:"selection",width:40,align:"center",hide:({checkList:u})=>!u.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:u})=>!u.includes("\u5E8F\u53F7\u5217")},{label:"\u4F01\u4E1A\u7EB3\u7A0E\u8BC6\u522B\u53F7",prop:"invoice_code",width:150},{label:"\u53D1\u7968\u62AC\u5934",prop:"invoice_title",width:160},{label:"\u5BF9\u516C\u94F6\u884C",prop:"invoice_bank","min-width":120},{label:"\u5BF9\u516C\u94F6\u884C\u8D26\u6237",prop:"invoice_bankNo","min-width":120},{label:"\u4F01\u4E1A\u6CE8\u518C\u5730\u5740",prop:"invoice_addr","min-width":120},{label:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",prop:"invoice_mobile","min-width":120},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",width:70},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:145},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],x={title:"\u4F01\u4E1A\u5BA2\u6237\u53D1\u7968",columns:D,apis:{httpList:b,httpAdd:f,httpUpdate:v}},l={formItems:[{field:"invoice_title",type:"input",placeholder:"\u53D1\u7968\u62AC\u5934\u540D\u79F0"},{field:"invoice_code",type:"input",placeholder:"\u7EB3\u7A0E\u8BC6\u522B\u53F7"}]},w={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_code",type:"input",labelWidth:"120px",label:"\u7EB3\u7A0E\u8BC6\u522B\u53F7",placeholder:"\u7EB3\u7A0E\u8BC6\u522B\u53F7",rules:[{validator(u,e){return d(e)},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_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_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"}]}]},y=h({__name:"index",setup(u){const e="invoiceheader",r={pageSearchHook:()=>_(void 0,void 0,l),pageModalHook:a=>B({pageContentRef:a})};return(a,k)=>{const c=n("PageContainer"),s=n("PageAuth");return C(),E(s,{pageName:e},{default:g(()=>[m(c,{hooks:r,contentConfig:i(x),"search-config":i(l),"modal-config":i(w)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var I=F(y,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/parameter/invoiceheader/index.vue"]]);export{I as default};
