index.a86de5e6.js 3.7 KB

1
  1. import{u as F,_ as C}from"./use-page-search.65ce9740.js";import{P as E}from"./page-content.46df3069.js";import{e as b,c as w}from"./index.d33b32d4.js";import{ah as r,aE as n,aW as g,_ as v,q as D,x,r as y,o as A,n as k,t as i,H as R,p as N,v as t}from"./index.f00b3728.js";import{a as S}from"./refund.da081a09.js";import{x as P}from"./status.b8063a0d.js";import{u as q}from"./use-permission.aef4c1eb.js";import"./basic-form.11f5b8be.js";import"./global.9ad647c8.js";import"./hooks.704e488b.js";import"./index.892782bc.js";import"./responseHandle.dd0170ee.js";import"./use-response-handle.10a5ad96.js";const s=[{value:"1",label:"\u9000\u6B3E"},{value:"2",label:"\u8D44\u91D1\u8BA4\u9886\u89E3\u9664"}],I=[{value:"0",label:"\u5F85\u5BA1\u6838"},{value:"1",label:"\u8D22\u52A1\u5BA1\u6838"},{value:"2",label:"\u8D22\u52A1\u9A73\u56DE"}],T={formItems:[{field:"returnCode",type:"input",placeholder:"\u9000\u6B3E\u7F16\u53F7"},{field:"tradNo",type:"input",placeholder:"\u8D44\u91D1\u7F16\u53F7"},{field:"logNo",type:"input",placeholder:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7"},{field:"orderCode",type:"input",placeholder:"\u9500\u552E\u5355\u7F16\u53F7"},{field:"apply_name",type:"input",placeholder:"\u7533\u8BF7\u4EBA"},{field:"type",type:"select",placeholder:"\u9000\u6B3E\u7C7B\u578B",options:s},{field:"status",type:"select",placeholder:"\u9000\u6B3E\u72B6\u6001",options:I}]},Y=[{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\u7F16\u53F7",prop:"tradNo",width:120},{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",prop:"logNo",width:120},{label:"\u9500\u552E\u5355\u7F16\u53F7",prop:"orderCode",width:"120px"},{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"120px"},{label:"\u9000\u6B3E\u7C7B\u578B",prop:"status",width:"120px",cellRenderer:({row:e})=>r(n,null,{default:()=>{var u;return((u=s.find(o=>o.value===e.type))==null?void 0:u.label)||"--"}})},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e})=>r(n,null,{default:()=>{var u;return((u=S.find(o=>o.value===e.status))==null?void 0:u.label)||"--"}})},{label:"\u9500\u552E\u6765\u6E90",prop:"qrdSource",width:"120px",cellRenderer({row:e}){return r(n,null,{default:()=>{var u;return(u=P.find(o=>o.value===e.qrdSource))==null?void 0:u.label}})}},{label:"\u5E73\u53F0\u540D\u79F0",prop:"platName",width:"120px"},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"120px"},{label:"\u7533\u8BF7\u4EBA",prop:"apply_name"},{label:"\u9000\u6B3E\u65F6\u95F4",prop:"addtime",formatter:({addtime:e})=>g(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],p={title:"\u9000\u6B3E\u7533\u8BF7\u7BA1\u7406",powers:["001","002","003","004","005","006","007","008"],columns:Y,apis:{httpList:b,httpAdd:w}};const H={class:"main role"},M={"w-full":""},U={name:"invoiceheader"},V=D({...U,setup(e){const{push:u}=x(),{pageContentRef:o,handleResetClick:d,handleSearchClick:c}=F();function f(l){u({path:"/InvoiceSales/refundDetail",query:{id:l}})}const{permission:m,contentConfigRef:h}=q({pageName:"refund",contentConfig:p,callback:l=>p.powers=l});return(l,a)=>{const _=y("PagePower");return A(),k("div",H,[i(_,{"is-show":t(m).list},{default:R(()=>[N("div",M,[i(t(C),{"form-config":t(T),onSearchBtnClick:t(c),onResetBtnClick:t(d)},null,8,["form-config","onSearchBtnClick","onResetBtnClick"]),i(t(E),{ref_key:"pageContentRef",ref:o,"content-config":t(h),onPreviewBtnClick:a[0]||(a[0]=({returnCode:B})=>f(B)),onCreateBtnClick:a[1]||(a[1]=()=>t(u)("/InvoiceSales/refundDetail"))},null,8,["content-config"])])]),_:1},8,["is-show"])])}}});var ue=v(V,[["__scopeId","data-v-48810857"]]);export{ue as default};