From 487ebd5623d03a9af2e872a3ce43114a7e86500e Mon Sep 17 00:00:00 2001 From: wanghao Date: Thu, 9 Jan 2025 13:58:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/baseLocation/index.ts | 2 +- src/api/wms/outstockRecord/index.ts | 77 ++++++ src/api/wms/outstockRecord/types.ts | 151 ++++++++++++ src/views/wms/baseLocation/index.vue | 4 +- src/views/wms/outstockRecord/index.vue | 323 +++++++++++++++++++++++++ 5 files changed, 554 insertions(+), 3 deletions(-) create mode 100644 src/api/wms/outstockRecord/index.ts create mode 100644 src/api/wms/outstockRecord/types.ts create mode 100644 src/views/wms/outstockRecord/index.vue diff --git a/src/api/wms/baseLocation/index.ts b/src/api/wms/baseLocation/index.ts index 73900af..d7fa1c4 100644 --- a/src/api/wms/baseLocation/index.ts +++ b/src/api/wms/baseLocation/index.ts @@ -74,4 +74,4 @@ export function getBaseLocationList (query) { method: 'get', params: query }); -}; +} diff --git a/src/api/wms/outstockRecord/index.ts b/src/api/wms/outstockRecord/index.ts new file mode 100644 index 0000000..07a222f --- /dev/null +++ b/src/api/wms/outstockRecord/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { OutstockRecordVO, OutstockRecordForm, OutstockRecordQuery } from '@/api/wms/outstockRecord/types'; + +/** + * 查询出库记录列表 + * @param query + * @returns {*} + */ + +export const listOutstockRecord = (query?: OutstockRecordQuery): AxiosPromise => { + return request({ + url: '/wms/outstockRecord/list', + method: 'get', + params: query + }); +}; + +/** + * 查询出库记录详细 + * @param outstockRecordId + */ +export const getOutstockRecord = (outstockRecordId: string | number): AxiosPromise => { + return request({ + url: '/wms/outstockRecord/' + outstockRecordId, + method: 'get' + }); +}; + +/** + * 新增出库记录 + * @param data + */ +export const addOutstockRecord = (data: OutstockRecordForm) => { + return request({ + url: '/wms/outstockRecord', + method: 'post', + data: data + }); +}; + +/** + * 修改出库记录 + * @param data + */ +export const updateOutstockRecord = (data: OutstockRecordForm) => { + return request({ + url: '/wms/outstockRecord', + method: 'put', + data: data + }); +}; + +/** + * 删除出库记录 + * @param outstockRecordId + */ +export const delOutstockRecord = (outstockRecordId: string | number | Array) => { + return request({ + url: '/wms/outstockRecord/' + outstockRecordId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询出库记录列表 + * @param query + * @returns {*} + */ +export function getOutstockRecordList (query) { + return request({ + url: '/wms/outstockRecord/getOutstockRecordList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/outstockRecord/types.ts b/src/api/wms/outstockRecord/types.ts new file mode 100644 index 0000000..8f10770 --- /dev/null +++ b/src/api/wms/outstockRecord/types.ts @@ -0,0 +1,151 @@ +export interface OutstockRecordVO { + /** + * 出库记录主键 + */ + outstockRecordId: string | number; + + /** + * 出库单号 + */ + outstockCode: string; + + /** + * 出库单 主键 + */ + outstockId: string | number; + + /** + * 批次码 + */ + batchCode: string; + + /** + * 物料id + */ + materialId: string | number; + + /** + * 库位编码 + */ + locationCode: string; + + /** + * 出库数量 + */ + outstockQty: number; + + /** + * 物料大类 + */ + materialCategories: string; + + /** + * 出库人 + */ + createBy: string; + + /** + * 提交时间 + */ + createTime: string; + + /** + * erp同步状态 + */ + erpSynchronousStatus: string; + + /** + * erp同步数量 + */ + erpSynchronousQty: number; + +} + +export interface OutstockRecordForm extends BaseEntity { + /** + * 出库记录主键 + */ + outstockRecordId?: string | number; + + /** + * 出库单号 + */ + outstockCode?: string; + + /** + * 出库单 主键 + */ + outstockId?: string | number; + + /** + * 批次码 + */ + batchCode?: string; + + /** + * 物料id + */ + materialId?: string | number; + + /** + * 库位编码 + */ + locationCode?: string; + + /** + * 出库数量 + */ + outstockQty?: number; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * 出库人 + */ + createBy?: string; + + /** + * erp同步状态 + */ + erpSynchronousStatus?: string; + + /** + * erp同步数量 + */ + erpSynchronousQty?: number; + +} + +export interface OutstockRecordQuery extends PageQuery { + + /** + * 出库单号 + */ + outstockCode?: string; + + /** + * 库位编码 + */ + locationCode?: string; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * erp同步状态 + */ + erpSynchronousStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/baseLocation/index.vue b/src/views/wms/baseLocation/index.vue index 25119f1..b11e209 100644 --- a/src/views/wms/baseLocation/index.vue +++ b/src/views/wms/baseLocation/index.vue @@ -55,7 +55,7 @@ - + @@ -155,7 +155,7 @@ const getBaseWarehouseListsss = async () => { }; // 列显隐信息 const columns = ref([ - { key: 0, label: `表主键`, visible: true }, + { key: 0, label: `表主键`, visible: false }, { key: 1, label: `所属仓库`, visible: true }, { key: 2, label: `库位编码`, visible: true }, { key: 3, label: `排`, visible: true }, diff --git a/src/views/wms/outstockRecord/index.vue b/src/views/wms/outstockRecord/index.vue new file mode 100644 index 0000000..37b11c8 --- /dev/null +++ b/src/views/wms/outstockRecord/index.vue @@ -0,0 +1,323 @@ + + +