diff --git a/src/api/lab/asyncoprlog/index.ts b/src/api/lab/asyncoprlog/index.ts new file mode 100644 index 0000000..f1063a8 --- /dev/null +++ b/src/api/lab/asyncoprlog/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface AsyncOprLogVO { + id: number + busType: string + oprType: string + oprResult: string + oprMsg: string + busDate: string +} + +// 查询实验室-主动同步日志列表 +export const getAsyncOprLogPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/lab/asyncoprlog/senior', data }) + } else { + return await request.get({ url: `/lab/asyncoprlog/page`, params }) + } +} + +// 查询实验室-主动同步日志详情 +export const getAsyncOprLog = async (id: number) => { + return await request.get({ url: `/lab/asyncoprlog/get?id=` + id }) +} + +// 新增实验室-主动同步日志 +export const createAsyncOprLog = async (data: AsyncOprLogVO) => { + return await request.post({ url: `/lab/asyncoprlog/create`, data }) +} + +// 修改实验室-主动同步日志 +export const updateAsyncOprLog = async (data: AsyncOprLogVO) => { + return await request.put({ url: `/lab/asyncoprlog/update`, data }) +} + +// 删除实验室-主动同步日志 +export const deleteAsyncOprLog = async (id: number) => { + return await request.delete({ url: `/lab/asyncoprlog/delete?id=` + id }) +} + +// 导出实验室-主动同步日志 Excel +export const exportAsyncOprLog = async (params) => { + return await request.download({ url: `/lab/asyncoprlog/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/lab/asyncoprlog/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/lab/hardness/three/index.ts b/src/api/lab/hardness/three/index.ts new file mode 100644 index 0000000..ff35715 --- /dev/null +++ b/src/api/lab/hardness/three/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface HardnessThreeVO { + id: number + batchNo: string + sydw: string + standard: string + cz: string + guig: string + testUser: string + testDate: string + syl: string + ytcc: string + yhzj: string + testYd: string +} + +// 查询实验室-布氏硬度列表 +export const getHardnessThreePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/lab/hardnessthree/senior', data }) + } else { + return await request.get({ url: `/lab/hardnessthree/page`, params }) + } +} + +// 查询实验室-布氏硬度详情 +export const getHardnessThree = async (id: number) => { + return await request.get({ url: `/lab/hardnessthree/get?id=` + id }) +} + +// 新增实验室-布氏硬度 +export const createHardnessThree = async (data: HardnessThreeVO) => { + return await request.post({ url: `/lab/hardnessthree/create`, data }) +} + +// 修改实验室-布氏硬度 +export const updateHardnessThree = async (data: HardnessThreeVO) => { + return await request.put({ url: `/lab/hardnessthree/update`, data }) +} + +// 删除实验室-布氏硬度 +export const deleteHardnessThree = async (id: number) => { + return await request.delete({ url: `/lab/hardnessthree/delete?id=` + id }) +} + +// 导出实验室-布氏硬度 Excel +export const exportHardnessThree = async (params) => { + return await request.download({ url: `/lab/hardnessthree/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/lab/hardnessthree/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/lab/hardness/two/index.ts b/src/api/lab/hardness/two/index.ts new file mode 100644 index 0000000..53c7b4b --- /dev/null +++ b/src/api/lab/hardness/two/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface HardnessTwoVO { + id: number + batchNo: string + sydw: string + standard: string + cz: string + guig: string + testUser: string + testDate: string + testType: string + dfirst: string + dtwo: string + davg: string + testYd: string +} + +// 查询实验室-韦氏硬度2列表 +export const getHardnessTwoPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/lab/hardnesstwo/senior', data }) + } else { + return await request.get({ url: `/lab/hardnesstwo/page`, params }) + } +} + +// 查询实验室-韦氏硬度2详情 +export const getHardnessTwo = async (id: number) => { + return await request.get({ url: `/lab/hardnesstwo/get?id=` + id }) +} + +// 新增实验室-韦氏硬度2 +export const createHardnessTwo = async (data: HardnessTwoVO) => { + return await request.post({ url: `/lab/hardnesstwo/create`, data }) +} + +// 修改实验室-韦氏硬度2 +export const updateHardnessTwo = async (data: HardnessTwoVO) => { + return await request.put({ url: `/lab/hardnesstwo/update`, data }) +} + +// 删除实验室-韦氏硬度2 +export const deleteHardnessTwo = async (id: number) => { + return await request.delete({ url: `/lab/hardnesstwo/delete?id=` + id }) +} + +// 导出实验室-韦氏硬度2 Excel +export const exportHardnessTwo = async (params) => { + return await request.download({ url: `/lab/hardnesstwo/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/lab/hardnesstwo/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/pszc/pselectricdata/index.ts b/src/api/pszc/pselectricdata/index.ts new file mode 100644 index 0000000..0130d28 --- /dev/null +++ b/src/api/pszc/pselectricdata/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PsElectricdataVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询变电所-智能电列表 +export const getPsElectricdataPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/pszc/pselectricdata/senior', data }) + } else { + return await request.get({ url: `/pszc/pselectricdata/page`, params }) + } +} + +// 查询变电所-智能电详情 +export const getPsElectricdata = async (id: number) => { + return await request.get({ url: `/pszc/pselectricdata/get?id=` + id }) +} + +// 新增变电所-智能电 +export const createPsElectricdata = async (data: PsElectricdataVO) => { + return await request.post({ url: `/pszc/pselectricdata/create`, data }) +} + +// 修改变电所-智能电 +export const updatePsElectricdata = async (data: PsElectricdataVO) => { + return await request.put({ url: `/pszc/pselectricdata/update`, data }) +} + +// 删除变电所-智能电 +export const deletePsElectricdata = async (id: number) => { + return await request.delete({ url: `/pszc/pselectricdata/delete?id=` + id }) +} + +// 导出变电所-智能电 Excel +export const exportPsElectricdata = async (params) => { + return await request.download({ url: `/pszc/pselectricdata/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/pszc/pselectricdata/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/pszc/psireaidata/index.ts b/src/api/pszc/psireaidata/index.ts new file mode 100644 index 0000000..350df56 --- /dev/null +++ b/src/api/pszc/psireaidata/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +export interface PsIrealdataVO { + id: number + ikey: string + icode: string + idesc: string + icls: string + ino: number + ivalue: string + irtuno: number + irtuname: string + irtudesc: string + irtutype: number + iupdatetime: Date +} + +// 查询变电所-一次主表列表 +export const getPsIrealdataPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/pszc/psirealdata/senior', data }) + } else { + return await request.get({ url: `/pszc/psirealdata/page`, params }) + } +} + +// 查询变电所-一次主表详情 +export const getPsIrealdata = async (id: number) => { + return await request.get({ url: `/pszc/psirealdata/get?id=` + id }) +} + +// 新增变电所-一次主表 +export const createPsIrealdata = async (data: PsIrealdataVO) => { + return await request.post({ url: `/pszc/psirealdata/create`, data }) +} + +// 修改变电所-一次主表 +export const updatePsIrealdata = async (data: PsIrealdataVO) => { + return await request.put({ url: `/pszc/psirealdata/update`, data }) +} + +// 删除变电所-一次主表 +export const deletePsIrealdata = async (id: number) => { + return await request.delete({ url: `/pszc/psirealdata/delete?id=` + id }) +} + +// 导出变电所-一次主表 Excel +export const exportPsIrealdata = async (params) => { + return await request.download({ url: `/pszc/psirealdata/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/pszc/psirealdata/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/pszc/pspumpdata/index.ts b/src/api/pszc/pspumpdata/index.ts new file mode 100644 index 0000000..703cd4a --- /dev/null +++ b/src/api/pszc/pspumpdata/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PsPumpdataVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询变电所-泵站列表 +export const getPsPumpdataPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/pszc/pspumpdata/senior', data }) + } else { + return await request.get({ url: `/pszc/pspumpdata/page`, params }) + } +} + +// 查询变电所-泵站详情 +export const getPsPumpdata = async (id: number) => { + return await request.get({ url: `/pszc/pspumpdata/get?id=` + id }) +} + +// 新增变电所-泵站 +export const createPsPumpdata = async (data: PsPumpdataVO) => { + return await request.post({ url: `/pszc/pspumpdata/create`, data }) +} + +// 修改变电所-泵站 +export const updatePsPumpdata = async (data: PsPumpdataVO) => { + return await request.put({ url: `/pszc/pspumpdata/update`, data }) +} + +// 删除变电所-泵站 +export const deletePsPumpdata = async (id: number) => { + return await request.delete({ url: `/pszc/pspumpdata/delete?id=` + id }) +} + +// 导出变电所-泵站 Excel +export const exportPsPumpdata = async (params) => { + return await request.download({ url: `/pszc/pspumpdata/export-excel`, params }) +} + +// 下载导入模板 +export const importTemplate = () => { + return request.download({ url: '/pszc/pspumpdata/get-import-template' }) +} \ No newline at end of file diff --git a/src/utils/dict.ts b/src/utils/dict.ts index bd4c9ea..3d129b9 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -184,6 +184,7 @@ export enum DICT_TYPE { // ========== LAB - 实验室数据模块 ============ LAB_USER_TEST_TYPE = 'test_user_type', - LAB_AUDIT_STATUS = 'lab_audit_status' - + LAB_AUDIT_STATUS = 'lab_audit_status', + LAB_ASYNC_BUS_TYPE = 'lab_async_bus_type', + LAB_OPR_TYPE = 'lab_opr_type' } diff --git a/src/views/lab/asyncoprlog/asyncOprLog.data.ts b/src/views/lab/asyncoprlog/asyncOprLog.data.ts new file mode 100644 index 0000000..9926f23 --- /dev/null +++ b/src/views/lab/asyncoprlog/asyncOprLog.data.ts @@ -0,0 +1,89 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter , dateFormatter2 } from '@/utils/formatTime' + +// 表单校验 +export const AsyncOprLogRules = reactive({ +}) + +export const AsyncOprLog = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '业务类型', + field: 'busType', + sort: 'custom', + isSearch: true, + dictType: DICT_TYPE.LAB_ASYNC_BUS_TYPE, + dictClass: 'number' + }, + { + label: '操作类型', + field: 'oprType', + sort: 'custom', + isSearch: true, + dictType: DICT_TYPE.LAB_OPR_TYPE, + dictClass: 'number' + }, + { + label: '操作结果', + field: 'oprResult', + sort: 'custom', + isSearch: false, + }, + { + label: '描述', + field: 'oprMsg', + sort: 'custom', + isSearch: false, + }, + { + label: '业务日期', + field: 'busDate', + sort: 'custom', + formatter: dateFormatter2, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD', + type: 'date' + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'date', + valueFormat: 'YYYY-MM-DD' + } + }, + }, + { + label: '执行时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: false, + isForm: false, + form: { + component: 'DatePicker', + componentProps: { + type: 'date', + valueFormat: 'x' + } + }, + } + // , + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/lab/asyncoprlog/index.vue b/src/views/lab/asyncoprlog/index.vue new file mode 100644 index 0000000..5ec5019 --- /dev/null +++ b/src/views/lab/asyncoprlog/index.vue @@ -0,0 +1,215 @@ + + + diff --git a/src/views/lab/hardness/three/hardnessThree.data.ts b/src/views/lab/hardness/three/hardnessThree.data.ts new file mode 100644 index 0000000..2781220 --- /dev/null +++ b/src/views/lab/hardness/three/hardnessThree.data.ts @@ -0,0 +1,173 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const HardnessThreeRules = reactive({ +}) + +export const HardnessThree = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '批次号', + field: 'batchNo', + sort: 'custom', + isSearch: true, + table: { + width: 120 + } + }, + { + label: '送样单位', + field: 'sydw', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '标准', + field: 'standard', + sort: 'false', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '材质', + field: 'cz', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '规格', + field: 'guig', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '实验人', + field: 'testUser', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + dictType: DICT_TYPE.LAB_USER_TEST_TYPE, + dictClass: 'number' + }, + { + label: '实验日期', + field: 'testDate', + sort: 'custom', + formatter: dateFormatter, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'date', + valueFormat: 'YYYY-MM-DD' + } + }, + table: { + width: 150 + } + }, + { + label: '实验力(KN)', + field: 'syl', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '压头尺寸(mm)', + field: 'ytcc', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '压痕直径(mm)', + field: 'yhzj', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '硬度', + field: 'testYd', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: '审核状态', + field: 'auditStatus', + sort: 'custom', + isSearch: true, + table: { + width: 120, + fixed: 'right' + }, + dictType: DICT_TYPE.LAB_AUDIT_STATUS, + dictClass: 'number' + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + table: { + width: 180, + fixed: 'right' + }, + isForm: false, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/lab/hardness/three/index.vue b/src/views/lab/hardness/three/index.vue new file mode 100644 index 0000000..deee3cd --- /dev/null +++ b/src/views/lab/hardness/three/index.vue @@ -0,0 +1,225 @@ + + + diff --git a/src/views/lab/hardness/two/hardnessTwo.data.ts b/src/views/lab/hardness/two/hardnessTwo.data.ts new file mode 100644 index 0000000..b2a3eb1 --- /dev/null +++ b/src/views/lab/hardness/two/hardnessTwo.data.ts @@ -0,0 +1,182 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter , dateFormatter2 } from '@/utils/formatTime' + +// 表单校验 +export const HardnessTwoRules = reactive({ +}) + +export const HardnessTwo = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '批次号', + field: 'batchNo', + sort: 'custom', + isSearch: true, + table: { + width: 120 + } + }, + { + label: '送样单位', + field: 'sydw', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '标准', + field: 'standard', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '材质', + field: 'cz', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '规格', + field: 'guig', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '实验人', + field: 'testUser', + sort: 'custom', + isSearch: true, + table: { + width: 150 + }, + dictType: DICT_TYPE.LAB_USER_TEST_TYPE, + dictClass: 'number' + }, + { + label: '实验日期', + field: 'testDate', + sort: 'custom', + formatter: dateFormatter2, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD', + type: 'daterange', + // defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'date', + valueFormat: 'YYYY-MM-DD' + } + }, + table: { + width: 150 + } + }, + { + label: '类别', + field: 'testType', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: 'd1(um)', + field: 'dfirst', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: 'd2(um)', + field: 'dtwo', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: '平均(um)', + field: 'davg', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: '硬度', + field: 'testYd', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: '审核状态', + field: 'auditStatus', + sort: 'custom', + isSearch: true, + table: { + width: 120, + fixed: 'right' + }, + dictType: DICT_TYPE.LAB_AUDIT_STATUS, + dictClass: 'number' + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + table: { + width: 180, + fixed: 'right' + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) diff --git a/src/views/lab/hardness/two/index.vue b/src/views/lab/hardness/two/index.vue new file mode 100644 index 0000000..7a595d1 --- /dev/null +++ b/src/views/lab/hardness/two/index.vue @@ -0,0 +1,218 @@ + + + diff --git a/src/views/pszc/pselectricdata/index.vue b/src/views/pszc/pselectricdata/index.vue new file mode 100644 index 0000000..7cd5380 --- /dev/null +++ b/src/views/pszc/pselectricdata/index.vue @@ -0,0 +1,212 @@ + + + diff --git a/src/views/pszc/pselectricdata/psElectricdata.data.ts b/src/views/pszc/pselectricdata/psElectricdata.data.ts new file mode 100644 index 0000000..e57a0ae --- /dev/null +++ b/src/views/pszc/pselectricdata/psElectricdata.data.ts @@ -0,0 +1,76 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PsElectricdataRules = reactive({ + icode: [required], + iname: [required], + ivalue: [required], + mcode: [required], + mname: [required], +}) + +export const PsElectricdata = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '数据点编号', + field: 'icode', + sort: 'custom', + isSearch: true, + }, + { + label: '数据点名称', + field: 'iname', + sort: 'custom', + isSearch: false, + }, + { + label: '采集值', + field: 'ivalue', + sort: 'custom', + isSearch: false, + }, + { + label: '仪表的编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '仪表的名称', + field: 'mname', + sort: 'custom', + isSearch: false, + }, + { + label: '采集时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + } + // , + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/pszc/psireaidata/index.vue b/src/views/pszc/psireaidata/index.vue new file mode 100644 index 0000000..8cc9a52 --- /dev/null +++ b/src/views/pszc/psireaidata/index.vue @@ -0,0 +1,205 @@ + + + diff --git a/src/views/pszc/psireaidata/psIrealdata.data.ts b/src/views/pszc/psireaidata/psIrealdata.data.ts new file mode 100644 index 0000000..c6649f4 --- /dev/null +++ b/src/views/pszc/psireaidata/psIrealdata.data.ts @@ -0,0 +1,168 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PsIrealdataRules = reactive({ + icode: [required], + idesc: [required], + ino: [required], + ivalue: [required], + irtuno: [required], + irtuname: [required], + irtudesc: [required], + irtutype: [required], + iupdatetime: [required], +}) + +export const PsIrealdata = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '原始表key', + field: 'ikey', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '数据点编号', + field: 'icode', + sort: 'custom', + isSearch: true, + table: { + width: 150 + } + }, + { + label: '数据点描述', + field: 'idesc', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '内部编号', + field: 'icls', + sort: 'custom', + isSearch: true, + table: { + width: 150 + } + }, + { + label: '索引号', + field: 'ino', + sort: 'custom', + isSearch: false, + table: { + width: 200 + } + }, + { + label: '采集值', + field: 'ivalue', + sort: 'custom', + isSearch: false, + table: { + width: 120 + } + }, + { + label: '编号(系统内)', + field: 'irtuno', + sort: 'custom', + isSearch: false, + table: { + width: 200 + } + }, + { + label: '编号(Meter01)', + field: 'irtuname', + sort: 'custom', + isSearch: false, + table: { + width: 200 + } + }, + { + label: '仪表描述', + field: 'irtudesc', + sort: 'custom', + isSearch: false, + table: { + width: 200 + } + }, + { + label: '仪表编号', + field: 'irtutype', + sort: 'custom', + isSearch: false, + table: { + width: 150 + } + }, + { + label: '采集更新时间', + field: 'iupdatetime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + table: { + width: 180 + } + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: false, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + table: { + width: 180 + } + } + // , + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +])) diff --git a/src/views/pszc/pspumpdata/index.vue b/src/views/pszc/pspumpdata/index.vue new file mode 100644 index 0000000..638382f --- /dev/null +++ b/src/views/pszc/pspumpdata/index.vue @@ -0,0 +1,221 @@ + + + diff --git a/src/views/pszc/pspumpdata/psPumpdata.data.ts b/src/views/pszc/pspumpdata/psPumpdata.data.ts new file mode 100644 index 0000000..415e23c --- /dev/null +++ b/src/views/pszc/pspumpdata/psPumpdata.data.ts @@ -0,0 +1,76 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PsPumpdataRules = reactive({ + icode: [required], + iname: [required], + ivalue: [required], + mcode: [required], + mname: [required], +}) + +export const PsPumpdata = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '数据点编号', + field: 'icode', + sort: 'custom', + isSearch: true, + }, + { + label: '数据点名称', + field: 'iname', + sort: 'custom', + isSearch: false, + }, + { + label: '采集值', + field: 'ivalue', + sort: 'custom', + isSearch: false, + }, + { + label: '仪表的编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '仪表的名称', + field: 'mname', + sort: 'custom', + isSearch: false, + }, + { + label: '采集数据的时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } + }, + isForm: false, + } + // , + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } +]))