123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- 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,
- },
- },
- ];
|