1 |
- import{d as D,r as p,e as H,L as O,Q as E,o as m,c as M,f as t,w as _,n as f,x as y,a,v as b,F as W,h as A,j as G,C as Q,i as X,G as Y,H as B,I as J,_ as K,__tla as V}from"./index-11e4820e.js";import{_ as Z,__tla as $}from"./ContentWrap-694014d4.js";import{_ as tt,__tla as at}from"./index-c8f58bd0.js";import{_ as et,__tla as rt}from"./DictTag-e41ec8de.js";import{d as k,__tla as lt}from"./formatTime-f6a2c881.js";import{D as _t,__tla as ot}from"./dict-4072dcec.js";import{F as I,a as it,__tla as nt}from"./FollowUpRecordForm-f0fe1d64.js";import{u as ct,__tla as st}from"./useMessage-06ddf735.js";import{__tla as pt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as mt}from"./el-card-919c14be.js";import{__tla as ut}from"./index-dd73c59d.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-bbfaf85c.js";import{__tla as ft}from"./Editor-0f5cadc2.js";import{__tla as yt}from"./BusinessList-2f97a78f.js";import{__tla as bt}from"./index-bd35df69.js";import{__tla as ht}from"./ContactList-2ae5f2c2.js";import{__tla as gt}from"./index-ba6610e3.js";let C,wt=Promise.all([(()=>{try{return V}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return gt}catch{}})()]).then(async()=>{C=K(D({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(T){const i=T,h=ct(),{t:U}=A(),u=p(!0),g=p([]),w=p(0),o=H({pageNo:1,pageSize:10,bizType:0,bizId:0}),c=async()=>{u.value=!0;try{const n=await I.getFollowUpRecordPage(o);g.value=n.list,w.value=n.total}finally{u.value=!1}},z=p(),x=(n,l)=>{var s;(s=z.value)==null||s.open(i.bizType,i.bizId,n,l)};return O(()=>i.bizId,()=>{o.bizType=i.bizType,o.bizId=i.bizId,c()}),(n,l)=>{const s=G,d=Q,R=X,e=Y,F=et,N=B,P=tt,S=Z,v=E("hasPermi"),L=J;return m(),M(W,null,[t(R,{class:"mb-10px",justify:"end"},{default:_(()=>[t(d,{onClick:l[0]||(l[0]=r=>x("create"))},{default:_(()=>[t(s,{class:"mr-5px",icon:"ep:edit"}),f(" \u5199\u8DDF\u8FDB ")]),_:1})]),_:1}),t(S,null,{default:_(()=>[y((m(),b(N,{data:a(g),"show-overflow-tooltip":!0,stripe:!0},{default:_(()=>[t(e,{align:"center",label:"\u7F16\u53F7",prop:"id"}),t(e,{align:"center",label:"\u8DDF\u8FDB\u4EBA",prop:"creatorName"}),t(e,{align:"center",label:"\u8DDF\u8FDB\u7C7B\u578B",prop:"type"},{default:_(r=>[t(F,{type:a(_t).CRM_FOLLOW_UP_TYPE,value:r.row.type},null,8,["type","value"])]),_:1}),t(e,{align:"center",label:"\u8DDF\u8FDB\u5185\u5BB9",prop:"content"}),t(e,{formatter:a(k),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"nextTime",width:"180px"},null,8,["formatter"]),t(e,{align:"center",label:"\u5173\u8054\u8054\u7CFB\u4EBA",prop:"contactIds"}),t(e,{align:"center",label:"\u5173\u8054\u5546\u673A",prop:"businessIds"}),t(e,{formatter:a(k),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),t(e,{align:"center",label:"\u64CD\u4F5C"},{default:_(r=>[y((m(),b(d,{link:"",type:"primary",onClick:j=>x("update",r.row.id)},{default:_(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["crm:follow-up-record:update"]]]),y((m(),b(d,{link:"",type:"danger",onClick:j=>(async q=>{try{await h.delConfirm(),await I.deleteFollowUpRecord(q),h.success(U("common.delSuccess")),await c()}catch{}})(r.row.id)},{default:_(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["crm:follow-up-record:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,a(u)]]),t(P,{limit:a(o).pageSize,"onUpdate:limit":l[1]||(l[1]=r=>a(o).pageSize=r),page:a(o).pageNo,"onUpdate:page":l[2]||(l[2]=r=>a(o).pageNo=r),total:a(w),onPagination:c},null,8,["limit","page","total"])]),_:1}),t(it,{ref_key:"formRef",ref:z,onSuccess:c},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/followup/index.vue"]])});export{wt as __tla,C as default};
|