1 |
- import{_ as w,q as D,w as R,x as V,a2 as p,B as C,C as q,r as l,o,n as I,v as u,K as r,H as n,t as s,N as P,P as S}from"./index.f1f72fab.js";import T from"./index.ce64bcdf.js";import H from"./index.b04c22f8.js";import N from"./approval-pending.b622959f.js";import{u as $}from"./use-response-handle.848983a0.js";import{h as A,a as F}from"./index.62982a12.js";import"./capital-modal.9f0e8c46.js";import"./tragelog.1a3345c4.js";import"./basic-descriptions.d6904302.js";import"./refund.163a6c1d.js";import"./index.bc128c3a.js";const K={0:{title:"\u5F85\u5BA1\u6279",component:N}};const M={class:"refund__content","bg-white":""},U=D({__name:"detail",setup(j){const{query:E}=R(),{push:B}=V(),c=p(()=>E.id),_=C(["1","2"]),d=p(()=>!c.value),i=C({}),f=$(),m=p(()=>{const{status:e}=i.value;return K[e]});async function h(){const{code:e,message:t,data:a}=await F({returnCode:c.value});f({code:e,message:t,handler:()=>i.value=a})}async function y(e){const{code:t,message:a}=await A({returnCode:c.value,...e});f({code:t,message:a,handler:()=>B("/InvoiceSales/refund")})}function b(){d.value||h()}return q(()=>b()),(e,t)=>{const a=l("ElCollapseItem"),k=l("ElCollapse"),v=l("ElTabPane"),x=l("ElTabs");return o(),I("div",M,[u(d)?(o(),r(T,{key:0})):(o(),r(x,{key:1},{default:n(()=>[s(v,{label:"\u8BE6\u60C5"},{default:n(()=>[s(k,{modelValue:_.value,"onUpdate:modelValue":t[0]||(t[0]=g=>_.value=g)},{default:n(()=>[s(a,{title:"\u9000\u6B3E\u5355\u8BE6\u60C5",name:"1"},{default:n(()=>[s(H,{detail:i.value},null,8,["detail"])]),_:1}),u(m)?(o(),r(a,{key:0,name:"2",title:u(m).title},{default:n(()=>[(o(),r(P(u(m).component),{onChangeStatus:y},null,32))]),_:1},8,["title"])):S("",!0)]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1}))])}}});var te=w(U,[["__scopeId","data-v-3292c5b6"]]);export{te as default};
|