diff --git a/src/api/wms/wmsPurchaseOrder/index.ts b/src/api/wms/wmsPurchaseOrder/index.ts new file mode 100644 index 0000000..72e4aaf --- /dev/null +++ b/src/api/wms/wmsPurchaseOrder/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsPurchaseOrderVO, WmsPurchaseOrderForm, WmsPurchaseOrderQuery } from '@/api/wms/wmsPurchaseOrder/types'; + +/** + * 查询采购订单列表 + * @param query + * @returns {*} + */ + +export const listWmsPurchaseOrder = (query?: WmsPurchaseOrderQuery): AxiosPromise => { + return request({ + url: '/wms/wmsPurchaseOrder/list', + method: 'get', + params: query + }); +}; + +/** + * 查询采购订单详细 + * @param poId + */ +export const getWmsPurchaseOrder = (poId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsPurchaseOrder/' + poId, + method: 'get' + }); +}; + +/** + * 新增采购订单 + * @param data + */ +export const addWmsPurchaseOrder = (data: WmsPurchaseOrderForm) => { + return request({ + url: '/wms/wmsPurchaseOrder', + method: 'post', + data: data + }); +}; + +/** + * 修改采购订单 + * @param data + */ +export const updateWmsPurchaseOrder = (data: WmsPurchaseOrderForm) => { + return request({ + url: '/wms/wmsPurchaseOrder', + method: 'put', + data: data + }); +}; + +/** + * 删除采购订单 + * @param poId + */ +export const delWmsPurchaseOrder = (poId: string | number | Array) => { + return request({ + url: '/wms/wmsPurchaseOrder/' + poId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询采购订单列表 + * @param query + * @returns {*} + */ +export function getWmsPurchaseOrderList (query) { + return request({ + url: '/wms/wmsPurchaseOrder/getWmsPurchaseOrderList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/wmsPurchaseOrder/types.ts b/src/api/wms/wmsPurchaseOrder/types.ts new file mode 100644 index 0000000..e1d51be --- /dev/null +++ b/src/api/wms/wmsPurchaseOrder/types.ts @@ -0,0 +1,226 @@ +export interface WmsPurchaseOrderVO { + /** + * 表主键 + */ + poId: string | number; + + /** + * 订单编号 + */ + poNo: string; + + /** + * 订单状态(1待采购2部分到货3订单完成) + */ + poStatus: string; + + /** + * 计划交货日期 + */ + planDeliveryDate: string; + + /** + * 供应商ID + */ + supplierId: string | number; + + /** + * 订单类型(1人工创建,2ERP同步,3后台创建4) + */ + poType: string; + + /** + * 单据的ID,连表扩充 + */ + erpId: string | number; + + /** + * 备注 + */ + remark: string; + + /** + * 租户号 + */ + tenantId: string | number; + + /** + * 创建人 + */ + createBy: string; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: string; + + /** + * 更新时间 + */ + updateTime: string; + + /** + * 物料大类 + */ + materialCategories: string; + + /** + * 审核人 + */ + auditBy: string; + + /** + * 审核时间 + */ + auditTime: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus: string; + + /** + * 审核意见 + */ + auditComments: string; + +} + +export interface WmsPurchaseOrderForm extends BaseEntity { + /** + * 表主键 + */ + poId?: string | number; + + /** + * 订单编号 + */ + poNo?: string; + + /** + * 订单状态(1待采购2部分到货3订单完成) + */ + poStatus?: string; + + /** + * 计划交货日期 + */ + planDeliveryDate?: string; + + /** + * 供应商ID + */ + supplierId?: string | number; + + /** + * 订单类型(1人工创建,2ERP同步,3后台创建4) + */ + poType?: string; + + /** + * 单据的ID,连表扩充 + */ + erpId?: string | number; + + /** + * 备注 + */ + remark?: string; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * 审核人 + */ + auditBy?: string; + + /** + * 审核时间 + */ + auditTime?: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus?: string; + + /** + * 审核意见 + */ + auditComments?: string; + +} + +export interface WmsPurchaseOrderQuery extends PageQuery { + + /** + * 订单编号 + */ + poNo?: string; + + /** + * 订单状态(1待采购2部分到货3订单完成) + */ + poStatus?: string; + + /** + * 计划交货日期 + */ + planDeliveryDate?: string; + + /** + * 供应商ID + */ + supplierId?: string | number; + + /** + * 订单类型(1人工创建,2ERP同步,3后台创建4) + */ + poType?: string; + + /** + * 单据的ID,连表扩充 + */ + erpId?: string | number; + + /** + * 物料大类 + */ + materialCategories?: string; + + /** + * 审核人 + */ + auditBy?: string; + + /** + * 审核时间 + */ + auditTime?: string; + + /** + * 审核状态(0待审核,1审核通过,2审核未通过) + */ + auditStatus?: string; + + /** + * 审核意见 + */ + auditComments?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/wms/wmsPurchaseOrderDetail/index.ts b/src/api/wms/wmsPurchaseOrderDetail/index.ts new file mode 100644 index 0000000..c960db5 --- /dev/null +++ b/src/api/wms/wmsPurchaseOrderDetail/index.ts @@ -0,0 +1,77 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { WmsPurchaseOrderDetailVO, WmsPurchaseOrderDetailForm, WmsPurchaseOrderDetailQuery } from '@/api/wms/wmsPurchaseOrderDetail/types'; + +/** + * 查询采购订单-物料列表 + * @param query + * @returns {*} + */ + +export const listWmsPurchaseOrderDetail = (query?: WmsPurchaseOrderDetailQuery): AxiosPromise => { + return request({ + url: '/wms/wmsPurchaseOrderDetail/list', + method: 'get', + params: query + }); +}; + +/** + * 查询采购订单-物料详细 + * @param poDId + */ +export const getWmsPurchaseOrderDetail = (poDId: string | number): AxiosPromise => { + return request({ + url: '/wms/wmsPurchaseOrderDetail/' + poDId, + method: 'get' + }); +}; + +/** + * 新增采购订单-物料 + * @param data + */ +export const addWmsPurchaseOrderDetail = (data: WmsPurchaseOrderDetailForm) => { + return request({ + url: '/wms/wmsPurchaseOrderDetail', + method: 'post', + data: data + }); +}; + +/** + * 修改采购订单-物料 + * @param data + */ +export const updateWmsPurchaseOrderDetail = (data: WmsPurchaseOrderDetailForm) => { + return request({ + url: '/wms/wmsPurchaseOrderDetail', + method: 'put', + data: data + }); +}; + +/** + * 删除采购订单-物料 + * @param poDId + */ +export const delWmsPurchaseOrderDetail = (poDId: string | number | Array) => { + return request({ + url: '/wms/wmsPurchaseOrderDetail/' + poDId, + method: 'delete' + }); +}; + + +/** + * 下拉框查询采购订单-物料列表 + * @param query + * @returns {*} + */ +export function getWmsPurchaseOrderDetailList (query) { + return request({ + url: '/wms/wmsPurchaseOrderDetail/getWmsPurchaseOrderDetailList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/wmsPurchaseOrderDetail/types.ts b/src/api/wms/wmsPurchaseOrderDetail/types.ts new file mode 100644 index 0000000..b89e130 --- /dev/null +++ b/src/api/wms/wmsPurchaseOrderDetail/types.ts @@ -0,0 +1,156 @@ +export interface WmsPurchaseOrderDetailVO { + /** + * 采购物料表主键 + */ + poDId: string | number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 物料编码 + */ + materialCode: string; + + /** + * 物料名称 + */ + materialName: string; + + /** + * 采购订单编号 + */ + poNo: string; + + /** + * 含税单价 + */ + taxPrice: number; + + /** + * 采购数量 + */ + purchaseQty: number; + + /** + * 物料规格 + */ + materialSpe: string; + + /** + * 计量单位名称 + */ + unitName: string; + + /** + * 送货数量=送货单数量=总入库数量 + */ + deliveryQty: number; + + /** + * 租户号 + */ + tenantId: string | number; + +} + +export interface WmsPurchaseOrderDetailForm extends BaseEntity { + /** + * 采购物料表主键 + */ + poDId?: string | number; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 物料名称 + */ + materialName?: string; + + /** + * 采购订单编号 + */ + poNo?: string; + + /** + * 含税单价 + */ + taxPrice?: number; + + /** + * 采购数量 + */ + purchaseQty?: number; + + /** + * 物料规格 + */ + materialSpe?: string; + + /** + * 计量单位名称 + */ + unitName?: string; + + /** + * 送货数量=送货单数量=总入库数量 + */ + deliveryQty?: number; + +} + +export interface WmsPurchaseOrderDetailQuery extends PageQuery { + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 物料名称 + */ + materialName?: string; + + /** + * 采购订单编号 + */ + poNo?: string; + + /** + * 含税单价 + */ + taxPrice?: number; + + /** + * 采购数量 + */ + purchaseQty?: number; + + /** + * 物料规格 + */ + materialSpe?: string; + + /** + * 计量单位名称 + */ + unitName?: string; + + /** + * 送货数量=送货单数量=总入库数量 + */ + deliveryQty?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/wmsPurchaseOrder/index.vue b/src/views/wms/wmsPurchaseOrder/index.vue new file mode 100644 index 0000000..9b43afd --- /dev/null +++ b/src/views/wms/wmsPurchaseOrder/index.vue @@ -0,0 +1,440 @@ + + + diff --git a/src/views/wms/wmsPurchaseOrderDetail/index.vue b/src/views/wms/wmsPurchaseOrderDetail/index.vue new file mode 100644 index 0000000..fa3849b --- /dev/null +++ b/src/views/wms/wmsPurchaseOrderDetail/index.vue @@ -0,0 +1,304 @@ + + +