1 |
- import{am as m,aR as b,aT as J,aS as K,_ as Q,d as X,aM as Y,ai as Z,p as $,bc as c,r,aD as ee,o,c as h,l as a,D as n,m as e,ar as ue,H as S,G as D,aN as p,F as N,a as f}from"./index.js";import{u as ae}from"./useDetail.d77f98f9.js";import{O as le}from"./sale.ca731a82.js";import te from"./approval-pending.bef3f4.js";import ne from"./refund-form.3a27ef.js";import{a as se}from"./index.4e61d38f.js";import{h as oe,a as k,b as ie,c as de}from"./index.c268fd9f.js";import"./index.e075def9.js";import"./tragelog.647eeacd.js";import"./capital-modal.4ec694.js";const re=[{value:"1",label:"\u9000\u6B3E"},{value:"2",label:"\u8D44\u91D1\u8BA4\u9886\u89E3\u9664"}],pe=[{value:"0",label:"\u5F85\u5BA1\u6838"},{value:"1",label:"\u8D22\u52A1\u5BA1\u6838"},{value:"2",label:"\u8D22\u52A1\u9A73\u56DE"}],ce=[{label:"\u9000\u6B3E\u7F16\u7801",span:6,field:"returnCode"},{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u7801",span:6,field:"logNo"},{label:"\u8D44\u91D1\u7F16\u7801",span:6,field:"tradNo"},{label:"\u9000\u6B3E\u7C7B\u578B",field:"type",span:6,render(l){return m(b,null,{default:()=>{var u;return(u=re.find(t=>String(t.value)===String(l)))==null?void 0:u.label}})}},{label:"\u9000\u6B3E\u72B6\u6001",field:"status",span:6,render(l){return m(b,null,{default:()=>{var u;return(u=pe.find(t=>String(t.value)===String(l)))==null?void 0:u.label}})}},{label:"\u7533\u8BF7\u4EBA",field:"apply_name",span:6,render:(l,{apply_id:u})=>J(l,"\u7533\u8BF7\u4EBAID : "+u,90)},{label:"\u4ED8\u6B3E\u516C\u53F8",span:6,field:"trade_out"},{label:"\u9000\u6B3E\u65F6\u95F4",span:6,field:"addtime"},{label:"\u4EA4\u6613\u516C\u53F8",span:6,field:"trade_out"},{label:"\u6536\u6B3E\u516C\u53F8",span:6,field:"trade_in"},{label:"\u4EA4\u6613\u94F6\u884C",span:6,field:"trade_bank"},{label:"\u603B\u91D1\u989D",span:6,field:"total_fee"},{label:"\u4F59\u989D",span:6,field:"balance"},{label:"\u5DF2\u8BA4\u9886\u91D1\u989D",span:6,field:"used_fee"},{label:"\u8BA4\u9886\u91D1\u989D",span:6,field:"log_total_fee"},{label:"\u9000\u6B3E\u56DE\u6267",field:"return_img",span:6,render(l){return(l?l.split(","):[]).map(t=>m(K,{src:t,style:{height:"20px"},previewSrcList:[t],previewTeleported:!0}))}},{label:"\u9000\u6B3E\u539F\u56E0",field:"return_reason",span:6},{label:"\u5907\u6CE8",span:6,field:"remark"}],fe=[{value:"1",label:"\u5F85\u5BA1\u6279"},{value:"2",label:"\u5BA1\u6279\u901A\u8FC7"},{value:"3",label:"\u5BA1\u6279\u9A73\u56DE"},{value:"4",label:"\u5DF2\u89E3\u9664\u8BA4\u9886"},{value:"5",label:"\u5DF2\u53D6\u6D88\u8BA4\u9886"}],me=[{field:"logNo",label:"\u7F16\u7801",width:"180px",span:6},{field:"status",label:"\u72B6\u6001",render(l){return m(b,null,{default:()=>{var u;return((u=fe.find(t=>t.value===l))==null?void 0:u.label)||"---"}})}},{field:"addtime",label:"\u8BA4\u9886\u65F6\u95F4",span:6},{field:"used_fee",label:"\u8D44\u91D1\u4F7F\u7528\u91D1\u989D",width:"130px",span:6},{field:"remark",label:"\u5907\u6CE8",span:24}],_e=[{label:"\u672A\u8BA4\u9886",value:"1"},{label:"\u90E8\u5206\u8BA4\u9886",value:"2"},{label:"\u5DF2\u8BA4\u9886",value:"3"}],De=[{label:"\u8D44\u91D1\u7F16\u7801",span:24,field:"tradNo"},{label:"\u72B6\u6001",field:"status",slot:"status",span:24,render(l){return m(b,{size:"small"},{default:()=>{var u;return(u=_e.find(t=>t.value===String(l)))==null?void 0:u.label}})}},{label:"\u6536\u5165\u91D1\u989D",span:24,field:"total_fee"},{label:"\u672A\u8BA4\u9886\u91D1\u989D",span:24,field:"balance"},{label:"\u5DF2\u8BA4\u9886\u91D1\u989D",span:24,field:"used_fee"},{label:"\u4EA4\u6613\u7528\u9014",span:24,field:"trade_used"},{label:"\u65B0\u5EFA\u65F6\u95F4",span:24,field:"addtime"}],be=[{label:"\u6536\u6B3E\u516C\u53F8\u7F16\u7801",field:"companyNo",span:24},{label:"\u6536\u6B3E\u516C\u53F8\u540D\u79F0",span:24,field:"companyName"},{label:"\u6536\u6B3E\u516C\u53F8\u8D26\u6237",span:24,field:"trade_in_account"}],Be=[{label:"\u4ED8\u6B3E\u5355\u4F4D\u540D\u79F0",span:24,field:"trade_out"},{label:"\u8D26\u6237",span:24,field:"trade_account"},{label:"\u4EA4\u6613\u65F6\u95F4",span:24,field:"trade_time"},{label:"\u4EA4\u6613\u884C\u540D",span:24,field:"trade_bank"},{label:"\u4ED8\u6B3E\u65B9\u7701\u5E02",span:24,field:""}],Ee={class:"padding__container"},Fe=X({__name:"detail",setup(l){const u="refundDetail",{hasPermissionWithCode:t}=Y(u),{id:B,isDetail:_,collapses:E,title:y}=ae({baseName:"\u9000\u6B3E\u7533\u8BF7",collapseLen:5}),{isSuperUser:R}=Z(),{push:I}=$(),{data:F,run:T,loading:w}=c({initalData:{},success:i=>{const{logNo:d,tradNo:s}=i||{};x(oe({logNo:d})),P(se({tradNo:s}))}}),{data:A,run:x,loading:L}=c({initalData:{}}),{data:v,run:P}=c({initalData:{}}),{run:U,loading:O}=c({success:()=>I("/InvoiceSales/refund")}),{run:V}=c({success:()=>T(k({returnCode:B.value}))}),M=i=>U(ie(i));function j(i){const d={...i,returnCode:B.value};V(de(d))}return _.value&&T(k({returnCode:B.value})),(i,d)=>{const s=r("ElCollapseItem"),C=r("el-col"),z=r("el-row"),G=r("ElCollapse"),H=r("ElTabPane"),W=r("ElTabs"),g=ee("loading");return o(),h("div",Ee,[a(W,null,{default:n(()=>[a(H,{label:e(y)},{default:n(()=>[a(G,{modelValue:e(E),"onUpdate:modelValue":d[0]||(d[0]=q=>ue(E)?E.value=q:null)},{default:n(()=>[a(s,{name:"1",title:e(y)},{default:n(()=>[e(_)?S((o(),D(e(p),{key:0,columns:e(ce),data:e(F)},null,8,["columns","data"])),[[g,e(w)]]):S((o(),D(ne,{key:1,onCreate:M},null,512)),[[g,e(O)]])]),_:1},8,["title"]),e(_)?(o(),h(N,{key:0},[a(s,{name:"4",title:"\u8D44\u91D1\u8BA4\u9886\u8BE6\u60C5"},{default:n(()=>[e(_)?S((o(),D(e(p),{key:0,data:e(A),columns:e(me)},null,8,["data","columns"])),[[g,e(L)]]):f("v-if",!0)]),_:1}),a(s,{title:"\u5173\u8054\u8BA2\u5355\u4FE1\u606F",name:"5"},{default:n(()=>[a(e(p),{columns:e(le),data:e(A).orderinfo?e(A).orderinfo:{}},null,8,["columns","data"])]),_:1}),e(R)?f("v-if",!0):(o(),h(N,{key:0},[String(e(F).status)==="0"&&e(t)("025")?(o(),D(s,{key:0,name:"2",title:"\u5F85\u5BA1\u6838"},{default:n(()=>[a(te,{returnType:e(F).type,onApproval:j},null,8,["returnType"])]),_:1})):f("v-if",!0),a(s,{title:"\u8D44\u91D1\u8BE6\u60C5",name:"3"},{default:n(()=>[f(" <FundDetail /> "),a(z,null,{default:n(()=>[a(C,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef1",data:e(v),columns:e(De)},null,8,["data","columns"])]),_:1}),a(C,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef2",data:e(v),columns:e(Be)},null,8,["data","columns"])]),_:1}),a(C,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef3",data:e(v),columns:e(be)},null,8,["data","columns"])]),_:1})]),_:1})]),_:1})],64))],64)):f("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Re=Q(Fe,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/refund/detail.vue"]]);export{Re as default};
|