import{d as C,L as g,r as e,u as v,x as T,a_ as x,a as t,o as N,c as R,i,w as o,F as I,W as M,X as h,E as A}from"./index-6d906b8a.js";import{_ as B}from"./OperateLogV2-a09c9493.js";import{u as D}from"./tagsView-e2746912.js";import{b as F,h as L}from"./index-f38bdcab.js";import{_ as O}from"./ContactDetailsHeader.vue_vue_type_script_setup_true_lang-dd10ba96.js";import{_ as j}from"./ContactDetailsInfo.vue_vue_type_script_setup_true_lang-b16bb058.js";import{_ as E}from"./BusinessList.vue_vue_type_script_setup_true_lang-6c29bb98.js";import{_ as V}from"./PermissionList.vue_vue_type_script_setup_true_lang-5e386419.js";import{B as d}from"./index-e37b7ed5.js";import"./el-timeline-item-4d02b36e.js";import"./formatTime-b48ce278.js";import"./dict-1d5b7a74.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import"./el-card-dcb0121c.js";import"./el-descriptions-item-9d55de2b.js";import"./ContactForm.vue_vue_type_script_setup_true_lang-a8905e53.js";import"./Dialog-7d76582a.js";import"./el-tree-select-73d9f90b.js";import"./index-9879a89b.js";import"./index-4e5c6477.js";import"./index-c797273f.js";import"./tree-fd3a041e.js";import"./useMessage-cb0d0c75.js";import"./el-collapse-item-ee2828c3.js";import"./DictTag.vue_vue_type_script_lang-afe43767.js";import"./color-6e929987.js";import"./index.vue_vue_type_script_setup_true_lang-7766ce4b.js";import"./index-06db4b5a.js";import"./el-link-a9b298fe.js";import"./index-f3408fbd.js";import"./BusinessForm.vue_vue_type_script_setup_true_lang-ca508f5f.js";import"./index-a7394241.js";import"./formatter-12f6527b.js";import"./BusinessListModal.vue_vue_type_script_setup_true_lang-f8d0510c.js";import"./PermissionForm.vue_vue_type_script_setup_true_lang-d6126824.js";const W=C({name:"CrmContactDetail",__name:"index",setup(X){const c=g(),p=Number(c.params.id),s=e(!0),a=e({}),n=async r=>{s.value=!0;try{a.value=await F(r),await f(r)}finally{s.value=!1}},u=e([]),f=async r=>{if(!r)return;const m=await L({bizId:r});u.value=m.list},{delView:_}=D(),{currentRoute:b}=v();return T(async()=>{if(!p)return x.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u8054\u7CFB\u4EBA\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void _(t(b));await n(p)}),(r,m)=>{const l=M,y=B,z=h,w=A;return N(),R(I,null,[i(O,{contact:t(a),loading:t(s),onRefresh:m[0]||(m[0]=k=>n(t(p)))},null,8,["contact","loading"]),i(w,null,{default:o(()=>[i(z,null,{default:o(()=>[i(l,{label:"\u8BE6\u7EC6\u8D44\u6599"},{default:o(()=>[i(j,{contact:t(a)},null,8,["contact"])]),_:1}),i(l,{label:"\u64CD\u4F5C\u65E5\u5FD7"},{default:o(()=>[i(y,{"log-list":t(u)},null,8,["log-list"])]),_:1}),i(l,{label:"\u56E2\u961F\u6210\u5458",lazy:""},{default:o(()=>[i(V,{"biz-id":t(a).id,"biz-type":t(d).CRM_CONTACT},null,8,["biz-id","biz-type"])]),_:1}),i(l,{label:"\u5546\u673A",lazy:""},{default:o(()=>[i(E,{"biz-id":t(a).id,"biz-type":t(d).CRM_CONTACT,"customer-id":t(a).customerId},null,8,["biz-id","biz-type","customer-id"])]),_:1})]),_:1})]),_:1})],64)}}});export{W as default};