From b0f0582e517ea72bf1ced62c1068c2eefa020a08 Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 14 Jan 2022 16:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basicData/Warehouse/HistoricalTask.js | 20 +- src/api/basicData/Warehouse/StorageBoxInfo.js | 58 ++++ src/lang/i18n.js | 12 + src/lang/i18n/en/module/basicData.js | 20 +- src/lang/i18n/zh/module/basicData.js | 21 +- src/router/index.js | 198 ++------------ src/views/basicData/Warehouse/CurrentTask.vue | 251 +++++++++++++++++- .../basicData/Warehouse/HistoricalTask.vue | 82 ++++-- .../basicData/Warehouse/StorageBoxInfo.vue | 166 +++++++++++- .../basicData/Warehouse/StorageBoxRack.vue | 179 +++++++++++++ .../Warehouse/components/CurrentTaskInfo.vue | 178 +++++++++++++ .../components/HistoricalTaskInfo.vue | 194 ++++++++++++++ .../components/StorageBoxInfoDetail.vue | 125 +++++++++ .../components/StorageBoxRack-add.vue | 125 +++++++++ src/views/orderManage/ExecutionInfo.vue | 7 + src/views/orderManage/ProcessInfo.vue | 7 + 16 files changed, 1426 insertions(+), 217 deletions(-) create mode 100644 src/api/basicData/Warehouse/StorageBoxInfo.js create mode 100644 src/views/basicData/Warehouse/StorageBoxRack.vue create mode 100644 src/views/basicData/Warehouse/components/CurrentTaskInfo.vue create mode 100644 src/views/basicData/Warehouse/components/HistoricalTaskInfo.vue create mode 100644 src/views/basicData/Warehouse/components/StorageBoxInfoDetail.vue create mode 100644 src/views/basicData/Warehouse/components/StorageBoxRack-add.vue create mode 100644 src/views/orderManage/ExecutionInfo.vue create mode 100644 src/views/orderManage/ProcessInfo.vue diff --git a/src/api/basicData/Warehouse/HistoricalTask.js b/src/api/basicData/Warehouse/HistoricalTask.js index 4b52bc7..266fecf 100644 --- a/src/api/basicData/Warehouse/HistoricalTask.js +++ b/src/api/basicData/Warehouse/HistoricalTask.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 16:00:14 * @LastEditors: zwq - * @LastEditTime: 2022-01-12 16:23:00 + * @LastEditTime: 2022-01-14 15:29:26 * @Description: */ import request from '@/utils/request' @@ -26,3 +26,21 @@ export function HistoricalTaskDetail(id) { // 获取任务单条数据 }) } +export function CurrentTaskList(data) { // 获取任务列表 + return request({ + url: '/api/wms/car/task/execution/info/page', + method: 'post', + data + }) +} + +export function CurrentTaskDetail(id) { // 获取任务单条数据 + const data = { + 'id': id + } + return request({ + url: '/api/wms/car/task/execution/info/get', + method: 'post', + data + }) +} diff --git a/src/api/basicData/Warehouse/StorageBoxInfo.js b/src/api/basicData/Warehouse/StorageBoxInfo.js new file mode 100644 index 0000000..b2ed3a7 --- /dev/null +++ b/src/api/basicData/Warehouse/StorageBoxInfo.js @@ -0,0 +1,58 @@ +/* + * @Author: zwq + * @Date: 2020-12-29 16:00:14 + * @LastEditors: zwq + * @LastEditTime: 2022-01-14 16:25:25 + * @Description: + */ +import request from '@/utils/request' + +export function StorageBoxInfoList(data) { // 获取存储箱使用情况 + return request({ + url: '/api/wms/storage/box/circ/info/page', + method: 'post', + data + }) +} + +export function StorageBoxInfoDetail(id) { // 获取工厂单条数据 + const data = { + 'id': id + } + return request({ + url: '/api/wms/storage/box/circ/info/get', + method: 'post', + data + }) +} + +export function factoryUpdate(data) { // 更新工厂单条数据 + return request({ + url: '/api/wms/storage/box/circ/info/update', + method: 'post', + data + }) +} + +export function factoryAdd(data) { // 新增工厂单条数据 + return request({ + url: '/api/wms/storage/box/circ/info/add', + method: 'post', + data + }) +} + +export function factoryCode() { // 获取工厂code + return request({ + url: '/api/wms/storage/box/circ/info/get-code', + method: 'post' + }) +} + +export function factoryDelete(id) { // 删除工厂单条数据 + return request({ + url: '/api/wms/storage/box/circ/info/delete', + method: 'post', + data: { id } + }) +} diff --git a/src/lang/i18n.js b/src/lang/i18n.js index f7fa434..a56ab68 100644 --- a/src/lang/i18n.js +++ b/src/lang/i18n.js @@ -712,6 +712,10 @@ export default { zh: '存储箱信息', en: 'Storage Box Info' }, + StorageBoxRack: { + zh: '存储箱上架', + en: 'Storage Box Rack' + }, CurrentTask: { zh: '当前任务', en: 'Current Task' @@ -728,6 +732,14 @@ export default { zh: 'Power Classification', en: 'Power Classification' }, + ProcessInfo: { + zh: '工艺信息', + en: 'Process Info' + }, + ExecutionInfo: { + zh: '执行信息', + en: 'Execution Info' + }, consumption: { zh: '工单能耗', en: 'Energy consumption of the repair order' diff --git a/src/lang/i18n/en/module/basicData.js b/src/lang/i18n/en/module/basicData.js index e4abb47..272f948 100644 --- a/src/lang/i18n/en/module/basicData.js +++ b/src/lang/i18n/en/module/basicData.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:13:51 * @LastEditors: zwq - * @LastEditTime: 2022-01-12 16:09:24 + * @LastEditTime: 2022-01-14 16:34:25 * @Description: file content */ export default { @@ -279,6 +279,7 @@ export default { Code: 'Code', TaskType: 'Task Type', TaskStatus: 'Task Status', + TaskSource: 'Task Source', VehicleName: 'Vehicle Name', TimeSlot: 'Time Slot', ExecutionTime: 'Execution Time', @@ -288,6 +289,21 @@ export default { NextOperation: 'Next Operation', CompletionTime: 'Completion Time', StartLocation: 'Start Location', - TargetLocation: 'Target Location' + FullBoxStartLocation: 'FullBox Start Location', + TaskLocation: 'Task Location', + TargetLocation: 'Target Location', + OrderName: 'Order Name', + TaskBoxNumber: 'Task Box Number', + FullBoxNumber: 'Full Box Number', + EmptyFork: 'Empty Fork', + TaskBoxFork: 'Task Box Fork', + EmptyHandlingTime: 'Empty Handling Time', + TaskBoxHandlingTime: 'TaskBox Handling Time', + StorageBoxNumber: 'Storage Box Number', + CurrentLocation: 'Current Location', + IsEmpty: 'Is Empty', + IsEmptyBox: 'Is Empty Box', + LocationName: 'Location Name', + LocationCode: 'Location Code' } } diff --git a/src/lang/i18n/zh/module/basicData.js b/src/lang/i18n/zh/module/basicData.js index 7941189..568a5aa 100644 --- a/src/lang/i18n/zh/module/basicData.js +++ b/src/lang/i18n/zh/module/basicData.js @@ -2,7 +2,7 @@ * @Author: gtz * @Date: 2021-03-04 16:13:51 * @LastEditors: zwq - * @LastEditTime: 2022-01-12 16:09:25 + * @LastEditTime: 2022-01-14 16:34:19 * @Description: file content */ export default { @@ -279,6 +279,7 @@ export default { Code: '编码', TaskType: '任务类型', TaskStatus: '任务状态', + TaskSource: '任务来源', VehicleName: '车辆名', TimeSlot: '时间段', ExecutionTime: '执行时间', @@ -288,6 +289,22 @@ export default { NextOperation: '下一个工序', CompletionTime: '完成时间', StartLocation: '开始库位', - TargetLocation: '目标库位' + FullBoxStartLocation: '空箱开始库位', + TaskLocation: '任务库位', + TargetLocation: '目标库位', + OrderName: '工单名', + TaskBoxNumber: '任务箱号', + FullBoxNumber: '空箱号', + EmptyFork: '空箱货叉', + TaskBoxFork: '任务箱货叉', + EmptyHandlingTime: '搬运空箱时间', + TaskBoxHandlingTime: '搬运任务箱时间', + StorageBoxNumber: '存储箱号', + CurrentLocation: '当前库位', + IsEmpty: '是否有基板', + IsEmptyBox: '是否空箱', + LocationName: '库位名', + LocationCode: '库位编码' + } } diff --git a/src/router/index.js b/src/router/index.js index 809c2eb..a9304c8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -177,6 +177,13 @@ export const constantRoutes = [ name: 'StorageBoxInfo', meta: { title: routerTitle.Warehouse.StorageBoxInfo?.[language] || routerTitle.Warehouse.StorageBoxInfo.en, icon: 'form', affix: true, required: true, requireToken: true } }, + { + path: '/StorageBoxRack', + component: () => + import('@/views/basicData/Warehouse/StorageBoxRack'), + name: 'StorageBoxRack', + meta: { title: routerTitle.Warehouse.StorageBoxRack?.[language] || routerTitle.Warehouse.StorageBoxRack.en, icon: 'form', affix: true, required: true, requireToken: true } + }, { path: '/CurrentTask', component: () => @@ -196,195 +203,23 @@ export const constantRoutes = [ { path: '/order', component: Layout, - redirect: '/order/workOrderManage', + redirect: '/order/ProcessInfo', name: 'orderManage', meta: { title: routerTitle.order?.[language] || routerTitle.order.en, icon: 'form', iconPart: 'orderManage', affix: true, required: true, requireToken: true }, children: [ { - path: 'powerClassification', + path: 'ProcessInfo', component: () => - import('@/views/orderManage/powerClassification'), - name: 'powerClassification', - meta: { title: routerTitle.order.powerClassification?.[language] || routerTitle.order.powerClassification.en, icon: 'form', affix: true, required: true, requireToken: true } + import('@/views/orderManage/ProcessInfo'), + name: 'ProcessInfo', + meta: { title: routerTitle.order.ProcessInfo?.[language] || routerTitle.order.ProcessInfo.en, icon: 'form', affix: true, required: true, requireToken: true } }, { - path: 'erpToMesData', + path: 'ExecutionInfo', component: () => - import('@/views/orderManage/erpToMesData'), - name: 'erpToMesData', - meta: { title: routerTitle.order.erpToMesData?.[language] || routerTitle.order.erpToMesData.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'erpToMesVisualization', - component: () => - import('@/views/orderManage/visualization'), - name: 'erpToMesVisualization', - meta: { title: routerTitle.order.erpToMesVisualization?.[language] || routerTitle.order.erpToMesVisualization.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'mesToErp', - component: () => - import('@/views/orderManage/mesToErp'), - name: 'mesToErp', - meta: { title: 'mesToErp', icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: '/workOrderManage', - component: () => import('@/views/orderManage/index'), - name: 'workOrderManage', - meta: { title: routerTitle.order.workOrderManage?.[language] || routerTitle.order.workOrderManage.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'workOrder', - component: () => - import('@/views/orderManage/workOrder/workOrder'), - name: 'workOrder', - meta: { title: routerTitle.order.workOrderManage.workOrder?.[language] || routerTitle.order.workOrderManage.workOrder.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'workOrderOperation', - component: () => import('@/views/orderManage/workOrder/components/workOrderOperation'), - name: 'workOrderOperation', - hidden: true, - meta: { title: routerTitle.order.workOrderManage.workOrderOperation?.[language] || routerTitle.order.workOrderManage.workOrderOperation.en, icon: 'form', affix: true } - }, - { - path: 'workOrderMonitor', - component: () => import('@/views/orderManage/workOrder/components/workOrderMonitor'), - name: 'workOrderMonitor', - hidden: true, - meta: { title: routerTitle.order.workOrderManage.workOrderMonitor?.[language] || routerTitle.order.workOrderManage.workOrderMonitor.en, icon: 'form', affix: true } - }, - { - path: 'workOrderVerify', - component: () => import('@/views/orderManage/workOrder/components/workOrderVerify'), - name: 'workOrderVerify', - hidden: true, - meta: { title: routerTitle.order.workOrderManage.workOrderVerify?.[language] || routerTitle.order.workOrderManage.workOrderVerify.en, icon: 'form', affix: true } - }, - { - path: 'packingTags', - component: () => import('@/views/orderManage/packingTags'), - name: 'packingTags', - hidden: true, - meta: { title: routerTitle.order.workOrderManage.viewpackingTags?.[language] || routerTitle.order.workOrderManage.viewpackingTags.en, icon: 'form', affix: true } - } - ] - }, - { - path: '/orderManage', - component: () => import('@/views/orderManage/index'), - name: 'orderManage', - meta: { title: routerTitle.order.orderManage?.[language] || routerTitle.order.orderManage.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'order', - component: () => - import('@/views/orderManage/order/order'), - name: 'order', - meta: { title: routerTitle.order.orderManage.order?.[language] || routerTitle.order.orderManage.order.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'orderIssue', - component: () => - import('@/views/orderManage/order/components/orderIssue'), - name: 'orderIssue', - hidden: true, - meta: { title: routerTitle.order.orderManage.orderIssue?.[language] || routerTitle.order.orderManage.orderIssue.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'orderDetail', - component: () => - import('@/views/orderManage/order/components/orderDetail'), - name: 'orderDetail', - hidden: true, - meta: { title: routerTitle.order.orderManage.orderDetail?.[language] || routerTitle.order.orderManage.orderDetail.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - { - path: '/infoTrack', - component: () => import('@/views/orderManage/index'), - name: 'infoTrack', - meta: { title: routerTitle.order.infoTrack?.[language] || routerTitle.order.infoTrack.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'equipmentParametersTrack', - component: () => - import('@/views/orderManage/infoTrack/equipmentParametersTrack'), - name: 'equipmentParametersTrack', - meta: { title: routerTitle.order.infoTrack.equipmentParametersTrack?.[language] || routerTitle.order.infoTrack.equipmentParametersTrack.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'processSubstrateDataTrack', - component: () => - import('@/views/orderManage/infoTrack/processSubstrateDataTrack'), - name: 'processSubstrateDataTrack', - meta: { title: routerTitle.order.infoTrack.processSubstrateDataTrack?.[language] || routerTitle.order.infoTrack.processSubstrateDataTrack.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'substrateParametersTrack', - component: () => - import('@/views/orderManage/infoTrack/substrateParametersTrack'), - name: 'substrateParametersTrack', - meta: { title: routerTitle.order.infoTrack.substrateParametersTrack?.[language] || routerTitle.order.infoTrack.substrateParametersTrack.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'equipmentEventTrack', - component: () => - import('@/views/orderManage/infoTrack/equipmentEventTrack'), - name: 'equipmentEventTrack', - hidden: true, - meta: { title: routerTitle.order.infoTrack.equipmentEventTrack?.[language] || routerTitle.order.infoTrack.equipmentEventTrack.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'substrateEquipment', - component: () => - import('@/views/orderManage/infoTrack/substrateEquipment'), - name: 'substrateEquipment', - hidden: true, - meta: { title: routerTitle.order.infoTrack.substrateEquipment?.[language] || routerTitle.order.infoTrack.substrateEquipment.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - { - path: '/substrate', - component: () => import('@/views/orderManage/index'), - name: 'substrate', - hidden: true, - meta: { title: routerTitle.order.substrate?.[language] || routerTitle.order.substrate.en, icon: 'form', affix: true, required: true, requireToken: true }, - children: [ - { - path: 'substrateBatch', - component: () => - import('@/views/orderManage/substrateBatch'), - name: 'substrateBatch', - meta: { title: routerTitle.order.substrate.substrateBatch?.[language] || routerTitle.order.substrate.substrateBatch.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: 'substrateBatchAttr', - component: () => - import('@/views/orderManage/components/substrateBatchAttr'), - name: 'substrateBatchAttr', - hidden: true, - meta: { title: routerTitle.order.substrate.substrateBatchAttr?.[language] || routerTitle.order.substrate.substrateBatchAttr.en, icon: 'form', affix: true, required: true, requireToken: true } - } - ] - }, - { - path: '/consumption', - component: () => - import('@/views/orderManage/consumption/consumption'), - name: 'consumption', - meta: { title: routerTitle.order.consumption?.[language] || routerTitle.order.consumption.en, icon: 'form', affix: true, required: true, requireToken: true } - }, - { - path: '/powerList', - component: () => - import('@/views/orderManage/consumption/list'), - name: 'powerList', - hidden: true, - meta: { title: routerTitle.order.details?.[language] || routerTitle.order.details.en, icon: 'form', affix: true, required: true, requireToken: true } + import('@/views/orderManage/ExecutionInfo'), + name: 'ExecutionInfo', + meta: { title: routerTitle.order.ExecutionInfo?.[language] || routerTitle.order.ExecutionInfo.en, icon: 'form', affix: true, required: true, requireToken: true } } ] }, @@ -411,6 +246,7 @@ export const constantRoutes = [ component: Layout, redirect: '/quality', name: 'qualityManage', + hidden: true, meta: { title: routerTitle.quality?.[language] || routerTitle.quality.en, icon: 'form', iconPart: 'qualityManage', affix: true, required: true, requireToken: true }, children: [ { diff --git a/src/views/basicData/Warehouse/CurrentTask.vue b/src/views/basicData/Warehouse/CurrentTask.vue index 19a8b14..9ec0239 100644 --- a/src/views/basicData/Warehouse/CurrentTask.vue +++ b/src/views/basicData/Warehouse/CurrentTask.vue @@ -1,7 +1,254 @@ + + + + + diff --git a/src/views/basicData/Warehouse/HistoricalTask.vue b/src/views/basicData/Warehouse/HistoricalTask.vue index ac68996..3a4ada6 100644 --- a/src/views/basicData/Warehouse/HistoricalTask.vue +++ b/src/views/basicData/Warehouse/HistoricalTask.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2020-12-29 15:41:11 * @LastEditors: zwq - * @LastEditTime: 2022-01-12 16:27:58 + * @LastEditTime: 2022-01-13 15:49:01 * @Description: --> + + diff --git a/src/views/basicData/Warehouse/StorageBoxRack.vue b/src/views/basicData/Warehouse/StorageBoxRack.vue new file mode 100644 index 0000000..10a0e1d --- /dev/null +++ b/src/views/basicData/Warehouse/StorageBoxRack.vue @@ -0,0 +1,179 @@ + + + + + + diff --git a/src/views/basicData/Warehouse/components/CurrentTaskInfo.vue b/src/views/basicData/Warehouse/components/CurrentTaskInfo.vue new file mode 100644 index 0000000..d5b9c5f --- /dev/null +++ b/src/views/basicData/Warehouse/components/CurrentTaskInfo.vue @@ -0,0 +1,178 @@ + + + + diff --git a/src/views/basicData/Warehouse/components/HistoricalTaskInfo.vue b/src/views/basicData/Warehouse/components/HistoricalTaskInfo.vue new file mode 100644 index 0000000..8eaae5d --- /dev/null +++ b/src/views/basicData/Warehouse/components/HistoricalTaskInfo.vue @@ -0,0 +1,194 @@ + + + + diff --git a/src/views/basicData/Warehouse/components/StorageBoxInfoDetail.vue b/src/views/basicData/Warehouse/components/StorageBoxInfoDetail.vue new file mode 100644 index 0000000..6b2fe70 --- /dev/null +++ b/src/views/basicData/Warehouse/components/StorageBoxInfoDetail.vue @@ -0,0 +1,125 @@ + + + + diff --git a/src/views/basicData/Warehouse/components/StorageBoxRack-add.vue b/src/views/basicData/Warehouse/components/StorageBoxRack-add.vue new file mode 100644 index 0000000..6b2fe70 --- /dev/null +++ b/src/views/basicData/Warehouse/components/StorageBoxRack-add.vue @@ -0,0 +1,125 @@ + + + + diff --git a/src/views/orderManage/ExecutionInfo.vue b/src/views/orderManage/ExecutionInfo.vue new file mode 100644 index 0000000..e316aab --- /dev/null +++ b/src/views/orderManage/ExecutionInfo.vue @@ -0,0 +1,7 @@ + diff --git a/src/views/orderManage/ProcessInfo.vue b/src/views/orderManage/ProcessInfo.vue new file mode 100644 index 0000000..1a9482e --- /dev/null +++ b/src/views/orderManage/ProcessInfo.vue @@ -0,0 +1,7 @@ +