1 |
- import{_ as R,__tla as T}from"./ContentWrap-260746ab.js";import{d as g,r as y,b as E,a4 as I,o as h,c as j,B as l,f as t,A as a,E as o,k as A,C as F,D as n,a as i,dz as M,F as U,K as q,H as B,J,_ as K,__tla as N}from"./index-54aa57d8.js";import{E as O,a as S,__tla as G}from"./el-descriptions-item-347c85ca.js";import{_ as L,__tla as Q}from"./DictTag-638f5ebc.js";import{P as V,__tla as W}from"./ProductForm-7fb6eb6e.js";import{D as X,__tla as Y}from"./dict-573b3b04.js";import{g as Z,__tla as $}from"./index-63f062b0.js";import{__tla as tt}from"./el-card-e7d6628c.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-7bb778a5.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-050fcf20.js";import{__tla as et}from"./useMessage-f56cafbb.js";let v,lt=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return G}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=K(g({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:b}){const f=y(),x=b,p=y([]);return E(async()=>{p.value=await Z({})}),(r,_)=>{const D=q,P=B,w=J,s=O,z=L,C=S,k=R,H=I("hasPermi");return h(),j(U,null,[l("div",null,[l("div",d,[l("div",null,[t(P,null,{default:a(()=>[t(D,null,{default:a(()=>[l("span",m,o(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[A((h(),F(w,{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})),[[H,["crm:product:update"]]])])])]),t(k,{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(z,{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=>x("refresh"))},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{lt as __tla,v as default};
|