feat: migrate planning batch management modules
- migrate batch list, tray tracking, and batch defect report pages to V2 - add planning production APIs, workerman helper, routes, and i18n entries - add markdown migration task list generated from the Webman function matrix
This commit is contained in:
27
src/api/planning-production/batch-defect-report.js
Normal file
27
src/api/planning-production/batch-defect-report.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import { request } from '@/api/_service'
|
||||
|
||||
const BASE = 'planning_production/production_batch_management/report/'
|
||||
|
||||
function apiParams (method, data = {}) {
|
||||
return {
|
||||
method,
|
||||
platform: 'background',
|
||||
...data
|
||||
}
|
||||
}
|
||||
|
||||
export function getBatchDefectReport (data) {
|
||||
return request({
|
||||
url: BASE + 'bad',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_production_batch_management_batch_bad', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function exportBatchDefectReport (data) {
|
||||
return request({
|
||||
url: BASE + 'export',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_production_batch_management_batch_export', data)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user