From cb734240e2a849ae37bca276ef7622ca0eaaa57f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 22 Oct 2020 16:13:24 +0800 Subject: [PATCH] =?UTF-8?q?certapp=E6=B5=81=E7=A8=8B=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/api/certapp.js | 15 ++ client/src/api/project.js | 16 ++ client/src/router/index.js | 12 +- client/src/styles/index.scss | 4 + client/src/views/accessment/access.vue | 17 +- client/src/views/audit/conclusion.vue | 10 +- client/src/views/audit/member.vue | 2 +- client/src/views/audit/task.vue | 169 ++++++++++++------ client/src/views/certapp/cccform.vue | 4 +- client/src/views/certapp/certapp.vue | 11 +- client/src/views/certapp/certapphandle.vue | 44 +++-- client/src/views/certapp/certunit.vue | 4 +- client/src/views/certapp/detectiontask.vue | 12 +- client/src/views/certapp/review.vue | 2 +- client/src/views/project/handle.vue | 147 +++++++++++---- server/apps/accessment/serializers.py | 79 +++++--- server/apps/accessment/views.py | 45 ++--- server/apps/audit/serializers.py | 8 +- .../0016_remove_certunit_testorgs.py | 17 ++ server/apps/crm/models.py | 2 +- .../migrations/0050_merge_20201020_1402.py | 14 ++ .../migrations/0051_auto_20201020_1402.py | 28 +++ .../migrations/0052_auto_20201020_1500.py | 23 +++ .../0053_project_feedback_remark.py | 18 ++ server/apps/project/models.py | 8 +- server/apps/project/serializers.py | 6 + server/apps/project/views.py | 122 ++++++++++--- .../migrations/0032_auto_20201022_1504.py | 23 +++ server/apps/system/models.py | 4 +- 29 files changed, 645 insertions(+), 221 deletions(-) create mode 100644 server/apps/crm/migrations/0016_remove_certunit_testorgs.py create mode 100644 server/apps/project/migrations/0050_merge_20201020_1402.py create mode 100644 server/apps/project/migrations/0051_auto_20201020_1402.py create mode 100644 server/apps/project/migrations/0052_auto_20201020_1500.py create mode 100644 server/apps/project/migrations/0053_project_feedback_remark.py create mode 100644 server/apps/system/migrations/0032_auto_20201022_1504.py diff --git a/client/src/api/certapp.js b/client/src/api/certapp.js index 06bca08..d62c7e9 100644 --- a/client/src/api/certapp.js +++ b/client/src/api/certapp.js @@ -61,4 +61,19 @@ export function accessCertapp(id, data) { method: 'put', data }) +} + +export function feedbackCertapp(id, data) { + return request({ + url: `/project/certapp/${id}/feedback/`, + method: 'put', + data + }) +} + +export function flowCertapp(id) { + return request({ + url: `/project/certapp/${id}/flow/`, + method: 'get', + }) } \ No newline at end of file diff --git a/client/src/api/project.js b/client/src/api/project.js index 2b781d4..c4ff8ec 100644 --- a/client/src/api/project.js +++ b/client/src/api/project.js @@ -67,4 +67,20 @@ export function acceptAudit(id) { url: `/project/project/${id}/accept/`, method: 'put', }) +} + +export function startProject(id, data) { + return request({ + url: `/project/project/${id}/start/`, + method: 'put', + data + }) +} + +export function feedbackProject(id, data) { + return request({ + url: `/project/project/${id}/feedback/`, + method: 'put', + data + }) } \ No newline at end of file diff --git a/client/src/router/index.js b/client/src/router/index.js index 94c841e..8367d97 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -184,10 +184,17 @@ export const asyncRoutes = [ hidden: true }, { - path: 'certapp/:id/:action/', + path: 'certapp/:id/feedback/', name: 'Certappfeedback', component: () => import('@/views/certapp/certapphandle'), - meta: { title: '业务审核反馈', icon: 'example', perms: ['certapp_feedback'] }, + meta: { title: '审核反馈', icon: 'example', perms: ['certapp_feedback'] }, + hidden: true + }, + { + path: 'certapp/:id/test/', + name: 'Certapptest', + component: () => import('@/views/certapp/certapphandle'), + meta: { title: '检测任务', icon: 'example', perms: ['certapp_test'] }, hidden: true }, ] @@ -232,7 +239,6 @@ export const asyncRoutes = [ meta: { title: '任务反馈', noCache: true, icon: '', perms: ['feedbacks_create']}, hidden: true }, - ] }, { diff --git a/client/src/styles/index.scss b/client/src/styles/index.scss index 687eb0a..bacfa40 100644 --- a/client/src/styles/index.scss +++ b/client/src/styles/index.scss @@ -103,4 +103,8 @@ div:focus { // } .el-tabs__header { margin: 0 0 6px; +} + +ul { + padding-inline-start: 6px; } \ No newline at end of file diff --git a/client/src/views/accessment/access.vue b/client/src/views/accessment/access.vue index 7e97828..97b5a53 100644 --- a/client/src/views/accessment/access.vue +++ b/client/src/views/accessment/access.vue @@ -49,7 +49,7 @@
- 保存 + 保存
@@ -71,9 +71,15 @@ - -