index.58b04e83.js 3.0 KB

1
  1. import{h as D,a as m,b as h,c as C}from"./index.a0afeaea.js";import{af as w,aI as B,aX as k,_ as x,r as S,D as i,aY as l,v as c,o as R,M,J as N,w as p,x as r}from"./index.74d694ea.js";import{_ as P,M as t}from"./finance-modal.456a3471.js";import{u as Y}from"./use-page-search.653a488a.js";import"./unit.2d0fe563.js";import"./index.b5090850.js";import"./super.2ba16537.js";const d={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"}]}]},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:180},{label:"\u4E1A\u52A1\u4F01\u4E1A\u540D\u79F0",prop:"company_name",width:180},{label:"\u4F01\u4E1A\u7EB3\u7A0E\u53F7",prop:"company_license",minWidth:120},{label:"\u5F00\u6237\u94F6\u884C\u8D26\u6237",prop:"bank_name",minWidth:120},{label:"\u5F00\u6237\u94F6\u884C\u8D26\u6237",prop:"bankNo",minWidth:120},{label:"\u4F01\u4E1A\u8054\u7CFB\u65B9\u5F0F",prop:"mobile",width:120},{label:"\u72B6\u6001",width:"80px",cellRenderer({row:e}){return w(B,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})}},{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:"\u6700\u5927\u9762\u989D",prop:"denomination",width:120},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",width:150,formatter:({addtime:e})=>k(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:D,httpAdd:m,httpUpdate:h,httpStatus:C}};const T=S({__name:"index",setup(e){const f="finance",n=i(null),_={pageSearchHook:()=>Y(void 0,void 0,d)},o=()=>n.value.onSearch(),{run:F}=l({success:()=>o()}),{run:E}=l({success:()=>o()}),a=i(null);function A(u,s){switch(s){case t.create:F(m(u));break;case t.update:E(h(u));break}}const g={content:{preview:u=>a.value.onDisplay(u,t.preview),update:u=>a.value.onDisplay(u,t.update),create:()=>a.value.onDisplay(void 0,t.create)}};return(u,s)=>{const v=c("PageContainer"),b=c("PageAuth");return R(),M(b,{pageName:f},{default:N(()=>[p(v,{hooks:_,events:g,"search-config":r(d),"content-config":r(I),getContentRef:y=>n.value=y},null,8,["search-config","content-config","getContentRef"]),p(P,{ref_key:"financeModalRef",ref:a,onFinanceSave:A},null,512)]),_:1})}}});var $=x(T,[["__scopeId","data-v-53e836a3"]]);export{$ as default};