1 |
- import{_ as T,__tla as z}from"./ContentWrap-60842994.js";import{d as E,r as y,k as H,Q as I,o as h,c as j,g as l,f as t,w as a,t as o,x as F,v as M,m as n,a as i,a$ as O,F as U,i as q,E as N,C as Q,_ as S,__tla as $}from"./index-430b3151.js";import{E as A,a as B,__tla as G}from"./el-descriptions-item-f31a472b.js";import{_ as J,__tla as K}from"./DictTag-c94c3188.js";import{P as L,__tla as V}from"./ProductForm-2f7c3634.js";import{D as W,__tla as X}from"./dict-603b6a58.js";import{g as Y,__tla as Z}from"./index-ba22de8d.js";import{__tla as tt}from"./el-card-dee5b36b.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-cd42c639.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-43de0303.js";import{__tla as et}from"./useMessage-d226ba89.js";let v,lt=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})()]).then(async()=>{let d,m;d={class:"flex items-start justify-between"},m={class:"text-xl font-bold"},v=S(E({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:x}){const f=y(),b=x,p=y([]);return H(async()=>{p.value=await Y({})}),(r,_)=>{const D=q,w=N,P=Q,s=A,C=J,g=B,k=T,R=I("hasPermi");return h(),j(U,null,[l("div",null,[l("div",d,[l("div",null,[t(w,null,{default:a(()=>[t(D,null,{default:a(()=>[l("span",m,o(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[F((h(),M(P,{onClick:_[0]||(_[0]=u=>{return e="update",c=r.product.id,void f.value.open(e,c);var e,c})},{default:a(()=>[n(" \u7F16\u8F91 ")]),_:1})),[[R,["crm:product:update"]]])])])]),t(k,{class:"mt-10px"},{default:a(()=>[t(g,{column:5,direction:"vertical"},{default:a(()=>[t(s,{label:"\u4EA7\u54C1\u7C7B\u522B"},{default:a(()=>{var u,e;return[n(o((e=(u=i(p))==null?void 0:u.find(c=>c.id===r.product.categoryId))==null?void 0:e.name),1)]}),_:1}),t(s,{label:"\u4EA7\u54C1\u5355\u4F4D"},{default:a(()=>[t(C,{type:i(W).CRM_PRODUCT_UNIT,value:r.product.unit},null,8,["type","value"])]),_:1}),t(s,{label:"\u4EA7\u54C1\u4EF7\u683C"},{default:a(()=>[n(o(i(O)(r.product.price))+"\u5143",1)]),_:1}),t(s,{label:"\u4EA7\u54C1\u7F16\u7801"},{default:a(()=>[n(o(r.product.no),1)]),_:1})]),_:1})]),_:1}),t(L,{ref_key:"formRef",ref:f,onSuccess:_[1]||(_[1]=u=>b("refresh"))},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{lt as __tla,v as default};
|