ContactList-1efce243.js 3.1 KB

1
  1. import{d as y,r as v,aP as x,o as I,l as N,w as n,i as t,a,j as L,L as T,J as A,M as C,_ as E,__tla as S}from"./index-390579cd.js";import{_ as k,__tla as O}from"./DictTag-382b26a6.js";import{d as o,__tla as P}from"./formatTime-926628b1.js";import{D as m,__tla as R}from"./dict-6f6b543a.js";import{f as G,__tla as M}from"./index-dd3cecd2.js";import"./color-6e929987.js";let _,U=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{_=E(y({name:"ContactList",__name:"ContactList",props:{contactIds:{type:Array,required:!0,default:()=>[]}},emits:["update:contactIds"],setup(u,{emit:f}){const c=u,l=v([]);x(()=>c.contactIds,i=>{i&&i.length!==0&&(async()=>l.value=await G(c.contactIds))()});const h=f;return(i,j)=>{const e=T,s=k,w=A,g=C;return I(),N(g,{data:a(l),"show-overflow-tooltip":!0,stripe:!0,height:"200"},{default:n(()=>[t(e,{align:"center",fixed:"left",label:"\u59D3\u540D",prop:"name",width:"140"}),t(e,{align:"center",fixed:"left",label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName",width:"120"}),t(e,{align:"center",label:"\u624B\u673A",prop:"mobile",width:"120"}),t(e,{align:"center",label:"\u7535\u8BDD",prop:"telephone",width:"120"}),t(e,{align:"center",label:"\u90AE\u7BB1",prop:"email",width:"120"}),t(e,{align:"center",label:"\u804C\u4F4D",prop:"post",width:"120"}),t(e,{align:"center",label:"\u5730\u5740",prop:"detailAddress",width:"120"}),t(e,{formatter:a(o),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"contactNextTime",width:"180px"},null,8,["formatter"]),t(e,{align:"center",label:"\u5173\u952E\u51B3\u7B56\u4EBA",prop:"master",width:"100"},{default:n(r=>[t(s,{type:a(m).INFRA_BOOLEAN_STRING,value:r.row.master},null,8,["type","value"])]),_:1}),t(e,{align:"center",label:"\u76F4\u5C5E\u4E0A\u7EA7",prop:"parentName",width:"140"}),t(e,{formatter:a(o),align:"center",label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",prop:"contactLastTime",width:"180px"},null,8,["formatter"]),t(e,{align:"center",label:"\u6027\u522B",prop:"sex"},{default:n(r=>[t(s,{type:a(m).SYSTEM_USER_SEX,value:r.row.sex},null,8,["type","value"])]),_:1}),t(e,{align:"center",label:"\u8D1F\u8D23\u4EBA",prop:"ownerUserName",width:"120"}),t(e,{align:"center",label:"\u521B\u5EFA\u4EBA",prop:"creatorName",width:"120"}),t(e,{formatter:a(o),align:"center",label:"\u66F4\u65B0\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),t(e,{formatter:a(o),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),t(e,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),t(e,{align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"130"},{default:n(r=>[t(w,{link:"",type:"danger",onClick:q=>(b=>{const d=l.value.findIndex(p=>p.id===b);d!==-1&&l.value.splice(d,1),h("update:contactIds",l.value.map(p=>p.id))})(r.row.id)},{default:n(()=>[L(" \u79FB\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/crm/followup/components/ContactList.vue"]])});export{U as __tla,_ as default};