index.73afee8b.js 2.4 KB

1
  1. import{aH as F,aI as _,aa as h,aF as m,aW as f,r as v,D as E,v as a,o as y,M as C,J as A,w as n,x as i}from"./index.8a948a1a.js";import{u as g}from"./use-page-search.2df26bd0.js";import{a as l}from"./status.3b867a34.js";import B from"./invoice-modal.f2a36aa9.js";import"./index.afeebddd.js";import"./invoice.a0a72dbd.js";import"./status.4f7e5409.js";const{VITE_PROXY_DOMAIN_REAL:L,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 u=l.find(t=>t.value===e.inv_type);return h(m,{type:u.type},{default:()=>u.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}]},S=v({__name:"index",setup(e){const u="invoicePool",t=E(null),p={pageSearchHook:()=>g(void 0,void 0,r)},s={content:{preview:({inv_number:o})=>t.value.onDisplay(o)}};return(o,x)=>{const c=a("PageContainer"),d=a("PageAuth");return y(),C(d,{pageName:u},{default:A(()=>[n(c,{hooks:p,events:s,contentConfig:i(R),"search-config":i(r)},null,8,["contentConfig","search-config"]),n(B,{ref_key:"invoiceModalRef",ref:t},null,512)]),_:1})}}});export{S as default};