index.1b8836.js 2.8 KB

1
  1. import{aU as v,ac as h,bb as m,am as n,bP as s,aR as a,bO as F,ae as b,bL as y,_ as B,d as C,x as D,r,o as E,G as P,D as g,l,m as i,bd as A}from"./index.js";import w from"./invoice-modal.2b7844.js";import"./index.bf16817a.js";const{VITE_PROXY_DOMAIN_REAL:T,VITE_PROXY_USER_REAL:x}=h(),R=x+"/admin/",k=e=>v.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,...m("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=F.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?b(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",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"}}]},O=C({__name:"index",setup(e){const u="invoicePool",t=D(null),c={pageSearchHook:()=>A(void 0,void 0,p)},d={content:{preview:({inv_number:o})=>t.value.onDisplay(o)}};return(o,M)=>{const _=r("PageContainer"),f=r("PageAuth");return E(),P(f,{pageName:u},{default:g(()=>[l(_,{hooks:c,events:d,contentConfig:i(L),"search-config":i(p)},null,8,["contentConfig","search-config"]),l(w,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});var H=B(O,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/invoicePool/index.vue"]]);export{H as default};