1 |
- import{d as j,r as n,u as q,N as A,z as G,T as H,o as s,c as J,i as a,w as _,a as t,D as K,k as y,l as u,S as f,F as Q,s as X,Z as Y,$ as tt,E as at,_ as rt,__tla as _t}from"./index-2f799233.js";import{_ as lt,__tla as et}from"./OperateLogV2-44bfd5f8.js";import{u as it,__tla as ct}from"./tagsView-fe9f5ff0.js";import{g as ot,t as st,l as T,r as ut,p as mt,a as nt,__tla as yt}from"./index-2774892b.js";import ft,{__tla as pt}from"./CustomerForm-a1fa66ab.js";import dt,{__tla as ht}from"./CustomerDetailsInfo-6afa569c.js";import bt,{__tla as zt}from"./CustomerDetailsHeader-b2f830cc.js";import vt,{__tla as wt}from"./ContactList-a3cd2b50.js";import Ct,{__tla as kt}from"./ContractList-76f2b31b.js";import Rt,{__tla as Mt}from"./BusinessList-00086292.js";import Ot,{__tla as Ut}from"./ReceivableList-4f376ac8.js";import St,{__tla as Tt}from"./ReceivablePlanList-1b5b5799.js";import $t,{__tla as Et}from"./PermissionList-9104ab7f.js";import gt,{__tla as xt}from"./TransferForm-8b2209e7.js";import Dt,{__tla as Pt}from"./index-2d90bb31.js";import{B as p,__tla as Ft}from"./index-561803f0.js";import{u as It,__tla as Wt}from"./useMessage-e567ad40.js";import{__tla as Bt}from"./el-timeline-item-e925b025.js";import{__tla as Lt}from"./formatTime-2157894c.js";import{__tla as Nt}from"./dict-20c916e2.js";import{__tla as Vt}from"./Dialog-6fd39e06.js";import{__tla as Zt}from"./el-tree-select-ef4257fc.js";import{__tla as jt}from"./index-0f3b07dc.js";import"./tree-0af4953a.js";import{__tla as qt}from"./index-dd9c509d.js";import{__tla as At}from"./ContentWrap-9da801df.js";import{__tla as Gt}from"./el-card-c64c83d1.js";import{__tla as Ht}from"./el-collapse-item-086c9c49.js";import{__tla as Jt}from"./el-descriptions-item-0a78cef7.js";import{__tla as Kt}from"./DictTag-ea4c6cc2.js";import"./color-6e929987.js";import{__tla as Qt}from"./index-e6cd813f.js";import{__tla as Xt}from"./index-1c180a16.js";import{__tla as Yt}from"./el-link-23decf79.js";import{__tla as ta}from"./index-c3988e20.js";import{__tla as aa}from"./ContactForm-163633f7.js";import{__tla as ra}from"./ContractForm-ea2348c9.js";import{__tla as _a}from"./formatter-4606ca53.js";import{__tla as la}from"./index-85c1764d.js";import{__tla as ea}from"./BusinessForm-00e049e8.js";import{__tla as ia}from"./index-6c9b722b.js";import{__tla as ca}from"./BusinessListModal-369fbc68.js";import{__tla as oa}from"./ReceivableForm-2abdc259.js";import{__tla as sa}from"./ReceivablePlanForm-9ad31193.js";import{__tla as ua}from"./PermissionForm-38cdf7a0.js";import{__tla as ma}from"./FollowUpRecordForm-d5424be6.js";import{__tla as na}from"./Editor-3a97a075.js";import{__tla as ya}from"./BusinessList-41030137.js";import{__tla as fa}from"./ContactList-7cb17d90.js";let $,pa=Promise.all([(()=>{try{return _t}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Ut}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{$=rt(j({name:"CrmCustomerDetail",__name:"index",setup(da){const l=n(0),b=n(!0),e=It(),{delView:E}=it(),{currentRoute:g}=q(),c=n(),r=n({}),d=async()=>{b.value=!0;try{r.value=await ot(l.value),await B()}finally{b.value=!1}},v=n(),x=()=>{var o;(o=v.value)==null||o.open("update",l.value)},w=n(),D=()=>{var o;(o=w.value)==null||o.open("\u5BA2\u6237\u8F6C\u79FB",l.value,st)},P=async()=>{await e.confirm(`\u786E\u5B9A\u9501\u5B9A\u5BA2\u6237\u3010${r.value.name}\u3011 \u5417\uFF1F`),await T(t(l.value),!0),e.success(`\u9501\u5B9A\u5BA2\u6237\u3010${r.value.name}\u3011\u6210\u529F`),await d()},F=async()=>{await e.confirm(`\u786E\u5B9A\u89E3\u9501\u5BA2\u6237\u3010${r.value.name}\u3011 \u5417\uFF1F`),await T(t(l.value),!1),e.success(`\u89E3\u9501\u5BA2\u6237\u3010${r.value.name}\u3011\u6210\u529F`),await d()},I=async()=>{await e.confirm(`\u786E\u5B9A\u9886\u53D6\u5BA2\u6237\u3010${r.value.name}\u3011 \u5417\uFF1F`),await ut([t(l.value)]),e.success(`\u9886\u53D6\u5BA2\u6237\u3010${r.value.name}\u3011\u6210\u529F`),await d()},W=async()=>{await e.confirm(`\u786E\u5B9A\u5C06\u5BA2\u6237\u3010${r.value.name}\u3011\u653E\u5165\u516C\u6D77\u5417\uFF1F`),await mt(t(l.value)),e.success(`\u5BA2\u6237\u3010${r.value.name}\u3011\u653E\u5165\u516C\u6D77\u6210\u529F`),z()},C=n([]),B=async()=>{if(!l.value)return;const o=await nt(l.value);C.value=o.list},z=()=>{E(t(g))},{params:k}=A();return G(()=>{if(!k.id)return e.warning("\u53C2\u6570\u9519\u8BEF\uFF0C\u5BA2\u6237\u4E0D\u80FD\u4E3A\u7A7A\uFF01"),void z();l.value=k.id,d()}),(o,ha)=>{const m=X,i=Y,L=lt,N=tt,V=at,Z=H("hasPermi");return s(),J(Q,null,[a(bt,{customer:t(r),loading:t(b)},{default:_(()=>{var h,R,M,O,U,S;return[(h=t(c))!=null&&h.validateWrite?K((s(),y(m,{key:0,type:"primary",onClick:x},{default:_(()=>[u(" \u7F16\u8F91 ")]),_:1})),[[Z,["crm:customer:update"]]]):f("",!0),(R=t(c))!=null&&R.validateOwnerUser?(s(),y(m,{key:1,type:"primary",onClick:D},{default:_(()=>[u(" \u8F6C\u79FB ")]),_:1})):f("",!0),(M=t(c))!=null&&M.validateWrite?(s(),y(m,{key:2},{default:_(()=>[u("\u66F4\u6539\u6210\u4EA4\u72B6\u6001")]),_:1})):f("",!0),t(r).lockStatus&&((O=t(c))!=null&&O.validateOwnerUser)?(s(),y(m,{key:3,onClick:F},{default:_(()=>[u(" \u89E3\u9501 ")]),_:1})):f("",!0),!t(r).lockStatus&&((U=t(c))!=null&&U.validateOwnerUser)?(s(),y(m,{key:4,onClick:P},{default:_(()=>[u(" \u9501\u5B9A ")]),_:1})):f("",!0),t(r).ownerUserId?f("",!0):(s(),y(m,{key:5,type:"primary",onClick:I},{default:_(()=>[u(" \u9886\u53D6\u5BA2\u6237 ")]),_:1})),t(r).ownerUserId&&((S=t(c))!=null&&S.validateOwnerUser)?(s(),y(m,{key:6,onClick:W},{default:_(()=>[u(" \u5BA2\u6237\u653E\u5165\u516C\u6D77 ")]),_:1})):f("",!0)]}),_:1},8,["customer","loading"]),a(V,null,{default:_(()=>[a(N,null,{default:_(()=>[a(i,{label:"\u8DDF\u8FDB\u8BB0\u5F55"},{default:_(()=>[a(Dt,{"biz-id":t(l),"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"])]),_:1}),a(i,{label:"\u57FA\u672C\u4FE1\u606F"},{default:_(()=>[a(dt,{customer:t(r)},null,8,["customer"])]),_:1}),a(i,{label:"\u8054\u7CFB\u4EBA",lazy:""},{default:_(()=>[a(vt,{"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"])]),_:1}),a(i,{label:"\u56E2\u961F\u6210\u5458"},{default:_(()=>{var h;return[a($t,{ref_key:"permissionListRef",ref:c,"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER,"show-action":!((h=t(c))!=null&&h.isPool)||!1},null,8,["biz-id","biz-type","show-action"])]}),_:1}),a(i,{label:"\u5546\u673A",lazy:""},{default:_(()=>[a(Rt,{"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"])]),_:1}),a(i,{label:"\u5408\u540C",lazy:""},{default:_(()=>[a(Ct,{"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"])]),_:1}),a(i,{label:"\u56DE\u6B3E",lazy:""},{default:_(()=>[a(St,{"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"]),a(Ot,{"biz-id":t(r).id,"biz-type":t(p).CRM_CUSTOMER},null,8,["biz-id","biz-type"])]),_:1}),a(i,{label:"\u64CD\u4F5C\u65E5\u5FD7"},{default:_(()=>[a(L,{"log-list":t(C)},null,8,["log-list"])]),_:1}),a(i,{label:"\u56DE\u8BBF",lazy:""},{default:_(()=>[u("TODO \u5F85\u5F00\u53D1")]),_:1})]),_:1})]),_:1}),a(ft,{ref_key:"formRef",ref:v,onSuccess:d},null,512),a(gt,{ref_key:"crmTransferFormRef",ref:w,onSuccess:z},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/crm/customer/detail/index.vue"]])});export{pa as __tla,$ as default};
|