index.9d7ffc87.js 3.2 KB

1
  1. import{ah as p,bb as B,bp as C,aM as c,_ as D,q as g,B as b,x as v,r as y,o as k,n as w,t as i,v as t,H as d,S as E}from"./index.134b23bd.js";import{s as m}from"./configs.a31a4c72.js";import{h as x}from"./index.01c9559a.js";import{u as R,_ as P}from"./use-page-search.7fab324e.js";import{P as S}from"./page-content.60052bb9.js";import Y from"./index.fb466fe0.js";import"./hooks.5edff40f.js";import"./index.8461c73d.js";import"./responseHandle.2720ef95.js";import"./use-response-handle.cd6bc791.js";import"./payment-table.7a656fae.js";import"./index.71dca36f.js";import"./create-ticket-dialog.d2536a7b.js";import"./index.79b98e5c.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"}}]},T=[{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(r=>e.status===r.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}],H={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:T,apis:{httpList:x},powers:["001","002","003","004","005","006","007","008"]};const M={class:"main role"},N=E("\u65B0\u5EFA"),I={name:"ticketReturn"},q=g({...I,setup(e){const o=b(null),{push:u}=v();function r({timer:a}){const[n,s]=a;return{result:{start:n,end:s},deleteProps:["timer"]}}const{pageContentRef:l,handleResetClick:_,handleSearchClick:f}=R(r);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",M,[i(t(P),{"form-config":t(A),onSearchBtnClick:t(f),onResetBtnClick:t(_)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(t(S),{ref_key:"pageContentRef",ref:l,onPreviewBtnClick:F,"content-config":t(H)},{create:d(()=>[i(s,{type:"primary",onClick:h},{default:d(()=>[N]),_:1})]),_:1},8,["content-config"]),i(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};