import{_ as j,__tla as k}from"./ContentWrap-07931e94.js";import{d as z,r as y,m as E,S as H,o as h,c as I,h as l,g as t,w as a,t as o,y as T,x as F,q as n,a as i,a_ as M,F as S,j as U,E as N,D as O,_ as A,__tla as B}from"./index-7d5b26d3.js";import{E as G,a as J,__tla as K}from"./el-descriptions-item-bfa341f2.js";import{_ as L,__tla as Q}from"./DictTag-89bfbd38.js";import{P as V,__tla as W}from"./ProductForm-2f089683.js";import{D as X,__tla as Y}from"./dict-37d1dfe8.js";import{g as Z,__tla as $}from"./index-35960962.js";import{__tla as tt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-831d711e.js";import{__tla as at}from"./el-card-698191e2.js";import"./color-6e929987.js";import{__tla as rt}from"./Dialog-2be588df.js";import"./tree-0af4953a.js";import{__tla as et}from"./index-a25f8706.js";import{__tla as lt}from"./useMessage-c81eaa5b.js";let v,_t=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})()]).then(async()=>{let m,d;m={class:"flex items-start justify-between"},d={class:"text-xl font-bold"},v=A(z({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(st,{emit:x}){const p=y(),b=x,f=y([]);return E(async()=>{f.value=await Z({})}),(r,_)=>{const D=U,P=N,w=O,s=G,g=L,q=J,C=j,R=H("hasPermi");return h(),I(S,null,[l("div",null,[l("div",m,[l("div",null,[t(P,null,{default:a(()=>[t(D,null,{default:a(()=>[l("span",d,o(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[T((h(),F(w,{onClick:_[0]||(_[0]=u=>{return e="update",c=r.product.id,void p.value.open(e,c);var e,c})},{default:a(()=>[n(" \u7F16\u8F91 ")]),_:1})),[[R,["crm:product:update"]]])])])]),t(C,{class:"mt-10px"},{default:a(()=>[t(q,{column:5,direction:"vertical"},{default:a(()=>[t(s,{label:"\u4EA7\u54C1\u7C7B\u522B"},{default:a(()=>{var u,e;return[n(o((e=(u=i(f))==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(g,{type:i(X).CRM_PRODUCT_UNIT,value:r.product.unit},null,8,["type","value"])]),_:1}),t(s,{label:"\u4EA7\u54C1\u4EF7\u683C"},{default:a(()=>[n(o(i(M)(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(V,{ref_key:"formRef",ref:p,onSuccess:_[1]||(_[1]=u=>b("refresh"))},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{_t as __tla,v as default};
