1 |
- import{d as te,h as re,r as i,u as oe,K as ne,k as ue,P as pe,o as p,c as x,f as e,w as t,a as l,Q as K,F as k,n as I,q as s,m as c,v as y,N as ie,t as B,U as se,z as ce,x as de,y as _e,_ as me,B as fe,C as ye,V as ve,W as be,D as he,G as we,H as ge,__tla as Ce}from"./index-2eab2d23.js";import{_ as xe,__tla as ke}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as Re,__tla as Ue}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{E as Ve,__tla as Se}from"./el-link-f0d278a2.js";import{_ as Te,__tla as Ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as O,D as d,__tla as Ee}from"./dict-1ad71b6f.js";import{d as R,__tla as Me}from"./formatTime-41155543.js";import{d as Ie}from"./download-20922b56.js";import{d as Oe,e as De,f as Le,__tla as ze}from"./index-8009e4fb.js";import{_ as Fe,__tla as Pe}from"./CustomerForm.vue_vue_type_script_setup_true_lang-37dd09fd.js";import{u as qe,__tla as Ae}from"./useMessage-171aa63e.js";import{__tla as Ge}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ke}from"./el-card-c558f0ec.js";import{__tla as Be}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ye}from"./el-tree-select-4ae7c290.js";import{__tla as He}from"./index-44a34f60.js";import"./tree-fd3a041e.js";import{__tla as Qe}from"./index-e191a423.js";let Y,We=Promise.all([(()=>{try{return Ce}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Qe}catch{}})()]).then(async()=>{Y=te({name:"CrmCustomer",__name:"index",setup(je){const U=qe(),{t:H}=re(),V=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}),z=i(),S=i(!1),T=i("1"),Q=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()=>{V.value=!0;try{const u=await Oe(r.value);L.value=u.list,D.value=u.total}finally{V.value=!1}},v=()=>{r.value.pageNo=1,_()},b=(u=void 0)=>{z.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:W,push:j}=oe(),F=i(),P=(u,o)=>{F.value.open(u,o)},J=async()=>{try{await U.exportConfirm(),S.value=!0;const u=await Le(r.value);Ie.excel(u,"\u5BA2\u6237.xls")}catch{}finally{S.value=!1}};return ne(()=>W.value,()=>{_()}),ue(()=>{_()}),(u,o)=>{const q=se,m=ce,N=de,E=_e,h=me,f=fe,X=ye,A=Te,M=ve,Z=be,n=he,$=Ve,w=Re,ee=we,ae=xe,g=pe("hasPermi"),le=ge;return p(),x(k,null,[e(A,null,{default:t(()=>[e(X,{ref_key:"queryFormRef",ref:z,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(q,{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:K(v,["enter"])},null,8,["modelValue"])]),_:1}),e(m,{label:"\u624B\u673A",prop:"mobile"},{default:t(()=>[e(q,{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:K(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,I(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,I(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,I(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=>P("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(S),plain:"",type:"success",onClick:J},{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(A,null,{default:t(()=>[e(Z,{modelValue:l(T),"onUpdate:modelValue":o[7]||(o[7]=a=>ie(T)?T.value=a:null),onTabClick:Q},{default:t(()=>[e(M,{label:"\u6211\u8D1F\u8D23\u7684",name:"1"}),e(M,{label:"\u6211\u53C2\u4E0E\u7684",name:"2"}),e(M,{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:G=>{return C=a.row.id,void j({name:"CrmCustomerDetail",params:{id:C}});var C}},{default:t(()=>[c(B(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(B(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:G=>P("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["crm:customer:update"]]]),y((p(),s(f,{link:"",type:"danger",onClick:G=>(async C=>{try{await U.delConfirm(),await De(C),U.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(V)]]),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(Fe,{ref_key:"formRef",ref:F,onSuccess:_},null,512)],64)}}})});export{We as __tla,Y as default};
|