detail.2d4ede.js 7.2 KB

1
  1. import{ac as r,aZ as t,aN as d,aM as h,d as B,a7 as z,o as m,G as f,l as s,_ as D,aY as N,r as i,at as O,H as $,c as I,j as p,C,ah as V,a as F}from"./index.js";import{u as x}from"./useDetail.de731874.js";import j from"./BaseForm.03bc88.js";import{B as P}from"./basic-descriptions.898fa2c0.js";import{c as _}from"./tootip.f8ec1491.js";import{a as c,c as b}from"./status.0f771e9a.js";import{b as v}from"./columns.57fd1333.js";import{a as U}from"./index.0e8d4646.js";import"./InvoiceTitle.77bebe.js";import"./index.08977e.js";import"./use-page-search.c6a73876.js";import"./ChildGoodEditModal.7967d3.js";import"./query-category.fa03a8.js";const q=[{field:"id",label:"\u5546\u54C1ID",span:6},{span:6,label:"\u72B6\u6001",render(a,{status:u}){var e;return r(t,{size:"small",type:((e=c.find(l=>l.value==u))==null?void 0:e.type)||"warning"},{default:()=>{var l;return((l=c.find(n=>n.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 _(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 _(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\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 r(t,{size:"small"},{default:()=>{var e;return((e=b.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 r(t,{size:"small"},{default:()=>{var e;return((e=v.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.indexOf("%")===-1?u+"%":u}},{span:6,field:"spectral",label:"\u5206\u5149"}],H=[{field:"id",label:"\u5546\u54C1ID",span:6},{span:6,label:"\u72B6\u6001",render(a,{status:u}){var e;return r(t,{size:"small",type:((e=c.find(l=>l.value==u))==null?void 0:e.type)||"warning"},{default:()=>{var l;return((l=c.find(n=>n.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 _(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 _(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 r(t,{size:"small"},{default:()=>{var e;return((e=b.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 r(t,{size:"small"},{default:()=>{var e;return((e=v.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.indexOf("%")===-1?u+"%":u}},{span:6,field:"spectral",label:"\u5206\u5149"},{label:"\u5B50\u5546\u54C1",span:24,render(a,{ProductsCombind:u=[]}){return r(h,{size:"small",data:u,border:!0},{default:()=>[r(d,{label:"\u6BD4\u4F8B",prop:"child_num",width:100,showOverflowTooltip:!0}),r(d,{label:"\u5546\u54C1\u7F16\u53F7",showOverflowTooltip:!0},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.skuCode}}),r(d,{label:"\u5546\u54C1\u7C7B\u578B",showOverflowTooltip:!0},{default:e=>r(t,{size:"small"},{default:()=>{var l;return((l=b.find(n=>{var o;return n.value==((o=e.row.products)==null?void 0:o.good_type)}))==null?void 0:l.label)||"--"}})}),r(d,{label:"\u5546\u54C1\u540D\u79F0"},{default:e=>{var l;return(l=e.row.products)==null?void 0:l.goodName}})]})}}],L=B({__name:"index",props:{data:{type:null,required:!1},num:{type:Number,required:!1}},setup(a){const u=a,e=z(()=>{var n;return[...((n=u.data)==null?void 0:n.is_combind)=="1"?H:q,...u.num?[{label:"\u64CD\u4F5C\u6570\u91CF",render:()=>u.num}]:[]]});return(l,n)=>(m(),f(s(P),{columns:e.value,data:l.data},null,8,["columns","data"]))}});var M=D(L,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/components/productDetail/index.vue"]]);const G={class:"padding__container"},R=B({__name:"detail",setup(a){const u=N(),{title:e,isDetail:l,collapses:n,id:o}=x({baseName:"\u5546\u54C1",collapseLen:2});return o.value&&u.run(U({id:o.value})),(S,E)=>{const g=i("ElCollapseItem"),y=i("ElCollapse"),w=i("ElTabPane"),k=i("ElTabs"),A=O("loading");return $((m(),I("div",G,[p(k,null,{default:C(()=>[p(w,{label:s(e)},{default:C(()=>[p(y,{modelValue:s(n),"onUpdate:modelValue":E[0]||(E[0]=T=>V(n)?n.value=T:null)},{default:C(()=>[p(g,{title:s(e),name:"1"},{default:C(()=>[s(l)?F("v-if",!0):(m(),f(j,{key:0})),s(u).data?(m(),f(M,{key:1,data:s(u).data},null,8,["data"])):F("v-if",!0)]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])),[[A,s(u).loading]])}}});var su=D(R,[["__file","C:/Users/89793/Desktop/projects/ticket-system/src/views/invoiceInOut/productManager/detail.vue"]]);export{su as default};