import{u as F,_ as E}from"./use-page-search.665e4825.js";import{P as C}from"./page-content.c90a59ec.js";import{e as g,c as b}from"./index.b903a898.js";import{ah as a,aE as n,aF as v,aX as w,_ as y,q as x,x as D,r as A,o as R,n as k,t as p,H as S,p as N,v as t}from"./index.d8ce26ef.js";import{a as P}from"./refund.097044d2.js";import{x as I}from"./status.fad06285.js";import{u as T}from"./use-permission.314b29b7.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./index.4ed99b91.js";import"./responseHandle.f073653a.js";import"./use-response-handle.e6cae34f.js";const s=[{value:"1",label:"\u9000\u6B3E"},{value:"2",label:"\u8D44\u91D1\u8BA4\u9886\u89E3\u9664"}],q=[{value:"0",label:"\u5F85\u5BA1\u6838"},{value:"1",label:"\u8D22\u52A1\u5BA1\u6838"},{value:"2",label:"\u8D22\u52A1\u9A73\u56DE"}],Y={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:"orderCode",type:"input",placeholder:"\u9500\u552E\u5355\u7F16\u53F7"},{field:"apply_id",type:"input",placeholder:"\u7533\u8BF7\u4EBAid"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA\u540D\u79F0"},{field:"type",type:"select",placeholder:"\u9000\u6B3E\u7C7B\u578B",options:s},{field:"status",type:"select",placeholder:"\u9000\u6B3E\u72B6\u6001",options:q}]},H=[{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",width:"120px"},{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:120},{label:"\u9500\u552E\u5355\u7F16\u53F7",prop:"orderCode",width:"120px"},{label:"\u9500\u552E\u6765\u6E90",prop:"qrdSource",width:"120px",cellRenderer({row:e}){return a(n,null,{default:()=>{var u;return(u=I.find(l=>l.value===e.qrdSource))==null?void 0:u.label}})}},{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"120px"},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"120px"},{label:"\u9000\u6B3E\u56DE\u6267",prop:"return_img",width:"120px",cellRenderer:({row:e})=>a(v,{src:e.return_img,style:{height:"20px"},previewSrcList:[e.return_img],previewTeleported:!0})},{label:"\u9000\u6B3E\u539F\u56E0",width:"120px",prop:"return_reason"},{label:"\u7533\u8BF7\u4EBAid",width:"120px",prop:"apply_id"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u9000\u6B3E\u7C7B\u578B",prop:"status",width:"120px",cellRenderer:({row:e})=>a(n,null,{default:()=>{var u;return((u=s.find(l=>l.value===e.type))==null?void 0:u.label)||"--"}})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>a(n,null,{default:()=>{var u;return((u=P.find(l=>l.value===e.status))==null?void 0:u.label)||"--"}})},{label:"\u9000\u6B3E\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>w(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],i={title:"\u9000\u6B3E\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:H,apis:{httpList:g,httpAdd:b}};const L={class:"main role"},M={"w-full":""},U={name:"invoiceheader"},V=x({...U,setup(e){const{push:u}=D(),{pageContentRef:l,handleResetClick:d,handleSearchClick:c}=F();function f(o){u({path:"/InvoiceSales/refundDetail",query:{id:o}})}const{permission:m,contentConfigRef:_}=T({pageName:"refund",contentConfig:i,callback:o=>i.powers=o});return(o,r)=>{const h=A("PagePower");return R(),k("div",L,[p(h,{"is-show":t(m).list},{default:S(()=>[N("div",M,[p(t(E),{"form-config":t(Y),onSearchBtnClick:t(c),onResetBtnClick:t(d)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),p(t(C),{ref_key:"pageContentRef",ref:l,"content-config":t(_),onPreviewBtnClick:r[0]||(r[0]=({returnCode:B})=>f(B)),onCreateBtnClick:r[1]||(r[1]=()=>t(u)("/InvoiceSales/refundDetail"))},null,8,["content-config"])])]),_:1},8,["is-show"])])}}});var te=y(V,[["__scopeId","data-v-48810857"]]);export{te as default};
