import{dS as s,dT as v,af as A,eB as F,ce as b,dR as _,cA as i,a7 as N,_ as k,d as w,k as P,n as R,c9 as x,r as n,o as l,A as p,y as c,h as d,i as o,D as M,a as S,cC as I}from"./index.js";import{c as O,d as T}from"./index.dd3bcd78.js";import W from"./invoice-modal.84790f.js";import"./index.c443965f.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:"\u53D1\u7968\u53F7\u7801",prop:"inv_number",width:150},{label:"\u4F9B\u5E94\u5546\u7AEF",prop:"has_account",width:80,...s(v,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>A(b,{size:t.size},{default:()=>{var u;return(u=F.find(a=>String(e.status)===a.value))==null?void 0:u.label}})},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...s(_,"is_comon")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...i("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...i("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})=>N(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:O,httpDelete:T,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:"hpNo",placeholder:"\u5BF9\u8D26\u56DE\u7968\u7F16\u7801",type:"input"},{field:"is_comon",type:"select",placeholder:"\u4E1A\u52A1\u7C7B\u578B",span:4,options:_}]},m="ticketReturnRelive",f="/purchase/ticketReturnReliveDetail",L=w({__name:"index",setup(e){const{push:t}=P(),u=R(null),{hasPermissionWithCode:a}=x(m),C={pageSearchHook:()=>I(void 0,void 0,h)},B={content:{preview:({returnCode:r})=>t(`${f}?id=${r}`),create:()=>t(f)}};return(r,j)=>{const D=n("ElButton"),E=n("PageContainer"),y=n("PageAuth");return l(),p(y,{pageName:m},{default:c(()=>[d(E,{hooks:C,events:B,contentConfig:o(H),"search-config":o(h)},{content_action:c(g=>[o(a)("020")?(l(),p(D,{key:0,link:"",type:"primary",icon:o(M)("scaletooriginal"),onClick:()=>u.value.onDisplay(g)},null,8,["icon","onClick"])):S("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(W,{ref_key:"invoiceModalRef",ref:u},null,512)]),_:1})}}});var q=k(L,[["__file","D:/work/jiesuan/settle-vue3/src/views/purchase/ticketReturnRelive/index.vue"]]);export{q as default};
