diff --git a/src/api/wms/wmsMonthlyReport/index.ts b/src/api/wms/wmsMonthlyReport/index.ts new file mode 100644 index 0000000..7d07c23 --- /dev/null +++ b/src/api/wms/wmsMonthlyReport/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsMonthlyReportVO, WmsMonthlyReportForm, WmsMonthlyReportQuery } from '@/api/wms/wmsMonthlyReport/types'; + +/** + * 查询WMS月度报列表 + * @param query + * @returns {*} + */ + +export const listWmsMonthlyReport = (query?: WmsMonthlyReportQuery): AxiosPromise => { + return request({ + url: '/wms/wmsMonthlyReport/list', + method: 'get', + params: query + }); +}; + +/** + * 查询WMS月度报详细 + * @param reportId + */ +export const getWmsMonthlyReport = (reportId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsMonthlyReport/' + reportId, + method: 'get' + }); +}; + +/** + * 新增WMS月度报 + * @param data + */ +export const addWmsMonthlyReport = (data: WmsMonthlyReportForm) => { + return request({ + url: '/wms/wmsMonthlyReport', + method: 'post', + data: data + }); +}; + +/** + * 修改WMS月度报 + * @param data + */ +export const updateWmsMonthlyReport = (data: WmsMonthlyReportForm) => { + return request({ + url: '/wms/wmsMonthlyReport', + method: 'put', + data: data + }); +}; + +/** + * 删除WMS月度报 + * @param reportId + */ +export const delWmsMonthlyReport = (reportId: string | number | Array) => { + return request({ + url: '/wms/wmsMonthlyReport/' + reportId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询WMS月度报列表 + * @param query + * @returns {*} + */ +export function getWmsMonthlyReportList (query) { + return request({ + url: '/wms/wmsMonthlyReport/getWmsMonthlyReportList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/wmsMonthlyReport/types.ts b/src/api/wms/wmsMonthlyReport/types.ts new file mode 100644 index 0000000..5a43322 --- /dev/null +++ b/src/api/wms/wmsMonthlyReport/types.ts @@ -0,0 +1,206 @@ +export interface WmsMonthlyReportVO { + /** + * 报表主键 + */ + reportId: string | number; + + /** + * 报表年份 + */ + reportYear: number; + + /** + * 报表月份 + */ + reportMonth: number; + + /** + * 物料类型ID + */ + materialTypeId: string | number; + + /** + * 物料类型名称 + */ + materialTypeName: string; + + /** + * 当月入库记录数量 + */ + currentInstockCount: number; + + /** + * 当月入库总量 + */ + currentInstockQty: number; + + /** + * 当月出库记录数量 + */ + currentOutstockCount: number; + + /** + * 当月出库总量 + */ + currentOutstockQty: number; + + /** + * 上月入库记录数量 + */ + lastInstockCount: number; + + /** + * 上月入库总量 + */ + lastInstockQty: number; + + /** + * 上月出库记录数量 + */ + lastOutstockCount: number; + + /** + * 上月出库总量 + */ + lastOutstockQty: number; + + /** + * 入库记录数量环比差额(当月-上月) + */ + instockCountDiff: number; + + /** + * 入库总量环比差额(当月-上月) + */ + instockQtyDiff: number; + + /** + * 出库记录数量环比差额(当月-上月) + */ + outstockCountDiff: number; + + /** + * 出库总量环比差额(当月-上月) + */ + outstockQtyDiff: number; + + /** + * 月末库存物料种类数 + */ + inventoryMaterialCount: number; + + /** + * 月末库存总量 + */ + inventoryQty: number; + +} + +export interface WmsMonthlyReportForm extends BaseEntity { +} + +export interface WmsMonthlyReportQuery extends PageQuery { + + /** + * 报表主键 + */ + reportId?: string | number; + + /** + * 报表年份 + */ + reportYear?: number; + + /** + * 报表月份 + */ + reportMonth?: number; + + /** + * 物料类型ID + */ + materialTypeId?: string | number; + + /** + * 物料类型名称 + */ + materialTypeName?: string; + + /** + * 当月入库记录数量 + */ + currentInstockCount?: number; + + /** + * 当月入库总量 + */ + currentInstockQty?: number; + + /** + * 当月出库记录数量 + */ + currentOutstockCount?: number; + + /** + * 当月出库总量 + */ + currentOutstockQty?: number; + + /** + * 上月入库记录数量 + */ + lastInstockCount?: number; + + /** + * 上月入库总量 + */ + lastInstockQty?: number; + + /** + * 上月出库记录数量 + */ + lastOutstockCount?: number; + + /** + * 上月出库总量 + */ + lastOutstockQty?: number; + + /** + * 入库记录数量环比差额(当月-上月) + */ + instockCountDiff?: number; + + /** + * 入库总量环比差额(当月-上月) + */ + instockQtyDiff?: number; + + /** + * 出库记录数量环比差额(当月-上月) + */ + outstockCountDiff?: number; + + /** + * 出库总量环比差额(当月-上月) + */ + outstockQtyDiff?: number; + + /** + * 月末库存物料种类数 + */ + inventoryMaterialCount?: number; + + /** + * 月末库存总量 + */ + inventoryQty?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/wmsMonthlyReport/index.vue b/src/views/wms/wmsMonthlyReport/index.vue new file mode 100644 index 0000000..d37a555 --- /dev/null +++ b/src/views/wms/wmsMonthlyReport/index.vue @@ -0,0 +1,304 @@ + + +