1 |
- import{d as j,r as s,u as Q,N as W,y as Z,S as $,o as u,c as v,i as e,w as t,a as l,T as D,F as b,B as S,k as c,l as _,C as L,t as F,X as ee,H as ae,D as le,G as te,_ as re,q as oe,I as ne,J as ue,K as pe,L as ie,__tla as de}from"./index-abaca7e8.js";import{_ as se,__tla as _e}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{_ as ce,__tla as me}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import{E as fe,__tla as ye}from"./el-link-4b1b248f.js";import{_ as ve,__tla as be}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{a as V,D as i,__tla as he}from"./dict-885a7988.js";import{d as h,__tla as we}from"./formatTime-0c1ba065.js";import{d as ge}from"./download-20922b56.js";import{d as Ce,f as xe,__tla as Re}from"./index-c694a582.js";import{u as Ue,__tla as Se}from"./useMessage-7c79d01b.js";import{__tla as Ve}from"./index-e37a1056.js";import"./color-6e929987.js";import{__tla as Te}from"./el-card-ff5a526a.js";let z,Ne=Promise.all([(()=>{try{return de}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ye}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 Te}catch{}})()]).then(async()=>{z=j({name:"CrmCustomerPool",__name:"index",setup(Ee){const P=Ue(),w=s(!0),T=s(0),N=s([]),r=s({pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:!0}),E=s(),g=s(!1),m=async()=>{w.value=!0;try{const p=await Ce(r.value);N.value=p.list,T.value=p.total}finally{w.value=!1}},f=()=>{r.value.pageNo=1,m()},{currentRoute:K,push:q}=Q(),k=p=>{q({name:"CrmCustomerDetail",params:{id:p}})},A=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 W(()=>K.value,()=>{m()}),Z(()=>{m()}),(p,n)=>{const I=ee,d=ae,C=le,x=te,R=re,U=oe,B=ne,M=ve,o=ue,O=fe,y=ce,G=pe,H=se,J=$("hasPermi"),Y=ie;return u(),v(b,null,[e(M,null,{default:t(()=>[e(B,{ref_key:"queryFormRef",ref:E,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(I,{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(I,{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),v(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),v(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),v(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=>(E.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:A},{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(M,null,{default:t(()=>[L((u(),c(G,{data:l(N),"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:X=>k(a.row.id)},{default:t(()=>[_(F(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(y,{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(y,{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(y,{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(y,{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=>[_(F(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:X=>k(a.row.id)},{default:t(()=>[_(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[Y,l(w)]]),e(H,{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)}}})});export{Ne as __tla,z as default};
|