import{aj as s,aG as D,aF as r,ah as w,_ as k,d as x,E as c,b8 as d,x as E,o as R,N as S,K as N,y as m,u as F}from"./index.1417328f.js";import{h as M,a as _,b as f,c as P}from"./index.0d44f987.js";import{F as T,M as o}from"./finance-modal.1d04ceb0.js";import{u as z}from"./use-page-search.7e7b4728.js";import"./index.2abffb79.js";import"./super.e92f309a.js";const h={formItems:[{field:"companyNo",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7"},{field:"companyName",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u540D\u79F0"},{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{label:"\u542F\u7528",value:"1"},{label:"\u7981\u7528",value:"0"}]}]},Y=[{label:"\u589E\u503C\u7A0E\u4E13\u7528\u53D1\u7968",value:"04"},{label:"\u589E\u503C\u7A0E\u666E\u901A\u53D1\u7968",value:"07"},{label:"\u589E\u503C\u7A0E\u7535\u5B50\u4E13\u7528\u53D1\u7968",value:"27"},{label:"\u589E\u503C\u7A0E\u7535\u5B50\u666E\u901A\u53D1\u7968",value:"26"}],j=[{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\u4F01\u4E1A\u7F16\u7801",prop:"companyNo",width:120},{label:"\u4E1A\u52A1\u4F01\u4E1A\u540D\u79F0",prop:"company_name",width:120},{label:"\u4E1A\u52A1\u4F01\u4E1A\u5730\u5740",prop:"company_address",width:120},{label:"\u4F01\u4E1A\u7EB3\u7A0E\u53F7",prop:"company_license",width:120},{label:"\u5F00\u6237\u94F6\u884C\u8D26\u6237",prop:"bank_name",width:120},{label:"\u5F00\u6237\u94F6\u884C\u8D26\u6237",prop:"bankNo",width:120},{label:"\u8054\u7CFB\u4EBA",prop:"contector"},{label:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",prop:"mobile",width:120},{label:"\u8425\u4E1A\u6267\u7167",prop:"company_img",width:100,cellRenderer:({row:e})=>s(D,{src:e.company_img,previewSrcList:[e.company_img],previewTeleported:!0,style:{height:"20px"}})},{label:"\u8FDB\u9879\u8BBE\u7F6E",prop:"input_ticket",width:100,cellRenderer:({row:e})=>String(e.input_ticket)==="1"?"\u91D1\u7A0E":"\u4EBA\u5DE5"},{label:"\u9500\u9879\u8BBE\u7F6E",prop:"out_ticket",width:100,cellRenderer:({row:e})=>String(e.out_ticket)==="1"?"\u91D1\u7A0E":"\u4EBA\u5DE5"},{label:"\u4F5C\u5E9F\u4EBA",prop:"voider"},{label:"\u5F00\u7968\u4EBA",prop:"payee"},{label:"\u590D\u6838\u4EBA",prop:"drawer"},{label:"\u5F52\u5C5E\u5730",prop:"reviewer"},{label:"\u6700\u5927\u9762\u989D",prop:"denomination",width:120},{label:"\u652F\u6301\u53D1\u7968\u7C7B\u578B",prop:"invoiceType",width:120,cellRenderer:({row:e,props:a})=>e.invoiceType.split(",").map(t=>t.trim()?s(r,{size:a.size,style:{marginRight:"10px"}},{default:()=>{var n;return(n=Y.find(l=>l.value===t))==null?void 0:n.label}}):"")},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:a})=>s(r,{size:a.size,type:String(e.status)==="1"?"success":"danger"},{default:()=>e.status+""=="0"?"\u7981\u7528":"\u542F\u7528"})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",width:150,formatter:({addtime:e})=>w(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],H={title:"\u4E1A\u52A1\u516C\u53F8\u53D1\u7968",statusProp:"companyNo",columns:j,apis:{httpList:M,httpAdd:_,httpUpdate:f,httpStatus:P}};const I=x({__name:"index",setup(e){const a="finance",t=c(null),n={pageSearchHook:()=>z(void 0,void 0,h)},l=()=>t.value.onSearch(),{run:A}=d({success:()=>l()}),{run:b}=d({success:()=>l()}),p=c(null);function v(u,i){switch(i){case o.create:A(_(u));break;case o.update:b(f(u));break}}const y={content:{preview:u=>p.value.onDisplay(u,o.preview),update:u=>p.value.onDisplay(u,o.update),create:()=>p.value.onDisplay(void 0,o.create)}};return(u,i)=>{const g=E("PageContainer"),C=E("PageAuth");return R(),S(C,{pageName:a},{default:N(()=>[m(g,{hooks:n,events:y,"search-config":F(h),"content-config":F(H),getContentRef:B=>t.value=B},null,8,["search-config","content-config","getContentRef"]),m(T,{ref_key:"financeModalRef",ref:p,onFinanceSave:v},null,512)]),_:1})}}});var J=k(I,[["__scopeId","data-v-25446dcd"],["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/parameter/finance/index.vue"]]);export{J as default};