import{d as O,r as s,x as j,w as E,a4 as K,o as m,c as M,f as t,A as o,D as f,k as y,a,C as b,F as W,P as Y,Q as A,J as B,K as J,X as Q,Y as X,Z,_ as G,__tla as H}from"./index-286756b9.js";import{_ as V,__tla as $}from"./ContentWrap-83998678.js";import{_ as tt,__tla as at}from"./index-ed6c67a8.js";import{_ as et,__tla as rt}from"./DictTag-f72b04ca.js";import{d as k,__tla as lt}from"./formatTime-83e416ef.js";import{D as ot,__tla as _t}from"./dict-82dca549.js";import{F as C,a as it,__tla as nt}from"./FollowUpRecordForm-6ec8b196.js";import{u as ct,__tla as pt}from"./useMessage-084b1e70.js";import{__tla as st}from"./el-card-d3d5a654.js";import{__tla as mt}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as ut}from"./Dialog-4c2de357.js";import{__tla as dt}from"./Editor-514f76f8.js";import{__tla as ft}from"./BusinessList-0fd4eac4.js";import{__tla as yt}from"./index-2257ddd4.js";import{__tla as bt}from"./ContactList-89149f65.js";import{__tla as gt}from"./index-1872ec6c.js";let I,ht=Promise.all([(()=>{try{return H}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 pt}catch{}})(),(()=>{try{return st}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()=>{I=G(O({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(T){const i=T,g=ct(),{t:N}=Y(),u=s(!0),h=s([]),w=s(0),_=j({pageNo:1,pageSize:10,bizType:0,bizId:0}),c=async()=>{u.value=!0;try{const n=await C.getFollowUpRecordPage(_);h.value=n.list,w.value=n.total}finally{u.value=!1}},z=s(),x=(n,l)=>{var p;(p=z.value)==null||p.open(i.bizType,i.bizId,n,l)};return E(()=>i.bizId,()=>{_.bizType=i.bizType,_.bizId=i.bizId,c()}),(n,l)=>{const p=A,d=B,P=J,e=Q,U=et,F=X,R=tt,S=V,v=K("hasPermi"),D=Z;return m(),M(W,null,[t(P,{class:"mb-10px",justify:"end"},{default:o(()=>[t(d,{onClick:l[0]||(l[0]=r=>x("create"))},{default:o(()=>[t(p,{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:q=>x("update",r.row.id)},{default:o(()=>[f(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["crm:follow-up-record:update"]]]),y((m(),b(d,{link:"",type:"danger",onClick:q=>(async L=>{try{await g.delConfirm(),await C.deleteFollowUpRecord(L),g.success(N("common.delSuccess")),await c()}catch{}})(r.row.id)},{default:o(()=>[f(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["crm:follow-up-record:delete"]]])]),_:1})]),_:1},8,["data"])),[[D,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","D:/zx/mall-newfeifan-zx-admin/src/views/crm/followup/index.vue"]])});export{ht as __tla,I as default};