diff --git a/src/components/RouterSearch/index.vue b/src/components/RouterSearch/index.vue
index 3fa35f6e..592316fd 100644
--- a/src/components/RouterSearch/index.vue
+++ b/src/components/RouterSearch/index.vue
@@ -17,9 +17,10 @@
/>
-
+
>()
const routers = router.getRoutes() // 路由对象
const options = computed(() => {
@@ -86,6 +88,15 @@ function hiddenTopSearch() {
showTopSearch.value = false
}
+function toggleTopSearch() {
+ showTopSearch.value = !showTopSearch.value
+ if (showTopSearch.value) {
+ setTimeout(() => {
+ topSelectRef.value?.focus()
+ }, 600)
+ }
+}
+
onMounted(() => {
window.addEventListener('keydown', listenKey)
window.addEventListener('click', hiddenTopSearch)
diff --git a/src/locales/en.ts b/src/locales/en.ts
index dc3f02bd..9e8e2f79 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -4575,6 +4575,7 @@ export default {
planCountLabel: 'Plan Count',
planDetailTitle: 'Plan Details',
planCodeColon: 'Plan Code: ',
+ taskCodeColon: 'Task Code: ',
planNumberColon: 'Plan Qty: ',
deliveryDateColon: 'Delivery Date: ',
startColon: 'Start: ',
@@ -4582,18 +4583,24 @@ export default {
latestStartColon: 'Latest Start: ',
emptyDescription: 'No Schedule Info',
adjustTaskTitle: 'Adjust Task',
+ taskLabel: 'Task',
+ taskPlaceholder: 'Please select task',
deviceLabel: 'Device',
devicePlaceholder: 'Please select device',
startDateLabel: 'Start Date',
- startDatePlaceholder: 'Please select start date',
+ startDatePlaceholder: 'Please select plan start date',
+ endDateLabel: 'End Date',
+ endDatePlaceholder: 'Please select plan end date',
durationLabel: 'Days',
buttonCancel: 'Cancel',
buttonConfirm: 'Confirm',
editStartDateTitle: 'Edit Start Time',
startTimeLabel: 'Start Time',
startTimePlaceholder: 'Please select start time',
- warningCompleteDeviceDate: 'Please complete device and start date',
+ capacityTypeLabel: 'Capacity Source',
+ warningCompleteDeviceDate: 'Please complete device, start date and end date',
warningValidTime: 'Please select a valid time',
+ warningEndBeforeStart: 'End time cannot be earlier than start time',
columnTaskName: 'Task Name',
columnDeviceName: 'Device Name',
columnPlanInfo: 'Plan Info',
@@ -4618,7 +4625,18 @@ export default {
statusStarted: 'Started',
statusPaused: 'Paused',
statusPendingStorage: 'Pending Storage',
- statusStored: 'Stored'
+ statusStored: 'Stored',
+ dialogTitle: 'Schedule Gantt Preview',
+ workerLabel: 'Worker',
+ workerPlaceholder: 'Please select worker',
+ calcLossLabel: 'Calculate Loss',
+ lockBtn: 'Lock',
+ unlockBtn: 'Unlock',
+ undoBtn: 'Undo',
+ buttonSave: 'Save',
+ buttonClose: 'Close',
+ warningNoPlanData: 'No plan data to save',
+ saveSuccess: 'Schedule saved successfully'
}
}
}
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index ff075330..c4c7f58c 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -4786,6 +4786,7 @@ export default {
planCountLabel: '计划条数',
planDetailTitle: '计划明细',
planCodeColon: '计划编码:',
+ taskCodeColon: '任务编码:',
planNumberColon: '计划数量:',
deliveryDateColon: '交货日期:',
startColon: '开始:',
@@ -4793,18 +4794,24 @@ export default {
latestStartColon: '最晚开工:',
emptyDescription: '暂无计划信息',
adjustTaskTitle: '调整任务',
+ taskLabel: '任务',
+ taskPlaceholder: '请选择任务',
deviceLabel: '设备',
devicePlaceholder: '请选择设备',
startDateLabel: '开始日期',
- startDatePlaceholder: '请选择开始日期',
+ startDatePlaceholder: '请选择计划开始日期',
+ endDateLabel: '结束日期',
+ endDatePlaceholder: '请选择计划结束日期',
durationLabel: '天数',
buttonCancel: '取消',
buttonConfirm: '确定',
editStartDateTitle: '修改开始时间',
startTimeLabel: '开始时间',
startTimePlaceholder: '请选择开始时间',
- warningCompleteDeviceDate: '请完善设备和开始日期',
+ capacityTypeLabel: '产能来源',
+ warningCompleteDeviceDate: '请完善设备、计划开始日期和计划结束日期',
warningValidTime: '请选择有效的时间',
+ warningEndBeforeStart: '结束时间不能早于开始时间',
columnTaskName: '任务名称',
columnDeviceName: '设备名称',
columnPlanInfo: '计划信息',
@@ -4829,7 +4836,18 @@ export default {
statusStarted: '已开工',
statusPaused: '暂停',
statusPendingStorage: '待入库',
- statusStored: '已入库'
+ statusStored: '已入库',
+ dialogTitle: '排产甘特图预览',
+ workerLabel: '领料人',
+ workerPlaceholder: '请选择领料人',
+ calcLossLabel: '是否计算损耗',
+ lockBtn: '锁定',
+ unlockBtn: '解锁',
+ undoBtn: '撤回',
+ buttonSave: '保存',
+ buttonClose: '关闭',
+ warningNoPlanData: '暂无可保存的计划数据',
+ saveSuccess: '排产计划保存成功'
}
}
}
diff --git a/src/views/mes/components/ScheduleGanttPanel.vue b/src/views/mes/components/ScheduleGanttPanel.vue
index 3a6e624e..1907bb81 100644
--- a/src/views/mes/components/ScheduleGanttPanel.vue
+++ b/src/views/mes/components/ScheduleGanttPanel.vue
@@ -37,7 +37,7 @@
{{ PLAN_STATUS_COLOR_MAP[plan.planStatus].label }}
-
{{ t('GanttChart.GanttPanel.planCodeColon') }}{{ plan.taskCode ?? '-' }}
+
{{ t('GanttChart.GanttPanel.planCodeColon') }}{{ plan.planCode ?? '-' }}
{{ t('GanttChart.GanttPanel.planNumberColon') }}{{ plan.planNumber ?? '-' }}
{{ t('GanttChart.GanttPanel.deliveryDateColon') }}{{ plan.deliveryDateStr ?? '-' }}
{{ t('GanttChart.GanttPanel.startColon') }}{{ plan.planStartTimeStr || '-' }}
diff --git a/src/views/mes/tasksummary/components/ScheduleGanttPanelEditable.vue b/src/views/mes/tasksummary/components/ScheduleGanttPanelEditable.vue
index d485110f..c86f9693 100644
--- a/src/views/mes/tasksummary/components/ScheduleGanttPanelEditable.vue
+++ b/src/views/mes/tasksummary/components/ScheduleGanttPanelEditable.vue
@@ -4,18 +4,18 @@