袁伟杰: V2.0.002 其他入库其他出库扫码

This commit is contained in:
yuan
2026-05-13 19:48:21 +08:00
parent 2c203ff4cf
commit 7f84bbca79
13 changed files with 1686 additions and 6 deletions

View File

@@ -16,7 +16,23 @@ export interface ProductSimple {
weight?: number
}
/** 按条码查询的产品信息 */
export interface ProductByBarCode {
id: number
name: string
barCode?: string
unitId?: number
unitName?: string
standard?: string
minPrice?: number
}
/** 获取产品精简列表 */
export function getProductSimpleList() {
return http.get<ProductSimple[]>('/erp/product/simple-list')
}
/** 按条码查询启用中的产品 */
export function getProductByBarCode(barCode: string) {
return http.get<ProductByBarCode>('/erp/product/get-by-barcode', { barCode })
}