index-73611a7b.js 1.9 KB

1
  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-92f7a16c.js";import{_ as j}from"./OperateLogV2-b26d4e4a.js";import{u as z}from"./tagsView-7a231d41.js";import{g as E,a as F}from"./ProductForm.vue_vue_type_script_setup_true_lang-1f32ab3b.js";import{_ as L}from"./ProductDetailsHeader.vue_vue_type_script_setup_true_lang-deaa91f8.js";import{_ as N}from"./ProductDetailsInfo.vue_vue_type_script_setup_true_lang-a5971299.js";import"./el-timeline-item-0c393755.js";import"./formatTime-71947df8.js";import"./dict-b31d62c6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./Dialog-524c7d28.js";import"./index-79417959.js";import"./tree-0af4953a.js";import"./index-8a63940c.js";import"./useMessage-f6048a9f.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-93cdc892.js";import"./el-card-e60c275e.js";import"./el-descriptions-item-fcf01bb5.js";import"./DictTag.vue_vue_type_script_lang-34041e25.js";import"./color-6e929987.js";import"./el-collapse-item-8326507b.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};