import{aU as m,ac as v,al as n,aS as a,ae as h,_ as F,d as y,w as C,r,o as B,G as E,C as D,l as i,u as l}from"./index.fd765376.js";import{u as g}from"./use-page-search.414f397e.js";import{u as s,i as P,f as b}from"./status.0f05917e.js";import{r as A}from"./columnRenderHelper.d64097c5.js";import w from"./invoice-modal.e0460ee5.js";import"./index.50dbfda0.js";import"./invoice.89a3db62.js";const{VITE_PROXY_DOMAIN_REAL:j,VITE_PROXY_USER_REAL:x}=v(),R=x+"/admin/",k=e=>m.request("post",`${R}orderinvlist`,{data:{...e,status:"4"}}),I=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"inv_company",minWidth:160,...A("inv_out","inv_company","\u4E1A\u52A1\u516C\u53F8\u7F16\u7801:")},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",minWidth:160},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u5E73\u53F0\u7C7B\u578B",prop:"platform_type",width:110,cellRenderer:({row:e})=>n(a,null,{default:()=>{var u;return((u=s.find(t=>t.value==e.platform_type+""))==null?void 0:u.label)||"--"}})},{label:"\u53D1\u7968\u7C7B\u578B",width:160,cellRenderer({row:e}){const u=P.find(t=>t.value===String(e.inv_type));return n(a,null,{default:()=>u.label})}},{label:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:130},{label:"\u53D1\u7968\u4EE3\u7801",prop:"inv_code",width:100},{label:"\u5F00\u7968\u65E5\u671F",prop:"open_date",width:150},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u7533\u8BF7\u65F6\u95F4",width:170,prop:"addtime",formatter:({addtime:e})=>e?h(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],L={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,companyProp:"inv_out",columns:I,apis:{httpList:k}},p={formItems:[{field:"timer",type:"date_picker",span:7,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",span:5,options:b},{field:"platform_type",type:"select",placeholder:"\u5E73\u53F0\u7C7B\u578B",span:5,options:s},{field:"invNo",type:"input",span:7,placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801"},{field:"c",type:"range",span:7,otherOptions:{startProp:"inv_lower",endProp:"inv_uper",startPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0A\u9650",endPlaceholder:"\u7533\u8BF7\u989D\u5EA6\u4E0B\u9650"}}]},M=y({__name:"index",setup(e){const u="invoicePool",t=C(null),c={pageSearchHook:()=>g(void 0,void 0,p)},d={content:{preview:({inv_number:o})=>t.value.onDisplay(o)}};return(o,N)=>{const _=r("PageContainer"),f=r("PageAuth");return B(),E(f,{pageName:u},{default:D(()=>[i(_,{hooks:c,events:d,contentConfig:l(L),"search-config":l(p)},null,8,["contentConfig","search-config"]),i(w,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});var W=F(M,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoicePool/index.vue"]]);export{W as default};