From 4d0a0bdfa49f78aa3a9d67ec296f2e83d054a7fe Mon Sep 17 00:00:00 2001 From: "zangch@mesnac.com" Date: Fri, 5 Sep 2025 15:04:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E6=B7=BB=E5=8A=A0=E8=B0=83?= =?UTF-8?q?=E6=8B=A8=E5=B7=A5=E5=8D=95=E5=AE=A1=E6=89=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增调拨工单审批 API 接口 - 实现调拨工单审批的前端页面和逻辑 - 增加审批状态和意见的字段 - 优化父表格的审批按钮显示逻辑 --- src/api/wms/allocateOrder/types.ts | 9 ++++ src/api/wms/allocateOrderDetail/types.ts | 7 +++ src/api/wms/linkage/index.ts | 9 ++++ src/views/wms/linkage/index.vue | 67 ++++++++++++++++++++++-- 4 files changed, 87 insertions(+), 5 deletions(-) diff --git a/src/api/wms/allocateOrder/types.ts b/src/api/wms/allocateOrder/types.ts index 745f7dc..d89e0aa 100644 --- a/src/api/wms/allocateOrder/types.ts +++ b/src/api/wms/allocateOrder/types.ts @@ -81,6 +81,9 @@ export interface AllocateOrderVO { */ allocateReason: string; + planWarehouseName?: string; + targetWarehouseName?: string; + } export interface AllocateOrderForm extends BaseEntity { @@ -166,6 +169,9 @@ export interface AllocateOrderForm extends BaseEntity { */ allocateReason?: string; + planWarehouseName?: string; + targetWarehouseName?: string; + } export interface AllocateOrderQuery extends PageQuery { @@ -252,6 +258,9 @@ export interface AllocateOrderQuery extends PageQuery { */ allocateReason?: string; + planWarehouseName?: string; + targetWarehouseName?: string; + /** * 日期范围参数 */ diff --git a/src/api/wms/allocateOrderDetail/types.ts b/src/api/wms/allocateOrderDetail/types.ts index 76e9516..de05799 100644 --- a/src/api/wms/allocateOrderDetail/types.ts +++ b/src/api/wms/allocateOrderDetail/types.ts @@ -29,6 +29,9 @@ export interface AllocateOrderDetailVO { */ erpSynchronousQty: number; + + materialName: string; + } export interface AllocateOrderDetailForm extends BaseEntity { @@ -92,6 +95,8 @@ export interface AllocateOrderDetailForm extends BaseEntity { */ erpSynchronousQty?: number; + + } export interface AllocateOrderDetailQuery extends PageQuery { @@ -126,6 +131,8 @@ export interface AllocateOrderDetailQuery extends PageQuery { */ erpSynchronousQty?: number; + materialName?: string; + /** * 日期范围参数 */ diff --git a/src/api/wms/linkage/index.ts b/src/api/wms/linkage/index.ts index cf48c3c..3685b36 100644 --- a/src/api/wms/linkage/index.ts +++ b/src/api/wms/linkage/index.ts @@ -147,3 +147,12 @@ export const deleteTasksByDetailId = (aoDId) => { method: 'delete' }); }; + +// 调拨工单审批 +export const approveAllocateOrder = (data) => { + return request({ + url: '/wms/allocateOrder/approveAllocateOrder', + method: 'put', + data: data + }); +}; diff --git a/src/views/wms/linkage/index.vue b/src/views/wms/linkage/index.vue index 5e7967d..dc98dd3 100644 --- a/src/views/wms/linkage/index.vue +++ b/src/views/wms/linkage/index.vue @@ -85,8 +85,7 @@ - - 审批 + 审批 + + + + + {{ dict.label }} + + + + + + + + + +