diff --git a/src/api/mes/moldInspectionItems.js b/src/api/mes/moldInspectionItems.js
new file mode 100644
index 0000000..e86b4b2
--- /dev/null
+++ b/src/api/mes/moldInspectionItems.js
@@ -0,0 +1,41 @@
+import request from '@/utils/request'
+
+export function getMoldInspectionItemPage(params = {}) {
+ return request({
+ url: '/admin-api/mes/mold-subject/page',
+ method: 'get',
+ params
+ })
+}
+
+export function getMoldInspectionItemDetail(id) {
+ return request({
+ url: '/admin-api/mes/mold-subject/get',
+ method: 'get',
+ params: { id }
+ })
+}
+
+export function createMoldInspectionItem(data) {
+ return request({
+ url: '/admin-api/mes/mold-subject/create',
+ method: 'post',
+ data
+ })
+}
+
+export function updateMoldInspectionItem(data) {
+ return request({
+ url: '/admin-api/mes/mold-subject/update',
+ method: 'put',
+ data
+ })
+}
+
+export function deleteMoldInspectionItem(ids = []) {
+ return request({
+ url: '/admin-api/mes/mold-subject/delete',
+ method: 'delete',
+ params: { ids: Array.isArray(ids) ? ids.join(',') : String(ids) }
+ })
+}
diff --git a/src/locales/index.js b/src/locales/index.js
index 751edf1..94ef39c 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -227,6 +227,38 @@ const messages = {
loadEditFailed: '加载编辑数据失败',
confirmDelete: '确认删除该上下模记录吗?'
},
+ moldInspectionItems: {
+ moduleName: '点检项库',
+ subTitle: '模具管理点检项维护',
+ detailTitle: '点检项库详情',
+ basicInfo: '基础信息',
+ code: '项目编码',
+ name: '项目名称',
+ inspectionMethod: '检验方式',
+ valueType: '值类型',
+ isEnable: '是否启用',
+ judgmentCriteria: '判定基准',
+ creatorName: '创建人',
+ createTime: '创建时间',
+ searchPlaceholder: '请输入编码/名称/判定基准',
+ createTitle: '新增点检项',
+ editTitle: '编辑点检项',
+ empty: '暂无点检项数据',
+ loadEditFailed: '加载编辑数据失败',
+ confirmDelete: '确认删除该点检项吗?',
+ placeholderCode: '请输入项目编码',
+ placeholderName: '请输入项目名称',
+ placeholderInspectionMethod: '请选择检验方式',
+ placeholderValueType: '请选择值类型',
+ placeholderIsEnable: '请选择是否启用',
+ placeholderJudgmentCriteria: '请输入判定基准',
+ validatorSubjectCodeRequired: '项目编码不能为空',
+ validatorSubjectNameRequired: '项目名称不能为空',
+ validatorInspectionMethodRequired: '检验方式不能为空',
+ validatorValueTypeRequired: '值类型不能为空',
+ validatorIsEnableRequired: '是否启用不能为空',
+ validatorJudgmentCriteriaRequired: '判定基准不能为空'
+ },
mine: {
clickLogin: '点击登录',
username: '用户名:{name}',
@@ -538,6 +570,38 @@ const messages = {
loadEditFailed: 'Failed to load edit data',
confirmDelete: 'Delete this mold operate record?'
},
+ moldInspectionItems: {
+ moduleName: 'Inspection Items',
+ subTitle: 'Mold inspection item maintenance',
+ detailTitle: 'Inspection Item Detail',
+ basicInfo: 'Basic Info',
+ code: 'Item Code',
+ name: 'Item Name',
+ inspectionMethod: 'Inspection Method',
+ valueType: 'Value Type',
+ isEnable: 'Enabled',
+ judgmentCriteria: 'Judgment Criteria',
+ creatorName: 'Creator',
+ createTime: 'Created At',
+ searchPlaceholder: 'Enter code/name/criteria',
+ createTitle: 'Create Inspection Item',
+ editTitle: 'Edit Inspection Item',
+ empty: 'No inspection item data',
+ loadEditFailed: 'Failed to load edit data',
+ confirmDelete: 'Delete this inspection item?',
+ placeholderCode: 'Enter item code',
+ placeholderName: 'Enter item name',
+ placeholderInspectionMethod: 'Select inspection method',
+ placeholderValueType: 'Select value type',
+ placeholderIsEnable: 'Select enabled status',
+ placeholderJudgmentCriteria: 'Enter judgment criteria',
+ validatorSubjectCodeRequired: 'Item code is required',
+ validatorSubjectNameRequired: 'Item name is required',
+ validatorInspectionMethodRequired: 'Inspection method is required',
+ validatorValueTypeRequired: 'Value type is required',
+ validatorIsEnableRequired: 'Enabled status is required',
+ validatorJudgmentCriteriaRequired: 'Judgment criteria is required'
+ },
mine: {
clickLogin: 'Tap to sign in',
username: 'Username: {name}',
@@ -687,7 +751,9 @@ const literalMap = {
'模具入库': 'moldReturn.moduleName',
'模具入库详情': 'moldReturn.detailTitle',
'上下模': 'moldOperate.moduleName',
- '上下模详情': 'moldOperate.detailTitle'
+ '上下模详情': 'moldOperate.detailTitle',
+ '点检项库': 'moldInspectionItems.moduleName',
+ '点检项库详情': 'moldInspectionItems.detailTitle'
}
function applyTabBarLanguage() {
diff --git a/src/pages.json b/src/pages.json
index 00e77c2..8afc345 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -490,6 +490,20 @@
"navigationBarTitleText": "上下模详情",
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "moldInspectionItems/index",
+ "style": {
+ "navigationBarTitleText": "点检项库",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "moldInspectionItems/detail",
+ "style": {
+ "navigationBarTitleText": "点检项库详情",
+ "navigationStyle": "custom"
+ }
}
]
}
diff --git a/src/pages/work.vue b/src/pages/work.vue
index c9248dd..7807278 100644
--- a/src/pages/work.vue
+++ b/src/pages/work.vue
@@ -259,11 +259,11 @@
点检保养
-
+
📝
- 点检项库
+ {{ t('moldInspectionItems.moduleName') }}
@@ -379,6 +379,7 @@ function handleClick(name) {
moldGet: '/pages_function/pages/moldget/index',
moldReturn: '/pages_function/pages/moldreturn/index',
moldOperate: '/pages_function/pages/moldoperate/index',
+ moldInspectionItems: '/pages_function/pages/moldInspectionItems/index',
'点检项库': '',
'点检模板': '',
'点检任务': '',
diff --git a/src/pages_function/pages/moldInspectionItems/detail.vue b/src/pages_function/pages/moldInspectionItems/detail.vue
new file mode 100644
index 0000000..1cf6f14
--- /dev/null
+++ b/src/pages_function/pages/moldInspectionItems/detail.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+ {{ t('moldInspectionItems.basicInfo') }}
+
+
+ {{ t('moldInspectionItems.code') }}
+ {{ textValue(detailData.subjectCode) }}
+
+
+ {{ t('moldInspectionItems.name') }}
+ {{ textValue(detailData.subjectName) }}
+
+
+ {{ t('moldInspectionItems.inspectionMethod') }}
+ {{ dictLabel(inspectionMethodOptions, detailData.inspectionMethod) }}
+
+
+ {{ t('moldInspectionItems.valueType') }}
+ {{ dictLabel(valueTypeOptions, detailData.valueType) }}
+
+
+ {{ t('moldInspectionItems.isEnable') }}
+ {{ dictLabel(boolOptions, detailData.isEnable) }}
+
+
+ {{ t('moldInspectionItems.creatorName') }}
+ {{ textValue(detailData.creatorName) }}
+
+
+ {{ t('moldInspectionItems.createTime') }}
+ {{ formatDateTime(detailData.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/moldInspectionItems/index.vue b/src/pages_function/pages/moldInspectionItems/index.vue
new file mode 100644
index 0000000..f30c8f7
--- /dev/null
+++ b/src/pages_function/pages/moldInspectionItems/index.vue
@@ -0,0 +1,419 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('moldInspectionItems.inspectionMethod') }}
+ {{ dictLabel(inspectionMethodOptions, item.inspectionMethod) }}
+
+
+ {{ t('moldInspectionItems.valueType') }}
+ {{ dictLabel(valueTypeOptions, item.valueType) }}
+
+
+ {{ t('moldInspectionItems.isEnable') }}
+ {{ dictLabel(boolOptions, item.isEnable) }}
+
+
+ {{ t('moldInspectionItems.creatorName') }}
+ {{ textValue(item.creatorName) }}
+
+
+ {{ t('moldInspectionItems.createTime') }}
+ {{ formatDateTime(item.createTime) }}
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('moldInspectionItems.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/moldoperate/index.vue b/src/pages_function/pages/moldoperate/index.vue
index e5f4d37..e8a2713 100644
--- a/src/pages_function/pages/moldoperate/index.vue
+++ b/src/pages_function/pages/moldoperate/index.vue
@@ -638,7 +638,7 @@ onShow(async () => {
font-size: 26rpx;
color: #8a9099;
}
-
+
.value {
font-size: 27rpx;
color: #30363d;