1 |
- import{ah as l,bb as c,bn as C,aM as d,_ as g,q as v,B as y,x as D,r as b,o as k,n as E,t as u,v as o,H as m,S as w}from"./index.eae72c72.js";import{s as _}from"./configs.fc2b3ae6.js";import{h as R}from"./index.4dcfef28.js";import{i as x}from"./status.7319085b.js";import{u as P,_ as Y}from"./use-page-search.1e863db8.js";import{P as S}from"./page-content.f5b6a4e7.js";import T from"./index.64f37290.js";import"./hooks.67bbcde4.js";import"./index.f9cf1b23.js";import"./responseHandle.2830b07d.js";import"./use-response-handle.0176f913.js";import"./payment-table.6e2f6228.js";import"./index.6045a6a5.js";import"./create-ticket-dialog.a85560ad.js";import"./index.1b6e9f45.js";const A={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:_},{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:a})=>l(c,{size:a.size},{default:()=>{var t;return(t=x.find(n=>e.invoiceType===n.hwy_value))==null?void 0:t.label}})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:a})=>l(c,{size:a.size},{default:()=>{var t;return(t=_.find(n=>e.status===n.value))==null?void 0:t.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:100,cellRenderer:({row:e})=>l(C,{src:e.inv_img,previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:180,formatter:({open_time:e})=>e?d(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>d(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:R},powers:["001","002","003","004","005","006","007","008"]};const N={class:"main role"},z=w("\u65B0\u5EFA"),I={name:"ticketReturn"},q=v({...I,setup(e){const a=y(null),{push:t}=D();function n({timer:i}){const[r,s]=i;return{result:{start:r,end:s},deleteProps:["timer"]}}const{pageContentRef:p,handleResetClick:f,handleSearchClick:h}=P(n);function F(){a.value.onDisplay()}function B({hpNo:i}){t({path:"/purchase/ticketReturnDetail",query:{id:i}})}return(i,r)=>{const s=b("el-button");return k(),E("div",N,[u(o(Y),{"form-config":o(A),onSearchBtnClick:o(h),onResetBtnClick:o(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),u(o(S),{ref_key:"pageContentRef",ref:p,onPreviewBtnClick:B,"content-config":o(M)},{create:m(()=>[u(s,{type:"primary",onClick:F},{default:m(()=>[z]),_:1})]),_:1},8,["content-config"]),u(T,{onReload:r[0]||(r[0]=()=>o(p).onSearch()),ref_key:"TicketDialog",ref:a},null,512)])}}});var oe=g(q,[["__scopeId","data-v-3822010c"]]);export{oe as default};
|