diff --git a/src/api/mes/moldWorkOrderInquiry.js b/src/api/mes/moldWorkOrderInquiry.js
new file mode 100644
index 0000000..2f3f005
--- /dev/null
+++ b/src/api/mes/moldWorkOrderInquiry.js
@@ -0,0 +1,33 @@
+import request from '@/utils/request'
+
+export function getTicketManagementPage(params = {}) {
+ return request({
+ url: '/admin-api/mes/mold-ticket-management/page',
+ method: 'get',
+ params
+ })
+}
+
+export function batchUpdateTicketStatus(data) {
+ return request({
+ url: '/admin-api/mes/mold-ticket-management/batchUpdateStatus',
+ method: 'put',
+ data
+ })
+}
+
+export function getTicketResultsPage(params = {}) {
+ return request({
+ url: '/admin-api/mes/mold-ticket-results/page',
+ method: 'get',
+ params
+ })
+}
+
+export function batchUpdateTicketResults(data) {
+ return request({
+ url: '/admin-api/mes/mold-ticket-results/batchUpdate',
+ method: 'put',
+ data
+ })
+}
diff --git a/src/locales/en-US.js b/src/locales/en-US.js
index 6816cf9..1e03bed 100644
--- a/src/locales/en-US.js
+++ b/src/locales/en-US.js
@@ -408,6 +408,53 @@ export default {
planSelectTitle: 'Select Inspection Plans',
userSelectTitle: 'Select Operable Users'
},
+ moldWorkOrder: {
+ moduleName: 'Inspection Records',
+ subTitle: 'Mold management inspection records',
+ detailTitle: 'Inspection Record Detail',
+ basicInfo: 'Basic Info',
+ resultListTitle: 'Inspection Results',
+ planNo: 'Ticket No.',
+ moldName: 'Mold Name',
+ planType: 'Task Type',
+ planTypeInspect: 'Inspection',
+ planTypeMaintain: 'Maintenance',
+ configName: 'Task Config',
+ jobStatus: 'Job Status',
+ jobStatusPending: 'Pending',
+ jobStatusProcessing: 'Processing',
+ jobStatusCompleted: 'Completed',
+ jobStatusTimeout: 'Timeout',
+ jobStatusCancelled: 'Cancelled',
+ jobResult: 'Job Result',
+ jobResultOk: 'OK',
+ jobResultNg: 'NG',
+ operatorName: 'Operator',
+ taskTime: 'Task Time',
+ taskEndTime: 'End Time',
+ cancelReason: 'Cancel Reason',
+ createTime: 'Created At',
+ searchPlaceholder: 'Enter ticket no.',
+ empty: 'No inspection records',
+ cancelTask: 'Cancel Task',
+ cancelSuccess: 'Cancelled successfully',
+ cancelFail: 'Cancel failed',
+ placeholderCancelReason: 'Enter cancel reason',
+ validatorCancelReasonRequired: 'Cancel reason is required',
+ inspectionItemName: 'Inspection Item',
+ inspectionMethod: 'Inspection Method',
+ judgmentCriteria: 'Judgment Criteria',
+ valueType: 'Value Type',
+ inspectionResult: 'Inspection Result',
+ inspectionResultPending: 'Pending',
+ inspectionResultPass: 'Pass',
+ inspectionResultFail: 'Fail',
+ textInput: 'Input Value',
+ remark: 'Remark',
+ images: 'Images',
+ noResultData: 'No inspection result data',
+ loadMore: 'Load More'
+ },
mine: {
clickLogin: 'Tap to sign in',
username: 'Username: {name}',
diff --git a/src/locales/index.js b/src/locales/index.js
index 1b35271..cd91242 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -75,7 +75,9 @@ const literalMap = {
'点检模板': 'moldInspectionPlan.moduleName',
'点检模板详情': 'moldInspectionPlan.detailTitle',
'点检任务': 'moldTaskConfig.moduleName',
- '点检任务详情': 'moldTaskConfig.detailTitle'
+ '点检任务详情': 'moldTaskConfig.detailTitle',
+ '点检记录': 'moldWorkOrder.moduleName',
+ '点检记录详情': 'moldWorkOrder.detailTitle'
}
function applyTabBarLanguage() {
diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js
index a31cd42..d4127e5 100644
--- a/src/locales/zh-CN.js
+++ b/src/locales/zh-CN.js
@@ -408,6 +408,53 @@ export default {
planSelectTitle: '选择点检模板',
userSelectTitle: '选择可操作用户'
},
+ moldWorkOrder: {
+ moduleName: '点检记录',
+ subTitle: '模具管理点检记录查询',
+ detailTitle: '点检记录详情',
+ basicInfo: '基础信息',
+ resultListTitle: '检验结果',
+ planNo: '工单编号',
+ moldName: '模具名称',
+ planType: '任务类型',
+ planTypeInspect: '点检',
+ planTypeMaintain: '保养',
+ configName: '任务配置',
+ jobStatus: '作业状态',
+ jobStatusPending: '待处理',
+ jobStatusProcessing: '处理中',
+ jobStatusCompleted: '已完成',
+ jobStatusTimeout: '已超时',
+ jobStatusCancelled: '已取消',
+ jobResult: '作业结果',
+ jobResultOk: 'OK',
+ jobResultNg: 'NG',
+ operatorName: '操作人',
+ taskTime: '任务时间',
+ taskEndTime: '结束时间',
+ cancelReason: '取消原因',
+ createTime: '创建时间',
+ searchPlaceholder: '请输入工单编号',
+ empty: '暂无点检记录数据',
+ cancelTask: '取消任务',
+ cancelSuccess: '取消成功',
+ cancelFail: '取消失败',
+ placeholderCancelReason: '请输入取消原因',
+ validatorCancelReasonRequired: '取消原因不能为空',
+ inspectionItemName: '检验项名称',
+ inspectionMethod: '检验方式',
+ judgmentCriteria: '判定基准',
+ valueType: '值类型',
+ inspectionResult: '检验结果',
+ inspectionResultPending: '待检',
+ inspectionResultPass: '合格',
+ inspectionResultFail: '不合格',
+ textInput: '输入值',
+ remark: '备注',
+ images: '图片',
+ noResultData: '暂无检验结果数据',
+ loadMore: '加载更多'
+ },
mine: {
clickLogin: '点击登录',
username: '用户名:{name}',
diff --git a/src/pages.json b/src/pages.json
index 4092b32..3bc99d5 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -533,6 +533,20 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "moldWorkOrderInquiry/index",
+ "style": {
+ "navigationBarTitleText": "点检记录",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "moldWorkOrderInquiry/detail",
+ "style": {
+ "navigationBarTitleText": "点检记录详情",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "planList/index",
"style": {
diff --git a/src/pages/work.vue b/src/pages/work.vue
index 3e57699..9df366e 100644
--- a/src/pages/work.vue
+++ b/src/pages/work.vue
@@ -279,9 +279,9 @@
- 📜
+
- 点检记录
+ {{ t('moldWorkOrder.moduleName') }}
@@ -383,7 +383,7 @@ function handleClick(name) {
'点检项库': '',
'点检模板': '/pages_function/pages/moldInspectionPlan/index',
'点检任务': '/pages_function/pages/moldTaskConfiguration/index',
- '点检记录': '',
+ '点检记录': '/pages_function/pages/moldWorkOrderInquiry/index',
'维修项目': '',
'维修单': ''
};
diff --git a/src/pages_function/pages/moldWorkOrderInquiry/detail.vue b/src/pages_function/pages/moldWorkOrderInquiry/detail.vue
new file mode 100644
index 0000000..e2fa3c2
--- /dev/null
+++ b/src/pages_function/pages/moldWorkOrderInquiry/detail.vue
@@ -0,0 +1,306 @@
+
+
+
+
+
+
+
+
+ {{ t('moldWorkOrder.basicInfo') }}
+
+
+ {{ t('moldWorkOrder.planNo') }}
+ {{ textValue(detailData.planNo) }}
+
+
+ {{ t('moldWorkOrder.moldName') }}
+ {{ textValue(detailData.moldName) }}
+
+
+ {{ t('moldWorkOrder.planType') }}
+ {{ planTypeText }}
+
+
+ {{ t('moldWorkOrder.configName') }}
+ {{ textValue(detailData.configName) }}
+
+
+ {{ t('moldWorkOrder.jobStatus') }}
+ {{ jobStatusText }}
+
+
+ {{ t('moldWorkOrder.jobResult') }}
+ {{ jobResultText }}
+
+
+ {{ t('moldWorkOrder.operatorName') }}
+ {{ textValue(detailData.operatorName) }}
+
+
+ {{ t('moldWorkOrder.taskTime') }}
+ {{ formatDateTime(detailData.taskTime) }}
+
+
+ {{ t('moldWorkOrder.taskEndTime') }}
+ {{ formatDateTime(detailData.taskEndTime) }}
+
+
+ {{ t('moldWorkOrder.cancelReason') }}
+ {{ textValue(detailData.cancelReason) }}
+
+
+ {{ t('moldWorkOrder.createTime') }}
+ {{ formatDateTime(detailData.createTime) }}
+
+
+
+
+
+
+ {{ t('moldWorkOrder.resultListTitle') }}
+ {{ t('functionCommon.loading') }}
+ {{ t('moldWorkOrder.noResultData') }}
+
+
+ {{ index + 1 }}
+
+
+ {{ t('moldWorkOrder.inspectionItemName') }}
+ {{ textValue(item.inspectionItemName) }}
+
+
+ {{ t('moldWorkOrder.inspectionMethod') }}
+ {{ getInspectionMethodLabel(item.inspectionMethod) }}
+
+
+ {{ t('moldWorkOrder.judgmentCriteria') }}
+ {{ textValue(item.judgmentCriteria) }}
+
+
+ {{ t('moldWorkOrder.valueType') }}
+ {{ getValueTypeLabel(item.valueType) }}
+
+
+ {{ t('moldWorkOrder.inspectionResult') }}
+ {{ inspectionResultText(item.inspectionResult) }}
+
+
+ {{ t('moldWorkOrder.textInput') }}
+ {{ textValue(item.textInput) }}
+
+
+ {{ t('moldWorkOrder.remark') }}
+ {{ textValue(item.remark) }}
+
+
+ {{ t('moldWorkOrder.images') }}
+
+
+
+
+
+
+
+
+ {{ resultLoadingMore ? t('functionCommon.loadingMore') : t('moldWorkOrder.loadMore') }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/moldWorkOrderInquiry/index.vue b/src/pages_function/pages/moldWorkOrderInquiry/index.vue
new file mode 100644
index 0000000..0ceb9da
--- /dev/null
+++ b/src/pages_function/pages/moldWorkOrderInquiry/index.vue
@@ -0,0 +1,406 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
+
+
+
+ {{ filterPlanTypeLabel || t('moldWorkOrder.planType') }}
+
+
+ {{ filterJobStatusLabel || t('moldWorkOrder.jobStatus') }}
+
+
+ {{ filterJobResultLabel || t('moldWorkOrder.jobResult') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('moldWorkOrder.moldName') }}
+ {{ textValue(item.moldName) }}
+
+
+ {{ t('moldWorkOrder.configName') }}
+ {{ textValue(item.configName) }}
+
+
+ {{ t('moldWorkOrder.jobStatus') }}
+ {{ jobStatusLabel(item.jobStatus) }}
+
+
+ {{ t('moldWorkOrder.jobResult') }}
+ {{ jobResultLabel(item.jobResult) }}
+
+
+ {{ t('moldWorkOrder.operatorName') }}
+ {{ textValue(item.operatorName) }}
+
+
+ {{ t('moldWorkOrder.taskTime') }}
+ {{ formatDateTime(item.taskTime) }}
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('moldWorkOrder.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index fe1309d..1c8f011 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -10,6 +10,7 @@ export enum DICT_TYPE {
MES_TZ_STATUS = "mes_tz_status",
INSPECTION_METHOD = "Inspection_method",
VALUE_TYPES = "value_types",
+ JOB_STATUS = "job_status",
}
type DictItem = {