1 |
- import{aj as i,aM as C,aL as r,ah as D,_ as k,d as x,E as c,aZ as d,x as E,o as R,N as S,K as M,y as m,u as F}from"./index.743f0c80.js";import{h as N,a as _,b as f,c as P}from"./index.e866db4a.js";import{F as T,M as o}from"./finance-modal.f0c66228.js";import{u as z}from"./use-page-search.a895acdb.js";import"./index.e2a9809e.js";import"./super.fba22ec9.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"}],H=[{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})=>i(C,{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()?i(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})=>i(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})=>D(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],I={title:"\u4E1A\u52A1\u516C\u53F8\u53D1\u7968",statusProp:"companyNo",columns:H,apis:{httpList:N,httpAdd:_,httpUpdate:f,httpStatus:P}};const L=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:v}=d({success:()=>l()}),p=c(null);function b(u,s){switch(s){case o.create:A(_(u));break;case o.update:v(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,s)=>{const g=E("PageContainer"),w=E("PageAuth");return R(),S(w,{pageName:a},{default:M(()=>[m(g,{hooks:n,events:y,"search-config":F(h),"content-config":F(I),getContentRef:B=>t.value=B},null,8,["search-config","content-config","getContentRef"]),m(T,{ref_key:"financeModalRef",ref:p,onFinanceSave:b},null,512)]),_:1})}}});var G=k(L,[["__scopeId","data-v-25446dcd"],["__file","D:/work/accout-vue3-ui/src/views/parameter/finance/index.vue"]]);export{G as default};
|