|
|
@@ -79,12 +79,12 @@
|
|
|
type="text"
|
|
|
title="审核"
|
|
|
@click="checkData(scope.row)"
|
|
|
- v-if="scope.row.CheckStatus == 0">审核</el-button>
|
|
|
+ v-if="scope.row.CheckStatus == 0 && auditBtn">审核</el-button>
|
|
|
<el-button size="mini"
|
|
|
type="text"
|
|
|
title="查看"
|
|
|
@click="checkData(scope.row)"
|
|
|
- v-if="scope.row.CheckStatus == 1 || scope.row.CheckStatus == -1">查看</el-button>
|
|
|
+ v-else>查看</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="CheckStatus"
|
|
|
@@ -305,7 +305,7 @@
|
|
|
style="margin-top: -25px">
|
|
|
<el-button type="primary"
|
|
|
size="mini"
|
|
|
- v-if="showorhid==0"
|
|
|
+ v-if="showorhid==0 && auditBtn"
|
|
|
@click="ComAudit">审核</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
@@ -352,10 +352,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
export default {
|
|
|
name: 'companyaudit',
|
|
|
data () {
|
|
|
return {
|
|
|
+ btntitle: '查看',
|
|
|
+ auditBtn: false,
|
|
|
Auditshow: false,
|
|
|
shenheForm: {
|
|
|
SuccessStatus: 1,
|
|
|
@@ -437,8 +440,27 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.initData()
|
|
|
+ this.isAccess()
|
|
|
},
|
|
|
methods: {
|
|
|
+ isAccess () {
|
|
|
+ let params = {
|
|
|
+ id: this.formData.CertId,
|
|
|
+ auditstepcode: 'COMPONY_AUDIT',
|
|
|
+ processkey: 'oil_register_apply'
|
|
|
+ }
|
|
|
+ apiCert.isAccess(params, this.$axios).then(res => {
|
|
|
+ this.auditBtn = res.data
|
|
|
+ if (this.auditBtn) {
|
|
|
+ this.btntitle = '审核'
|
|
|
+ } else {
|
|
|
+ this.btntitle = '查看'
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
bigImg (url) {
|
|
|
this.bigUrl = url
|