import{ah as p,bf as B,bt as C,aN as c,_ as D,q as g,B as b,x as v,r as y,o as k,n as w,t as r,v as t,H as d,S as E}from"./index.10c3f8e5.js";import{s as m}from"./configs.a31a4c72.js";import{h as x}from"./index.81aab67e.js";import{u as R,_ as P}from"./use-page-search.f38b29a1.js";import{P as S}from"./page-content.6b548a2d.js";import Y from"./index.491b6331.js";import"./hooks.5f77ce90.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./use-response-handle.23bba72b.js";import"./payment-table.4e67a824.js";import"./index.44c8546a.js";import"./create-ticket-dialog.fc5abe45.js";import"./index.a762c091.js";import"./status.7319085b.js";const A={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:m},{field:"timer",type:"date_picker",otherOptions:{type:"daterange",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}}]},N=[{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",prop:"apply_name"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,prop:"invoiceType_cn"},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u72B6\u6001",prop:"status",width:160,cellRenderer:({row:e,props:o})=>p(B,{size:o.size},{default:()=>{var u;return(u=m.find(i=>e.status===i.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:100,cellRenderer:({row:e})=>p(C,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u53D1\u7968\u7968\u9762\u989D\u5EA6",width:"130px",prop:"inv_subtotal_amount"},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:180,formatter:({open_time:e})=>e?c(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>c(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:60}],T={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:N,apis:{httpList:x},powers:["001","002","003","004","005","006","007","008"]};const H={class:"main role"},M=E("\u65B0\u5EFA"),I={name:"ticketReturn"},q=g({...I,setup(e){const o=b(null),{push:u}=v();function i({timer:a}){const[n,s]=a;return{result:{start:n,end:s},deleteProps:["timer"]}}const{pageContentRef:l,handleResetClick:_,handleSearchClick:f}=R(i);function h(){o.value.onDisplay()}function F({hpNo:a}){u({path:"/purchase/ticketReturnDetail",query:{id:a}})}return(a,n)=>{const s=y("el-button");return k(),w("div",H,[r(t(P),{"form-config":t(A),onSearchBtnClick:t(f),onResetBtnClick:t(_)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(t(S),{ref_key:"pageContentRef",ref:l,onPreviewBtnClick:F,"content-config":t(T)},{create:d(()=>[r(s,{type:"primary",onClick:h},{default:d(()=>[M]),_:1})]),_:1},8,["content-config"]),r(Y,{onReload:n[0]||(n[0]=()=>t(l).onSearch()),ref_key:"TicketDialog",ref:o},null,512)])}}});var te=D(q,[["__scopeId","data-v-ccae8f58"]]);export{te as default};
