import{d as D,r as p,e as O,L as E,R as M,o as m,c as W,f as t,w as _,n as f,x as y,a,v as b,F as Y,h as B,j as G,C as H,i as A,G as J,H as K,I as Q,_ as V,__tla as X}from"./index-04f8d540.js";import{_ as Z,__tla as $}from"./ContentWrap-0137c911.js";import{_ as tt,__tla as at}from"./index-bf28d6af.js";import{_ as et,__tla as rt}from"./DictTag-774e4f97.js";import{d as I,__tla as lt}from"./formatTime-81f0c591.js";import{D as _t,__tla as ot}from"./dict-ef06f7f7.js";import{F as k,a as it,__tla as nt}from"./FollowUpRecordForm-9f2671e3.js";import{u as ct,__tla as st}from"./useMessage-9c37e840.js";import{__tla as pt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d7df3a9f.js";import{__tla as mt}from"./el-card-3a265a8d.js";import{__tla as ut}from"./index-1cf9f52b.js";import"./color-6e929987.js";import{__tla as dt}from"./Dialog-9afb5ba5.js";import{__tla as ft}from"./Editor-02b0cc9a.js";import{__tla as yt}from"./BusinessList-1b30c0d9.js";import{__tla as bt}from"./index-1094f541.js";import{__tla as ht}from"./ContactList-2963340d.js";import{__tla as gt}from"./index-05ffbb74.js";let C,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 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=V(D({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(T){const i=T,h=ct(),{t:R}=B(),u=p(!0),g=p([]),w=p(0),o=O({pageNo:1,pageSize:10,bizType:0,bizId:0}),c=async()=>{u.value=!0;try{const n=await k.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 E(()=>i.bizId,()=>{o.bizType=i.bizType,o.bizId=i.bizId,c()}),(n,l)=>{const s=G,d=H,U=A,e=J,F=et,N=K,P=tt,S=Z,v=M("hasPermi"),L=Q;return m(),W(Y,null,[t(U,{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(I),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(I),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 k.deleteFollowUpRecord(q),h.success(R("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","D:/zx/mall-newfeifan-zx-business/src/views/crm/followup/index.vue"]])});export{wt as __tla,C as default};
