import{al as v,aS as A,ae as b,_ as N,d as k,n as P,w,aL as R,r,o as i,G as p,C as l,l as c,u as a,J as x,a as M}from"./index.56c69f5a.js";import{c as S,d as I}from"./index.db9049bd.js";import{A as f,h as L,o as F}from"./status.2df4810d.js";import{a as d,r as m}from"./columnRenderHelper.6c05b86e.js";import{u as O}from"./use-page-search.27df6d7f.js";import W from"./invoice-modal.b2304772.js";import"./index.211aa9d2.js";import"./invoice.3cbb6342.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,...d(L,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:o})=>v(A,{size:o.size},{default:()=>{var t;return(t=f.find(u=>String(e.status)===u.value))==null?void 0:t.label}})},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...d(F,"is_comon")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...m("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...m("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})=>b(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:S,httpDelete:I,httpAdd:!0},deleteProp:"hpNo",superUserNoAction:!0,delTooltip:"\u662F\u5426\u64A4\u56DE\u91C7\u8D2D\u56DE\u7968\u7533\u8BF7",showDelete:({status:e})=>Number(e)!==6},h={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:f},{field:"returnCode",type:"input",placeholder:"\u56DE\u7968\u89E3\u9664\u7F16\u7801"},{field:"is_comon",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",span:4,options:F}]},T=k({__name:"index",setup(e){const o="ticketReturnRelive",t="/purchase/ticketReturnReliveDetail",{push:u}=P(),n=w(null),{hasPermissionWithCode:C}=R(o),_={pageSearchHook:()=>O(void 0,void 0,h)},B={content:{preview:({returnCode:s})=>u(`${t}?id=${s}`),create:()=>u(t)}};return(s,U)=>{const D=r("ElButton"),E=r("PageContainer"),g=r("PageAuth");return i(),p(g,{pageName:o},{default:l(()=>[c(E,{hooks:_,events:B,contentConfig:a(H),"search-config":a(h)},{content_action:l(y=>[a(C)("020")?(i(),p(D,{key:0,link:"",type:"primary",icon:a(x)("scaletooriginal"),onClick:()=>n.value.onDisplay(y)},null,8,["icon","onClick"])):M("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(W,{ref_key:"invoiceModalRef",ref:n},null,512)]),_:1})}}});var Q=N(T,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturnRelive/index.vue"]]);export{Q as default};
