1 |
- import{am as E,aR as g,ae as A,_ as v,d as b,x as i,r as l,o as y,G as D,D as C,l as r,m as p,bd as B}from"./index.js";import{h as k,a as w,b as x}from"./index.684ecd6b.js";import{F as S,M as n}from"./finance-modal.1626a2.js";import"./index.f604950f.js";import"./super.711523e5.js";const s={formItems:[{field:"companyNo",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u7801"},{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"}]}]},R=[{type:"selection",width:40,align:"center",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:150},{label:"\u4E1A\u52A1\u4F01\u4E1A\u540D\u79F0",prop:"company_name",width:180},{label:"\u516C\u53F8\u62AC\u5934",prop:"invoice_title",width:180},{label:"\u4F01\u4E1A\u7EB3\u7A0E\u53F7",prop:"company_license",width: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 E(g,{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":String(e.input_ticket)==="2"?"\u4EBA\u5DE5":"--"},{label:"\u9500\u9879\u8BBE\u7F6E",prop:"out_ticket",width:100,cellRenderer:({row:e})=>String(e.out_ticket)==="1"?"\u91D1\u7A0E":String(e.out_ticket)==="2"?"\u4EBA\u5DE5":"--"},{label:"\u6700\u5927\u9762\u989D",prop:"denomination",width:120,cellRenderer:({row:e})=>String(e.denomination).trim()?e.denomination+"\u4E07\u5143":"--"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addTime",width:150,formatter:({addtime:e})=>A(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],M={title:"\u4E1A\u52A1\u516C\u53F8\u53D1\u7968",statusProp:"companyNo",columns:R,apis:{httpList:k,httpUpdate:w,httpStatus:x}};const N=b({__name:"index",setup(e){const c="finance",a=i(null),d={pageSearchHook:()=>B(void 0,void 0,s)},m=()=>a.value.onSearch(),t=i(null),F={content:{update:u=>t.value.onDisplay(u,n.update),preview:u=>t.value.onDisplay(u,n.preview),create:()=>t.value.onDisplay(void 0,n.create)}};return(u,o)=>{const _=l("PageContainer"),f=l("PageAuth");return y(),D(f,{pageName:c},{default:C(()=>[r(_,{hooks:d,events:F,"search-config":p(s),"content-config":p(M),"get-content-ref":h=>a.value=h},null,8,["search-config","content-config","get-content-ref"]),r(S,{ref_key:"financeModalRef",ref:t,onFinanceSave:o[0]||(o[0]=()=>m())},null,512)]),_:1})}}});var I=v(N,[["__scopeId","data-v-25446dcd"],["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/parameter/finance/index.vue"]]);export{I as default};
|