迁移托盘登录模块
- 新增计划与生产托盘登录 V2 页面 - 新增托盘登录接口、旧路径路由和中英文文案 - 更新迁移任务列表中的托盘登录状态
This commit is contained in:
51
src/api/planning-production/tray-registration.js
Normal file
51
src/api/planning-production/tray-registration.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import { request } from '@/api/_service'
|
||||
|
||||
const BASE = 'planning_production/produce/tray_login/'
|
||||
|
||||
function apiParams (method, data = {}) {
|
||||
return {
|
||||
method,
|
||||
platform: 'background',
|
||||
...data
|
||||
}
|
||||
}
|
||||
|
||||
export function getBatchAll (data) {
|
||||
return request({
|
||||
url: BASE + 'all',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_traylogin_all', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function getBatchTrayFormatAll (data) {
|
||||
return request({
|
||||
url: BASE + 'trayformat_all',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_trayformat_all', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function createBatchTrayFormat (data) {
|
||||
return request({
|
||||
url: BASE + 'create',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_trayformat_create', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteBatchTrayFormat (data) {
|
||||
return request({
|
||||
url: BASE + 'delete',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_trayformat_delete', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function checkBatteryid (data) {
|
||||
return request({
|
||||
url: BASE + 'check_batteryid',
|
||||
method: 'get',
|
||||
params: apiParams('planning_production_produce_trayformat_check_batteryid', data)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user