index-c2972fcb.js 5.7 KB

1
  1. import{d as G,n as H,r as c,f as q,B as J,P as M,o as i,c as Q,i as e,w as t,a,Q as k,j as u,C as d,l as f,F as X,U as W,H as Y,v as Z,J as $,K as ee,L as ae,M as le,N as te,_ as re,__tla as oe}from"./index-b2b3c6c4.js";import{_ as ne,__tla as pe}from"./index-341fc94c.js";import{_ as se,__tla as ce}from"./DictTag-4199ec8d.js";import{_ as ie,__tla as ue}from"./ContentWrap-e91b2b5a.js";import{D as z,__tla as _e}from"./dict-7f0cc6d2.js";import{d as C,__tla as me}from"./formatTime-7e07ce72.js";import{d as de}from"./download-20922b56.js";import{C as fe,g as ye,d as he,e as ge,__tla as be}from"./ClueForm-4443ff65.js";import{u as we,__tla as xe}from"./useMessage-a5edbb0f.js";import{__tla as ve}from"./index-2d76a87c.js";import"./color-6e929987.js";import{__tla as ke}from"./el-card-bd6e27c9.js";import{__tla as Ce}from"./Dialog-70b24cbf.js";import{__tla as Ne}from"./index-701aeef4.js";let A,Se=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{A=re(G({name:"CrmClue",__name:"index",setup(Ue){const b=we(),{t:T}=H(),w=c(!0),N=c(0),S=c([]),r=q({pageNo:1,pageSize:10,name:null,telephone:null,mobile:null}),U=c(),x=c(!1),_=async()=>{w.value=!0;try{const p=await ye(r);S.value=p.list,N.value=p.total}finally{w.value=!1}},m=()=>{r.pageNo=1,_()},K=()=>{U.value.resetFields(),m()},V=c(),R=(p,o)=>{V.value.open(p,o)},L=async()=>{try{await b.exportConfirm(),x.value=!0;const p=await ge(r);de.excel(p,"\u7EBF\u7D22.xls")}catch{}finally{x.value=!1}};return J(()=>{_()}),(p,o)=>{const v=W,y=Y,h=Z,s=$,O=ee,F=ie,n=ae,I=se,P=le,B=ne,g=M("hasPermi"),D=te;return i(),Q(X,null,[e(F,null,{default:t(()=>[e(O,{class:"-mb-15px",model:a(r),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:t(()=>[e(y,{label:"\u7EBF\u7D22\u540D\u79F0",prop:"name"},{default:t(()=>[e(v,{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:k(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u7535\u8BDD",prop:"telephone"},{default:t(()=>[e(v,{modelValue:a(r).telephone,"onUpdate:modelValue":o[1]||(o[1]=l=>a(r).telephone=l),placeholder:"\u8BF7\u8F93\u5165\u7535\u8BDD",clearable:"",onKeyup:k(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,{label:"\u624B\u673A\u53F7",prop:"mobile"},{default:t(()=>[e(v,{modelValue:a(r).mobile,"onUpdate:modelValue":o[2]||(o[2]=l=>a(r).mobile=l),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",clearable:"",onKeyup:k(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(y,null,{default:t(()=>[e(s,{onClick:m},{default:t(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(s,{onClick:K},{default:t(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),d((i(),f(s,{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(s,{type:"success",plain:"",onClick:L,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(F,null,{default:t(()=>[d((i(),f(P,{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(I,{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(I,{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(s,{link:"",type:"primary",onClick:j=>R("update",l.row.id)},{default:t(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[g,["crm:clue:update"]]]),d((i(),f(s,{link:"",type:"danger",onClick:j=>(async E=>{try{await b.delConfirm(),await he(E),b.success(T("common.delSuccess")),await _()}catch{}})(l.row.id)},{default:t(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["crm:clue:delete"]]])]),_:1})]),_:1},8,["data"])),[[D,a(w)]]),e(B,{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(fe,{ref_key:"formRef",ref:V,onSuccess:_},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/clue/index.vue"]])});export{Se as __tla,A as default};