index-100a460b.js 4.0 KB

1
  1. import{d as D,r as s,e as O,L as E,Q as G,o as m,c as M,f as t,w as o,n as f,x as y,a,v as b,F as W,h as B,j as H,C as Q,i as Y,G as A,H as J,I as K,_ as V,__tla as X}from"./index-e3afde76.js";import{_ as Z,__tla as $}from"./ContentWrap-5f2f4872.js";import{_ as tt,__tla as at}from"./index-51c17e69.js";import{_ as et,__tla as rt}from"./DictTag-715a7ef1.js";import{d as I,__tla as lt}from"./formatTime-cee700cd.js";import{D as ot,__tla as _t}from"./dict-a141296d.js";import{F as k,a as it,__tla as nt}from"./FollowUpRecordForm-3b3737cb.js";import{u as ct,__tla as pt}from"./useMessage-0b1b25bd.js";import{__tla as st}from"./el-card-6198c22a.js";import{__tla as mt}from"./index-2d20a7ff.js";import"./color-6e929987.js";import{__tla as ut}from"./Dialog-c20523c4.js";import{__tla as dt}from"./Editor-9c92736f.js";import{__tla as ft}from"./BusinessList-76e67ae7.js";import{__tla as yt}from"./index-c26ce0f1.js";import{__tla as bt}from"./ContactList-55f8af82.js";import{__tla as ht}from"./index-92925b9b.js";let C,gt=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 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 ht}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:N}=B(),u=s(!0),g=s([]),w=s(0),_=O({pageNo:1,pageSize:10,bizType:0,bizId:0}),c=async()=>{u.value=!0;try{const n=await k.getFollowUpRecordPage(_);g.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=H,d=Q,U=Y,e=A,F=et,P=J,R=tt,S=Z,v=G("hasPermi"),L=K;return m(),M(W,null,[t(U,{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(P,{data:a(g),"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(F,{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(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:o(r=>[y((m(),b(d,{link:"",type:"primary",onClick:j=>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:j=>(async q=>{try{await h.delConfirm(),await k.deleteFollowUpRecord(q),h.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"])),[[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","D:/zx/mall-newfeifan-zx-admin/src/views/crm/followup/index.vue"]])});export{gt as __tla,C as default};