Browse Source

年审审批-审批后 审批按钮的权限刷新

baichengfei 5 years ago
parent
commit
de851ca2d8

+ 1 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/auditoperation.vue

@@ -2550,6 +2550,7 @@ export default {
             }
             this.getstatus(this.annualId)
             this.initDatas()
+            this.isAccess()
           } else {
             this.$message({
               type: 'warning',

+ 1 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/basicauditoperation.vue

@@ -2186,6 +2186,7 @@
             }
             _this.getstatus(this.annualId)
             _this.initDatas()
+            this.isAccess()
           } else {
             this.$message({
               type: 'warning',

+ 4 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/bassicoperation.vue

@@ -707,7 +707,7 @@
                          style="margin-top: 20px"></business-list>
         </el-tab-pane>
 
-        <el-tab-pane label="提交审批" v-if="Status != '0'">
+        <el-tab-pane label="审批流程" v-if="Status != '0'">
           <el-card class="box-card" style="height: 800px">
             <div slot="header" class="clearfix">
               <span>审批流程</span>
@@ -1684,7 +1684,6 @@ import apiCert from '@/api/oilsupplier/suppliercert'
           this.auditstepcode = 'PROF_AUDIT'
         } else if (this.Status === '5') {
           this.auditstepcode = 'PROF_REGULATION'
-          this.shenheForm.AuditorRemark = '集中评审通过。'
         } else if (this.Status === '6') {
           this.auditstepcode = 'PAYING_FEE'
         } else if (this.Status === '7') {
@@ -2287,6 +2286,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
             this.entityForm.Status = this.Status
             // this.initDatas();
             this.getstatus(this.annualId)
+            this.isAccess()
             this.ComAuditdialogShow = false
             this.$message({
               type: 'success',
@@ -2359,6 +2359,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
             // this.entityForm.Status = this.Status
             // this.initDatas()
             this.getstatus(this.annualId)
+            this.isAccess()
             this.dialogSeparateUnitAuditVisible = false
             this.$message({
               type: 'success',
@@ -2409,6 +2410,7 @@ import apiCert from '@/api/oilsupplier/suppliercert'
             }
             _this.initDatas()
             _this.getstatus(this.annualId)
+            _this.isAccess()
           } else {
             this.$message({
               type: 'warning',

+ 3 - 45
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -2321,51 +2321,6 @@
             console.error(err)
           })
       },
-
-      SubpEntity () {
-        if (this.UnitOrg === '') {
-          this.$message({
-            type: 'warning',
-            message: '请选择分办单位!'
-          })
-          return
-        }
-        if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
-          this.$message({
-            type: 'warning',
-            message: '该单位未配置分办人!'
-          })
-          return
-        }
-        this.entityForm.SupplierId = parseInt(this.certId)
-        this.entityForm.SupplierTypeName = this.SupplierTypeCode
-        this.auditform.FirstAuditName = this.UnitOrg
-        this.auditform.AnnualId = this.annualId
-        this.loading = true
-        annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
-          this.loading = false
-          if (res.data.code === 0) {
-            // 保存成功后,初始化数据,变成修改
-            this.Status = res.data.item
-            this.entityForm.Status = this.Status
-            // this.initDatas();
-            this.getstatus(this.annualId)
-            this.dialogComSubmitToSeparateUnitVisible = false
-            this.$message({
-              type: 'success',
-              message: res.data.message
-            })
-          } else {
-            this.$message({
-              type: 'warning',
-              message: res.data.message
-            })
-          }
-        }).catch(err => {
-          this.loading = false
-          console.error(err)
-        })
-      },
       commitfenban () {
         this.dialogComSubmitToSeparateUnitVisible = true
       },
@@ -2995,6 +2950,7 @@
             })
             this.getstatus(this.annualId)
             this.initDatas()
+            this.isAccess()
             this.dialogSeparateUnitAuditVisible = false
           } else {
             this.$message({
@@ -3036,6 +2992,7 @@
             })
             _this.initDatas()
             _this.getstatus(this.annualId)
+            _this.isAccess()
             _this.dialogComSubmitToSeparateUnitVisible = false
             // _this.getEntityById()
           } else {
@@ -3154,6 +3111,7 @@
                 this.entityForm.Status = this.Status
                 // this.initDatas();
                 this.getstatus(this.annualId)
+                this.isAccess()
                 this.addshow = false
                 this.$message({
                   type: 'success',

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

@@ -2294,13 +2294,14 @@ import Viewer from 'v-viewer'
             // 保存成功后,初始化数据,变成修改
             // this.Status = res.data.item
             // this.entityForm.Status = this.Status
-            // this.initDatas()
-            this.getstatus(this.annualId)
-            this.dialogSeparateUnitAuditVisible = false
             this.$message({
               type: 'success',
               message: res.data.message
             })
+            this.initDatas()
+            this.getstatus(this.annualId)
+            this.isAccess()
+            this.dialogSeparateUnitAuditVisible = false
           } else {
             this.$message({
               type: 'warning',
@@ -2346,6 +2347,7 @@ import Viewer from 'v-viewer'
             if (_this.$refs['WfHistory']) {
               _this.$refs['WfHistory'].getHistoryTask()
             }
+            _this.isAccess()
           } else {
             this.$message({
               type: 'warning',

+ 2 - 0
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/techoperation.vue

@@ -1604,6 +1604,7 @@
             this.dialogSecUnitSeparateVisible = false
             this.initDatas()
             this.getstatus(this.shenheForm.AnnualId)
+            this.isAccess()
           } else {
             this.$message({
               type: 'warning',
@@ -2319,6 +2320,7 @@
             })
             this.initDatas()
             this.getstatus(this.shenheForm.AnnualId)
+            this.isAccess()
           } else {
             this.$message({
               type: 'warning',

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/annualfistaudit.vue

@@ -50,7 +50,8 @@
             <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
             <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
             <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
-            <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">专业处室审批未通过</span>
+            <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待企业法规处审批</span>
+            <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">企业法规处审批未通过</span>
             <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待交费</span>
             <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
             <span v-if="scope.row.Status=='8'" style="color:#E6A23C">已入库</span>

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/basicindex.vue

@@ -74,7 +74,8 @@
               <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
               <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
               <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
-              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">专业处室审批未通过</span>
+              <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待企业法规处审批</span>
+              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">企业法规处审批未通过</span>
               <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待交费</span>
               <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
               <span v-if="scope.row.Status=='8'" style="color:#E6A23C">已入库</span>

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/goodsindex.vue

@@ -74,7 +74,8 @@
               <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
               <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
               <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
-              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">专业处室审批未通过</span>
+              <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待企业法规处审批</span>
+              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">企业法规处审批未通过</span>
               <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待交费</span>
               <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
               <span v-if="scope.row.Status=='8'" style="color:#E6A23C">已入库</span>

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/index.vue

@@ -71,7 +71,8 @@
               <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
               <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
               <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
-              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">专业处室审批未通过</span>
+              <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待企业法规处审批</span>
+              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">企业法规处审批未通过</span>
               <span v-if="scope.row.Status=='6'" style="color:#F56C6C">待交费</span>
               <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
               <span v-if="scope.row.Status=='8'" style="color:#E6A23C">已入库</span>

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/techindex.vue

@@ -74,7 +74,8 @@
               <span v-if="scope.row.Status=='-2'" style="color:#F56C6C">复审未通过</span>
               <span v-if="scope.row.Status=='3'" style="color:#E6A23C">待专业处室分办</span>
               <span v-if="scope.row.Status=='4'" style="color:#E6A23C">待专业处室审批</span>
-              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">专业处室审批未通过</span>
+              <span v-if="scope.row.Status=='5'" style="color:#E6A23C">待企业法规处审批</span>
+              <span v-if="scope.row.Status=='-5'" style="color:#F56C6C">企业法规处审批未通过</span>
               <span v-if="scope.row.Status=='6'" style="color:#E6A23C">待交费</span>
               <span v-if="scope.row.Status=='7'" style="color:#E6A23C">待入库</span>
               <span v-if="scope.row.Status=='8'" style="color:#E6A23C">已入库</span>