Jelajahi Sumber

前端: 日常评价各个环节一键审批

baichengfei 4 tahun lalu
induk
melakukan
5e641c4b9a

+ 6 - 0
src/dashoo.cn/frontend_web/src/api/oilcontract/permission.js

@@ -11,5 +11,11 @@ export default {
       url: '/permission/delete-perm',
       method: 'GET'
     })
+  },
+  getBatchAuditPermission (myAxios) {
+    return myAxios({
+      url: '/permission/batch-audit',
+      method: 'GET'
+    })
   }
 }

+ 63 - 9
src/dashoo.cn/frontend_web/src/components/oilcontract/submitPopup.vue

@@ -114,6 +114,27 @@
       </div>
     </el-dialog>
 
+    <!-- 专业科室接收 批量审批 -->
+    <el-dialog title="分配" :close-on-click-modal="false" :visible.sync="dialogBusinessOfficeSeparateBatchAuditVisible">
+      <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
+        <el-form-item label="审批人">
+          <el-select ref="selectAuditer" v-model="ProfessionalAudit" placeholder="请选择" style="width: 100%" filterable
+                     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="dialogBusinessOfficeSeparateBatchAuditVisible = false">取 消</el-button>
+        <el-button type="primary" size="small" @click="businessOfficeSeparateBatchAuditMakeSure()" :loading="btnloading">确
+          定
+        </el-button>
+      </div>
+    </el-dialog>
 
     <choose-auditor-fen ref="chooseAuditorFen"
                         @close="setAuditerFen"
@@ -144,7 +165,7 @@ export default {
   props: {
     // 从合同进来还是从编辑进来 1合同2编辑
     eveId: {
-      type: Number,
+      type: null,
       default: 0
     },
     formData: {
@@ -171,6 +192,7 @@ export default {
       dialogVisibleCom: false, // 初审
       dialogCommonAuditMakeSureVisible: false, // 复审
       dialogBusinessOfficeSeparateAuditVisible: false, // 专业科室接收
+      dialogBusinessOfficeSeparateBatchAuditVisible: false, // 专业科室接收批量审批
 
       chooseAuditorVisibleFen: false,
       auditer: '',
@@ -212,14 +234,13 @@ export default {
     }
   },
   created () {
-    console.log('SDFJLSDFSD')
     console.log(this.eveId, 'eveId')
     this.getFirAuditerByDept()
     this.getDictOptions()
     this.orgtreeChange(this.majorDept)
   },
   methods: {
-    // 专业科室接收。。。。。。。。。。。。。。
+    // 专业科室接收
     // 数据
     auditOrgChange () {
       let auditstepcode = ''
@@ -238,6 +259,7 @@ export default {
         console.error(err)
       })
     },
+    // 业务处室分办 单条(待办入口)
     businessOfficeSeparateAuditMakeSure () {
       if (this.ProfessionalAudit === '') {
         this.$message({
@@ -275,6 +297,40 @@ export default {
         console.error(err)
       })
     },
+    // 日常评价业务处室分办 批量审批
+    businessOfficeSeparateBatchAuditMakeSure () {
+      if (this.ProfessionalAudit === '') {
+        this.$message({
+          type: 'warning',
+          message: '请选择审批人!'
+        })
+        return
+      }
+      let params = {
+        ProfessionalAudit: this.ProfessionalAudit,
+        AuditRemark: this.shenheForm.AuditorRemark
+      }
+      this.btnloading = true
+      let _this = this
+      apiOilcontract['businessSeparateAudit'](this.eveId, params, this.$axios).then(res => {
+        if (res.data.code === 0) {
+          this.$message({
+            type: 'success',
+            message: res.data.message
+          })
+          this.$emit('refreshPage', {})
+        } else {
+          this.$message({
+            type: 'warning',
+            message: res.data.message
+          })
+        }
+        _this.dialogBusinessOfficeSeparateBatchAuditVisible = false
+        _this.btnloading = false
+      }).catch(err => {
+        console.error(err)
+      })
+    },
     // 复审的方法。。。。。。。。。。。。。。。
     // 选择审批选项
     radioChange () {
@@ -403,7 +459,7 @@ export default {
       }
       return true
     },
-    // 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
+    // 。。。。
     setAuditerFen (val, name) {
       this.auditer = val
       this.auditerName = name
@@ -517,8 +573,6 @@ export default {
         console.error(err)
       })
     },
-
-
     getDictOptions () {
       let params = {
         status: this.formData.Status,
@@ -544,7 +598,7 @@ export default {
         console.error(err)
       })
     },
-    orgunitChange(val) {
+    orgunitChange (val) {
       if (!val) {
         return false
       }
@@ -556,7 +610,7 @@ export default {
         console.error(err)
       })
     },
-    companySubmitToSecUnitSeparateMakeSure() {
+    companySubmitToSecUnitSeparateMakeSure () {
       if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
         this.$message({
           type: 'warning',
@@ -591,7 +645,7 @@ export default {
         .catch(err => {
           console.error(err)
         })
-    },
+    }
   }
 }
 </script>

+ 98 - 36
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-basis/index.vue

@@ -25,12 +25,10 @@
           <el-form-item label="企业名称">
             <el-input size="mini" clearable v-model="searchForm.SupplierName" placeholder="请输入企业名称"></el-input>
           </el-form-item>
-          <el-form-item label="状态" style="width: 150px">
-            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 100px" clearable>
+          <el-form-item label="状态" style="width: 200px">
+            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 150px" clearable>
               <el-option label="全部" value="" key="01"></el-option>
-              <el-option label="已保存" value="0" key="02"></el-option>
-              <el-option label="评价中" value="1" key="03"></el-option>
-              <el-option label="已完成" value="8" key="04"></el-option>
+              <el-option v-for="(item, index) in auditOptions" :key="index" :label="item.label" :value="item.value" style="width: 100%"></el-option>
             </el-select>
           </el-form-item>
           <el-form-item label="年度">
@@ -218,7 +216,7 @@
     </el-dialog>
 
     <!-- :selectDeptBoolean="false"-->
-    <submit-popup ref="submitpopup" :eveId="eveIdList" @refreshPage="initDatas"></submit-popup>
+    <submit-popup ref="submitpopup" :eveId="eveIdList" :formData="formData" @refreshPage="initDatas"></submit-popup>
 
   </div>
 </template>
@@ -244,43 +242,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)
@@ -297,6 +295,39 @@ export default {
   },
   data () {
     return {
+      auditOptions: [
+        {
+          value: 0,
+          label: '已保存'
+        }, {
+          value: 1,
+          label: '待初审'
+        }, {
+          value: 2,
+          label: '待复审'
+        }, {
+          value: 3,
+          label: '待专业处室分办'
+        }, {
+          value: 4,
+          label: '待专业处室审核'
+        }, {
+          value: 7,
+          label: '待企管法规处审批'
+        }, {
+          value: 8,
+          label: '已完成'
+        }
+      ],
+      formData: {
+        Status: ''
+      },
+      dailyReviewBatchCode: '',
+      firstBatchPerm: false,
+      secondBatchPerm: false,
+      busSepBatchPerm: false,
+      busAuditBatchPerm: false,
+      profRegBatchPerm: false,
       yearList: [],
       delAuditProf: false, // 企管法规处的权限
       tableLoading: false, // table表格
@@ -464,6 +495,7 @@ export default {
   },
   created () {
     this.getYearList()
+    this.getBatchAuditPerm()
     // 查询条件初始值备份
     Object.assign(this.searchFormReset, this.searchForm)
     // 查询列表
@@ -485,6 +517,22 @@ export default {
       let nowYear = now.getFullYear()
       this.yearList = [nowYear, nowYear - 1]
     },
+    getBatchAuditPerm () {
+      permissionApi.getBatchAuditPermission(this.$axios).then(res => {
+        if (res.status === 200) {
+          this.firstBatchPerm = res.data[0]
+          this.secondBatchPerm = res.data[1]
+          this.busSepBatchPerm = res.data[2]
+          this.busAuditBatchPerm = res.data[3]
+          this.profRegBatchPerm = res.data[4]
+          if (this.firstBatchPerm || this.secondBatchPerm || this.busSepBatchPerm || this.busAuditBatchPerm || this.profRegBatchPerm) {
+            this.userSelectBoolean = true
+          }
+        }
+      }).catch(err => {
+        console.error(err)
+      })
+    },
     timeStyle (item) {
       if (item === '0001-01-01T00:00:00Z' || item === '') {
         return '--'
@@ -498,11 +546,19 @@ export default {
       e.map((item, index) => {
         list.push(item.Id)
       })
-      this.eveIdList = list
+      this.eveIdList = String(list)
     },
     // 筛选
     selectableFun (row, index) {
-      if (row.Status == 4) {
+      if (row.Status == 1 && this.firstBatchPerm) {
+        return true
+      } else if (row.Status == 2 && this.secondBatchPerm) {
+        return true
+      } else if (row.Status == 3 && this.busSepBatchPerm) {
+        return true
+      } else if (row.Status == 4 && this.busAuditBatchPerm) {
+        return true
+      } else if (row.Status == 7 && this.profRegBatchPerm) {
         return true
       } else {
         return false
@@ -515,7 +571,13 @@ export default {
     // 一键处理确定
     onSelectAllButtonTrue () {
       if (this.eveIdList != 0 && this.eveIdList != undefined) {
-        this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        if (this.busSepBatchPerm) {
+          this.formData.Status = '3'
+          this.$refs.submitpopup.auditOrgChange()
+          this.$refs.submitpopup.dialogBusinessOfficeSeparateBatchAuditVisible = true
+        } else {
+          this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        }
       } else {
         this.$message({
           type: 'warning',
@@ -530,19 +592,19 @@ export default {
     // 状态判断
     statusFun () {
       // 一键处理权限
-      let data = {
-        percode: 'oil_contract.Review.Batch'
-      }
-      permissionApi.permissionIsauth(data, this.$axios).then(res => {
-        console.log('一键处理权限权限', res.data)
-        if (res.data.code == 0) {
-          if (res.data.message == '有权限') {
-            this.userSelectBoolean = true
-          }
-        }
-      }).catch(err => {
-        console.error(err)
-      })
+      // let data = {
+      //   percode: 'oil_contract.Review.Batch'
+      // }
+      // permissionApi.permissionIsauth(data, this.$axios).then(res => {
+      //   console.log('一键处理权限权限', res.data)
+      //   if (res.data.code == 0) {
+      //     if (res.data.message == '有权限') {
+      //       this.userSelectBoolean = true
+      //     }
+      //   }
+      // }).catch(err => {
+      //   console.error(err)
+      // })
       let data1 = {
         percode: 'oil_contract.Review.Delete'
       }
@@ -582,7 +644,7 @@ export default {
       })
     },
     initDatas () {
-      this.tableLoading = true;
+      this.tableLoading = true
       // 分页及列表条件
       let params = {
         _currentPage: this.currentPage,

+ 84 - 22
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-goods/index.vue

@@ -25,12 +25,10 @@
           <el-form-item label="企业名称">
             <el-input size="mini" clearable v-model="searchForm.SupplierName" placeholder="请输入企业名称"></el-input>
           </el-form-item>
-          <el-form-item label="状态" style="width: 150px">
-            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 100px" clearable>
+          <el-form-item label="状态" style="width: 200px">
+            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 150px" clearable>
               <el-option label="全部" value="" key="01"></el-option>
-              <el-option label="已保存" value="0" key="02"></el-option>
-              <el-option label="评价中" value="1" key="03"></el-option>
-              <el-option label="已完成" value="8" key="04"></el-option>
+              <el-option v-for="(item, index) in auditOptions" :key="index" :label="item.label" :value="item.value" style="width: 100%"></el-option>
             </el-select>
           </el-form-item>
           <el-form-item label="年度">
@@ -112,7 +110,7 @@
     </el-card>
 
     <!-- :selectDeptBoolean="false"-->
-    <submit-popup ref="submitpopup" :eveId="eveIdList" @refreshPage="initDatas"></submit-popup>
+    <submit-popup ref="submitpopup" :eveId="eveIdList" :formData="formData" @refreshPage="initDatas"></submit-popup>
 
     <el-dialog title="高级查询" :visible.sync="dialogVisible" width="720px">
       <el-form ref="advancedsearchForm" label-width="110px">
@@ -295,6 +293,39 @@ export default {
   },
   data () {
     return {
+      auditOptions: [
+        {
+          value: 0,
+          label: '已保存'
+        }, {
+          value: 1,
+          label: '待初审'
+        }, {
+          value: 2,
+          label: '待复审'
+        }, {
+          value: 3,
+          label: '待专业处室分办'
+        }, {
+          value: 4,
+          label: '待专业处室审核'
+        }, {
+          value: 7,
+          label: '待企管法规处审批'
+        }, {
+          value: 8,
+          label: '已完成'
+        }
+      ],
+      formData: {
+        Status: ''
+      },
+      dailyReviewBatchCode: '',
+      firstBatchPerm: false,
+      secondBatchPerm: false,
+      busSepBatchPerm: false,
+      busAuditBatchPerm: false,
+      profRegBatchPerm: false,
       yearList: [],
       delAuditProf: false, // 企管法规处的权限
       tableLoading: false,
@@ -463,6 +494,7 @@ export default {
   },
   created () {
     this.getYearList()
+    this.getBatchAuditPerm()
     // 查询条件初始值备份
     Object.assign(this.searchFormReset, this.searchForm)
     // 查询列表
@@ -477,6 +509,22 @@ export default {
       let nowYear = now.getFullYear()
       this.yearList = [nowYear, nowYear - 1]
     },
+    getBatchAuditPerm () {
+      permissionApi.getBatchAuditPermission(this.$axios).then(res => {
+        if (res.status === 200) {
+          this.firstBatchPerm = res.data[0]
+          this.secondBatchPerm = res.data[1]
+          this.busSepBatchPerm = res.data[2]
+          this.busAuditBatchPerm = res.data[3]
+          this.profRegBatchPerm = res.data[4]
+          if (this.firstBatchPerm || this.secondBatchPerm || this.busSepBatchPerm || this.busAuditBatchPerm || this.profRegBatchPerm) {
+            this.userSelectBoolean = true
+          }
+        }
+      }).catch(err => {
+        console.error(err)
+      })
+    },
     timeStyle (item) {
       if (item === '0001-01-01T00:00:00Z' || item === '') {
         return '--'
@@ -490,11 +538,19 @@ export default {
       e.map((item, index) => {
         list.push(item.Id)
       })
-      this.eveIdList = list
+      this.eveIdList = String(list)
     },
     // 筛选
     selectableFun (row, index) {
-      if (row.Status == 4) {
+      if (row.Status == 1 && this.firstBatchPerm) {
+        return true
+      } else if (row.Status == 2 && this.secondBatchPerm) {
+        return true
+      } else if (row.Status == 3 && this.busSepBatchPerm) {
+        return true
+      } else if (row.Status == 4 && this.busAuditBatchPerm) {
+        return true
+      } else if (row.Status == 7 && this.profRegBatchPerm) {
         return true
       } else {
         return false
@@ -507,7 +563,13 @@ export default {
     // 一键处理确定
     onSelectAllButtonTrue () {
       if (this.eveIdList != 0 && this.eveIdList != undefined) {
-        this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        if (this.busSepBatchPerm) {
+          this.formData.Status = '3'
+          this.$refs.submitpopup.auditOrgChange()
+          this.$refs.submitpopup.dialogBusinessOfficeSeparateBatchAuditVisible = true
+        } else {
+          this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        }
       } else {
         this.$message({
           type: 'warning',
@@ -522,19 +584,19 @@ export default {
     // 状态判断
     statusFun () {
       // 一键处理权限
-      var data = {
-        percode: 'oil_contract.Review.Batch'
-      }
-      permissionApi.permissionIsauth(data, this.$axios).then(res => {
-        console.log('一键处理权限', res.data)
-        if (res.data.code == 0) {
-          if (res.data.message == '有权限') {
-            this.userSelectBoolean = true
-          }
-        }
-      }).catch(err => {
-        console.error(err)
-      })
+      // var data = {
+      //   percode: 'oil_contract.Review.Batch'
+      // }
+      // permissionApi.permissionIsauth(data, this.$axios).then(res => {
+      //   console.log('一键处理权限', res.data)
+      //   if (res.data.code == 0) {
+      //     if (res.data.message == '有权限') {
+      //       this.userSelectBoolean = true
+      //     }
+      //   }
+      // }).catch(err => {
+      //   console.error(err)
+      // })
       var data1 = {
         percode: 'oil_contract.Review.Edit'
       }

+ 84 - 22
src/dashoo.cn/frontend_web/src/pages/oilcontract/contract-service/index.vue

@@ -25,12 +25,10 @@
           <el-form-item label="企业名称">
             <el-input size="mini" clearable v-model="searchForm.SupplierName" placeholder="请输入企业名称"></el-input>
           </el-form-item>
-          <el-form-item label="状态" style="width: 150px">
-            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 100px" clearable>
+          <el-form-item label="状态" style="width: 200px">
+            <el-select size="mini" v-model="searchForm.Status" placeholder="请选择" style="width: 150px" clearable>
               <el-option label="全部" value="" key="01"></el-option>
-              <el-option label="已保存" value="0" key="02"></el-option>
-              <el-option label="评价中" value="1" key="03"></el-option>
-              <el-option label="已完成" value="8" key="04"></el-option>
+              <el-option v-for="(item, index) in auditOptions" :key="index" :label="item.label" :value="item.value" style="width: 100%"></el-option>
             </el-select>
           </el-form-item>
           <el-form-item label="年度">
@@ -111,7 +109,7 @@
       </el-pagination>
     </el-card>
     <!-- :selectDeptBoolean="false"-->
-    <submit-popup ref="submitpopup" :selectDeptBoolean="false" :eveId="eveIdList"
+    <submit-popup ref="submitpopup" :selectDeptBoolean="false" :eveId="eveIdList" :formData="formData"
                   @refreshPage="initDatas"></submit-popup>
 
     <el-dialog title="高级查询" :close-on-click-modal="false" :visible.sync="dialogVisible" width="720px">
@@ -294,6 +292,39 @@ export default {
   },
   data () {
     return {
+      auditOptions: [
+        {
+          value: 0,
+          label: '已保存'
+        }, {
+          value: 1,
+          label: '待初审'
+        }, {
+          value: 2,
+          label: '待复审'
+        }, {
+          value: 3,
+          label: '待专业处室分办'
+        }, {
+          value: 4,
+          label: '待专业处室审核'
+        }, {
+          value: 7,
+          label: '待企管法规处审批'
+        }, {
+          value: 8,
+          label: '已完成'
+        }
+      ],
+      formData: {
+        Status: ''
+      },
+      dailyReviewBatchCode: '',
+      firstBatchPerm: false,
+      secondBatchPerm: false,
+      busSepBatchPerm: false,
+      busAuditBatchPerm: false,
+      profRegBatchPerm: false,
       yearList: [],
       delAuditProf: false, // 企管法规处的权限
       tableLoading: false,
@@ -462,6 +493,7 @@ export default {
   },
   created () {
     this.getYearList()
+    this.getBatchAuditPerm()
     // 查询条件初始值备份
     Object.assign(this.searchFormReset, this.searchForm)
     // 查询列表
@@ -476,6 +508,22 @@ export default {
       let nowYear = now.getFullYear()
       this.yearList = [nowYear, nowYear - 1]
     },
+    getBatchAuditPerm () {
+      permissionApi.getBatchAuditPermission(this.$axios).then(res => {
+        if (res.status === 200) {
+          this.firstBatchPerm = res.data[0]
+          this.secondBatchPerm = res.data[1]
+          this.busSepBatchPerm = res.data[2]
+          this.busAuditBatchPerm = res.data[3]
+          this.profRegBatchPerm = res.data[4]
+          if (this.firstBatchPerm || this.secondBatchPerm || this.busSepBatchPerm || this.busAuditBatchPerm || this.profRegBatchPerm) {
+            this.userSelectBoolean = true
+          }
+        }
+      }).catch(err => {
+        console.error(err)
+      })
+    },
     timeStyle (item) {
       if (item === '0001-01-01T00:00:00Z' || item === '') {
         return '--'
@@ -489,11 +537,19 @@ export default {
       e.map((item, index) => {
         list.push(item.Id)
       })
-      this.eveIdList = list
+      this.eveIdList = String(list)
     },
     // 筛选
     selectableFun (row, index) {
-      if (row.Status == 4) {
+      if (row.Status == 1 && this.firstBatchPerm) {
+        return true
+      } else if (row.Status == 2 && this.secondBatchPerm) {
+        return true
+      } else if (row.Status == 3 && this.busSepBatchPerm) {
+        return true
+      } else if (row.Status == 4 && this.busAuditBatchPerm) {
+        return true
+      } else if (row.Status == 7 && this.profRegBatchPerm) {
         return true
       } else {
         return false
@@ -506,7 +562,13 @@ export default {
     // 一键处理确定
     onSelectAllButtonTrue () {
       if (this.eveIdList != 0 && this.eveIdList != undefined) {
-        this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        if (this.busSepBatchPerm) {
+          this.formData.Status = '3'
+          this.$refs.submitpopup.auditOrgChange()
+          this.$refs.submitpopup.dialogBusinessOfficeSeparateBatchAuditVisible = true
+        } else {
+          this.$refs.submitpopup.dialogCommonAuditMakeSureVisible = true
+        }
       } else {
         this.$message({
           type: 'warning',
@@ -521,19 +583,19 @@ export default {
     // 状态判断
     statusFun () {
       // 一键处理权限
-      let data = {
-        percode: 'oil_contract.Review.Batch'
-      }
-      permissionApi.permissionIsauth(data, this.$axios).then(res => {
-        console.log('一键处理权限权限', res.data)
-        if (res.data.code == 0) {
-          if (res.data.message == '有权限') {
-            this.userSelectBoolean = true
-          }
-        }
-      }).catch(err => {
-        console.error(err)
-      })
+      // let data = {
+      //   percode: 'oil_contract.Review.Batch'
+      // }
+      // permissionApi.permissionIsauth(data, this.$axios).then(res => {
+      //   console.log('一键处理权限权限', res.data)
+      //   if (res.data.code == 0) {
+      //     if (res.data.message == '有权限') {
+      //       this.userSelectBoolean = true
+      //     }
+      //   }
+      // }).catch(err => {
+      //   console.error(err)
+      // })
       let data1 = {
         percode: 'oil_contract.Review.Delete'
       }