import{d as L,r as p,f as M,M as O,S as E,o as m,c as H,g as t,w as _,q as f,y,a,x as b,F as W,i as B,k as J,D as Y,j as A,H as G,I as K,J as Q,_ as V,__tla as X}from"./index-7d5b26d3.js";import{_ as Z,__tla as $}from"./ContentWrap-07931e94.js";import{_ as tt,__tla as at}from"./index-966eea36.js";import{_ as et,__tla as rt}from"./DictTag-89bfbd38.js";import{d as k,__tla as lt}from"./formatTime-5152c108.js";import{D as _t,__tla as ot}from"./dict-37d1dfe8.js";import{F as I,a as it,__tla as nt}from"./FollowUpRecordForm-21b6889b.js";import{u as st,__tla as ct}from"./useMessage-c81eaa5b.js";import{__tla as pt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-831d711e.js";import{__tla as mt}from"./el-card-698191e2.js";import{__tla as ut}from"./index-cdb8fe72.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-2be588df.js";import{__tla as ft}from"./Editor-7cbdb87d.js";import{__tla as yt}from"./BusinessList-f3b89032.js";import{__tla as bt}from"./index-6bcf0bb3.js";import{__tla as gt}from"./ContactList-1145c40a.js";import{__tla as ht}from"./index-d1a8180e.js";let T,wt=Promise.all([(()=>{try{return X}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 ct}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 gt}catch{}})(),(()=>{try{return ht}catch{}})()]).then(async()=>{T=V(L({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(C){const i=C,g=st(),{t:N}=B(),u=p(!0),h=p([]),w=p(0),o=M({pageNo:1,pageSize:10,bizType:0,bizId:0}),s=async()=>{u.value=!0;try{const n=await I.getFollowUpRecordPage(o);h.value=n.list,w.value=n.total}finally{u.value=!1}},z=p(),x=(n,l)=>{var c;(c=z.value)==null||c.open(i.bizType,i.bizId,n,l)};return O(()=>i.bizId,()=>{o.bizType=i.bizType,o.bizId=i.bizId,s()}),(n,l)=>{const c=J,d=Y,U=A,e=G,F=et,P=K,S=tt,R=Z,v=E("hasPermi"),q=Q;return m(),H(W,null,[t(U,{class:"mb-10px",justify:"end"},{default:_(()=>[t(d,{onClick:l[0]||(l[0]=r=>x("create"))},{default:_(()=>[t(c,{class:"mr-5px",icon:"ep:edit"}),f(" \u5199\u8DDF\u8FDB ")]),_:1})]),_:1}),t(R,null,{default:_(()=>[y((m(),b(P,{data:a(h),"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:D=>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:D=>(async j=>{try{await g.delConfirm(),await I.deleteFollowUpRecord(j),g.success(N("common.delSuccess")),await s()}catch{}})(r.row.id)},{default:_(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["crm:follow-up-record:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,a(u)]]),t(S,{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:s},null,8,["limit","page","total"])]),_:1}),t(it,{ref_key:"formRef",ref:z,onSuccess:s},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/crm/followup/index.vue"]])});export{wt as __tla,T as default};
