From c3fbfa02fa74c4149ccf9ed564000815cb2ba635 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 29 Oct 2020 08:40:29 +0800 Subject: [PATCH] 1029 --- client/src/router/index.js | 9 +- client/src/views/accessment/access.vue | 4 +- client/src/views/accessment/index.vue | 89 +++++++++++++- client/src/views/certapp/certapphandle.vue | 2 +- client/src/views/certificate/issue.vue | 3 + client/src/views/certificate/issueindex.vue | 112 +++++++++++++++--- server/apps/accessment/serializers.py | 43 +------ server/apps/accessment/views.py | 11 +- server/apps/crm/serializers.py | 20 ++-- server/apps/plan/views.py | 19 ++- .../migrations/0054_certappunit_assessor.py | 21 ++++ server/apps/project/models.py | 4 +- server/apps/project/views.py | 16 ++- 13 files changed, 264 insertions(+), 89 deletions(-) create mode 100644 server/apps/project/migrations/0054_certappunit_assessor.py diff --git a/client/src/router/index.js b/client/src/router/index.js index 8367d97..2ec4675 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -152,7 +152,7 @@ export const asyncRoutes = [ path: 'certapp/:id/:action/', name: 'Certappmember', component: () => import('@/views/certapp/certapphandle'), - meta: { title: '派人', icon: 'example', perms: ['plan_view'] }, + meta: { title: '派差', icon: 'example', perms: ['plan_view'] }, hidden: true }, ] @@ -289,6 +289,13 @@ export const asyncRoutes = [ meta: { title: '证书颁发', icon: 'example', perms: ['certificate_issue'] }, hidden: true }, + { + path: 'certapp/:id/issue/', + name: 'Certappissue', + component: () => import('@/views/certapp/certapphandle'), + meta: { title: '发证/通知', icon: 'example', perms: ['certapp_issue'] }, + hidden: true + }, ] }, { diff --git a/client/src/views/accessment/access.vue b/client/src/views/accessment/access.vue index 97b5a53..64d3036 100644 --- a/client/src/views/accessment/access.vue +++ b/client/src/views/accessment/access.vue @@ -218,7 +218,7 @@ getDictList({type__code:'cert_decision', pageoff:true}).then(res=>{ if (!valid) return; accessCertapp(this.certapp, this.formData).then((res) => { this.$message.success('成功') - }); + }) }); }, handleAcessunit(val,id){ @@ -227,7 +227,7 @@ getDictList({type__code:'cert_decision', pageoff:true}).then(res=>{ this.formData.state = res.data.state this.$emit("stateChange", res.data.state); this.$emit("flowChange"); - }) + }).catch(()=>{this.getUnitList()}) } } diff --git a/client/src/views/accessment/index.vue b/client/src/views/accessment/index.vue index 59e6444..8b14137 100644 --- a/client/src/views/accessment/index.vue +++ b/client/src/views/accessment/index.vue @@ -35,15 +35,19 @@ >刷新 + +
+ 待评定业务 +
@@ -99,6 +103,55 @@ :limit.sync="listQuery.page_size" @pagination="getList" /> +
+ +
+ 本业务认证单元 +
+ + + + + + + + + + + + + + + + + + + + + +
diff --git a/client/src/views/certapp/certapphandle.vue b/client/src/views/certapp/certapphandle.vue index 26ed05c..d31f312 100644 --- a/client/src/views/certapp/certapphandle.vue +++ b/client/src/views/certapp/certapphandle.vue @@ -44,7 +44,7 @@ - + diff --git a/client/src/views/certificate/issue.vue b/client/src/views/certificate/issue.vue index 5dc150b..1a17d6b 100644 --- a/client/src/views/certificate/issue.vue +++ b/client/src/views/certificate/issue.vue @@ -14,6 +14,9 @@ + + +