董国庆
2 天以前 013c63b6a07231bb4456106e31715b0982167abd
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import axios from '@/utils/request';
 
// 查询列表
export function getDataList(data) {
  return axios.post('/api/t-qa-test-item/pageList', { ...data })
}
 
// 添加
export function addData(data) {
  return axios.post('/api/t-qa-test-item/add', { ...data })
}
 
//修改
export function editData(data) {
  return axios.post('/api/t-qa-test-item/update', { ...data })
}
 
//获取详情
export function getDetail(id) {
  return axios.get(`/open/t-qa-test-item/getDetailById?id=${id}`)
}
 
//修改QA检测项管理状态
export function commitEvaluate(data) {
  console.log(data)
  return axios.put(`/open/t-qa-test-item/commitEvaluate?id=${data.id}`)
}
 
//评定QA检测项管理
export function evaluate(data) {
  return axios.put(`/api/t-qa-test-item/evaluate`, { ...data })
}
 
//删除QA检测项管理
export function deleteData(data) {
  return axios.delete(`/open/t-qa-test-item/deleteById?id=${data.id}`)
}
 
// 下面的是二级的接口  
 
export function detailPageList(data) {
  return axios.post(`/api/t-qa-test-item-report/pageList`,{...data})
}
export function detailAuditReport(data) {
  return axios.post(`/api/t-qa-test-item-report/auditReport`,{...data})
}
export function addDetail(data) {
  return axios.post(`/api/t-qa-test-item-report/add`,{...data})
}
export function updateDetail(data) {
  return axios.post(`/api/t-qa-test-item-report/update`,{...data})
}
 
export function deleteDetail(data) {
  return axios.delete(`/open/t-qa-test-item-report/deleteById?id=${data.id}`)
}
export function getDetailInfo(data) {
  return axios.get(`/open/t-qa-test-item-report/getDetailById?id=${data.id}`)
}
// 获取QA检测项报告管理下拉列表-化验师使用、评定使用
export function getListByItemId(data) {
  return axios.get(`/open/t-qa-test-item-report/getListByItemId?itemId=${data.id}`)
}
// 撤销QA检测项报告管理状态
export function revokedReport(data) {
  return axios.get(`/open/t-qa-test-item-report/revokedReport?id=${data.id}`)
}