index.0949abb2.js 6.2 KB

1
  1. import{a7 as n,bq as s,a1 as d,a0 as b,d as f,a2 as E,o as _,A as m,h as F,_ as B}from"./index.js";import{B as c}from"./basic-descriptions.e6b0a528.js";import{c as i}from"./tootip.c6ca5db9.js";import{a as t,c as p}from"./status.b7512d56.js";import{b as C}from"./columns.74c15f1e.js";const D=[{field:"id",label:"\u5546\u54C1ID",span:6},{span:6,label:"\u72B6\u6001",render(a,{status:u}){var e;return n(s,{size:"small",type:((e=t.find(l=>l.value==u))==null?void 0:e.type)||"warning"},{default:()=>{var l;return((l=t.find(r=>r.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:"buyer_name",label:"\u8D2D\u4E70\u65B9\u516C\u53F8",render(a,{buyer_code:u,buyer_name:e}){return i(e,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:12,field:"seller_name",label:"\u9500\u552E\u65B9\u516C\u53F8",render(a,{seller_code:u,seller_name:e}){return i(e,"\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:6,label:"\u5546\u54C1\u6765\u6E90",render(a,{good_source:u}){return u=="1"?"\u91C7\u9500\u7ED3\u7B97":"\u975E\u91C7\u9500\u7ED3\u7B97"}},{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(s,{size:"small"},{default:()=>{var e;return((e=p.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:6,label:"\u6210\u672C\u72B6\u6001",render(a,{basic_status:u}){return n(s,{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,u){return String(u.inv_type).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.indexOf("%")===-1?u+"%":u}},{span:6,field:"spectral",label:"\u5206\u5149"}],g=[{field:"id",label:"\u5546\u54C1ID",span:6},{span:6,label:"\u72B6\u6001",render(a,{status:u}){var e;return n(s,{size:"small",type:((e=t.find(l=>l.value==u))==null?void 0:e.type)||"warning"},{default:()=>{var l;return((l=t.find(r=>r.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:"buyer_name",label:"\u8D2D\u4E70\u65B9\u516C\u53F8",render(a,{buyer_code:u,buyer_name:e}){return i(e,"\u8D2D\u4E70\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:12,field:"seller_name",label:"\u9500\u552E\u65B9\u516C\u53F8",render(a,{seller_code:u,seller_name:e}){return i(e,"\u9500\u552E\u65B9\u516C\u53F8\u7F16\u53F7:"+u,300)}},{span:6,label:"\u5546\u54C1\u6765\u6E90",render(a,{good_source:u}){return u=="1"?"\u91C7\u9500\u7ED3\u7B97":"\u975E\u91C7\u9500\u7ED3\u7B97"}},{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(s,{size:"small"},{default:()=>{var e;return((e=p.find(l=>l.value==u))==null?void 0:e.label)||"--"}})}},{span:6,label:"\u6210\u672C\u72B6\u6001",render(a,{basic_status:u}){return n(s,{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,u){return String(u.inv_type).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.indexOf("%")===-1?u+"%":u}},{span:6,field:"spectral",label:"\u5206\u5149"},{label:"\u5B50\u5546\u54C1",span:24,render(a,{ProductsCombind:u=[]}){return n(b,{size:"small",data:u,border:!0},{default:()=>[n(d,{label:"\u6BD4\u4F8B",prop:"child_num",width:100,showOverflowTooltip:!0}),n(d,{label:"\u5546\u54C1\u7F16\u53F7",showOverflowTooltip:!0},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.skuCode}}),n(d,{label:"\u5546\u54C1\u7C7B\u578B",showOverflowTooltip:!0},{default:e=>n(s,{size:"small"},{default:()=>{var l;return((l=p.find(r=>{var o;return r.value==((o=e.row.products)==null?void 0:o.good_type)}))==null?void 0:l.label)||"--"}})}),n(d,{label:"\u5546\u54C1\u540D\u79F0"},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.goodName}})]})}}],v=f({__name:"index",props:{data:{type:null,required:!1},num:{type:Number,required:!1},time:{type:String,required:!1},name:{type:String,required:!1}},setup(a){const u=a,e=E(()=>{var r;const l=((r=u.data)==null?void 0:r.is_combind)=="1"?g:D;return[...u.num?[{label:"\u64CD\u4F5C\u6570\u91CF",render:()=>u.num,span:12},{label:"\u64CD\u4F5C\u65F6\u95F4",render:()=>u.time,span:6},{label:"\u64CD\u4F5C\u4EBA",render:()=>u.name,span:6}]:[],...l]});return(l,r)=>(_(),m(F(c),{columns:e.value,data:l.data},null,8,["columns","data"]))}});var k=B(v,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/components/productDetail/index.vue"]]);export{k as P};