1 |
- import{d as X,r as s,u as j,w as H,b as Z,a3 as $,o as u,c as y,f as e,A as t,a as l,a4 as D,F as b,Q as S,C as c,D as _,k as L,E as z,a8 as ee,U as ae,R as le,S as te,_ as re,J as oe,V as ne,W as ue,X as pe,Y as ie,__tla as de}from"./index-f65577b8.js";import{_ as se,__tla as _e}from"./index.vue_vue_type_script_setup_true_lang-53598c8e.js";import{_ as ce,__tla as me}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{E as fe,__tla as ve}from"./el-link-88f90ac7.js";import{_ as ye,__tla as be}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{a as V,D as i,__tla as he}from"./dict-fa3ffbd2.js";import{d as h,__tla as we}from"./formatTime-411ed1a1.js";import{d as ge}from"./download-20922b56.js";import{d as Ce,f as xe,__tla as Re}from"./index-a090df88.js";import{u as Ue,__tla as Se}from"./useMessage-4dbf0ae4.js";import{__tla as Ve}from"./index-1896261a.js";import"./color-6e929987.js";import{__tla as Ee}from"./el-card-ab53e6aa.js";let F,Te=Promise.all([(()=>{try{return de}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ee}catch{}})()]).then(async()=>{F=X({name:"CrmCustomerPool",__name:"index",setup(Ne){const P=Ue(),w=s(!0),E=s(0),T=s([]),r=s({pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:!0}),N=s(),g=s(!1),m=async()=>{w.value=!0;try{const p=await Ce(r.value);T.value=p.list,E.value=p.total}finally{w.value=!1}},f=()=>{r.value.pageNo=1,m()},{currentRoute:A,push:Y}=j(),k=p=>{Y({name:"CrmCustomerDetail",params:{id:p}})},B=async()=>{try{await P.exportConfirm(),g.value=!0;const p=await xe(r.value);ge.excel(p,"\u5BA2\u6237.xls")}catch{}finally{g.value=!1}};return H(()=>A.value,()=>{m()}),Z(()=>{m()}),(p,n)=>{const M=ee,d=ae,C=le,x=te,R=re,U=oe,G=ne,I=ye,o=ue,O=fe,v=ce,K=pe,q=se,J=$("hasPermi"),Q=ie;return u(),y(b,null,[e(I,null,{default:t(()=>[e(G,{ref_key:"queryFormRef",ref:N,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(d,{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(d,{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(d,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId"},{default:t(()=>[e(x,{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(),c(C,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level"},{default:t(()=>[e(x,{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(),c(C,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u5BA2\u6237\u6765\u6E90",prop:"source"},{default:t(()=>[e(x,{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(),c(C,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(d,null,{default:t(()=>[e(U,{onClick:f},{default:t(()=>[e(R,{class:"mr-5px",icon:"ep:search"}),_(" \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"}),_(" \u91CD\u7F6E ")]),_:1}),L((u(),c(U,{loading:l(g),plain:"",type:"success",onClick:B},{default:t(()=>[e(R,{class:"mr-5px",icon:"ep:download"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[J,["crm:customer:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(I,null,{default:t(()=>[L((u(),c(K,{data:l(T),"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:W=>k(a.row.id)},{default:t(()=>[_(z(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=>[_(z(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:W=>k(a.row.id)},{default:t(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[Q,l(w)]]),e(q,{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(E),onPagination:m},null,8,["limit","page","total"])]),_:1})],64)}}})});export{Te as __tla,F as default};
|