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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
| import request from "@/utils/request";
|
| // 分页查询项目(新增与编辑共用 /save,靠 info.id 区分)
| export function listProject(data) {
| return request({
| url: "/projectManagement/info/listPage",
| method: "post",
| data,
| });
| }
|
| // 查询项目详情(id 在路径上,POST)
| export function getProject(id) {
| return request({
| url: `/projectManagement/info/${id}`,
| method: "post",
| });
| }
|
| // 新增 / 编辑项目
| export function saveProject(data) {
| return request({
| url: "/projectManagement/info/save",
| method: "post",
| data,
| });
| }
|
| // 删除项目(body 为 id 数组)
| export function delProject(ids) {
| return request({
| url: "/projectManagement/info/remove",
| method: "delete",
| data: ids,
| });
| }
|
| // 更新单据状态
| export function updateStatus(data) {
| return request({
| url: "/projectManagement/info/updateStatus",
| method: "post",
| data,
| });
| }
|
| // 提交:reviewStatus 置 0
| export function submitProject(data) {
| return request({
| url: "/projectManagement/info/updateStatus",
| method: "post",
| data: { ...data, reviewStatus: 0 },
| });
| }
|
| // 审核:reviewStatus 置 1
| export function auditProject(data) {
| return request({
| url: "/projectManagement/info/updateStatus",
| method: "post",
| data: { ...data, reviewStatus: 1 },
| });
| }
|
| // 阶段(进度汇报)
| export function saveStage(data) {
| return request({
| url: "/projectManagement/info/saveStage",
| method: "post",
| data,
| });
| }
|
| export function listStage(projectId) {
| return request({
| url: `/projectManagement/info/listStage/${projectId}`,
| method: "post",
| });
| }
|
| export function deleteStage(stageId) {
| return request({
| url: `/projectManagement/info/deleteStage/${stageId}`,
| method: "post",
| });
| }
|
| // 项目归档附件
| export function getProjectAttachments(id) {
| return request({
| url: `/projectManagement/info/attachments/${id}`,
| method: "get",
| });
| }
|
|