index-2d90bb31.js 4.0 KB

1
  1. import{d as q,r as p,g as M,O as j,T as B,o as m,c as E,i as t,w as o,l as f,D as y,a,k as b,F as K,B as W,n as Y,s as A,p as G,K as H,L as J,M as Q,_ as V,__tla as X}from"./index-2f799233.js";import{_ as Z,__tla as $}from"./ContentWrap-9da801df.js";import{_ as tt,__tla as at}from"./index-e6cd813f.js";import{_ as et,__tla as rt}from"./DictTag-ea4c6cc2.js";import{d as k,__tla as lt}from"./formatTime-2157894c.js";import{D as ot,__tla as _t}from"./dict-20c916e2.js";import{F as T,a as it,__tla as nt}from"./FollowUpRecordForm-d5424be6.js";import{u as st,__tla as ct}from"./useMessage-e567ad40.js";import{__tla as pt}from"./el-card-c64c83d1.js";import{__tla as mt}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as ut}from"./Dialog-6fd39e06.js";import{__tla as dt}from"./Editor-3a97a075.js";import{__tla as ft}from"./BusinessList-41030137.js";import{__tla as yt}from"./index-85c1764d.js";import{__tla as bt}from"./ContactList-7cb17d90.js";import{__tla as gt}from"./index-c3988e20.js";let I,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 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{}})()]).then(async()=>{I=V(q({name:"FollowUpRecord",__name:"index",props:{bizType:{type:Number,required:!0},bizId:{type:Number,required:!0}},setup(C){const i=C,g=st(),{t:U}=W(),u=p(!0),h=p([]),w=p(0),_=M({pageNo:1,pageSize:10,bizType:0,bizId:0}),s=async()=>{u.value=!0;try{const n=await T.getFollowUpRecordPage(_);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 j(()=>i.bizId,()=>{_.bizType=i.bizType,_.bizId=i.bizId,s()}),(n,l)=>{const c=Y,d=A,N=G,e=H,P=et,R=J,F=tt,S=Z,v=B("hasPermi"),D=Q;return m(),E(K,null,[t(N,{class:"mb-10px",justify:"end"},{default:o(()=>[t(d,{onClick:l[0]||(l[0]=r=>x("create"))},{default:o(()=>[t(c,{class:"mr-5px",icon:"ep:edit"}),f(" \u5199\u8DDF\u8FDB ")]),_:1})]),_:1}),t(S,null,{default:o(()=>[y((m(),b(R,{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(P,{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:L=>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:L=>(async O=>{try{await g.delConfirm(),await T.deleteFollowUpRecord(O),g.success(U("common.delSuccess")),await s()}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(F,{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: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{ht as __tla,I as default};