import{_ as C,d as k,j as y,k as D,aa as N,c9 as R,ab as x,n as o,cb as P,d3 as S,p as B,o as r,c as I,h as q,i as n,A as w,a as A}from"./index.js";import b from"./related-order.592a0c.js";import g from"./receipt-payment.86e0ff.js";import{h as j,a as H}from"./index.afe5f4bc.js";import"./configs.46f04f0d.js";import"./global.9ad647c8.js";import"./sales-modal.b772ac.js";const O="claimDetail",U=k({__name:"index",setup(V){const{query:i}=y(),{push:c}=D(),a=N(()=>i.id),{hasPermissionWithCode:l}=R(O),{isSuperUser:u}=x(),d=o([]),t=o({}),m=P(),{run:p}=S({success:()=>c("/InvoiceSales/capitalClaim")}),f=e=>{p(j({tradNo:a.value,orderArr:e}))};async function v(){const{data:e,message:s,code:h}=await H({tradNo:a.value});m({code:h,message:s,handler:()=>t.value=e})}function _(){!a.value||v()}return B(()=>_()),(e,s)=>(r(),I("div",null,[q(g,{"trade-info":t.value},null,8,["trade-info"]),!n(u)&&n(l)("002")?(r(),w(b,{key:0,"trade-order-list":d.value,onCreateBtnClick:f},null,8,["trade-order-list"])):A("v-if",!0)]))}});var G=C(U,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/capitalClaim/components/claim-detail/index.vue"]]);export{G as default};
