import{_ as I,__tla as R}from"./ContentWrap-f1610353.js";import{d as j,r as y,B as k,P as q,o as h,c as T,g as l,i as t,w as a,t as c,C as F,l as J,j as n,a as i,aq as M,F as O,s as U,E as A,J as B,_ as G,__tla as N}from"./index-2c56227b.js";import{E as S,a as z,__tla as K}from"./el-descriptions-item-1b67c432.js";import{_ as L,__tla as Q}from"./DictTag-cfe1898d.js";import{P as V,__tla as W}from"./ProductForm-59227511.js";import{D as X,__tla as Y}from"./dict-763dd292.js";import{g as Z,__tla as $}from"./index-a00743ac.js";import{__tla as tt}from"./el-card-9c148b4f.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-1050d437.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-0f7aa9db.js";import{__tla as et}from"./useMessage-96878a4a.js";let v,lt=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return N}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{}})()]).then(async()=>{let d,m;d={class:"flex items-start justify-between"},m={class:"text-xl font-bold"},v=G(j({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:P}){const f=y(),b=P,p=y([]);return k(async()=>{p.value=await Z({})}),(r,_)=>{const w=U,x=A,C=B,s=S,D=L,g=z,E=I,H=q("hasPermi");return h(),T(O,null,[l("div",null,[l("div",d,[l("div",null,[t(x,null,{default:a(()=>[t(w,null,{default:a(()=>[l("span",m,c(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[F((h(),J(C,{onClick:_[0]||(_[0]=u=>{return e="update",o=r.product.id,void f.value.open(e,o);var e,o})},{default:a(()=>[n(" \u7F16\u8F91 ")]),_:1})),[[H,["crm:product:update"]]])])])]),t(E,{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(c((e=(u=i(p))==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(D,{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(c(i(M)(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(V,{ref_key:"formRef",ref:f,onSuccess:_[1]||(_[1]=u=>b("refresh"))},null,512)],64)}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{lt as __tla,v as default};
