import{c as b,g as f}from"./status.b7512d56.js";import{aa as e,aX as s,aL as o,aY as F,aP as C,J as m,aK as E}from"./index.js";import{t as B,s as _,a as i}from"./shared.a743a5f7.js";import{c as t}from"./tootip.236f17fc.js";const g=[{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(p,{good_type:n}){return e(s,{size:"small"},{default:()=>{var r;return((r=b.find(u=>u.value==n))==null?void 0:r.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}],v=(p,n=!0)=>[{label:"\u7C7B\u578B",span:6,render(r,u){return e(s,{type:"primary",size:"small"},{default:()=>{var l;return(l=B.find(a=>a.value==u.type))==null?void 0:l.label}})}},{label:"\u8BA2\u5355\u6765\u6E90",span:6,render(r,u){return e(s,{type:"primary",size:"small"},{default:()=>{var l;return(l=_.find(a=>a.value==u.source))==null?void 0:l.label}})}},{label:"\u521B\u5EFA\u4EBA",span:6,field:"apply_name"},{label:"\u521B\u5EFA\u65F6\u95F4",span:6,field:"create_time"},{span:12,label:"\u8BA2\u5355\u8D2D\u4E70\u65B9\u516C\u53F8",render(r,u){return t(u.buyer_name,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:"+u.buyer_code)}},{span:12,label:"\u8BA2\u5355\u9500\u552E\u65B9\u516C\u53F8",render(r,u){return t(u.seller_name,"\u9500\u552E\u65B9\u516C\u53F8\u7EB3\u7A0E\u53F7:"+u.seller_code)}},{span:6,field:"orderCode",label:"\u8BA2\u5355\u7F16\u53F7"},{span:6,field:"cxCode",label:"\u8BA2\u5355\u4E3B\u5355\u53F7"},{label:"\u5546\u54C1\u7C7B\u578B",span:6,render(r,u){return e(s,{type:"primary",size:"small"},{default:()=>{var l;return(l=f.find(a=>a.value==u.goodType))==null?void 0:l.label}})}},{label:"\u5546\u54C1\u540D\u79F0",span:6,render(r,u){return t(u.goodName,"\u5546\u54C1\u7F16\u53F7:"+u.goodNo,300)}},{span:6,label:"\u8BA2\u5355\u5355\u4F4D",field:"unit"},{span:6,label:"\u5546\u54C1\u6570\u91CF",field:"num"},{span:6,label:"\u5546\u54C1\u5355\u4EF7",field:"goodPrice"},{span:6,label:"\u8BA2\u5355\u603B\u91D1\u989D",field:"totalPrice"},{label:"\u51FA\u5E93\u65F6\u95F4",span:6,field:"fz_date"},{label:"\u72B6\u6001",span:6,render(r,u){var l;return e(s,{type:(l=i.find(a=>a.value==u.status))==null?void 0:l.type,size:"small"},{default:()=>{var a;return(a=i.find(d=>d.value==u.status))==null?void 0:a.label}})}},{label:"\u5F02\u5E38\u539F\u56E0",span:12},...n?[{label:"\u51FA\u5E93\u5546\u54C1",span:24,render(r,{ProductRela:u}){return e(E,{size:"small",border:!0,style:{width:"100 %"},data:u},[e(o,{prop:"product_id",label:"ID",width:"60px",showOverflowTooltip:!0}),e(o,{prop:"skuCode",label:"\u5546\u54C1\u7F16\u53F7",showOverflowTooltip:!0},null),e(o,{prop:"goodName",label:"\u5546\u54C1\u540D\u79F0",showOverflowTooltip:!0},null),e(o,{prop:"num",label:"\u64CD\u4F5C\u6570\u91CF",showOverflowTooltip:!0}),e(o,{prop:"create_time",label:"\u521B\u5EFA\u65F6\u95F4",showOverflowTooltip:!0}),e(o,{label:"\u64CD\u4F5C",showOverflowTooltip:!0},{default:({row:l,$index:a})=>e(F,{content:"\u67E5\u770B\u8BE6\u60C5",placement:"top"},{default:()=>e(C,{onClick:()=>p(l.product_id,a),icon:m("eye-view"),type:"primary",size:"small",link:!0})})})])}}]:[]];export{g,v as o};
