index-91033e79.js 2.9 KB

1
  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 R,c as h,i,w as o,F as M,W as N,X as O,E as A}from"./index-abad4030.js";import{_ as B}from"./OperateLogV2-22f1997e.js";import{u as D}from"./tagsView-2e2b378d.js";import{b as F,h as I}from"./index-02f57024.js";import{_ as L}from"./ContactDetailsHeader.vue_vue_type_script_setup_true_lang-f2f968f0.js";import{_ as j}from"./ContactDetailsInfo.vue_vue_type_script_setup_true_lang-e44ac455.js";import{_ as E}from"./BusinessList.vue_vue_type_script_setup_true_lang-5bc7ec0a.js";import{_ as V}from"./PermissionList.vue_vue_type_script_setup_true_lang-4192e35f.js";import{B as d}from"./index-4b381152.js";import"./el-timeline-item-6199607c.js";import"./formatTime-775c05ee.js";import"./dict-a9a468ec.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-7f96d0ff.js";import"./el-card-ae8ad827.js";import"./el-descriptions-item-d2e860f6.js";import"./ContactForm.vue_vue_type_script_setup_true_lang-99de829d.js";import"./Dialog-59824a83.js";import"./el-tree-select-25ec6c82.js";import"./index-95cf53fe.js";import"./index-4605acb2.js";import"./index-9cd5ff7c.js";import"./tree-0af4953a.js";import"./useMessage-7954cb2f.js";import"./el-collapse-item-fdec7875.js";import"./DictTag.vue_vue_type_script_lang-dadba9ff.js";import"./color-6e929987.js";import"./index.vue_vue_type_script_setup_true_lang-bec51e2c.js";import"./index-84234f22.js";import"./el-link-0620348e.js";import"./index-1984e73e.js";import"./BusinessForm.vue_vue_type_script_setup_true_lang-407e1aea.js";import"./index-8fd703ab.js";import"./formatter-cd4718f0.js";import"./BusinessListModal.vue_vue_type_script_setup_true_lang-4593cf4a.js";import"./PermissionForm.vue_vue_type_script_setup_true_lang-9257def9.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 I({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=N,y=B,z=O,w=A;return R(),h(M,null,[i(L,{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};