index-902eba2f.js 4.0 KB

1
  1. import{d as O,r as p,x as j,w as E,a4 as J,o as m,c as K,f as a,A as o,D as f,k as y,a as t,C as b,F as M,P as W,Q as Y,J as A,K as Q,X,Y as Z,Z as B,_ as G,__tla as H}from"./index-f6fb8e95.js";import{_ as V,__tla as $}from"./ContentWrap-96bb70ec.js";import{_ as aa,__tla as ta}from"./index-58a94653.js";import{_ as ea,__tla as ra}from"./DictTag-81730a57.js";import{d as k,__tla as la}from"./formatTime-ddd96ac8.js";import{D as oa,__tla as _a}from"./dict-c9a7f6a4.js";import{F as C,a as ia,__tla as na}from"./FollowUpRecordForm-44172a71.js";import{u as ca,__tla as sa}from"./useMessage-3b767a67.js";import{__tla as pa}from"./el-card-8db16709.js";import{__tla as ma}from"./index-07a2f7ed.js";import"./color-6e929987.js";import{__tla as ua}from"./Dialog-ac2b0e4e.js";import{__tla as da}from"./Editor-87b5f27a.js";import{__tla as fa}from"./BusinessList-ef616a97.js";import{__tla as ya}from"./index-ceb0bad8.js";import{__tla as ba}from"./ContactList-d6b59e61.js";import{__tla as ga}from"./index-0626748d.js";let I,ha=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}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=ca(),{t:N}=W(),u=p(!0),h=p([]),w=p(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=p(),x=(n,l)=>{var s;(s=z.value)==null||s.open(i.bizType,i.bizId,n,l)};return E(()=>i.bizId,()=>{_.bizType=i.bizType,_.bizId=i.bizId,c()}),(n,l)=>{const s=Y,d=A,P=Q,e=X,U=ea,F=Z,R=aa,S=V,v=J("hasPermi"),D=B;return m(),K(M,null,[a(P,{class:"mb-10px",justify:"end"},{default:o(()=>[a(d,{onClick:l[0]||(l[0]=r=>x("create"))},{default:o(()=>[a(s,{class:"mr-5px",icon:"ep:edit"}),f(" \u5199\u8DDF\u8FDB ")]),_:1})]),_:1}),a(S,null,{default:o(()=>[y((m(),b(F,{data:t(h),"show-overflow-tooltip":!0,stripe:!0},{default:o(()=>[a(e,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(e,{align:"center",label:"\u8DDF\u8FDB\u4EBA",prop:"creatorName"}),a(e,{align:"center",label:"\u8DDF\u8FDB\u7C7B\u578B",prop:"type"},{default:o(r=>[a(U,{type:t(oa).CRM_FOLLOW_UP_TYPE,value:r.row.type},null,8,["type","value"])]),_:1}),a(e,{align:"center",label:"\u8DDF\u8FDB\u5185\u5BB9",prop:"content"}),a(e,{formatter:t(k),align:"center",label:"\u4E0B\u6B21\u8054\u7CFB\u65F6\u95F4",prop:"nextTime",width:"180px"},null,8,["formatter"]),a(e,{align:"center",label:"\u5173\u8054\u8054\u7CFB\u4EBA",prop:"contactIds"}),a(e,{align:"center",label:"\u5173\u8054\u5546\u673A",prop:"businessIds"}),a(e,{formatter:t(k),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),a(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,t(u)]]),a(R,{limit:t(_).pageSize,"onUpdate:limit":l[1]||(l[1]=r=>t(_).pageSize=r),page:t(_).pageNo,"onUpdate:page":l[2]||(l[2]=r=>t(_).pageNo=r),total:t(w),onPagination:c},null,8,["limit","page","total"])]),_:1}),a(ia,{ref_key:"formRef",ref:z,onSuccess:c},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/crm/followup/index.vue"]])});export{ha as __tla,I as default};