董国庆
10 小时以前 76cbfbad1c4235e2baf3216a8c99781995241429
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import axios from '@/utils/request';
 
// 列表
export const getList = (data) => {
  return axios.post('/api/t-inspection-report/pageList', { ...data })
}
// 详情
export const getDetail = (data) => {
  return axios.get('/open/t-inspection-report/getDetailById', { params:data })
}
//新增
export const add = (data) => {
  return axios.post('/api/t-inspection-report/add', { ...data })
}
//修改
export const update = (data) => {
  return axios.post('/api/t-inspection-report/update', { ...data })
}//提交
export const commit = (data) => {
  return axios.put('/open/t-inspection-report/commit?id='+data.id)
}
//删除
export const deleteById = (data) => {
  return axios.delete('/open/t-inspection-report/deleteById', { params:data })
}
//批量删除
export const deleteByIds = (data) => {
  return axios.delete('/open/t-inspection-report/deleteByIds', { params:data })
}