From 80cd8b33bed0357e4db819edf068c57f03a4a28d Mon Sep 17 00:00:00 2001 From: wanghao Date: Wed, 12 Nov 2025 10:02:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=89=A9=E6=96=99=E8=A1=A8=E5=90=8E=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E3=80=81=E5=BA=93=E5=AD=98=E7=AD=89=E5=8A=9F=E8=83=BD=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/inStockBill/types.ts | 2 + src/api/wms/inventoryDetails/index.ts | 7 + src/api/wms/inventoryDetails/types.ts | 14 +- src/api/wms/warehouseInfo/types.ts | 1 + src/api/wms/wmsBaseProduct/index.ts | 76 +++++ src/api/wms/wmsBaseProduct/types.ts | 154 +++++++++ src/components/ProductSelect/index.vue | 265 +++++++++++++++ src/views/wms/inStockBill/index.vue | 168 +++++---- src/views/wms/inventoryDetails/index.vue | 28 +- src/views/wms/inventoryDetails/indexCount.vue | 198 +++++++++++ src/views/wms/warehouseInfo/index.vue | 24 +- src/views/wms/wmsBaseProduct/index.vue | 318 ++++++++++++++++++ 12 files changed, 1175 insertions(+), 80 deletions(-) create mode 100644 src/api/wms/wmsBaseProduct/index.ts create mode 100644 src/api/wms/wmsBaseProduct/types.ts create mode 100644 src/components/ProductSelect/index.vue create mode 100644 src/views/wms/inventoryDetails/indexCount.vue create mode 100644 src/views/wms/wmsBaseProduct/index.vue diff --git a/src/api/wms/inStockBill/types.ts b/src/api/wms/inStockBill/types.ts index 0e04ee0..df71cad 100644 --- a/src/api/wms/inStockBill/types.ts +++ b/src/api/wms/inStockBill/types.ts @@ -53,6 +53,7 @@ export interface InStockBillVO { * 流程状态 */ flowStatus: string; + wmsStoreType: string; /** * 仓库ID(预留) @@ -85,6 +86,7 @@ export interface InStockBillForm extends BaseEntity { * 入库单号 */ inStockCode?: string; + wmsStoreType?: string; /** * 入库单类型 diff --git a/src/api/wms/inventoryDetails/index.ts b/src/api/wms/inventoryDetails/index.ts index d06c637..b5d935f 100644 --- a/src/api/wms/inventoryDetails/index.ts +++ b/src/api/wms/inventoryDetails/index.ts @@ -15,6 +15,13 @@ export const listInventoryDetails = (query?: InventoryDetailsQuery): AxiosPromis params: query }); }; +export const listCountQuery = (query?: InventoryDetailsQuery): AxiosPromise => { + return request({ + url: '/wms/inventoryDetails/listCount', + method: 'get', + params: query + }); +}; /** * 查询库存明细详细 diff --git a/src/api/wms/inventoryDetails/types.ts b/src/api/wms/inventoryDetails/types.ts index e341c3c..c633202 100644 --- a/src/api/wms/inventoryDetails/types.ts +++ b/src/api/wms/inventoryDetails/types.ts @@ -28,12 +28,17 @@ export interface InventoryDetailsVO { * 库存数量 */ inventoryAmount: number; + /** + * 单价 + */ + unitPrice: number; /** * 锁定数量 */ lockedAmount: number; - + productCode?: string; + productName?: string; /** * 备注 */ @@ -62,7 +67,7 @@ export interface InventoryDetailsForm extends BaseEntity { * 库存ID */ inventoryDetailsId?: string | number; - + unitPrice: number; /** * 库位编码 */ @@ -92,7 +97,8 @@ export interface InventoryDetailsForm extends BaseEntity { * 锁定数量 */ lockedAmount?: number; - + productCode?: string; + productName?: string; /** * 备注 */ @@ -104,6 +110,8 @@ export interface InventoryDetailsQuery extends PageQuery { * 库位编码 */ locationCode?: string; + productCode?: string; + productName?: string; /** * 仓库ID diff --git a/src/api/wms/warehouseInfo/types.ts b/src/api/wms/warehouseInfo/types.ts index 5ee8298..bda574f 100644 --- a/src/api/wms/warehouseInfo/types.ts +++ b/src/api/wms/warehouseInfo/types.ts @@ -84,6 +84,7 @@ export interface WarehouseInfoForm extends BaseEntity { * 仓库编码 */ warehouseCode?: string; + wmsStoreType?: string; /** * 仓库名称 diff --git a/src/api/wms/wmsBaseProduct/index.ts b/src/api/wms/wmsBaseProduct/index.ts new file mode 100644 index 0000000..50cae91 --- /dev/null +++ b/src/api/wms/wmsBaseProduct/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsBaseProductForm, WmsBaseProductQuery, WmsBaseProductVO } from '@/api/wms/wmsBaseProduct/types'; + +/** + * 查询海威成品信息列表 + * @param query + * @returns {*} + */ + +export const listWmsBaseProduct = (query?: WmsBaseProductQuery): AxiosPromise => { + return request({ + url: '/wms/wmsBaseProduct/list', + method: 'get', + params: query + }); +}; + +/** + * 查询海威成品信息详细 + * @param productId + */ +export const getWmsBaseProduct = (productId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsBaseProduct/' + productId, + method: 'get' + }); +}; + +/** + * 新增海威成品信息 + * @param data + */ +export const addWmsBaseProduct = (data: WmsBaseProductForm) => { + return request({ + url: '/wms/wmsBaseProduct', + method: 'post', + data: data + }); +}; + +/** + * 修改海威成品信息 + * @param data + */ +export const updateWmsBaseProduct = (data: WmsBaseProductForm) => { + return request({ + url: '/wms/wmsBaseProduct', + method: 'put', + data: data + }); +}; + +/** + * 删除海威成品信息 + * @param productId + */ +export const delWmsBaseProduct = (productId: string | number | Array) => { + return request({ + url: '/wms/wmsBaseProduct/' + productId, + method: 'delete' + }); +}; + +/** + * 下拉框查询海威成品信息列表 + * @param query + * @returns {*} + */ +export function getWmsBaseProductList(query) { + return request({ + url: '/wms/wmsBaseProduct/getWmsBaseProductList', + method: 'get', + params: query + }); +} diff --git a/src/api/wms/wmsBaseProduct/types.ts b/src/api/wms/wmsBaseProduct/types.ts new file mode 100644 index 0000000..dfd6f70 --- /dev/null +++ b/src/api/wms/wmsBaseProduct/types.ts @@ -0,0 +1,154 @@ +export interface WmsBaseProductVO { + /** + * 物料ID + */ + productId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 成品编码 + */ + productCode: string; + + /** + * 成品名称 + */ + productName: string; + + /** + * 成品描述 + */ + productSpe: string; + + /** + * 单位 + */ + unitId: string | number; + + /** + * 参考成本 + */ + purchasePrice: number; + + /** + * 统一报价(参考) + */ + foreignPrice: number; + + /** + * 备货期(天) + */ + stockingPeriod: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + externalBrand: string; + +} + +export interface WmsBaseProductForm extends BaseEntity { + /** + * 物料ID + */ + productId?: string | number; + + /** + * 成品编码 + */ + productCode?: string; + externalBrand?: string; + + /** + * 成品名称 + */ + productName?: string; + + /** + * 成品描述 + */ + productSpe?: string; + + /** + * 单位 + */ + unitId?: string | number; + + /** + * 参考成本 + */ + purchasePrice?: number; + + /** + * 统一报价(参考) + */ + foreignPrice?: number; + + /** + * 备货期(天) + */ + stockingPeriod?: number; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + +} + +export interface WmsBaseProductQuery extends PageQuery { + + /** + * 成品编码 + */ + productCode?: string; + + /** + * 成品名称 + */ + productName?: string; + externalBrand?: string; + + /** + * 激活标识(1是 0否) + */ + activeFlag?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/components/ProductSelect/index.vue b/src/components/ProductSelect/index.vue new file mode 100644 index 0000000..8f3d1d3 --- /dev/null +++ b/src/components/ProductSelect/index.vue @@ -0,0 +1,265 @@ + + + diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue index e29325f..62853c2 100644 --- a/src/views/wms/inStockBill/index.vue +++ b/src/views/wms/inStockBill/index.vue @@ -15,14 +15,14 @@ - - - - - - - - + + + + + + + + @@ -105,16 +105,16 @@ - - - - - - + + + + + + + + + +