import{_ as C,q as N,a2 as B,aC as F,r as f,o as E,n as x,t as e,v as a,p as R,H as t,S as d,O as p,I as S}from"./index.413ee8cb.js";import{B as A}from"./basic-descriptions.6966943a.js";import{R as I}from"./reconciliation.25c1b762.js";import{h as O}from"./index.50c10de7.js";import{a as k}from"./use-response-handle.9aced8b8.js";import{a as q,b as T,c as V}from"./status.b8063a0d.js";const L={flex:"","justify-between":"","w-full":"","my-1":""},P=N({__name:"index",props:{payNo:{type:String,required:!0},isInv:{type:Boolean,required:!1}},setup(m,{expose:w}){const c=m,h=["inv_status","remark","ainv_fee","inv_fee","winv_fee","inv_tag_fee"],v=["inv_status","remark","pay_fee","wpay_fee","apay_fee"],b=I.filter(u=>c.isInv?!v.includes(u.field):!h.includes(u.field)),{data:n,run:g}=k({initalData:{}}),y=B(()=>n.value.cgdlist&&n.value.cgdlist.length),_=()=>{g(O({payNo:c.payNo}))};return F(()=>{const{payNo:u}=c;!u||_()}),w({reload:()=>{_()}}),(u,j)=>{const i=f("el-tag"),o=f("el-table-column"),D=f("el-table");return E(),x(S,null,[e(a(A),{"col-number":2,data:a(n),columns:a(b)},null,8,["data","columns"]),R("div",L,[e(i,{type:"warning"},{default:t(()=>[d("\u5171\u8BA1:"+p(a(y))+"\u4E2A\u8BA2\u5355",1)]),_:1})]),e(D,{ref:"tableRef","row-key":"id",size:"small",data:a(n).cgdlist||[],"max-height":"400"},{default:t(()=>[e(o,{label:"\u91C7\u8D2D\u5355\u7F16\u53F7",prop:"sequenceNo",width:"150"}),e(o,{label:"\u91C7\u8D2D\u5355\u4FE1\u606F"},{default:t(()=>[e(o,{label:"\u4F9B\u8D27\u5546",prop:"supplierName",width:"160","show-overflow-tooltip":""}),e(o,{label:"\u53D1\u8D27\u72B6\u6001",prop:"sendStatus",width:"90","show-overflow-tooltip":""},{default:t(({row:r})=>[e(i,null,{default:t(()=>{var l;return[d(p((l=a(q).find(s=>s.value===r.sendStatus))==null?void 0:l.label),1)]}),_:2},1024)]),_:1}),e(o,{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyName","show-overflow-tooltip":""}),e(o,{label:"\u8BA2\u5355\u6765\u6E90",prop:"cgdSource",width:"100","show-overflow-tooltip":""},{default:t(({row:r})=>[e(i,null,{default:t(()=>{var l;return[d(p((l=a(T).find(s=>s.value===r.cgdSource))==null?void 0:l.label),1)]}),_:2},1024)]),_:1}),e(o,{label:"\u603B\u8D27\u6B3E",prop:"totalPrice",width:"80","show-overflow-tooltip":""})]),_:1}),e(o,{label:"\u5546\u54C1\u4FE1\u606F"},{default:t(()=>[e(o,{label:"\u5546\u54C1\u7F16\u53F7",prop:"goodNo",width:"140","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",width:"180","show-overflow-tooltip":""}),e(o,{label:"\u5546\u54C1\u6765\u6E90",prop:"cgdType",width:"90","show-overflow-tooltip":""},{default:t(({row:r})=>[e(i,null,{default:t(()=>{var l;return[d(p((l=a(V).find(s=>s.value===String(r.cgdType)))==null?void 0:l.label),1)]}),_:2},1024)]),_:1}),e(o,{label:"\u5546\u54C1\u6570\u91CF",prop:"goodNum",width:"90","show-overflow-tooltip":""})]),_:1}),e(o,{label:"\u91C7\u8D2D\u5458",prop:"ownerName",width:"75","show-overflow-tooltip":""})]),_:1},8,["data"])],64)}}});var K=C(P,[["__file","D:/work/accout-vue3-ui/src/components/OrderRecordDetail/src/index.vue"]]);export{K as O};