diff --git a/src/api/mes/machine/index.ts b/src/api/mes/machine/index.ts index 3e803bd2..1f6e1ea4 100644 --- a/src/api/mes/machine/index.ts +++ b/src/api/mes/machine/index.ts @@ -16,6 +16,13 @@ export interface MachineComponentVO { status: number // 状态 componentType: number // 组织类型 machineType: string // 机台类型 + maintainTime: number // 建议维保时间 + maintainType: string // 建议维保类型(按使用时间,距离上次维保时间) + maintainTimeUnit: string // 建议维保时间单位 + trueMaintainTime: number // 实际维保时间 + trueMaintainTimeUnit: string // 实际维保时间单位 + trueMaintainTimeType: string // 实际维保类型 + lastMaitainTime: Date // 上次维保时间 } // 机台 API diff --git a/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue b/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue index 0c4a21d1..f30447d2 100644 --- a/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue +++ b/src/views/erp/sale/out/components/SaleOutReceiptEnableList.vue @@ -155,7 +155,7 @@ const open = async (customerId: number) => { queryParams.customerId = customerId await resetQuery() // 加载产品列表 - productList.value = await ProductApi.getProductSimpleList() + productList.value = await ProductApi.getMesProductSimpleList() } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/erp/stock/record/index.vue b/src/views/erp/stock/record/index.vue index e72e5e24..ead8875c 100644 --- a/src/views/erp/stock/record/index.vue +++ b/src/views/erp/stock/record/index.vue @@ -113,7 +113,7 @@ - + @@ -135,13 +135,13 @@ prop="totalCount" :formatter="erpCountTableColumnFormatter" /> - - - - - - - + import { getIntDictOptions, DICT_TYPE } from '@/utils/dict' -import { dateFormatter } from '@/utils/formatTime' +import {dateFormatter, dateFormatter2} from '@/utils/formatTime' import download from '@/utils/download' import { StockRecordApi, StockRecordVO } from '@/api/erp/stock/record' import { ProductApi, ProductVO } from '@/api/erp/product/product' diff --git a/src/views/mes/energydevice/index.vue b/src/views/mes/energydevice/index.vue index 7d22c9be..7c9d45a0 100644 --- a/src/views/mes/energydevice/index.vue +++ b/src/views/mes/energydevice/index.vue @@ -217,7 +217,7 @@ const openForm = (type: string, id?: number) => { /** 添加/修改操作 */ const resetFormRef = ref() const resetForm = (type: string, id?: number) => { - formRef.value.open(type, id) + resetFormRef.value.open(type, id) } /** 删除按钮操作 */ const handleDelete = async (id: number) => { diff --git a/src/views/mes/plan/index.vue b/src/views/mes/plan/index.vue index fcb6363d..f244cf92 100644 --- a/src/views/mes/plan/index.vue +++ b/src/views/mes/plan/index.vue @@ -151,7 +151,12 @@ - + + + +