import{dS as r,dT as A,af as D,eB as _,ce as b,dR as C,cA as i,a7 as P,_ as R,d as N,k,n as w,c9 as x,r as n,o as l,A as p,y as c,h as d,i as u,D as S,a as I,cC as M}from"./index.js";import{c as L}from"./index.dd3bcd78.js";import O from"./invoice-modal.6924fc.js";import"./index.c443965f.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,...r(A,"has_account")},{label:"\u72B6\u6001",prop:"status",width:120,cellRenderer:({row:e,props:t})=>D(b,{size:t.size},{default:()=>{var o;return(o=_.find(a=>String(e.status)===a.value))==null?void 0:o.label}})},{label:"\u4E1A\u52A1\u7C7B\u578B",width:95,...r(C,"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})=>P(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"},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:"companyNo",type:"business-query"},{field:"status",type:"select",placeholder:"\u5BA1\u6838\u72B6\u6001",options:_},{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="supplierReturnRelive",f="/InvoiceSales/supplierReturnReliveDetail",H=N({__name:"index",setup(e){const{push:t}=k(),o=w(null),{hasPermissionWithCode:a}=x(h),F={pageSearchHook:()=>M(void 0,void 0,m)},B={content:{preview:({returnCode:s})=>t(`${f}?id=${s}`),create:()=>t(f)}};return(s,T)=>{const y=n("ElButton"),v=n("PageContainer"),g=n("PageAuth");return l(),p(g,{pageName:h},{default:c(()=>[d(v,{hooks:F,events:B,contentConfig:u(Y),"search-config":u(m)},{content_action:c(E=>[u(a)("020")?(l(),p(y,{key:0,link:"",type:"primary",icon:u(S)("scaletooriginal"),onClick:()=>o.value.onDisplay(E)},null,8,["icon","onClick"])):I("v-if",!0)]),_:1},8,["contentConfig","search-config"]),d(O,{ref_key:"invoiceModalRef",ref:o},null,512)]),_:1})}}});var q=R(H,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/supplierReturnRelive/index.vue"]]);export{q as default};
