ERP:增加 ERP 销售订单的实现 50%(详情)

新年快乐~
This commit is contained in:
YunaiV
2024-02-10 00:07:00 +08:00
parent 2615054fb2
commit ab63660bf8
10 changed files with 94 additions and 119 deletions

View File

@ -7,6 +7,7 @@ export interface ProductVO {
barCode: string // 产品条码
categoryId: number // 产品类型编号
unitId: number // 单位编号
unitName?: string // 单位名字
status: number // 产品状态
standard: string // 产品规格
remark: string // 产品备注
@ -25,8 +26,8 @@ export const ProductApi = {
},
// 查询产品精简列表
getProductSimpleList: async (params: any) => {
return await request.get({ url: `/erp/product/simple-list`, params })
getProductSimpleList: async () => {
return await request.get({ url: `/erp/product/simple-list` })
},
// 查询产品详情

View File

@ -29,6 +29,11 @@ export const StockApi = {
return await request.get({ url: `/erp/stock/get`, params: { productId, warehouseId } })
},
// 获得产品库存数量
getStockCount: async (productId: number) => {
return await request.get({ url: `/erp/stock/get-count`, params: { productId } })
},
// 导出产品库存 Excel
exportStock: async (params) => {
return await request.download({ url: `/erp/stock/export-excel`, params })

View File

@ -22,8 +22,8 @@ export const WarehouseApi = {
},
// 查询仓库精简列表
getWarehouseSimpleList: async (params: any) => {
return await request.get({ url: `/erp/warehouse/simple-list`, params })
getWarehouseSimpleList: async () => {
return await request.get({ url: `/erp/warehouse/simple-list` })
},
// 查询仓库详情