diff --git a/src/api/mes/tm/tool/index.ts b/src/api/mes/tm/tool/index.ts
new file mode 100644
index 000000000..3e79add31
--- /dev/null
+++ b/src/api/mes/tm/tool/index.ts
@@ -0,0 +1,52 @@
+import request from '@/config/axios'
+
+// MES 工具台账 VO
+export interface TmToolVO {
+ id: number // 编号
+ code: string // 工具编码
+ name: string // 工具名称
+ brand: string // 品牌
+ spec: string // 型号规格
+ toolTypeId: number // 工具类型编号
+ toolTypeName: string // 工具类型名称
+ quantity: number // 数量
+ quantityAvailable: number // 可用数量
+ maintenType: number // 保养维护类型
+ nextMaintenPeriod: number // 下次保养周期(次数)
+ nextMaintenDate: Date // 下次保养日期
+ status: number // 状态
+ remark: string // 备注
+}
+
+// MES 工具台账 API
+export const TmToolApi = {
+ // 查询工具台账分页
+ getToolPage: async (params: any) => {
+ return await request.get({ url: `/mes/tm/tool/page`, params })
+ },
+
+ // 查询工具台账详情
+ getTool: async (id: number) => {
+ return await request.get({ url: `/mes/tm/tool/get?id=` + id })
+ },
+
+ // 新增工具台账
+ createTool: async (data: TmToolVO) => {
+ return await request.post({ url: `/mes/tm/tool/create`, data })
+ },
+
+ // 修改工具台账
+ updateTool: async (data: TmToolVO) => {
+ return await request.put({ url: `/mes/tm/tool/update`, data })
+ },
+
+ // 删除工具台账
+ deleteTool: async (id: number) => {
+ return await request.delete({ url: `/mes/tm/tool/delete?id=` + id })
+ },
+
+ // 导出工具台账 Excel
+ exportTool: async (params: any) => {
+ return await request.download({ url: `/mes/tm/tool/export-excel`, params })
+ }
+}
diff --git a/src/api/mes/tm/tool/type/index.ts b/src/api/mes/tm/tool/type/index.ts
new file mode 100644
index 000000000..47b146394
--- /dev/null
+++ b/src/api/mes/tm/tool/type/index.ts
@@ -0,0 +1,50 @@
+import request from '@/config/axios'
+
+// MES 工具类型 VO
+export interface TmToolTypeVO {
+ id: number // 编号
+ code: string // 类型编码
+ name: string // 类型名称
+ codeFlag: boolean // 是否编码管理
+ maintenType: number // 保养维护类型
+ maintenPeriod: number // 保养周期
+ remark: string // 备注
+}
+
+// MES 工具类型 API
+export const TmToolTypeApi = {
+ // 查询工具类型分页
+ getToolTypePage: async (params: any) => {
+ return await request.get({ url: `/mes/tm/tool-type/page`, params })
+ },
+
+ // 查询工具类型精简列表
+ getToolTypeSimpleList: async () => {
+ return await request.get({ url: `/mes/tm/tool-type/simple-list` })
+ },
+
+ // 查询工具类型详情
+ getToolType: async (id: number) => {
+ return await request.get({ url: `/mes/tm/tool-type/get?id=` + id })
+ },
+
+ // 新增工具类型
+ createToolType: async (data: TmToolTypeVO) => {
+ return await request.post({ url: `/mes/tm/tool-type/create`, data })
+ },
+
+ // 修改工具类型
+ updateToolType: async (data: TmToolTypeVO) => {
+ return await request.put({ url: `/mes/tm/tool-type/update`, data })
+ },
+
+ // 删除工具类型
+ deleteToolType: async (id: number) => {
+ return await request.delete({ url: `/mes/tm/tool-type/delete?id=` + id })
+ },
+
+ // 导出工具类型 Excel
+ exportToolType: async (params: any) => {
+ return await request.download({ url: `/mes/tm/tool-type/export-excel`, params })
+ }
+}
diff --git a/src/views/mes/tm/tool/ToolForm.vue b/src/views/mes/tm/tool/ToolForm.vue
new file mode 100644
index 000000000..298934df2
--- /dev/null
+++ b/src/views/mes/tm/tool/ToolForm.vue
@@ -0,0 +1,237 @@
+
+
+
+
+
diff --git a/src/views/mes/tm/tool/index.vue b/src/views/mes/tm/tool/index.vue
new file mode 100644
index 000000000..37d96ebea
--- /dev/null
+++ b/src/views/mes/tm/tool/index.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.nextMaintenDate ? formatDate(scope.row.nextMaintenDate) : '-' }}
+
+
+ {{ scope.row.nextMaintenPeriod != null ? scope.row.nextMaintenPeriod + ' 次' : '-' }}
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/mes/tm/tool/type/ToolTypeForm.vue b/src/views/mes/tm/tool/type/ToolTypeForm.vue
new file mode 100644
index 000000000..5b0afaa81
--- /dev/null
+++ b/src/views/mes/tm/tool/type/ToolTypeForm.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
diff --git a/src/views/mes/tm/tool/type/index.vue b/src/views/mes/tm/tool/type/index.vue
new file mode 100644
index 000000000..60f934ced
--- /dev/null
+++ b/src/views/mes/tm/tool/type/index.vue
@@ -0,0 +1,214 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+