From ffef49a0801cbef56aa10a767eddd3b860e035ae Mon Sep 17 00:00:00 2001 From: "maxw@mesnac.com" Date: Fri, 10 Jan 2025 11:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=AD=90=E8=A1=A8=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/allocateOrder/index.ts | 63 +++ src/api/wms/allocateOrder/types.ts | 241 ++++++++ src/api/wms/allocateOrderDetail/index.ts | 63 +++ src/api/wms/allocateOrderDetail/types.ts | 106 ++++ src/router/index.ts | 20 +- src/views/wms/allocateOrder/index copy.vue | 528 ++++++++++++++++++ src/views/wms/allocateOrder/index.vue | 528 ++++++++++++++++++ src/views/wms/allocateOrderDetail/index.vue | 290 ++++++++++ .../wms/allocateOrderDetail/indexbackuo.vue | 406 ++++++++++++++ src/views/wms/outstockRecord/index.vue | 58 +- src/views/wms/returnOrder/index.vue | 4 +- 11 files changed, 2287 insertions(+), 20 deletions(-) create mode 100644 src/api/wms/allocateOrder/index.ts create mode 100644 src/api/wms/allocateOrder/types.ts create mode 100644 src/api/wms/allocateOrderDetail/index.ts create mode 100644 src/api/wms/allocateOrderDetail/types.ts create mode 100644 src/views/wms/allocateOrder/index copy.vue create mode 100644 src/views/wms/allocateOrder/index.vue create mode 100644 src/views/wms/allocateOrderDetail/index.vue create mode 100644 src/views/wms/allocateOrderDetail/indexbackuo.vue diff --git a/src/api/wms/allocateOrder/index.ts b/src/api/wms/allocateOrder/index.ts new file mode 100644 index 0000000..1176904 --- /dev/null +++ b/src/api/wms/allocateOrder/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { AllocateOrderVO, AllocateOrderForm, AllocateOrderQuery } from '@/api/wms/allocateOrder/types'; + +/** + * 查询调拨工单列表 + * @param query + * @returns {*} + */ + +export const listAllocateOrder = (query?: AllocateOrderQuery): AxiosPromise => { + return request({ + url: '/wms/allocateOrder/list', + method: 'get', + params: query + }); +}; + +/** + * 查询调拨工单详细 + * @param aoId + */ +export const getAllocateOrder = (aoId: string | number): AxiosPromise => { + return request({ + url: '/wms/allocateOrder/' + aoId, + method: 'get' + }); +}; + +/** + * 新增调拨工单 + * @param data + */ +export const addAllocateOrder = (data: AllocateOrderForm) => { + return request({ + url: '/wms/allocateOrder', + method: 'post', + data: data + }); +}; + +/** + * 修改调拨工单 + * @param data + */ +export const updateAllocateOrder = (data: AllocateOrderForm) => { + return request({ + url: '/wms/allocateOrder', + method: 'put', + data: data + }); +}; + +/** + * 删除调拨工单 + * @param aoId + */ +export const delAllocateOrder = (aoId: string | number | Array) => { + return request({ + url: '/wms/allocateOrder/' + aoId, + method: 'delete' + }); +}; diff --git a/src/api/wms/allocateOrder/types.ts b/src/api/wms/allocateOrder/types.ts new file mode 100644 index 0000000..ec1592a --- /dev/null +++ b/src/api/wms/allocateOrder/types.ts @@ -0,0 +1,241 @@ +export interface AllocateOrderVO { + /** + * 表主键 + */ + aoId: string | number; + + /** + * 调拨单号 + */ + allocateOrderCode: string; + + /** + * 物料大类 + */ + materialCategories: string; + + /** + * 出库仓库ID + */ + planWarehouseId: string | number; + + /** + * 工单状态 + */ + orderStatus: string; + + /** + * 入库仓库ID + */ + targetWarehouseId: string | number; + + /** + * 审核人 + */ + auditBy: string; + + /** + * 审核时间 + */ + auditTime: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus: string; + + /** + * 审核意见 + */ + auditComments: string; + + /** + * 是否创建出库单 + */ + createOut: string; + + /** + * 出库单号 + */ + outCode: string; + + /** + * 是否创建入库单 + */ + createIn: string; + + /** + * 入库单号 + */ + inCode: string; + + /** + * 入库方式 + */ + inMethod: string; + +} + +export interface AllocateOrderForm extends BaseEntity { + /** + * 表主键 + */ + aoId?: string | number; + + /** + * 调拨单号 + */ + allocateOrderCode?: string; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * 出库仓库ID + */ + planWarehouseId?: string | number; + + /** + * 工单状态 + */ + orderStatus?: string; + + /** + * 入库仓库ID + */ + targetWarehouseId?: string | number; + + /** + * 审核人 + */ + auditBy?: string; + + /** + * 审核时间 + */ + auditTime?: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus?: string; + + /** + * 审核意见 + */ + auditComments?: string; + + /** + * 是否创建出库单 + */ + createOut?: string; + + /** + * 出库单号 + */ + outCode?: string; + + /** + * 是否创建入库单 + */ + createIn?: string; + + /** + * 入库单号 + */ + inCode?: string; + + /** + * 入库方式 + */ + inMethod?: string; + +} + +export interface AllocateOrderQuery extends PageQuery { + + /** + * 表主键 + */ + aoId?: string | number; + + /** + * 调拨单号 + */ + allocateOrderCode?: string; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * 出库仓库ID + */ + planWarehouseId?: string | number; + + /** + * 工单状态 + */ + orderStatus?: string; + + /** + * 入库仓库ID + */ + targetWarehouseId?: string | number; + + /** + * 审核人 + */ + auditBy?: string; + + /** + * 审核时间 + */ + auditTime?: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus?: string; + + /** + * 审核意见 + */ + auditComments?: string; + + /** + * 是否创建出库单 + */ + createOut?: string; + + /** + * 出库单号 + */ + outCode?: string; + + /** + * 是否创建入库单 + */ + createIn?: string; + + /** + * 入库单号 + */ + inCode?: string; + + /** + * 入库方式 + */ + inMethod?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/allocateOrderDetail/index.ts b/src/api/wms/allocateOrderDetail/index.ts new file mode 100644 index 0000000..07ea46d --- /dev/null +++ b/src/api/wms/allocateOrderDetail/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { AllocateOrderDetailVO, AllocateOrderDetailForm, AllocateOrderDetailQuery } from '@/api/wms/allocateOrderDetail/types'; + +/** + * 查询调拨子列表 + * @param query + * @returns {*} + */ + +export const listAllocateOrderDetail = (query?: AllocateOrderDetailQuery): AxiosPromise => { + return request({ + url: '/wms/allocateOrderDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询调拨子详细 + * @param aoDId + */ +export const getAllocateOrderDetail = (aoDId: string | number): AxiosPromise => { + return request({ + url: '/wms/allocateOrderDetail/' + aoDId, + method: 'get' + }); +}; + +/** + * 新增调拨子 + * @param data + */ +export const addAllocateOrderDetail = (data: AllocateOrderDetailForm) => { + return request({ + url: '/wms/allocateOrderDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改调拨子 + * @param data + */ +export const updateAllocateOrderDetail = (data: AllocateOrderDetailForm) => { + return request({ + url: '/wms/allocateOrderDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除调拨子 + * @param aoDId + */ +export const delAllocateOrderDetail = (aoDId: string | number | Array) => { + return request({ + url: '/wms/allocateOrderDetail/' + aoDId, + method: 'delete' + }); +}; diff --git a/src/api/wms/allocateOrderDetail/types.ts b/src/api/wms/allocateOrderDetail/types.ts new file mode 100644 index 0000000..2d66d80 --- /dev/null +++ b/src/api/wms/allocateOrderDetail/types.ts @@ -0,0 +1,106 @@ +export interface AllocateOrderDetailVO { + /** + * 调拨子表主键 + */ + aoDId: string | number; + + /** + * 调拨单号 + */ + allocateCode: string; + + /** + * 物料id + */ + materialId: string | number; + + /** + * 调拨数量 + */ + allocateOrderQty: number; + + /** + * erp同步状态 + */ + erpSynchronousStatus: string; + + /** + * erp同步数量 + */ + erpSynchronousQty: number; + +} + +export interface AllocateOrderDetailForm extends BaseEntity { + /** + * 调拨子表主键 + */ + aoDId?: string | number; + + /** + * 调拨单号 + */ + allocateCode?: string; + + /** + * 物料id + */ + materialId?: string | number; + + /** + * 调拨数量 + */ + allocateOrderQty?: number; + + /** + * erp同步状态 + */ + erpSynchronousStatus?: string; + + /** + * erp同步数量 + */ + erpSynchronousQty?: number; + +} + +export interface AllocateOrderDetailQuery extends PageQuery { + + /** + * 调拨子表主键 + */ + aoDId?: string | number; + + /** + * 调拨单号 + */ + allocateCode?: string; + + /** + * 物料id + */ + materialId?: string | number; + + /** + * 调拨数量 + */ + allocateOrderQty?: number; + + /** + * erp同步状态 + */ + erpSynchronousStatus?: string; + + /** + * erp同步数量 + */ + erpSynchronousQty?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/router/index.ts b/src/router/index.ts index 3be4435..8d61065 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -84,7 +84,22 @@ export const constantRoutes: RouteRecordRaw[] = [ path: 'instockDetail', component: () => import('@/views/wms/instockDetail/index.vue'), name: 'instockDetail', - meta: { title: '入库明细', icon: 'dashboard', affix: true } + meta: { title: '入库明细', icon: 'dashboard', affix: true }, + hidden: true + } + ] + }, + { + path: '/wms', + component: Layout, + redirect: '/index', + children: [ + { + path: 'allocateOrderDetail', + component: () => import('@/views/wms/allocateOrderDetail/index.vue'), + name: 'allocateOrderDetail', + meta: { title: '调拨单明细', icon: 'dashboard', affix: true }, + hidden: true } ] }, @@ -97,7 +112,8 @@ export const constantRoutes: RouteRecordRaw[] = [ path: 'outStockDetail', component: () => import('@/views/wms/outstockDetail/index.vue'), name: 'outstockDetail', - meta: { title: '出库明细', icon: 'dashboard', affix: true } + meta: { title: '出库明细', icon: 'dashboard', affix: true }, + hidden: true } ] }, diff --git a/src/views/wms/allocateOrder/index copy.vue b/src/views/wms/allocateOrder/index copy.vue new file mode 100644 index 0000000..d3055ab --- /dev/null +++ b/src/views/wms/allocateOrder/index copy.vue @@ -0,0 +1,528 @@ + + + diff --git a/src/views/wms/allocateOrder/index.vue b/src/views/wms/allocateOrder/index.vue new file mode 100644 index 0000000..d3055ab --- /dev/null +++ b/src/views/wms/allocateOrder/index.vue @@ -0,0 +1,528 @@ + + + diff --git a/src/views/wms/allocateOrderDetail/index.vue b/src/views/wms/allocateOrderDetail/index.vue new file mode 100644 index 0000000..15b7306 --- /dev/null +++ b/src/views/wms/allocateOrderDetail/index.vue @@ -0,0 +1,290 @@ + + + diff --git a/src/views/wms/allocateOrderDetail/indexbackuo.vue b/src/views/wms/allocateOrderDetail/indexbackuo.vue new file mode 100644 index 0000000..8f49691 --- /dev/null +++ b/src/views/wms/allocateOrderDetail/indexbackuo.vue @@ -0,0 +1,406 @@ + + + diff --git a/src/views/wms/outstockRecord/index.vue b/src/views/wms/outstockRecord/index.vue index 37b11c8..13a26b9 100644 --- a/src/views/wms/outstockRecord/index.vue +++ b/src/views/wms/outstockRecord/index.vue @@ -71,6 +71,11 @@ {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }} + + + @@ -98,48 +110,48 @@ - + - - - - + - + - + - + + + + - + + disabled="returnFlag"> - + - + + > - +