diff --git a/src/api/handlingunit/handlingunit.js b/src/api/handlingunit/handlingunit.js new file mode 100644 index 0000000..7da5cb1 --- /dev/null +++ b/src/api/handlingunit/handlingunit.js @@ -0,0 +1,31 @@ +import { createAPI } from "@/utils/httpRequest.js"; + +// 查询处理单元列表 +export const getHandlingUnitList = data => createAPI(`handlingunit/getHandlingUnitList`,'post',data) + +// 查询处理单元详情 +export const getHandlingUnitDetail = data => createAPI(`handlingunit/getHandlingUnitDetail`,'post',data) + +// 装Handling Unit(托盘/箱) +export const packHandlingUnit = data => createAPI(`handlingunit/packHandlingUnit`,'post',data) + +// 合并Handling Unit(托盘/箱) +export const mergeHandlingUnit = data => createAPI(`handlingunit/mergeHandlingUnit`,'post',data) + +// 拆Handling Unit(托盘/箱) +export const unpackHandlingUnit = data => createAPI(`handlingunit/unpackHandlingUnit`,'post',data) + +// 立库下的合托 +export const mergePallets = data => createAPI(`handlingunit/mergePallets`,'post',data) + +// 补打印Handling Unit(托盘/箱)标签 +export const reprintLabels = data => createAPI(`handlingunit/reprintLabels`,'post',data) + +// 查看Handling Unit(托盘/箱)货物 +export const viewHandlingUnitGoods = data => createAPI(`handlingunit/viewHandlingUnitGoods`,'post',data) + +// 查询可装箱的单元 +export const getAvailableUnitsForPacking = data => createAPI(`handlingunit/getAvailableUnitsForPacking`,'post',data) + +// 查询可合并的单元 +export const getAvailableUnitsForMerge = data => createAPI(`handlingunit/getAvailableUnitsForMerge`,'post',data) diff --git a/src/api/po/po.js b/src/api/po/po.js index 6fca71e..c38f09a 100644 --- a/src/api/po/po.js +++ b/src/api/po/po.js @@ -6,3 +6,13 @@ export const getPoList = data => createAPI(`po/getPoList`,'post',data) // 接收采购单信息 export const receivePo = data => createAPI(`po/receivePo`,'post',data) + + +// 获取待检验入库单列表 +export const getQualifiedInspectionList = data => createAPI(`inspection/getQualifiedInspectionList`,'post',data) + +// 检验合格入库 +export const confirmQualifiedInbound = data => createAPI(`inspection/confirmQualifiedInbound`,'post',data) + +// 获取检验历史记录 +export const getInboundHistory = data => createAPI(`inspection/getInboundHistory`,'post',data) diff --git a/src/api/production/production-issue.js b/src/api/production/production-issue.js new file mode 100644 index 0000000..3082b6a --- /dev/null +++ b/src/api/production/production-issue.js @@ -0,0 +1,28 @@ + +import { createAPI } from "@/utils/httpRequest.js"; + +// 查询处理单元列表 +export const getWorkOrderMaterials = data => createAPI(`/pda/production/issue/getWorkOrderMaterials`,'post',data) +// 解析物料标签 +export const parseMaterialLabel = data => createAPI(`/pda/production/issue/parseMaterialLabel`,'post',data) +// 直接发料 +export const directIssue = data => createAPI(`/pda/production/issue/directIssue`,'post',data) +// 获取申请单物料列表 +export const getRequestMaterials = data => createAPI(`/pda/production/issue/getRequestMaterials`,'post',data) +// 基于申请单发料 +export const requestIssue = data => createAPI(`/pda/production/issue/requestIssue`,'post',data) +// 创建拣选托盘 +export const createPickingPallet = data => createAPI(`/pda/production/issue/createPickingPallet`,'post',data) +// 绑定处理单元到托盘 +export const bindUnitsToPallet = data => createAPI(`/pda/production/issue/bindUnitsToPallet`,'post',data) +// 打印托盘标签 +export const printPalletLabel = data => createAPI(`/pda/production/issue/printPalletLabel`,'post',data) +// 获取托盘信息 +export const getPalletInfo = data => createAPI(`/pda/production/issue/getPalletInfo`,'post',data) +// 获取发料历史记录 +export const getIssueHistory = data => createAPI(`/pda/production/issue/getIssueHistory`,'post',data) +// 验证工单状态 +export const validateWorkOrder = data => createAPI(`/pda/production/issue/validateWorkOrder`,'post',data) +// 验证申请单状态 +export const validateNotify = data => createAPI(`/pda/production/issue/validateNotify`,'post',data) + diff --git a/src/router/index.js b/src/router/index.js index 4120e7e..4f313a3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,9 +32,9 @@ const globalRoutes = [ // V1 // handlingunit - {path: "/handlingunit",name: "handlingunit", component: resolve => require(["@/views/modules/handling-unit/index.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}}, + {path: "/handlingunit",name: "handlingunit", component: resolve => require(["@/views/modules/handling-unit/handling-unit-management.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}}, // 生产发料 - {path: "/productionissue",name: "productionissue", component: resolve => require(["@/views/modules/production-issue/index.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}}, + {path: "/productionissue",name: "productionissue", component: resolve => require(["@/views/modules/production-issue/production-issue-pda.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}}, {path: '/production-issue/pick/:orderNo', name: 'ProductionIssuePick',component: resolve => require(["@/views/modules/production-issue/pick.vue"], resolve), meta: { transition: 'instant' ,preload: true,keepAlive: true}}, diff --git a/src/views/modules/handling-unit/handling-unit-management.vue b/src/views/modules/handling-unit/handling-unit-management.vue new file mode 100644 index 0000000..af2bcf2 --- /dev/null +++ b/src/views/modules/handling-unit/handling-unit-management.vue @@ -0,0 +1,1196 @@ + + + + + 上一页 + 处理单元管理 + 🏠首页 + + + + + + + + + 装Handling Unit + + + + 合并Handling Unit + + + + 拆Handling Unit + + + + 立库合托 + + + + 补打印标签 + + + + 查看货物 + + + + + + + + + + + + 待装箱单元列表 ({{ packForm.childUnitIds.length }}个) + + {{ unitId }} + 移除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 返回 + + + + + + 确认装箱 + + + + + + 重置 + + + + + + + + + + + + + + 待合并单元列表 ({{ mergeForm.sourceUnitIds.length }}个) + + {{ unitId }} + 移除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 返回 + + + + + + 确认合并 + + + + + + 重置 + + + + + + + + + + + + + + 拆包单元信息 + + + + {{ unpackUnit.unitId }} + + + {{ unpackUnit.unitType }} + + + {{ unpackUnit.partNo }} + + + {{ unpackUnit.qty }} + + + + {{ unpackUnit.childrenCount || 0 }} + + + + + + + + + + + + + 选择"是"将保留容器单元,选择"否"将删除容器单元 + + + + + + + + + + + + + 返回 + + + + + + 确认拆包 + + + + + + 重置 + + + + + + + + + + + + + + 待合托单元列表 ({{ palletMergeForm.sourceUnitIds.length }}个) + + {{ unitId }} + 移除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 返回 + + + + + + 确认合托 + + + + + + 重置 + + + + + + + + + + + + + + 待打印单元列表 ({{ printForm.unitIds.length }}个) + + {{ unitId }} + 移除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 返回 + + + + + + 开始打印 + + + + + + 重置 + + + + + + + + + + + + + + + + + 处理单元货物详情 + + + + + + {{ currentViewUnit.unitId }} + + + + + {{ currentViewUnit.unitType }} + + + + + {{ currentViewUnit.partNo }} + + + + + {{ currentViewUnit.qty }} + + + + + {{ currentViewUnit.batchNo }} + + + + + {{ currentViewUnit.locationId }} + + + + + {{ getStatusText(currentViewUnit.statusDb) }} + + + + + {{ currentViewUnit.printCount || 0 }} + + + + + + + + + 共 {{ currentViewUnit.children.length }} 个子单元 + + + + + {{ child.unitId }} + + {{ child.partNo }} + 数量: {{ child.qty }} + + 批次: {{ child.batchNo }} + + + + + + + + + + + + + 共 {{ currentViewUnit.details.length }} 条明细 + + + + + {{ detail.partNo }} + 批次: {{ detail.batchNo }} + 数量: {{ detail.qty }} + + + + + + + + + + 返回主菜单 + 打印标签 + 刷新 + + + + + + + + 请扫描处理单元ID查看货物详情 + + + + + + + + + + diff --git a/src/views/modules/production-issue/production-issue-pda.vue b/src/views/modules/production-issue/production-issue-pda.vue new file mode 100644 index 0000000..b07cf8b --- /dev/null +++ b/src/views/modules/production-issue/production-issue-pda.vue @@ -0,0 +1,1166 @@ + + + + + + + 📦 + 直接发料 + 输入工单号,扫描物料标签直接发料 + + + + 🏗️ + 拣选装托盘 + 基于申请单创建托盘,扫描箱卷绑定 + + + + 📋 + 申请单发料 + 基于申请单扫描物料标签发料 + + + + + + + ← 返回 + 直接发料 + + + + + + 工单号 + + + 确认 + + + + + + + + 工单物料 ({{ directIssueForm.workOrderNo }}) + 重新选择 + + + + + + {{ material.partNo }} + {{ material.partDesc }} + + 需求: {{ material.requiredQty }} | + 已发: {{ material.issuedQty }} | + 剩余: {{ material.remainQty }} + + + + 待发料 + 已完成 + + + + + + + + + 扫描物料标签 + + + + 物料标签 + + + 解析 + + + + + + + 物料编码: + {{ labelInfo.partNo }} + + + 物料描述: + {{ labelInfo.partDesc }} + + + 批次号: + {{ labelInfo.batchNo }} + + + 库位: + {{ labelInfo.locationId }} + + + 可用数量: + {{ labelInfo.availableQty }} + + + + + + + 发料数量 + + + + + 备注 + + + + + 确认发料 + + + + + + + + + ← 返回 + 拣选装托盘 + + + + + + 申请单号 + + + 创建托盘 + + + + + + + + 托盘信息 + + + + + 托盘ID: + {{ currentPallet.palletId }} + + + 申请单号: + {{ currentPallet.notifyNo }} + + + 已绑定单元: + {{ currentPallet.unitCount || 0 }} + + + + + + + 扫描箱/卷 + + + 绑定 + + + + + + + + 已绑定单元 ({{ currentPallet.scannedUnits.length }}) + + + + {{ unit }} + + + + + + + + 打印机 + + 请选择打印机 + 打印机01 + 打印机02 + + + + + 打印托盘标签 + + + + + + + + + ← 返回 + 申请单发料 + + + + + + 申请单号 + + + 确认 + + + + + + + + 申请单物料 ({{ requestIssueForm.notifyNo }}) + 重新选择 + + + + + + {{ material.partNo }} + {{ material.partDesc }} + 工单: {{ material.workOrderNo }} + + 申请: {{ material.requestQty }} | + 已发: {{ material.issuedQty }} | + 剩余: {{ material.remainQty }} + + + + 待发料 + 已完成 + + + + + + + + + 扫描物料标签 + + + + 物料标签 + + + 解析 + + + + + + + 物料编码: + {{ labelInfo.partNo }} + + + 批次号: + {{ labelInfo.batchNo }} + + + 可用数量: + {{ labelInfo.availableQty }} + + + + + 发料数量 + + + + + 备注 + + + + + 确认发料 (同步IFS) + + + + + + + + + + {{ loadingText }} + + + + + {{ message }} + + + + + + +