import{aa as n,aH as l,aI as S,aW as v,_ as R,r as T,z as M,a8 as Y,D as z,v as s,o as p,M as c,J as i,w as d,x as a,Q as B,T as g,W as E}from"./index.5569c05e.js";import{c as I,d as O}from"./index.c5f27155.js";import{s as h,i as C,c as b}from"./_opitons.399b6cf7.js";import{u as U}from"./use-page-search.79a7bcb0.js";import H from"./invoice-modal.ba6bc382.js";import"./index.2fb5b22d.js";import"./invoice.21b97500.js";import"./status.3351df60.js";const 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\u56DE\u7968\u7533\u8BF7",prop:"hpNo",width:180},{label:"\u5BF9\u8D26\u7F16\u53F7",prop:"payNo",width:180},{label:"\u72B6\u6001",prop:"status",width:160,transform:e=>{var t;return(t=h.find(u=>String(e)===String(u.value)))==null?void 0:t.label},cellRenderer:({row:e,props:t})=>n(l,{size:t.size},{default:()=>{var u;return(u=h.find(o=>String(e.status)===String(o.value)))==null?void 0:u.label}})},{label:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",prop:"invType",width:120,cellRenderer:({row:e,props:t})=>n(l,{size:t.size},{default:()=>{var u;return(u=C.find(o=>String(e.invType)===String(o.value)))==null?void 0:u.label}})},{label:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",width:120,cellRenderer:({row:e,props:t})=>n(l,{size:t.size},{default:()=>{var u;return(u=b.find(o=>String(e.checkApi)===o.value))==null?void 0:u.label}})},{label:"\u53D1\u7968\u56FE\u7247",prop:"inv_img",width:85,cellRenderer:({row:e})=>n(S,{src:e.inv_img,style:{height:"20px"},previewSrcList:[e.inv_img],previewTeleported:!0})},{label:"\u53D1\u7968\u7A0E\u524D\u91D1\u989D",width:"110px",prop:"inv_subtotal_amount"},{label:"\u53D1\u7968\u7A0E\u540E\u91D1\u989D",width:"110px",prop:"total"},{label:"\u53D1\u7968\u53F7\u7801",width:110,prop:"invoiceNumber"},{label:"\u53D1\u7968\u4EE3\u7801",width:110,prop:"invoiceCode"},{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time",width:120,formatter:({open_time:e})=>e?v(e).format("YYYY-MM-DD"):""},{label:"\u53D1\u7968\u72B6\u6001",width:110,prop:"invStatus_cn"},{label:"\u53D1\u7968\u7C7B\u578B",width:110,prop:"invoiceType_cn"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:180,formatter:({addtime:e})=>v(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],j={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:V,apis:{httpDelete:I,httpList:O},deleteProp:"hpNo",delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",superUserNoAction:!0,showDelete:({status:e})=>Number(e)<=3},y={formItems:[{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"invType",type:"select",placeholder:"\u53D1\u7968\u4E0A\u4F20\u65B9\u5F0F",options:C},{field:"checkApi",type:"select",placeholder:"\u53D1\u7968\u67E5\u9A8C\u65B9\u5F0F",options:b},{field:"payNo",type:"input",placeholder:"\u5BF9\u8D26\u7F16\u53F7"},{field:"hpNo",type:"input",placeholder:"\u5BF9\u8D26\u7533\u8BF7\u7F16\u53F7"},{field:"apply_id",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"create_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"start",endProp:"end",startPlaceholder:"\u65B0\u5EFA\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u65B0\u5EFA\u7ED3\u675F\u65F6\u95F4"}},{field:"open_timer",type:"date_picker",otherOptions:{type:"daterange",startProp:"open_start",endProp:"open_end",startPlaceholder:"\u5F00\u7968\u8D77\u59CB\u65F6\u95F4",endPlaceholder:"\u5F00\u7968\u7ED3\u675F\u65F6\u95F4"}}]},L=E("\u5BFC\u51FA\u56DE\u7968\u6570\u636E"),W=E("\u5BFC\u5165\u8BA4\u8BC1\u7ED3\u679C"),$=T({__name:"index",setup(e){const t="ticketReturn",u="/purchase/ticketReturnDetail",o=["3","4","5","6","9","10","12"],{push:F}=M(),{isSuperUser:w}=Y(),f=z(null);async function k(){}const A={pageSearchHook:()=>U(void 0,void 0,y)},P={content:{preview:({hpNo:m})=>F(`${u}?id=${m}`),create:()=>F(u)}};return(m,D)=>{const r=s("ElButton"),x=s("PageContainer"),N=s("PageAuth");return p(),c(N,{pageName:t},{default:i(()=>[d(x,{hooks:A,events:P,contentConfig:a(j),"search-config":a(y)},{content_header:i(()=>[d(r,{icon:a(B)("arrow-up-line"),onClick:D[0]||(D[0]=()=>k())},{default:i(()=>[L]),_:1},8,["icon"]),a(w)?g("v-if",!0):(p(),c(r,{key:0},{default:i(()=>[W]),_:1}))]),content_action:i(_=>[o.includes(String(_.status))?(p(),c(r,{key:0,link:"",type:"primary",icon:a(B)("scaletooriginal"),onClick:()=>f.value.onDisplay(_)},null,8,["icon","onClick"])):g("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(H,{ref_key:"invoiceModalRef",ref:f},null,512)]),_:1})}}});var ue=R($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturn/index.vue"]]);export{ue as default};