1 |
- import{d as v,L as y,r as u,u as x,x as h,a_ as C,a as r,o as D,c as F,i as a,w as i,F as P,W as R,X as V,E as j}from"./index-df709923.js";import{_ as z}from"./OperateLogV2-5c976695.js";import{u as E}from"./tagsView-38c5284d.js";import{g as I,a as L}from"./ProductForm.vue_vue_type_script_setup_true_lang-8cceed04.js";import{_ as N}from"./ProductDetailsHeader.vue_vue_type_script_setup_true_lang-6093e081.js";import{_ as T}from"./ProductDetailsInfo.vue_vue_type_script_setup_true_lang-d30a3702.js";import"./el-timeline-item-e42986c8.js";import"./formatTime-c6262bd7.js";import"./dict-017bf708.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./Dialog-2f8bd685.js";import"./index-0be58e07.js";import"./tree-fd3a041e.js";import"./index-3b083ee0.js";import"./useMessage-89e9d1aa.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import"./el-card-91c2276d.js";import"./el-descriptions-item-cc479a39.js";import"./DictTag.vue_vue_type_script_lang-6753827b.js";import"./color-6e929987.js";import"./el-collapse-item-ab99f940.js";const W=v({name:"CrmProductDetail",__name:"index",setup(X){const d=y(),l=Number(d.params.id),s=u(!0),m=u({}),e=async t=>{s.value=!0;try{m.value=await I(t),await f(t)}finally{s.value=!1}},p=u([]),f=async t=>{if(!t)return;const o=await L({bizId:t});p.value=o.list},{delView:c}=E(),{currentRoute:_}=x();return h(async()=>{if(!l)return C.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u4EA7\u54C1\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void c(r(_));await e(l)}),(t,o)=>{const n=R,w=z,b=V,g=j;return D(),F(P,null,[a(N,{product:r(m),loading:r(s),onRefresh:o[0]||(o[0]=k=>e(r(l)))},null,8,["product","loading"]),a(g,null,{default:i(()=>[a(b,null,{default:i(()=>[a(n,{label:"\u8BE6\u7EC6\u8D44\u6599"},{default:i(()=>[a(T,{product:r(m)},null,8,["product"])]),_:1}),a(n,{label:"\u64CD\u4F5C\u65E5\u5FD7"},{default:i(()=>[a(w,{"log-list":r(p)},null,8,["log-list"])]),_:1})]),_:1})]),_:1})],64)}}});export{W as default};
|