lining 6 tahun lalu
induk
melakukan
9ebe49cafc

+ 1 - 0
src/dashoo.cn/backend/api/business/oilsupplier/annualaudit/annualaudit.go

@@ -11,6 +11,7 @@ type OilAnnualAudit struct {
 	Step             int       `xorm:"comment('页面上第几步') INT(10)"`
 	AuditIndex       int       `xorm:"default 0 comment('审批次数') INT(11)"`
 	BusinessKey      string    `xorm:"VARCHAR(255)"`
+	FenbanAudit      int       `xorm:"default 0 comment('分办') INT(10)"`
 	FirstAudit       int       `xorm:"default 0 comment('初审') INT(10)"`
 	SecondAudit      int       `xorm:"default 0 comment('复审') INT(10)"`
 	ThirdAudit       int       `xorm:"default 0 comment('专业科室审批') INT(10)"`

+ 114 - 2
src/dashoo.cn/backend/api/controllers/oilsupplier/annualaudit.go

@@ -606,7 +606,8 @@ func (this *AnnualAuditController) AddEntity() {
 	svcActiviti := workflow.GetActivitiService(utils.DBE)
 	//启动工作流
 	businessKey := utils.ToStr(annualId) + "-" + strconv.Itoa(model.AuditIndex)
-	processInstanceId := svcActiviti.StartProcess(workflow.OIL_AUDIT_APPLY, businessKey, this.User.Id)
+	result := strconv.Itoa(this.User.IsCompanyUser)
+	processInstanceId := svcActiviti.StartProcess2(workflow.OIL_AUDIT_APPLY, businessKey, this.User.Id, result)
 	//var ActiComplete workflow.ActiCompleteVM
 	//ActiComplete.ProcessKey = workflow.OIL_AUDIT_APPLY
 	//ActiComplete.BusinessKey = businessKey
@@ -663,6 +664,100 @@ func (this *AnnualAuditController) getTimeSub(t1, t2 time.Time) int {
 // @Success	200	{object} controllers.Request
 // @router /addauditcomm [post]
 func (this *AnnualAuditController) AddAuditEntity() {
+	var model ComShenHeModel
+	var errinfo ErrorDataInfo
+	var jsonBlob = this.Ctx.Input.RequestBody
+	svc := annualaudit.GetOilAnnualAuditService(utils.DBE)
+	annualId := this.GetString("AnnualId")
+	firstAudit := this.GetString("FirstAuditName")
+	//secondAudit := this.GetString("SecondAudit")
+	//thirdAudit := this.GetString("ThirdAudit")
+	json.Unmarshal(jsonBlob, &model)
+	//where := "CerId = " + utils.ToStr(model.SupplierId) + " and SupplierTypeName = " + model.SupplierTypeName
+	var auditentity annualaudit.OilAnnualAudit
+	svc.GetEntityById(annualId, &auditentity)
+	historworkflowid := auditentity.WorkflowId
+	svcActiviti := workflow.GetActivitiService(utils.DBE)
+	statusint, _ := strconv.Atoi(auditentity.Status)
+	var ActiComplete workflow.ActiCompleteVM
+	var auditmodel annualaudit.OilAnnualAudit
+	result := strconv.Itoa(this.User.IsCompanyUser)
+	//重新工作流
+	if statusint < 0 {
+		businessKey := utils.ToStr(annualId) + "-" + strconv.Itoa(auditentity.AuditIndex)
+		processInstanceId := svcActiviti.StartProcess2(workflow.OIL_AUDIT_APPLY, businessKey, this.User.Id, result)
+		ActiComplete.BusinessKey = businessKey
+		auditmodel.WorkflowId = processInstanceId
+		auditmodel.BusinessKey = businessKey
+	} else {
+		auditmodel.WorkflowId = auditentity.WorkflowId
+		ActiComplete.BusinessKey = auditentity.BusinessKey
+		auditmodel.BusinessKey = auditentity.BusinessKey
+
+	}
+	ActiComplete.ProcessKey = workflow.OIL_AUDIT_APPLY
+	ActiComplete.UserNames = firstAudit
+	ActiComplete.UserId = this.User.Id
+	ActiComplete.Result = result
+	ActiComplete.Remarks = model.Remark
+	ActiComplete.CallbackUrl = ""
+
+	//提交给二级单位初审
+	receiveVal := svcActiviti.TaskComplete(ActiComplete)
+	if statusint < 0 {
+		// 存储审批历史
+		var audithistoryentity audithistory.Base_AuditHistory
+		audithistoryentity.EntityId, _ = strconv.Atoi(annualId)
+		audithistoryentity.WorkflowId = historworkflowid
+		audithistoryentity.Process = workflow.OIL_AUDIT_APPLY
+		audithistoryentity.BusinessKey = auditentity.BusinessKey
+		audithistoryentity.Type = model.SupplierTypeName
+		audithistoryentity.BackStep = utils.ToStr(auditentity.Status)
+		audithistoryentity.Index = auditentity.AuditIndex
+		audithistoryentity.CreateOn = time.Now()
+		audithistoryentity.CreateBy = this.User.Realname
+		audithistoryentity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
+		svc.InsertEntity(audithistoryentity)
+	}
+	auditmodel.Status = suppliercert.FEN_TRIAL_STATUS //二级单位初审
+	auditmodel.FenbanAudit,_ = strconv.Atoi(firstAudit)
+	cols := []string{
+		"Id",
+		"WorkflowId",
+		"FenbanAudit",
+		"Status",
+		"BusinessKey",
+	}
+	if receiveVal == "true" {
+		_, err := svc.UpdateEntityByIdCols(annualId, auditmodel, cols)
+		if err == nil {
+			//新增
+			errinfo.Message = "提交成功!"
+			errinfo.Code = 0
+			errinfo.Item = auditmodel.Status
+			this.Data["json"] = &errinfo
+			this.ServeJSON()
+		} else {
+			errinfo.Message = "提交失败!" + utils.AlertProcess(err.Error())
+			errinfo.Code = -1
+			this.Data["json"] = &errinfo
+			this.ServeJSON()
+		}
+	} else {
+		errinfo.Message = "工作流异常,请联系管理员!"
+		errinfo.Code = -1
+		this.Data["json"] = &errinfo
+		this.ServeJSON()
+	}
+
+}
+
+
+// @Title 提交审批-分办
+// @Description 提交审批
+// @Success	200	{object} controllers.Request
+// @router /addauditcommfen [post]
+func (this *AnnualAuditController) AddAuditEntityFen() {
 	var model ComShenHeModel
 	var errinfo ErrorDataInfo
 	var jsonBlob = this.Ctx.Input.RequestBody
@@ -751,7 +846,6 @@ func (this *AnnualAuditController) AddAuditEntity() {
 		this.Data["json"] = &errinfo
 		this.ServeJSON()
 	}
-
 }
 
 // @Title 删除单条信息
@@ -823,6 +917,9 @@ func (this *AnnualAuditController) AnnualAudit() {
 	var errinfo ErrorInfo
 	json.Unmarshal(jsonblob, &dataother)
 	ProfAudit := this.GetString("ProfAudit")
+	firstAudit := this.GetString("FirstAudit")
+	secondAudit := this.GetString("SecondAudit")
+	thirdAudit := this.GetString("ThirdAudit")
 	var list annualaudit.OilAnnualAudit
 	where := " Id = '" + strconv.Itoa(dataother.AnnualId) + "'"
 	svc.GetEntityByWhere(""+OilAnnualAuditName, where, &list)
@@ -836,6 +933,21 @@ func (this *AnnualAuditController) AnnualAudit() {
 	status := ""
 	backstatus := "0"
 	var userIds string
+	if list.Status == suppliercert.FEN_TRIAL_STATUS {
+		userIds = firstAudit
+		status = suppliercert.FIRST_TRIAL_STATUS
+		step = 2
+		backstatus = suppliercert.NOPASS_STATUS
+		list.FirstAudit,_ = strconv.Atoi(firstAudit)
+		list.SecondAudit,_ = strconv.Atoi(secondAudit)
+		list.ThirdAudit,_ = strconv.Atoi(thirdAudit)
+		cols := []string{
+			"FirstAudit",
+			"SecondAudit",
+			"ThirdAudit",
+		}
+		svc.UpdateEntityByIdCols(dataother.AnnualId, list, cols)
+	}
 	if list.Status == suppliercert.FIRST_TRIAL_STATUS {
 		userIds = utils.ToStr(list.SecondAudit)
 		status = suppliercert.SECOND_TRIAL_STATUS

+ 16 - 0
src/dashoo.cn/frontend_web/src/api/oilsupplier/annualaudit.js

@@ -66,6 +66,14 @@ export default {
       params: params
     })
   },
+  commitauditEntityFen (formData, params, myAxios) {
+    return myAxios({
+      url: '/annualaudit/addauditcommfen',
+      method: 'post',
+      data: formData,
+      params: params
+    })
+  },
   supupdateEntity (entityId, formData, myAxios) {
     return myAxios({
       url: '/annualaudit/suppupdate/' + entityId + '/' + formData.SupplierTypeCode + '/' + formData.InStyle,
@@ -98,5 +106,13 @@ export default {
       url: '/annualaudit/iscanapply/' + typeCode,
       method: 'get'
     })
+  },
+  Auditfirst (formData, params, myAxios) {
+    return myAxios({
+      url: '/annualaudit/auditfirst',
+      method: 'put',
+      data: formData,
+      params: params
+    })
   }
 }

+ 165 - 25
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/auditoperation.vue

@@ -34,6 +34,8 @@
             v-if="auditBtn && AnnualStatus == '3'">提交专业审核</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
             v-if="auditBtn && AnnualStatus == '4'">专业审核</el-button>
+          <el-button type="primary" style="margin-left: 8px;" size="mini" @click="fenbanBtn" v-if="auditBtn && AnnualStatus == '10'">
+            提交分办</el-button>
           <el-button type="primary" size="mini" style="margin-left: 8px;" onclick="window.history.go(-1)">返回</el-button>
         </span>
       </div>
@@ -235,6 +237,44 @@
         <el-button size="mini" type="primary" @click="checkstatus()">确定</el-button>
       </span>
     </el-dialog>
+    <el-dialog title="提交申请" :visible.sync="addshow" width="520px">
+      <el-form label-width="90px" :model="shenheForm" ref="EntityFormref">
+        <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-form-item>
+            <el-form-item label="复审人员">
+              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
+                         allow-create default-first-option>
+                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
+                </el-option>
+              </el-select>
+            </el-form-item>
+            <el-form-item label="专业处室">
+              <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
+                           style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
+              </el-cascader>
+            </el-form-item>
+          </el-col>
+          <el-col :span="24">
+            <el-form-item label="说明">
+              <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入说明内容">
+              </el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+      </el-form>
+      <span style="float: right;margin-top:-10px;">
+        <el-button size="small" @click="addshow = false">取 消</el-button>
+        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+      </span>
+      <br>
+    </el-dialog>
+    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
+                    :visible="chooseAuditorVisible"></choose-auditor>
   </div>
 </template>
 
@@ -243,7 +283,7 @@
     mapGetters
   } from 'vuex'
   import annualapi from '@/api/oilsupplier/annualaudit'
-import api from '@/api/oilsupplier/supplier'
+  import api from '@/api/oilsupplier/supplier'
   import apiCert from '@/api/oilsupplier/suppliercert'
   import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
   import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
@@ -257,6 +297,7 @@ import api from '@/api/oilsupplier/supplier'
   import AuditbusList from '@/components/oilsupplier/auditbuslist'
   import SubfileList from '@/components/oilsupplier/subfilelist'
   import WfHistory from '@/components/workflow/wfmultihistory.vue'
+  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
 
   export default {
     computed: {
@@ -275,12 +316,18 @@ import api from '@/api/oilsupplier/supplier'
       WinningList, // 近三年省部级及以上获奖项目列表
       BusinessList, // 选择准入范围
       AuditbusList, // 待审核业务
-      TechInfo
+      TechInfo,
+      ChooseAuditor
     },
     name: 'oiltechnologyserviceEdit',
 
     data () {
       return {
+        addshow: false,
+        chooseAuditorVisible: false,
+        auditer: '',
+        auditerName: '',
+        fushenauditer: '',
         auditBtn: false,
         textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
         audithistoryshow: false,
@@ -288,8 +335,9 @@ import api from '@/api/oilsupplier/supplier'
         canUpdateSupplier: true,
         dictData: null,
         applyLoading: false,
+        userOptions: [],
         subfileList: [],
-        majorDept: [],
+        majorDept: [100000000, 100000001, 100000071],
         auditbusList: [], // 待审核业务
         secauditerOptions: [], // 专业审批人
         secorgtreelist: [], // 专业审核人部门
@@ -425,7 +473,7 @@ import api from '@/api/oilsupplier/supplier'
     created () {
       this.companyid = this.authUser.Profile.Superior
       this.serviceId = this.$route.params.opera
-    if (this.$route.query.certid) {
+      if (this.$route.query.certid) {
         this.certId = this.$route.query.certid + ''
       }
 
@@ -439,8 +487,60 @@ import api from '@/api/oilsupplier/supplier'
       this.getorgtreelist()
       this.getannualdata()
       // this.getorgtreelistbydeptid()
+      this.orgtreeChange(this.majorDept)
     },
     methods: {
+      fenbanBtn () {
+        this.shenheForm.AnnualId = parseInt(this.annualId)
+        this.addshow = true
+      },
+      orgtreeChange (val) {
+        this.userOptions = []
+        if (val) {
+          let deptid = val[val.length - 1]
+          let auditstepcode = 'PROF_RECE'
+          api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
+            this.userOptions = res.data.item
+          }).catch(err => {
+            console.error(err)
+          })
+        }
+      },
+      chooseAuditorShow () {
+        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
+        this.chooseAuditorVisible = true
+      },
+      getstatus (annid) {
+        annualapi.getEntity(annid, this.$axios)
+          .then(res => {
+            this.formannData = res.data
+            this.AnnualStatus = this.formannData.Status
+            this.entrydetail.business = this.formannData.Id
+            this.entrydetail.instance = this.formannData.WorkflowId
+            this.entrydetail.Status = this.formannData.Status
+          })
+          .catch(err => {
+            console.error(err)
+          })
+      },
+      setAuditer (val, name) {
+        this.auditer = val
+        this.auditerName = name
+        this.chooseAuditorVisible = false
+        this.auditOrgChang(this.auditer)
+      },
+      auditOrgChang (val) {
+        let auditstepcode = 'SECOND_TRIAL'
+        api
+          .getAuditerByFirst(val, auditstepcode, this.$axios)
+          .then(res => {
+            this.secauditerOptions = res.data.item
+          })
+          .catch(err => {
+            console.error(err)
+          })
+      },
+
       inputCompany (val) {
         if (!this.certId) {
           api.getEntityByName(val, this.$axios).then(res => {
@@ -469,13 +569,15 @@ import api from '@/api/oilsupplier/supplier'
               this.auditstepcode = 'PROF_RECE'
             } else if (this.anndata.Status === '4') {
               this.auditstepcode = 'PROF_AUDIT'
+            } else if (this.anndata.Status === '10') {
+              this.auditstepcode = 'SUB_OFFICE_NS'
             }
           }
           this.isAccess()
         }).catch(err => {
           console.error(err)
         })
-    },
+      },
       isAccess () {
         let params = {
           id: this.anndata.Id,
@@ -616,12 +718,12 @@ import api from '@/api/oilsupplier/supplier'
             this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
             if (this.certId && this.WorkflowId) {
-              this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流*/
+              this.$refs['WfHistory'].getHistoryTask() /*  刷新工作流 */
             }
           }).catch(err => {
             console.error(err)
           })
-      }
+        }
       },
 
       // 审批历史
@@ -641,7 +743,6 @@ import api from '@/api/oilsupplier/supplier'
       },
 
       getorgtreelist () {
-        let _this = this
         let params = {
           IsInnerOrganize: 1
         }
@@ -689,29 +790,67 @@ import api from '@/api/oilsupplier/supplier'
       },
       // 审核通过
       makeSure () {
-        if (this.shenheForm.SuccessStatus === 1) {
-          if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3') {
+        if (this.AnnualStatus == '10') {
+          if (this.auditer === '') {
             this.$message({
               type: 'warning',
-              message: '审批意见不能低于20个字符!'
+              message: '请选择审批人!'
             })
             return
           }
-        } else {
-          if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3') {
+          if (this.fushenauditer === '') {
+            this.$message({
+              type: 'warning',
+              message: '请选择复审人!'
+            })
+            return
+          }
+          if (this.majorDept.length === 0) {
+            this.$message({
+              type: 'warning',
+              message: '请选择专业处室!'
+            })
+            return
+          }
+          if (this.userOptions.length === 0) {
             this.$message({
               type: 'warning',
-              message: '退回意见不能低于5个字符!'
+              message: '该专业科室未配置接收人!'
             })
             return
           }
+        } else {
+          if (this.shenheForm.SuccessStatus === 1) {
+            if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3') {
+              this.$message({
+                type: 'warning',
+                message: '审批意见不能低于20个字符!'
+              })
+              return
+            }
+          } else {
+            if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3') {
+              this.$message({
+                type: 'warning',
+                message: '退回意见不能低于5个字符!'
+              })
+              return
+            }
+          }
         }
         this.checkstatus()
       },
       checkstatus () {
         this.shenheForm.SuccessStatus = parseInt(this.shenheForm.SuccessStatus)
-        let params = this.shenheForm
-        this.$axios.put('/annualaudit/auditfirst?ProfAudit=' + this.ProfAuditThen, params)
+        let params = {
+          ProfAudit: this.ProfAuditThen,
+          FirstAudit: this.auditer,
+          SecondAudit: this.fushenauditer,
+          ThirdAudit: this.majorDept[this.majorDept.length - 1]
+        }
+        console.log(params, this.shenheForm)
+        // this.$axios.put('/annualaudit/auditfirst?ProfAudit=' + this.ProfAuditThen, params)
+        annualapi.Auditfirst(this.shenheForm, params, this.$axios)
           .then(res => {
             // response
             if (res.data.code === 0) {
@@ -722,6 +861,7 @@ import api from '@/api/oilsupplier/supplier'
               this.getannualdata()
               this.dialogMakeSure = false
               this.dialogProfAudit = false
+              this.addshow = false
             } else {
               this.$message({
                 type: 'warning',
@@ -750,15 +890,15 @@ import api from '@/api/oilsupplier/supplier'
 
       formatDateTime (date) {
         var y = date.getFullYear()
-      var m = date.getMonth() + 1
-      m = m < 10 ? ('0' + m) : m
-      var d = date.getDate()
-      d = d < 10 ? ('0' + d) : d
-      var h = date.getHours()
-      var minute = date.getMinutes()
-      minute = minute < 10 ? ('0' + minute) : minute
-      return y + '-' + m + '-' + d + ' ' + h + ':' + minute
-    }
+        var m = date.getMonth() + 1
+        m = m < 10 ? ('0' + m) : m
+        var d = date.getDate()
+        d = d < 10 ? ('0' + d) : d
+        var h = date.getHours()
+        var minute = date.getMinutes()
+        minute = minute < 10 ? ('0' + minute) : minute
+        return y + '-' + m + '-' + d + ' ' + h + ':' + minute
+      }
     }
   }
 </script>

+ 0 - 929
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -1,929 +0,0 @@
-<template>
-  <div>
-    <el-breadcrumb class="heading">
-      <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item :to="{ path: '/oilsupplier/annualaudit' }">年审基本信息表</el-breadcrumb-item>
-      <el-breadcrumb-item>编辑</el-breadcrumb-item>
-    </el-breadcrumb>
-    <el-card class="box-card">
-      <div slot="header" class="clearfix">
-        <span>年审基本信息表</span>
-        <span style="float: right;">
-          <!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批历史</el-button> -->
-          <!-- <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button> -->
-          <el-popover>
-            <el-steps :active="Step" direction="vertical" align-center finish-status="success">
-              <el-step title="填写信息"></el-step>
-              <el-step title="提交审批"></el-step>
-              <el-step title="审批完成"></el-step>
-              <el-step title="供方交费"></el-step>
-              <el-step title="完成"></el-step>
-            </el-steps>
-            <!-- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button> -->
-          </el-popover>
-          <el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status <= 0">提交审核</el-button>
-          <router-link :to="'/oilsupplier/annualaudit/basicindex'">
-            <el-button type="primary" size="mini" style="margin-left: 8px;">返回</el-button>
-          </router-link>
-        </span>
-
-      </div>
-
-      <!-- <el-steps :active="Step" simple align-center finish-status="success">
-        <el-step title="填写信息"></el-step>
-        <el-step title="提交审批"></el-step>
-        <el-step title="审批完成"></el-step>
-        <el-step title="供方交费"></el-step>
-        <el-step title="完成"></el-step>
-      </el-steps> -->
-
-      <el-tabs tab-position="top" style="margin-top: 20px" v-model="activeName" size="mini">
-        <el-tab-pane label="企业信息">
-          <el-card class="box-card">
-            <div slot="header" class="clearfix">
-              <span>供方基本信息表</span>
-              <span style="float: right;">
-                <el-button type="primary" size="mini" @click="saveEntity" v-if="Status <= 0">保存基本信息
-                </el-button>
-              </span>
-            </div>
-            <basis-info ref="BasisInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"
-              :disabled="savebtn" :canUpdateSupplier="canUpdateSupplier" :appendStatus = "true" @selectcompany="changeFormData" @inputcompany="inputCompany">
-            </basis-info>
-          </el-card>
-        </el-tab-pane>
-
-        <el-tab-pane label="企业情况">
-          <el-card class="box-card">
-            <div slot="header" class="clearfix">
-              <span>企业人员结构情况</span>
-              <span style="float: right;">
-              <el-button type="primary" size="mini" @click="updateNumberEntity()" v-if="Status <= 0">
-                  保存人员结构情况</el-button>
-              </span>
-            </div>
-
-            <el-form label-width="220px" ref="EntityFormNumber" :model="formDataCert" :disabled="savebtn">
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="企业员工总数">
-                    <el-input-number v-model="formDataCert.WorkerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="合同化用工数量">
-                    <el-input-number v-model="formDataCert.ContractNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="大学及以上学历人员数量">
-                    <el-input-number v-model="formDataCert.UniversityNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="技术、管理人员数量">
-                    <el-input-number v-model="formDataCert.TechnicalNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="高级及以上职称人员数量">
-                    <el-input-number v-model="formDataCert.AboveProfNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="中级职称人员数量">
-                    <el-input-number v-model="formDataCert.MiddleProfNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="具有国家注册执业资格人员数量">
-                    <el-input-number v-model="formDataCert.NationalRegNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="具有国家注册执业资格证书总数">
-                    <el-input-number v-model="formDataCert.NationalCertTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="设计人员总数">
-                    <el-input-number v-model="formDataCert.DesignerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="技术工人总数">
-                    <el-input-number v-model="formDataCert.SkillerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </el-form>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>企业主要装备情况</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog" v-if="Status <= 0">添加</el-button>
-            </div>
-            <equipment-list ref="equipmentList" :canadd="add_flat" :data="equipmentList" :SupplierCertId="certId"
-              :SupplierTypeCode="classId" height="360px" style="margin-top: 20px"></equipment-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>近三年主要工程业绩</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog" v-if="Status <= 0">添加</el-button>
-            </div>
-            <performance-list ref="performanceList" :canadd="add_flat" :data="performanceList" :SupplierCertId="certId" :disabled="true"
-              :SupplierTypeCode="classId" height="360px" style="margin-top: 20px"></performance-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>专利及专有技术</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog" v-if="Status <= 0">添加</el-button>
-            </div>
-            <patent-list ref="patentList" :data="patentList" :canadd="add_flat" :SupplierCertId="certId" :SupplierTypeCode="classId"
-              height="360px" style="margin-top: 20px">
-            </patent-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>近三年省部级及以上获奖项目</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog" v-if="Status <= 0">添加</el-button>
-            </div>
-            <winning-list ref="winningList" :data="winningList" :canadd="add_flat" :SupplierCertId="certId" :SupplierTypeCode="classId"
-              height="360px" style="margin-top: 20px">
-            </winning-list>
-          </el-card>
-        </el-tab-pane>
-
-        <el-tab-pane label="准入范围" :disabled="!certId">
-          <business-list ref="businessList" :data.sync="businessList" :canadd="false" height="360px"
-            style="margin-top: 20px"></business-list>
-        </el-tab-pane>
-
-        <el-tab-pane label="企业资质" :disabled="!certId">
-          <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="false" height="360px" style="margin-top: 20px"></subfile-list>
-        </el-tab-pane>
-
-        <el-tab-pane label="提交审批">
-          <el-card class="box-card" style="height: 800px">
-            <div slot="header" class="clearfix">
-              <span>审批流程</span>
-              <!-- <span style="float: right;">
-                <el-button type="primary" size="mini" :disabled="formDataCert.Status > 0" :loading="applyLoading"
-                  @click="AuditEntity">提交审批
-                </el-button>
-              </span> -->
-            </div>
-            <wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
-          </el-card>
-        </el-tab-pane>
-      </el-tabs>
-    </el-card>
-    <el-dialog title="提交申请" :visible.sync="addshow" width="520px">
-      <el-form label-width="90px" :model="entityForm" :rules="rules" ref="EntityFormref">
-        <el-row>
-          <el-col :span="24">
-            <!-- <el-form-item label="审批人" prop="auditer" required>
-              <el-select ref="selectAuditer" v-model="entityForm.auditer" placeholder="请选择" style="width: 100%"
-                filterable allow-create default-first-option>
-                <el-option v-for="item in auditerOption" :key="item.id" :label="item.realname" :value="item.id">
-                </el-option>
-              </el-select>
-            </el-form-item> -->
-            <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-form-item>
-            <el-form-item label="复审人员">
-              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
-                allow-create default-first-option>
-                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-            <el-form-item label="专业处室">
-              <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
-                style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
-              </el-cascader>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="说明">
-              <el-input v-model="entityForm.Remark" type="textarea" placeholder="请输入说明内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span style="float: right;margin-top:-10px;">
-        <el-button size="small" @click="addshow = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
-      </span>
-      <br>
-    </el-dialog>
-    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
-      :visible="chooseAuditorVisible"></choose-auditor>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-  import api from '@/api/oilsupplier/supplier'
-  import annualapi from '@/api/oilsupplier/annualaudit'
-import apiCert from '@/api/oilsupplier/suppliercert'
-  import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
-  import WfHistory from '@/components/workflow/wfmultihistory.vue'
-  import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
-
-  import EquipmentList from '@/components/oilsupplier/equipmentlist'
-  import PerformanceList from '@/components/oilsupplier/performancelist'
-  import PatentList from '@/components/oilsupplier/patentlist'
-  import WinningList from '@/components/oilsupplier/winninglist'
-  import BusinessList from '@/components/oilsupplier/businesslist'
-  import BasisInfo from '@/components/oilsupplier/basisinfo'
-  import AuditbusList from '@/components/oilsupplier/auditbuslist'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import SubfileList from '@/components/oilsupplier/subfilelist'
-
-  export default {
-    computed: {
-      ...mapGetters({
-        authUser: 'authUser'
-      })
-    },
-    components: {
-      SupplierFileTable,
-      SupplierCertEdit,
-      SubfileList, // 选择企业资质
-      EquipmentList, // 企业主要装备情况
-      PerformanceList, // 近三年主要工程业绩列表
-      PatentList, // 专利及专有技术列表
-      WinningList, // 近三年省部级及以上获奖项目列表
-      BusinessList, // 选择准入范围
-      AuditbusList, // 待审核业务
-      BasisInfo,
-      WfHistory,
-      ChooseAuditor
-    },
-    name: 'oiltechnologyserviceEdit',
-
-    data () {
-      return {
-        savebtn: true,
-        visbtn: '1',
-        fushenauditer: '', // 复审人员
-        majorDept: [100000000, 100000128, 100000151],
-        userOptions: [],
-        secauditerOptions: [],
-        audithistoryshow: false,
-        chooseAuditorVisible: false,
-        activeName: '0',
-        orgtreelist: [],
-        formannData: {},
-        orgtreeprops: {
-          value: 'id',
-          label: 'name',
-          children: 'children'
-        },
-        auditform: {
-          FirstAuditName: '',
-          SecondAudit: '',
-          ThirdAudit: '',
-          AnnualId: ''
-        },
-        Step: '',
-        subfileList: [], // 资质
-        auditbusList: [], // 待审核业务
-        organizeOption: [], // 审批部门
-        auditerOption: [],
-        addshow: false,
-        canUpdateSupplier: true,
-        dictData: null,
-        add_flat: true,
-        applyLoading: false,
-        equipmentList: [], // 企业主要装备情况
-        performanceList: [], // 近三年主要工程业绩
-        patentList: [], // 专利及专有技术
-        winningList: [], // 近三年省部级及以上获奖项目
-        businessList: [], // 准入业务
-        serviceId: '',
-        certId: '',
-        auditer: '',
-        auditerName: '',
-        classId: '',
-        WorkflowId: '',
-        entityForm: {
-          SupplierId: '',
-          SupplierTypeName: '',
-          Remark: ''
-        },
-        formData: {
-          Id: '',
-          SupplierName: '',
-          OilCertificateNo: '',
-          Grade: '',
-          MgrUnit: '',
-          OperType: '',
-          Country: '',
-          MaunAgent: '',
-          ConstructTeam: '',
-          CommercialNo: '',
-          OrganCode: '',
-          CountryTaxNo: '',
-          LocalTaxNo: '',
-          Address: '',
-          Province: '',
-          City: '',
-          Street: '',
-          HouseNo: '',
-          ZipCode: '',
-          LinkAddress: '',
-          LinkProvince: '',
-          LinkCity: '',
-          LinkStreet: '',
-          LinkHouseNo: '',
-          LinkZipCode: '',
-          QualitySystemCert: '',
-          ProductQualityCert: '',
-          MaunLicense: '',
-          QualifCert: '',
-          QualifCertLevel: '',
-          SafetyLicense: '',
-          TechServiceLic: '',
-          TJInNotify: '',
-          SpecIndustryCert: '',
-          LegalPerson: '',
-          CategoryCode: '',
-          CategoryName: '',
-          RegCapital: '',
-          Currency: '',
-          ContactName: '',
-          CompanyType: '',
-          SetupTime: null,
-          DepositBank: '',
-          BankAccount: '',
-          EMail: '',
-          BankCreditRating: '',
-          Mobile: '',
-          Telphone: '',
-          Fax: '',
-          CompanyTel: '',
-          QQ: '',
-          CompanyUrl: '',
-          SpecSupplier: '',
-          SpecTypeCode: '',
-          SpecTypeName: '',
-          WorkerTotal: 0,
-          ContractNum: 0,
-          UniversityNum: 0,
-          TechnicalNum: 0,
-          AboveProfNum: 0,
-          MiddleProfNum: 0,
-          NationalRegNum: 0,
-          NationalCertTotal: 0,
-          DesignerTotal: 0,
-          SkillerTotal: 0,
-          // Remark: '',
-          // IsDelete: '',
-          // CreateOn: '',
-          // CreateUserId: '',
-          // CreateBy: '',
-          // ModifiedOn: '',
-          // ModifiedUserId: '',
-          // ModifiedBy: '',
-          CertId: 0,
-          SupplierTypeCode: '',
-          SupplierTypeName: '',
-          Step: 0,
-          HseTraining: '0',
-          AuditIndex: 0,
-          PACNumber: ''
-        },
-
-        formDataCert: {
-          WorkerTotal: 0,
-          ContractNum: 0,
-          UniversityNum: 0,
-          TechnicalNum: 0,
-          AboveProfNum: 0,
-          MiddleProfNum: 0,
-          NationalRegNum: 0,
-          NationalCertTotal: 0,
-          DesignerTotal: 0,
-          SkillerTotal: 0,
-          Status: 0,
-          WorkflowId: ''
-        },
-        entrydetail: {
-          process: 'oil_audit_apply',
-          business: '',
-          instance: '',
-          Status: ''
-        },
-        Status: '',
-        annualId: '',
-        rules: {
-          auditer: [{
-            required: true,
-            message: '请选择审批人',
-            trigger: 'blur'
-          }]
-        }
-      }
-    },
-    created () {
-      this.serviceId = this.$route.params.opera
-    if (this.$route.query.certid) {
-        this.certId = this.$route.query.certid + ''
-      }
-      this.Status = this.$route.query.Status + ''
-      this.Step = parseInt(this.$route.query.Step)
-      this.annualId = this.$route.query.annualId
-      this.getstatus(this.annualId)
-      this.WorkflowId = this.$route.query.WorkflowId + ''
-      this.getDictOptions()
-      this.formData.Id = this.serviceId
-      this.initDatas()
-      if (this.Status <= 1) {
-        this.savebtn = false
-        this.canUpdateSupplier = true
-      }
-      if (this.Status > 0) {
-        this.add_flat = false
-      }
-      this.orgtreeChange(this.majorDept)
-    },
-    methods: {
-      getstatus (annid) {
-        annualapi.getEntity(annid, this.$axios)
-          .then(res => {
-            this.formannData = res.data
-          console.log('--forann-', this.formannData)
-            this.Status = this.formannData.Status
-            this.entrydetail.business = this.formannData.Id
-            this.entrydetail.instance = this.formannData.WorkflowId
-            this.entrydetail.Status = this.formannData.Status
-          })
-          .catch(err => {
-            console.error(err)
-        })
-    },
-      inputCompany (val) {
-        if (!this.certId) {
-          api.getEntityByName(val, this.$axios).then(res => {
-            if (res.data && res.data.Id) {
-              this.SetFormData(res.data)
-            }
-          }).catch(err => {
-            console.error(err)
-          })
-        }
-      },
-      changeFormData (fdata) {
-        if (!this.certId) {
-          this.SetFormData(fdata)
-        }
-      },
-      // nextTab() {
-      //   let activeIdx = parseInt(this.activeName)
-      //   if (activeIdx < 4) {
-      //     this.activeName = (activeIdx + 1) + ''
-      //   } else {
-      //     this.activeName = '1'
-      //   }
-      // },
-      SetFormData (fdata) {
-        this.formData.Id = fdata.Id
-        this.formData.SupplierName = fdata.SupplierName
-        this.formData.OilCertificateNo = fdata.OilCertificateNo
-        this.formData.Grade = fdata.Grade
-        this.formData.MgrUnit = fdata.MgrUnit
-        this.formData.OperType = fdata.OperType
-        this.formData.Country = fdata.Country
-        this.formData.MaunAgent = fdata.MaunAgent
-        this.formData.ConstructTeam = fdata.ConstructTeam
-        this.formData.CommercialNo = fdata.CommercialNo
-        this.formData.OrganCode = fdata.OrganCode
-        this.formData.CountryTaxNo = fdata.CountryTaxNo
-        this.formData.LocalTaxNo = fdata.LocalTaxNo
-        this.formData.Address = fdata.Address
-        this.formData.Province = fdata.Province
-        this.formData.City = fdata.City
-        this.formData.Street = fdata.Street
-        this.formData.HouseNo = fdata.HouseNo
-        this.formData.ZipCode = fdata.ZipCode
-        this.formData.LinkAddress = fdata.LinkAddress
-        this.formData.LinkProvince = fdata.LinkProvince
-        this.formData.LinkCity = fdata.LinkCity
-        this.formData.LinkStreet = fdata.LinkStreet
-        this.formData.LinkHouseNo = fdata.LinkHouseNo
-        this.formData.LinkZipCode = fdata.LinkZipCode
-        this.formData.LegalPerson = fdata.LegalPerson
-        this.formData.CategoryCode = fdata.CategoryCode
-        this.formData.CategoryName = fdata.CategoryName
-        this.formData.RegCapital = fdata.RegCapital
-        this.formData.Currency = fdata.Currency
-        this.formData.ContactName = fdata.ContactName
-        this.formData.CompanyType = fdata.CompanyType
-        this.formData.SetupTime = fdata.SetupTime
-        this.formData.DepositBank = fdata.DepositBank
-        this.formData.BankAccount = fdata.BankAccount
-        this.formData.EMail = fdata.EMail
-        this.formData.BankCreditRating = fdata.BankCreditRating
-        this.formData.Mobile = fdata.Mobile
-        this.formData.Telphone = fdata.Telphone
-        this.formData.Fax = fdata.Fax
-        this.formData.CompanyTel = fdata.CompanyTel
-        this.formData.QQ = fdata.QQ
-        this.formData.CompanyUrl = fdata.CompanyUrl
-        this.formData.HseTraining = fdata.HseTraining
-        this.formData.SpecTypeCode = fdata.SpecTypeCode
-
-        this.$refs['BasisInfo'].CityAry = []
-        this.$refs['BasisInfo'].CityAry.push(this.formData.Province)
-        this.$refs['BasisInfo'].CityAry.push(this.formData.City)
-        this.$refs['BasisInfo'].CityAry.push(this.formData.Street)
-        this.$refs['BasisInfo'].LinkCityAry = []
-        this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkProvince)
-        this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkCity)
-        this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkStreet)
-        this.$refs['BasisInfo'].UnitRelationAry = []
-        if (this.formData.SpecTypeCode.length > 0) {
-          this.$refs['BasisInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
-        }
-      },
-      getbuslist () {
-        this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-      },
-      equipmentdialog () {
-        this.$refs['equipmentList'].showDialog()
-      },
-      performancedialog () {
-        this.$refs['performanceList'].showDialog()
-      },
-      patentdialog () {
-        this.$refs['patentList'].showDialog()
-      },
-      winningdialog () {
-        this.$refs['winningList'].showDialog()
-      },
-      initDatas () {
-        if (this.formData.Id) {
-          api.getEntityAndCert(this.certId, this.$axios).then(res => {
-            this.formData = res.data
-            this.formDataCert.WorkerTotal = this.formData.WorkerTotal
-            this.formDataCert.ContractNum = this.formData.ContractNum
-            this.formDataCert.UniversityNum = this.formData.UniversityNum
-            this.formDataCert.TechnicalNum = this.formData.TechnicalNum
-            this.formDataCert.AboveProfNum = this.formData.AboveProfNum
-            this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
-            this.formDataCert.NationalRegNum = this.formData.NationalRegNum
-            this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
-            this.formDataCert.DesignerTotal = this.formData.DesignerTotal
-            this.formDataCert.SkillerTotal = this.formData.SkillerTotal
-            this.formDataCert.Status = this.formData.Status
-            this.formDataCert.WorkflowId = this.formData.WorkflowId
-            this.$refs['BasisInfo'].CityAry = []
-            this.$refs['BasisInfo'].CityAry.push(this.formData.Province)
-            this.$refs['BasisInfo'].CityAry.push(this.formData.City)
-            this.$refs['BasisInfo'].CityAry.push(this.formData.Street)
-            this.$refs['BasisInfo'].LinkCityAry = []
-            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkProvince)
-            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkCity)
-            this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkStreet)
-            this.$refs['BasisInfo'].UnitRelationAry = []
-            if (this.formData.SpecTypeCode.length > 0) {
-              this.$refs['BasisInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
-            }
-            this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-          }).catch(err => {
-            console.error(err)
-          })
-      }
-      },
-
-      orgtreeChange (val) {
-        this.userOptions = []
-        let deptid = val[val.length - 1]
-        let auditstepcode = 'PROF_RECE'
-        api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.userOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      auditOrgChang (val) {
-        let auditstepcode = 'SECOND_TRIAL';
-        api
-          .getAuditerByFirst(val, auditstepcode, this.$axios)
-          .then(res => {
-            this.secauditerOptions = res.data.item
-          })
-          .catch(err => {
-            console.error(err)
-        })
-    },
-
-      chooseAuditorShow () {
-        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisible = true
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-        this.auditOrgChang(this.auditer)
-      },
-
-      getDictOptions () {
-        let params = {
-          // status: this.formData.Status,
-          // majorAduit: this.formData.ThirdAudit
-        }
-        api.getDictListByStatus(params, this.$axios).then(res => {
-          this.dictData = res.data.items
-          // this.organizeOption = res.data.items['Organizes']
-          this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-          /* this.UnitRelationOptions = res.data.items['UnitRelation']
-          this.getCityList(res.data.items['GaodeMapChinaAreas'])
-          this.CompanyTypeOptions = res.data.items['CompanyType'] */
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // getDictOptions() {
-      //   api.getDictList(this.$axios).then(res => {
-      //     this.dictData = res.data.items
-      //     /*this.UnitRelationOptions = res.data.items['UnitRelation']
-      //     this.getCityList(res.data.items['GaodeMapChinaAreas'])
-      //     this.CompanyTypeOptions = res.data.items['CompanyType']*/
-      //   }).catch(err => {
-      //     console.error(err)
-      //   })
-      // },
-
-      // 保存信息
-      saveEntity () {
-        let valid1 = false
-        let valid2 = false
-
-        this.$refs['BasisInfo'].$refs['EntityForm'].validate((valid) => {
-          valid1 = valid
-        })
-
-        this.$refs['BasisInfo'].$refs['EntityFormCert'].validate(vvalid => {
-          valid2 = vvalid
-        })
-
-        if (valid1 && valid2) {
-          if (!this.formData.SetupTime) {
-            this.formData.SetupTime = null
-          } else {
-            this.formData.SetupTime = new Date(this.formData.SetupTime)
-          }
-          this.formData.RegCapital = parseFloat(this.formData.RegCapital)
-          this.formData.HseTraining = this.formData.HseTraining + ''
-          this.updateEntity()
-          return true
-        } else {
-          return false
-        }
-      },
-
-      CheckCompanyBase () {
-        if (!this.formData.Id) {
-          this.$message({
-            type: 'error',
-            message: '无法保存,请先填写企业基本信息'
-          })
-          return false
-        }
-        if (!this.certId) {
-          this.$message({
-            type: 'error',
-            message: '准入类别不清晰,无法保存!'
-          })
-          return false
-        }
-        return true
-      },
-
-      updateEntity () {
-        annualapi.supupdateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 更新子表
-            this.updateNumberEntity()
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 企业人员结构情况
-      updateNumberEntity () {
-        this.$refs['EntityFormNumber'].validate((valid) => {
-          if (valid) {
-            if (!this.CheckCompanyBase()) {
-              return false
-            }
-            this.formDataCert.InStyle = this.formData.InStyle
-            api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(res => {
-              if (res.data.code === 0) {
-                // 保存成功后,初始化数据,变成修改
-                this.initDatas()
-                this.$message({
-                  type: 'success',
-                  message: res.data.message
-                })
-              } else {
-                this.$message({
-                  type: 'warning',
-                  message: res.data.message
-                })
-              }
-            }).catch(err => {
-              console.error(err)
-            })
-          } else {
-            return false
-        }
-        })
-      },
-
-      addAnnualAudit () {
-        this.$refs['EntityFormref'].validate((valid) => {
-          if (valid) {
-            if (this.auditer === '') {
-              this.$message({
-                type: 'warning',
-                message: '请选择审批人!'
-              })
-              return
-            }
-            if (this.fushenauditer === '') {
-              this.$message({
-                type: 'warning',
-                message: '请选择复审人!'
-              })
-              return
-            }
-            if (this.majorDept.length === 0) {
-              this.$message({
-                type: 'warning',
-                message: '请选择专业处室!'
-              })
-              return
-            }
-            if (this.userOptions == null || this.userOptions.length === 0) {
-              this.$message({
-                type: 'warning',
-                message: '该专业科室未配置接收人!'
-              })
-              return
-            }
-            this.entityForm.SupplierId = parseInt(this.certId)
-            this.entityForm.SupplierTypeName = this.formData.SupplierTypeCode
-            this.auditform.FirstAuditName = this.auditer
-            this.auditform.SecondAudit = this.fushenauditer
-            this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
-            this.auditform.AnnualId = this.annualId
-            annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
-              if (res.data.code === 0) {
-                // 保存成功后,初始化数据,变成修改
-                this.entityForm.Id = res.data.item
-              this.getstatus(this.annualId)
-                // this.initDatas();
-                this.addshow = false
-                this.$message({
-                  type: 'success',
-                  message: res.data.message
-                })
-
-            } else {
-                this.$message({
-                  type: 'warning',
-                  message: res.data.message
-                })
-            }
-            }).catch(err => {
-              console.error(err)
-            })
-        }
-        })
-      },
-
-      // 审批历史
-      auhistory () {
-        this.audithistoryshow = true
-      },
-
-      AuditEntity () {
-        this.applyLoading = true
-        apiCert.auditEntity(this.certId, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.initDatas()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-        } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-        }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-    },
-
-      nexStepCB () {
-        this.Step += 1
-      },
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      },
-
-      formatDateTime (date) {
-        var y = date.getFullYear()
-      var m = date.getMonth() + 1
-      m = m < 10 ? ('0' + m) : m
-      var d = date.getDate()
-      d = d < 10 ? ('0' + d) : d
-      var h = date.getHours()
-      var minute = date.getMinutes()
-      minute = minute < 10 ? ('0' + minute) : minute
-      return y + '-' + m + '-' + d + ' ' + h + ':' + minute
-    }
-    }
-  }
-</script>

+ 47 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -21,7 +21,10 @@
             </el-steps>
             <!-- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button> -->
           </el-popover>
-          <el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status <= 0">
+          <el-button type="primary" size="mini" style="margin-right: 8px" @click="commitfenban"
+                     v-if="Status <= 0">提交分办
+          </el-button>
+          <el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status == 10">
             提交审核</el-button>
           <router-link :to="'/oilsupplier/annualaudit/goodsindex'">
             <el-button type="primary" size="mini" style="margin-left: 8px;">返回</el-button>
@@ -274,7 +277,7 @@
     <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
       :visible="chooseAuditorVisible"></choose-auditor>
     <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
-                        :visible="chooseAuditorVisibleFen" typeCode="01"></choose-auditor-fen>
+                        :visible="chooseAuditorVisibleFen" typeCode="04"></choose-auditor-fen>
   </div>
 </template>
 
@@ -516,13 +519,50 @@
       this.orgtreeChange(this.majorDept)
     },
     methods: {
+      SubpEntity () {
+        if (this.auditer === '') {
+          this.$message({
+            type: 'warning',
+            message: '请选择分办人!'
+          })
+          return
+        }
+        this.entityForm.SupplierId = parseInt(this.certId)
+        this.entityForm.SupplierTypeName = this.formData.SupplierTypeCode
+        this.auditform.FirstAuditName = this.auditer
+        this.auditform.AnnualId = this.annualId
+        annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
+          if (res.data.code === 0) {
+            // 保存成功后,初始化数据,变成修改
+            this.Status = res.data.item
+            this.entityForm.Status = this.Status
+            // this.initDatas();
+            this.getstatus(this.annualId)
+            this.ComAuditdialogShow = false
+            this.$message({
+              type: 'success',
+              message: res.data.message
+            })
+          } else {
+            this.$message({
+              type: 'warning',
+              message: res.data.message
+            })
+          }
+        }).catch(err => {
+          console.error(err)
+        })
+      },
+      commitfenban () {
+        this.ComAuditdialogShow = true
+      },
       setAuditerFen (val, name) {
         this.auditer = val
         this.auditerName = name
         this.chooseAuditorVisibleFen = false
       },
       chooseAuditorShowFen () {
-        this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
+        this.$refs['chooseAuditorFen'].getorgtreelist('04')
         this.chooseAuditorVisibleFen = true
       },
       getstatus (annid) {
@@ -897,7 +937,7 @@
               if (res.data.code === 0) {
                 // 保存成功后,初始化数据,变成修改
                 this.Status = res.data.item
-              this.entityForm.Status = this.Status
+                this.entityForm.Status = this.Status
                 // this.initDatas();
                 this.getstatus(this.annualId)
                 this.addshow = false
@@ -905,17 +945,16 @@
                   type: 'success',
                   message: res.data.message
                 })
-
-            } else {
+              } else {
                 this.$message({
                   type: 'warning',
                   message: res.data.message
                 })
-            }
+              }
             }).catch(err => {
               console.error(err)
             })
-        }
+          }
         })
       },
 

+ 0 - 925
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/operation.vue

@@ -1,925 +0,0 @@
-<template>
-  <div>
-    <el-breadcrumb class="heading">
-      <el-breadcrumb-item :to="{ path: '/' }">平台首页</el-breadcrumb-item>
-      <el-breadcrumb-item :to="{ path: '/oilsupplier/annualaudit' }">年审基本信息表</el-breadcrumb-item>
-      <el-breadcrumb-item>编辑</el-breadcrumb-item>
-    </el-breadcrumb>
-    <el-card class="box-card">
-      <div slot="header" class="clearfix">
-        <span>年审基本信息表</span>
-        <span style="float: right;">
-          <!-- <el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批历史</el-button> -->
-          <!-- <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button> -->
-          <el-popover>
-            <el-steps :active="Step" direction="vertical" align-center finish-status="success">
-              <el-step title="填写信息"></el-step>
-              <el-step title="提交审批"></el-step>
-              <el-step title="审批完成"></el-step>
-              <el-step title="供方交费"></el-step>
-              <el-step title="完成"></el-step>
-            </el-steps>
-            <!-- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button> -->
-          </el-popover>
-          <el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status <= 0">
-            提交审核</el-button>
-          <router-link :to="'/oilsupplier/annualaudit/techindex'">
-            <el-button type="primary" size="mini" style="margin-left: 8px;">返回</el-button>
-          </router-link>
-        </span>
-
-      </div>
-
-      <!-- <el-steps :active="Step" simple align-center finish-status="success">
-        <el-step title="填写信息"></el-step>
-        <el-step title="提交审批"></el-step>
-        <el-step title="审批完成"></el-step>
-        <el-step title="供方交费"></el-step>
-        <el-step title="完成"></el-step>
-      </el-steps> -->
-
-      <el-tabs tab-position="top" style="margin-top: 20px" v-model="activeName" size="mini">
-        <el-tab-pane label="企业信息">
-          <el-card class="box-card">
-            <div slot="header" class="clearfix">
-              <span>供方基本信息表</span>
-              <span style="float: right;">
-                <el-button type="primary" size="mini" @click="saveEntity" v-if="Status <= 0">保存基本信息
-                </el-button>
-              </span>
-            </div>
-            <tech-info ref="TechInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"
-              :disabled="savebtn" :canUpdateSupplier="canUpdateSupplier" :appendStatus = "true" @selectcompany="changeFormData"
-              @inputcompany="inputCompany">
-            </tech-info>
-          </el-card>
-        </el-tab-pane>
-
-        <el-tab-pane label="企业情况">
-          <el-card class="box-card">
-            <div slot="header" class="clearfix">
-              <span>企业人员结构情况</span>
-              <span style="float: right;">
-                <el-button type="primary" size="mini" @click="updateNumberEntity()" v-if="Status <= 0">
-                  保存人员结构情况</el-button>
-              </span>
-            </div>
-
-            <el-form label-width="220px" ref="EntityFormNumber" :model="formDataCert" :disabled="savebtn">
-              <el-row>
-                <el-col :span="8">
-                  <el-form-item label="企业员工总数">
-                    <el-input-number v-model="formDataCert.WorkerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="合同化用工数量">
-                    <el-input-number v-model="formDataCert.ContractNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="大学及以上学历人员数量">
-                    <el-input-number v-model="formDataCert.UniversityNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="技术、管理人员数量">
-                    <el-input-number v-model="formDataCert.TechnicalNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="高级及以上职称人员数量">
-                    <el-input-number v-model="formDataCert.AboveProfNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="中级职称人员数量">
-                    <el-input-number v-model="formDataCert.MiddleProfNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="具有国家注册执业资格人员数量">
-                    <el-input-number v-model="formDataCert.NationalRegNum" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="具有国家注册执业资格证书总数">
-                    <el-input-number v-model="formDataCert.NationalCertTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="设计人员总数">
-                    <el-input-number v-model="formDataCert.DesignerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-
-                <el-col :span="8">
-                  <el-form-item label="技术工人总数">
-                    <el-input-number v-model="formDataCert.SkillerTotal" controls-position="right" :min="0"
-                      style="width: 100%"></el-input-number>
-                  </el-form-item>
-                </el-col>
-              </el-row>
-            </el-form>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>企业主要设备</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="equipmentdialog" v-if="Status <= 0">添加
-              </el-button>
-            </div>
-            <equipment-list ref="equipmentList" :data="equipmentList" :SupplierCertId="certId"
-              :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px"></equipment-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>近三年主要业绩</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="performancedialog" v-if="Status <= 0">
-                添加</el-button>
-            </div>
-            <performance-list ref="performanceList" :data="performanceList" :SupplierCertId="certId" :disabled="true"
-              :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px"></performance-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>专利及专有技术</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="patentdialog" v-if="Status <= 0">添加
-              </el-button>
-            </div>
-            <patent-list ref="patentList" :canadd="add_flat" :data="patentList" :SupplierCertId="certId"
-              :SupplierTypeCode="classId" height="360px" style="margin-top: 20px">
-            </patent-list>
-          </el-card>
-
-          <el-card class="box-card" style="margin-top: 10px;">
-            <div slot="header" class="clearfix">
-              <span>近三年省部级及以上获奖项目</span>
-              <el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog" v-if="Status <= 0">添加
-              </el-button>
-            </div>
-            <winning-list ref="winningList" :canadd="add_flat" :data="winningList" :SupplierCertId="certId"
-              :SupplierTypeCode="classId" height="360px" style="margin-top: 20px">
-            </winning-list>
-          </el-card>
-        </el-tab-pane>
-
-        <el-tab-pane label="准入范围" :disabled="!certId">
-          <business-list ref="businessList" :data.sync="businessList" :canadd="false" height="360px"
-            style="margin-top: 20px"></business-list>
-        </el-tab-pane>
-
-        <el-tab-pane label="企业资质" :disabled="!certId">
-          <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="false" height="360px"
-            style="margin-top: 20px"></subfile-list>
-        </el-tab-pane>
-
-        <el-tab-pane label="提交审批">
-          <el-card class="box-card" style="height: 800px">
-            <div slot="header" class="clearfix">
-              <span>审批流程</span>
-              <!-- <span style="float: right;">
-                <el-button type="primary" size="mini" :disabled="formDataCert.Status > 0" :loading="applyLoading"
-                  @click="AuditEntity">提交审批
-                </el-button>
-              </span> -->
-            </div>
-            <wf-history ref="WfHistory" :entryinfo="entrydetail"></wf-history>
-          </el-card>
-        </el-tab-pane>
-      </el-tabs>
-    </el-card>
-    <el-dialog title="提交审批" :visible.sync="addshow" width="520px">
-      <el-form label-width="90px" :model="entityForm" :rules="rules" ref="EntityFormref">
-        <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-form-item> -->
-            <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-form-item>
-            <el-form-item label="复审人员">
-              <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
-                allow-create default-first-option>
-                <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
-                </el-option>
-              </el-select>
-            </el-form-item>
-            <el-form-item label="专业处室">
-              <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
-                style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">
-              </el-cascader>
-            </el-form-item>
-          </el-col>
-          <el-col :span="24">
-            <el-form-item label="说明">
-              <el-input v-model="entityForm.Remark" type="textarea" placeholder="请输入说明内容">
-              </el-input>
-            </el-form-item>
-          </el-col>
-        </el-row>
-      </el-form>
-      <span style="float: right;margin-top:-10px;">
-        <el-button size="small" @click="addshow = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="addAnnualAudit()">确 定</el-button>
-      </span>
-      <br>
-    </el-dialog>
-    <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
-      :visible="chooseAuditorVisible"></choose-auditor>
-  </div>
-</template>
-
-<script>
-  import {
-    mapGetters
-  } from 'vuex'
-  import api from '@/api/oilsupplier/supplier'
-  import annualapi from '@/api/oilsupplier/annualaudit'
-import apiCert from '@/api/oilsupplier/suppliercert'
-  import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
-  import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
-  import WfHistory from '@/components/workflow/wfmultihistory.vue'
-
-  import EquipmentList from '@/components/oilsupplier/equipmentlist'
-  import PerformanceList from '@/components/oilsupplier/performancelist'
-  import PatentList from '@/components/oilsupplier/patentlist'
-  import WinningList from '@/components/oilsupplier/winninglist'
-  import BusinessList from '@/components/oilsupplier/businesslist'
-  import TechInfo from '@/components/oilsupplier/techinfo'
-  import AuditbusList from '@/components/oilsupplier/auditbuslist'
-  import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
-  import SubfileList from '@/components/oilsupplier/subfilelist'
-
-  export default {
-    computed: {
-      ...mapGetters({
-        authUser: 'authUser'
-      })
-    },
-    components: {
-      SupplierFileTable,
-      WfHistory,
-      SupplierCertEdit,
-      SubfileList, // 选择企业资质
-      EquipmentList, // 企业主要设备
-      PerformanceList, // 近三年主要业绩列表
-      PatentList, // 专利及专有技术列表
-      WinningList, // 近三年省部级及以上获奖项目列表
-      BusinessList, // 选择准入范围
-      AuditbusList, // 待审核业务
-      TechInfo,
-      ChooseAuditor
-    },
-    name: 'oiltechnologyserviceEdit',
-
-    data () {
-      return {
-        savebtn: true,
-        visbtn: '1',
-        fushenauditer: '', // 复审人员
-        userOptions: [],
-        majorDept: [],
-        secauditerOptions: [],
-        audithistoryshow: false,
-        chooseAuditorVisible: false,
-        activeName: '0',
-        orgtreelist: [],
-        auditform: {
-          FirstAuditName: '',
-          SecondAudit: '',
-          ThirdAudit: '',
-          AnnualId: ''
-        },
-        orgtreeprops: {
-          value: 'id',
-          label: 'name',
-          children: 'children'
-        },
-        Step: '',
-        subfileList: [], // 资质
-        auditbusList: [], // 待审核业务
-        organizeOption: [], // 审批部门
-        addshow: false,
-        canUpdateSupplier: true,
-        dictData: null,
-        add_flat: true,
-        applyLoading: false,
-        equipmentList: [], // 企业主要设备
-        performanceList: [], // 近三年主要业绩
-        patentList: [], // 专利及专有技术
-        winningList: [], // 近三年省部级及以上获奖项目
-        businessList: [], // 准入业务
-        serviceId: '',
-        certId: '',
-        auditer: '',
-        auditerName: '',
-        classId: '',
-        WorkflowId: '',
-        entityForm: {
-          SupplierId: '',
-          SupplierTypeName: '',
-          Remark: ''
-        },
-        formannData: {},
-        formData: {
-          Id: '',
-          SupplierName: '',
-          OilCertificateNo: '',
-          Grade: '',
-          MgrUnit: '',
-          OperType: '',
-          Country: '',
-          MaunAgent: '',
-          ConstructTeam: '',
-          CommercialNo: '',
-          OrganCode: '',
-          CountryTaxNo: '',
-          LocalTaxNo: '',
-          Address: '',
-          Province: '',
-          City: '',
-          Street: '',
-          HouseNo: '',
-          ZipCode: '',
-          LinkAddress: '',
-          LinkProvince: '',
-          LinkCity: '',
-          LinkStreet: '',
-          LinkHouseNo: '',
-          LinkZipCode: '',
-          QualitySystemCert: '',
-          ProductQualityCert: '',
-          MaunLicense: '',
-          QualifCert: '',
-          QualifCertLevel: '',
-          SafetyLicense: '',
-          TechServiceLic: '',
-          TJInNotify: '',
-          SpecIndustryCert: '',
-          LegalPerson: '',
-          CategoryCode: '',
-          CategoryName: '',
-          RegCapital: '',
-          Currency: '',
-          ContactName: '',
-          CompanyType: '',
-          SetupTime: null,
-          DepositBank: '',
-          BankAccount: '',
-          EMail: '',
-          BankCreditRating: '',
-          Mobile: '',
-          Telphone: '',
-          Fax: '',
-          CompanyTel: '',
-          QQ: '',
-          CompanyUrl: '',
-          SpecSupplier: '',
-          SpecTypeCode: '',
-          SpecTypeName: '',
-          WorkerTotal: 0,
-          ContractNum: 0,
-          UniversityNum: 0,
-          TechnicalNum: 0,
-          AboveProfNum: 0,
-          MiddleProfNum: 0,
-          NationalRegNum: 0,
-          NationalCertTotal: 0,
-          DesignerTotal: 0,
-          SkillerTotal: 0,
-          // Remark: '',
-          // IsDelete: '',
-          // CreateOn: '',
-          // CreateUserId: '',
-          // CreateBy: '',
-          // ModifiedOn: '',
-          // ModifiedUserId: '',
-          // ModifiedBy: '',
-          CertId: 0,
-          SupplierTypeCode: '',
-          SupplierTypeName: '',
-          Step: 0,
-          HseTraining: '0',
-          AuditIndex: 0,
-          PACNumber: ''
-        },
-
-        formDataCert: {
-          WorkerTotal: 0,
-          ContractNum: 0,
-          UniversityNum: 0,
-          TechnicalNum: 0,
-          AboveProfNum: 0,
-          MiddleProfNum: 0,
-          NationalRegNum: 0,
-          NationalCertTotal: 0,
-          DesignerTotal: 0,
-          SkillerTotal: 0,
-          Status: 0,
-          WorkflowId: ''
-        },
-        entrydetail: {
-          process: 'oil_audit_apply',
-          business: '',
-          instance: '',
-          Status: ''
-        },
-        Status: '',
-        annualId: '',
-        rules: {
-          auditer: [{
-            required: true,
-            message: '请选择审批人',
-            trigger: 'blur'
-          }]
-        }
-      }
-    },
-    created () {
-      this.serviceId = this.$route.params.opera
-    if (this.$route.query.certid) {
-        this.certId = this.$route.query.certid + ''
-      }
-      this.annualId = this.$route.query.annualId
-      this.getstatus(this.annualId)
-      this.Status = this.$route.query.Status + ''
-      this.Step = parseInt(this.$route.query.Step)
-      this.WorkflowId = this.$route.query.WorkflowId + ''
-      this.getDictOptions()
-      this.formData.Id = this.serviceId
-      this.initDatas()
-      if (this.Status <= 0) {
-        this.savebtn = false
-        this.canUpdateSupplier = true
-      }
-      if (this.Status > 0) {
-        this.add_flat = false
-      }
-      this.orgtreeChange(this.majorDept)
-    },
-    methods: {
-      getstatus (annid) {
-        annualapi.getEntity(annid, this.$axios)
-          .then(res => {
-            this.formannData = res.data
-          this.Status = this.formannData.Status
-            this.entrydetail.business = this.formannData.Id
-            this.entrydetail.instance = this.formannData.WorkflowId
-            this.entrydetail.Status = this.formannData.Status
-          })
-          .catch(err => {
-            console.error(err)
-        })
-    },
-      inputCompany (val) {
-        if (!this.certId) {
-          api.getEntityByName(val, this.$axios).then(res => {
-            if (res.data && res.data.Id) {
-              this.SetFormData(res.data)
-            }
-          }).catch(err => {
-            console.error(err)
-          })
-        }
-      },
-      changeFormData (fdata) {
-        if (!this.certId) {
-          this.SetFormData(fdata)
-        }
-      },
-      // nextTab() {
-      //   let activeIdx = parseInt(this.activeName)
-      //   if (activeIdx < 4) {
-      //     this.activeName = (activeIdx + 1) + ''
-      //   } else {
-      //     this.activeName = '1'
-      //   }
-      // },
-      SetFormData (fdata) {
-        this.formData.Id = fdata.Id
-        this.formData.SupplierName = fdata.SupplierName
-        this.formData.OilCertificateNo = fdata.OilCertificateNo
-        this.formData.Grade = fdata.Grade
-        this.formData.MgrUnit = fdata.MgrUnit
-        this.formData.OperType = fdata.OperType
-        this.formData.Country = fdata.Country
-        this.formData.MaunAgent = fdata.MaunAgent
-        this.formData.ConstructTeam = fdata.ConstructTeam
-        this.formData.CommercialNo = fdata.CommercialNo
-        this.formData.OrganCode = fdata.OrganCode
-        this.formData.CountryTaxNo = fdata.CountryTaxNo
-        this.formData.LocalTaxNo = fdata.LocalTaxNo
-        this.formData.Address = fdata.Address
-        this.formData.Province = fdata.Province
-        this.formData.City = fdata.City
-        this.formData.Street = fdata.Street
-        this.formData.HouseNo = fdata.HouseNo
-        this.formData.ZipCode = fdata.ZipCode
-        this.formData.LinkAddress = fdata.LinkAddress
-        this.formData.LinkProvince = fdata.LinkProvince
-        this.formData.LinkCity = fdata.LinkCity
-        this.formData.LinkStreet = fdata.LinkStreet
-        this.formData.LinkHouseNo = fdata.LinkHouseNo
-        this.formData.LinkZipCode = fdata.LinkZipCode
-        this.formData.LegalPerson = fdata.LegalPerson
-        this.formData.CategoryCode = fdata.CategoryCode
-        this.formData.CategoryName = fdata.CategoryName
-        this.formData.RegCapital = fdata.RegCapital
-        this.formData.Currency = fdata.Currency
-        this.formData.ContactName = fdata.ContactName
-        this.formData.CompanyType = fdata.CompanyType
-        this.formData.SetupTime = fdata.SetupTime
-        this.formData.DepositBank = fdata.DepositBank
-        this.formData.BankAccount = fdata.BankAccount
-        this.formData.EMail = fdata.EMail
-        this.formData.BankCreditRating = fdata.BankCreditRating
-        this.formData.Mobile = fdata.Mobile
-        this.formData.Telphone = fdata.Telphone
-        this.formData.Fax = fdata.Fax
-        this.formData.CompanyTel = fdata.CompanyTel
-        this.formData.QQ = fdata.QQ
-        this.formData.CompanyUrl = fdata.CompanyUrl
-        this.formData.HseTraining = fdata.HseTraining
-        this.formData.SpecTypeCode = fdata.SpecTypeCode
-
-        this.$refs['TechInfo'].CityAry = []
-        this.$refs['TechInfo'].CityAry.push(this.formData.Province)
-        this.$refs['TechInfo'].CityAry.push(this.formData.City)
-        this.$refs['TechInfo'].CityAry.push(this.formData.Street)
-        this.$refs['TechInfo'].LinkCityAry = []
-        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
-        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
-        this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
-        this.$refs['TechInfo'].UnitRelationAry = []
-        if (this.formData.SpecTypeCode.length > 0) {
-          this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
-        }
-      },
-      getbuslist () {
-        this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-      },
-      equipmentdialog () {
-        this.$refs['equipmentList'].showDialog()
-      },
-      performancedialog () {
-        this.$refs['performanceList'].showDialog()
-      },
-      patentdialog () {
-        this.$refs['patentList'].showDialog()
-      },
-      winningdialog () {
-        this.$refs['winningList'].showDialog()
-      },
-      initDatas () {
-        if (this.formData.Id) {
-          api.getEntityAndCert(this.certId, this.$axios).then(res => {
-            this.formData = res.data
-            this.formDataCert.WorkerTotal = this.formData.WorkerTotal
-            this.formDataCert.ContractNum = this.formData.ContractNum
-            this.formDataCert.UniversityNum = this.formData.UniversityNum
-            this.formDataCert.TechnicalNum = this.formData.TechnicalNum
-            this.formDataCert.AboveProfNum = this.formData.AboveProfNum
-            this.formDataCert.MiddleProfNum = this.formData.MiddleProfNum
-            this.formDataCert.NationalRegNum = this.formData.NationalRegNum
-            this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
-            this.formDataCert.DesignerTotal = this.formData.DesignerTotal
-            this.formDataCert.SkillerTotal = this.formData.SkillerTotal
-            this.formDataCert.Status = this.formData.Status
-            this.formDataCert.WorkflowId = this.formData.WorkflowId
-            this.$refs['TechInfo'].CityAry = []
-            this.$refs['TechInfo'].CityAry.push(this.formData.Province)
-            this.$refs['TechInfo'].CityAry.push(this.formData.City)
-            this.$refs['TechInfo'].CityAry.push(this.formData.Street)
-            this.$refs['TechInfo'].LinkCityAry = []
-            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
-            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
-            this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
-            this.$refs['TechInfo'].UnitRelationAry = []
-            if (this.formData.SpecTypeCode.length > 0) {
-              this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
-            }
-            this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
-            if (this.certId && this.WorkflowId) {
-              this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流*/
-            }
-          }).catch(err => {
-            console.error(err)
-          })
-      }
-      },
-
-      orgtreeChange (val) {
-        this.userOptions = []
-        let deptid = val[val.length - 1]
-        let auditstepcode = 'PROF_RECE'
-        api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.userOptions = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      auditOrgChang (val) {
-        let auditstepcode = 'SECOND_TRIAL';
-        api
-          .getAuditerByFirst(val, auditstepcode, this.$axios)
-          .then(res => {
-            this.secauditerOptions = res.data.item
-          })
-          .catch(err => {
-            console.error(err)
-        })
-    },
-
-      chooseAuditorShow () {
-        this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
-        this.chooseAuditorVisible = true
-      },
-      setAuditer (val, name) {
-        this.auditer = val
-        this.auditerName = name
-        this.chooseAuditorVisible = false
-        this.auditOrgChang(this.auditer)
-      },
-
-      getDictOptions () {
-        let params = {
-          status: this.formData.Status,
-          majorAduit: this.formData.ThirdAudit
-        }
-        api.getDictListByStatus(params, this.$axios).then(res => {
-          this.dictData = res.data.items
-          // this.organizeOption = res.data.items['Organizes']
-          this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
-          /* this.UnitRelationOptions = res.data.items['UnitRelation']
-          this.getCityList(res.data.items['GaodeMapChinaAreas'])
-          this.CompanyTypeOptions = res.data.items['CompanyType'] */
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      // 保存信息
-      saveEntity () {
-        let valid1 = false
-        let valid2 = false
-
-        this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
-          valid1 = valid
-        })
-
-        this.$refs['TechInfo'].$refs['EntityFormCert'].validate(vvalid => {
-          valid2 = vvalid
-        })
-
-        if (valid1 && valid2) {
-          if (!this.formData.SetupTime) {
-            this.formData.SetupTime = null
-          } else {
-            this.formData.SetupTime = new Date(this.formData.SetupTime)
-          }
-          this.formData.RegCapital = parseFloat(this.formData.RegCapital)
-          this.formData.HseTraining = this.formData.HseTraining + ''
-          this.updateEntity()
-          return true
-        } else {
-          return false
-        }
-      },
-
-      updateEntity () {
-        annualapi.supupdateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 更新子表
-            this.updateNumberEntity()
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
-      // 企业人员结构情况
-      updateNumberEntity () {
-        this.$refs['EntityFormNumber'].validate((valid) => {
-          if (valid) {
-            if (!this.CheckCompanyBase()) {
-              return false
-            }
-            this.formDataCert.InStyle = this.formData.InStyle
-            api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(
-              res => {
-                if (res.data.code === 0) {
-                  // 保存成功后,初始化数据,变成修改
-                  this.initDatas()
-                  this.$message({
-                    type: 'success',
-                    message: res.data.message
-                  })
-                } else {
-                  this.$message({
-                    type: 'warning',
-                    message: res.data.message
-                  })
-                }
-              }).catch(err => {
-              console.error(err)
-            })
-          } else {
-            return false
-        }
-        })
-      },
-
-      CheckCompanyBase () {
-        if (!this.formData.Id) {
-          this.$message({
-            type: 'error',
-            message: '无法保存,请先填写企业基本信息'
-          })
-          return false
-        }
-        if (!this.certId) {
-          this.$message({
-            type: 'error',
-            message: '准入类别不清晰,无法保存!'
-          })
-          return false
-        }
-        return true
-      },
-
-      addAnnualAudit () {
-        this.$refs['EntityFormref'].validate((valid) => {
-          if (valid) {
-            if (this.auditer === '') {
-              this.$message({
-                type: 'warning',
-                message: '请选择审批人!'
-              })
-              return
-            }
-            if (this.fushenauditer === '') {
-              this.$message({
-                type: 'warning',
-                message: '请选择复审人!'
-              })
-              return
-            }
-            if (this.majorDept.length === 0) {
-              this.$message({
-                type: 'warning',
-                message: '请选择专业处室!'
-              })
-              return
-            }
-            if (this.userOptions == null || this.userOptions.length === 0) {
-              this.$message({
-                type: 'warning',
-                message: '该专业科室未配置接收人!'
-              })
-              return
-            }
-            this.entityForm.SupplierId = parseInt(this.certId)
-            this.entityForm.SupplierTypeName = this.formData.SupplierTypeCode
-            this.auditform.FirstAuditName = this.auditer
-            this.auditform.SecondAudit = this.fushenauditer
-            this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
-            this.auditform.AnnualId = this.annualId
-            annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
-              if (res.data.code === 0) {
-                // 保存成功后,初始化数据,变成修改
-                this.entityForm.Id = res.data.item
-              //this.initDatas();
-              this.addshow = false
-                this.getstatus(this.annualId)
-                this.$message({
-                  type: 'success',
-                  message: res.data.message
-                })
-
-            } else {
-                this.$message({
-                  type: 'warning',
-                  message: res.data.message
-                })
-            }
-            }).catch(err => {
-              console.error(err)
-            })
-        }
-        })
-      },
-
-      // 审批历史
-      auhistory () {
-        this.audithistoryshow = true
-      },
-
-      AuditEntity () {
-        this.applyLoading = true
-        apiCert.auditEntity(this.certId, this.$axios).then(res => {
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.initDatas()
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-        } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-        }
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-    },
-
-      nexStepCB () {
-        this.Step += 1
-      },
-      jstimehandle (val) {
-        if (val === '') {
-          return '----'
-        } else if (val === '0001-01-01T08:00:00+08:00') {
-          return '----'
-        } else if (val === '5000-01-01T23:59:59+08:00') {
-          return '永久'
-        } else {
-          val = val.replace('T', ' ')
-          return val.substring(0, 10)
-        }
-      },
-
-      formatDateTime (date) {
-        var y = date.getFullYear()
-      var m = date.getMonth() + 1
-      m = m < 10 ? ('0' + m) : m
-      var d = date.getDate()
-      d = d < 10 ? ('0' + d) : d
-      var h = date.getHours()
-      var minute = date.getMinutes()
-      minute = minute < 10 ? ('0' + minute) : minute
-      return y + '-' + m + '-' + d + ' ' + h + ':' + minute
-    }
-    }
-  }
-</script>

+ 3 - 3
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -697,7 +697,7 @@
       <wf-multi-history ref="WfHistory" :entryinfo="entrydetail"></wf-multi-history>
     </el-dialog>
     <choose-auditor-fen ref="chooseAuditorFen" @close="setAuditerFen" @hideChooseAuditer="chooseAuditorVisibleFen=false"
-                        :visible="chooseAuditorVisibleFen" typeCode="04"></choose-auditor-fen>
+                        :visible="chooseAuditorVisibleFen" typeCode="05"></choose-auditor-fen>
   </div>
 </template>
 
@@ -1234,7 +1234,7 @@
         },
       }
     },
-    created() {
+    created () {
       this.serviceId = this.$route.params.opera
       this.supplierId = this.serviceId
       this.InfoStatus = this.$route.query.InfoStatus
@@ -1289,7 +1289,7 @@
         this.chooseAuditorVisibleFen = false
       },
       chooseAuditorShowFen () {
-        this.$refs['chooseAuditorFen'].getorgtreelist('04')
+        this.$refs['chooseAuditorFen'].getorgtreelist('05')
         this.chooseAuditorVisibleFen = true
       },
       initDatas () {

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/system/auditsetting/index.vue

@@ -230,10 +230,10 @@
       } else if (this.$route.query.step == 11) {
         // 分办-基建类
         this.ACode = 'SUB_OFFICE_JS'
-      } else if (this.$route.query.step == 11) {
+      } else if (this.$route.query.step == 12) {
         // 分办-年审
         this.ACode = 'SUB_OFFICE_NS'
-      } else if (this.$route.query.step == 11) {
+      } else if (this.$route.query.step == 13) {
         // 分办-增项
         this.ACode = 'SUB_OFFICE_BG'
       }