ZaiZai 1 year ago
parent
commit
e3ae6577dc
1 changed files with 48 additions and 0 deletions
  1. 48 0
      src/api/modules/project.js

+ 48 - 0
src/api/modules/project.js

@@ -0,0 +1,48 @@
+import { httpApi } from '../request/httpApi'
+
+export default {
+    //获取项目和合同段
+    async getProjectAndContract() {
+        return httpApi({
+            url: '/api/blade-business/userViewProjectContract/queryUserViewProjectAndContract',
+            method: 'get',
+            params: {},
+        })
+    },
+    //获取默认项目
+    async getDefaultProject(form) {
+        return httpApi({
+            url: '/api/blade-business/defaultProject/queryUserDefault',
+            method: 'get',
+            params: form,
+        })
+    },
+    //获取项目详情
+    async getProjectInfo(id) {
+        return httpApi({
+            url: '/api/blade-manager/projectInfo/detail',
+            method: 'get',
+            params: {
+                id: id ? id + '' : '',
+            },
+        })
+    },
+    //获取合同段详情
+    async getContractInfo(id) {
+        return httpApi({
+            url: '/api/blade-manager/contractInfo/detail',
+            method: 'get',
+            params: {
+                id: id ? id + '' : '',
+            },
+        })
+    },
+    //设置默认项目
+    async setDefaultProject(form) {
+        return httpApi({
+            url: '/api/blade-business/defaultProject/save',
+            method: 'post',
+            data: form,
+        })
+    },
+}