import{_ as k,__tla as U}from"./ContentWrap-e91b2b5a.js";import{d as j,r as y,B as q,P as E,o as h,c as I,g as l,i as t,w as a,t as c,C as T,l as F,j as n,a as i,aq as J,F as z,s as B,E as M,J as N,_ as O,__tla as S}from"./index-b2b3c6c4.js";import{E as X,a as A,__tla as G}from"./el-descriptions-item-68c27ab4.js";import{_ as K,__tla as L}from"./DictTag-4199ec8d.js";import{P as Q,__tla as V}from"./ProductForm-9f6625de.js";import{D as W,__tla as Y}from"./dict-7f0cc6d2.js";import{g as Z,__tla as $}from"./index-c399b835.js";import{__tla as tt}from"./el-card-bd6e27c9.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-70b24cbf.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-292d166c.js";import{__tla as et}from"./useMessage-a5edbb0f.js";let v,lt=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return G}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=O(j({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:P}){const p=y(),b=P,f=y([]);return q(async()=>{f.value=await Z({})}),(r,_)=>{const x=B,w=M,D=N,s=X,R=K,C=A,H=k,g=E("hasPermi");return h(),I(z,null,[l("div",null,[l("div",d,[l("div",null,[t(w,null,{default:a(()=>[t(x,null,{default:a(()=>[l("span",m,c(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[T((h(),F(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})),[[g,["crm:product:update"]]])])])]),t(H,{class:"mt-10px"},{default:a(()=>[t(C,{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(R,{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(J)(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=>b("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};
