import{_ as x,d as M,n as V,x as q,ah as f,ai as L,aM as G,bG as _,y as j,a0 as H,r as m,aD as W,H as z,m as t,o as s,c as E,l as e,D as o,G as p,a as l,F as J,aN as B,I as K}from"./index.js";import{a as Q}from"./index.56c49c99.js";import X from"./approval-pending.b9e9e1.js";import{h as Y,a as Z}from"./index.69880ea9.js";import{C as $}from"./tragelog.dfcfbd31.js";import{O as tt}from"./sale.33407e4f.js";import{F as et}from"./index.5eb8c54a.js";import at from"./index.c5306b.js";import"./use-review-process.b3f060c8.js";import"./global.9ad647c8.js";import"./sales-modal.d458cf.js";import"./date-range.019e953f.js";import"./index.9778ee.js";const ot={1:{title:"\u5F85\u5BA1\u6279",component:X}},lt={class:"capital__content","bg-white":""},st=M({__name:"detail",setup(ut){const{query:A}=V(),D=q(["1","2","3","4","5"]),u=f(()=>A.id),N="capitalPoolDetail",{isSuperUser:h}=L(),{hasPermissionWithCode:F}=G(N),r=f(()=>{var a;return(a=n.value)==null?void 0:a.tradNo}),{run:g,data:n,loading:I}=_({initialData:{}}),{run:P,data:S}=_({initialData:{}}),{run:b}=_({success:()=>{v()}}),v=()=>g(Y({logNo:u.value})),k=()=>P(Q({tradNo:r.value})),d=f(()=>{var a;return ot[(a=n.value)==null?void 0:a.status]}),y=a=>{b(Z({logNo:u.value,...a}))};function O(){!u.value||v()}return j(()=>O()),H(()=>r.value&&k()),(a,C)=>{const i=m("ElCollapseItem"),U=m("ElCollapse"),R=m("ElTabPane"),T=m("ElTabs"),w=W("loading");return z((s(),E("div",lt,[e(T,null,{default:o(()=>[e(R,{label:t(r)?"\u8D44\u91D1\u8BE6\u60C5":"\u65B0\u5EFA\u8D44\u91D1\u8BA4\u9886"},{default:o(()=>[e(U,{modelValue:D.value,"onUpdate:modelValue":C[0]||(C[0]=c=>D.value=c)},{default:o(()=>[t(u)?l("v-if",!0):(s(),p(i,{key:0,title:"\u65B0\u5EFA\u8D44\u91D1\u8BA4\u9886",name:"2"},{default:o(()=>[e(at)]),_:1})),t(r)?(s(),E(J,{key:1},[l(" \u8BE6\u60C5 "),e(i,{title:"\u8BA4\u9886\u8D44\u91D1\u8BE6\u60C5",name:"4"},{default:o(()=>[e(t(B),{columns:t($),data:t(n)||{}},null,8,["columns","data"])]),_:1}),l(" \u5173\u8054\u8BA2\u5355 "),e(i,{title:"\u5173\u8054\u8BA2\u5355\u4FE1\u606F",name:"2"},{default:o(()=>{var c;return[e(t(B),{columns:t(tt),data:(c=t(n))!=null&&c.orderinfo?t(n).orderinfo:{}},null,8,["columns","data"])]}),_:1}),l(` <ElCollapseItem title="\u5546\u54C1\u4FE1\u606F" name="3">\r
            <BasicDescriptions\r
              :columns="GOOD_COLUMNS"\r
              :data="capitalDetail?.orderinfo ? capitalDetail.orderinfo : {}"\r
            />\r
          </ElCollapseItem> `),t(u)?(s(),p(i,{key:0,title:"\u8D44\u91D1\u8BE6\u60C5",name:"1"},{default:o(()=>[e(et,{tradeInfo:t(S)||{}},null,8,["tradeInfo"])]),_:1})):l("v-if",!0),l(" \u5BA1\u6838 "),t(d)&&!t(h)&&t(F)("025")?(s(),p(i,{key:1,name:"5",title:t(d).title},{default:o(()=>[(s(),p(K(t(d).component),{onChangeStatus:y},null,32))]),_:1},8,["title"])):l("v-if",!0)],64)):l("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])),[[w,t(I)]])}}});var Bt=x(st,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/capitalPool/detail.vue"]]);export{Bt as default};
