index-99b809d3.js 7.3 KB

1
  1. import{d as W,r as d,u as X,w as Z,b as j,a4 as $,o as u,c as y,f as e,A as t,a as l,a5 as D,F as b,R as S,C as _,D as c,k as z,E as L,a9 as ee,V as ae,S as le,U as te,Q as re,J as oe,W as ne,X as ue,Y as pe,Z as ie,_ as se,__tla as de}from"./index-286756b9.js";import{_ as ce,__tla as _e}from"./index-ed6c67a8.js";import{_ as me,__tla as fe}from"./DictTag-f72b04ca.js";import{E as ve,__tla as ye}from"./el-link-c30faa98.js";import{_ as be,__tla as he}from"./ContentWrap-83998678.js";import{a as V,D as i,__tla as we}from"./dict-82dca549.js";import{d as h,__tla as ge}from"./formatTime-83e416ef.js";import{d as xe}from"./download-20922b56.js";import{d as Ce,f as Re,__tla as Ue}from"./index-dd561bce.js";import{u as Se,__tla as Ve}from"./useMessage-084b1e70.js";import{__tla as Te}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Ee}from"./el-card-d3d5a654.js";let F,Ne=Promise.all([(()=>{try{return de}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ee}catch{}})()]).then(async()=>{F=se(W({name:"CrmCustomerPool",__name:"index",setup(ke){const A=Se(),w=d(!0),T=d(0),E=d([]),r=d({pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:!0}),N=d(),g=d(!1),m=async()=>{w.value=!0;try{const p=await Ce(r.value);E.value=p.list,T.value=p.total}finally{w.value=!1}},f=()=>{r.value.pageNo=1,m()},{currentRoute:P,push:Y}=X(),k=p=>{Y({name:"CrmCustomerDetail",params:{id:p}})},q=async()=>{try{await A.exportConfirm(),g.value=!0;const p=await Re(r.value);xe.excel(p,"\u5BA2\u6237.xls")}catch{}finally{g.value=!1}};return Z(()=>P.value,()=>{m()}),j(()=>{m()}),(p,n)=>{const M=ee,s=ae,x=le,C=te,R=re,U=oe,K=ne,I=be,o=ue,O=ve,v=me,B=pe,G=ce,H=$("hasPermi"),J=ie;return u(),y(b,null,[e(I,null,{default:t(()=>[e(K,{ref_key:"queryFormRef",ref:N,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(s,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name"},{default:t(()=>[e(M,{modelValue:l(r).name,"onUpdate:modelValue":n[0]||(n[0]=a=>l(r).name=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0",onKeyup:D(f,["enter"])},null,8,["modelValue"])]),_:1}),e(s,{label:"\u624B\u673A",prop:"mobile"},{default:t(()=>[e(M,{modelValue:l(r).mobile,"onUpdate:modelValue":n[1]||(n[1]=a=>l(r).mobile=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",onKeyup:D(f,["enter"])},null,8,["modelValue"])]),_:1}),e(s,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId"},{default:t(()=>[e(C,{modelValue:l(r).industryId,"onUpdate:modelValue":n[2]||(n[2]=a=>l(r).industryId=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"},{default:t(()=>[(u(!0),y(b,null,S(l(V)(l(i).CRM_CUSTOMER_INDUSTRY),a=>(u(),_(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level"},{default:t(()=>[e(C,{modelValue:l(r).level,"onUpdate:modelValue":n[3]||(n[3]=a=>l(r).level=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7B49\u7EA7"},{default:t(()=>[(u(!0),y(b,null,S(l(V)(l(i).CRM_CUSTOMER_LEVEL),a=>(u(),_(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u5BA2\u6237\u6765\u6E90",prop:"source"},{default:t(()=>[e(C,{modelValue:l(r).source,"onUpdate:modelValue":n[4]||(n[4]=a=>l(r).source=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u6765\u6E90"},{default:t(()=>[(u(!0),y(b,null,S(l(V)(l(i).CRM_CUSTOMER_SOURCE),a=>(u(),_(x,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,null,{default:t(()=>[e(U,{onClick:f},{default:t(()=>[e(R,{class:"mr-5px",icon:"ep:search"}),c(" \u641C\u7D22 ")]),_:1}),e(U,{onClick:n[5]||(n[5]=a=>(N.value.resetFields(),r.value={pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:!0},void f()))},{default:t(()=>[e(R,{class:"mr-5px",icon:"ep:refresh"}),c(" \u91CD\u7F6E ")]),_:1}),z((u(),_(U,{loading:l(g),plain:"",type:"success",onClick:q},{default:t(()=>[e(R,{class:"mr-5px",icon:"ep:download"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[H,["crm:customer:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(I,null,{default:t(()=>[z((u(),_(B,{data:l(E),"show-overflow-tooltip":!0,stripe:!0},{default:t(()=>[e(o,{align:"center",label:"\u7F16\u53F7",prop:"id"}),e(o,{align:"center",label:"\u5BA2\u6237\u540D\u79F0",prop:"name",width:"160"},{default:t(a=>[e(O,{underline:!1,type:"primary",onClick:Q=>k(a.row.id)},{default:t(()=>[c(L(a.row.name),1)]),_:2},1032,["onClick"])]),_:1}),e(o,{align:"center",label:"\u624B\u673A",prop:"mobile",width:"120"}),e(o,{align:"center",label:"\u7535\u8BDD",prop:"telephone",width:"120"}),e(o,{align:"center",label:"\u5BA2\u6237\u6765\u6E90",prop:"source",width:"100"},{default:t(a=>[e(v,{type:l(i).CRM_CUSTOMER_SOURCE,value:a.row.source},null,8,["type","value"])]),_:1}),e(o,{align:"center",label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId",width:"120"},{default:t(a=>[e(v,{type:l(i).CRM_CUSTOMER_INDUSTRY,value:a.row.industryId},null,8,["type","value"])]),_:1}),e(o,{align:"center",label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level",width:"120"},{default:t(a=>[e(v,{type:l(i).CRM_CUSTOMER_LEVEL,value:a.row.level},null,8,["type","value"])]),_:1}),e(o,{align:"center",label:"\u7F51\u5740",prop:"website",width:"200"}),e(o,{formatter:l(h),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"contactNextTime",width:"180px"},null,8,["formatter"]),e(o,{align:"center",label:"\u5907\u6CE8",prop:"remark",width:"200"}),e(o,{align:"center",label:"\u6210\u4EA4\u72B6\u6001",prop:"dealStatus"},{default:t(a=>[e(v,{type:l(i).INFRA_BOOLEAN_STRING,value:a.row.dealStatus},null,8,["type","value"])]),_:1}),e(o,{align:"center",label:"\u8DDD\u79BB\u8FDB\u5165\u516C\u6D77",prop:"poolDay"},{default:t(a=>[c(L(a.row.poolDay)+"\u5929",1)]),_:1}),e(o,{formatter:l(h),align:"center",label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",prop:"contactLastTime",width:"180px"},null,8,["formatter"]),e(o,{formatter:l(h),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),e(o,{formatter:l(h),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),e(o,{align:"center",label:"\u8D1F\u8D23\u4EBA",prop:"ownerUserName",width:"100px"}),e(o,{align:"center",label:"\u6240\u5C5E\u90E8\u95E8",prop:"ownerUserDeptName",width:"100px"}),e(o,{align:"center",label:"\u521B\u5EFA\u4EBA",prop:"creatorName",width:"100px"}),e(o,{align:"center",fixed:"right",label:"\u64CD\u4F5C","min-width":"150"},{default:t(a=>[e(O,{underline:!1,type:"primary",onClick:Q=>k(a.row.id)},{default:t(()=>[c(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[J,l(w)]]),e(G,{limit:l(r).pageSize,"onUpdate:limit":n[6]||(n[6]=a=>l(r).pageSize=a),page:l(r).pageNo,"onUpdate:page":n[7]||(n[7]=a=>l(r).pageNo=a),total:l(T),onPagination:m},null,8,["limit","page","total"])]),_:1})],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/customer/pool/index.vue"]])});export{Ne as __tla,F as default};