Browse Source

技术服务类准入审批审核人修改

huahaiyan 6 years ago
parent
commit
1e6f03d0cc

+ 8 - 1
src/dashoo.cn/backend/api/business/oilsupplier/supplier/oilsupplierService.go

@@ -188,4 +188,11 @@ func (s *OilSupplierService) GetUpdateCols(oilSupplierCertTableName string, supp
 	cols := sessionSvc.GetUpdateCols(oilSupplierCertTableName, supplierTypeCode, supplierId)
 	session.Commit()
 	return cols
-}
+}
+
+func (s *OilSupplierService) GetProOrTreeList(entitiesPtr interface{}){
+	where := " Id=100000180 OR ParentId=100000180 "
+	sql := "SELECT Id, FullName, ParentId FROM Base_Organize where " + where
+	s.DBE.SQL(sql).Find(entitiesPtr)
+	return
+}

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

@@ -1052,6 +1052,8 @@ func (this *OilSupplierController) GetDictListByStatus() {
 	dictSvc := items.GetItemsService(utils.DBE)
 	userSvc := baseUser.GetBaseUserService(utils.DBE)
 	areaJsonSvc := areajson.GetAreaJsonService(utils.DBE)
+	orgsvc := organize.GetOrganizeService(utils.DBE)
+	svc := supplier.GetOilSupplierService(utils.DBE)
 	//customerSvc := svccustomer.GetCustomerService(utils.DBE)
 	dictList["UnitRelation"] = dictSvc.GetKeyValueItems("UnitRelation")
 	dictList["CompanyType"] = dictSvc.GetKeyValueItems("CompanyType")
@@ -1060,6 +1062,10 @@ func (this *OilSupplierController) GetDictListByStatus() {
 	dictList["Supervisers"] = userSvc.GetUserListByDepartmentId(this.User.AccCode, userEntity.Departmentid)
 	dictList["GaodeMapChinaAreas"] = areaJsonSvc.GetGaodeMapChinaAreas()
 	dictList["CountryList"] = areaJsonSvc.GetCountryList()
+	//获取专业审批处室部门
+	var preorglist []organize.Base_Organizetree
+	svc.GetProOrTreeList(&preorglist)
+	dictList["ProOrgList"] = preorglist
 	//获取我创建的所有公司
 	var list []supplier.OilSupplier
 	if this.User.IsCompanyUser == 1 {
@@ -1072,7 +1078,7 @@ func (this *OilSupplierController) GetDictListByStatus() {
 	}
 
 	// 部门
-	orgsvc := organize.GetOrganizeService(utils.DBE)
+
 	dictList["Organizes"] = orgsvc.GetCollectionDetailviewlist("'" + this.User.AccCode + "'")
 	//var dictCustomer []svccustomer.Customer
 	//customerSvc.GetEntitysByWhere(this.User.AccCode + CustomerName, "", &dictCustomer)

+ 20 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -11,6 +11,18 @@
           <i class="icon icon-table2"></i> 信息
         </span>
         <span style="float: right;">
+          <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
+          <el-popover>
+            <el-steps :active="formData.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-step title="完成"></el-step>
+            </el-steps>
+            <el-button slot="reference" plain size="mini" style="margin-right: 5px">查看进度</el-button>
+          </el-popover>
           <router-link :to="'/oilsupplier/annualaudit'">
             <el-button type="primary" plain size="mini" style="margin-right:3px" :disabled="formDataCert.Status == 0">
               年审申请</el-button>
@@ -610,6 +622,14 @@
       getbuslist() {
         this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
       },
+      nextTab () {
+        let activeIdx = parseInt(this.activeName)
+        if (activeIdx < 4) {
+          this.activeName = (activeIdx + 1) + ''
+        } else {
+          this.activeName = '1'
+        }
+      },
 
       getDictOptions() {
         api.getDictList(this.$axios).then(res => {

+ 20 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -11,6 +11,18 @@
           <i class="icon icon-table2"></i> 信息
         </span>
         <span style="float: right;">
+          <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
+          <el-popover>
+            <el-steps :active="formData.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-step title="完成"></el-step>
+            </el-steps>
+            <el-button slot="reference" plain size="mini" style="margin-right: 5px">查看进度</el-button>
+          </el-popover>
           <router-link :to="'/oilsupplier/annualaudit'">
             <el-button type="primary" plain size="mini" style="margin-right:3px" :disabled="formDataCert.Status == 0">
               年审申请</el-button>
@@ -613,6 +625,14 @@
       getbuslist() {
         this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
       },
+      nextTab () {
+        let activeIdx = parseInt(this.activeName)
+        if (activeIdx < 4) {
+          this.activeName = (activeIdx + 1) + ''
+        } else {
+          this.activeName = '1'
+        }
+      },
 
       getDictOptions() {
         api.getDictList(this.$axios).then(res => {

+ 1 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/basisedit.vue

@@ -26,7 +26,7 @@
         </span>
       </div>
 
-      <el-tabs tab-position="right">
+      <el-tabs tab-position="top">
         <el-tab-pane label="企业信息">
           <el-card class="box-card">
             <div slot="header" class="clearfix">

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

@@ -24,7 +24,7 @@
         </span>
       </div>
 
-      <el-tabs tab-position="right">
+      <el-tabs tab-position="top">
         <el-tab-pane label="企业信息">
           <el-card class="box-card">
             <div slot="header" class="clearfix">

+ 113 - 99
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/techedit.vue

@@ -13,11 +13,16 @@
         <span style="float: right;">
           <!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="allocationBtn" v-if="this.formData.Status == '3'">提交专业审批</el-button>-->
           <!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status != '6'">{{auditTitle}}</el-button>-->
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '1'">初审</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '2'">复审</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '3'">提交专业审批</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '4'">专业审批</el-button>
-          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-if="auditBtn && this.formData.Status == '5'">集中审批</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
+            v-if="auditBtn && this.formData.Status == '1'">初审</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
+            v-if="auditBtn && this.formData.Status == '2'">复审</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
+            v-if="auditBtn && this.formData.Status == '3'">提交专业审批</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
+            v-if="auditBtn && this.formData.Status == '4'">专业审批</el-button>
+          <el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity"
+            v-if="auditBtn && this.formData.Status == '5'">集中审批</el-button>
           <!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="AuditEntity" v-else>审批</el-button>-->
           <router-link :to="'/oilsupplier/supplieraudit'">
             <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
@@ -25,7 +30,7 @@
         </span>
       </div>
 
-      <el-tabs tab-position="right">
+      <el-tabs tab-position="top">
         <el-tab-pane label="企业信息">
           <el-card class="box-card">
             <div slot="header" class="clearfix">
@@ -158,7 +163,8 @@
 
         <el-tab-pane label="企业资质">
           <auditbus-list ref="auditbusList" :data="auditbusList" :SupplierCertId="certId" :SupplierId="serviceId+''"
-            :SupplierTypeCode="classId" :Visiblebtn="this.formData.Status" height="360px" style="margin-top: 20px"></auditbus-list>
+            :SupplierTypeCode="classId" :Visiblebtn="this.formData.Status" height="360px" style="margin-top: 20px">
+          </auditbus-list>
         </el-tab-pane>
 
         <el-tab-pane label="流程查看">
@@ -173,32 +179,30 @@
     </el-card>
     <el-dialog title="审核" :visible.sync="dialogMakeSure">
       <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
-        <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
-          <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                       filterable style="width: 100%" v-model="majorDept"
-                       placeholder="请选择组织">
-          </el-cascader>
-        </el-form-item>
-        <el-form-item :label="aduitlabel" v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
-          <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择"
-                     style="width: 100%" filterable allow-create default-first-option>
-            <el-option
-              v-for="item in auditerOptions"
-              :key="item.id"
-              :label="item.realname"
-              :value="item.id">
-            </el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item label="审核状态">
+        <el-form-item label="审核状态" required>
           <template>
             <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
             <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="2">未通过</el-radio>
           </template>
         </el-form-item>
-        <el-form-item label="意见">
+        <el-form-item label="意见" required>
           <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
         </el-form-item>
+        <el-divider></el-divider>
+        <!-- <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
+          <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" filterable
+            style="width: 100%" v-model="majorDept" placeholder="请选择组织">
+          </el-cascader>
+        </el-form-item> -->
+        <el-form-item :label="aduitlabel"
+          v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
+          <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择" style="width: 100%" filterable allow-create
+            default-first-option>
+            <el-option v-for="item in auditerOptions" :key="item.id" :label="item.realname" :value="item.id">
+            </el-option>
+          </el-select>
+        </el-form-item>
+        
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
@@ -207,29 +211,6 @@
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
       <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
-        <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
-          <el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                       filterable style="width: 100%" v-model="majorDept"
-                       placeholder="请选择组织">
-          </el-cascader>
-        </el-form-item>
-        <el-form-item label="复审部门" v-if="this.formData.Status == '1'">
-          <el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                       filterable style="width: 100%" @change="auditOrgChange"
-                       placeholder="请选择组织">
-          </el-cascader>
-        </el-form-item>
-        <el-form-item :label="aduitlabel" v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
-          <el-select ref="selectAuditer" v-model="auditer" 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="审核状态">
           <template>
             <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1">通过</el-radio>
@@ -239,6 +220,31 @@
         <el-form-item label="意见">
           <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
         </el-form-item>
+        <el-divider></el-divider>
+        <!-- <el-form-item label="复审部门" v-if="this.formData.Status == '1'">
+          <el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
+            filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
+          </el-cascader>
+        </el-form-item> -->
+        <el-form-item :label="aduitlabel"
+          v-if="this.formData.Status != '2' && this.formData.Status != '4' && this.formData.Status !== '5' ">
+          <el-select ref="selectAuditer" v-model="auditer" 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-divider></el-divider>
+        <el-form-item label="专业科室" v-if="this.formData.Status == '1'">
+          <!-- <el-select ref="selectAuditer" v-model="majorDept" placeholder="请选择" style="width: 90%" filterable allow-create
+            default-first-option>
+            <el-option v-for="item in orgtreelist" :key="item.id" :label="item.name" :value="item.id">
+            </el-option>
+          </el-select> -->
+          <el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable
+            style="width: 100%" v-model="majorDept" placeholder="请选择组织">
+          </el-cascader>
+        </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
@@ -247,23 +253,21 @@
     </el-dialog>
     <el-dialog title="分配" :visible.sync="dialogAllocation">
       <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
-        <el-form-item label="审批人部门">
+        <!-- <el-form-item label="审批人部门">
           <el-cascader :options="secorgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
-                       filterable style="width: 100%" @change="auditOrgChange"
-                       placeholder="请选择组织">
+            filterable style="width: 100%" @change="auditOrgChange" placeholder="请选择组织">
           </el-cascader>
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item label="审批人">
-          <el-select ref="selectAuditer" v-model="auditer" placeholder="请选择"
-                     style="width: 90%" filterable allow-create default-first-option>
-            <el-option
-              v-for="item in secauditerOptions"
-              :key="item.id"
-              :label="item.realname"
-              :value="item.id">
+          <el-select ref="selectAuditer" v-model="auditer" 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-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核说明"></el-input>
+        </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
@@ -312,7 +316,7 @@
     },
     name: 'oilsupplierEdit',
 
-    data () {
+    data() {
       return {
         equipmentList: [], // 企业主要装备情况
         performanceList: [], // 近三年主要工程业绩
@@ -322,7 +326,6 @@
         auditerOptions: [], // 审核人员
         secauditerOptions: [],
         auditerCurOptions: [],
-        organizeOption: [],
         orgtreelist: [],
         secorgtreelist: [],
         majorDept: [],
@@ -338,10 +341,11 @@
         certId: '',
         classId: '03',
         dictData: null,
+        companyid:'',
 
         orgtreeprops: {
           value: 'id',
-          label: 'Fullname',
+          label: 'name',
           children: 'children'
         },
         formData: {
@@ -446,7 +450,8 @@
         }
       }
     },
-    created () {
+    created() {
+      this.companyid = this.authUser.Profile.Superior
       this.serviceId = this.$route.params.opera + ''
       this.certId = this.$route.query.certid + ''
       if (this.serviceId !== 'add' && this.serviceId > 0) {
@@ -454,26 +459,27 @@
       } else {
         this.formData.Id = 0
       }
-      // this.getDictOptions()
+      this.getDictOptions()
       this.initDatas()
-      this.getorgtreelist()
-      this.getorgtreelistbydeptid()
+      //this.getpreorgtreelist()
+      //this.getorgtreelist()
+      //this.getorgtreelistbydeptid()
     },
     methods: {
-      equipmentdialog () {
+      equipmentdialog() {
         this.$refs['equipmentList'].showDialog()
       },
-      performancedialog () {
+      performancedialog() {
         this.$refs['performanceList'].showDialog()
       },
-      patentdialog () {
+      patentdialog() {
         this.$refs['patentList'].showDialog()
       },
-      winningdialog () {
+      winningdialog() {
         this.$refs['winningList'].showDialog()
       },
 
-      initDatas () {
+      initDatas() {
         if (this.formData.Id) {
           api.getEntityAndCert(this.certId, this.$axios).then(res => {
             this.formData = res.data
@@ -510,20 +516,20 @@
               this.auditTitle = '集中审批'
               this.auditstepcode = 'PROF_REGULATION'
             }
+            
             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.getDictOptions()
+            
             this.isAccess()
           }).catch(err => {
             console.error(err)
           })
         }
       },
-      isAccess () {
+      isAccess() {
         apiCert.isAccess(this.auditstepcode, this.$axios).then(res => {
           this.auditBtn = res.data
         }).catch(err => {
@@ -531,28 +537,31 @@
         })
       },
 
-      getDictOptions () {
+      getDictOptions() {
         let params = {
           status: this.formData.Status,
           majorAduit: this.formData.ThirdAudit
         }
         api.getDictListByStatus(params, this.$axios).then(res => {
           this.dictData = res.data.items
-          this.auditerOptions = res.data.items['Auditer']
-          this.organizeOption = res.data.items['Organizes']
+          this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
+          
+          //this.auditerOptions = res.data.items['Auditer']
+          //this.organizeOption = res.data.items['Organizes']
         }).catch(err => {
           console.error(err)
         })
       },
 
-      getorgtreelist () {
+
+      getorgtreelist() {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/orgalllist', {
-          params
-        })
+            params
+          })
           .then(res => {
             _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
           })
@@ -560,14 +569,14 @@
             console.error(err)
           })
       },
-      getorgtreelistbydeptid () {
+      getorgtreelistbydeptid() {
         let _this = this
         let params = {
           IsInnerOrganize: 1
         }
         _this.$axios.get('organizes/listbydeptid', {
-          params
-        })
+            params
+          })
           .then(res => {
             _this.secorgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
           })
@@ -575,7 +584,7 @@
             console.error(err)
           })
       },
-      auditOrgChange (val) {
+      auditOrgChange() {
         console.log(this.formData.Status, 'status')
         let auditstepcode = ''
         if (this.formData.Status === '1') {
@@ -585,7 +594,9 @@
         } else {
           return
         }
-        let deptid = val[val.length - 1]
+        let deplist = []
+        deplist = this.companyid.split(",")
+        let deptid = deplist[deplist.length - 1]
         console.log(deptid)
         this.auditerOptions = []
         this.auditer = ''
@@ -596,7 +607,7 @@
         })
       },
       // 保存信息
-      saveEntity () {
+      saveEntity() {
         this.$refs['EntityForm'].validate((valid) => {
           if (valid) {
             // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
@@ -612,11 +623,11 @@
       },
 
       // 保存信息
-      saveCertEntity  () {
+      saveCertEntity() {
         this.$refs['SupplierCertEditCompoment'].saveEntity()
       },
 
-      addEntity () {
+      addEntity() {
         this.formData.SupplierTypeCode = '03'
         this.formData.SupplierTypeName = '技术服务类'
         api.addEntity(this.formData, this.$axios).then(res => {
@@ -640,7 +651,7 @@
         })
       },
 
-      updateEntity () {
+      updateEntity() {
         api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -660,7 +671,7 @@
         })
       },
 
-      CheckCompanyBase () {
+      CheckCompanyBase() {
         if (!this.formData.Id) {
           this.$message({
             type: 'error',
@@ -678,7 +689,7 @@
         return true
       },
       // 企业人员结构情况
-      updateNumberEntity () {
+      updateNumberEntity() {
         if (!this.CheckCompanyBase()) {
           return false
         }
@@ -701,7 +712,8 @@
         })
       },
 
-      AuditEntity () {
+      AuditEntity() {
+        this.auditOrgChange()
         if (this.formData.Status === '3') {
           this.dialogAllocation = true
         } else if (this.formData.Status === '1') {
@@ -711,11 +723,11 @@
         }
       },
 
-      allocationBtn () {
+      allocationBtn() {
         this.dialogAllocation = true
       },
       // 审核通过
-      makeSure () {
+      makeSure() {
         if (this.shenheForm.SuccessStatus === 1) {
           if (this.formData.Status === '1' && this.majorDept.length === 0) {
             this.$message({
@@ -724,7 +736,8 @@
             })
             return
           }
-          if ((!this.auditer || this.auditer === 0) && this.formData.Status !== '2' && this.formData.Status !== '4' && this.formData.Status !== '5') {
+          if ((!this.auditer || this.auditer === 0) && this.formData.Status !== '2' && this.formData.Status !== '4' &&
+            this.formData.Status !== '5') {
             this.$message({
               type: 'warning',
               message: '请选择审核人!'
@@ -735,7 +748,7 @@
         this.checkstatus()
       },
 
-      checkstatus () {
+      checkstatus() {
         let params = this.shenheForm
         let audit = {
           auditer: this.auditer,
@@ -764,7 +777,7 @@
         })
       },
 
-      jstimehandle (val) {
+      jstimehandle(val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -777,7 +790,7 @@
         }
       },
 
-      formatDateTime (date) {
+      formatDateTime(date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -790,6 +803,7 @@
       }
     }
   }
+
 </script>
 
 <style lang="scss">