23 lines
471 B
TypeScript
23 lines
471 B
TypeScript
|
|
import { http } from '@/http/http'
|
||
|
|
|
||
|
|
/** 产品精简信息 */
|
||
|
|
export interface ProductSimple {
|
||
|
|
id: number
|
||
|
|
name: string
|
||
|
|
barCode?: string
|
||
|
|
unitId?: number
|
||
|
|
unitName?: string
|
||
|
|
standard?: string
|
||
|
|
purchasePrice?: number
|
||
|
|
salePrice?: number
|
||
|
|
minPrice?: number
|
||
|
|
supplierId?: number
|
||
|
|
supplierName?: string
|
||
|
|
weight?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/** 获取产品精简列表 */
|
||
|
|
export function getProductSimpleList() {
|
||
|
|
return http.get<ProductSimple[]>('/erp/product/simple-list')
|
||
|
|
}
|