diff --git a/src/api/opc/dieCuttingMachine/index.ts b/src/api/opc/dieCuttingMachine/index.ts new file mode 100644 index 0000000..e83e9ae --- /dev/null +++ b/src/api/opc/dieCuttingMachine/index.ts @@ -0,0 +1,55 @@ +import request from '@/config/axios' + +export interface DieCuttingMachineVO { + id: number + mcode: string + mname: string + impDateTime: string + extremelyLong: string + extremelyWidth: string + shoulderWidth: string + extremeEarWidth: string + extremeEarHeight: string + materialHigh: string +} + +// 查询模切-CSV列表 +export const getDieCuttingMachinePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/opc/die-cutting-machine/senior', data }) + } else { + return await request.get({ url: `/opc/die-cutting-machine/page`, params }) + } +} + +// 查询模切-CSV详情 +export const getDieCuttingMachine = async (id: number) => { + return await request.get({ url: `/opc/die-cutting-machine/get?id=` + id }) +} + +// 新增模切-CSV +export const createDieCuttingMachine = async (data: DieCuttingMachineVO) => { + return await request.post({ url: `/opc/die-cutting-machine/create`, data }) +} + +// 修改模切-CSV +export const updateDieCuttingMachine = async (data: DieCuttingMachineVO) => { + return await request.put({ url: `/opc/die-cutting-machine/update`, data }) +} + +// 删除模切-CSV +export const deleteDieCuttingMachine = async (id: number) => { + return await request.delete({ url: `/opc/die-cutting-machine/delete?id=` + id }) +} + +// 导出模切-CSV Excel +export const exportDieCuttingMachine = async (params) => { + return await request.download({ url: `/opc/die-cutting-machine/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/opc/die-cutting-machine/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/opc/thicknessDetection/index.ts b/src/api/opc/thicknessDetection/index.ts new file mode 100644 index 0000000..8a54f9c --- /dev/null +++ b/src/api/opc/thicknessDetection/index.ts @@ -0,0 +1,76 @@ +import request from '@/config/axios' + +export interface ThicknessDetectionVO { + id: number + mcode: string + mname: string + impDateTime: string + batch: string + rollFilmNumber: number + scansNumber: number + substrateWidth: string + targetValue: string + specificationUpper: string + specificationUnder: string + averageValue: string + maxValue: string + minValue: string + cpk: string + sigma: string + compensationValue: string + beltSpeed: string + rollLength: string + partitionDate1: string + partitionDate2: string + partitionDate3: string + partitionDate4: string + partitionDate5: string + partitionDate6: string + partitionDate7: string + partitionDate8: string + partitionDate9: string + partitionDate10: string + partitionDate11: string + partitionDate12: string +} + +// 查询测厚仪列表 +export const getThicknessDetectionPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/opc/thickness-detection/senior', data }) + } else { + return await request.get({ url: `/opc/thickness-detection/page`, params }) + } +} + +// 查询测厚仪详情 +export const getThicknessDetection = async (id: number) => { + return await request.get({ url: `/opc/thickness-detection/get?id=` + id }) +} + +// 新增测厚仪 +export const createThicknessDetection = async (data: ThicknessDetectionVO) => { + return await request.post({ url: `/opc/thickness-detection/create`, data }) +} + +// 修改测厚仪 +export const updateThicknessDetection = async (data: ThicknessDetectionVO) => { + return await request.put({ url: `/opc/thickness-detection/update`, data }) +} + +// 删除测厚仪 +export const deleteThicknessDetection = async (id: number) => { + return await request.delete({ url: `/opc/thickness-detection/delete?id=` + id }) +} + +// 导出测厚仪 Excel +export const exportThicknessDetection = async (params) => { + return await request.download({ url: `/opc/thickness-detection/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/opc/thickness-detection/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/battery/monomer/index.vue b/src/views/battery/monomer/index.vue index 3f9659d..46c21a0 100644 --- a/src/views/battery/monomer/index.vue +++ b/src/views/battery/monomer/index.vue @@ -390,17 +390,17 @@ const formsSuccess = async (formType,data) => { if(data.activeTime==0)data.activeTime = null; if(data.expireTime==0)data.expireTime = null; // 设备 - data.cellDeviceList= tableDataDevice.value + data.cellDeviceList = tableDataDevice.value // 环境 - data.cellEnvList= tableDataEnv.value + data.cellEnvList = tableDataEnv.value // 单体极片 - data.cellPassList= tableDataPlate.value + data.cellPlateList = tableDataPlate.value // 单体卷芯或叠芯 - data.cellCoreList= tableDataCore.value + data.cellCoreList = tableDataCore.value // 单体产品 - data.cellProdList= tableDataProd.value + data.cellProdList = tableDataProd.value // 单体直通率 - data.cellPassList= tableDataPass.value + data.cellPassList = tableDataPass.value const validateFormDevice = await tableFormDeviceRef.value.validateForm() diff --git a/src/views/opc/dieCuttingMachine/dieCuttingMachine.data.ts b/src/views/opc/dieCuttingMachine/dieCuttingMachine.data.ts new file mode 100644 index 0000000..113a9d3 --- /dev/null +++ b/src/views/opc/dieCuttingMachine/dieCuttingMachine.data.ts @@ -0,0 +1,94 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const DieCuttingMachineRules = reactive({ +}) + +export const DieCuttingMachine = useCrudSchemas(reactive([ + // { + // label: 'id', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '设备编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '设备名称', + field: 'mname', + sort: 'custom', + isSearch: true, + }, + { + label: '时间', + field: 'impDateTime', + sort: 'custom', + isSearch: true, + }, + { + label: '极片长', + field: 'extremelyLong', + sort: 'custom', + isSearch: true, + }, + { + label: '极片宽', + field: 'extremelyWidth', + sort: 'custom', + isSearch: true, + }, + { + label: '肩宽', + field: 'shoulderWidth', + sort: 'custom', + isSearch: true, + }, + { + label: '极耳宽', + field: 'extremeEarWidth', + sort: 'custom', + isSearch: true, + }, + { + label: '极耳高', + field: 'extremeEarHeight', + sort: 'custom', + isSearch: true, + }, + { + label: '料高', + field: 'materialHigh', + sort: 'custom', + isSearch: true, + // }, + // { + // 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/dieCuttingMachine/index.vue b/src/views/opc/dieCuttingMachine/index.vue new file mode 100644 index 0000000..87718a2 --- /dev/null +++ b/src/views/opc/dieCuttingMachine/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/opc/thicknessDetection/index.vue b/src/views/opc/thicknessDetection/index.vue new file mode 100644 index 0000000..1fec6f2 --- /dev/null +++ b/src/views/opc/thicknessDetection/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/opc/thicknessDetection/thicknessDetection.data.ts b/src/views/opc/thicknessDetection/thicknessDetection.data.ts new file mode 100644 index 0000000..91d383c --- /dev/null +++ b/src/views/opc/thicknessDetection/thicknessDetection.data.ts @@ -0,0 +1,228 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ThicknessDetectionRules = reactive({ +}) + +export const ThicknessDetection = useCrudSchemas(reactive([ + // { + // label: 'id', + // field: 'id', + // sort: 'custom', + // isForm: false, + // }, + { + label: '设备编号', + field: 'mcode', + sort: 'custom', + isSearch: true, + }, + { + label: '设备名称', + field: 'mname', + sort: 'custom', + isSearch: true, + }, + { + label: '扫描时间', + field: 'impDateTime', + sort: 'custom', + isSearch: true, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + }, + { + label: '膜卷号', + field: 'rollFilmNumber', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '扫描次数', + field: 'scansNumber', + sort: 'custom', + isSearch: false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '基材宽度', + field: 'substrateWidth', + sort: 'custom', + isSearch: false, + }, + { + label: '目标值', + field: 'targetValue', + sort: 'custom', + isSearch: false, + }, + { + label: '规格上限', + field: 'specificationUpper', + sort: 'custom', + isSearch: false, + }, + { + label: '规格下限', + field: 'specificationUnder', + sort: 'custom', + isSearch: false, + }, + { + label: '平均值', + field: 'averageValue', + sort: 'custom', + isSearch: false, + }, + { + label: '最大值', + field: 'maxValue', + sort: 'custom', + isSearch: false, + }, + { + label: '最小值', + field: 'minValue', + sort: 'custom', + isSearch: false, + }, + { + label: 'CPK', + field: 'cpk', + sort: 'custom', + isSearch: false, + }, + { + label: 'sigma', + field: 'sigma', + sort: 'custom', + isSearch: false, + }, + { + label: '补偿值', + field: 'compensationValue', + sort: 'custom', + isSearch: false, + }, + { + label: '走带速度(m/m)', + field: 'beltSpeed', + sort: 'custom', + isSearch: false, + }, + { + label: '卷长(m)', + field: 'rollLength', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据1', + field: 'partitionDate1', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据2', + field: 'partitionDate2', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据3', + field: 'partitionDate3', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据4', + field: 'partitionDate4', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据5', + field: 'partitionDate5', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据6', + field: 'partitionDate6', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据7', + field: 'partitionDate7', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据8', + field: 'partitionDate8', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据9', + field: 'partitionDate9', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据10', + field: 'partitionDate10', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据11', + field: 'partitionDate11', + sort: 'custom', + isSearch: false, + }, + { + label: '分区数据12', + field: 'partitionDate12', + sort: 'custom', + isSearch: false, + // }, + // { + // 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' + // } + } +]))