import{cs as i,am as b,dd as f,aR as D,bb as p,ae as A,ct as P,cr as _,_ as R,d as N,p as k,x as w,aM as x,r as n,o as l,G as c,D as d,l as m,m as a,J as I,a as M,bd as S}from"./index.js";import{c as L}from"./index.d03c0f13.js";import O from"./invoice-modal.f8e7f3.js";import"./index.47e512cd.js";const W=[{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(P,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>b(D,{size:t.size},{default:()=>{var o;return(o=f.find(u=>String(e.status)===u.value))==null?void 0:o.label}})},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...i(_,"is_comon")},{label:"\u5356\u51FA\u65B9\u516C\u53F8",prop:"supplierName",minWidth:160,...p("supplierNo","supplierName","\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801:")},{label:"\u4E70\u5165\u65B9\u516C\u53F8",prop:"companyNo",minWidth:160,...p("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})=>A(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",slot:"operation",width:60}],Y={title:"\u91C7\u8D2D\u56DE\u7968",statusProp:"companyNo",columns:W,apis:{httpList:e=>L({...e,noRela:!0})},transformCompany:!0,companyProp:"supplierNo"},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:"companyNo",type:"business-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:_}]},H=N({__name:"index",setup(e){const t="supplierReturnRelive",o="/InvoiceSales/supplierReturnReliveDetail",{push:u}=k(),s=w(null),{hasPermissionWithCode:C}=x(t),F={pageSearchHook:()=>S(void 0,void 0,h)},B={content:{preview:({returnCode:r})=>u(`${o}?id=${r}`),create:()=>u(o)}};return(r,j)=>{const y=n("ElButton"),v=n("PageContainer"),g=n("PageAuth");return l(),c(g,{pageName:t},{default:d(()=>[m(v,{hooks:F,events:B,contentConfig:a(Y),"search-config":a(h)},{content_action:d(E=>[a(C)("020")?(l(),c(y,{key:0,link:"",type:"primary",icon:a(I)("scaletooriginal"),onClick:()=>s.value.onDisplay(E)},null,8,["icon","onClick"])):M("v-if",!0)]),_:1},8,["contentConfig","search-config"]),m(O,{ref_key:"invoiceModalRef",ref:s},null,512)]),_:1})}}});var $=R(H,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierReturnRelive/index.vue"]]);export{$ as default};
