import{_ as k,__tla as z}from"./ContentWrap-0137c911.js";import{d as H,r as y,l as I,R as T,o as h,c as U,g as l,f as t,w as a,t as o,x as j,v as F,n,a as i,at as M,F as q,i as N,E as O,C as S,_ as A,__tla as B}from"./index-04f8d540.js";import{E as G,a as J,__tla as K}from"./el-descriptions-item-acdf7c6c.js";import{_ as L,__tla as Q}from"./DictTag-774e4f97.js";import{P as V,__tla as W}from"./ProductForm-82085f1a.js";import{D as X,__tla as Y}from"./dict-ef06f7f7.js";import{g as Z,__tla as $}from"./index-1e7d9241.js";import{__tla as tt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d7df3a9f.js";import{__tla as at}from"./el-card-3a265a8d.js";import"./color-6e929987.js";import{__tla as rt}from"./Dialog-9afb5ba5.js";import"./tree-0af4953a.js";import{__tla as et}from"./index-6e48cf5a.js";import{__tla as lt}from"./useMessage-9c37e840.js";let v,_t=Promise.all([(()=>{try{return z}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(H({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(st,{emit:x}){const f=y(),b=x,p=y([]);return I(async()=>{p.value=await Z({})}),(r,_)=>{const P=N,w=O,D=S,s=G,R=L,C=J,g=k,E=T("hasPermi");return h(),U(q,null,[l("div",null,[l("div",m,[l("div",null,[t(w,null,{default:a(()=>[t(P,null,{default:a(()=>[l("span",d,o(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[j((h(),F(D,{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})),[[E,["crm:product:update"]]])])])]),t(g,{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(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(R,{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:f,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};
