1 |
- import{d as B,h as G,r as c,e as K,l as L,Q,o as p,c as X,f as a,w as l,a as e,R as E,n as u,x as m,v as d,F as J,V as M,A as W,j as $,C as O,D as Y,G as Z,H as aa,I as ea,_ as ta,__tla as la}from"./index-11e4820e.js";import{_ as ra,__tla as na}from"./index-c8f58bd0.js";import{_ as sa,__tla as oa}from"./ContentWrap-694014d4.js";import{d as x,__tla as ia}from"./formatTime-f6a2c881.js";import{d as ca}from"./download-20922b56.js";import{f as pa,h as ua,i as _a,__tla as ma}from"./index-bd35df69.js";import da,{__tla as fa}from"./BusinessForm-fc8346ce.js";import{u as ya,__tla as ha}from"./useMessage-06ddf735.js";import{__tla as ga}from"./index-dd73c59d.js";import{__tla as wa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as ba}from"./el-card-919c14be.js";import{__tla as xa}from"./Dialog-bbfaf85c.js";import{__tla as ka}from"./DictTag-e41ec8de.js";import"./color-6e929987.js";import{__tla as va}from"./dict-4072dcec.js";import{__tla as Ca}from"./index-92580438.js";import{__tla as Ua}from"./index-81684676.js";let S,Ia=Promise.all([(()=>{try{return la}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}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 va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{S=ta(B({name:"CrmBusiness",__name:"index",setup(Na){const h=ya(),{t:z}=G(),g=c(!0),k=c(0),v=c([]),r=K({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}),C=c(),w=c(!1),_=async()=>{g.value=!0;try{const o=await pa(r);v.value=o.list,k.value=o.total}finally{g.value=!1}},b=()=>{r.pageNo=1,_()},P=()=>{C.value.resetFields(),b()},U=c(),I=(o,n)=>{U.value.open(o,n)},R=async()=>{try{await h.exportConfirm(),w.value=!0;const o=await _a(r);ca.excel(o,"\u5546\u673A.xls")}catch{}finally{w.value=!1}};return L(()=>{_()}),(o,n)=>{const V=M,N=W,f=$,i=O,D=Y,T=sa,t=Z,F=aa,H=ra,y=Q("hasPermi"),j=ea;return p(),X(J,null,[a(T,null,{default:l(()=>[a(D,{class:"-mb-15px",model:e(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:l(()=>[a(N,{label:"\u5546\u673A\u540D\u79F0",prop:"name"},{default:l(()=>[a(V,{modelValue:e(r).name,"onUpdate:modelValue":n[0]||(n[0]=s=>e(r).name=s),placeholder:"\u8BF7\u8F93\u5165\u5546\u673A\u540D\u79F0",clearable:"",onKeyup:E(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(N,null,{default:l(()=>[a(i,{onClick:b},{default:l(()=>[a(f,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(i,{onClick:P},{default:l(()=>[a(f,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),m((p(),d(i,{type:"primary",onClick:n[1]||(n[1]=s=>I("create"))},{default:l(()=>[a(f,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[y,["crm:business:create"]]]),m((p(),d(i,{type:"success",plain:"",onClick:R,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(T,null,{default:l(()=>[m((p(),d(F,{data:e(v),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(s=>[m((p(),d(i,{link:"",type:"primary",onClick:q=>I("update",s.row.id)},{default:l(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["crm:business:update"]]]),m((p(),d(i,{link:"",type:"danger",onClick:q=>(async A=>{try{await h.delConfirm(),await ua(A),h.success(z("common.delSuccess")),await _()}catch{}})(s.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["crm:business:delete"]]])]),_:1})]),_:1},8,["data"])),[[j,e(g)]]),a(H,{total:e(k),page:e(r).pageNo,"onUpdate:page":n[2]||(n[2]=s=>e(r).pageNo=s),limit:e(r).pageSize,"onUpdate:limit":n[3]||(n[3]=s=>e(r).pageSize=s),onPagination:_},null,8,["total","page","limit"])]),_:1}),a(da,{ref_key:"formRef",ref:U,onSuccess:_},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/crm/business/index.vue"]])});export{Ia as __tla,S as default};
|