import{d as E,r as n,x as L,u as A,w as B,o as y,c as O,f as a,B as l,E as g,k as U,a as r,A as D,G as F,F as G,_ as M,K as j,L as P,X as K,Y as X,Z as Y,__tla as Z}from"./index-92ad187a.js";import{_ as q,__tla as H}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as J,__tla as Q}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";import{_ as V,__tla as W}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{E as $,__tla as aa}from"./el-link-3ccf1de9.js";import{g as ta,__tla as ea}from"./index-4d6f5b36.js";import{_ as ra,__tla as la}from"./ContactForm.vue_vue_type_script_setup_true_lang-fa106458.js";import{D as sa,__tla as oa}from"./dict-221f3e01.js";import{B as _a,__tla as ia}from"./index-a4b5469a.js";let b,na=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})()]).then(async()=>{b=E({name:"CrmContactList",__name:"ContactList",props:{bizType:{},bizId:{}},setup(h){const o=h,p=n(!0),m=n(0),u=n([]),t=L({pageNo:1,pageSize:10,customerId:void 0}),c=async()=>{p.value=!0;try{t.customerId=void 0;let _={list:[],total:0};if(o.bizType!==_a.CRM_CUSTOMER)return;t.customerId=o.bizId,_=await ta(t),u.value=_.list,m.value=_.total}finally{p.value=!1}},d=n(),v=()=>{d.value.open("create")},{push:C}=A();return B(()=>[o.bizId,o.bizType],()=>{t.pageNo=1,c()},{immediate:!0,deep:!0}),(_,i)=>{const z=M,N=j,I=P,k=$,s=K,w=V,S=X,x=J,R=q,T=Y;return y(),O(G,null,[a(I,{justify:"end"},{default:l(()=>[a(N,{onClick:v},{default:l(()=>[a(z,{class:"mr-5px",icon:"system-uicons:contacts"}),g(" \u521B\u5EFA\u8054\u7CFB\u4EBA ")]),_:1})]),_:1}),a(R,{class:"mt-10px"},{default:l(()=>[U((y(),D(S,{data:r(u),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[a(s,{label:"\u59D3\u540D",fixed:"left",align:"center",prop:"name"},{default:l(e=>[a(k,{type:"primary",underline:!1,onClick:pa=>{return f=e.row.id,void C({name:"CrmContactDetail",params:{id:f}});var f}},{default:l(()=>[g(F(e.row.name),1)]),_:2},1032,["onClick"])]),_:1}),a(s,{label:"\u624B\u673A\u53F7",align:"center",prop:"mobile"}),a(s,{label:"\u804C\u4F4D",align:"center",prop:"post"}),a(s,{label:"\u76F4\u5C5E\u4E0A\u7EA7",align:"center",prop:"parentName"}),a(s,{label:"\u662F\u5426\u5173\u952E\u51B3\u7B56\u4EBA",align:"center",prop:"master"},{default:l(e=>[a(w,{type:r(sa).INFRA_BOOLEAN_STRING,value:e.row.master},null,8,["type","value"])]),_:1})]),_:1},8,["data"])),[[T,r(p)]]),a(x,{total:r(m),page:r(t).pageNo,"onUpdate:page":i[0]||(i[0]=e=>r(t).pageNo=e),limit:r(t).pageSize,"onUpdate:limit":i[1]||(i[1]=e=>r(t).pageSize=e),onPagination:c},null,8,["total","page","limit"])]),_:1}),a(ra,{ref_key:"formRef",ref:d,onSuccess:c},null,512)],64)}}})});export{b as _,na as __tla};
