1 |
- import{aJ as F,aK as _,aa as h,aH as m,aW as f,r as v,D as E,v as n,o as C,M as g,J as A,w as a,x as i}from"./index.200c0b80.js";import{u as y}from"./use-page-search.f8b541f3.js";import{a as l}from"./status.3b1d22a4.js";import B from"./invoice-modal.1949ce79.js";import"./index.43cd845e.js";import"./invoice.47693b80.js";import"./status.6d8f83f6.js";const{VITE_PROXY_DOMAIN_REAL:S,VITE_PROXY_USER_REAL:D}=_(),w=D+"/admin/",P=e=>F.request("post",`${w}orderinvlist`,{data:{...e,status:"3"}}),b=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u53D1\u7968\u7533\u8BF7\u7F16\u53F7",prop:"invNo",width:200},{label:"\u4E1A\u52A1\u4F01\u4E1A\u7F16\u53F7",prop:"inv_out",width:200},{label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0",prop:"inv_company",width:200},{prop:"buyer_title",label:"\u5BA2\u6237\u53D1\u7968\u62AC\u5934",width:200},{label:"\u7A0E\u540E\u91D1\u989D",prop:"inv_value",width:110},{label:"\u53D1\u7968\u7C7B\u578B",width:130,cellRenderer({row:e}){const t=l.find(u=>u.value===String(e.inv_type));return h(m,null,{default:()=>t.label})}},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{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"}],R={title:"\u53D1\u7968\u516C\u6D77\u6C60",inv:!0,columns:b,apis:{httpList:P}},r={formItems:[{field:"invNo",type:"input",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u7533\u8BF7\u7F16\u53F7"},{field:"inv_out",type:"input",placeholder:"\u4E1A\u52A1\u4F01\u4E1A\u516C\u53F8\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:"\u8BF7\u9009\u62E9\u53D1\u7968\u7C7B\u578B",options:l}]},L=v({__name:"index",setup(e){const t="invoicePool",u=E(null),s={pageSearchHook:()=>y(void 0,void 0,r)},p={content:{preview:({inv_number:o})=>u.value.onDisplay(o)}};return(o,x)=>{const c=n("PageContainer"),d=n("PageAuth");return C(),g(d,{pageName:t},{default:A(()=>[a(c,{hooks:s,events:p,contentConfig:i(R),"search-config":i(r)},null,8,["contentConfig","search-config"]),a(B,{ref_key:"invoiceModalRef",ref:u},null,512)]),_:1})}}});export{L as default};
|