index-DCGSRD3M.js 4.3 KB

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