index.283ba6.js 3.6 KB

1
  1. import{aU as i,ac as d,dw as p,_ as F,d as h,r as n,o as C,G as E,D as g,l as _,m as t,bd as m}from"./index.js";import{u as B}from"./use-page-modal.6af4f02b.js";const{VITE_PROXY_DOMAIN_REAL:N,VITE_PROXY_USER_REAL:A}=d(),o=A+"/admin/",b=u=>i.request("post",`${o}involist`,{data:u}),v=u=>i.request("post",`${o}invoiceadd`,{data:u}),f=u=>i.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"}],w={title:"\u4F01\u4E1A\u5BA2\u6237\u53D1\u7968",columns:D,apis:{httpList:b,httpAdd:v,httpUpdate:f}},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"}]},x={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 p(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:()=>m(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(()=>[_(c,{hooks:r,contentConfig:t(w),"search-config":t(l),"modal-config":t(x)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var W=F(y,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/parameter/invoiceheader/index.vue"]]);export{W as default};