detail.8949526d.js 6.6 KB

1
  1. import{al as f,aS as D,aT as J,_ as K,d as Q,aL as X,n as Y,ah as Z,b3 as c,r as d,aC as $,o,c as h,l as a,C as n,u as e,aq as ee,H as S,G as _,F as k,a as b}from"./index.42bf163d.js";import{u as ue}from"./useDetail.a92278a2.js";import{O as ae}from"./sale.2656258c.js";import{B as p}from"./basic-descriptions.bd1e983e.js";import le from"./approval-pending.fda4b292.js";import te from"./refund-form.a8e02531.js";import{a as ne}from"./index.6a10cd14.js";import{h as se,a as N,b as oe,c as ie}from"./index.b737e659.js";import{c as re}from"./tootip.bb80052f.js";import"./status.d6b2a53d.js";import"./index.5c2634da.js";import"./tragelog.f3ef66d3.js";import"./capital-modal.cd7c242c.js";const de=[{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 f(D,null,{default:()=>{var u;return(u=de.find(t=>String(t.value)===String(l)))==null?void 0:u.label}})}},{label:"\u9000\u6B3E\u72B6\u6001",field:"status",span:6,render(l){return f(D,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})=>re(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=>f(J,{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 f(D,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"}],be=[{label:"\u8D44\u91D1\u7F16\u7801",span:24,field:"tradNo"},{label:"\u72B6\u6001",field:"status",slot:"status",span:24,render(l){return f(D,{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"}],De=[{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=Q({__name:"detail",setup(l){const u="refundDetail",{hasPermissionWithCode:t}=X(u),{id:B,isDetail:m,collapses:E,title:y}=ue({baseName:"\u9000\u6B3E\u7533\u8BF7",collapseLen:5}),{push:I}=Y(),{isSuperUser:R}=Z(),{data:F,run:T,loading:w}=c({initalData:{},success:i=>{const{logNo:r,tradNo:s}=i;L(se({logNo:r})),P(ne({tradNo:s}))}}),{data:A,run:L,loading:x}=c({initalData:{}}),{data:v,run:P}=c({initalData:{}}),{run:U,loading:O}=c({success:()=>I("/InvoiceSales/refund")}),{run:V}=c({success:()=>T(N({returnCode:B.value}))}),M=i=>U(oe(i));function j(i){const r={...i,returnCode:B.value};V(ie(r))}return m.value&&T(N({returnCode:B.value})),(i,r)=>{const s=d("ElCollapseItem"),C=d("el-col"),q=d("el-row"),z=d("ElCollapse"),G=d("ElTabPane"),H=d("ElTabs"),g=$("loading");return o(),h("div",Ee,[a(H,null,{default:n(()=>[a(G,{label:e(y)},{default:n(()=>[a(z,{modelValue:e(E),"onUpdate:modelValue":r[0]||(r[0]=W=>ee(E)?E.value=W:null)},{default:n(()=>[a(s,{name:"1",title:e(y)},{default:n(()=>[e(m)?S((o(),_(e(p),{key:0,columns:e(ce),data:e(F)},null,8,["columns","data"])),[[g,e(w)]]):S((o(),_(te,{key:1,onCreate:M},null,512)),[[g,e(O)]])]),_:1},8,["title"]),e(m)?(o(),h(k,{key:0},[a(s,{title:"\u8D44\u91D1\u8BE6\u60C5",name:"3"},{default:n(()=>[a(q,null,{default:n(()=>[a(C,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef1",data:e(v),columns:e(be)},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(De)},null,8,["data","columns"])]),_:1})]),_:1})]),_:1}),a(s,{name:"4",title:"\u8D44\u91D1\u8BA4\u9886\u8BE6\u60C5"},{default:n(()=>[e(m)?S((o(),_(e(p),{key:0,columns:e(me),data:e(A)},null,8,["columns","data"])),[[g,e(x)]]):b("v-if",!0)]),_:1}),a(s,{title:"\u5173\u8054\u8BA2\u5355\u4FE1\u606F",name:"5"},{default:n(()=>[a(e(p),{columns:e(ae),data:e(A).orderinfo?e(A).orderinfo:{}},null,8,["columns","data"])]),_:1}),e(R)?b("v-if",!0):(o(),h(k,{key:0},[String(e(F).status)==="0"&&e(t)("025")?(o(),_(s,{key:0,name:"2",title:"\u5F85\u5BA1\u6838"},{default:n(()=>[a(le,{returnType:e(F).type,onApproval:j},null,8,["returnType"])]),_:1})):b("v-if",!0)],64))],64)):b("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Le=K(Fe,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/refund/detail.vue"]]);export{Le as default};