import{_ as y,d as k,n as x,p as D,ah as N,aM as R,ai as P,x as o,aO as S,bG as B,y as I,o as r,c as q,l as O,m as n,G as U,a as g}from"./index.js";import w from"./related-order.993e8d.js";import A from"./receipt-payment.1528df.js";import{h as G,a as H}from"./index.56c49c99.js";import"./configs.34665744.js";import"./global.9ad647c8.js";import"./sales-modal.5552e4.js";import"./date-range.019e953f.js";const M=k({__name:"index",setup(V){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(G({tradNo:a.value,orderArr:e}))};async function _(){const{data:e,message:s,code:h}=await H({tradNo:a.value});p({code:h,message:s,handler:()=>t.value=e})}function C(){!a.value||_()}return I(()=>C()),(e,s)=>(r(),q("div",null,[O(A,{"trade-info":t.value},null,8,["trade-info"]),!n(d)&&n(u)("002")?(r(),U(w,{key:0,"trade-order-list":m.value,onCreateBtnClick:v},null,8,["trade-order-list"])):g("v-if",!0)]))}});var J=y(M,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/capitalClaim/components/claim-detail/index.vue"]]);export{J as default};
