diff --git a/src/api/mes/criticalComponent.js b/src/api/mes/criticalComponent.js
new file mode 100644
index 0000000..57f31f6
--- /dev/null
+++ b/src/api/mes/criticalComponent.js
@@ -0,0 +1,48 @@
+import request from '@/utils/request'
+
+export function getCriticalComponentPage(params) {
+ return request({
+ url: '/admin-api/mes/critical-component/page',
+ method: 'get',
+ params
+ })
+}
+
+export function getCriticalComponent(id) {
+ return request({
+ url: '/admin-api/mes/critical-component/get',
+ method: 'get',
+ params: { id }
+ })
+}
+
+export function createCriticalComponent(data) {
+ return request({
+ url: '/admin-api/mes/critical-component/create',
+ method: 'post',
+ data
+ })
+}
+
+export function updateCriticalComponent(data) {
+ return request({
+ url: '/admin-api/mes/critical-component/update',
+ method: 'put',
+ data
+ })
+}
+
+export function deleteCriticalComponent(ids) {
+ return request({
+ url: '/admin-api/mes/critical-component/delete',
+ method: 'delete',
+ params: { ids }
+ })
+}
+
+export function getCriticalComponentList() {
+ return request({
+ url: '/admin-api/mes/critical-component/list',
+ method: 'get'
+ })
+}
diff --git a/src/api/mes/deviceLedger.js b/src/api/mes/deviceLedger.js
new file mode 100644
index 0000000..826d250
--- /dev/null
+++ b/src/api/mes/deviceLedger.js
@@ -0,0 +1,48 @@
+import request from '@/utils/request'
+
+export function getDeviceLedgerPage(params) {
+ return request({
+ url: '/admin-api/mes/device-ledger/page',
+ method: 'get',
+ params
+ })
+}
+
+export function getDeviceLedger(id) {
+ return request({
+ url: '/admin-api/mes/device-ledger/get',
+ method: 'get',
+ params: { id }
+ })
+}
+
+export function createDeviceLedger(data) {
+ return request({
+ url: '/admin-api/mes/device-ledger/create',
+ method: 'post',
+ data
+ })
+}
+
+export function updateDeviceLedger(data) {
+ return request({
+ url: '/admin-api/mes/device-ledger/update',
+ method: 'put',
+ data
+ })
+}
+
+export function deleteDeviceLedger(ids) {
+ return request({
+ url: '/admin-api/mes/device-ledger/delete',
+ method: 'delete',
+ params: { ids }
+ })
+}
+
+export function getDeviceLedgerList() {
+ return request({
+ url: '/admin-api/mes/device-ledger/list',
+ method: 'get'
+ })
+}
diff --git a/src/api/mes/deviceType.js b/src/api/mes/deviceType.js
new file mode 100644
index 0000000..ce6d854
--- /dev/null
+++ b/src/api/mes/deviceType.js
@@ -0,0 +1,49 @@
+import request from '@/utils/request'
+
+export function getDeviceTypeTree(params) {
+ return request({
+ url: '/admin-api/mes/device-type/tree',
+ method: 'get',
+ params
+ })
+}
+
+export function getDeviceTypeList(params) {
+ return request({
+ url: '/admin-api/mes/device-type/page',
+ method: 'get',
+ params
+ })
+}
+
+export function getDeviceType(id) {
+ return request({
+ url: '/admin-api/mes/device-type/get',
+ method: 'get',
+ params: { id }
+ })
+}
+
+export function createDeviceType(data) {
+ return request({
+ url: '/admin-api/mes/device-type/create',
+ method: 'post',
+ data
+ })
+}
+
+export function updateDeviceType(data) {
+ return request({
+ url: '/admin-api/mes/device-type/update',
+ method: 'put',
+ data
+ })
+}
+
+export function deleteDeviceType(id) {
+ return request({
+ url: '/admin-api/mes/device-type/delete',
+ method: 'delete',
+ params: { id }
+ })
+}
diff --git a/src/locales/en-US.js b/src/locales/en-US.js
index 0db0859..a58c110 100644
--- a/src/locales/en-US.js
+++ b/src/locales/en-US.js
@@ -159,7 +159,9 @@ export default {
uploading: 'Uploading',
uploadImageFailed: 'Image upload failed',
yes: 'Yes',
- no: 'No'
+ no: 'No',
+ noMore: 'No more data',
+ confirmTitle: 'Confirm'
},
moldGet: {
moduleName: 'Mold Stock-out',
@@ -654,5 +656,127 @@ export default {
detailLossRate: 'Loss Rate',
detailRemark: 'Remark',
detailEmpty: 'No BOM detail data'
+ },
+ equipmentCategory: {
+ moduleName: 'Equipment Category',
+ subTitle: 'Equipment category management',
+ detailTitle: 'Category Detail',
+ basicInfo: 'Basic Info',
+ code: 'Category Code',
+ name: 'Category Name',
+ parentName: 'Parent Category',
+ rootCategory: 'None (Top Level)',
+ sort: 'Sort',
+ remark: 'Remark',
+ createTime: 'Created At',
+ searchPlaceholder: 'Enter category code/name',
+ createTitle: 'Create Category',
+ editTitle: 'Edit Category',
+ empty: 'No category data',
+ loadEditFailed: 'Failed to load edit data',
+ noId: 'Missing category ID',
+ loadFailed: 'Failed to load category detail',
+ placeholderCode: 'Enter category code',
+ placeholderName: 'Enter category name',
+ placeholderParent: 'Select parent category',
+ placeholderSort: 'Enter sort order',
+ placeholderRemark: 'Enter remark',
+ validatorCodeRequired: 'Category code is required',
+ validatorNameRequired: 'Category name is required',
+ confirmDeleteContent: 'Confirm delete category [{name}]?'
+ },
+ equipmentLedger: {
+ moduleName: 'Equipment Ledger',
+ subTitle: 'Equipment ledger management',
+ detailTitle: 'Equipment Detail',
+ basicInfo: 'Basic Info',
+ deviceCode: 'Device Code',
+ deviceName: 'Device Name',
+ deviceType: 'Device Type',
+ deviceStatus: 'Device Status',
+ deviceSpec: 'Device Spec',
+ isScheduled: 'Scheduled',
+ ratedCapacity: 'Rated Capacity',
+ dailyAverageValue: 'Daily Avg Value',
+ dataCollectionCapacity: 'Data Collection Capacity',
+ productionDate: 'Production Date',
+ factoryEntryDate: 'Factory Entry Date',
+ deviceLocation: 'Device Location',
+ deviceManagerName: 'Device Manager',
+ workshop: 'Workshop',
+ remark: 'Remark',
+ creatorName: 'Creator',
+ createTime: 'Created At',
+ autoCode: 'Auto Generate',
+ yes: 'Yes',
+ no: 'No',
+ searchPlaceholder: 'Enter device code/name',
+ createTitle: 'Create Equipment',
+ editTitle: 'Edit Equipment',
+ empty: 'No equipment data',
+ loadEditFailed: 'Failed to load edit data',
+ noId: 'Missing equipment ID',
+ loadFailed: 'Failed to load equipment detail',
+ placeholderDeviceCode: 'Enter device code',
+ placeholderDeviceName: 'Enter device name',
+ placeholderDeviceType: 'Select device type',
+ placeholderDeviceSpec: 'Enter device spec',
+ placeholderRatedCapacity: 'Enter rated capacity',
+ placeholderDailyAverageValue: 'Enter daily average value',
+ placeholderDataCollectionCapacity: 'Enter data collection capacity',
+ placeholderProductionDate: 'Select production date',
+ placeholderFactoryEntryDate: 'Select factory entry date',
+ placeholderDeviceLocation: 'Enter device location',
+ placeholderRemark: 'Enter remark',
+ validatorDeviceCodeRequired: 'Device code is required',
+ validatorDeviceNameRequired: 'Device name is required',
+ validatorDeviceTypeRequired: 'Device type is required',
+ validatorProductionDateRequired: 'Production date is required',
+ validatorFactoryEntryDateRequired: 'Factory entry date is required',
+ validatorRatedCapacityRequired: 'Rated capacity is required',
+ validatorDailyAverageValueRequired: 'Daily average value is required',
+ validatorDataCollectionCapacityRequired: 'Data collection capacity is required',
+ confirmDeleteContent: 'Confirm delete equipment [{name}]?',
+ checkHistory: 'Inspection',
+ maintainHistory: 'Maintenance',
+ repairHistory: 'Repair',
+ operator: 'Operator',
+ noHistoryData: 'No history data',
+ resultPass: 'Pass',
+ resultFail: 'Fail',
+ repairPending: 'Pending',
+ repairProcessing: 'Processing',
+ repairCompleted: 'Completed'
+ },
+ criticalComponent: {
+ moduleName: 'Critical Component',
+ subTitle: 'Equipment critical component management',
+ detailTitle: 'Component Detail',
+ basicInfo: 'Basic Info',
+ code: 'Component Code',
+ name: 'Component Name',
+ deviceSpec: 'Specification',
+ description: 'Description',
+ count: 'Count',
+ remark: 'Remark',
+ creatorName: 'Creator',
+ createTime: 'Created At',
+ autoCode: 'Auto Generate',
+ searchPlaceholder: 'Enter code/name',
+ createTitle: 'Create Component',
+ editTitle: 'Edit Component',
+ empty: 'No component data',
+ loadEditFailed: 'Failed to load edit data',
+ noId: 'Missing component ID',
+ loadFailed: 'Failed to load component detail',
+ placeholderCode: 'Enter component code',
+ placeholderName: 'Enter component name',
+ placeholderDeviceSpec: 'Enter specification',
+ placeholderDescription: 'Enter description',
+ placeholderCount: 'Enter count',
+ placeholderRemark: 'Enter remark',
+ validatorCodeRequired: 'Component code is required',
+ validatorNameRequired: 'Component name is required',
+ confirmDeleteContent: 'Confirm delete component [{name}]?'
}
}
diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js
index d6de4c0..cc5a330 100644
--- a/src/locales/zh-CN.js
+++ b/src/locales/zh-CN.js
@@ -159,7 +159,9 @@ export default {
uploading: '上传中',
uploadImageFailed: '图片上传失败',
yes: '是',
- no: '否'
+ no: '否',
+ noMore: '没有更多数据了',
+ confirmTitle: '提示'
},
moldGet: {
moduleName: '模具出库',
@@ -654,5 +656,127 @@ export default {
detailLossRate: '损耗率',
detailRemark: '备注',
detailEmpty: '暂无BOM明细数据'
+ },
+ equipmentCategory: {
+ moduleName: '设备分类',
+ subTitle: '设备分类管理',
+ detailTitle: '设备分类详情',
+ basicInfo: '基础信息',
+ code: '分类编码',
+ name: '分类名称',
+ parentName: '上级分类',
+ rootCategory: '无(顶级分类)',
+ sort: '排序',
+ remark: '备注',
+ createTime: '创建时间',
+ searchPlaceholder: '请输入分类编码/名称',
+ createTitle: '新增设备分类',
+ editTitle: '编辑设备分类',
+ empty: '暂无设备分类数据',
+ loadEditFailed: '加载编辑数据失败',
+ noId: '缺少分类ID',
+ loadFailed: '加载分类详情失败',
+ placeholderCode: '请输入分类编码',
+ placeholderName: '请输入分类名称',
+ placeholderParent: '请选择上级分类',
+ placeholderSort: '请输入排序',
+ placeholderRemark: '请输入备注',
+ validatorCodeRequired: '分类编码不能为空',
+ validatorNameRequired: '分类名称不能为空',
+ confirmDeleteContent: '确认删除分类【{name}】吗?'
+ },
+ equipmentLedger: {
+ moduleName: '设备台账',
+ subTitle: '设备台账管理',
+ detailTitle: '设备台账详情',
+ basicInfo: '基础信息',
+ deviceCode: '设备编码',
+ deviceName: '设备名称',
+ deviceType: '设备类型',
+ deviceStatus: '设备状态',
+ deviceSpec: '设备规格',
+ isScheduled: '是否排产',
+ ratedCapacity: '额定产能',
+ dailyAverageValue: '每日报工平均值',
+ dataCollectionCapacity: '数据采集产能',
+ productionDate: '生产日期',
+ factoryEntryDate: '入厂日期',
+ deviceLocation: '设备位置',
+ deviceManagerName: '设备负责人',
+ workshop: '所属车间',
+ remark: '备注',
+ creatorName: '创建人',
+ createTime: '创建时间',
+ autoCode: '自动生成',
+ yes: '是',
+ no: '否',
+ searchPlaceholder: '请输入设备编码/名称',
+ createTitle: '新增设备台账',
+ editTitle: '编辑设备台账',
+ empty: '暂无设备台账数据',
+ loadEditFailed: '加载编辑数据失败',
+ noId: '缺少设备ID',
+ loadFailed: '加载设备详情失败',
+ placeholderDeviceCode: '请输入设备编码',
+ placeholderDeviceName: '请输入设备名称',
+ placeholderDeviceType: '请选择设备类型',
+ placeholderDeviceSpec: '请输入设备规格',
+ placeholderRatedCapacity: '请输入额定产能',
+ placeholderDailyAverageValue: '请输入每日报工平均值',
+ placeholderDataCollectionCapacity: '请输入数据采集产能',
+ placeholderProductionDate: '请选择生产日期',
+ placeholderFactoryEntryDate: '请选择入厂日期',
+ placeholderDeviceLocation: '请输入设备位置',
+ placeholderRemark: '请输入备注',
+ validatorDeviceCodeRequired: '设备编码不能为空',
+ validatorDeviceNameRequired: '设备名称不能为空',
+ validatorDeviceTypeRequired: '设备类型不能为空',
+ validatorProductionDateRequired: '生产日期不能为空',
+ validatorFactoryEntryDateRequired: '入厂日期不能为空',
+ validatorRatedCapacityRequired: '额定产能不能为空',
+ validatorDailyAverageValueRequired: '每日报工平均值不能为空',
+ validatorDataCollectionCapacityRequired: '数据采集产能不能为空',
+ confirmDeleteContent: '确认删除设备【{name}】吗?',
+ checkHistory: '点检记录',
+ maintainHistory: '保养记录',
+ repairHistory: '报修记录',
+ operator: '操作人',
+ noHistoryData: '暂无历史记录',
+ resultPass: '合格',
+ resultFail: '不合格',
+ repairPending: '待处理',
+ repairProcessing: '处理中',
+ repairCompleted: '已完成'
+ },
+ criticalComponent: {
+ moduleName: '设备关键件',
+ subTitle: '设备关键件管理',
+ detailTitle: '设备关键件详情',
+ basicInfo: '基础信息',
+ code: '关键件编码',
+ name: '关键件名称',
+ deviceSpec: '规格',
+ description: '描述',
+ count: '数量',
+ remark: '备注',
+ creatorName: '创建人',
+ createTime: '创建时间',
+ autoCode: '自动生成',
+ searchPlaceholder: '请输入编码/名称',
+ createTitle: '新增设备关键件',
+ editTitle: '编辑设备关键件',
+ empty: '暂无设备关键件数据',
+ loadEditFailed: '加载编辑数据失败',
+ noId: '缺少关键件ID',
+ loadFailed: '加载关键件详情失败',
+ placeholderCode: '请输入关键件编码',
+ placeholderName: '请输入关键件名称',
+ placeholderDeviceSpec: '请输入规格',
+ placeholderDescription: '请输入描述',
+ placeholderCount: '请输入数量',
+ placeholderRemark: '请输入备注',
+ validatorCodeRequired: '关键件编码不能为空',
+ validatorNameRequired: '关键件名称不能为空',
+ confirmDeleteContent: '确认删除关键件【{name}】吗?'
}
}
diff --git a/src/pages.json b/src/pages.json
index fb9df7e..e7529bd 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -428,6 +428,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "equipmentCategory/detail",
+ "style": {
+ "navigationBarTitleText": "设备分类详情",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "equipmentLedger/index",
"style": {
@@ -436,12 +443,26 @@
}
},
{
- "path": "equipmentKeypart/index",
+ "path": "equipmentLedger/detail",
+ "style": {
+ "navigationBarTitleText": "设备台账详情",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "criticalComponent/index",
"style": {
"navigationBarTitleText": "设备关键件",
"navigationStyle": "custom"
}
},
+ {
+ "path": "criticalComponent/detail",
+ "style": {
+ "navigationBarTitleText": "设备关键件详情",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "moldType/index",
"style": {
diff --git a/src/pages/work.vue b/src/pages/work.vue
index 9df366e..9c45131 100644
--- a/src/pages/work.vue
+++ b/src/pages/work.vue
@@ -173,7 +173,7 @@
✅
-
+
点检任务
@@ -373,7 +373,7 @@ function handleClick(name) {
'产品BOM': '/pages_function/pages/productBom/index',
'设备分类': '/pages_function/pages/equipmentCategory/index',
'设备台账': '/pages_function/pages/equipmentLedger/index',
- '设备关键件': '/pages_function/pages/equipmentKeypart/index',
+ '设备关键件': '/pages_function/pages/criticalComponent/index',
'模具类型': '/pages_function/pages/moldType/index',
'模具台账': '/pages_function/pages/moldLedger/index',
moldGet: '/pages_function/pages/moldget/index',
diff --git a/src/pages_function/pages/criticalComponent/detail.vue b/src/pages_function/pages/criticalComponent/detail.vue
new file mode 100644
index 0000000..62c48c3
--- /dev/null
+++ b/src/pages_function/pages/criticalComponent/detail.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+ {{ t('criticalComponent.basicInfo') }}
+
+
+ {{ t('criticalComponent.code') }}
+ {{ fieldValue('code') }}
+
+
+ {{ t('criticalComponent.name') }}
+ {{ fieldValue('name') }}
+
+
+ {{ t('criticalComponent.deviceSpec') }}
+ {{ fieldValue('deviceSpec') }}
+
+
+ {{ t('criticalComponent.description') }}
+ {{ fieldValue('description') }}
+
+
+ {{ t('criticalComponent.count') }}
+ {{ fieldValue('count') }}
+
+
+ {{ t('criticalComponent.creatorName') }}
+ {{ fieldValue('creatorName') }}
+
+
+ {{ t('criticalComponent.createTime') }}
+ {{ formatDateTime(detailData?.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/criticalComponent/index.vue b/src/pages_function/pages/criticalComponent/index.vue
new file mode 100644
index 0000000..11675c9
--- /dev/null
+++ b/src/pages_function/pages/criticalComponent/index.vue
@@ -0,0 +1,422 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
+
+
+
+
+
+
+
+
+
+
+ {{ t('criticalComponent.deviceSpec') }}
+ {{ textValue(item.deviceSpec) }}
+
+
+ {{ t('criticalComponent.description') }}
+ {{ textValue(item.description) }}
+
+
+ {{ t('criticalComponent.count') }}
+ {{ textValue(item.count) }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('criticalComponent.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+
+ +
+
+
+
+
+ ↑
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/equipmentCategory/detail.vue b/src/pages_function/pages/equipmentCategory/detail.vue
new file mode 100644
index 0000000..9465707
--- /dev/null
+++ b/src/pages_function/pages/equipmentCategory/detail.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+ {{ t('equipmentCategory.basicInfo') }}
+
+
+ {{ t('equipmentCategory.code') }}
+ {{ fieldValue('code') }}
+
+
+ {{ t('equipmentCategory.name') }}
+ {{ fieldValue('name') }}
+
+
+ {{ t('equipmentCategory.parentName') }}
+ {{ parentNameText }}
+
+
+ {{ t('equipmentCategory.sort') }}
+ {{ fieldValue('sort') }}
+
+
+ {{ t('equipmentCategory.createTime') }}
+ {{ formatDateTime(detailData?.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/equipmentCategory/index.vue b/src/pages_function/pages/equipmentCategory/index.vue
index 4ef40b4..c6791f2 100644
--- a/src/pages_function/pages/equipmentCategory/index.vue
+++ b/src/pages_function/pages/equipmentCategory/index.vue
@@ -1,123 +1,112 @@
-
-
-
-
-
-
-
-
-
- ×
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
-
-
-
+
+
+
+
-
- 排序
- {{ item.sort }}
+
+ {{ t('equipmentCategory.parentName') }}
+ {{ getParentName(item.parentId) }}
+
+
+ {{ t('equipmentCategory.sort') }}
+ {{ textValue(item.sort) }}
-
- 备注
- {{ item.remark || '-' }}
+
+ {{ t('equipmentCategory.remark') }}
+ {{ textValue(item.remark) }}
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('equipmentCategory.empty') }}
+ {{ t('functionCommon.noMore') }}
-
+
+
+
-
+
+
+ ↑
+
+
+
+
-
-
diff --git a/src/pages_function/pages/equipmentKeypart/index.vue b/src/pages_function/pages/equipmentKeypart/index.vue
deleted file mode 100644
index 9d142c2..0000000
--- a/src/pages_function/pages/equipmentKeypart/index.vue
+++ /dev/null
@@ -1,589 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- ×
-
-
-
-
-
-
-
-
-
-
- 描述
- {{ item.description || '-' }}
-
-
- 数量
- {{ item.count }}
-
-
- 备注
- {{ item.remark || '-' }}
-
-
-
-
-
-
-
- +
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages_function/pages/equipmentLedger/detail.vue b/src/pages_function/pages/equipmentLedger/detail.vue
new file mode 100644
index 0000000..46fd005
--- /dev/null
+++ b/src/pages_function/pages/equipmentLedger/detail.vue
@@ -0,0 +1,380 @@
+
+
+
+
+
+
+
+
+ {{ t('equipmentLedger.basicInfo') }}
+
+
+ {{ t('equipmentLedger.deviceCode') }}
+ {{ fieldValue('deviceCode') }}
+
+
+ {{ t('equipmentLedger.deviceName') }}
+ {{ fieldValue('deviceName') }}
+
+
+ {{ t('equipmentLedger.deviceStatus') }}
+ {{ getStatusText(detailData?.deviceStatus) }}
+
+
+ {{ t('equipmentLedger.deviceType') }}
+ {{ fieldValue('deviceTypeName') || getDeviceTypeNameById(detailData?.deviceType) }}
+
+
+ {{ t('equipmentLedger.deviceSpec') }}
+ {{ fieldValue('deviceSpec') }}
+
+
+ {{ t('equipmentLedger.isScheduled') }}
+ {{ scheduledText }}
+
+
+ {{ t('equipmentLedger.ratedCapacity') }}
+ {{ fieldValue('ratedCapacity') }}
+
+
+ {{ t('equipmentLedger.dailyAverageValue') }}
+ {{ fieldValue('dailyAverageValue') }}
+
+
+ {{ t('equipmentLedger.dataCollectionCapacity') }}
+ {{ fieldValue('dataCollectionCapacity') }}
+
+
+ {{ t('equipmentLedger.productionDate') }}
+ {{ formatDateValue(detailData?.productionDate) }}
+
+
+ {{ t('equipmentLedger.factoryEntryDate') }}
+ {{ formatDateValue(detailData?.factoryEntryDate) }}
+
+
+ {{ t('equipmentLedger.deviceLocation') }}
+ {{ fieldValue('deviceLocation') }}
+
+
+ {{ t('equipmentLedger.deviceManagerName') }}
+ {{ fieldValue('deviceManagerName') }}
+
+
+ {{ t('equipmentLedger.workshop') }}
+ {{ fieldValue('workshopName') }}
+
+
+ {{ t('equipmentLedger.creatorName') }}
+ {{ fieldValue('creatorName') }}
+
+
+ {{ t('equipmentLedger.createTime') }}
+ {{ formatDateTime(detailData?.createTime) }}
+
+
+
+
+
+
+
+
+
+ {{ tab.label }}
+
+
+
+
+
+ {{ t('equipmentLedger.noHistoryData') }}
+
+
+
+ {{ item.inspectionItemName || item.name || '-' }}
+ {{ t('equipmentLedger.operator') }}: {{ item.operatorName || item.inspectorName || '-' }}
+
+
+
+
+
+
+ {{ t('equipmentLedger.noHistoryData') }}
+
+
+
+ {{ item.maintainItemName || item.inspectionItemName || item.name || '-' }}
+ {{ t('equipmentLedger.operator') }}: {{ item.operatorName || item.inspectorName || '-' }}
+
+
+
+
+
+
+ {{ t('equipmentLedger.noHistoryData') }}
+
+
+
+ {{ item.repairNo || item.description || '-' }}
+ {{ t('equipmentLedger.operator') }}: {{ item.creatorName || '-' }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_function/pages/equipmentLedger/index.vue b/src/pages_function/pages/equipmentLedger/index.vue
index ed90354..ce883a6 100644
--- a/src/pages_function/pages/equipmentLedger/index.vue
+++ b/src/pages_function/pages/equipmentLedger/index.vue
@@ -1,1160 +1,613 @@
-
-
-
-
-
- {{ selectedType || '请选择设备类型筛选' }}
-
- ›
-
-
-
-
-
-
-
-
-
-
- ×
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
-
-
-
+
+
+
+
-
- 类型
- {{ item.deviceType }}
+
+ {{ t('equipmentLedger.deviceType') }}
+ {{ textValue(item.deviceTypeName) }}
-
- 状态
-
- {{ getStatusText(item.deviceStatus) }}
-
+
+ {{ t('equipmentLedger.deviceStatus') }}
+ {{ getStatusText(item.deviceStatus) }}
-
- 规格
- {{ item.standard || '-' }}
+
+ {{ t('equipmentLedger.deviceSpec') }}
+ {{ textValue(item.deviceSpec) }}
-
- 型号
- {{ item.model || '-' }}
-
-
- 位置
- {{ item.deviceLocation || '-' }}
-
-
- 责任人
- {{ item.supplier || '-' }}
+
+ {{ t('equipmentLedger.deviceLocation') }}
+ {{ textValue(item.deviceLocation) }}
-
+
-
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('equipmentLedger.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMore') }}
-
+
+
+
-
+
+
+ ↑
+
+
+
+
-
-
-
-
-
-
- {{ item }}
- ✓
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-