1 |
- 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-92f7a16c.js";import{_ as B}from"./OperateLogV2-b26d4e4a.js";import{u as D}from"./tagsView-7a231d41.js";import{b as F,h as L}from"./index-d1ecf879.js";import{_ as O}from"./ContactDetailsHeader.vue_vue_type_script_setup_true_lang-94b7d7f6.js";import{_ as j}from"./ContactDetailsInfo.vue_vue_type_script_setup_true_lang-8ef1ba2b.js";import{_ as E}from"./BusinessList.vue_vue_type_script_setup_true_lang-28c8ca37.js";import{_ as V}from"./PermissionList.vue_vue_type_script_setup_true_lang-c60f8428.js";import{B as d}from"./index-7384e14c.js";import"./el-timeline-item-0c393755.js";import"./formatTime-71947df8.js";import"./dict-b31d62c6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-93cdc892.js";import"./el-card-e60c275e.js";import"./el-descriptions-item-fcf01bb5.js";import"./ContactForm.vue_vue_type_script_setup_true_lang-baabbe3b.js";import"./Dialog-524c7d28.js";import"./el-tree-select-4c0548d3.js";import"./index-8a63940c.js";import"./index-59b0dd5d.js";import"./index-1f08773e.js";import"./tree-0af4953a.js";import"./useMessage-f6048a9f.js";import"./el-collapse-item-8326507b.js";import"./DictTag.vue_vue_type_script_lang-34041e25.js";import"./color-6e929987.js";import"./index.vue_vue_type_script_setup_true_lang-059ec67a.js";import"./index-579dde8f.js";import"./el-link-a951989a.js";import"./index-cfbb7639.js";import"./BusinessForm.vue_vue_type_script_setup_true_lang-a2154c6f.js";import"./index-9676f831.js";import"./formatter-df32efe7.js";import"./BusinessListModal.vue_vue_type_script_setup_true_lang-cb235415.js";import"./PermissionForm.vue_vue_type_script_setup_true_lang-306d5fee.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};
|