Files
aiot-platform-ui/apps/web-antd/dist/js/data-DXBkBogn.js
lzh 2deb263bf9
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-08 00:18:15 +08:00

2 lines
4.8 KiB
JavaScript

var p=Object.defineProperty,d=Object.defineProperties;var c=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var a=(t,e,l)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l,r=(t,e)=>{for(var l in e||(e={}))s.call(e,l)&&a(t,l,e[l]);if(i)for(var l of i(e))f.call(e,l)&&a(t,l,e[l]);return t},m=(t,e)=>d(t,c(e));import{g as u}from"./index-COhazJSG.js";import{g as h}from"./index-4P5A2KmZ.js";import{g as b}from"./rangePickerProps-B_jPQzKn.js";import{bF as N,at as n}from"./bootstrap-D7yvUSkm.js";import{D as o}from"./dict-enum-CaHgMaDZ.js";function D(){var e;const t=N();return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"线索名称",component:"Input",rules:"required",componentProps:{placeholder:"请输入线索名称"}},{fieldName:"source",label:"客户来源",component:"Select",componentProps:{options:n(o.CRM_CUSTOMER_SOURCE,"number"),placeholder:"请选择客户来源"},rules:"required"},{fieldName:"mobile",label:"手机",component:"Input",componentProps:{placeholder:"请输入手机号"}},{fieldName:"ownerUserId",label:"负责人",component:"ApiSelect",componentProps:{api:h,labelField:"nickname",valueField:"id",allowClear:!0,placeholder:"请选择负责人"},defaultValue:(e=t.userInfo)==null?void 0:e.id,rules:"required",dependencies:{triggerFields:["id"],disabled:l=>l.id}},{fieldName:"telephone",label:"电话",component:"Input",componentProps:{placeholder:"请输入电话"}},{fieldName:"email",label:"邮箱",component:"Input",componentProps:{placeholder:"请输入邮箱"}},{fieldName:"wechat",label:"微信",component:"Input",componentProps:{placeholder:"请输入微信"}},{fieldName:"qq",label:"QQ",component:"Input",componentProps:{placeholder:"请输入 QQ"}},{fieldName:"industryId",label:"客户行业",component:"Select",componentProps:{options:n(o.CRM_CUSTOMER_INDUSTRY,"number"),placeholder:"请选择客户行业"}},{fieldName:"level",label:"客户级别",component:"Select",componentProps:{options:n(o.CRM_CUSTOMER_LEVEL,"number"),placeholder:"请选择客户级别"}},{fieldName:"areaId",label:"地址",component:"ApiTreeSelect",componentProps:{api:u,fieldNames:{label:"name",value:"id",children:"children"},placeholder:"请选择地址"}},{fieldName:"detailAddress",label:"详细地址",component:"Input",componentProps:{placeholder:"请输入详细地址"}},{fieldName:"contactNextTime",label:"下次联系时间",component:"DatePicker",componentProps:{showTime:!0,format:"YYYY-MM-DD HH:mm:ss",valueFormat:"x",placeholder:"请选择下次联系时间"}},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注"}}]}function W(){return[{fieldName:"name",label:"线索名称",component:"Input",componentProps:{placeholder:"请输入线索名称",allowClear:!0}},{fieldName:"transformStatus",label:"转化状态",component:"RadioGroup",componentProps:{options:[{label:"未转化",value:!1},{label:"已转化",value:!0}],placeholder:"请选择转化状态",allowClear:!0},defaultValue:!1},{fieldName:"mobile",label:"手机号",component:"Input",componentProps:{placeholder:"请输入手机号",allowClear:!0}},{fieldName:"telephone",label:"电话",component:"Input",componentProps:{placeholder:"请输入电话",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:m(r({},b()),{allowClear:!0,placeholder:["开始日期","结束日期"]})}]}function U(){return[{field:"name",title:"线索名称",fixed:"left",minWidth:160,slots:{default:"name"}},{field:"source",title:"线索来源",minWidth:100,cellRender:{name:"CellDict",props:{type:o.CRM_CUSTOMER_SOURCE}}},{field:"mobile",title:"手机",minWidth:120},{field:"telephone",title:"电话",minWidth:130},{field:"email",title:"邮箱",minWidth:180},{field:"detailAddress",title:"地址",minWidth:180},{field:"industryId",title:"客户行业",minWidth:100,cellRender:{name:"CellDict",props:{type:o.CRM_CUSTOMER_INDUSTRY}}},{field:"level",title:"客户级别",minWidth:135,cellRender:{name:"CellDict",props:{type:o.CRM_CUSTOMER_LEVEL}}},{field:"contactNextTime",title:"下次联系时间",formatter:"formatDateTime",minWidth:180},{field:"remark",title:"备注",minWidth:200},{field:"contactLastTime",title:"最后跟进时间",formatter:"formatDateTime",minWidth:180},{field:"contactLastContent",title:"最后跟进记录",minWidth:200},{field:"ownerUserName",title:"负责人",minWidth:100},{field:"ownerUserDeptName",title:"所属部门",minWidth:100},{field:"updateTime",title:"更新时间",formatter:"formatDateTime",minWidth:180},{field:"createTime",title:"创建时间",formatter:"formatDateTime",minWidth:180},{title:"操作",width:140,fixed:"right",slots:{default:"actions"}}]}export{D as a,W as b,U as u};