detail.23025634.js 6.5 KB

1
  1. import{aj as f,aL as _,aM as q,_ as G,d as H,bo as J,A as Q,ai as X,aZ as c,x as r,aA as Y,o as d,c as N,y as a,K as n,u as e,ao as $,O as g,N as m,a as h,L as ee}from"./index.743f0c80.js";import{u as ue}from"./useDetail.50c7b89c.js";import{O as ae}from"./sale.fe3b5968.js";import{B as p}from"./basic-descriptions.e56bd542.js";import le from"./approval-pending.cf844615.js";import te from"./refund-form.8c4c089e.js";import{a as ne}from"./index.52029f71.js";import{h as se,a as T,b as oe,c as ie}from"./index.3e0ba0b3.js";import{c as re}from"./tootip.48acd346.js";import"./purchase.7131464f.js";import"./status.868e86c0.js";import"./index.2001cda8.js";import"./tragelog.16ac9d74.js";import"./capital-modal.60b47aff.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\u53F7",span:6,field:"returnCode"},{label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",span:6,field:"logNo"},{label:"\u8D44\u91D1\u7F16\u53F7",span:6,field:"tradNo"},{label:"\u9000\u6B3E\u7C7B\u578B",field:"type",span:6,render(l){return f(_,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(_,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(q,{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\u53F7",width:"180px",span:6},{field:"status",label:"\u72B6\u6001",render(l){return f(_,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\u53F7",span:24,field:"tradNo"},{label:"\u72B6\u6001",field:"status",slot:"status",span:24,render(l){return f(_,{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=H({__name:"detail",setup(l){const u="refundDetail",{hasPermissionWithCode:t}=J(u),{id:b,isDetail:D,collapses:B,title:y}=ue({baseName:"\u9000\u6B3E\u7533\u8BF7",collapseLen:5}),{push:k}=Q(),{isSuperUser:w}=X(),{data:E,run:S,loading:I}=c({initalData:{},success:o=>{const{logNo:i,tradNo:s}=o;R(se({logNo:i})),x(ne({tradNo:s}))}}),{data:F,run:R,loading:L}=c({initalData:{}}),{data:A,run:x}=c({initalData:{}}),{run:O,loading:P}=c({success:()=>k("/InvoiceSales/refund")}),{run:U}=c({success:()=>S(T({returnCode:b.value}))}),V=o=>O(ie(o));function M(o){const i={...o,returnCode:b.value};U(oe(i))}return D.value&&S(T({returnCode:b.value})),(o,i)=>{const s=r("ElCollapseItem"),v=r("el-col"),j=r("el-row"),z=r("ElCollapse"),K=r("ElTabPane"),W=r("ElTabs"),C=Y("loading");return d(),N("div",Ee,[a(W,null,{default:n(()=>[a(K,{label:e(y)},{default:n(()=>[a(z,{modelValue:e(B),"onUpdate:modelValue":i[0]||(i[0]=Z=>$(B)?B.value=Z:null)},{default:n(()=>[a(s,{name:"1",title:e(y)},{default:n(()=>[e(D)?g((d(),m(e(p),{key:0,columns:e(ce),data:e(E)},null,8,["columns","data"])),[[C,e(I)]]):g((d(),m(te,{key:1,onCreate:V},null,512)),[[C,e(P)]])]),_:1},8,["title"]),a(s,{title:"\u8D44\u91D1\u8BE6\u60C5",name:"3"},{default:n(()=>[a(j,null,{default:n(()=>[a(v,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef1",data:e(A),columns:e(be)},null,8,["data","columns"])]),_:1}),a(v,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef2",data:e(A),columns:e(Be)},null,8,["data","columns"])]),_:1}),a(v,{span:8},{default:n(()=>[a(e(p),{ref:"defaultRef3",data:e(A),columns:e(De)},null,8,["data","columns"])]),_:1})]),_:1})]),_:1}),a(s,{name:"4",title:"\u8D44\u91D1\u8BA4\u9886\u8BE6\u60C5"},{default:n(()=>[e(D)?g((d(),m(e(p),{key:0,columns:e(me),data:e(F)},null,8,["columns","data"])),[[C,e(L)]]):h("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(F).orderinfo?e(F).orderinfo:{}},null,8,["columns","data"])]),_:1}),e(w)?h("v-if",!0):(d(),N(ee,{key:0},[String(e(E).status)==="0"&&e(t)("025")?(d(),m(s,{key:0,name:"2",title:"\u5F85\u5BA1\u6838"},{default:n(()=>[a(le,{returnType:e(E).type,onApproval:M},null,8,["returnType"])]),_:1})):h("v-if",!0)],64))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var xe=G(Fe,[["__file","D:/work/accout-vue3-ui/src/views/InvoiceSales/refund/detail.vue"]]);export{xe as default};