1 |
- import{d as E,h as H,r as s,e as Q,k as j,P as J,o as i,c as M,f as e,w as t,a,Q as v,m as u,v as d,q as f,F as W,U as X,z as Y,_ as Z,B as $,C as ee,D as ae,G as le,H as te,__tla as re}from"./index-2eab2d23.js";import{_ as oe,__tla as ne}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as pe,__tla as ce}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as se,__tla as ie}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{D as z,__tla as ue}from"./dict-1ad71b6f.js";import{d as C,__tla as _e}from"./formatTime-41155543.js";import{d as me}from"./download-20922b56.js";import{_ as de,g as fe,d as ye,e as he,__tla as ge}from"./ClueForm.vue_vue_type_script_setup_true_lang-14bff868.js";import{u as be,__tla as we}from"./useMessage-171aa63e.js";import{__tla as xe}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as ke}from"./el-card-c558f0ec.js";import{__tla as ve}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ce}from"./index-8009e4fb.js";let F,Ne=Promise.all([(()=>{try{return re}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ce}catch{}})()]).then(async()=>{F=E({name:"CrmClue",__name:"index",setup(Se){const b=be(),{t:O}=H(),w=s(!0),N=s(0),S=s([]),r=Q({pageNo:1,pageSize:10,name:null,telephone:null,mobile:null}),V=s(),x=s(!1),_=async()=>{w.value=!0;try{const p=await fe(r);S.value=p.list,N.value=p.total}finally{w.value=!1}},m=()=>{r.pageNo=1,_()},A=()=>{V.value.resetFields(),m()},U=s(),R=(p,o)=>{U.value.open(p,o)},P=async()=>{try{await b.exportConfirm(),x.value=!0;const p=await he(r);me.excel(p,"\u7EBF\u7D22.xls")}catch{}finally{x.value=!1}};return j(()=>{_()}),(p,o)=>{const k=X,y=Y,h=Z,c=$,B=ee,I=se,n=ae,T=pe,G=le,K=oe,g=J("hasPermi"),L=te;return i(),M(W,null,[e(I,null,{default:t(()=>[e(B,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:V,inline:!0,"label-width":"68px"},{default:t(()=>[e(y,{label:"\u7EBF\u7D22\u540D\u79F0",prop:"name"},{default:t(()=>[e(k,{modelValue:a(r).name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(r).name=l),placeholder:"\u8BF7\u8F93\u5165\u7EBF\u7D22\u540D\u79F0",clearable:"",onKeyup:v(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u7535\u8BDD",prop:"telephone"},{default:t(()=>[e(k,{modelValue:a(r).telephone,"onUpdate:modelValue":o[1]||(o[1]=l=>a(r).telephone=l),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD",clearable:"",onKeyup:v(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:t(()=>[e(k,{modelValue:a(r).mobile,"onUpdate:modelValue":o[2]||(o[2]=l=>a(r).mobile=l),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",clearable:"",onKeyup:v(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,null,{default:t(()=>[e(c,{onClick:m},{default:t(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(c,{onClick:A},{default:t(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),d((i(),f(c,{type:"primary",onClick:o[3]||(o[3]=l=>R("create"))},{default:t(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[g,["crm:clue:create"]]]),d((i(),f(c,{type:"success",plain:"",onClick:P,loading:a(x)},{default:t(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[g,["crm:clue:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(I,null,{default:t(()=>[d((i(),f(G,{data:a(S),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(n,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u8F6C\u5316\u72B6\u6001",align:"center",prop:"transformStatus"},{default:t(l=>[e(T,{type:a(z).INFRA_BOOLEAN_STRING,value:l.row.transformStatus},null,8,["type","value"])]),_:1}),e(n,{label:"\u8DDF\u8FDB\u72B6\u6001",align:"center",prop:"followUpStatus"},{default:t(l=>[e(T,{type:a(z).INFRA_BOOLEAN_STRING,value:l.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:a(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:a(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:a(C),width:"180px"},null,8,["formatter"]),e(n,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:t(l=>[d((i(),f(c,{link:"",type:"primary",onClick:q=>R("update",l.row.id)},{default:t(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["crm:clue:update"]]]),d((i(),f(c,{link:"",type:"danger",onClick:q=>(async D=>{try{await b.delConfirm(),await ye(D),b.success(O("common.delSuccess")),await _()}catch{}})(l.row.id)},{default:t(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["crm:clue:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,a(w)]]),e(K,{total:a(N),page:a(r).pageNo,"onUpdate:page":o[4]||(o[4]=l=>a(r).pageNo=l),limit:a(r).pageSize,"onUpdate:limit":o[5]||(o[5]=l=>a(r).pageSize=l),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(de,{ref_key:"formRef",ref:U,onSuccess:_},null,512)],64)}}})});export{Ne as __tla,F as default};
|