|
|
@@ -19,7 +19,7 @@
|
|
|
<el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
|
|
|
</router-link>
|
|
|
<router-link :to="'/oilsupplier/supplier/basislist'">
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" v-if="authUser.Profile.IsCompanyUser != 1">返回
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
</el-button>
|
|
|
</router-link>
|
|
|
</span>
|
|
|
@@ -186,7 +186,7 @@
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="审批流程" v-if="formDataCert.Status > 0">
|
|
|
- <el-card class="box-card" style="mini-height: 800px">
|
|
|
+ <el-card class="box-card">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>审批流程</span>
|
|
|
<!-- <span style="float: right;">
|
|
|
@@ -277,6 +277,8 @@
|
|
|
|
|
|
data () {
|
|
|
return {
|
|
|
+ showReturn: 1,
|
|
|
+ IsCompanyUser: 0,
|
|
|
dialogVisible: false,
|
|
|
canUpdateSupplier: true,
|
|
|
dictData: null,
|
|
|
@@ -403,14 +405,12 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
- this.serviceId = this.$route.params.opera + ''
|
|
|
- if (this.$route.query.certid) {
|
|
|
- this.certId = this.$route.query.certid + ''
|
|
|
- }
|
|
|
- },
|
|
|
+
|
|
|
created () {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
+ if (this.$route.query.rtn) {
|
|
|
+ this.showReturn = 0
|
|
|
+ }
|
|
|
if (this.$route.query.certid) {
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
}
|
|
|
@@ -420,8 +420,20 @@
|
|
|
this.formData.Id = 0
|
|
|
}
|
|
|
this.getDictOptions()
|
|
|
- this.initDatas()
|
|
|
this.getorgtreelist()
|
|
|
+ this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
+ if (this.IsCompanyUser && this.serviceId === 'add') {
|
|
|
+ apiCert.getEntityByCreatorAndType('02', this.$axios).then(res => {
|
|
|
+ this.certId = res.data.Id
|
|
|
+ this.serviceId = res.data.SupplierId
|
|
|
+ this.formData.Id = res.data.SupplierId
|
|
|
+ this.initDatas()
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.initDatas()
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
inputCompany (val) {
|
|
|
@@ -555,7 +567,7 @@
|
|
|
this.entrydetail.business = this.certId
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
if (this.certId && this.formDataCert.WorkflowId) {
|
|
|
- this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
+ //this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
}
|
|
|
this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|