ContactList-6e87ad80.js 3.1 KB

1
  1. import{d as x,r as y,aM as v,o as I,x as N,w as n,f as t,a,y as T,I as C,G as L,J as S,_ as k,__tla as A}from"./index-62b7dfb7.js";import{_ as E,__tla as R}from"./DictTag-98db03f0.js";import{d as i,__tla as z}from"./formatTime-2a1cb067.js";import{D as m,__tla as D}from"./dict-b3b654d0.js";import{f as G,__tla as M}from"./index-8999125b.js";import"./color-6e929987.js";let _,O=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return M}catch{}})()]).then(async()=>{_=k(x({name:"ContactList",__name:"ContactList",props:{contactIds:{type:Array,required:!0,default:()=>[]}},emits:["update:contactIds"],setup(u,{emit:f}){const c=u,l=y([]);v(()=>c.contactIds,o=>{o&&o.length!==0&&(async()=>l.value=await G(c.contactIds))()});const h=f;return(o,U)=>{const e=C,s=E,w=L,g=S;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(i),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(i),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(i),align:"center",label:"\u66F4\u65B0\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),t(e,{formatter:a(i),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(()=>[T(" \u79FB\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/crm/followup/components/ContactList.vue"]])});export{O as __tla,_ as default};