import{b as E}from"./index.44c8546a.js";import g from"./add-order-modal.fd2b5df8.js";import N from"./basic-purchase.5bb63e11.js";import{u as O}from"./use-response-handle.23bba72b.js";import{q as w,B as i,r as c,as as A,o as p,n as v,L as k,p as C,t as a,H as l,K as x,S as o,O as n,P as F,I as V}from"./index.10c3f8e5.js";import"./configs.40b3dcc9.js";import"./status.7319085b.js";const H={"w-full":""},R={flex:"","justify-end":"","mb-2":""},S=o("\u9009\u62E9"),T=w({__name:"order-table",emits:["change-payment-detail"],setup(I,{emit:y}){const _=i(null),e=i(null),s=i(!1),h=O();function b(){_.value.onDisplay()}async function B(m){const r=m[0];y("change-payment-detail",r),s.value=!0;const{data:u,message:t,code:d}=await E({payNo:r.payNo});h({message:t,code:d,handler:()=>e.value=u}),s.value=!1}return(m,r)=>{var f;const u=c("el-button"),t=c("el-descriptions-item"),d=c("el-descriptions"),D=A("loading");return p(),v(V,null,[k((p(),v("div",H,[C("div",R,[a(u,{type:"primary",onClick:b},{default:l(()=>[S]),_:1})]),e.value?(p(),x(d,{key:0,column:2,border:"",size:"small","w-full":"","mb-5":""},{default:l(()=>[a(t,{label:"\u4F9B\u5E94\u5546"},{default:l(()=>[o(n(e.value.supplierName),1)]),_:1}),a(t,{label:"\u4E1A\u52A1\u516C\u53F8"},{default:l(()=>[o(n(e.value.companyName),1)]),_:1}),a(t,{label:"\u5BF9\u8D26\u603B\u989D"},{default:l(()=>[o(n(e.value.total_fee),1)]),_:1}),a(t,{label:"\u5DF2\u4ED8\u6B3E"},{default:l(()=>[o(n(e.value.pay_fee),1)]),_:1}),a(t,{label:"\u4ED8\u6B3E\u4E2D"},{default:l(()=>[o(n(e.value.apay_fee),1)]),_:1}),a(t,{label:"\u672A\u4ED8\u6B3E"},{default:l(()=>[o(n(e.value.wpay_fee),1)]),_:1})]),_:1})):F("",!0),a(N,{"purchase-order-list":((f=e.value)==null?void 0:f.cgdlist)||[],readonly:""},null,8,["purchase-order-list"])])),[[D,s.value]]),a(g,{onOnAddOrder:B,ref_key:"addOrderRef",ref:_},null,512)],64)}}});export{T as default};
