1 |
- import{_ as k,__tla as U}from"./ContentWrap-abe0694e.js";import{d as j,r as y,B as q,P as E,o as h,c as I,g as l,i as t,w as a,t as c,C as T,l as F,j as n,a as i,aq as J,F as z,s as B,E as M,J as N,_ as O,__tla as S}from"./index-afaf388d.js";import{E as X,a as A,__tla as G}from"./el-descriptions-item-fe161f2c.js";import{_ as K,__tla as L}from"./DictTag-3a1a976c.js";import{P as Q,__tla as V}from"./ProductForm-d3bcf17c.js";import{D as W,__tla as Y}from"./dict-0449a0a1.js";import{g as Z,__tla as $}from"./index-83c0f446.js";import{__tla as tt}from"./el-card-9c18d881.js";import"./color-6e929987.js";import{__tla as at}from"./Dialog-82c2009c.js";import"./tree-0af4953a.js";import{__tla as rt}from"./index-5a3d9119.js";import{__tla as et}from"./useMessage-a290df31.js";let v,lt=Promise.all([(()=>{try{return U}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return V}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=O(j({__name:"ProductDetailsHeader",props:{product:{type:null,required:!0}},emits:["refresh"],setup(_t,{emit:P}){const p=y(),b=P,f=y([]);return q(async()=>{f.value=await Z({})}),(r,_)=>{const x=B,w=M,D=N,s=X,R=K,C=A,H=k,g=E("hasPermi");return h(),I(z,null,[l("div",null,[l("div",d,[l("div",null,[t(w,null,{default:a(()=>[t(x,null,{default:a(()=>[l("span",m,c(r.product.name),1)]),_:1})]),_:1})]),l("div",null,[T((h(),F(D,{onClick:_[0]||(_[0]=u=>{return e="update",o=r.product.id,void p.value.open(e,o);var e,o})},{default:a(()=>[n(" \u7F16\u8F91 ")]),_:1})),[[g,["crm:product:update"]]])])])]),t(H,{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(c((e=(u=i(f))==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(R,{type:i(W).CRM_PRODUCT_UNIT,value:r.product.unit},null,8,["type","value"])]),_:1}),t(s,{label:"\u4EA7\u54C1\u4EF7\u683C"},{default:a(()=>[n(c(i(J)(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(Q,{ref_key:"formRef",ref:p,onSuccess:_[1]||(_[1]=u=>b("refresh"))},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/product/detail/ProductDetailsHeader.vue"]])});export{lt as __tla,v as default};
|