1 |
- import{d as P,z as j,r as s,f as D,x as H,Q as J,o as m,c as Q,i as e,w as o,a as l,R as v,m as u,B as f,j as g,F as M,V as W,G as X,_ as Y,q as Z,H as $,I as ee,J as ae,K as le}from"./index-34852970.js";import{_ as te}from"./index.vue_vue_type_script_setup_true_lang-1515f911.js";import{_ as oe}from"./DictTag.vue_vue_type_script_lang-7acc703f.js";import{_ as re}from"./ContentWrap.vue_vue_type_script_setup_true_lang-eb026e5c.js";import{D as z}from"./dict-5c28424e.js";import{d as C}from"./formatTime-2355f062.js";import{d as ne}from"./download-20922b56.js";import{_ as pe,g as ie,d as se,e as me}from"./ClueForm.vue_vue_type_script_setup_true_lang-02c2c184.js";import{u as ue}from"./useMessage-f6294882.js";import"./index-d6d07698.js";import"./color-6e929987.js";import"./el-card-73839c3c.js";import"./Dialog-e0707d40.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./index-612e69a8.js";const ce=P({name:"CrmClue",__name:"index",setup(de){const y=ue(),{t:A}=j(),x=s(!0),N=s(0),S=s([]),r=D({pageNo:1,pageSize:10,name:null,telephone:null,mobile:null}),V=s(),h=s(!1),c=async()=>{x.value=!0;try{const p=await ie(r);S.value=p.list,N.value=p.total}finally{x.value=!1}},d=()=>{r.pageNo=1,c()},T=()=>{V.value.resetFields(),d()},U=s(),R=(p,a)=>{U.value.open(p,a)},K=async()=>{try{await y.exportConfirm(),h.value=!0;const p=await me(r);ne.excel(p,"\u7EBF\u7D22.xls")}catch{}finally{h.value=!1}};return H(()=>{c()}),(p,a)=>{const k=W,_=X,b=Y,i=Z,O=$,I=re,n=ee,F=oe,B=ae,G=te,w=J("hasPermi"),L=le;return m(),Q(M,null,[e(I,null,{default:o(()=>[e(O,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:o(()=>[e(_,{label:"\u7EBF\u7D22\u540D\u79F0",prop:"name"},{default:o(()=>[e(k,{modelValue:l(r).name,"onUpdate:modelValue":a[0]||(a[0]=t=>l(r).name=t),placeholder:"\u8BF7\u8F93\u5165\u7EBF\u7D22\u540D\u79F0",clearable:"",onKeyup:v(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u7535\u8BDD",prop:"telephone"},{default:o(()=>[e(k,{modelValue:l(r).telephone,"onUpdate:modelValue":a[1]||(a[1]=t=>l(r).telephone=t),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD",clearable:"",onKeyup:v(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:o(()=>[e(k,{modelValue:l(r).mobile,"onUpdate:modelValue":a[2]||(a[2]=t=>l(r).mobile=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",clearable:"",onKeyup:v(d,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(_,null,{default:o(()=>[e(i,{onClick:d},{default:o(()=>[e(b,{icon:"ep:search",class:"mr-5px"}),a[6]||(a[6]=u(" \u641C\u7D22"))]),_:1}),e(i,{onClick:T},{default:o(()=>[e(b,{icon:"ep:refresh",class:"mr-5px"}),a[7]||(a[7]=u(" \u91CD\u7F6E"))]),_:1}),f((m(),g(i,{type:"primary",onClick:a[3]||(a[3]=t=>R("create"))},{default:o(()=>[e(b,{icon:"ep:plus",class:"mr-5px"}),a[8]||(a[8]=u(" \u65B0\u589E "))]),_:1})),[[w,["crm:clue:create"]]]),f((m(),g(i,{type:"success",plain:"",onClick:K,loading:l(h)},{default:o(()=>[e(b,{icon:"ep:download",class:"mr-5px"}),a[9]||(a[9]=u(" \u5BFC\u51FA "))]),_:1},8,["loading"])),[[w,["crm:clue:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(I,null,{default:o(()=>[f((m(),g(B,{data:l(S),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u8F6C\u5316\u72B6\u6001",align:"center",prop:"transformStatus"},{default:o(t=>[e(F,{type:l(z).INFRA_BOOLEAN_STRING,value:t.row.transformStatus},null,8,["type","value"])]),_:1}),e(n,{label:"\u8DDF\u8FDB\u72B6\u6001",align:"center",prop:"followUpStatus"},{default:o(t=>[e(F,{type:l(z).INFRA_BOOLEAN_STRING,value:t.row.followUpStatus},null,8,["type","value"])]),_:1}),e(n,{label:"\u7EBF\u7D22\u540D\u79F0",align:"center",prop:"name"}),e(n,{label:"\u5BA2\u6237id",align:"center",prop:"customerId"}),e(n,{label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",align:"center",prop:"contactNextTime",formatter:l(C),width:"180px"},null,8,["formatter"]),e(n,{label:"\u7535\u8BDD",align:"center",prop:"telephone"}),e(n,{label:"\u624B\u673A\u53F7",align:"center",prop:"mobile"}),e(n,{label:"\u5730\u5740",align:"center",prop:"address"}),e(n,{label:"\u8D1F\u8D23\u4EBA",align:"center",prop:"ownerUserId"}),e(n,{label:"\u6700\u540E\u8DDF\u8FDB\u65F6\u95F4",align:"center",prop:"contactLastTime",formatter:l(C),width:"180px"},null,8,["formatter"]),e(n,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(C),width:"180px"},null,8,["formatter"]),e(n,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:o(t=>[f((m(),g(i,{link:"",type:"primary",onClick:q=>R("update",t.row.id)},{default:o(()=>a[10]||(a[10]=[u(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[w,["crm:clue:update"]]]),f((m(),g(i,{link:"",type:"danger",onClick:q=>(async E=>{try{await y.delConfirm(),await se(E),y.success(A("common.delSuccess")),await c()}catch{}})(t.row.id)},{default:o(()=>a[11]||(a[11]=[u(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[w,["crm:clue:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,l(x)]]),e(G,{total:l(N),page:l(r).pageNo,"onUpdate:page":a[4]||(a[4]=t=>l(r).pageNo=t),limit:l(r).pageSize,"onUpdate:limit":a[5]||(a[5]=t=>l(r).pageSize=t),onPagination:c},null,8,["total","page","limit"])]),_:1}),e(pe,{ref_key:"formRef",ref:U,onSuccess:c},null,512)],64)}}});export{ce as default};
|