完善工序单元功能迁移
This commit is contained in:
@@ -4,7 +4,7 @@ const BASE = 'production_configuration/technology_model/technology_flow_workings
|
||||
|
||||
function apiParams (method, data = {}) {
|
||||
return {
|
||||
method: `production_master_data_process_model_process_step_${method}`,
|
||||
method: `production_configuration_technology_model_technology_flow_workingsubclass_${method}`,
|
||||
platform: 'background',
|
||||
...data
|
||||
}
|
||||
@@ -30,6 +30,14 @@ export function getWorkingsubclassAll (data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getWorkSubClassByDeviceCode (data) {
|
||||
return request({
|
||||
url: BASE + 'get_worksubclass_by_device_code',
|
||||
method: 'get',
|
||||
params: apiParams('get_worksubclass_by_device_code', data)
|
||||
})
|
||||
}
|
||||
|
||||
export function createProcessStep (data) {
|
||||
return request({
|
||||
url: BASE + 'create',
|
||||
@@ -58,10 +66,6 @@ export function settingSubmit (data) {
|
||||
return request({
|
||||
url: BASE + 'setting_submit',
|
||||
method: 'post',
|
||||
data: {
|
||||
method: 'production_master_data_process_model_process_step_setting_submit',
|
||||
platform: 'background',
|
||||
...data
|
||||
}
|
||||
data: apiParams('setting_submit', data)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user