import{_ as H,__tla as T}from"./ContentWrap-0aca5216.js";import{d as U,r as y,q,M as z,o as h,c as E,g as l,f as t,w as a,t as c,z as M,x as j,y as n,a as i,an as F,F as I,i as G,E as N,G as O,_ as S,__tla as X}from"./index-8dc1e40a.js";import{E as A,a as B,__tla as J}from"./el-descriptions-item-bf830d0d.js";import{_ as K,__tla as L}from"./DictTag-85aade2b.js";import{P as Q,__tla as V}from"./ProductForm-365e11fc.js";import{D as W,__tla as Y}from"./dict-f13a3c8f.js";import{g as Z,__tla as $}from"./index-4501f2f7.js";import{__tla as tt}from"./el-card-18df90f0.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-41802231.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-6f284c9a.js";import{__tla as et}from"./useMessage-7a27dd80.js";let v,lt=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}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(U({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:b}){const p=y(),x=b,f=y([]);return q(async()=>{f.value=await Z({})}),(r,_)=>{const P=G,w=N,D=O,s=A,k=K,R=B,g=H,C=z("hasPermi");return h(),E(I,null,[l("div",null,[l("div",d,[l("div",null,[t(w,null,{default:a(()=>[t(P,null,{default:a(()=>[l("span",m,c(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[M((h(),j(D,{onClick:_[0]||(_[0]=u=>{return e="update",o=r.product.id,void p.value.open(e,o);var e,o})},{default:a(()=>[n(" \u7F16\u8F91 ")]),_:1})),[[C,["crm:product:update"]]])])])]),t(g,{class:"mt-10px"},{default:a(()=>[t(R,{column:5,direction:"vertical"},{default:a(()=>[t(s,{label:"\u4EA7\u54C1\u7C7B\u522B"},{default:a(()=>{var u,e;return[n(c((e=(u=i(f))==null?void 0:u.find(o=>o.id===r.product.categoryId))==null?void 0:e.name),1)]}),_:1}),t(s,{label:"\u4EA7\u54C1\u5355\u4F4D"},{default:a(()=>[t(k,{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(c(i(F)(r.product.price))+"\u5143",1)]),_:1}),t(s,{label:"\u4EA7\u54C1\u7F16\u7801"},{default:a(()=>[n(c(r.product.no),1)]),_:1})]),_:1})]),_:1}),t(Q,{ref_key:"formRef",ref:p,onSuccess:_[1]||(_[1]=u=>x("refresh"))},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{lt as __tla,v as default};
