import{al as b,aS as A,ae as D,_ as P,d as N,n as R,w,aL as k,r as n,o as i,G as p,C as l,l as c,u as a,J as x,a as S}from"./index.56c69f5a.js";import{c as I}from"./index.db9049bd.js";import{a as d,r as m}from"./columnRenderHelper.6c05b86e.js";import{A as f,h as L,o as C}from"./status.2df4810d.js";import{u as M}from"./use-page-search.27df6d7f.js";import O from"./invoice-modal.d26c361e.js";import"./index.211aa9d2.js";import"./invoice.3cbb6342.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,...d(L,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>b(A,{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,...d(C,"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})=>D(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=>I({...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:C}]},H=N({__name:"index",setup(e){const t="supplierReturnRelive",o="/InvoiceSales/supplierReturnReliveDetail",{push:u}=R(),r=w(null),{hasPermissionWithCode:_}=k(t),F={pageSearchHook:()=>M(void 0,void 0,h)},B={content:{preview:({returnCode:s})=>u(`${o}?id=${s}`),create:()=>u(o)}};return(s,j)=>{const y=n("ElButton"),v=n("PageContainer"),g=n("PageAuth");return i(),p(g,{pageName:t},{default:l(()=>[c(v,{hooks:F,events:B,contentConfig:a(Y),"search-config":a(h)},{content_action:l(E=>[a(_)("020")?(i(),p(y,{key:0,link:"",type:"primary",icon:a(x)("scaletooriginal"),onClick:()=>r.value.onDisplay(E)},null,8,["icon","onClick"])):S("v-if",!0)]),_:1},8,["contentConfig","search-config"]),c(O,{ref_key:"invoiceModalRef",ref:r},null,512)]),_:1})}}});var K=P(H,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/supplierReturnRelive/index.vue"]]);export{K as default};
