import { FormSchema } from '/@/components/Form/index'; import { incrementUseTypeList } from '/@/api/account'; // 基础设置 form export const remarkschemas: FormSchema[] = [ { field: 'remark', component: 'InputTextArea', label: '备注', componentProps: { placeholder: '请输入钉钉审批单号', rows: 4, }, colProps: { span: 20 }, }, ]; export const newAddschemas: FormSchema[] = [ { field: 'useType', component: 'ApiSelect', required: true, label: '使用类型', componentProps: { // filterOption: onFilterOption, // showSearch: true, api: incrementUseTypeList, labelField: 'name', valueField: 'id', immediate: true, }, itemProps: { autoLink: false, }, colProps: { span: 20, }, }, { field: 'companyName', component: 'Select', label: '合同所属公司', rules: [{ required: true }], colProps: { span: 20, }, itemProps: { autoLink: false, }, componentProps: { options: [ { label: '珠海市四维时代网络科技有限公司', value: '珠海市四维时代网络科技有限公司', key: '珠海市四维时代网络科技有限公司', }, { label: '广东四维看看智能设备有限公司', value: '广东四维看看智能设备有限公司', key: '广东四维看看智能设备有限公司', }, { label: '四维看看(香港)有限公司', value: '四维看看(香港)有限公司', key: '四维看看(香港)有限公司', }, { label: '四维看看(北京)数据科技有限公司', value: '四维看看(北京)数据科技有限公司', key: '四维看看(北京)数据科技有限公司', }, ], }, }, { field: 'businessDept', component: 'Select', label: '业务部门', rules: [{ required: true }], colProps: { span: 20, }, itemProps: { autoLink: false, }, componentProps: { options: [ { label: '数字营销事业部', value: '数字营销事业部', key: '数字营销事业部', }, { label: '政企事业部', value: '政企事业部', key: '政企事业部', }, { label: '海外事业部', value: '海外事业部', key: '海外事业部', }, { label: '市场部', value: '市场部', key: '市场部', }, { label: '总经办', value: '总经办', key: '总经办', }, { label: '考古', value: '考古', key: '考古', }, { label: '不可移动文物保护事业部', value: '不可移动文物保护事业部', key: '不可移动文物保护事业部', }, ], }, }, { field: 'businessName', component: 'Input', label: '业务员', required: true, colProps: { span: 20 }, componentProps: { maxlength: 100, }, }, { field: 'customerPayTime', component: 'DatePicker', label: '客户付款时间', required: true, colProps: { span: 16, }, itemProps: { autoLink: false, }, componentProps: { // showTime: { defaultValue: moment('23:59:59', 'HH:mm:ss') }, valueFormat: 'YYYY-MM-DD', // defaultValue: dayjs().add(7, 'day').format('YYYY-MM-DD') + ' 23:59:59', format: 'YYYY-MM-DD', }, }, ]; export const Addschemas: FormSchema[] = [ { field: 'customerName', component: 'Input', label: '客户名称', required: true, colProps: { span: 20 }, }, { field: 'customerType', component: 'Select', label: '客户类别', required: true, colProps: { span: 20 }, componentProps: { options: [ { label: '直销', value: 0, key: '0', }, { label: '经销', value: 1, key: '1', }, ], }, }, { field: 'endCustomer', component: 'Input', label: '终端客户', required: true, colProps: { span: 20 }, }, { field: 'projectNum', component: 'Input', label: '项目号', required: true, colProps: { span: 20 }, }, ]; export const rtkdeviceColumns: any[] = [ { title: '设备类型', dataIndex: 'cameraType', ellipsis: true, width: 120, customRender: ({ record }) => { const obj = { 0: '四维看看', 1: '四维看见', 2: '四维深时', 3: '四维深光', 4: '四维深巡', }; return obj[record.cameraType] || '-'; }, }, { title: '相机SN', ellipsis: true, dataIndex: 'cameraSn', width: 100, customRender: ({ record }) => { return record.cameraSn || '-'; }, }, { title: '板卡类型', dataIndex: 'rtkType', ellipsis: true, width: 120, customRender: ({ record }) => { const obj = { 0: '千寻板卡', 1: '千寻板卡', 2: '北云板卡', }; return obj[record.rtkType] || '-'; }, }, { title: '板卡SN号', ellipsis: true, dataIndex: 'rtkSnCode', width: 265, }, { title: '深光rtk插件SN号', ellipsis: true, dataIndex: 'sgRtkSn', customRender: ({ record }) => { return record.sgRtkSn || '-'; }, width: 160, }, { title: '账号类型', ellipsis: true, dataIndex: 'accountType', width: 140, customRender: ({ record }) => { const obj = { 0: '账号池(不限期)', 2: '账号池(限期)', 1: '专用账号', }; return obj[record.accountType] || '-'; }, }, { title: '差分账号最新生效日期', ellipsis: true, dataIndex: 'validStartTime', width: 180, }, { title: '差分账号最新到期日期', ellipsis: true, dataIndex: 'validEndTime', width: 180, }, ]; export const rtkuserColumns: any[] = [ { title: '用户名称', ellipsis: true, dataIndex: 'userName', width: 120, }, { title: '运营商', ellipsis: true, dataIndex: 'operator', width: 120, }, { title: 'IP地址', ellipsis: true, dataIndex: 'ipAddr', width: 120, }, { title: '挂载点', ellipsis: true, dataIndex: 'mountPoint', width: 120, }, { title: '端口', ellipsis: true, dataIndex: 'port', width: 50, }, { title: '到期时间', ellipsis: true, dataIndex: 'failureTime', width: 160, }, { title: '创建人', ellipsis: true, dataIndex: 'createNickName', width: 120, }, { title: '创建时间', ellipsis: true, dataIndex: 'createTime', width: 150, }, ]; export const newApiAddschemas: FormSchema[] = [ { field: 'companyName', component: 'Select', label: '合同所属公司', rules: [{ required: true }], colProps: { span: 20, }, itemProps: { autoLink: false, }, componentProps: { options: [ { label: '珠海市四维时代网络科技有限公司', value: '珠海市四维时代网络科技有限公司', key: '珠海市四维时代网络科技有限公司', }, { label: '广东四维看看智能设备有限公司', value: '广东四维看看智能设备有限公司', key: '广东四维看看智能设备有限公司', }, { label: '四维看看(香港)有限公司', value: '四维看看(香港)有限公司', key: '四维看看(香港)有限公司', }, { label: '四维看看(北京)数据科技有限公司', value: '四维看看(北京)数据科技有限公司', key: '四维看看(北京)数据科技有限公司', }, ], }, }, { field: 'businessDept', component: 'Select', label: '业务部门', rules: [{ required: true }], colProps: { span: 20, }, itemProps: { autoLink: false, }, componentProps: { options: [ { label: '数字营销事业部', value: '数字营销事业部', key: '数字营销事业部', }, { label: '政企事业部', value: '政企事业部', key: '政企事业部', }, { label: '海外事业部', value: '海外事业部', key: '海外事业部', }, { label: '市场部', value: '市场部', key: '市场部', }, { label: '总经办', value: '总经办', key: '总经办', }, { label: '考古', value: '考古', key: '考古', }, { label: '不可移动文物保护事业部', value: '不可移动文物保护事业部', key: '不可移动文物保护事业部', }, ], }, }, { field: 'businessName', component: 'Input', label: '业务员', required: true, colProps: { span: 20 }, componentProps: { maxlength: 100, }, }, ];