import{q as _,w as f,x as v,a2 as h,B as r,C as y,o as x,n as B,t as i,p as C}from"./index.10c3f8e5.js";import D from"./receipt-payment.ab1f1751.js";import N from"./related-order.18c74cd5.js";import{u as g}from"./use-response-handle.23bba72b.js";import{h as q,a as w}from"./index.36946cea.js";import"./configs.fcc4c95f.js";import"./sales-modal.620cd7d4.js";const R={class:"invoice__content","bg-white":""},b=C("h1",{"text-xl":"","font-bold":"","mb-2":""},"\u8D44\u91D1\u8BA4\u9886",-1),L=_({__name:"detail",setup(k){const{query:c}=f(),{push:d}=v(),a=h(()=>c.id),n=g(),s=r({}),l=r([]);async function u(){const{code:e,message:t,data:o}=await w({tradNo:a.value});n({code:e,message:t,handler:()=>s.value=o})}async function m(e=[]){const{code:t,message:o}=await q({tradNo:a.value,orderArr:e});n({code:t,message:o,handler:()=>d("/InvoiceSales/capitalClaim")})}function p(){!a.value||u()}return y(()=>p()),(e,t)=>(x(),B("div",R,[b,i(D,{"trade-info":s.value},null,8,["trade-info"]),i(N,{"trade-order-list":l.value,onCreateBtnClick:m},null,8,["trade-order-list"])]))}});export{L as default};
