From b4b7c1359c5f17d033f844d1c903b2663f8233b9 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 22 Apr 2026 16:00:37 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E6=A8=A1?= =?UTF-8?q?=E5=85=B7=E7=AE=A1=E7=90=86-=E7=82=B9=E6=A3=80=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/moldInspectionPlan.js | 48 ++ .../pages/moldInspectionItems/index.vue | 18 +- .../pages/moldInspectionPlan/detail.vue | 166 ++++++ .../pages/moldInspectionPlan/index.vue | 486 ++++++++++++++++++ 4 files changed, 709 insertions(+), 9 deletions(-) create mode 100644 src/api/mes/moldInspectionPlan.js create mode 100644 src/pages_function/pages/moldInspectionPlan/detail.vue create mode 100644 src/pages_function/pages/moldInspectionPlan/index.vue diff --git a/src/api/mes/moldInspectionPlan.js b/src/api/mes/moldInspectionPlan.js new file mode 100644 index 0000000..d16828a --- /dev/null +++ b/src/api/mes/moldInspectionPlan.js @@ -0,0 +1,48 @@ +import request from '@/utils/request' + +export function getMoldInspectionPlanPage(params = {}) { + return request({ + url: '/admin-api/mes/mold-plan-maintenance/page', + method: 'get', + params + }) +} + +export function getMoldInspectionPlanDetail(id) { + return request({ + url: '/admin-api/mes/mold-plan-maintenance/getSubjectList', + method: 'get', + params: { id } + }) +} + +export function createMoldInspectionPlan(data) { + return request({ + url: '/admin-api/mes/mold-plan-maintenance/create', + method: 'post', + data + }) +} + +export function updateMoldInspectionPlan(data) { + return request({ + url: '/admin-api/mes/mold-plan-maintenance/update', + method: 'put', + data + }) +} + +export function deleteMoldInspectionPlan(ids = []) { + return request({ + url: '/admin-api/mes/mold-plan-maintenance/delete', + method: 'delete', + params: { ids: Array.isArray(ids) ? ids.join(',') : String(ids) } + }) +} + +export function getMoldSubjectAllList() { + return request({ + url: '/admin-api/mes/mold-subject/getAllList', + method: 'get' + }) +} diff --git a/src/pages_function/pages/moldInspectionItems/index.vue b/src/pages_function/pages/moldInspectionItems/index.vue index 29c2b4c..5d7c0e7 100644 --- a/src/pages_function/pages/moldInspectionItems/index.vue +++ b/src/pages_function/pages/moldInspectionItems/index.vue @@ -22,14 +22,6 @@ {{ textValue(item.subjectName) }} {{ t('moldInspectionItems.code') }}: {{ textValue(item.subjectCode) }} - - - - - - - - @@ -53,6 +45,14 @@ {{ formatDateTime(item.createTime) }} + + + + + + + + {{ t('functionCommon.loading') }} @@ -388,7 +388,7 @@ onShow(async () => { .header-left { display: flex; flex-direction: column; gap: 8rpx; } .type-name { font-size: 32rpx; font-weight: 700; color: #1f2d3d; } .type-code { font-size: 24rpx; color: #8a9099; } -.card-actions { display: flex; gap: 14rpx; } +.card-actions { margin-top: 24rpx; display: flex; justify-content: flex-end; gap: 14rpx; } .action-btn { width: 60rpx; height: 60rpx; border-radius: 12rpx; display: flex; align-items: center; justify-content: center; } .edit-btn { background: #1a3a5c; } .delete-btn { background: #e34d59; } diff --git a/src/pages_function/pages/moldInspectionPlan/detail.vue b/src/pages_function/pages/moldInspectionPlan/detail.vue new file mode 100644 index 0000000..26c08f4 --- /dev/null +++ b/src/pages_function/pages/moldInspectionPlan/detail.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/pages_function/pages/moldInspectionPlan/index.vue b/src/pages_function/pages/moldInspectionPlan/index.vue new file mode 100644 index 0000000..b05a485 --- /dev/null +++ b/src/pages_function/pages/moldInspectionPlan/index.vue @@ -0,0 +1,486 @@ +