2
3
فهرست منبع

Merge branch 'develop' of http://code.dashoo.cn/dashoo/supplier_system into develop

dubch 4 سال پیش
والد
کامیت
418c259b42

+ 13 - 8
src/dashoo.cn/frontend_web/src/api/oilcontract/permission.js

@@ -1,10 +1,15 @@
 export default {
-    permissionIsauth(params, myAxios) {
-      return myAxios({
-        url: '/permission/isauth',
-        method: 'GET',
-        params: params
-      });
-    },
-    
+  permissionIsauth (params, myAxios) {
+    return myAxios({
+      url: '/permission/isauth',
+      method: 'GET',
+      params: params
+    })
+  },
+  getDelAuditForProf (myAxios) {
+    return myAxios({
+      url: '/permission/delete-perm',
+      method: 'GET'
+    })
+  }
 }

+ 10 - 2
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-basis/index.vue

@@ -63,7 +63,7 @@
               <div style="text-align: right; margin: 0">
                 <el-button type="primary" size="mini" :disabled="!deleteBoolean || scope.row.Status > 0" @click="deleteEntity(scope.row,scope.$index)">删除</el-button>
               </div>
-              <el-button slot="reference" type="text" :disabled="!deleteBoolean || scope.row.Status > 0" style="margin-left:3px" icon="el-icon-delete" size="small">删除
+              <el-button slot="reference" type="text" :disabled="!deleteBoolean || (scope.row.Status > 0 && !(scope.row.Status == 8 && delAuditProf))" style="margin-left:3px" icon="el-icon-delete" size="small">删除
               </el-button>
             </el-popover>
           </template>
@@ -274,7 +274,8 @@ export default {
   },
   data () {
     return {
-      tableLoading:false,//table表格
+      delAuditProf: false, // 企管法规处的权限
+      tableLoading: false, // table表格
       userSelectBoolean: false,
       eveIdList: 0,
       selectAllButtonBoolean: false,
@@ -441,6 +442,7 @@ export default {
     // 查询列表
     this.initDatas()
     // this.getDictOptions()
+    this.getDelAuditForProf()
     this.statusFun()
     // console.log(8888888,localStorage.getItem('userRoleids'))
     // if(localStorage.getItem('userRoleids')!=''&&localStorage.getItem('userRoleids')!=undefined){
@@ -601,6 +603,12 @@ export default {
         this.clearSearch()
       }
     },
+    // 已审批完成 企管法规处有删除权限
+    getDelAuditForProf () {
+      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+        this.delAuditProf = res.data
+      })
+    },
     // 列表排序功能
     orderby (column) {
       if (column.order == 'ascending') {

+ 108 - 105
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-goods/index.vue

@@ -62,7 +62,7 @@
               <div style="text-align: right; margin: 0">
                 <el-button type="primary" size="mini" :disabled="!deleteBoolean || scope.row.Status > 0" @click="deleteEntity(scope.row,scope.$index)">删除</el-button>
               </div>
-              <el-button slot="reference" type="text" :disabled="!deleteBoolean || scope.row.Status > 0" style="margin-left:3px" icon="el-icon-delete" size="small">删除
+              <el-button slot="reference" type="text" :disabled="!deleteBoolean || (scope.row.Status > 0 && !(scope.row.Status == 8 && delAuditProf))" style="margin-left:3px" icon="el-icon-delete" size="small">删除
               </el-button>
             </el-popover>
           </template>
@@ -203,9 +203,9 @@ import permissionApi from '@/api/oilcontract/permission'
 import submitPopup from '@/components/oilcontract/submitPopup.vue'
 import FileSaver from 'file-saver'
 import XLSX from 'xlsx'
-import evaluationList from "../contract-basis/_opera/evaluationlist";
-import baseList from "../contract-basis/_opera/baselist";
-import util from "../../../utils/util";
+import evaluationList from '../contract-basis/_opera/evaluationlist'
+import baseList from '../contract-basis/_opera/baselist'
+import util from '../../../utils/util'
 
 export default {
   computed: {
@@ -219,43 +219,43 @@ export default {
           switch (index) {
             case 0:
               return '已保存'
-              break;
+              break
             case 1:
               return '待初审'
-              break;
+              break
             case 2:
               return '待复审'
-              break;
+              break
             case 3:
               return '专业科室接收'
-              break;
+              break
             case 4:
               return '待专业处室审核'
-              break;
+              break
             case 7:
               return '待企管法规处审批'
-              break;
+              break
             case 8:
               return '已完成'
-              break;
+              break
             case -1:
               return '初审未通过'
-              break;
+              break
             case -2:
               return '复审未通过'
-              break;
+              break
             case -3:
               return '专业处室未通过'
-              break;
+              break
             case -4:
               return '专业处室审核未通过'
-              break;
+              break
             case -9:
               return '企管法规处审批未通过'
-              break;
+              break
             default:
               return '--'
-              break;
+              break
           }
         } else if (index === 'OpenDate' || index === 'EndDate' || index === 'PlanFinishDate' || index === 'SubmitDate') {
           let timeString = this.timeStyle(item)
@@ -263,7 +263,6 @@ export default {
         } else {
           return item
         }
-
       }
     }
   },
@@ -271,10 +270,10 @@ export default {
   components: {
     submitPopup
   },
-  data() {
+  data () {
     return {
-      tableLoading:false,
-      
+      delAuditProf: false, // 企管法规处的权限
+      tableLoading: false,
       userSelectBoolean: false,
       eveIdList: 0,
       selectAllButtonBoolean: false,
@@ -282,20 +281,20 @@ export default {
       editeBoolean: false,
       deleteBoolean: false,
       dialogVisible: false,
-      //列表数据
+      // 列表数据
       entityList: [],
-      //分页参数
+      // 分页参数
       size: 10,
       currentPage: 1,
       currentItemCount: 0,
-      //列表排序
+      // 列表排序
       Column: {
         Order: '',
         Prop: ''
       },
-      //查询时间 new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()
+      // 查询时间 new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()
       CreateOn: [],
-      //查询项
+      // 查询项
       searchFormReset: {},
       searchForm: {
         Id: '',
@@ -331,13 +330,13 @@ export default {
         CreateBy: '',
         ModifiedOn: '',
         ModifiedUserId: '',
-        ModifiedBy: '',
+        ModifiedBy: ''
 
       },
       tableColumns: [
 
         {
-          prop: "Status",
+          prop: 'Status',
           label: '状态',
           width: 100,
           sort: true
@@ -351,49 +350,49 @@ export default {
         // },
 
         {
-          prop: "SupplierName",
+          prop: 'SupplierName',
           label: '企业名称',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectName",
+          prop: 'ProjectName',
           label: '项目名称',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ContractNo",
+          prop: 'ContractNo',
           label: '合同编号',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectPlace",
+          prop: 'ProjectPlace',
           label: '工程地点',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectOwner",
+          prop: 'ProjectOwner',
           label: '项目负责人',
           width: 100,
           sort: true
         },
 
         {
-          prop: "Telephone",
+          prop: 'Telephone',
           label: '联系人电话',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectType",
+          prop: 'ProjectType',
           label: '项目类别',
           width: 100,
           sort: true
@@ -407,43 +406,43 @@ export default {
         // },
 
         {
-          prop: "Amount",
+          prop: 'Amount',
           label: '合同总金额(万元)',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ContractPeriod",
+          prop: 'ContractPeriod',
           label: '合同总工期(天)',
           width: 100,
           sort: true
         },
 
         {
-          prop: "OpenDate",
+          prop: 'OpenDate',
           label: '开工日期',
           width: 100,
           sort: true
         },
 
         {
-          prop: "PlanFinishDate",
+          prop: 'PlanFinishDate',
           label: '计划竣工时间',
           width: 100,
           sort: true
-        },
-
+        }
 
       ]
     }
   },
-  created() {
-    //查询条件初始值备份
-    Object.assign(this.searchFormReset, this.searchForm);
-    //查询列表
-    this.initDatas();
-    //this.getDictOptions()
+  created () {
+    // 查询条件初始值备份
+    Object.assign(this.searchFormReset, this.searchForm)
+    // 查询列表
+    this.initDatas()
+    this.getDelAuditForProf()
+    // this.getDictOptions()
     this.statusFun()
   },
   methods: {
@@ -454,7 +453,7 @@ export default {
       return util.formatDate('year', item)
     },
     // 一键处理
-    onSelectAll(e) {
+    onSelectAll (e) {
       console.log(e)
       var list = []
       e.map((item, index) => {
@@ -463,37 +462,37 @@ export default {
       this.eveIdList = list
     },
     // 筛选
-    selectableFun(row, index) {
+    selectableFun (row, index) {
       if (row.Status == 4) {
-        return true;
+        return true
       } else {
-        return false;
+        return false
       }
     },
-    //一键处理按钮
-    onSelectAllButton() {
+    // 一键处理按钮
+    onSelectAllButton () {
       this.selectAllButtonBoolean = true
     },
-    //一键处理确定
-    onSelectAllButtonTrue() {
+    // 一键处理确定
+    onSelectAllButtonTrue () {
       if (this.eveIdList != 0 && this.eveIdList != undefined) {
         this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
       } else {
         this.$message({
           type: 'warning',
           message: '请选择评价'
-        });
+        })
       }
     },
-    //一键处理取消
-    onSelectAllButtonDelete() {
+    // 一键处理取消
+    onSelectAllButtonDelete () {
       this.selectAllButtonBoolean = false
     },
-    //状态判断
+    // 状态判断
     statusFun () {
       // 一键处理权限
       var data = {
-        percode: 'oil_contract.Review.Batch',
+        percode: 'oil_contract.Review.Batch'
       }
       permissionApi.permissionIsauth(data, this.$axios).then(res => {
         console.log('一键处理权限', res.data)
@@ -532,26 +531,26 @@ export default {
         console.error(err)
       })
     },
-    //跳转评价
-    onNavigateEvaluate(item) {
+    // 跳转评价
+    onNavigateEvaluate (item) {
       console.log('跳转', item)
       this.$router.push({
         path: '/oilcontract/contract-goods/' + item.Id + '/evaluate',
         query: {
           ContractId: item.ContractId,
-          type: 2,
+          type: 2
         }
       })
     },
-    initDatas() {
-      this.tableLoading = true;
-      //分页及列表条件
+    initDatas () {
+      this.tableLoading = true
+      // 分页及列表条件
       let params = {
         _currentPage: this.currentPage,
         _size: this.size,
         Order: this.Column.Order,
         Prop: this.Column.Prop,
-        ContractClass: '01',
+        ContractClass: '01'
       }
       // <el-option label="物资类" value="01" key="01"></el-option>
       // <el-option label="基建类" value="02" key="02"></el-option>
@@ -566,39 +565,45 @@ export default {
         myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
         myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
       }
-      //查询条件
+      // 查询条件
       Object.assign(params, this.searchForm)
-      //访问接口
+      // 访问接口
       api.getReviewList(myCreateOn.join(','), params, this.$axios).then(res => {
-        this.tableLoading = false;
+        this.tableLoading = false
         console.log('评价接口', res)
         this.entityList = res.data.items
         this.currentItemCount = res.data.currentItemCount
       }).catch(err => {
-        this.tableLoading = false;
+        this.tableLoading = false
         console.error(err)
       })
     },
 
-    getDictOptions() {
+    getDictOptions () {
       api.getDictList(this.$axios).then(res => {
-        //this.dictOptions.customerList = res.data.items['customerList']
-        //this.dictOptions.projectList = res.data.items['projectList']
+        // this.dictOptions.customerList = res.data.items['customerList']
+        // this.dictOptions.projectList = res.data.items['projectList']
 
       }).catch(err => {
         console.error(err)
       })
     },
 
-    searchCommand(command) {
+    searchCommand (command) {
       if (command == 'search') {
         this.dialogVisible = true
       } else if (command == 'clear') {
         this.clearSearch()
       }
     },
-    //列表排序功能
-    orderby(column) {
+    // 已审批完成 企管法规处有删除权限
+    getDelAuditForProf () {
+      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+        this.delAuditProf = res.data
+      })
+    },
+    // 列表排序功能
+    orderby (column) {
       if (column.order == 'ascending') {
         this.Column.Order = 'asc'
       } else if (column.order == 'descending') {
@@ -607,48 +612,47 @@ export default {
       this.Column.Prop = column.prop
       this.initDatas()
     },
-    clearSearch() {
-      Object.assign(this.searchForm, this.searchFormReset);
-      //this.searchForm = this.searchFormReset;
+    clearSearch () {
+      Object.assign(this.searchForm, this.searchFormReset)
+      // this.searchForm = this.searchFormReset;
       this.CreateOn = ''
       this.initDatas()
     },
-    handleSearch() {
-      this.currentPage = 1;
-      this.dialogVisible = false;
-      this.initDatas();
+    handleSearch () {
+      this.currentPage = 1
+      this.dialogVisible = false
+      this.initDatas()
     },
-    handleCurrentChange(value) {
+    handleCurrentChange (value) {
       this.currentPage = value
       this.initDatas()
     },
-    handleSizeChange(value) {
+    handleSizeChange (value) {
       this.size = value
       this.currentPage = 1
       this.initDatas()
     },
-    deleteEntity(row, index) {
+    deleteEntity (row, index) {
       this.$refs['popover-' + `${index}`].doClose()
       apiReview.deleteEntity(row.Id, this.$axios).then(res => {
         if (res.data.code === 0) {
-          this.initDatas();
+          this.initDatas()
           this.$message({
             type: 'success',
             message: res.data.message
-          });
-
+          })
         } else {
           this.$message({
             type: 'warning',
             message: res.data.message
-          });
+          })
         }
       }).catch(err => {
         console.error(err)
-      });
+      })
     },
 
-    jstimehandle(val) {
+    jstimehandle (val) {
       if (val === '') {
         return '----'
       } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -660,7 +664,7 @@ export default {
         return val.substring(0, 10)
       }
     },
-    exportExcel() {
+    exportExcel () {
       /* generate workbook object from table */
       let wb = XLSX.utils.table_to_book(
         document.querySelector('#rebateSetTable')
@@ -683,20 +687,19 @@ export default {
       }
       return wbout
     },
-    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;
+    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>
 
 <style lang="scss">

+ 107 - 101
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-service/index.vue

@@ -62,7 +62,7 @@
               <div style="text-align: right; margin: 0">
                 <el-button type="primary" size="mini" :disabled="!deleteBoolean || scope.row.Status > 0" @click="deleteEntity(scope.row,scope.$index)">删除</el-button>
               </div>
-              <el-button slot="reference" type="text" :disabled="!deleteBoolean || scope.row.Status > 0" style="margin-left:3px" icon="el-icon-delete" size="small">删除
+              <el-button slot="reference" type="text" :disabled="!deleteBoolean || (scope.row.Status > 0 && !(scope.row.Status == 8 && delAuditProf))" style="margin-left:3px" icon="el-icon-delete" size="small">删除
               </el-button>
             </el-popover>
           </template>
@@ -204,7 +204,7 @@ import permissionApi from '@/api/oilcontract/permission'
 import submitPopup from '@/components/oilcontract/submitPopup.vue'
 import FileSaver from 'file-saver'
 import XLSX from 'xlsx'
-import util from "../../../utils/util";
+import util from '../../../utils/util'
 
 export default {
   computed: {
@@ -218,43 +218,43 @@ export default {
           switch (index) {
             case 0:
               return '已保存'
-              break;
+              break
             case 1:
               return '待初审'
-              break;
+              break
             case 2:
               return '待复审'
-              break;
+              break
             case 3:
               return '专业科室接收'
-              break;
+              break
             case 4:
               return '待专业处室审核'
-              break;
+              break
             case 7:
               return '待企管法规处审批'
-              break;
+              break
             case 8:
               return '已完成'
-              break;
+              break
             case -1:
               return '初审未通过'
-              break;
+              break
             case -2:
               return '复审未通过'
-              break;
+              break
             case -3:
               return '专业处室未通过'
-              break;
+              break
             case -4:
               return '专业处室审核未通过'
-              break;
+              break
             case -9:
               return '企管法规处审批未通过'
-              break;
+              break
             default:
               return '--'
-              break;
+              break
           }
         } else if (index === 'OpenDate' || index === 'EndDate' || index === 'PlanFinishDate' || index === 'SubmitDate') {
           let timeString = this.timeStyle(item)
@@ -269,8 +269,9 @@ export default {
   components: {
     submitPopup
   },
-  data() {
+  data () {
     return {
+      delAuditProf: false, // 企管法规处的权限
       tableLoading: false,
       userSelectBoolean: false,
       eveIdList: 0,
@@ -279,20 +280,20 @@ export default {
       editeBoolean: false,
       deleteBoolean: false,
       dialogVisible: false,
-      //列表数据
+      // 列表数据
       entityList: [],
-      //分页参数
+      // 分页参数
       size: 10,
       currentPage: 1,
       currentItemCount: 0,
-      //列表排序
+      // 列表排序
       Column: {
         Order: '',
         Prop: ''
       },
-      //查询时间 new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()
+      // 查询时间 new Date(new Date().getTime() - 30 * 24 * 60 * 60 * 1000), new Date()
       CreateOn: [],
-      //查询项
+      // 查询项
       searchFormReset: {},
       searchForm: {
         Id: '',
@@ -328,13 +329,13 @@ export default {
         CreateBy: '',
         ModifiedOn: '',
         ModifiedUserId: '',
-        ModifiedBy: '',
+        ModifiedBy: ''
 
       },
       tableColumns: [
 
         {
-          prop: "Status",
+          prop: 'Status',
           label: '状态',
           width: 100,
           sort: true
@@ -348,49 +349,49 @@ export default {
         // },
 
         {
-          prop: "SupplierName",
+          prop: 'SupplierName',
           label: '企业名称',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectName",
+          prop: 'ProjectName',
           label: '项目名称',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ContractNo",
+          prop: 'ContractNo',
           label: '合同编号',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectPlace",
+          prop: 'ProjectPlace',
           label: '工程地点',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectOwner",
+          prop: 'ProjectOwner',
           label: '项目负责人',
           width: 100,
           sort: true
         },
 
         {
-          prop: "Telephone",
+          prop: 'Telephone',
           label: '联系人电话',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ProjectType",
+          prop: 'ProjectType',
           label: '项目类别',
           width: 100,
           sort: true
@@ -404,42 +405,43 @@ export default {
         // },
 
         {
-          prop: "Amount",
+          prop: 'Amount',
           label: '合同总金额(万元)',
           width: 100,
           sort: true
         },
 
         {
-          prop: "ContractPeriod",
+          prop: 'ContractPeriod',
           label: '合同总工期(天)',
           width: 100,
           sort: true
         },
 
         {
-          prop: "OpenDate",
+          prop: 'OpenDate',
           label: '开工日期',
           width: 100,
           sort: true
         },
 
         {
-          prop: "PlanFinishDate",
+          prop: 'PlanFinishDate',
           label: '计划竣工时间',
           width: 100,
           sort: true
-        },
+        }
 
       ]
     }
   },
-  created() {
-    //查询条件初始值备份
-    Object.assign(this.searchFormReset, this.searchForm);
-    //查询列表
-    this.initDatas();
-    //this.getDictOptions()
+  created () {
+    // 查询条件初始值备份
+    Object.assign(this.searchFormReset, this.searchForm)
+    // 查询列表
+    this.initDatas()
+    this.getDelAuditForProf()
+    // this.getDictOptions()
     this.statusFun()
   },
   methods: {
@@ -449,8 +451,8 @@ export default {
       }
       return util.formatDate('year', item)
     },
-    //一键处理
-    onSelectAll(e) {
+    // 一键处理
+    onSelectAll (e) {
       console.log(e)
       var list = []
       e.map((item, index) => {
@@ -458,35 +460,35 @@ export default {
       })
       this.eveIdList = list
     },
-    //筛选
-    selectableFun(row, index) {
+    // 筛选
+    selectableFun (row, index) {
       if (row.Status == 4) {
-        return true;
+        return true
       } else {
-        return false;
+        return false
       }
     },
-    //一键处理按钮
-    onSelectAllButton() {
+    // 一键处理按钮
+    onSelectAllButton () {
       this.selectAllButtonBoolean = true
     },
-    //一键处理确定
-    onSelectAllButtonTrue() {
+    // 一键处理确定
+    onSelectAllButtonTrue () {
       if (this.eveIdList != 0 && this.eveIdList != undefined) {
         this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
       } else {
         this.$message({
           type: 'warning',
           message: '请选择评价'
-        });
+        })
       }
     },
-    //一键处理取消
-    onSelectAllButtonDelete() {
+    // 一键处理取消
+    onSelectAllButtonDelete () {
       this.selectAllButtonBoolean = false
     },
-    //状态判断
-    statusFun() {
+    // 状态判断
+    statusFun () {
       // 一键处理权限
       let data = {
         percode: 'oil_contract.Review.Batch'
@@ -529,26 +531,26 @@ export default {
         console.error(err)
       })
     },
-    //跳转评价
-    onNavigateEvaluate(item) {
+    // 跳转评价
+    onNavigateEvaluate (item) {
       console.log('跳转', item)
       this.$router.push({
         path: '/oilcontract/contract-service/' + item.Id + '/evaluate',
         query: {
           ContractId: item.ContractId,
-          type: 2,
+          type: 2
         }
       })
     },
-    initDatas() {
-      this.tableLoading = true;
-      //分页及列表条件
+    initDatas () {
+      this.tableLoading = true
+      // 分页及列表条件
       let params = {
         _currentPage: this.currentPage,
         _size: this.size,
         Order: this.Column.Order,
         Prop: this.Column.Prop,
-        ContractClass: '03',
+        ContractClass: '03'
       }
       // <el-option label="物资类" value="01" key="01"></el-option>
       // <el-option label="基建类" value="02" key="02"></el-option>
@@ -563,39 +565,45 @@ export default {
         myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
         myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
       }
-      //查询条件
+      // 查询条件
       Object.assign(params, this.searchForm)
-      //访问接口
+      // 访问接口
       api.getReviewList(myCreateOn.join(','), params, this.$axios).then(res => {
-        this.tableLoading = false;
+        this.tableLoading = false
         console.log('评价接口', res)
         this.entityList = res.data.items
         this.currentItemCount = res.data.currentItemCount
       }).catch(err => {
-        this.tableLoading = false;
+        this.tableLoading = false
         console.error(err)
       })
     },
 
-    getDictOptions() {
+    getDictOptions () {
       api.getDictList(this.$axios).then(res => {
-        //this.dictOptions.customerList = res.data.items['customerList']
-        //this.dictOptions.projectList = res.data.items['projectList']
+        // this.dictOptions.customerList = res.data.items['customerList']
+        // this.dictOptions.projectList = res.data.items['projectList']
 
       }).catch(err => {
         console.error(err)
       })
     },
 
-    searchCommand(command) {
+    searchCommand (command) {
       if (command == 'search') {
         this.dialogVisible = true
       } else if (command == 'clear') {
         this.clearSearch()
       }
     },
-    //列表排序功能
-    orderby(column) {
+    // 已审批完成 企管法规处有删除权限
+    getDelAuditForProf () {
+      permissionApi.getDelAuditForProf(this.$axios).then(res => {
+        this.delAuditProf = res.data
+      })
+    },
+    // 列表排序功能
+    orderby (column) {
       if (column.order == 'ascending') {
         this.Column.Order = 'asc'
       } else if (column.order == 'descending') {
@@ -604,48 +612,47 @@ export default {
       this.Column.Prop = column.prop
       this.initDatas()
     },
-    clearSearch() {
-      Object.assign(this.searchForm, this.searchFormReset);
-      //this.searchForm = this.searchFormReset;
+    clearSearch () {
+      Object.assign(this.searchForm, this.searchFormReset)
+      // this.searchForm = this.searchFormReset;
       this.CreateOn = ''
       this.initDatas()
     },
-    handleSearch() {
-      this.currentPage = 1;
-      this.dialogVisible = false;
-      this.initDatas();
+    handleSearch () {
+      this.currentPage = 1
+      this.dialogVisible = false
+      this.initDatas()
     },
-    handleCurrentChange(value) {
+    handleCurrentChange (value) {
       this.currentPage = value
       this.initDatas()
     },
-    handleSizeChange(value) {
+    handleSizeChange (value) {
       this.size = value
       this.currentPage = 1
       this.initDatas()
     },
-    deleteEntity(row, index) {
+    deleteEntity (row, index) {
       this.$refs['popover-' + `${index}`].doClose()
       apiReview.deleteEntity(row.Id, this.$axios).then(res => {
         if (res.data.code === 0) {
-          this.initDatas();
+          this.initDatas()
           this.$message({
             type: 'success',
             message: res.data.message
-          });
-
+          })
         } else {
           this.$message({
             type: 'warning',
             message: res.data.message
-          });
+          })
         }
       }).catch(err => {
         console.error(err)
-      });
+      })
     },
 
-    jstimehandle(val) {
+    jstimehandle (val) {
       if (val === '') {
         return '----'
       } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -657,7 +664,7 @@ export default {
         return val.substring(0, 10)
       }
     },
-    exportExcel() {
+    exportExcel () {
       /* generate workbook object from table */
       let wb = XLSX.utils.table_to_book(
         document.querySelector('#rebateSetTable')
@@ -680,20 +687,19 @@ export default {
       }
       return wbout
     },
-    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;
+    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>
 
 <style lang="scss">