Parcourir la source

增项申请bugfix, 前端代码分离; 准入申请-集中评审代码分离

baichengfei il y a 5 ans
Parent
commit
9b25453b92

+ 5 - 0
src/dashoo.cn/backend/api/controllers/base.go

@@ -356,6 +356,11 @@ func (this *BaseController) Prepare() {
 			fmt.Println("/api/suppliercert-listener/")
 			break
 		}
+		if strings.Contains(this.Ctx.Input.URL(), "/api/suppliercert-append-listener/") {
+			find = true
+			fmt.Println("/api/suppliercert-append-listener/")
+			break
+		}
 	}
 
 	if !find { // 如果是登录操作不做验证

+ 1 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercert.go

@@ -865,7 +865,7 @@ func (this *OilSupplierCertController) SeparateAuditEntity() {
 	}
 }
 
-// @Title 分办之后的各级审批  --审批 包含:二级单位初审、复审, 业务处室专业审核
+// @Title 分办之后的各级审批  --审批 包含:二级单位初审、复审, 业务处室专业审核, 集中评审
 // @Description 分办之后的各级审批
 // @Success	200	{object} controllers.Request
 // @router /common-audit/:id [post]

+ 9 - 9
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertappend.go

@@ -705,7 +705,7 @@ func (this *OilSupplierCertAppendController) CompanySubmitAuditEntity() {
 	processInstanceId := supplierCertAppendEntity.WorkFlowId
 	// 如果被驳回,不再新启工作流
 	if processInstanceId == "" {
-		processInstanceId = svcActiviti.StartProcess2(workflow.OIL_ENUSER_SUPPLIER_APPLY, businessKey, this.User.Id, "1", supplierCertAppendEntity.AppendType, supplierEntity.SupplierName)
+		processInstanceId = svcActiviti.StartProcess2(workflow.OIL_ENUSER_APPEND_APPLY, businessKey, this.User.Id, "1", supplierCertAppendEntity.AppendType, supplierEntity.SupplierName)
 		if len(processInstanceId) <= 0 {
 			panic("工作流启动失败!")
 		}
@@ -719,7 +719,7 @@ func (this *OilSupplierCertAppendController) CompanySubmitAuditEntity() {
 		"CommitComId",
 		"AuditIndex",
 	}
-	supplierCertAppendEntity.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	supplierCertAppendEntity.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	supplierCertAppendEntity.BusinessKey = businessKey
 	supplierCertAppendEntity.WorkFlowId = processInstanceId
 	supplierCertAppendEntity.CommitComId = unitId
@@ -727,7 +727,7 @@ func (this *OilSupplierCertAppendController) CompanySubmitAuditEntity() {
 	certSrv.UpdateEntityByIdCols(certAppendId, supplierCertAppendEntity, cols)
 
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = businessKey
 	ActiComplete.UserId = this.User.Id
 	ActiComplete.Result = "1" //提交给二级单位分办
@@ -803,7 +803,7 @@ func (this *OilSupplierCertAppendController) SeparateUnitSubmitAuditEntity() {
 		"CommitComId",
 		"AuditIndex",
 	}
-	supplierCertAppendEntity.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	supplierCertAppendEntity.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	supplierCertAppendEntity.BusinessKey = businessKey
 	supplierCertAppendEntity.WorkFlowId = processInstanceId
 	supplierCertAppendEntity.FirstAudit, _ = strconv.Atoi(firstAudit)
@@ -814,7 +814,7 @@ func (this *OilSupplierCertAppendController) SeparateUnitSubmitAuditEntity() {
 	certSrv.UpdateEntityByIdCols(certAppendId, supplierCertAppendEntity, cols)
 
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id // 当前审批操作人员
 	//ActiComplete.UserNames = secondAudit // 当前审批操作人员
@@ -872,7 +872,7 @@ func (this *OilSupplierCertAppendController) AppendSeparateAuditEntity() {
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id // 审批人员
 	// ActiComplete.UserNames = secondAudit // 初审人员
@@ -917,7 +917,7 @@ func (this *OilSupplierCertAppendController) AppendCommonAuditEntity() {
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id //审批人员
 	ActiComplete.Result = result       //前台审批[同意、不同意]
@@ -961,7 +961,7 @@ func (this *OilSupplierCertAppendController) AppendBusinessOfficeSeparateAuditEn
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id //审批人员
 	ActiComplete.Result = "1"          //前台审批[同意、不同意]
@@ -1014,7 +1014,7 @@ func (this *OilSupplierCertController) AppendConcentrateAuditEntity() {
 
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	var ActiComplete workflow.ActiCompleteVM
-	ActiComplete.ProcessKey = workflow.OIL_ENUSER_SUPPLIER_APPLY
+	ActiComplete.ProcessKey = workflow.OIL_ENUSER_APPEND_APPLY
 	ActiComplete.BusinessKey = supplierCertAppendEntity.BusinessKey
 	ActiComplete.UserId = this.User.Id //审批人员
 	ActiComplete.Result = "1"          //前台审批[同意、不同意] // TODO 前台选择的审批结果

+ 5 - 0
src/dashoo.cn/backend/api/routers/router.go

@@ -259,6 +259,11 @@ func init() {
 				&oilsupplier.OilSupplierCertListenerController{},
 			),
 		),
+		beego.NSNamespace("/suppliercert-append-listener",
+			beego.NSInclude(
+				&oilsupplier.OilSupplierCertAppendListenerController{},
+			),
+		),
 
 		beego.NSNamespace("/suppliercertsub",
 			beego.NSInclude(

+ 8 - 0
src/dashoo.cn/frontend_web/src/api/oilsupplier/supplierappend.js

@@ -47,6 +47,14 @@ export default {
       params: params
     })
   },
+  // 二级分办单位提交审批
+  SeparateUnitAuditEntity (entityId, params, myAxios) {
+    return myAxios({
+      url: '/suppliercertappend/unit-audit/' + entityId,
+      method: 'post',
+      params: params
+    })
+  },
   auditEntityFir (entityId, params, shenheform, myAxios) {
     return myAxios({
       url: '/suppliercertappend/auditEntityFir/' + entityId,

+ 2 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/goodsdataopera.vue

@@ -23,10 +23,8 @@
           </el-popover>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
-            v-if="auditBtn && this.formData.Status != '6'">{{auditTitle}}</el-button>
-            <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
-            v-if="this.formData.Status == '10'">分办</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status != '6'">{{auditTitle}}</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="this.formData.Status == '10'">分办</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px;"  onclick="window.history.go(-1)">返回</el-button>
         </span>
       </div>

+ 108 - 77
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -27,8 +27,8 @@
           <el-button type="primary" size="mini" style="margin-left: 8px"
                      v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5" @click="saveinfochange">保存
           </el-button>
-          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交
+          <el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
+            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审核
           </el-button>
           <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
             v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交
@@ -570,39 +570,6 @@
                 <span><i class="icon icon-table2"></i> 企业资质</span>
                 <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" >添加</el-button>
               </div>
-              <!--<el-table :data="subfileList" size="mini" border>-->
-                <!--<el-table-column label="操作" width="150" align="center" fixed>-->
-                  <!--<template slot-scope="scope">-->
-                    <!--<el-button type="primary" plain size="mini" title="上传" @click="openDialog(scope.row)"-->
-                               <!--:disabled="formData.Status > 0">上传-->
-                    <!--</el-button>-->
-                    <!--<el-button type="primary" plain size="mini" title="删除" style="margin-left:3px"-->
-                               <!--v-if="scope.row.FileType == '66'" @click="newdeletedata(scope.row)">删除</el-button>-->
-                  <!--</template>-->
-                <!--</el-table-column>-->
-                <!--<el-table-column prop="NeedFileType" label="资质名称" show-overflow-tooltip></el-table-column>-->
-                <!--<el-table-column label="贸易/制造" v-if="SupplierTypeCode == '01'" show-overflow-tooltip>-->
-                  <!--<template slot-scope="scope">-->
-                    <!--<span v-if="scope.row.IsManuf=='1'">制造商</span>-->
-                    <!--<span v-else-if="scope.row.IsManuf=='2'">贸易商</span>-->
-                    <!--<span v-else>通用</span>-->
-                  <!--</template>-->
-                <!--</el-table-column>-->
-                <!--<el-table-column prop="FileUrlList" label="资质文件" show-overflow-tooltip>-->
-                  <!--<template slot-scope="scope">-->
-                    <!--<div v-for="(tmpUrl, index) in scope.row.FileUrlList">-->
-                      <!--<a :href="fileurlcut(scope.row.FileUrl, index)" target="_blank"-->
-                         <!--class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>-->
-                    <!--</div>-->
-                  <!--</template>-->
-                <!--</el-table-column>-->
-                <!--<el-table-column prop="EffectDate" label="有效日期" show-overflow-tooltip>-->
-                  <!--<template slot-scope="scope">-->
-                    <!--{{ jstimehandle(scope.row.EffectDate+'') }}-->
-                  <!--</template>-->
-                <!--</el-table-column>-->
-                <!--<el-table-column prop="OtherRemark" label="描述" show-overflow-tooltip></el-table-column>-->
-              <!--</el-table>-->
               <el-table size="mini" highlight-current-row :data="subfileList1" border>
                 <el-table-column label="操作" width="150" align="center" fixed>
                   <template slot-scope="scope">
@@ -693,8 +660,8 @@
                 <el-table-column prop="Remark" label="描述" show-overflow-tooltip></el-table-column>
               </el-table>
               <div style="float: right; margin: 20px;">
-                <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitaudit"
-                           v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交
+                <el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
+                           v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审核
                 </el-button>
                 <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
                            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交
@@ -972,14 +939,11 @@
       <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
     </el-dialog>
 
-    <el-dialog title="提交初审" :visible.sync="AuditdialogShow" width="520px">
+    <el-dialog title="提交初审" :visible.sync="dialogSeparateUnitAuditVisible" width="520px">
       <el-form ref="searchForm" label-width="110px">
         <el-row>
           <el-col :span="24">
             <el-form-item label="初审人员">
-              <!--<el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">-->
-                <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>-->
-              <!--</el-input>-->
               <el-select ref="selectAuditer"
                          v-model="auditer"
                          placeholder="请选择初审人"
@@ -1023,12 +987,12 @@
         </el-row>
       </el-form>
       <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity" :loading="btnloading">确定</el-button>
+        <el-button size="mini" @click="dialogSeparateUnitAuditVisible = false">取 消</el-button>
+        <el-button size="mini" type="primary" @click="separateUnitSubmitAuditMakeSure" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
-    <el-dialog title="分办" :visible.sync="ComAuditdialogShow" width="520px">
+    <el-dialog title="分办" :visible.sync="dialogComSubmitToSeparateUnitVisible" width="520px">
       <el-form ref="searchForm" label-width="100px">
         <el-row>
           <el-col :span="24">
@@ -1062,7 +1026,7 @@
         </el-row>
       </el-form>
       <span slot="footer" class="dialog-footer">
-        <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
+        <el-button size="mini" @click="dialogComSubmitToSeparateUnitVisible = false">取 消</el-button>
         <el-button size="mini" type="primary" @click="SubpEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
@@ -1322,7 +1286,7 @@
         keyword: '',
         goodsList2019: [],
         goodsDialog: false,
-        tableloading:false,
+        tableloading: false,
 
         UnitOrg: '',
         allowpre: true,
@@ -1341,8 +1305,8 @@
         secauditerOptions: [],
         fushenauditer: '', // 复审人员
         majorDept: [100000000, 100000001, 100000071], // 专业可是
-        AuditdialogShow: false, // 提交审核弹框
-        ComAuditdialogShow: false,
+        dialogSeparateUnitAuditVisible: false, // 二级单位分办提交审核弹框
+        dialogComSubmitToSeparateUnitVisible: false,
         organizeOption: [], // 审批部门
         auditerOption: [], // 审批人
         SupplierformData: {},
@@ -2216,35 +2180,9 @@
         this.getFirAuditerByDept()
         this.changeOrgUnit(this.selectDept)
         this.AuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.AuditdialogShow = true
-        // }
       },
       commitfenban () {
-        this.ComAuditdialogShow = true
-        // if (this.subfileList && this.subfileList.length > 0) {
-        //   for (var i = 0; i < this.subfileList.length; i++) {
-        //     if (this.subfileList[i].FileType === 1 && this.subfileList[i].FileUrl === '') {
-        //       this.$message({
-        //         type: 'warning',
-        //         message: '请上传文件' + this.subfileList[i].NeedFileType + '!'
-        //       })
-        //       return
-        //     }
-        //   }
-        // } else {
-        //   this.ComAuditdialogShow = true
-        // }
+        this.dialogComSubmitToSeparateUnitVisible = true
       },
 
       // 根据分类Id获取Code
@@ -3355,7 +3293,100 @@
           console.error(err)
         })
       },
-
+      // 二级单位代为申请, 提交按钮
+      separateUnitSubmitClick () {
+        console.log('二级单位代为申请, 点击提交')
+        if ([2, 4, 6].includes(parseInt(this.formData.InStyle))) {
+          this.allowpre = false
+        } else {
+          this.changeOrgUnit(this.selectDept)
+          this.allowpre = true
+        }
+        this.getFirAuditerByDept()
+        this.dialogSeparateUnitAuditVisible = true
+      },
+      // 二级分办单位提交审批
+      separateUnitSubmitAuditMakeSure () {
+        console.log('二级分办单位,确认提交审批')
+        this.btnloading = true
+        this.separateUnitSubmitAuditParamsCheck()
+        let params = {
+          firstAudit: this.auditer,
+          SecondAudit: this.fushenauditer,
+          ThirdAudit: this.selectDept,
+          AuditRemark: this.auditform.AuditRemark
+        }
+        api2.SeparateUnitAuditEntity(this.formData.Id, params, this.$axios).then(res => {
+          if (res.data.code === 0) {
+            // 保存成功后,初始化数据,变成修改
+            this.getEntityById()
+            this.dialogSeparateUnitAuditVisible = false
+            this.$message({
+              type: 'success',
+              message: res.data.message
+            })
+          } else {
+            this.$message({
+              type: 'warning',
+              message: res.data.message
+            })
+          }
+          this.btnloading = false
+        }).catch(err => {
+          console.error(err)
+        })
+      },
+      // 二级分办单位提交审批参数检查
+      separateUnitSubmitAuditParamsCheck () {
+        if (this.myentityList == null || this.myentityList.length <= 0) {
+          this.$message({
+            type: 'warning',
+            message: '没有新增准入项,不能提交!'
+          })
+          return false
+        }
+        for (let idx in this.subfileList1) {
+          if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
+            this.$message({
+              type: 'warning',
+              message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
+            })
+            return
+          }
+        }
+        if (this.auditer === '') {
+          this.$message({
+            type: 'warning',
+            message: '请选择初审人!'
+          })
+          return
+        }
+        if (this.fushenauditer === '') {
+          this.$message({
+            type: 'warning',
+            message: '请选择复审人!'
+          })
+          return
+        }
+        if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
+          if (this.selectDept === 0 || this.selectDept === '') {
+            this.$message({
+              type: 'warning',
+              message: '请选择专业处室!'
+            })
+            return
+          }
+        }
+        if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
+          if (this.userOptions == null || this.userOptions.length === 0) {
+            this.$message({
+              type: 'warning',
+              message: '该专业科室未配置接收人!'
+            })
+            return false
+          }
+        }
+      },
       SubpEntity () {
         if (this.myentityList == null || this.myentityList.length <= 0) {
           this.$message({
@@ -3395,7 +3426,7 @@
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
             this.getEntityById()
-            this.ComAuditdialogShow = false
+            this.dialogComSubmitToSeparateUnitVisible = false
             this.$message({
               type: 'success',
               message: res.data.message

+ 81 - 14
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/goodsedit.vue

@@ -11,21 +11,14 @@
           <i class="icon icon-table2"></i> 审批-{{auditBtn}}
         </span>
         <span style="float: right;">
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()"
-            v-if="auditBtn && parseInt(this.formData.Status) === 1">初审</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()"
-            v-if="auditBtn && parseInt(this.formData.Status) === 2">复审</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="businessOfficeSeparateAuditClick()"
-            v-if="auditBtn && parseInt(this.formData.Status) === 3 && parseInt(this.formData.InStyle) !== 2">提交专业审核</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()"
-            v-if="auditBtn && parseInt(this.formData.Status) === 4 && parseInt(this.formData.InStyle) !== 2">专业审核</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity('5')"
-            v-if="auditBtn && parseInt(this.formData.Status) === 5">集中评审</el-button>
-          <!--&& this.formData.InStyle != '3'-->
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="secUnitSeparateAuditClick()"
-            v-if="parseInt(this.formData.Status) === 10">分办</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && parseInt(this.formData.Status) === 1">初审</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && parseInt(this.formData.Status) === 2">复审</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="businessOfficeSeparateAuditClick()" v-if="auditBtn && parseInt(this.formData.Status) === 3 && parseInt(this.formData.InStyle) !== 2">提交专业审核</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && parseInt(this.formData.Status) === 4 && parseInt(this.formData.InStyle) !== 2">专业审核</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="concentrateAuditClick()" v-if="auditBtn && parseInt(this.formData.Status) === 5">集中评审</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="secUnitSeparateAuditClick()" v-if="parseInt(this.formData.Status) === 10">分办</el-button>
           <!--<router-link>-->
-            <el-button type="primary" size="mini" style="margin-left: 8px" onclick="window.history.go(-1)">返回</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" onclick="window.history.go(-1)">返回</el-button>
           <!--</router-link>-->
         </span>
       </div>
@@ -213,6 +206,25 @@
         <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
+    <el-dialog :title="atitle" :visible.sync="dialogConcentrateAuditVisible">
+      <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
+        <el-form-item label="审核状态">
+          <template>
+            <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1" @change="radioChange">通过</el-radio>
+            <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2" @change="radioChange">退回</el-radio>
+          </template>
+        </el-form-item>
+        <el-form-item porp="AuditorRemark" label="意见"
+                      :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
+          <el-input type="textarea" v-model="shenheForm.AuditorRemark" :placeholder="textplaceholder"
+                    minlength="20"></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer" style="margin-top: -25px">
+        <el-button size="small" @click="dialogConcentrateAuditVisible = false">取 消</el-button>
+        <el-button type="primary" size="small" @click="concentrateAuditEntityMakeSure()" :loading="loading">确 定</el-button>
+      </div>
+    </el-dialog>
     <el-dialog :title="atitle" :visible.sync="dialogCommonAuditMakeSureVisible">
       <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
         <el-form-item label="审核状态">
@@ -448,6 +460,7 @@
         dialogMakeSure: false,
         dialogMakeSure2: false,
         dialogBusinessOfficeSeparateAuditVisible: false,
+        dialogConcentrateAuditVisible: false,
         add_flat: false,
         delete_flat: true,
         aduitlabel: '审核人',
@@ -1179,6 +1192,60 @@
           console.error(err)
         })
       },
+      // 集中评审按钮
+      concentrateAuditClick () {
+        console.log('集中评审按钮')
+        this.dialogConcentrateAuditVisible = true
+        this.radioChange()
+      },
+      concentrateAuditEntityMakeSure () {
+        console.log('集中评审提交审核结果')
+        this.concentrateAuditParamsCheck()
+        this.loading = true
+        let params = {
+          result: this.shenheForm.SuccessStatus,
+          AuditRemark: this.shenheForm.AuditorRemark
+        }
+        apiCert.commonAuditEntity(this.certId, params, this.$axios).then(res => {
+          if (res.data.code === 0) {
+            console.log('审批提交,成功返回')
+            this.initDatas()
+            this.$message({
+              type: 'success',
+              message: res.data.message
+            })
+            this.dialogConcentrateAuditVisible = false
+          } else {
+            this.$message({
+              type: 'warning',
+              message: res.data.message
+            })
+          }
+          this.loading = false
+        }).catch(err => {
+          console.error(err)
+        })
+      },
+      concentrateAuditParamsCheck () {
+        console.log('集中评审提交参数检查')
+        if (this.shenheForm.SuccessStatus === 1) {
+          if (this.shenheForm.AuditorRemark.trim().length < 1) {
+            this.$message({
+              type: 'warning',
+              message: '请填写审批意见!'
+            })
+            return false
+          }
+        } else {
+          if (this.shenheForm.AuditorRemark.trim().length < 1) {
+            this.$message({
+              type: 'warning',
+              message: '请填写退回意见!'
+            })
+            return false
+          }
+        }
+      },
       // 审核通过
       makeSure () {
         if (this.shenheForm.SuccessStatus === 1) {