From 215cf45c4eaa04bac9735a3fdd22f6db788bbb94 Mon Sep 17 00:00:00 2001 From: lidm0086 Date: Thu, 12 Dec 2024 08:34:45 +0800 Subject: [PATCH] 1212 --- src/api/ccwin/eqBlender/index.ts | 51 ++++ src/api/ccwin/eqCoater/index.ts | 51 ++++ src/api/ccwin/eqFine/index.ts | 51 ++++ src/api/ccwin/eqPre/index.ts | 51 ++++ src/api/ccwin/eqRollsqueezer/index.ts | 51 ++++ src/api/ccwin/eqStacking/index.ts | 51 ++++ src/api/ccwin/paAc/index.ts | 51 ++++ src/api/ccwin/paDhu/index.ts | 51 ++++ src/api/ccwin/paLoopwater/index.ts | 51 ++++ src/api/ccwin/paRo/index.ts | 51 ++++ src/api/ccwin/paVacuo/index.ts | 51 ++++ src/api/ccwin/paWastewater/index.ts | 51 ++++ src/api/opc/dieCutting/index.ts | 58 +++++ src/views/ccwin/eqBlender/eqBlender.data.ts | 70 +++++ src/views/ccwin/eqBlender/index.vue | 244 +++++++++++++++++ src/views/ccwin/eqCoater/eqCoater.data.ts | 70 +++++ src/views/ccwin/eqCoater/index.vue | 244 +++++++++++++++++ src/views/ccwin/eqFine/eqFine.data.ts | 70 +++++ src/views/ccwin/eqFine/index.vue | 244 +++++++++++++++++ src/views/ccwin/eqPre/eqPre.data.ts | 70 +++++ src/views/ccwin/eqPre/index.vue | 244 +++++++++++++++++ .../eqRollsqueezer/eqRollsqueezer.data.ts | 70 +++++ src/views/ccwin/eqRollsqueezer/index.vue | 244 +++++++++++++++++ src/views/ccwin/eqStacking/eqStacking.data.ts | 70 +++++ src/views/ccwin/eqStacking/index.vue | 244 +++++++++++++++++ src/views/ccwin/paAc/index.vue | 244 +++++++++++++++++ src/views/ccwin/paAc/paAc.data.ts | 70 +++++ src/views/ccwin/paDhu/index.vue | 244 +++++++++++++++++ src/views/ccwin/paDhu/paDhu.data.ts | 68 +++++ src/views/ccwin/paLoopwater/index.vue | 244 +++++++++++++++++ .../ccwin/paLoopwater/paLoopwater.data.ts | 70 +++++ src/views/ccwin/paRo/index.vue | 244 +++++++++++++++++ src/views/ccwin/paRo/paRo.data.ts | 70 +++++ src/views/ccwin/paVacuo/index.vue | 245 ++++++++++++++++++ src/views/ccwin/paVacuo/paVacuo.data.ts | 69 +++++ src/views/ccwin/paWastewater/index.vue | 244 +++++++++++++++++ .../ccwin/paWastewater/paWastewater.data.ts | 70 +++++ src/views/opc/dieCutting/dieCutting.data.ts | 121 +++++++++ src/views/opc/dieCutting/index.vue | 244 +++++++++++++++++ 39 files changed, 4801 insertions(+) create mode 100644 src/api/ccwin/eqBlender/index.ts create mode 100644 src/api/ccwin/eqCoater/index.ts create mode 100644 src/api/ccwin/eqFine/index.ts create mode 100644 src/api/ccwin/eqPre/index.ts create mode 100644 src/api/ccwin/eqRollsqueezer/index.ts create mode 100644 src/api/ccwin/eqStacking/index.ts create mode 100644 src/api/ccwin/paAc/index.ts create mode 100644 src/api/ccwin/paDhu/index.ts create mode 100644 src/api/ccwin/paLoopwater/index.ts create mode 100644 src/api/ccwin/paRo/index.ts create mode 100644 src/api/ccwin/paVacuo/index.ts create mode 100644 src/api/ccwin/paWastewater/index.ts create mode 100644 src/api/opc/dieCutting/index.ts create mode 100644 src/views/ccwin/eqBlender/eqBlender.data.ts create mode 100644 src/views/ccwin/eqBlender/index.vue create mode 100644 src/views/ccwin/eqCoater/eqCoater.data.ts create mode 100644 src/views/ccwin/eqCoater/index.vue create mode 100644 src/views/ccwin/eqFine/eqFine.data.ts create mode 100644 src/views/ccwin/eqFine/index.vue create mode 100644 src/views/ccwin/eqPre/eqPre.data.ts create mode 100644 src/views/ccwin/eqPre/index.vue create mode 100644 src/views/ccwin/eqRollsqueezer/eqRollsqueezer.data.ts create mode 100644 src/views/ccwin/eqRollsqueezer/index.vue create mode 100644 src/views/ccwin/eqStacking/eqStacking.data.ts create mode 100644 src/views/ccwin/eqStacking/index.vue create mode 100644 src/views/ccwin/paAc/index.vue create mode 100644 src/views/ccwin/paAc/paAc.data.ts create mode 100644 src/views/ccwin/paDhu/index.vue create mode 100644 src/views/ccwin/paDhu/paDhu.data.ts create mode 100644 src/views/ccwin/paLoopwater/index.vue create mode 100644 src/views/ccwin/paLoopwater/paLoopwater.data.ts create mode 100644 src/views/ccwin/paRo/index.vue create mode 100644 src/views/ccwin/paRo/paRo.data.ts create mode 100644 src/views/ccwin/paVacuo/index.vue create mode 100644 src/views/ccwin/paVacuo/paVacuo.data.ts create mode 100644 src/views/ccwin/paWastewater/index.vue create mode 100644 src/views/ccwin/paWastewater/paWastewater.data.ts create mode 100644 src/views/opc/dieCutting/dieCutting.data.ts create mode 100644 src/views/opc/dieCutting/index.vue diff --git a/src/api/ccwin/eqBlender/index.ts b/src/api/ccwin/eqBlender/index.ts new file mode 100644 index 0000000..be3056e --- /dev/null +++ b/src/api/ccwin/eqBlender/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqBlenderVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询搅拌机列表 +export const getEqBlenderPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqBlender/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqBlender/page`, params }) + } +} + +// 查询搅拌机详情 +export const getEqBlender = async (id: number) => { + return await request.get({ url: `/ccwin/eqBlender/get?id=` + id }) +} + +// 新增搅拌机 +export const createEqBlender = async (data: EqBlenderVO) => { + return await request.post({ url: `/ccwin/eqBlender/create`, data }) +} + +// 修改搅拌机 +export const updateEqBlender = async (data: EqBlenderVO) => { + return await request.put({ url: `/ccwin/eqBlender/update`, data }) +} + +// 删除搅拌机 +export const deleteEqBlender = async (id: number) => { + return await request.delete({ url: `/ccwin/eqBlender/delete?id=` + id }) +} + +// 导出搅拌机 Excel +export const exportEqBlender = async (params) => { + return await request.download({ url: `/ccwin/eqBlender/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqBlender/get-import-template' }) +} diff --git a/src/api/ccwin/eqCoater/index.ts b/src/api/ccwin/eqCoater/index.ts new file mode 100644 index 0000000..128da2f --- /dev/null +++ b/src/api/ccwin/eqCoater/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqCoaterVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询涂布机列表 +export const getEqCoaterPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqCoater/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqCoater/page`, params }) + } +} + +// 查询涂布机详情 +export const getEqCoater = async (id: number) => { + return await request.get({ url: `/ccwin/eqCoater/get?id=` + id }) +} + +// 新增涂布机 +export const createEqCoater = async (data: EqCoaterVO) => { + return await request.post({ url: `/ccwin/eqCoater/create`, data }) +} + +// 修改涂布机 +export const updateEqCoater = async (data: EqCoaterVO) => { + return await request.put({ url: `/ccwin/eqCoater/update`, data }) +} + +// 删除涂布机 +export const deleteEqCoater = async (id: number) => { + return await request.delete({ url: `/ccwin/eqCoater/delete?id=` + id }) +} + +// 导出涂布机 Excel +export const exportEqCoater = async (params) => { + return await request.download({ url: `/ccwin/eqCoater/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqCoater/get-import-template' }) +} diff --git a/src/api/ccwin/eqFine/index.ts b/src/api/ccwin/eqFine/index.ts new file mode 100644 index 0000000..cf5623e --- /dev/null +++ b/src/api/ccwin/eqFine/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqFineVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询精分机列表 +export const getEqFinePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqFine/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqFine/page`, params }) + } +} + +// 查询精分机详情 +export const getEqFine = async (id: number) => { + return await request.get({ url: `/ccwin/eqFine/get?id=` + id }) +} + +// 新增精分机 +export const createEqFine = async (data: EqFineVO) => { + return await request.post({ url: `/ccwin/eqFine/create`, data }) +} + +// 修改精分机 +export const updateEqFine = async (data: EqFineVO) => { + return await request.put({ url: `/ccwin/eqFine/update`, data }) +} + +// 删除精分机 +export const deleteEqFine = async (id: number) => { + return await request.delete({ url: `/ccwin/eqFine/delete?id=` + id }) +} + +// 导出精分机 Excel +export const exportEqFine = async (params) => { + return await request.download({ url: `/ccwin/eqFine/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqFine/get-import-template' }) +} diff --git a/src/api/ccwin/eqPre/index.ts b/src/api/ccwin/eqPre/index.ts new file mode 100644 index 0000000..3e79920 --- /dev/null +++ b/src/api/ccwin/eqPre/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqPreVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询预分机列表 +export const getEqPrePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqPre/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqPre/page`, params }) + } +} + +// 查询预分机详情 +export const getEqPre = async (id: number) => { + return await request.get({ url: `/ccwin/eqPre/get?id=` + id }) +} + +// 新增预分机 +export const createEqPre = async (data: EqPreVO) => { + return await request.post({ url: `/ccwin/eqPre/create`, data }) +} + +// 修改预分机 +export const updateEqPre = async (data: EqPreVO) => { + return await request.put({ url: `/ccwin/eqPre/update`, data }) +} + +// 删除预分机 +export const deleteEqPre = async (id: number) => { + return await request.delete({ url: `/ccwin/eqPre/delete?id=` + id }) +} + +// 导出预分机 Excel +export const exportEqPre = async (params) => { + return await request.download({ url: `/ccwin/eqPre/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqPre/get-import-template' }) +} diff --git a/src/api/ccwin/eqRollsqueezer/index.ts b/src/api/ccwin/eqRollsqueezer/index.ts new file mode 100644 index 0000000..0c19ffa --- /dev/null +++ b/src/api/ccwin/eqRollsqueezer/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqRollsqueezerVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询辊压机列表 +export const getEqRollsqueezerPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqRollsqueezer/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqRollsqueezer/page`, params }) + } +} + +// 查询辊压机详情 +export const getEqRollsqueezer = async (id: number) => { + return await request.get({ url: `/ccwin/eqRollsqueezer/get?id=` + id }) +} + +// 新增辊压机 +export const createEqRollsqueezer = async (data: EqRollsqueezerVO) => { + return await request.post({ url: `/ccwin/eqRollsqueezer/create`, data }) +} + +// 修改辊压机 +export const updateEqRollsqueezer = async (data: EqRollsqueezerVO) => { + return await request.put({ url: `/ccwin/eqRollsqueezer/update`, data }) +} + +// 删除辊压机 +export const deleteEqRollsqueezer = async (id: number) => { + return await request.delete({ url: `/ccwin/eqRollsqueezer/delete?id=` + id }) +} + +// 导出辊压机 Excel +export const exportEqRollsqueezer = async (params) => { + return await request.download({ url: `/ccwin/eqRollsqueezer/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqRollsqueezer/get-import-template' }) +} diff --git a/src/api/ccwin/eqStacking/index.ts b/src/api/ccwin/eqStacking/index.ts new file mode 100644 index 0000000..0563ba9 --- /dev/null +++ b/src/api/ccwin/eqStacking/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface EqStackingVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询叠片机列表 +export const getEqStackingPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/eqStacking/senior', data }) + } else { + return await request.get({ url: `/ccwin/eqStacking/page`, params }) + } +} + +// 查询叠片机详情 +export const getEqStacking = async (id: number) => { + return await request.get({ url: `/ccwin/eqStacking/get?id=` + id }) +} + +// 新增叠片机 +export const createEqStacking = async (data: EqStackingVO) => { + return await request.post({ url: `/ccwin/eqStacking/create`, data }) +} + +// 修改叠片机 +export const updateEqStacking = async (data: EqStackingVO) => { + return await request.put({ url: `/ccwin/eqStacking/update`, data }) +} + +// 删除叠片机 +export const deleteEqStacking = async (id: number) => { + return await request.delete({ url: `/ccwin/eqStacking/delete?id=` + id }) +} + +// 导出叠片机 Excel +export const exportEqStacking = async (params) => { + return await request.download({ url: `/ccwin/eqStacking/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/eqStacking/get-import-template' }) +} diff --git a/src/api/ccwin/paAc/index.ts b/src/api/ccwin/paAc/index.ts new file mode 100644 index 0000000..b36a23e --- /dev/null +++ b/src/api/ccwin/paAc/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PaAcVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询空调列表 +export const getPaAcPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paAc/senior', data }) + } else { + return await request.get({ url: `/ccwin/paAc/page`, params }) + } +} + +// 查询空调详情 +export const getPaAc = async (id: number) => { + return await request.get({ url: `/ccwin/paAc/get?id=` + id }) +} + +// 新增空调 +export const createPaAc = async (data: PaAcVO) => { + return await request.post({ url: `/ccwin/paAc/create`, data }) +} + +// 修改空调 +export const updatePaAc = async (data: PaAcVO) => { + return await request.put({ url: `/ccwin/paAc/update`, data }) +} + +// 删除空调 +export const deletePaAc = async (id: number) => { + return await request.delete({ url: `/ccwin/paAc/delete?id=` + id }) +} + +// 导出空调 Excel +export const exportPaAc = async (params) => { + return await request.download({ url: `/ccwin/paAc/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paAc/get-import-template' }) +} diff --git a/src/api/ccwin/paDhu/index.ts b/src/api/ccwin/paDhu/index.ts new file mode 100644 index 0000000..45ff000 --- /dev/null +++ b/src/api/ccwin/paDhu/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface paDhuVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询除湿机列表 +export const getpaDhuPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paDhu/senior', data }) + } else { + return await request.get({ url: `/ccwin/paDhu/page`, params }) + } +} + +// 查询除湿机详情 +export const getpaDhu = async (id: number) => { + return await request.get({ url: `/ccwin/paDhu/get?id=` + id }) +} + +// 新增除湿机 +export const createpaDhu = async (data: paDhuVO) => { + return await request.post({ url: `/ccwin/paDhu/create`, data }) +} + +// 修改除湿机 +export const updatepaDhu = async (data: paDhuVO) => { + return await request.put({ url: `/ccwin/paDhu/update`, data }) +} + +// 删除除湿机 +export const deletepaDhu = async (id: number) => { + return await request.delete({ url: `/ccwin/paDhu/delete?id=` + id }) +} + +// 导出除湿机 Excel +export const exportpaDhu = async (params) => { + return await request.download({ url: `/ccwin/paDhu/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paDhu/get-import-template' }) +} diff --git a/src/api/ccwin/paLoopwater/index.ts b/src/api/ccwin/paLoopwater/index.ts new file mode 100644 index 0000000..509eb57 --- /dev/null +++ b/src/api/ccwin/paLoopwater/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PaLoopwaterVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询循环水列表 +export const getPaLoopwaterPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paLoopwater/senior', data }) + } else { + return await request.get({ url: `/ccwin/paLoopwater/page`, params }) + } +} + +// 查询循环水详情 +export const getPaLoopwater = async (id: number) => { + return await request.get({ url: `/ccwin/paLoopwater/get?id=` + id }) +} + +// 新增循环水 +export const createPaLoopwater = async (data: PaLoopwaterVO) => { + return await request.post({ url: `/ccwin/paLoopwater/create`, data }) +} + +// 修改循环水 +export const updatePaLoopwater = async (data: PaLoopwaterVO) => { + return await request.put({ url: `/ccwin/paLoopwater/update`, data }) +} + +// 删除循环水 +export const deletePaLoopwater = async (id: number) => { + return await request.delete({ url: `/ccwin/paLoopwater/delete?id=` + id }) +} + +// 导出循环水 Excel +export const exportPaLoopwater = async (params) => { + return await request.download({ url: `/ccwin/paLoopwater/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paLoopwater/get-import-template' }) +} diff --git a/src/api/ccwin/paRo/index.ts b/src/api/ccwin/paRo/index.ts new file mode 100644 index 0000000..2b14337 --- /dev/null +++ b/src/api/ccwin/paRo/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PaRoVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询RO(净水)列表 +export const getPaRoPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paRo/senior', data }) + } else { + return await request.get({ url: `/ccwin/paRo/page`, params }) + } +} + +// 查询RO(净水)详情 +export const getPaRo = async (id: number) => { + return await request.get({ url: `/ccwin/paRo/get?id=` + id }) +} + +// 新增RO(净水) +export const createPaRo = async (data: PaRoVO) => { + return await request.post({ url: `/ccwin/paRo/create`, data }) +} + +// 修改RO(净水) +export const updatePaRo = async (data: PaRoVO) => { + return await request.put({ url: `/ccwin/paRo/update`, data }) +} + +// 删除RO(净水) +export const deletePaRo = async (id: number) => { + return await request.delete({ url: `/ccwin/paRo/delete?id=` + id }) +} + +// 导出RO(净水) Excel +export const exportPaRo = async (params) => { + return await request.download({ url: `/ccwin/paRo/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paRo/get-import-template' }) +} diff --git a/src/api/ccwin/paVacuo/index.ts b/src/api/ccwin/paVacuo/index.ts new file mode 100644 index 0000000..ab8aa33 --- /dev/null +++ b/src/api/ccwin/paVacuo/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface paVacuoVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询真空列表 +export const getpaVacuoPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paVacuo/senior', data }) + } else { + return await request.get({ url: `/ccwin/paVacuo/page`, params }) + } +} + +// 查询真空详情 +export const getpaVacuo = async (id: number) => { + return await request.get({ url: `/ccwin/paVacuo/get?id=` + id }) +} + +// 新增真空 +export const createpaVacuo = async (data: paVacuoVO) => { + return await request.post({ url: `/ccwin/paVacuo/create`, data }) +} + +// 修改真空 +export const updatepaVacuo = async (data: paVacuoVO) => { + return await request.put({ url: `/ccwin/paVacuo/update`, data }) +} + +// 删除真空 +export const deletepaVacuo = async (id: number) => { + return await request.delete({ url: `/ccwin/paVacuo/delete?id=` + id }) +} + +// 导出真空 Excel +export const exportpaVacuo = async (params) => { + return await request.download({ url: `/ccwin/paVacuo/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paVacuo/get-import-template' }) +} diff --git a/src/api/ccwin/paWastewater/index.ts b/src/api/ccwin/paWastewater/index.ts new file mode 100644 index 0000000..1d339d5 --- /dev/null +++ b/src/api/ccwin/paWastewater/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface PaWastewaterVO { + id: number + icode: string + iname: string + ivalue: string + mcode: string + mname: string +} + +// 查询污水处理列表 +export const getPaWastewaterPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/ccwin/paWastewater/senior', data }) + } else { + return await request.get({ url: `/ccwin/paWastewater/page`, params }) + } +} + +// 查询污水处理详情 +export const getPaWastewater = async (id: number) => { + return await request.get({ url: `/ccwin/paWastewater/get?id=` + id }) +} + +// 新增污水处理 +export const createPaWastewater = async (data: PaWastewaterVO) => { + return await request.post({ url: `/ccwin/paWastewater/create`, data }) +} + +// 修改污水处理 +export const updatePaWastewater = async (data: PaWastewaterVO) => { + return await request.put({ url: `/ccwin/paWastewater/update`, data }) +} + +// 删除污水处理 +export const deletePaWastewater = async (id: number) => { + return await request.delete({ url: `/ccwin/paWastewater/delete?id=` + id }) +} + +// 导出污水处理 Excel +export const exportPaWastewater = async (params) => { + return await request.download({ url: `/ccwin/paWastewater/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/ccwin/paWastewater/get-import-template' }) +} diff --git a/src/api/opc/dieCutting/index.ts b/src/api/opc/dieCutting/index.ts new file mode 100644 index 0000000..3454367 --- /dev/null +++ b/src/api/opc/dieCutting/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface DieCuttingVO { + id: number + sbzt: string + wmjqh: string + nmjqh: string + wdzy: string + wmjsm: string + nmjsm: string + qdsm: string + fjzl: string + mzpzjd: string + xsmpzjd: string + qycd: string + rework: number +} + +// 查询模切列表 +export const getDieCuttingPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/opc/dieCutting/senior', data }) + } else { + return await request.get({ url: `/opc/dieCutting/page`, params }) + } +} + +// 查询模切详情 +export const getDieCutting = async (id: number) => { + return await request.get({ url: `/opc/dieCutting/get?id=` + id }) +} + +// 新增模切 +export const createDieCutting = async (data: DieCuttingVO) => { + return await request.post({ url: `/opc/dieCutting/create`, data }) +} + +// 修改模切 +export const updateDieCutting = async (data: DieCuttingVO) => { + return await request.put({ url: `/opc/dieCutting/update`, data }) +} + +// 删除模切 +export const deleteDieCutting = async (id: number) => { + return await request.delete({ url: `/opc/dieCutting/delete?id=` + id }) +} + +// 导出模切 Excel +export const exportDieCutting = async (params) => { + return await request.download({ url: `/opc/dieCutting/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/opc/dieCutting/get-import-template' }) +} diff --git a/src/views/ccwin/eqBlender/eqBlender.data.ts b/src/views/ccwin/eqBlender/eqBlender.data.ts new file mode 100644 index 0000000..23726eb --- /dev/null +++ b/src/views/ccwin/eqBlender/eqBlender.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqBlenderRules = reactive({ +}) + +export const EqBlender = 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: false, + }, + { + 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/ccwin/eqBlender/index.vue b/src/views/ccwin/eqBlender/index.vue new file mode 100644 index 0000000..08e09c7 --- /dev/null +++ b/src/views/ccwin/eqBlender/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/eqCoater/eqCoater.data.ts b/src/views/ccwin/eqCoater/eqCoater.data.ts new file mode 100644 index 0000000..7a9eceb --- /dev/null +++ b/src/views/ccwin/eqCoater/eqCoater.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqCoaterRules = reactive({ +}) + +export const EqCoater = 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: false, + }, + { + 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/ccwin/eqCoater/index.vue b/src/views/ccwin/eqCoater/index.vue new file mode 100644 index 0000000..bb13e5e --- /dev/null +++ b/src/views/ccwin/eqCoater/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/eqFine/eqFine.data.ts b/src/views/ccwin/eqFine/eqFine.data.ts new file mode 100644 index 0000000..26d5444 --- /dev/null +++ b/src/views/ccwin/eqFine/eqFine.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqFineRules = reactive({ +}) + +export const EqFine = 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: false, + }, + { + 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/ccwin/eqFine/index.vue b/src/views/ccwin/eqFine/index.vue new file mode 100644 index 0000000..9c0299e --- /dev/null +++ b/src/views/ccwin/eqFine/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/eqPre/eqPre.data.ts b/src/views/ccwin/eqPre/eqPre.data.ts new file mode 100644 index 0000000..b594f6e --- /dev/null +++ b/src/views/ccwin/eqPre/eqPre.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqPreRules = reactive({ +}) + +export const EqPre = 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: false, + }, + { + 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/ccwin/eqPre/index.vue b/src/views/ccwin/eqPre/index.vue new file mode 100644 index 0000000..ac3dc1b --- /dev/null +++ b/src/views/ccwin/eqPre/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/eqRollsqueezer/eqRollsqueezer.data.ts b/src/views/ccwin/eqRollsqueezer/eqRollsqueezer.data.ts new file mode 100644 index 0000000..42a7895 --- /dev/null +++ b/src/views/ccwin/eqRollsqueezer/eqRollsqueezer.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqRollsqueezerRules = reactive({ +}) + +export const EqRollsqueezer = 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: false, + }, + { + 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/ccwin/eqRollsqueezer/index.vue b/src/views/ccwin/eqRollsqueezer/index.vue new file mode 100644 index 0000000..efb4849 --- /dev/null +++ b/src/views/ccwin/eqRollsqueezer/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/eqStacking/eqStacking.data.ts b/src/views/ccwin/eqStacking/eqStacking.data.ts new file mode 100644 index 0000000..5359192 --- /dev/null +++ b/src/views/ccwin/eqStacking/eqStacking.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const EqStackingRules = reactive({ +}) + +export const EqStacking = 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: false, + }, + { + 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/ccwin/eqStacking/index.vue b/src/views/ccwin/eqStacking/index.vue new file mode 100644 index 0000000..312b63b --- /dev/null +++ b/src/views/ccwin/eqStacking/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paAc/index.vue b/src/views/ccwin/paAc/index.vue new file mode 100644 index 0000000..29dd9ad --- /dev/null +++ b/src/views/ccwin/paAc/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paAc/paAc.data.ts b/src/views/ccwin/paAc/paAc.data.ts new file mode 100644 index 0000000..f6ea4ba --- /dev/null +++ b/src/views/ccwin/paAc/paAc.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PaAcRules = reactive({ +}) + +export const PaAc = 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: false, + }, + { + 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/ccwin/paDhu/index.vue b/src/views/ccwin/paDhu/index.vue new file mode 100644 index 0000000..b203bf7 --- /dev/null +++ b/src/views/ccwin/paDhu/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paDhu/paDhu.data.ts b/src/views/ccwin/paDhu/paDhu.data.ts new file mode 100644 index 0000000..298d502 --- /dev/null +++ b/src/views/ccwin/paDhu/paDhu.data.ts @@ -0,0 +1,68 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +// 表单校验 +export const PaDhuRules = reactive({ +}) + +export const PaDhu = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '数据点编号', + field: 'icode', + sort: 'custom', + isSearch: true, + }, + { + label: '数据点名称', + field: 'iname', + sort: 'custom', + isSearch: true, + }, + { + label: '采集值', + field: 'ivalue', + sort: 'custom', + isSearch: false, + }, + { + label: '仪表的编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '仪表的名称', + field: 'mname', + sort: 'custom', + isSearch: true, + // }, + // { + // 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/ccwin/paLoopwater/index.vue b/src/views/ccwin/paLoopwater/index.vue new file mode 100644 index 0000000..0a66af9 --- /dev/null +++ b/src/views/ccwin/paLoopwater/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paLoopwater/paLoopwater.data.ts b/src/views/ccwin/paLoopwater/paLoopwater.data.ts new file mode 100644 index 0000000..06d3ae6 --- /dev/null +++ b/src/views/ccwin/paLoopwater/paLoopwater.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PaLoopwaterRules = reactive({ +}) + +export const PaLoopwater = 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: false, + }, + { + 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/ccwin/paRo/index.vue b/src/views/ccwin/paRo/index.vue new file mode 100644 index 0000000..1564b25 --- /dev/null +++ b/src/views/ccwin/paRo/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paRo/paRo.data.ts b/src/views/ccwin/paRo/paRo.data.ts new file mode 100644 index 0000000..eb299f9 --- /dev/null +++ b/src/views/ccwin/paRo/paRo.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PaRoRules = reactive({ +}) + +export const PaRo = 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: false, + }, + { + 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/ccwin/paVacuo/index.vue b/src/views/ccwin/paVacuo/index.vue new file mode 100644 index 0000000..3d1f340 --- /dev/null +++ b/src/views/ccwin/paVacuo/index.vue @@ -0,0 +1,245 @@ + + + diff --git a/src/views/ccwin/paVacuo/paVacuo.data.ts b/src/views/ccwin/paVacuo/paVacuo.data.ts new file mode 100644 index 0000000..6a8a2a1 --- /dev/null +++ b/src/views/ccwin/paVacuo/paVacuo.data.ts @@ -0,0 +1,69 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const PaVacuoRules = reactive({ +}) + +export const PaVacuo = useCrudSchemas(reactive([ + // { + // label: '主键、自增', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '数据点编号', + field: 'icode', + sort: 'custom', + isSearch: true, + }, + { + label: '数据点名称', + field: 'iname', + sort: 'custom', + isSearch: true, + }, + { + label: '采集值', + field: 'ivalue', + sort: 'custom', + isSearch: false, + }, + { + label: '仪表的编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '仪表的名称', + field: 'mname', + sort: 'custom', + isSearch: true, + // }, + // { + // 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/ccwin/paWastewater/index.vue b/src/views/ccwin/paWastewater/index.vue new file mode 100644 index 0000000..07a9152 --- /dev/null +++ b/src/views/ccwin/paWastewater/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/ccwin/paWastewater/paWastewater.data.ts b/src/views/ccwin/paWastewater/paWastewater.data.ts new file mode 100644 index 0000000..2cd28c0 --- /dev/null +++ b/src/views/ccwin/paWastewater/paWastewater.data.ts @@ -0,0 +1,70 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const PaWastewaterRules = reactive({ +}) + +export const PaWastewater = 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: false, + }, + { + 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/opc/dieCutting/dieCutting.data.ts b/src/views/opc/dieCutting/dieCutting.data.ts new file mode 100644 index 0000000..2a9c23b --- /dev/null +++ b/src/views/opc/dieCutting/dieCutting.data.ts @@ -0,0 +1,121 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' + +// 表单校验 +export const DieCuttingRules = reactive({ +}) + +export const DieCutting = useCrudSchemas(reactive([ + // { + // label: 'id', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '设备状态', + field: 'sbzt', + sort: 'custom', + isSearch: true, + }, + { + label: '外模具前后', + field: 'wmjqh', + sort: 'custom', + isSearch: false, + }, + { + label: '内模具前后', + field: 'nmjqh', + sort: 'custom', + isSearch: false, + }, + { + label: '切刀左右', + field: 'wdzy', + sort: 'custom', + isSearch: false, + }, + { + label: '外模具寿命', + field: 'wmjsm', + sort: 'custom', + isSearch: false, + }, + { + label: '内模具寿命', + field: 'nmjsm', + sort: 'custom', + isSearch: false, + }, + { + label: '切刀寿命', + field: 'qdsm', + sort: 'custom', + isSearch: false, + }, + { + label: '放卷张力', + field: 'fjzl', + sort: 'custom', + isSearch: false, + }, + { + label: '面阵拍照角度', + field: 'mzpzjd', + sort: 'custom', + isSearch: false, + }, + { + label: '线扫拍照角度', + field: 'xsmpzjd', + sort: 'custom', + isSearch: false, + }, + { + label: '牵引长度', + field: 'qycd', + sort: 'custom', + isSearch: false, + }, + { + label: '返工品', + field: 'rework', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + dictType: DICT_TYPE.REWORK, + dictClass: 'string', + isTable: true, + tableForm: { + type: 'Select' + } + // }, + // { + // label: 'create_time', + // 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/opc/dieCutting/index.vue b/src/views/opc/dieCutting/index.vue new file mode 100644 index 0000000..5a54ebd --- /dev/null +++ b/src/views/opc/dieCutting/index.vue @@ -0,0 +1,244 @@ + + +