import{h as O}from"./index.79955875.js";import g from"./add-order-modal.9bdc6228.js";import C from"./basic-purchase.ba1d31fb.js";import{u as N}from"./use-response-handle.e6cae34f.js";import{q as k,B as l,r as B,as as w,o as d,n as u,L as b,p as x,t as i,H as A,K as I,v as m,P as R,I as D,S as V}from"./index.d8ce26ef.js";import{B as E}from"./basic-descriptions.43c3a1ff.js";import{R as H}from"./reconciliation.0978f225.js";import"./configs.fe3c2395.js";import"./status.fad06285.js";const L={"w-full":""},M={flex:"","justify-end":"","mb-2":""},S=V("\u9009\u62E9"),J=k({__name:"order-record",emits:["change-payment-detail"],setup(T,{emit:f}){const c=l(null),e=l(null),o=l(!1),p=N();function _(){c.value.onDisplay()}const v=["inv_status","remark","ainv_fee","inv_fee","winv_fee","inv_tag_fee"],h=H.filter(a=>!v.includes(a.field));async function y(a){const n=a[0];f("change-payment-detail",n),o.value=!0;const{data:r,message:s,code:t}=await O({payNo:n.payNo});p({message:s,code:t,handler:()=>e.value=r}),o.value=!1}return(a,n)=>{var t;const r=B("el-button"),s=w("loading");return d(),u(D,null,[b((d(),u("div",L,[x("div",M,[i(r,{type:"primary",link:"",onClick:_},{default:A(()=>[S]),_:1})]),e.value?(d(),I(m(E),{key:0,"col-number":2,columns:m(h),data:e.value,"mb-2":""},null,8,["columns","data"])):R("",!0),i(C,{"purchase-order-list":((t=e.value)==null?void 0:t.cgdlist)||[],readonly:""},null,8,["purchase-order-list"])])),[[s,o.value]]),i(g,{onOnAddOrder:y,ref_key:"addOrderRef",ref:c},null,512)],64)}}});export{J as default};
