fix: 李红攀:V2.0.061采购入库、销售出库添加扫码功能
This commit is contained in:
42
src/api/erp/sale-out-scan-record/index.ts
Normal file
42
src/api/erp/sale-out-scan-record/index.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import { http } from '@/http/http'
|
||||
|
||||
/** 销售出库扫码记录 */
|
||||
export interface SaleOutScanRecord {
|
||||
id?: number
|
||||
saleOutId: number
|
||||
productId?: number
|
||||
productName?: string
|
||||
productSpec?: string
|
||||
productBarCode?: string
|
||||
productUnit?: string
|
||||
warehouseId?: number
|
||||
warehouseName?: string
|
||||
locationCode?: string
|
||||
batchNo?: string
|
||||
scanCount?: number
|
||||
scanTime?: string
|
||||
operatorId?: number
|
||||
operatorName?: string
|
||||
remark?: string
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
/** 创建扫码记录 */
|
||||
export function createSaleOutScanRecord(data: SaleOutScanRecord) {
|
||||
return http.post<number>('/erp/sale-out-scan-record/create', data)
|
||||
}
|
||||
|
||||
/** 批量创建扫码记录 */
|
||||
export function createSaleOutScanRecordBatch(data: SaleOutScanRecord[]) {
|
||||
return http.post<number[]>('/erp/sale-out-scan-record/create-batch', data)
|
||||
}
|
||||
|
||||
/** 删除扫码记录 */
|
||||
export function deleteSaleOutScanRecord(id: number) {
|
||||
return http.delete<boolean>(`/erp/sale-out-scan-record/delete?id=${id}`)
|
||||
}
|
||||
|
||||
/** 获取出库单的所有扫码记录 */
|
||||
export function getSaleOutScanRecordList(saleOutId: number) {
|
||||
return http.get<SaleOutScanRecord[]>(`/erp/sale-out-scan-record/list?saleOutId=${saleOutId}`)
|
||||
}
|
||||
Reference in New Issue
Block a user