import{a as t,c as i}from"./status.4e0ebdbc.js";import{ac as n,aY as r,aN as s,aM as b}from"./index.js";import{c as o}from"./tootip.df6555b6.js";const _=[{field:"id",label:"\u5546\u54C1ID",span:6},{span:6,label:"\u72B6\u6001",render(a,{status:u}){var e;return n(r,{size:"small",type:((e=t.find(l=>l.value==u))==null?void 0:e.type)||"warning"},{default:()=>{var l;return((l=t.find(d=>d.value==u))==null?void 0:l.label)||"--"}})}},{span:6,field:"apply_name",label:"\u521B\u5EFA\u4EBA"},{span:6,field:"create_time",label:"\u521B\u5EFA\u65F6\u95F4"},{span:12,field:"seller_name",label:"\u9500\u552E\u65B9\u516C\u53F8",render(a,{seller_code:u,seller_name:e}){return o(e,"\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:12,field:"buyer_name",label:"\u8D2D\u4E70\u65B9\u516C\u53F8",render(a,{buyer_code:u,buyer_name:e}){return o(e,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:6,label:"\u5546\u54C1\u6765\u6E90",render(a,{good_source:u}){return u=="1"?"\u91C7\u9500\u5546\u54C1":"\u975E\u91C7\u9500\u5546\u54C1"}},{span:6,label:"\u7EC4\u5408\u7C7B\u578B",render(a,{is_combind:u}){return u=="0"?"\u975E\u7EC4\u5408\u5546\u54C1":"\u7EC4\u5408\u5546\u54C1"}},{span:6,label:"\u5546\u54C1\u7C7B\u578B",render(a,{good_type:u}){return n(r,{size:"small"},{default:()=>{var e;return((e=i.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:6,label:"\u8FDB\u9879\u6210\u672C\u72B6\u6001",render(a,{basic_status:u}){return n(r,{size:"small"},{default:()=>{var e;return((e=C.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:12,field:"inv_good_name",label:"\u53D1\u7968\u5546\u54C1\u540D\u79F0"},{span:12,field:"goodName",label:"\u8BA2\u5355\u5546\u54C1\u540D\u79F0"},{field:"skuCode",label:"\u5546\u54C1\u7F16\u53F7",span:6},{span:6,field:"unit",label:"\u5355\u4F4D"},{span:6,field:"spec",label:"\u89C4\u683C"},{span:6,label:"\u91CD\u91CF",render(a,{unit_weight:u}){return u+"g"}},{span:6,label:"\u53D1\u7968\u7C7B\u578B",render(a,{inv_type:u}){return u.includes("special")?"\u4E13\u7968":"\u666E\u7968"}},{span:6,field:"subunit_price",label:"\u7A0E\u524D\u5355\u4EF7"},{span:6,field:"unit_price",label:"\u7A0E\u540E\u5355\u4EF7"},{span:6,field:"good_code",label:"\u5546\u54C1\u4EE3\u7801"},{field:"cat_name",label:"\u8FDB\u9879\u7C7B\u76EE",span:12,render(a,{cat_code:u,cat_name:e,short_name:l}){return`${u}-${e}-${l}`}},{label:"\u8FDB\u9879\u7A0E\u7387",span:6,render(a,{cat_tax:u}){return u+"%"}},{span:6,field:"spectral",label:"\u5206\u5149"}],B=[{span:12,field:"seller_name",label:"\u9500\u552E\u65B9\u516C\u53F8"},{span:12,field:"buyer_name",label:"\u8D2D\u4E70\u65B9\u516C\u53F8"},{span:12,field:"goodName",label:"\u8BA2\u5355\u5546\u54C1\u540D\u79F0"},{span:12,field:"inv_good_name",label:"\u53D1\u7968\u5546\u54C1\u540D\u79F0"},{span:6,label:"\u5546\u54C1\u7C7B\u578B",render(a,{good_type:u}){return n(r,{size:"small"},{default:()=>{var e;return((e=i.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:6,field:"good_code",label:"\u5546\u54C1\u4EE3\u7801"},{span:6,field:"spec",label:"\u89C4\u683C"},{span:6,field:"unit",label:"\u5355\u4F4D"},{span:6,field:"unit_price",label:"\u7A0E\u524D\u5355\u4EF7"},{span:6,field:"subunit_price",label:"\u7A0E\u540E\u5355\u4EF7"},{span:6,field:"unit_weight",label:"\u91CD\u91CF"},{span:6,field:"spectral",label:"\u5206\u5149"},{field:"cat_name",label:"\u8FDB\u9879\u7C7B\u76EE",span:24},{label:"\u5B50\u5546\u54C1",span:24,render(a,{ProductsCombind:u=[]}){return n(b,{size:"small",data:u,border:!0},{default:()=>[n(s,{label:"\u6BD4\u4F8B",prop:"child_num",width:100,showOverflowTooltip:!0}),n(s,{label:"\u5546\u54C1\u7F16\u53F7",showOverflowTooltip:!0},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.skuCode}}),n(s,{label:"\u5546\u54C1\u7C7B\u578B",showOverflowTooltip:!0},{default:e=>n(r,{size:"small"},{default:()=>{var l;return((l=i.find(d=>{var p;return d.value==((p=e.row.products)==null?void 0:p.good_type)}))==null?void 0:l.label)||"--"}})}),n(s,{label:"\u5546\u54C1\u540D\u79F0"},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.goodName}})]})}}],C=[{value:"1",label:"\u771F\u5B9E\u6210\u672C\u4FE1\u606F"},{value:"2",label:"\u9884\u4F30\u6210\u672C\u4FE1\u606F"}];export{_ as a,C as b,B as g};