You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import request from '@/axios';
|
|
|
|
|
|
|
|
|
|
// 获取列表数据
|
|
|
|
|
export const getList = (current, size, params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
current,
|
|
|
|
|
size,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 保存
|
|
|
|
|
export const add = row => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/submit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: row,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 修改
|
|
|
|
|
export const update = row => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/submit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: row,
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 删除
|
|
|
|
|
export const remove = ids => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/remove',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: {
|
|
|
|
|
ids,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 计划类 主任审批
|
|
|
|
|
export const directorApproval = row => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/directorApproval',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data:row
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
// 计划类 主任审批
|
|
|
|
|
export const factoryApproval = row => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/factoryApproval',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data:row
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 累计类检查 批量充值
|
|
|
|
|
export const batchReset = row => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/blade-desk/dsBatchPreservePlan/batchReset',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params:row
|
|
|
|
|
});
|
|
|
|
|
};
|