import{aN as d,aO as _,aj as m,aL as f,ah as v,_ as h,d as F,E as g,x as n,o as C,N as D,K as y,y as a,u as i}from"./index.743f0c80.js";import{u as A}from"./use-page-search.a895acdb.js";import{i as B,x as E}from"./status.868e86c0.js";import P from"./invoice-modal.db45317d.js";import"./index.5fbf2896.js";import"./invoice.7fa18a6d.js";const{VITE_PROXY_DOMAIN_REAL:W,VITE_PROXY_USER_REAL:b}=_(),x=b+"/admin/",w=e=>d.request("post",`${x}orderinvlist`,{data:{...e,status:"4"}}),N=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",minWidth:160},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",minWidth:160},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",minWidth:160},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",minWidth:160},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:150,cellRenderer({row:e}){const o=B.find(t=>t.value===String(e.inv_type));return m(f,null,{default:()=>o.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,prop:"addtime",formatter:({addtime:e})=>e?v(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],R={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,columns:N,apis:{httpList:w}},r={formItems:[{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u7533\u8BF7\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7533\u8BF7\u7ED3\u675F\u65F6\u95F4"}},{field:"inv_type",type:"select",placeholder:"\u53D1\u7968\u7C7B\u578B",options:E}]},k=F({__name:"index",setup(e){const o="invoicePool",t=g(null),s={pageSearchHook:()=>A(void 0,void 0,r)},l={content:{preview:({inv_number:u})=>t.value.onDisplay(u)}};return(u,I)=>{const p=n("PageContainer"),c=n("PageAuth");return C(),D(c,{pageName:o},{default:y(()=>[a(p,{hooks:s,events:l,contentConfig:i(R),"search-config":i(r)},null,8,["contentConfig","search-config"]),a(P,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});var H=h(k,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/invoicePool/index.vue"]]);export{H as default};