diff --git a/src/api/wms/inventory/detail/index.ts b/src/api/wms/inventory/detail/index.ts new file mode 100644 index 000000000..d34dc613a --- /dev/null +++ b/src/api/wms/inventory/detail/index.ts @@ -0,0 +1,36 @@ +import request from '@/config/axios' + +// WMS 库存明细 VO +export interface InventoryDetailVO { + id?: number + itemId?: number + itemCode?: string + itemName?: string + unit?: string + skuId?: number + skuCode?: string + skuName?: string + warehouseId?: number + warehouseName?: string + areaId?: number + areaName?: string + quantity?: number + remainQuantity?: number + batchNo?: string + productionDate?: Date + expirationDate?: Date + amount?: number + remark?: string + orderId?: number + orderNo?: string + orderType?: number + createTime?: Date +} + +// WMS 库存明细 API +export const InventoryDetailApi = { + // 查询库存明细分页 + getInventoryDetailPage: async (params: any) => { + return await request.get({ url: '/wms/inventory-detail/page', params }) + } +} diff --git a/src/api/wms/inventory/history/index.ts b/src/api/wms/inventory/history/index.ts new file mode 100644 index 000000000..c2db7d786 --- /dev/null +++ b/src/api/wms/inventory/history/index.ts @@ -0,0 +1,37 @@ +import request from '@/config/axios' + +// WMS 库存记录 VO +export interface InventoryHistoryVO { + id?: number + itemId?: number + itemCode?: string + itemName?: string + unit?: string + skuId?: number + skuCode?: string + skuName?: string + warehouseId?: number + warehouseName?: string + areaId?: number + areaName?: string + quantity?: number + beforeQuantity?: number + afterQuantity?: number + batchNo?: string + productionDate?: Date + expirationDate?: Date + amount?: number + remark?: string + orderId?: number + orderNo?: string + orderType?: number + createTime?: Date +} + +// WMS 库存记录 API +export const InventoryHistoryApi = { + // 查询库存记录分页 + getInventoryHistoryPage: async (params: any) => { + return await request.get({ url: '/wms/inventory-history/page', params }) + } +} diff --git a/src/api/wms/inventory/index.ts b/src/api/wms/inventory/index.ts new file mode 100644 index 000000000..3f8d65a6d --- /dev/null +++ b/src/api/wms/inventory/index.ts @@ -0,0 +1,28 @@ +import request from '@/config/axios' + +// WMS 库存统计 VO +export interface InventoryVO { + id?: number + itemId?: number + itemCode?: string + itemName?: string + unit?: string + skuId?: number + skuCode?: string + skuName?: string + warehouseId?: number + warehouseName?: string + areaId?: number + areaName?: string + quantity?: number + remark?: string + createTime?: Date +} + +// WMS 库存统计 API +export const InventoryApi = { + // 查询库存统计分页 + getInventoryPage: async (params: any) => { + return await request.get({ url: '/wms/inventory/page', params }) + } +} diff --git a/src/views/wms/inventory/detail/index.vue b/src/views/wms/inventory/detail/index.vue new file mode 100644 index 000000000..bee68a602 --- /dev/null +++ b/src/views/wms/inventory/detail/index.vue @@ -0,0 +1,374 @@ + + + + + + + + + {{ item.label }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + 重置 + + + + + + + + 库存明细 + + + + + {{ scope.row.warehouseName || '-' }} + + + + + {{ scope.row.areaName || '-' }} + + + + + {{ scope.row.itemName || '-' }} + + 商品编号:{{ scope.row.itemCode }} + + + + + + {{ scope.row.skuName || '-' }} + + 规格编号:{{ scope.row.skuCode }} + + + + + + + + {{ scope.row.itemName || '-' }} + + 商品编号:{{ scope.row.itemCode }} + + + + + + {{ scope.row.skuName || '-' }} + + 规格编号:{{ scope.row.skuCode }} + + + + + + {{ scope.row.warehouseName || '-' }} + + + + + {{ scope.row.areaName || '-' }} + + + + + + + {{ formatNumber(scope.row.remainQuantity, 2) }} + + + + + + + 生产日期:{{ formatDate(scope.row.productionDate, 'YYYY-MM-DD') }} + + + 过期日期:{{ formatDate(scope.row.expirationDate, 'YYYY-MM-DD') }} + + + + + + + + + + + + diff --git a/src/views/wms/inventory/history/index.vue b/src/views/wms/inventory/history/index.vue new file mode 100644 index 000000000..e408b324d --- /dev/null +++ b/src/views/wms/inventory/history/index.vue @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + 重置 + + + + + + + + 库存流水 + + + + + + + + + + {{ scope.row.itemName || '-' }} + + 商品编号:{{ scope.row.itemCode }} + + + + + + {{ scope.row.skuName || '-' }} + + 规格编号:{{ scope.row.skuCode }} + + + + + + + 仓库:{{ scope.row.warehouseName || '-' }} + 库区:{{ scope.row.areaName || '-' }} + + + {{ scope.row.warehouseName || '-' }} + + + + + + {{ formatNumber(scope.row.beforeQuantity, 2) || '-' }} + + + + + {{ formatNumber(scope.row.afterQuantity, 2) || '-' }} + + + + + + 数量: + {{ formatNumber(scope.row.quantity, 2) }} + + + 金额: + {{ formatPrice(scope.row.amount) }} + + + + + + + + 生产日期:{{ formatDate(scope.row.productionDate, 'YYYY-MM-DD') }} + + + 过期日期:{{ formatDate(scope.row.expirationDate, 'YYYY-MM-DD') }} + + + + + + + + + + + + + diff --git a/src/views/wms/inventory/statistics/index.vue b/src/views/wms/inventory/index/index.vue similarity index 97% rename from src/views/wms/inventory/statistics/index.vue rename to src/views/wms/inventory/index/index.vue index f5aa31026..e5d24355b 100644 --- a/src/views/wms/inventory/statistics/index.vue +++ b/src/views/wms/inventory/index/index.vue @@ -93,7 +93,7 @@ [ ...(AREA_ENABLE ? [{ label: '库区', value: INVENTORY_DIMENSION.AREA }] : []), { label: '商品', value: INVENTORY_DIMENSION.ITEM } ]) -const warehouseDimensionList = [INVENTORY_DIMENSION.WAREHOUSE, INVENTORY_DIMENSION.AREA] +const warehouseDimensionList: InventoryDimension[] = [ + INVENTORY_DIMENSION.WAREHOUSE, + INVENTORY_DIMENSION.AREA +] interface InventoryRow extends InventoryVO { warehouseItemId?: string @@ -336,7 +339,7 @@ onMounted(async () => {