diff --git a/src/api/wms/outStockBill/index.ts b/src/api/wms/outStockBill/index.ts new file mode 100644 index 0000000..4f7ff23 --- /dev/null +++ b/src/api/wms/outStockBill/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { OutStockBillVO, OutStockBillForm, OutStockBillQuery } from '@/api/wms/outStockBill/types'; + +/** + * 查询出库单列表 + * @param query + * @returns {*} + */ + +export const listOutStockBill = (query?: OutStockBillQuery): AxiosPromise => { + return request({ + url: '/wms/outStockBill/list', + method: 'get', + params: query + }); +}; + +/** + * 查询出库单详细 + * @param outStockBillId + */ +export const getOutStockBill = (outStockBillId: string | number): AxiosPromise => { + return request({ + url: '/wms/outStockBill/' + outStockBillId, + method: 'get' + }); +}; + +/** + * 新增出库单 + * @param data + */ +export const addOutStockBill = (data: OutStockBillForm) => { + return request({ + url: '/wms/outStockBill', + method: 'post', + data: data + }); +}; + +/** + * 修改出库单 + * @param data + */ +export const updateOutStockBill = (data: OutStockBillForm) => { + return request({ + url: '/wms/outStockBill', + method: 'put', + data: data + }); +}; + +/** + * 删除出库单 + * @param outStockBillId + */ +export const delOutStockBill = (outStockBillId: string | number | Array) => { + return request({ + url: '/wms/outStockBill/' + outStockBillId, + method: 'delete' + }); +}; + +/** + * 下拉框查询出库单列表 + * @param query + * @returns {*} + */ +export function getWmsOutStockBillList (query) { + return request({ + url: '/wms/outStockBill/getWmsOutStockBillList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/outStockBill/types.ts b/src/api/wms/outStockBill/types.ts new file mode 100644 index 0000000..599861a --- /dev/null +++ b/src/api/wms/outStockBill/types.ts @@ -0,0 +1,197 @@ +export interface OutStockBillVO { + /** + * 出库单ID + */ + outStockBillId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 出库单号 + */ + outStockCode: string; + + /** + * 出库单类型 + */ + outStockType: string; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 关联单号 + */ + inventoryAmount: string; + + /** + * 客户id + */ + customerId: string | number; + + /** + * 联系人 + */ + customerUser: string; + + /** + * 联系电话 + */ + customerNumber: string; + + /** + * 出库说明 + */ + directions: string; + + /** + * 出库(单状态1暂存 2审批中 3完成) + */ + outStockBillStatus: string; + + /** + * 流程状态 + */ + flowStatus: string; + + /** + * 仓库ID + */ + warehouseId: string | number; + + /** + * 删除标志(0代表存在 1代表删除) + */ + delFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + +} + +export interface OutStockBillForm extends BaseEntity { + /** + * 出库单ID + */ + outStockBillId?: string | number; + warehouseId?: string | number; + + /** + * 出库单号 + */ + outStockCode?: string; + + /** + * 出库单类型 + */ + outStockType?: string; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 关联单号 + */ + inventoryAmount?: string; + + /** + * 客户id + */ + customerId?: string | number; + + /** + * 联系人 + */ + customerUser?: string; + + /** + * 联系电话 + */ + customerNumber?: string; + + /** + * 出库说明 + */ + directions?: string; + + /** + * 出库(单状态1暂存 2审批中 3完成) + */ + outStockBillStatus?: string; + +} + +export interface OutStockBillQuery extends PageQuery { + + /** + * 出库单类型 + */ + outStockType?: string; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 客户id + */ + customerId?: string | number; + + /** + * 联系人 + */ + customerUser?: string; + + /** + * 出库(单状态1暂存 2审批中 3完成) + */ + outStockBillStatus?: string; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 创建时间 + */ + createTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/wms/outStockBill/index.vue b/src/views/wms/outStockBill/index.vue new file mode 100644 index 0000000..e8aab77 --- /dev/null +++ b/src/views/wms/outStockBill/index.vue @@ -0,0 +1,440 @@ + + +