1 |
- import{aH as e,aI as p,aW as d,bH as F,_ as h,r as C,v as l,o as E,M as _,J as g,w as m,x as o}from"./index.29112b65.js";import{u as A}from"./use-page-search.7d9277bb.js";import{u as B}from"./use-page-modal.732df0fc.js";const{VITE_PROXY_DOMAIN_REAL:M,VITE_PROXY_USER_REAL:v}=p(),t=v+"/admin/",f=u=>e.request("post",`${t}involist`,{data:u}),b=u=>e.request("post",`${t}invoicedel`,{data:u}),D=u=>e.request("post",`${t}invoiceadd`,{data:u}),w=u=>e.request("post",`${t}invoicesave`,{data:u}),x=[{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:({addtime:u})=>d(u).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],y={title:"\u4F01\u4E1A\u5BA2\u6237\u53D1\u7968",powers:["001","002","003","004","005","006","007","008"],columns:x,apis:{httpList:f,httpAdd:D,httpDelete:b,httpUpdate:w}},r={formItems:[{field:"invoice_title",type:"input",placeholder:"\u53D1\u7968\u62AC\u5934\u540D\u79F0"},{field:"invoice_code",type:"input",placeholder:"\u53D1\u7968\u7F16\u53F7"}]},k={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(u,i){return F(i)},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"}]}]},q=C({__name:"index",setup(u){const i="invoiceheader",n={pageSearchHook:()=>A(void 0,void 0,r),pageModalHook:a=>B({pageContentRef:a})};return(a,P)=>{const s=l("PageContainer"),c=l("PageAuth");return E(),_(c,{pageName:i},{default:g(()=>[m(s,{hooks:n,contentConfig:o(y),"search-config":o(r),"modal-config":o(k)},null,8,["contentConfig","search-config","modal-config"])]),_:1})}}});var N=h(q,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/parameter/invoiceheader/index.vue"]]);export{N as default};
|