import{ch as f,a5 as h,cA as v,af as n,dc as s,ce as a,db as m,a7 as F,d8 as y,_ as B,d as C,n as E,r,o as D,A as b,y as g,h as l,i,cC as A}from"./index.js";import P from"./invoice-modal.943b10.js";import"./index.c443965f.js";const{VITE_PROXY_DOMAIN_REAL:T,VITE_PROXY_USER_REAL:w}=h(),x=w+"/admin/",R=e=>f.request("post",`${x}orderinvlist`,{data:{...e,status:"4"}}),k=[{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801",prop:"invNo",width:150},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"inv_company",minWidth:160,...v("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=m.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?F(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u64CD\u4F5C",fixed:"right",width:55,slot:"operation"}],I={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,companyProp:"inv_out",columns:k,apis:{httpList:R}},p={formItems:[{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:y},{field:"platform_type",type:"select",placeholder:"\u5E73\u53F0\u7C7B\u578B",options:s},{field:"invNo",type:"input",placeholder:"\u53D1\u7968\u7533\u8BF7\u7F16\u7801"},{field:"inv_number",type:"input",placeholder:"\u53D1\u7968\u53F7\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"}}]},L="invoicePool",M=C({__name:"index",setup(e){const u=E(null),t={pageSearchHook:()=>A(void 0,void 0,p)},c={content:{preview:({inv_number:o})=>u.value.onDisplay(o)}};return(o,N)=>{const d=r("PageContainer"),_=r("PageAuth");return D(),b(_,{pageName:L},{default:g(()=>[l(d,{hooks:t,events:c,contentConfig:i(I),"search-config":i(p)},null,8,["contentConfig","search-config"]),l(P,{ref_key:"invoiceModalRef",ref:u},null,512)]),_:1})}}});var H=B(M,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/invoicePool/index.vue"]]);export{H as default};
