1 |
- import{d as te,B as re,r as p,u as oe,O as ne,z as ue,T as ie,o as i,c as x,i as e,w as t,a as l,U as G,F as k,C as I,k as s,l as c,D as y,R as pe,t as B,Y as se,I as ce,G as de,H as _e,n as me,s as fe,J as ye,Z as ve,$ as be,K as he,L as we,M as ge,_ as Ce,__tla as xe}from"./index-2f799233.js";import{_ as ke,__tla as Re}from"./index-e6cd813f.js";import{_ as Ue,__tla as Te}from"./DictTag-ea4c6cc2.js";import{E as Ve,__tla as Se}from"./el-link-23decf79.js";import{_ as Ee,__tla as Ne}from"./ContentWrap-9da801df.js";import{a as O,D as d,__tla as Me}from"./dict-20c916e2.js";import{d as R,__tla as Ie}from"./formatTime-2157894c.js";import{d as Oe}from"./download-20922b56.js";import{d as De,e as ze,f as Le,__tla as Fe}from"./index-2774892b.js";import Ke,{__tla as Pe}from"./CustomerForm-a1fa66ab.js";import{u as Ye,__tla as Ae}from"./useMessage-e567ad40.js";import{__tla as Ge}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Be}from"./el-card-c64c83d1.js";import{__tla as qe}from"./Dialog-6fd39e06.js";import{__tla as He}from"./el-tree-select-ef4257fc.js";import{__tla as Je}from"./index-0f3b07dc.js";import"./tree-0af4953a.js";import{__tla as Ze}from"./index-dd9c509d.js";let q,$e=Promise.all([(()=>{try{return xe}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ze}catch{}})()]).then(async()=>{q=Ce(te({name:"CrmCustomer",__name:"index",setup(je){const U=Ye(),{t:H}=re(),T=p(!0),D=p(0),z=p([]),r=p({pageNo:1,pageSize:10,name:"",mobile:"",industryId:void 0,level:void 0,source:void 0,sceneType:void 0,pool:void 0}),L=p(),V=p(!1),S=p("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 De(r.value);z.value=u.list,D.value=u.total}finally{T.value=!1}},v=()=>{r.value.pageNo=1,_()},b=(u=void 0)=>{L.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:Z,push:$}=oe(),F=p(),K=(u,o)=>{F.value.open(u,o)},j=async()=>{try{await U.exportConfirm(),V.value=!0;const u=await Le(r.value);Oe.excel(u,"\u5BA2\u6237.xls")}catch{}finally{V.value=!1}};return ne(()=>Z.value,()=>{_()}),ue(()=>{_()}),(u,o)=>{const P=se,m=ce,E=de,N=_e,h=me,f=fe,Q=ye,Y=Ee,M=ve,W=be,n=he,X=Ve,w=Ue,ee=we,ae=ke,g=ie("hasPermi"),le=ge;return i(),x(k,null,[e(Y,null,{default:t(()=>[e(Q,{ref_key:"queryFormRef",ref:L,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(P,{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:G(v,["enter"])},null,8,["modelValue"])]),_:1}),e(m,{label:"\u624B\u673A",prop:"mobile"},{default:t(()=>[e(P,{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:G(v,["enter"])},null,8,["modelValue"])]),_:1}),e(m,{label:"\u6240\u5C5E\u884C\u4E1A",prop:"industryId"},{default:t(()=>[e(N,{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(()=>[(i(!0),x(k,null,I(l(O)(l(d).CRM_CUSTOMER_INDUSTRY),a=>(i(),s(E,{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(N,{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(()=>[(i(!0),x(k,null,I(l(O)(l(d).CRM_CUSTOMER_LEVEL),a=>(i(),s(E,{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(N,{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(()=>[(i(!0),x(k,null,I(l(O)(l(d).CRM_CUSTOMER_SOURCE),a=>(i(),s(E,{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((i(),s(f,{type:"primary",onClick:o[6]||(o[6]=a=>K("create"))},{default:t(()=>[e(h,{class:"mr-5px",icon:"ep:plus"}),c(" \u65B0\u589E ")]),_:1})),[[g,["crm:customer:create"]]]),y((i(),s(f,{loading:l(V),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(Y,null,{default:t(()=>[e(W,{modelValue:l(S),"onUpdate:modelValue":o[7]||(o[7]=a=>pe(S)?S.value=a:null),onTabClick:J},{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((i(),s(ee,{data:l(z),"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(X,{underline:!1,type:"primary",onClick:A=>{return C=a.row.id,void $({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((i(),s(f,{link:"",type:"primary",onClick:A=>K("update",a.row.id)},{default:t(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["crm:customer:update"]]]),y((i(),s(f,{link:"",type:"danger",onClick:A=>(async C=>{try{await U.delConfirm(),await ze(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(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(Ke,{ref_key:"formRef",ref:F,onSuccess:_},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/crm/customer/index.vue"]])});export{$e as __tla,q as default};
|