index-ef77252c.js 1.9 KB

1
  1. import{d as v,Y as y,r as u,u as x,b as R,bg as h,a as r,o as C,c as D,f as a,B as i,F as I,a7 as P,a8 as V,J as j}from"./index-39d329c4.js";import{_ as z}from"./OperateLogV2-0bcd0781.js";import{u as B}from"./tagsView-58b1e0b4.js";import{g as F,a as J}from"./ProductForm.vue_vue_type_script_setup_true_lang-817b2bc1.js";import{_ as N}from"./ProductDetailsHeader.vue_vue_type_script_setup_true_lang-cf5e01b6.js";import{_ as Y}from"./ProductDetailsInfo.vue_vue_type_script_setup_true_lang-98151590.js";import"./el-timeline-item-548c5a43.js";import"./formatTime-4c4af720.js";import"./dict-0856c143.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./Dialog-6a91c005.js";import"./index-288a9773.js";import"./tree-fd3a041e.js";import"./index-1bb0320c.js";import"./useMessage-47346882.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-f3ab50e7.js";import"./el-card-5cc80b8a.js";import"./el-descriptions-item-a2a4aeac.js";import"./DictTag.vue_vue_type_script_lang-b95bb985.js";import"./color-6e929987.js";import"./el-collapse-item-d4073a86.js";const k=v({name:"CrmProductDetail",__name:"index",setup(q){const d=y(),l=Number(d.params.id),s=u(!0),m=u({}),e=async t=>{s.value=!0;try{m.value=await F(t),await f(t)}finally{s.value=!1}},p=u([]),f=async t=>{if(!t)return;const o=await J({bizId:t});p.value=o.list},{delView:c}=B(),{currentRoute:_}=x();return R(async()=>{if(!l)return h.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u4EA7\u54C1\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void c(r(_));await e(l)}),(t,o)=>{const n=P,w=z,b=V,g=j;return C(),D(I,null,[a(N,{product:r(m),loading:r(s),onRefresh:o[0]||(o[0]=A=>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(Y,{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{k as default};