import{al as g,aS as v,ae as y,_ as N,d as b,n as k,w as P,aL as w,r,o as i,G as p,C as l,l as c,u as a,J as A,a as R}from"./index.1d1a5ecb.js";import{c as x,d as M}from"./index.06fba49f.js";import{w as h,m as S}from"./status.d6b2a53d.js";import{a as I,r as d}from"./columnRenderHelper.0fb69d06.js";import{u as L}from"./use-page-search.f4c305e2.js";import W from"./invoice-modal.fe891567.js";import"./index.b5c3b679.js";import"./invoice.be540bfd.js";const Y=[{label:"\u56DE\u7968\u89E3\u9664\u7F16\u7801",prop:"returnCode",width:150},{label:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",prop:"orderCode",width:150},{label:"\u5BF9\u8D26\u7F16\u7801",prop:"payNo",width:150},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...I(S,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:u})=>g(v,{size:u.size},{default:()=>{var t;return(t=h.find(o=>String(e.status)===o.value))==null?void 0:t.label}})},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...d("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...d("companyNo","companyName","\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u9000\u7968\u7406\u7531",prop:"reason",minWidth:160},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name",width:80},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime",width:140,formatter:({addtime:e})=>y(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:110}],H={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:Y,apis:{httpList:x,httpDelete:M,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},m={formItems:[{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:"supplierNo",type:"supplier-query"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:h},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"}]},O=b({__name:"index",setup(e){const u="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:o}=k(),n=P(null),{hasPermissionWithCode:f}=w(u),F={pageSearchHook:()=>L(void 0,void 0,m)},_={content:{preview:({returnCode:s})=>o(`${t}?id=${s}`),create:()=>o(t)}};return(s,U)=>{const C=r("ElButton"),D=r("PageContainer"),B=r("PageAuth");return i(),p(B,{pageName:u},{default:l(()=>[c(D,{hooks:F,events:_,contentConfig:a(H),"search-config":a(m)},{content_action:l(E=>[a(f)("020")?(i(),p(C,{key:0,link:"",type:"primary",icon:a(A)("scaletooriginal"),onClick:()=>n.value.onDisplay(E)},null,8,["icon","onClick"])):R("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(W,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var K=N(O,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturnRelive/index.vue"]]);export{K as default};
