index-CLxiG47p.js 4.2 KB

12
  1. var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(a,t,r)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[t]=r,i=(e,a)=>{for(var t in a||(a={}))o.call(a,t)&&l(e,t,a[t]);if(r)for(var t of r(a))s.call(a,t)&&l(e,t,a[t]);return e},n=(e,a,t)=>new Promise(((r,o)=>{var s=e=>{try{i(t.next(e))}catch(a){o(a)}},l=e=>{try{i(t.throw(e))}catch(a){o(a)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,l);i((t=t.apply(e,a)).next())}));import{r as p,R as m}from"./index-CMRBJjvD.js";/* empty css */import{_ as u}from"./FollowDialog.vue_vue_type_script_setup_true_lang-wZSdVYsv.js";import{_ as c,A as d}from"./index-Fk3Id8UH.js";import{u as _,_ as h}from"./useTable-BzTjZxYJ.js";import{_ as g}from"./user-search.vue_vue_type_script_setup_true_lang-DJgx6VNZ.js";import{f as v}from"./followApi-BGlfMBwY.js";import{c as f}from"./companyRelationApi-CHQADlrv.js";import{j as y,r as j,ac as b,_ as w,Q as x,G as P,v as C,u as O,i as L,H as R,a6 as S,D as F,a7 as I,X as D,ai as k,n as z,k as A,aj as T}from"./vendor-C0fQtjEp.js";import{_ as U}from"./_plugin-vue_export-helper-BCo6x5W8.js";/* empty css *//* empty css *//* empty css */import"./ArtUploadImgs.vue_vue_type_script_setup_true_lang-QDUeeLoP.js";/* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./index-CrMjw91B.js";import"./index-bOArzdpt.js";/* empty css */const q={class:"user-page art-full-height"};var V;const G=U(y((V=i({},{name:"CompanyFollow"}),a(V,t({__name:"index",setup(e){const a=j(!1),t=j(!1),r=j({}),o=j({name:"",phone:"",company_id:parseInt(b().query.company_id)||"",date:b().query.date||""}),s=j([]);(()=>{n(this,null,(function*(){yield f.selectList().then((e=>{s.value=e}))}))})();const{columns:l,columnChecks:y,data:U,loading:V,pagination:G,getData:X,searchParams:E,resetSearchParams:H,handleSizeChange:J,handleCurrentChange:N,refreshData:Q}=_({core:{apiFn:v.companyList,apiParams:i({current:1,size:20},o.value),excludeParams:["daterange"],columnsFactory:()=>[{prop:"first_name",label:"校园(园区)"},{prop:"second_name",label:"关系人"},{prop:"position",label:"职位"},{prop:"phone",label:"手机号"},{prop:"weixin",label:"微信号"},{prop:"chat_imgs",label:"微信聊天记录",formatter:e=>e.chat_imgs.length>0?A(T,{src:e.chat_imgs[0],previewSrcList:e.chat_imgs,showProgress:!0,fit:"cover",title:"点击预览全部图片",style:{"max-width":"50px","max-height":"50px"},previewTeleported:!0}):""},{prop:"user_name",label:"跟进人员"},{prop:"create_date",label:"跟进时间"},{prop:"operation",label:"操作",width:120,fixed:"right",formatter:e=>A("div",[A(d,{type:"view",onClick:()=>W(e.id)})])}]}}),W=e=>{p.push({path:m.CompanyFollowInfo,query:{id:e}})},Y=e=>{Object.assign(E,i({},e)),X()},Z=()=>n(this,null,(function*(){try{a.value=!1,t.value=!1,r.value={},setTimeout((()=>{Q()}),1e3)}catch(e){}}));return(e,a)=>{const i=h,n=c,p=u,m=k,d=w("ripple"),_=w("auth");return P(),x("div",q,[C(g,{modelValue:O(o),"onUpdate:modelValue":a[0]||(a[0]=e=>L(o)?o.value=e:null),onSearch:Y,onReset:O(H),selectList:O(s)},null,8,["modelValue","onReset","selectList"]),C(m,{class:"art-table-card",shadow:"never"},{default:R((()=>[C(i,{columns:O(y),"onUpdate:columns":a[2]||(a[2]=e=>L(y)?y.value=e:null),onRefresh:O(Q)},{left:R((()=>[S((P(),F(O(I),{type:"primary",onClick:a[1]||(a[1]=e=>{z((()=>{t.value=!0}))})},{default:R((()=>a[4]||(a[4]=[D("新增跟进记录")]))),_:1,__:[4]})),[[d],[_,140301]])])),_:1},8,["columns","onRefresh"]),C(n,{loading:O(V),data:O(U),columns:O(l),pagination:O(G),"onPagination:sizeChange":O(J),"onPagination:currentChange":O(N)},null,8,["loading","data","columns","pagination","onPagination:sizeChange","onPagination:currentChange"]),C(p,{visible:O(t),"onUpdate:visible":a[3]||(a[3]=e=>L(t)?t.value=e:null),"user-data":O(r),type:"company",first_id:0,second_id:0,selectList:O(s),onSubmit:Z},null,8,["visible","user-data","selectList"])])),_:1})])}}})))),[["__scopeId","data-v-dcd57867"]]);export{G as default};