Files
aiot-platform-ui/apps/web-antd/dist/js/index-BDLPMIAQ.js
lzh 24c3dbc8f1
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-23 17:20:54 +08:00

2 lines
4.3 KiB
JavaScript

var S=Object.defineProperty;var h=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var _=(i,t,e)=>t in i?S(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,R=(i,t)=>{for(var e in t||(t={}))b.call(t,e)&&_(i,e,t[e]);if(h)for(var e of h(t))N.call(t,e)&&_(i,e,t[e]);return i};var f=(i,t,e)=>new Promise((p,s)=>{var u=o=>{try{n(e.next(o))}catch(d){s(d)}},r=o=>{try{n(e.throw(o))}catch(d){s(d)}},n=o=>o.done?p(o.value):Promise.resolve(o.value).then(u,r);n((e=e.apply(i,t)).next())});import{at as C,V as D,ay as O,$ as y}from"./bootstrap-DmcuvVZS.js";import"./vxe-table-CF-Re93B.js";import{d as W,j as g}from"./index-BsXf_4P6.js";import{D as l}from"./dict-enum-CaHgMaDZ.js";import{_ as x}from"./table-action.vue_vue_type_script_setup_true_lang-DLEMWDWC.js";import{_ as T}from"./doc-alert.vue_vue_type_script_setup_true_lang-DQzmmLpt.js";import{_ as E}from"./page.vue_vue_type_script_setup_true_lang-D_L6nEGY.js";import{m as M,ab as I,b2 as w,bJ as m,j as c,u as a,ai as U,bp as k,di as P}from"../jse/index-index-B6J4axeY.js";import{u as L}from"./use-vxe-grid-DQWlXi-M.js";import{A as V}from"./icons-CieLeI1V.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-D0nJjy4y.js";import"./index-Dlk9vVoe.js";function A(){return[{fieldName:"name",label:"客户名称",component:"Input",componentProps:{placeholder:"请输入客户名称",allowClear:!0}},{fieldName:"mobile",label:"手机",component:"Input",componentProps:{placeholder:"请输入手机",allowClear:!0}},{fieldName:"industryId",label:"所属行业",component:"Select",componentProps:{options:C(l.CRM_CUSTOMER_INDUSTRY,"number"),placeholder:"请选择所属行业",allowClear:!0}},{fieldName:"level",label:"客户级别",component:"Select",componentProps:{options:C(l.CRM_CUSTOMER_LEVEL,"number"),placeholder:"请选择客户级别",allowClear:!0}},{fieldName:"source",label:"客户来源",component:"Select",componentProps:{options:C(l.CRM_CUSTOMER_SOURCE,"number"),placeholder:"请选择客户来源",allowClear:!0}}]}function $(){return[{title:"客户名称",field:"name",minWidth:160,fixed:"left",slots:{default:"name"}},{title:"客户来源",field:"source",minWidth:100,cellRender:{name:"CellDict",props:{type:l.CRM_CUSTOMER_SOURCE}}},{title:"手机",field:"mobile",minWidth:120},{title:"电话",field:"telephone",minWidth:120},{title:"邮箱",field:"email",minWidth:140},{title:"客户级别",field:"level",minWidth:135,cellRender:{name:"CellDict",props:{type:l.CRM_CUSTOMER_LEVEL}}},{title:"客户行业",field:"industryId",minWidth:100,cellRender:{name:"CellDict",props:{type:l.CRM_CUSTOMER_INDUSTRY}}},{title:"下次联系时间",field:"contactNextTime",minWidth:180,formatter:"formatDateTime"},{title:"备注",field:"remark",minWidth:200},{title:"成交状态",field:"dealStatus",minWidth:80,cellRender:{name:"CellDict",props:{type:l.INFRA_BOOLEAN_STRING}}},{title:"最后跟进时间",field:"contactLastTime",minWidth:180,formatter:"formatDateTime"},{title:"最后跟进记录",field:"contactLastContent",minWidth:200},{title:"更新时间",field:"updateTime",minWidth:180,formatter:"formatDateTime"},{title:"创建时间",field:"createTime",minWidth:180,formatter:"formatDateTime"},{title:"创建人",field:"creatorName",minWidth:100}]}const Z=M({__name:"index",setup(i){const{push:t}=D();function e(){return f(this,null,function*(){const r=yield g(yield u.formApi.getValues());P({fileName:"客户公海.xls",source:r})})}function p(r){t({name:"CrmCustomerDetail",params:{id:r.id}})}const[s,u]=L({formOptions:{schema:A()},gridOptions:{columns:$(),height:"auto",keepSource:!0,proxyConfig:{ajax:{query:(o,d)=>f(null,[o,d],function*({page:r},n){return yield W(R({pageNo:r.currentPage,pageSize:r.pageSize,pool:!0},n))})}},rowConfig:{keyField:"id",isHover:!0},toolbarConfig:{refresh:!0,search:!0}}});return(r,n)=>(w(),I(a(E),{"auto-content-height":""},{doc:m(()=>[c(a(T),{title:"【客户】客户管理、公海客户",url:"https://doc.iocoder.cn/crm/customer/"}),c(a(T),{title:"【通用】数据权限",url:"https://doc.iocoder.cn/crm/permission/"})]),default:m(()=>[c(a(s),null,{"toolbar-tools":m(()=>[c(a(x),{actions:[{label:a(y)("ui.actionTitle.export"),type:"primary",icon:a(V).DOWNLOAD,auth:["crm:customer:export"],onClick:e}]},null,8,["actions"])]),name:m(({row:o})=>[c(a(O),{type:"link",onClick:d=>p(o)},{default:m(()=>[U(k(o.name),1)]),_:2},1032,["onClick"])]),_:1})]),_:1}))}});export{Z as default};