TodayCustomer-672eff74.js 5.6 KB

1
  1. import{aA as q,d as G,r as u,u as J,b as Q,o as i,c as b,f as e,A as r,B as W,E as V,a as l,F as y,R as M,D as g,k as X,C as Z,S as j,U as H,V as K,Q as $,J as ee,W as ae,X as le,Y as te,Z as re,_ as oe,__tla as ne}from"./index-0b2503c4.js";import{_ as pe,__tla as ue}from"./index-40a9fc0c.js";import{_ as se,__tla as ie}from"./DictTag-67781daa.js";import{E as ce,__tla as _e}from"./el-link-0940af9a.js";import{_ as de,__tla as me}from"./ContentWrap-b5913fb6.js";import{D as c,__tla as fe}from"./dict-0f5a88e6.js";import{d as _,__tla as ve}from"./formatTime-9069dda3.js";import{__tla as be}from"./index-2c2ac611.js";import"./color-6e929987.js";import{__tla as ye}from"./el-card-fa060bc4.js";let z,ge=Promise.all([(()=>{try{return ne}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ye}catch{}})()]).then(async()=>{let h;h={class:"pb-5 text-xl"},z=oe(G({__name:"TodayCustomer",setup(he){const D=u("\u4ECA\u65E5\u9700\u8054\u7CFB\u5BA2\u6237"),d=u(!0),w=u(0),x=u([]),o=u({pageNo:1,pageSize:10,contactStatus:1,sceneType:1}),S=u(),O=[{label:"\u4ECA\u65E5\u9700\u8054\u7CFB",value:1},{label:"\u5DF2\u903E\u671F",value:2},{label:"\u5DF2\u8054\u7CFB",value:3}],I=[{label:"\u6211\u8D1F\u8D23\u7684",value:1},{label:"\u6211\u8DDF\u8FDB\u7684",value:2},{label:"\u6211\u53C2\u4E0E\u7684",value:3},{label:"\u4E0B\u5C5E\u8D1F\u8D23\u7684",value:4}],m=async()=>{d.value=!0;try{const f=await(async n=>await q.get({url:"/crm/message/todayCustomer",params:n}))(o.value);x.value=f.list,w.value=f.total}finally{d.value=!1}},C=()=>{o.value.pageNo=1,m()},{push:A}=J();return Q(()=>{m()}),(f,n)=>{const T=j,N=H,v=K,R=$,U=ee,F=ae,k=de,t=le,L=ce,s=se,B=te,P=pe,Y=re;return i(),b(y,null,[e(k,null,{default:r(()=>[W("div",h,V(l(D)),1),e(F,{ref_key:"queryFormRef",ref:S,inline:!0,model:l(o),class:"-mb-15px","label-width":"68px"},{default:r(()=>[e(v,{label:"\u72B6\u6001",prop:"contactStatus"},{default:r(()=>[e(N,{modelValue:l(o).contactStatus,"onUpdate:modelValue":n[0]||(n[0]=a=>l(o).contactStatus=a),class:"!w-240px",placeholder:"\u72B6\u6001"},{default:r(()=>[(i(),b(y,null,M(O,(a,p)=>e(T,{label:a.label,value:a.value,key:p},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e(v,{label:"\u5F52\u5C5E",prop:"sceneType"},{default:r(()=>[e(N,{modelValue:l(o).sceneType,"onUpdate:modelValue":n[1]||(n[1]=a=>l(o).sceneType=a),class:"!w-240px",placeholder:"\u5F52\u5C5E"},{default:r(()=>[(i(),b(y,null,M(I,(a,p)=>e(T,{label:a.label,value:a.value,key:p},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e(v,null,{default:r(()=>[e(U,{onClick:C},{default:r(()=>[e(R,{class:"mr-5px",icon:"ep:search"}),g(" \u641C\u7D22 ")]),_:1}),e(U,{onClick:n[2]||(n[2]=a=>{return p=void 0,S.value.resetFields(),o.value={pageNo:1,pageSize:10,contactStatus:1,sceneType:1},p&&p(),void C();var p})},{default:r(()=>[e(R,{class:"mr-5px",icon:"ep:refresh"}),g(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,null,{default:r(()=>[X((i(),Z(B,{data:l(x),"show-overflow-tooltip":!0,stripe:!0},{default:r(()=>[e(t,{align:"center",label:"\u7F16\u53F7",prop:"id"}),e(t,{align:"center",label:"\u5BA2\u6237\u540D\u79F0",prop:"name",width:"160"},{default:r(a=>[e(L,{underline:!1,type:"primary",onClick:p=>{return E=a.row.id,void A({name:"CrmCustomerDetail",params:{id:E}});var E}},{default:r(()=>[g(V(a.row.name),1)]),_:2},1032,["onClick"])]),_:1}),e(t,{align:"center",label:"\u624B\u673A",prop:"mobile",width:"120"}),e(t,{align:"center",label:"\u7535\u8BDD",prop:"telephone",width:"120"}),e(t,{align:"center",label:"\u5BA2\u6237\u6765\u6E90",prop:"source",width:"100"},{default:r(a=>[e(s,{type:l(c).CRM_CUSTOMER_SOURCE,value:a.row.source},null,8,["type","value"])]),_:1}),e(t,{align:"center",label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId",width:"120"},{default:r(a=>[e(s,{type:l(c).CRM_CUSTOMER_INDUSTRY,value:a.row.industryId},null,8,["type","value"])]),_:1}),e(t,{align:"center",label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level",width:"120"},{default:r(a=>[e(s,{type:l(c).CRM_CUSTOMER_LEVEL,value:a.row.level},null,8,["type","value"])]),_:1}),e(t,{align:"center",label:"\u7F51\u5740",prop:"website",width:"200"}),e(t,{formatter:l(_),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"contactNextTime",width:"180px"},null,8,["formatter"]),e(t,{align:"center",label:"\u5907\u6CE8",prop:"remark",width:"200"}),e(t,{align:"center",label:"\u6210\u4EA4\u72B6\u6001",prop:"dealStatus"},{default:r(a=>[e(s,{type:l(c).INFRA_BOOLEAN_STRING,value:a.row.dealStatus},null,8,["type","value"])]),_:1}),e(t,{formatter:l(_),align:"center",label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",prop:"contactLastTime",width:"180px"},null,8,["formatter"]),e(t,{formatter:l(_),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),e(t,{formatter:l(_),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),e(t,{align:"center",label:"\u8D1F\u8D23\u4EBA",prop:"ownerUserName",width:"100px"}),e(t,{align:"center",label:"\u6240\u5C5E\u90E8\u95E8",prop:"ownerUserDeptName",width:"100px"}),e(t,{align:"center",label:"\u521B\u5EFA\u4EBA",prop:"creatorName",width:"100px"})]),_:1},8,["data"])),[[Y,l(d)]]),e(P,{limit:l(o).pageSize,"onUpdate:limit":n[3]||(n[3]=a=>l(o).pageSize=a),page:l(o).pageNo,"onUpdate:page":n[4]||(n[4]=a=>l(o).pageNo=a),total:l(w),onPagination:m},null,8,["limit","page","total"])]),_:1})],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/message/tables/TodayCustomer.vue"]])});export{ge as __tla,z as default};