1 |
- import{_ as R,__tla as g}from"./ContentWrap-b5913fb6.js";import{d as E,r as y,b as I,a4 as T,o as h,c as U,B as l,f as t,A as a,E as o,k as j,C as q,D as n,a as i,dz as B,F as A,K as F,H as J,J as K,_ as M,__tla as N}from"./index-0b2503c4.js";import{E as O,a as S,__tla as G}from"./el-descriptions-item-a06406e4.js";import{_ as L,__tla as Q}from"./DictTag-67781daa.js";import{P as V,__tla as W}from"./ProductForm-ba5a6ddb.js";import{D as X,__tla as Y}from"./dict-0f5a88e6.js";import{g as Z,__tla as $}from"./index-4c7b1031.js";import{__tla as tt}from"./el-card-fa060bc4.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-3207cd36.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-b12ce3e2.js";import{__tla as et}from"./useMessage-d05433ee.js";let v,lt=Promise.all([(()=>{try{return g}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=M(E({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:b}){const f=y(),x=b,p=y([]);return I(async()=>{p.value=await Z({})}),(r,_)=>{const D=F,P=J,w=K,s=O,C=L,H=S,k=R,z=T("hasPermi");return h(),U(A,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,[j((h(),q(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})),[[z,["crm:product:update"]]])])])]),t(k,{class:"mt-10px"},{default:a(()=>[t(H,{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(C,{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(B)(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};
|