import{B as C}from"./basic-descriptions.43c3a1ff.js";import{R as D}from"./reconciliation.0978f225.js";import{h as N}from"./index.79955875.js";import{a as y}from"./use-response-handle.e6cae34f.js";import{q as F,a2 as B,aC as E,r as c,o as A,n as S,t as e,v as a,p as x,H as t,S as i,O as p,I as R}from"./index.d8ce26ef.js";import{a as I,b as O,c as k}from"./status.fad06285.js";const T={flex:"","justify-between":"","w-full":"","my-1":""},P=F({__name:"index",props:{payNo:null},setup(_){const f=_,m=["inv_status","remark","ainv_fee","inv_fee","winv_fee","inv_tag_fee"],w=D.filter(u=>!m.includes(u.field)),{data:d,run:h}=y({initalData:{}}),b=B(()=>{var u;return((u=d.value)==null?void 0:u.cgdlist.length)||0}),v=()=>{h(N({payNo:f.payNo}))};return E(()=>{const{payNo:u}=f;!u||v()}),(u,q)=>{const n=c("el-tag"),o=c("el-table-column"),g=c("el-table");return A(),S(R,null,[e(a(C),{"col-number":2,data:a(d),columns:a(w)},null,8,["data","columns"]),x("div",T,[e(n,{type:"warning"},{default:t(()=>[i("\u5171\u8BA1:"+p(a(b))+"\u4E2A\u8BA2\u5355",1)]),_:1})]),e(g,{ref:"tableRef","row-key":"id",size:"small",data:a(d).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:s})=>[e(n,null,{default:t(()=>{var l;return[i(p((l=a(I).find(r=>r.value===s.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:s})=>[e(n,null,{default:t(()=>{var l;return[i(p((l=a(O).find(r=>r.value===s.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:s})=>[e(n,null,{default:t(()=>{var l;return[i(p((l=a(k).find(r=>r.value===String(s.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)}}});export{P as _};
