From 85f5ff795f5b4ac6cb4c94a3ee431a8d9eb38825 Mon Sep 17 00:00:00 2001 From: wanghao Date: Thu, 11 Dec 2025 11:31:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E7=89=A9=E6=96=99=E8=B0=83?= =?UTF-8?q?=E6=8B=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/materialTransferBills/index.ts | 76 +++ src/api/wms/materialTransferBills/types.ts | 131 +++++ src/api/wms/materialTransferRecord/index.ts | 16 +- src/views/wms/materialTransferBills/index.vue | 474 ++++++++++++++++++ .../wms/materialTransferRecord/index.vue | 18 +- 5 files changed, 698 insertions(+), 17 deletions(-) create mode 100644 src/api/wms/materialTransferBills/index.ts create mode 100644 src/api/wms/materialTransferBills/types.ts create mode 100644 src/views/wms/materialTransferBills/index.vue diff --git a/src/api/wms/materialTransferBills/index.ts b/src/api/wms/materialTransferBills/index.ts new file mode 100644 index 0000000..4bbed5b --- /dev/null +++ b/src/api/wms/materialTransferBills/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MaterialTransferBillsVO, MaterialTransferBillsForm, MaterialTransferBillsQuery } from '@/api/wms/materialTransferBills/types'; + +/** + * 查询物料调拨单列表 + * @param query + * @returns {*} + */ + +export const listMaterialTransferBills = (query?: MaterialTransferBillsQuery): AxiosPromise => { + return request({ + url: '/wms/materialTransferBills/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物料调拨单详细 + * @param transferBillsId + */ +export const getMaterialTransferBills = (transferBillsId: string | number): AxiosPromise => { + return request({ + url: '/wms/materialTransferBills/' + transferBillsId, + method: 'get' + }); +}; + +/** + * 新增物料调拨单 + * @param data + */ +export const addMaterialTransferBills = (data: MaterialTransferBillsForm) => { + return request({ + url: '/wms/materialTransferBills', + method: 'post', + data: data + }); +}; + +/** + * 修改物料调拨单 + * @param data + */ +export const updateMaterialTransferBills = (data: MaterialTransferBillsForm) => { + return request({ + url: '/wms/materialTransferBills', + method: 'put', + data: data + }); +}; + +/** + * 删除物料调拨单 + * @param transferBillsId + */ +export const delMaterialTransferBills = (transferBillsId: string | number | Array) => { + return request({ + url: '/wms/materialTransferBills/' + transferBillsId, + method: 'delete' + }); +}; + +/** + * 下拉框查询物料调拨单列表 + * @param query + * @returns {*} + */ +export function getWmsMaterialTransferBillsList (query) { + return request({ + url: '/wms/materialTransferBills/getWmsMaterialTransferBillsList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/materialTransferBills/types.ts b/src/api/wms/materialTransferBills/types.ts new file mode 100644 index 0000000..3655a92 --- /dev/null +++ b/src/api/wms/materialTransferBills/types.ts @@ -0,0 +1,131 @@ +export interface MaterialTransferBillsVO { + /** + * 调拨记录ID + */ + transferBillsId: string | number; + + /** + * 调拨单号 + */ + transferBillsCode: string; + + /** + * 调出仓库 + */ + transferOutStoreId: string | number; + + /** + * 调入仓库 + */ + transferInStoreId: string | number; + + /** + * 状态 + */ + billsStatus: string; + + /** + * 备注 + */ + remark: string; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 删除标志(0代表存在 1代表删除) + */ + delFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface MaterialTransferBillsForm extends BaseEntity { + /** + * 调拨记录ID + */ + transferBillsId?: string | number; + + /** + * 调拨单号 + */ + transferBillsCode?: string; + + /** + * 调出仓库 + */ + transferOutStoreId?: string | number; + + /** + * 调入仓库 + */ + transferInStoreId?: string | number; + + /** + * 状态 + */ + billsStatus?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface MaterialTransferBillsQuery extends PageQuery { + + /** + * 调出仓库 + */ + transferOutStoreId?: string | number; + + /** + * 调入仓库 + */ + transferInStoreId?: string | number; + + /** + * 状态 + */ + billsStatus?: string; + + /** + * 创建时间 + */ + createTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/materialTransferRecord/index.ts b/src/api/wms/materialTransferRecord/index.ts index 285bc53..f20c0c5 100644 --- a/src/api/wms/materialTransferRecord/index.ts +++ b/src/api/wms/materialTransferRecord/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { MaterialTransferRecordVO, MaterialTransferRecordForm, MaterialTransferRecordQuery } from '@/api/wms/materialTransferRecord/types'; +import { MaterialTransferRecordForm, MaterialTransferRecordQuery, MaterialTransferRecordVO } from '@/api/wms/materialTransferRecord/types'; /** * 查询物料调拨列表 @@ -67,10 +67,10 @@ export const delMaterialTransferRecord = (transferRecordId: string | number | Ar * @param query * @returns {*} */ -export function getWmsMaterialTransferRecordList (query) { - return request({ - url: '/wms/materialTransferRecord/getWmsMaterialTransferRecordList', - method: 'get', - params: query - }); -}; +export function getWmsMaterialTransferRecordList(query) { + return request({ + url: '/wms/materialTransferRecord/getWmsMaterialTransferRecordList', + method: 'get', + params: query + }); +} diff --git a/src/views/wms/materialTransferBills/index.vue b/src/views/wms/materialTransferBills/index.vue new file mode 100644 index 0000000..1181035 --- /dev/null +++ b/src/views/wms/materialTransferBills/index.vue @@ -0,0 +1,474 @@ + + + diff --git a/src/views/wms/materialTransferRecord/index.vue b/src/views/wms/materialTransferRecord/index.vue index f07d52d..40b2e80 100644 --- a/src/views/wms/materialTransferRecord/index.vue +++ b/src/views/wms/materialTransferRecord/index.vue @@ -36,9 +36,9 @@