111
k94314517
2024-02-19 deb3baf0fb04c3a9f5b0d4b5bd9fb3237908d576
platform/src/api/business/dispatchUnit.js
@@ -2,22 +2,42 @@
// 查询
export function fetchList (data) {
  return request.post('/business/dispatchUnit/page', data, {
    trim: true
  })
    return request.post('/business/dispatchUnit/page', data, {
        trim: true
    })
}
// 创建
export function create (data) {
  return request.post('/business/dispatchUnit/create', data)
    return request.post('/business/dispatchUnit/create', data)
}
// 修改
export function updateById (data) {
  return request.post('/business/dispatchUnit/updateById', data)
    return request.post('/business/dispatchUnit/updateById', data)
}
// 根据ID查询
export function getById (id) {
  return request.get(`/business/dispatchUnit/${id}`)
    return request.get(`/business/dispatchUnit/${id}`)
}
export function check (data) {
    return request.post('/business/dispatchUnit/check', data)
}
export function checkWorktype (data) {
    return request.post('/business/dispatchUnit/checkWorktype', data)
}
// 添加工种
export function createSolution (data) {
    return request.post('/business/dispatchUnit/createSolution', data)
}
// 修改信息
export function editDispatchUnit (data) {
    return request.post('/business/dispatchUnit/editDispatchUnit', data)
}
// 数据列表
export function findListByDTO (data) {
    return request.post('/business/dispatchUnit/findListByDTO', data)
}