index-1068c248.js 5.4 KB

1
  1. import{d as j,B as J,r as i,f as M,z as X,S as A,o as p,c as E,i as a,w as l,a as e,T as G,m as u,D as m,j as d,F as H,X as O,I as Q,_ as W,q as Y,J as Z,K as $,L as aa,M as ea,__tla as ta}from"./index-1e808f2e.js";import{_ as la,__tla as ra}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as na,__tla as oa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{d as x,__tla as sa}from"./formatTime-a348c3be.js";import{d as ca}from"./download-20922b56.js";import{f as ia,h as pa,i as ua,__tla as _a}from"./index-25e1fdf0.js";import{_ as ma,__tla as da}from"./BusinessForm.vue_vue_type_script_setup_true_lang-545ca2d5.js";import{u as fa,__tla as ya}from"./useMessage-5f9e8917.js";import{__tla as ha}from"./index-73afebcf.js";import{__tla as ga}from"./el-card-03b3588b.js";import{__tla as wa}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ba}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import"./color-6e929987.js";import{__tla as xa}from"./dict-a31cb4ba.js";import{__tla as ka}from"./index-bb544072.js";import{__tla as Ca}from"./index-a619821f.js";let I,Sa=Promise.all([(()=>{try{return ta}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})()]).then(async()=>{I=j({name:"CrmBusiness",__name:"index",setup(Ta){const h=fa(),{t:P}=J(),g=i(!0),k=i(0),C=i([]),r=M({pageNo:1,pageSize:10,name:null,statusTypeId:null,statusId:null,contactNextTime:[],customerId:null,dealTime:[],price:null,discountPercent:null,productPrice:null,remark:null,ownerUserId:null,createTime:[],roUserIds:null,rwUserIds:null,endStatus:null,endRemark:null,contactLastTime:[],followUpStatus:null}),S=i(),w=i(!1),_=async()=>{g.value=!0;try{const s=await ia(r);C.value=s.list,k.value=s.total}finally{g.value=!1}},b=()=>{r.pageNo=1,_()},z=()=>{S.value.resetFields(),b()},T=i(),U=(s,n)=>{T.value.open(s,n)},F=async()=>{try{await h.exportConfirm(),w.value=!0;const s=await ua(r);ca.excel(s,"\u5546\u673A.xls")}catch{}finally{w.value=!1}};return X(()=>{_()}),(s,n)=>{const R=O,v=Q,f=W,c=Y,V=Z,N=na,t=$,q=aa,B=la,y=A("hasPermi"),D=ea;return p(),E(H,null,[a(N,null,{default:l(()=>[a(V,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:l(()=>[a(v,{label:"\u5546\u673A\u540D\u79F0",prop:"name"},{default:l(()=>[a(R,{modelValue:e(r).name,"onUpdate:modelValue":n[0]||(n[0]=o=>e(r).name=o),placeholder:"\u8BF7\u8F93\u5165\u5546\u673A\u540D\u79F0",clearable:"",onKeyup:G(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,null,{default:l(()=>[a(c,{onClick:b},{default:l(()=>[a(f,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(c,{onClick:z},{default:l(()=>[a(f,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),m((p(),d(c,{type:"primary",onClick:n[1]||(n[1]=o=>U("create"))},{default:l(()=>[a(f,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[y,["crm:business:create"]]]),m((p(),d(c,{type:"success",plain:"",onClick:F,loading:e(w)},{default:l(()=>[a(f,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[y,["crm:business:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:l(()=>[m((p(),d(q,{data:e(C),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[a(t,{label:"\u5546\u673A\u540D\u79F0",align:"center",prop:"name"}),a(t,{label:"\u5BA2\u6237\u540D\u79F0",align:"center",prop:"customerName"}),a(t,{label:"\u5546\u673A\u91D1\u989D",align:"center",prop:"price"}),a(t,{label:"\u9884\u8BA1\u6210\u4EA4\u65E5\u671F",align:"center",prop:"dealTime",formatter:e(x),width:"180px"},null,8,["formatter"]),a(t,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(t,{label:"\u5546\u673A\u72B6\u6001\u7C7B\u578B",align:"center",prop:"statusTypeName"}),a(t,{label:"\u5546\u673A\u72B6\u6001",align:"center",prop:"statusName"}),a(t,{label:"\u66F4\u65B0\u65F6\u95F4",align:"center",prop:"updateTime",formatter:e(x),width:"180px"},null,8,["formatter"]),a(t,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(x),width:"180px"},null,8,["formatter"]),a(t,{label:"\u8D1F\u8D23\u4EBA",align:"center",prop:"ownerUserId"}),a(t,{label:"\u521B\u5EFA\u4EBA",align:"center",prop:"creator"}),a(t,{label:"\u8DDF\u8FDB\u72B6\u6001",align:"center",prop:"followUpStatus"}),a(t,{label:"\u64CD\u4F5C",align:"center",fixed:"right",width:"130px"},{default:l(o=>[m((p(),d(c,{link:"",type:"primary",onClick:K=>U("update",o.row.id)},{default:l(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["crm:business:update"]]]),m((p(),d(c,{link:"",type:"danger",onClick:K=>(async L=>{try{await h.delConfirm(),await pa(L),h.success(P("common.delSuccess")),await _()}catch{}})(o.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["crm:business:delete"]]])]),_:1})]),_:1},8,["data"])),[[D,e(g)]]),a(B,{total:e(k),page:e(r).pageNo,"onUpdate:page":n[2]||(n[2]=o=>e(r).pageNo=o),limit:e(r).pageSize,"onUpdate:limit":n[3]||(n[3]=o=>e(r).pageSize=o),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(ma,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}})});export{Sa as __tla,I as default};