1 |
- import{d as y,L as b,r as u,u as x,x as h,a_ as C,a as r,o as D,c as I,i as a,w as i,F as P,W as R,X as V,E as W}from"./index-6d906b8a.js";import{_ as j}from"./OperateLogV2-a09c9493.js";import{u as z}from"./tagsView-e2746912.js";import{g as E,a as F}from"./ProductForm.vue_vue_type_script_setup_true_lang-643d91c7.js";import{_ as L}from"./ProductDetailsHeader.vue_vue_type_script_setup_true_lang-91372f65.js";import{_ as N}from"./ProductDetailsInfo.vue_vue_type_script_setup_true_lang-ffe4534f.js";import"./el-timeline-item-4d02b36e.js";import"./formatTime-b48ce278.js";import"./dict-1d5b7a74.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./Dialog-7d76582a.js";import"./index-2d353c88.js";import"./tree-fd3a041e.js";import"./index-9879a89b.js";import"./useMessage-cb0d0c75.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import"./el-card-dcb0121c.js";import"./el-descriptions-item-9d55de2b.js";import"./DictTag.vue_vue_type_script_lang-afe43767.js";import"./color-6e929987.js";import"./el-collapse-item-ee2828c3.js";const X=y({name:"CrmProductDetail",__name:"index",setup(k){const d=b(),l=Number(d.params.id),s=u(!0),m=u({}),e=async t=>{s.value=!0;try{m.value=await E(t),await f(t)}finally{s.value=!1}},p=u([]),f=async t=>{if(!t)return;const o=await F({bizId:t});p.value=o.list},{delView:c}=z(),{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=j,g=V,v=W;return D(),I(P,null,[a(L,{product:r(m),loading:r(s),onRefresh:o[0]||(o[0]=q=>e(r(l)))},null,8,["product","loading"]),a(v,null,{default:i(()=>[a(g,null,{default:i(()=>[a(n,{label:"\u8BE6\u7EC6\u8D44\u6599"},{default:i(()=>[a(N,{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{X as default};
|