import{u as d,_ as f}from"./use-page-search.f38b29a1.js";import{P as _}from"./page-content.6b548a2d.js";import{b as m,d as l}from"./configs.e1a99e38.js";import{d as B}from"./index.6421d5a8.js";import{ah as F,bf as h,aN as C,_ as y,q as E,x as g,r as b,o as D,n as v,t as r,v as t,H as a,S as k}from"./index.10c3f8e5.js";import"./hooks.5f77ce90.js";import"./index.1c15f518.js";import"./responseHandle.3a46a31b.js";import"./use-response-handle.23bba72b.js";const x={formItems:[{field:"tradNo",type:"input",placeholder:"\u8D44\u91D1\u7F16\u53F7"},{field:"logNo",type:"input",placeholder:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7"},{field:"returnCode",type:"input",placeholder:"\u9000\u6B3E\u7F16\u53F7"},{field:"type",type:"select",placeholder:"\u9000\u6B3E\u7C7B\u578B",options:m},{field:"status",type:"select",placeholder:"\u9000\u6B3E\u72B6\u6001",options:l}]},N=[{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u9000\u6B3E\u7F16\u53F7",prop:"returnCode"},{label:"\u8D44\u91D1\u7F16\u53F7",prop:"tradNo"},{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo"},{label:"\u9000\u6B3E\u56DE\u6267",prop:"return_img"},{label:"\u9000\u6B3E\u539F\u56E0",prop:"return_reason"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>F(h,null,{default:()=>{var u;return(u=l.find(n=>n.value===e.status))==null?void 0:u.label}})},{label:"\u9000\u6B3E\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>C(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],R={title:"\u9000\u6B3E\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:N,apis:{httpList:B}};const S={class:"main role"},w=k("\u521B\u5EFA"),A={name:"invoiceheader"},I=E({...A,setup(e){const{push:u}=g(),{pageContentRef:n,handleResetClick:s,handleSearchClick:i}=d();return(P,o)=>{const p=b("el-button");return D(),v("div",S,[r(t(f),{"form-config":t(x),onSearchBtnClick:t(i),onResetBtnClick:t(s)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),r(t(_),{ref_key:"pageContentRef",ref:n,"content-config":t(R),onPreviewBtnClick:o[1]||(o[1]=({returnCode:c})=>t(u)({path:"/InvoiceSales/refundDetail",query:{id:c}}))},{create:a(()=>[r(p,{type:"primary",onClick:o[0]||(o[0]=()=>t(u)("/InvoiceSales/refundDetail"))},{default:a(()=>[w]),_:1})]),_:1},8,["content-config"])])}}});var z=y(I,[["__scopeId","data-v-4f3746cd"]]);export{z as default};
