diff --git a/src/api/wms/outStockDetails/index.ts b/src/api/wms/outStockDetails/index.ts new file mode 100644 index 0000000..3ff0c04 --- /dev/null +++ b/src/api/wms/outStockDetails/index.ts @@ -0,0 +1,76 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { OutStockDetailsVO, OutStockDetailsForm, OutStockDetailsQuery } from '@/api/wms/outStockDetails/types'; + +/** + * 查询出库单明细列表 + * @param query + * @returns {*} + */ + +export const listOutStockDetails = (query?: OutStockDetailsQuery): AxiosPromise => { + return request({ + url: '/wms/outStockDetails/list', + method: 'get', + params: query + }); +}; + +/** + * 查询出库单明细详细 + * @param outStockDetailsId + */ +export const getOutStockDetails = (outStockDetailsId: string | number): AxiosPromise => { + return request({ + url: '/wms/outStockDetails/' + outStockDetailsId, + method: 'get' + }); +}; + +/** + * 新增出库单明细 + * @param data + */ +export const addOutStockDetails = (data: OutStockDetailsForm) => { + return request({ + url: '/wms/outStockDetails', + method: 'post', + data: data + }); +}; + +/** + * 修改出库单明细 + * @param data + */ +export const updateOutStockDetails = (data: OutStockDetailsForm) => { + return request({ + url: '/wms/outStockDetails', + method: 'put', + data: data + }); +}; + +/** + * 删除出库单明细 + * @param outStockDetailsId + */ +export const delOutStockDetails = (outStockDetailsId: string | number | Array) => { + return request({ + url: '/wms/outStockDetails/' + outStockDetailsId, + method: 'delete' + }); +}; + +/** + * 下拉框查询出库单明细列表 + * @param query + * @returns {*} + */ +export function getWmsOutStockDetailsList (query) { + return request({ + url: '/wms/outStockDetails/getWmsOutStockDetailsList', + method: 'get', + params: query + }); +}; diff --git a/src/api/wms/outStockDetails/types.ts b/src/api/wms/outStockDetails/types.ts new file mode 100644 index 0000000..1d2e9dc --- /dev/null +++ b/src/api/wms/outStockDetails/types.ts @@ -0,0 +1,196 @@ +export interface OutStockDetailsVO { + /** + * 出库单明细ID + */ + outStockDetailsId: string | number; + + /** + * 租户编号 + */ + tenantId: string | number; + + /** + * 仓库ID + */ + warehouseId: string | number; + + /** + * 物料ID + */ + materielId: string | number; + + /** + * 批次号 + */ + batchNumber: string; + + /** + * 单价 + */ + unitPrice: number; + + /** + * 出库数量 + */ + outStockAmount: number; + + /** + * 单位 + */ + unitName: string; + + /** + * 总价 + */ + totalPrice: number; + + /** + * 删除标志(0代表存在 1代表删除) + */ + delFlag: string; + + /** + * 创建部门 + */ + createDept: number; + + /** + * 创建人 + */ + createBy: number; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 更新人 + */ + updateBy: number; + + /** + * 更新时间 + */ + updateTime: string; + + /** + * 原项目ID + */ + inProjectId: string | number; + + /** + * 新项目ID + */ + outProjectId: string | number; + + /** + * 出库单ID + */ + outStockBillId: string | number; + + /** + * 库存ID + */ + inventoryDetailsId: string | number; + +} + +export interface OutStockDetailsForm extends BaseEntity { + /** + * 出库单明细ID + */ + outStockDetailsId?: string | number; + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 批次号 + */ + batchNumber?: string; + + /** + * 单价 + */ + unitPrice?: number; + + /** + * 出库数量 + */ + outStockAmount?: number; + + /** + * 单位 + */ + unitName?: string; + + /** + * 总价 + */ + totalPrice?: number; + + /** + * 原项目ID + */ + inProjectId?: string | number; + + /** + * 新项目ID + */ + outProjectId?: string | number; + + /** + * 出库单ID + */ + outStockBillId?: string | number; + + /** + * 库存ID + */ + inventoryDetailsId?: string | number; + +} + +export interface OutStockDetailsQuery extends PageQuery { + + /** + * 仓库ID + */ + warehouseId?: string | number; + + /** + * 物料ID + */ + materielId?: string | number; + + /** + * 批次号 + */ + batchNumber?: string; + + /** + * 创建时间 + */ + createTime?: string; + + /** + * 出库单ID + */ + outStockBillId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/components/WmsInventorySelect/index.vue b/src/components/WmsInventorySelect/index.vue new file mode 100644 index 0000000..ced1611 --- /dev/null +++ b/src/components/WmsInventorySelect/index.vue @@ -0,0 +1,289 @@ + + + diff --git a/src/components/ProductSelect/index.vue b/src/components/WmsProductSelect/index.vue similarity index 100% rename from src/components/ProductSelect/index.vue rename to src/components/WmsProductSelect/index.vue diff --git a/src/views/wms/inStockBill/index.vue b/src/views/wms/inStockBill/index.vue index 62853c2..b8c4339 100644 --- a/src/views/wms/inStockBill/index.vue +++ b/src/views/wms/inStockBill/index.vue @@ -307,7 +307,7 @@ import { useRouter } from 'vue-router'; // 存储选中的物料信息 import { getWmsInStockDetailsList } from '@/api/wms/inStockDetails'; import { getWmsWarehouseInfoList } from '@/api/wms/warehouseInfo'; import { getErpProjectInfoList } from '@/api/oa/erp/projectInfo'; // 添加展开行处理函数 -import ProductSelect from '@/components/ProductSelect/index.vue'; +import ProductSelect from '@/components/WmsProductSelect/index.vue'; import { parseTime } from '@/utils/ruoyi'; const projectInfoList = ref([]); // 项目列表 diff --git a/src/views/wms/outStockBill/index.vue b/src/views/wms/outStockBill/index.vue index 8167e19..a39e118 100644 --- a/src/views/wms/outStockBill/index.vue +++ b/src/views/wms/outStockBill/index.vue @@ -37,8 +37,17 @@ - - + + + 搜索 @@ -212,6 +221,30 @@ + +
+ + + 选择物料 + +
+

已选择的物料:

+ + + + + + + + + +
+
+ +
+