1 |
- import{d as w,Y as g,r as e,u as v,b as R,bg as T,a as t,o as x,c as B,f as i,B as o,F as I,a7 as M,a8 as N,J as h}from"./index-39d329c4.js";import{_ as A}from"./OperateLogV2-0bcd0781.js";import{u as D}from"./tagsView-58b1e0b4.js";import{b as F,h as O}from"./index-b97b3218.js";import{_ as V}from"./ContactDetailsHeader.vue_vue_type_script_setup_true_lang-42ab27bb.js";import{_ as j}from"./ContactDetailsInfo.vue_vue_type_script_setup_true_lang-12acbddc.js";import{_ as J}from"./BusinessList.vue_vue_type_script_setup_true_lang-701334fe.js";import{_ as Y}from"./PermissionList.vue_vue_type_script_setup_true_lang-dae3fb0d.js";import{B as d}from"./index-1aac47d6.js";import"./el-timeline-item-548c5a43.js";import"./formatTime-4c4af720.js";import"./dict-0856c143.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-f3ab50e7.js";import"./el-card-5cc80b8a.js";import"./el-descriptions-item-a2a4aeac.js";import"./ContactForm.vue_vue_type_script_setup_true_lang-b31b0828.js";import"./Dialog-6a91c005.js";import"./el-tree-select-2af4c3cc.js";import"./index-1bb0320c.js";import"./index-9e03f1c7.js";import"./index-7e0ef0d5.js";import"./tree-fd3a041e.js";import"./useMessage-47346882.js";import"./el-collapse-item-d4073a86.js";import"./DictTag.vue_vue_type_script_lang-b95bb985.js";import"./color-6e929987.js";import"./index.vue_vue_type_script_setup_true_lang-24521fcb.js";import"./index-e66b1f22.js";import"./el-link-fd77eff1.js";import"./index-ff7238a2.js";import"./BusinessForm.vue_vue_type_script_setup_true_lang-a445bb90.js";import"./index-464ce4fc.js";import"./formatter-20463de3.js";import"./BusinessListModal.vue_vue_type_script_setup_true_lang-ee93b452.js";import"./PermissionForm.vue_vue_type_script_setup_true_lang-a55bf1f1.js";const k=w({name:"CrmContactDetail",__name:"index",setup(q){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 O({bizId:r});u.value=m.list},{delView:b}=D(),{currentRoute:_}=v();return R(async()=>{if(!p)return T.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u8054\u7CFB\u4EBA\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void b(t(_));await n(p)}),(r,m)=>{const l=M,y=A,z=N,C=h;return x(),B(I,null,[i(V,{contact:t(a),loading:t(s),onRefresh:m[0]||(m[0]=E=>n(t(p)))},null,8,["contact","loading"]),i(C,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(Y,{"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(J,{"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{k as default};
|