import{_ as y,d as k,m as x,n as D,ag as N,aL as R,ah as P,w as o,aO as S,bv as B,x as I,o as r,c as g,l as q,u as n,G as w,a as O}from"./index.1d1a5ecb.js";import U from"./related-order.a0d197b6.js";import A from"./receipt-payment.a21d010a.js";import{h as H,a as L}from"./index.907fe4d4.js";import"./configs.b4b9a552.js";import"./global.9ad647c8.js";import"./sales-modal.5c3fdbdd.js";import"./status.d6b2a53d.js";import"./date-range.04fa85c1.js";import"./basic-descriptions.1879b0f8.js";const V=k({__name:"index",setup(b){const i="claimDetail",{query:c}=x(),{push:l}=D(),a=N(()=>c.id),{hasPermissionWithCode:u}=R(i),{isSuperUser:d}=P(),m=o([]),t=o({}),p=S(),{run:f}=B({success:()=>l("/InvoiceSales/capitalClaim")}),v=e=>{f(H({tradNo:a.value,orderArr:e}))};async function _(){const{data:e,message:s,code:h}=await L({tradNo:a.value});p({code:h,message:s,handler:()=>t.value=e})}function C(){!a.value||_()}return I(()=>C()),(e,s)=>(r(),g("div",null,[q(A,{"trade-info":t.value},null,8,["trade-info"]),!n(d)&&n(u)("002")?(r(),w(U,{key:0,"trade-order-list":m.value,onCreateBtnClick:v},null,8,["trade-order-list"])):O("v-if",!0)]))}});var Q=y(V,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/capitalClaim/components/claim-detail/index.vue"]]);export{Q as default};
