import{u as C,_ as y}from"./use-page-search.43bc5391.js";import{P as D}from"./page-content.ac155fae.js";import{s as d}from"./configs.e055d2d5.js";import{h as g}from"./index.bebfbdc5.js";import{ah as s,bo as p,bn as v,aM as c,_ as k,q as b,B as E,x as w,r as x,o as R,n as P,t as r,v as a,H as m,S as T}from"./index.7a111e62.js";import{i as Y}from"./status.8b8d6c88.js";import A from"./index.c3b491fd.js";import"./hooks.f4063c52.js";import"./index.3ac3c8f0.js";import"./responseHandle.6edfaed2.js";import"./use-response-handle.f995d678.js";import"./payment-table.585cbdec.js";import"./index.5188fe49.js";import"./create-ticket-dialog.40a2ce3c.js";import"./index.76b641e9.js";const S={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:d},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}}]},H=[{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:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u5BF9\u8D26\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:180},{label:"\u7533\u8BF7\u4EBA\u540D\u79F0",prop:"apply_name"},{label:"\u53D1\u7968\u7C7B\u578B",prop:"invoiceType",cellRenderer:({row:e,props:o})=>s(p,{size:o.size},{default:()=>{var t;return(t=Y.find(i=>e.invoiceType===i.hwy_value))==null?void 0:t.label}})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:o})=>s(p,{size:o.size},{default:()=>{var t;return(t=d.find(i=>e.status===i.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:100,cellRenderer:({row:e})=>s(v,{src:e.inv_img,previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:180,formatter:({open_time:e})=>c(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:180,formatter:({createTime:e})=>c(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:60}],M={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:H,apis:{httpList:g},powers:["001","002","003","004","005","006","007","008"]};const N={class:"main role"},z=T("\u65B0\u5EFA"),I={name:"ticketReturn"},q=b({...I,setup(e){const o=E(null),{push:t}=w();function i({timer:n}){const[l,u]=n;return{result:{start:l,end:u},deleteProps:["timer"]}}const{pageContentRef:_,handleResetClick:f,handleSearchClick:h}=C(i);function F(){o.value.onDisplay()}function B({hpNo:n}){t({path:"/purchase/ticketReturnDetail",query:{id:n}})}return(n,l)=>{const u=x("el-button");return R(),P("div",N,[r(a(y),{"form-config":a(S),onSearchBtnClick:a(h),onResetBtnClick:a(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(a(D),{ref_key:"pageContentRef",ref:_,onPreviewBtnClick:B,"content-config":a(M)},{create:m(()=>[r(u,{type:"primary",onClick:F},{default:m(()=>[z]),_:1})]),_:1},8,["content-config"]),r(A,{ref_key:"TicketDialog",ref:o},null,512)])}}});var oe=k(q,[["__scopeId","data-v-0875359f"]]);export{oe as default};
