import{d as q,r as p,f as E,aP as M,P as A,o as m,c as D,i as t,w as o,j as f,C as y,a,l as b,F as J,n as W,v as G,J as H,s as Y,L as B,M as K,N as Q,_ as V,__tla as X}from"./index-2c56227b.js";import{_ as Z,__tla as $}from"./ContentWrap-f1610353.js";import{_ as tt,__tla as at}from"./index-8106be8e.js";import{_ as et,__tla as rt}from"./DictTag-cfe1898d.js";import{d as k,__tla as lt}from"./formatTime-7f0ec2bf.js";import{D as ot,__tla as _t}from"./dict-763dd292.js";import{F as x,a as it,__tla as nt}from"./FollowUpRecordForm-3aee2fe4.js";import{u as ct,__tla as st}from"./useMessage-96878a4a.js";import{__tla as pt}from"./el-card-9c148b4f.js";import{__tla as mt}from"./index-d17bd909.js";import"./color-6e929987.js";import{__tla as ut}from"./Dialog-1050d437.js";import{__tla as dt}from"./Editor-d05caa83.js";import{__tla as ft}from"./BusinessList-63ca55a1.js";import{__tla as yt}from"./index-a94bc895.js";import{__tla as bt}from"./ContactList-557d0c44.js";import{__tla as gt}from"./index-92395a4e.js";let C,ht=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return _t}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 gt}catch{}})()]).then(async()=>{C=V(q({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(I){const i=I,g=ct(),{t:N}=W(),u=p(!0),h=p([]),w=p(0),_=E({pageNo:1,pageSize:10,bizType:0,bizId:0}),c=async()=>{u.value=!0;try{const n=await x.getFollowUpRecordPage(_);h.value=n.list,w.value=n.total}finally{u.value=!1}},z=p(),v=(n,l)=>{var s;(s=z.value)==null||s.open(i.bizType,i.bizId,n,l)};return M(()=>i.bizId,()=>{_.bizType=i.bizType,_.bizId=i.bizId,c()}),(n,l)=>{const s=G,d=H,T=Y,e=B,U=et,F=K,R=tt,S=Z,P=A("hasPermi"),L=Q;return m(),D(J,null,[t(T,{class:"mb-10px",justify:"end"},{default:o(()=>[t(d,{onClick:l[0]||(l[0]=r=>v("create"))},{default:o(()=>[t(s,{class:"mr-5px",icon:"ep:edit"}),f(" \u5199\u8DDF\u8FDB ")]),_:1})]),_:1}),t(S,null,{default:o(()=>[y((m(),b(F,{data:a(h),"show-overflow-tooltip":!0,stripe:!0},{default:o(()=>[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:o(r=>[t(U,{type:a(ot).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:o(r=>[y((m(),b(d,{link:"",type:"primary",onClick:O=>v("update",r.row.id)},{default:o(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[P,["crm:follow-up-record:update"]]]),y((m(),b(d,{link:"",type:"danger",onClick:O=>(async j=>{try{await g.delConfirm(),await x.deleteFollowUpRecord(j),g.success(N("common.delSuccess")),await c()}catch{}})(r.row.id)},{default:o(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[P,["crm:follow-up-record:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,a(u)]]),t(R,{limit:a(_).pageSize,"onUpdate:limit":l[1]||(l[1]=r=>a(_).pageSize=r),page:a(_).pageNo,"onUpdate:page":l[2]||(l[2]=r=>a(_).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","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/crm/followup/index.vue"]])});export{ht as __tla,C as default};
