1 |
- import{d as te,A as re,r as i,u as oe,N as ne,y as ue,S as pe,o as p,c as x,i as e,w as t,a as l,T as P,F as k,B as M,k as s,l as c,C as y,Q as ie,t as q,X as se,H as ce,D as de,G as _e,_ as me,q as fe,I as ye,Y as ve,Z as be,J as he,K as we,L as ge,__tla as Ce}from"./index-abaca7e8.js";import{_ as xe,__tla as ke}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{_ as Re,__tla as Se}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import{E as Te,__tla as Ue}from"./el-link-4b1b248f.js";import{_ as Ve,__tla as Ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{a as O,D as d,__tla as Ee}from"./dict-885a7988.js";import{d as R,__tla as Ie}from"./formatTime-0c1ba065.js";import{d as Me}from"./download-20922b56.js";import{d as Oe,e as De,f as Le,__tla as Fe}from"./index-c694a582.js";import{_ as ze,__tla as Ae}from"./CustomerForm.vue_vue_type_script_setup_true_lang-82036288.js";import{u as Ke,__tla as Ye}from"./useMessage-7c79d01b.js";import{__tla as Be}from"./index-e37a1056.js";import"./color-6e929987.js";import{__tla as Pe}from"./el-card-ff5a526a.js";import{__tla as qe}from"./Dialog-a2f7c92a.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ge}from"./el-tree-select-ae8992fc.js";import{__tla as He}from"./index-a96df22c.js";import"./tree-fd3a041e.js";import{__tla as Je}from"./index-aafccc71.js";let G,Qe=Promise.all([(()=>{try{return Ce}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Je}catch{}})()]).then(async()=>{G=te({name:"CrmCustomer",__name:"index",setup(Xe){const S=Ke(),{t:H}=re(),T=i(!0),D=i(0),L=i([]),r=i({pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:void 0}),F=i(),U=i(!1),V=i("1"),J=u=>{switch(u.paneName){case"1":b(()=>{r.value.sceneType=1});break;case"2":b(()=>{r.value.sceneType=2});break;case"3":b(()=>{r.value.sceneType=3})}},_=async()=>{T.value=!0;try{const u=await Oe(r.value);L.value=u.list,D.value=u.total}finally{T.value=!1}},v=()=>{r.value.pageNo=1,_()},b=(u=void 0)=>{F.value.resetFields(),r.value={pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:void 0},u&&u(),v()},{currentRoute:Q,push:X}=oe(),z=i(),A=(u,o)=>{z.value.open(u,o)},Z=async()=>{try{await S.exportConfirm(),U.value=!0;const u=await Le(r.value);Me.excel(u,"\u5BA2\u6237.xls")}catch{}finally{U.value=!1}};return ne(()=>Q.value,()=>{_()}),ue(()=>{_()}),(u,o)=>{const K=se,m=ce,N=de,E=_e,h=me,f=fe,j=ye,Y=Ve,I=ve,W=be,n=he,$=Te,w=Re,ee=we,ae=xe,g=pe("hasPermi"),le=ge;return p(),x(k,null,[e(Y,null,{default:t(()=>[e(j,{ref_key:"queryFormRef",ref:F,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(m,{label:"\u5BA2\u6237\u540D\u79F0",prop:"name"},{default:t(()=>[e(K,{modelValue:l(r).name,"onUpdate:modelValue":o[0]||(o[0]=a=>l(r).name=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u540D\u79F0",onKeyup:P(v,["enter"])},null,8,["modelValue"])]),_:1}),e(m,{label:"\u624B\u673A",prop:"mobile"},{default:t(()=>[e(K,{modelValue:l(r).mobile,"onUpdate:modelValue":o[1]||(o[1]=a=>l(r).mobile=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",onKeyup:P(v,["enter"])},null,8,["modelValue"])]),_:1}),e(m,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId"},{default:t(()=>[e(E,{modelValue:l(r).industryId,"onUpdate:modelValue":o[2]||(o[2]=a=>l(r).industryId=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u884C\u4E1A"},{default:t(()=>[(p(!0),x(k,null,M(l(O)(l(d).CRM_CUSTOMER_INDUSTRY),a=>(p(),s(N,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level"},{default:t(()=>[e(E,{modelValue:l(r).level,"onUpdate:modelValue":o[3]||(o[3]=a=>l(r).level=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u7B49\u7EA7"},{default:t(()=>[(p(!0),x(k,null,M(l(O)(l(d).CRM_CUSTOMER_LEVEL),a=>(p(),s(N,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u5BA2\u6237\u6765\u6E90",prop:"source"},{default:t(()=>[e(E,{modelValue:l(r).source,"onUpdate:modelValue":o[4]||(o[4]=a=>l(r).source=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5BA2\u6237\u6765\u6E90"},{default:t(()=>[(p(!0),x(k,null,M(l(O)(l(d).CRM_CUSTOMER_SOURCE),a=>(p(),s(N,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(m,null,{default:t(()=>[e(f,{onClick:v},{default:t(()=>[e(h,{class:"mr-5px",icon:"ep:search"}),c(" \u641C\u7D22 ")]),_:1}),e(f,{onClick:o[5]||(o[5]=a=>b(void 0))},{default:t(()=>[e(h,{class:"mr-5px",icon:"ep:refresh"}),c(" \u91CD\u7F6E ")]),_:1}),y((p(),s(f,{type:"primary",onClick:o[6]||(o[6]=a=>A("create"))},{default:t(()=>[e(h,{class:"mr-5px",icon:"ep:plus"}),c(" \u65B0\u589E ")]),_:1})),[[g,["crm:customer:create"]]]),y((p(),s(f,{loading:l(U),plain:"",type:"success",onClick:Z},{default:t(()=>[e(h,{class:"mr-5px",icon:"ep:download"}),c(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["crm:customer:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(Y,null,{default:t(()=>[e(W,{modelValue:l(V),"onUpdate:modelValue":o[7]||(o[7]=a=>ie(V)?V.value=a:null),onTabClick:J},{default:t(()=>[e(I,{label:"\u6211\u8D1F\u8D23\u7684",name:"1"}),e(I,{label:"\u6211\u53C2\u4E0E\u7684",name:"2"}),e(I,{label:"\u4E0B\u5C5E\u8D1F\u8D23\u7684",name:"3"})]),_:1},8,["modelValue"]),y((p(),s(ee,{data:l(L),"show-overflow-tooltip":!0,stripe:!0},{default:t(()=>[e(n,{align:"center",label:"\u7F16\u53F7",prop:"id"}),e(n,{align:"center",label:"\u5BA2\u6237\u540D\u79F0",prop:"name",width:"160"},{default:t(a=>[e($,{underline:!1,type:"primary",onClick:B=>{return C=a.row.id,void X({name:"CrmCustomerDetail",params:{id:C}});var C}},{default:t(()=>[c(q(a.row.name),1)]),_:2},1032,["onClick"])]),_:1}),e(n,{align:"center",label:"\u624B\u673A",prop:"mobile",width:"120"}),e(n,{align:"center",label:"\u7535\u8BDD",prop:"telephone",width:"120"}),e(n,{align:"center",label:"\u5BA2\u6237\u6765\u6E90",prop:"source",width:"100"},{default:t(a=>[e(w,{type:l(d).CRM_CUSTOMER_SOURCE,value:a.row.source},null,8,["type","value"])]),_:1}),e(n,{align:"center",label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId",width:"120"},{default:t(a=>[e(w,{type:l(d).CRM_CUSTOMER_INDUSTRY,value:a.row.industryId},null,8,["type","value"])]),_:1}),e(n,{align:"center",label:"\u5BA2\u6237\u7B49\u7EA7",prop:"level",width:"120"},{default:t(a=>[e(w,{type:l(d).CRM_CUSTOMER_LEVEL,value:a.row.level},null,8,["type","value"])]),_:1}),e(n,{align:"center",label:"\u7F51\u5740",prop:"website",width:"200"}),e(n,{formatter:l(R),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"contactNextTime",width:"180px"},null,8,["formatter"]),e(n,{align:"center",label:"\u5907\u6CE8",prop:"remark",width:"200"}),e(n,{align:"center",label:"\u6210\u4EA4\u72B6\u6001",prop:"dealStatus"},{default:t(a=>[e(w,{type:l(d).INFRA_BOOLEAN_STRING,value:a.row.dealStatus},null,8,["type","value"])]),_:1}),e(n,{align:"center",label:"\u8DDD\u79BB\u8FDB\u5165\u516C\u6D77",prop:"poolDay"},{default:t(a=>[c(q(a.row.poolDay)+" \u5929",1)]),_:1}),e(n,{formatter:l(R),align:"center",label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",prop:"contactLastTime",width:"180px"},null,8,["formatter"]),e(n,{formatter:l(R),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),e(n,{formatter:l(R),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),e(n,{align:"center",label:"\u8D1F\u8D23\u4EBA",prop:"ownerUserName",width:"100px"}),e(n,{align:"center",label:"\u6240\u5C5E\u90E8\u95E8",prop:"ownerUserDeptName",width:"100px"}),e(n,{align:"center",label:"\u521B\u5EFA\u4EBA",prop:"creatorName",width:"100px"}),e(n,{align:"center",fixed:"right",label:"\u64CD\u4F5C","min-width":"150"},{default:t(a=>[y((p(),s(f,{link:"",type:"primary",onClick:B=>A("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["crm:customer:update"]]]),y((p(),s(f,{link:"",type:"danger",onClick:B=>(async C=>{try{await S.delConfirm(),await De(C),S.success(H("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:t(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["crm:customer:delete"]]])]),_:1})]),_:1},8,["data"])),[[le,l(T)]]),e(ae,{limit:l(r).pageSize,"onUpdate:limit":o[8]||(o[8]=a=>l(r).pageSize=a),page:l(r).pageNo,"onUpdate:page":o[9]||(o[9]=a=>l(r).pageNo=a),total:l(D),onPagination:_},null,8,["limit","page","total"])]),_:1}),e(ze,{ref_key:"formRef",ref:z,onSuccess:_},null,512)],64)}}})});export{Qe as __tla,G as default};
|