|
@@ -5,10 +5,10 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="visible"> -->
|
|
|
<div>
|
|
|
- <div class="my-title">查看</div>
|
|
|
+ <div class="my-title" v-if="!isComponent">查看</div>
|
|
|
<div style="margin-left: 20px; margin-right: 20px">
|
|
|
<!-- 工作流 -->
|
|
|
- <div v-show="dataForm.workFlowBusinessExt">
|
|
|
+ <div v-show="!isComponent && dataForm.workFlowBusinessExt">
|
|
|
<el-steps :active="dataForm.workFlowBusinessExt&&dataForm.workFlowBusinessExt.workFlowProcessStepList?dataForm.workFlowBusinessExt.workFlowProcessStepList.length + 2:0" align-center style="margin-bottom: 20px">
|
|
|
<template v-for="(item, i) in stepList">
|
|
|
<el-step :icon="item.icon" :title="item.title" :description="item.description"></el-step>
|
|
@@ -25,7 +25,7 @@
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
</div>
|
|
|
- <div v-if="isFlow">
|
|
|
+ <div v-if="!isComponent && isFlow">
|
|
|
<approve-component ref="approve" @approveFinished="approveFinished"/>
|
|
|
</div>
|
|
|
<e-desc title="基本信息" column="3">
|
|
@@ -246,6 +246,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
visible: false,
|
|
|
+ isComponent: false,
|
|
|
id: 0,
|
|
|
dataForm: {},
|
|
|
cusRCommProductVOS: [],
|
|
@@ -261,7 +262,10 @@ export default {
|
|
|
onChose () {
|
|
|
this.$emit('onChose')
|
|
|
},
|
|
|
- async init (id, businessType) {
|
|
|
+ async init (id, businessType, isComponent) {
|
|
|
+ if (isComponent) {
|
|
|
+ this.isComponent = true
|
|
|
+ }
|
|
|
this.visible = true
|
|
|
this.isFlow = !!(businessType && businessType !== '')
|
|
|
this.id = id || 0
|