2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
var p=Object.defineProperty,c=Object.defineProperties;var s=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var r=(e,l,t)=>l in e?p(e,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[l]=t,n=(e,l)=>{for(var t in l||(l={}))u.call(l,t)&&r(e,t,l[t]);if(i)for(var t of i(l))f.call(l,t)&&r(e,t,l[t]);return e},m=(e,l)=>c(e,s(l));import{g as h}from"./index-BbmeYgrK.js";import{g as d}from"./index-DHLRhwOb.js";import{g as C}from"./rangePickerProps-BPpM6dzr.js";import{bF as N,at as a,ap as b}from"./bootstrap-CRjSNGHY.js";import{D as o}from"./dict-enum-CaHgMaDZ.js";function D(){var l;const e=N();return[{fieldName:"id",component:"Input",dependencies:{triggerFields:[""],show:()=>!1}},{fieldName:"name",label:"客户名称",component:"Input",rules:"required",componentProps:{placeholder:"请输入客户名称",allowClear:!0}},{fieldName:"source",label:"客户来源",component:"Select",componentProps:{options:a(o.CRM_CUSTOMER_SOURCE,"number"),placeholder:"请选择客户来源",allowClear:!0}},{fieldName:"mobile",label:"手机",component:"Input",componentProps:{placeholder:"请输入手机",allowClear:!0}},{fieldName:"ownerUserId",label:"负责人",component:"ApiSelect",dependencies:{triggerFields:["id"],disabled:t=>t.id},componentProps:{api:d,labelField:"nickname",valueField:"id",placeholder:"请选择负责人",allowClear:!0},defaultValue:(l=e.userInfo)==null?void 0:l.id,rules:"required"},{fieldName:"telephone",label:"电话",component:"Input",componentProps:{placeholder:"请输入电话",allowClear:!0}},{fieldName:"email",label:"邮箱",component:"Input",componentProps:{placeholder:"请输入邮箱",allowClear:!0}},{fieldName:"wechat",label:"微信",component:"Input",componentProps:{placeholder:"请输入微信",allowClear:!0}},{fieldName:"qq",label:"QQ",component:"Input",componentProps:{placeholder:"请输入QQ",allowClear:!0}},{fieldName:"industryId",label:"客户行业",component:"Select",componentProps:{options:a(o.CRM_CUSTOMER_INDUSTRY,"number"),placeholder:"请选择客户行业",allowClear:!0}},{fieldName:"level",label:"客户级别",component:"Select",componentProps:{options:a(o.CRM_CUSTOMER_LEVEL,"number"),placeholder:"请选择客户级别",allowClear:!0}},{fieldName:"areaId",label:"地址",component:"ApiTreeSelect",componentProps:{api:h,fieldNames:{label:"name",value:"id",children:"children"},placeholder:"请选择地址",allowClear:!0}},{fieldName:"detailAddress",label:"详细地址",component:"Input",componentProps:{placeholder:"请输入详细地址",allowClear:!0}},{fieldName:"contactNextTime",label:"下次联系时间",component:"DatePicker",componentProps:{showTime:!0,format:"YYYY-MM-DD HH:mm:ss",valueFormat:"x",placeholder:"请选择下次联系时间",allowClear:!0}},{fieldName:"remark",label:"备注",component:"Textarea",componentProps:{placeholder:"请输入备注",allowClear:!0}}]}function W(){return[{fieldName:"name",label:"客户名称",component:"Input",componentProps:{placeholder:"请输入客户名称",allowClear:!0}},{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(n({},C()),{placeholder:["开始日期","结束日期"],allowClear:!0})}]}function U(){return[{fieldName:"ownerUserId",label:"负责人",component:"ApiSelect",componentProps:{api:d,labelField:"nickname",valueField:"id",placeholder:"请选择负责人",allowClear:!0,class:"w-full"},dependencies:{triggerFields:["id"],disabled:e=>e.id},rules:"required"},{fieldName:"file",label:"客户数据",component:"Upload",rules:"required",help:"仅允许导入 xls、xlsx 格式文件"},{fieldName:"updateSupport",label:"是否覆盖",component:"Switch",componentProps:{checkedChildren:"是",unCheckedChildren:"否"},rules:b().default(!1),help:"是否更新已经存在的客户数据"}]}function _(){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:"level",title:"客户级别",minWidth:135,cellRender:{name:"CellDict",props:{type:o.CRM_CUSTOMER_LEVEL}}},{field:"industryId",title:"客户行业",minWidth:100,cellRender:{name:"CellDict",props:{type:o.CRM_CUSTOMER_INDUSTRY}}},{field:"contactNextTime",title:"下次联系时间",formatter:"formatDateTime",minWidth:180},{field:"remark",title:"备注",minWidth:200},{field:"lockStatus",title:"锁定状态",minWidth:120,cellRender:{name:"CellDict",props:{type:o.INFRA_BOOLEAN_STRING}}},{field:"dealStatus",title:"成交状态",minWidth:120,cellRender:{name:"CellDict",props:{type:o.INFRA_BOOLEAN_STRING}}},{field:"contactLastTime",title:"最后跟进时间",formatter:"formatDateTime",minWidth:180},{field:"contactLastContent",title:"最后跟进记录",minWidth:200},{field:"detailAddress",title:"地址",minWidth:180},{field:"poolDay",title:"距离进入公海天数",minWidth:140,formatter:({cellValue:e})=>e===null?"-":`${e} 天`},{field:"ownerUserName",title:"负责人",minWidth:100},{field:"ownerUserDeptName",title:"所属部门",minWidth:100},{field:"updateTime",title:"更新时间",formatter:"formatDateTime",minWidth:180},{field:"createTime",title:"创建时间",formatter:"formatDateTime",minWidth:180},{field:"creatorName",title:"创建人",minWidth:100},{title:"操作",width:130,fixed:"right",slots:{default:"actions"}}]}export{D as a,W as b,U as c,_ as u};
|