优化
This commit is contained in:
@@ -87,3 +87,26 @@ export function uploadMaterialPhotos(data: FormData) {
|
||||
export function catchPhoto(data: FormData) {
|
||||
return http.post(`${BASE_URL}/import/catch`, data)
|
||||
}
|
||||
|
||||
/* 批次导入结果类型 */
|
||||
export interface BatchImportResp {
|
||||
importKey: string
|
||||
totalRows: number
|
||||
validRows: number
|
||||
duplicateRows: number
|
||||
}
|
||||
|
||||
/** @desc 下载批次导入模板 */
|
||||
export function downloadBatchImportTemplate() {
|
||||
return http.download(`${BASE_URL}/batch/import/template`)
|
||||
}
|
||||
|
||||
/** @desc 解析批次导入数据 */
|
||||
export function parseBatchImport(data: FormData) {
|
||||
return http.post(`${BASE_URL}/batch/import/parse`, data)
|
||||
}
|
||||
|
||||
/** @desc 批次导入 */
|
||||
export function batchImport(data: any) {
|
||||
return http.post(`${BASE_URL}/batch/import`, data)
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ export interface WeighManageResp {
|
||||
materialSpec: string
|
||||
unitWeight: number
|
||||
photoUrl: string
|
||||
batch: string
|
||||
materialProcess: string
|
||||
matchResult: string
|
||||
downFloatRatio: string
|
||||
|
||||
Reference in New Issue
Block a user