index.414309e0.js 3.5 KB

1
  1. import{ah as d,aE as g,aF as D,aX as m,_ as w,q as k,B as v,x as y,C as b,aQ as E,r as S,o as x,n as R,t as o,H as l,p as P,v as t,bo as A,S as T}from"./index.f1f72fab.js";import{S as _}from"./ticket-return.3937fe71.js";import{h as N}from"./index.b9041747.js";import{u as Y,_ as H}from"./use-page-search.f69d0651.js";import{P as M}from"./page-content.28283dd3.js";import I from"./index.ce337ae4.js";import"./basic-form.3fcecd34.js";import"./global.9ad647c8.js";import"./hooks.56104ccd.js";import"./index.e06d2700.js";import"./responseHandle.e1b4a6cf.js";import"./use-response-handle.848983a0.js";import"./payment-table.75a9a67b.js";import"./configs.1d43013b.js";import"./index.172577d8.js";import"./create-ticket-dialog.5e9dff93.js";import"./index.bc128c3a.js";import"./status.dd7282cd.js";const O={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"}}]},V=[{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:a})=>d(g,{size:a.size},{default:()=>{var u;return(u=_.find(n=>e.status===n.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:100,cellRenderer:({row:e})=>d(D,{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?m(e).format("YYYY-MM-DD HH:mm:ss"):""},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>m(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:90}],p={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:V,apis:{httpList:N},tagProps:{type:"2",prop:"hpNo"},powers:["001","002","003","004","005","006","007","008"]};const $={class:"main role"},q={"w-full":""},z=T("\u65B0\u5EFA"),L={name:"ticketReturn"},U=k({...L,setup(e){const a=v(null),{push:u}=y();function n({timer:r}){const[i,s]=r;return{result:{start:i,end:s},deleteProps:["timer"]}}const{pageContentRef:c,handleResetClick:f,handleSearchClick:h}=Y(n);function F(){a.value.onDisplay()}function B({hpNo:r}){u({path:"/purchase/ticketReturnDetail",query:{id:r}})}return b(()=>p.powers=E().getMenuActions("ticketReturn")),(r,i)=>{const s=S("el-button");return x(),R("div",$,[o(A,{isShow:t(p).powers.some(C=>C==="001")},{default:l(()=>[P("div",q,[o(t(H),{"form-config":t(O),onSearchBtnClick:t(h),onResetBtnClick:t(f)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),o(t(M),{ref_key:"pageContentRef",ref:c,onPreviewBtnClick:B,"content-config":t(p)},{create:l(()=>[o(s,{type:"primary",onClick:F},{default:l(()=>[z]),_:1})]),_:1},8,["content-config"])]),o(I,{onReload:i[0]||(i[0]=()=>t(c).onSearch()),ref_key:"TicketDialog",ref:a},null,512)]),_:1},8,["isShow"])])}}});var pe=w(U,[["__scopeId","data-v-5eef2af7"]]);export{pe as default};