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
| import request from "@/utils/request";
|
| // 查询报告列表
| export function listInspectionReport(query) {
| return request({
| url: "/quality/inspectionReport/listPage",
| method: "get",
| params: query,
| });
| }
|
| // 查询报告详细
| export function getInspectionReport(id) {
| return request({
| url: `/quality/inspectionReport/${id}`,
| method: "get",
| });
| }
|
| // 新增报告
| export function addInspectionReport(data) {
| return request({
| url: "/quality/inspectionReport",
| method: "post",
| data,
| });
| }
|
| // 修改报告
| export function updateInspectionReport(data) {
| return request({
| url: "/quality/inspectionReport",
| method: "put",
| data,
| });
| }
|
| // 注销作废(后端入参为逗号分隔的 id 串)
| export function delInspectionReport(ids) {
| return request({
| url: `/quality/inspectionReport/${ids}`,
| method: "delete",
| });
| }
|
|