fix 80720
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--查看未符合项评估结果-->
|
<!--查看未符合项评估结果-->
|
||||||
<div class="btn-box">
|
<div class="btn-box">
|
||||||
<a-button type="primary" class="form-btn" @click="handleToProcessDetail" :disabled="!detailData.prcNum">
|
<a-button type="primary" class="form-btn" @click="handleViewResult" :disabled="!detailData.description && !detailData.fileId">
|
||||||
{{ $t('projectLibrary.noncoincidenceItem.viewNonMatchItemEvaluationResult') }}
|
{{ $t('projectLibrary.noncoincidenceItem.viewNonMatchItemEvaluationResult') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -76,14 +76,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<no-match-item-evaluation-result-modal ref="resultModal" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ProcessKey } from '../../../../enums/commonEnums'
|
import NoMatchItemEvaluationResultModal from './NoMatchItemEvaluationResultModal'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'InconformityItemDetailModal',
|
name: 'InconformityItemDetailModal',
|
||||||
|
components: { NoMatchItemEvaluationResultModal },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -99,14 +102,11 @@ export default {
|
|||||||
this.visible = false
|
this.visible = false
|
||||||
this.detailData = {}
|
this.detailData = {}
|
||||||
},
|
},
|
||||||
handleToProcessDetail () {
|
/**
|
||||||
this.$router.push({
|
* 查看未符合项评估结果
|
||||||
path: '/workCenter/processCenter/detail/processDetail',
|
*/
|
||||||
query: {
|
handleViewResult () {
|
||||||
processKey: ProcessKey.NO_MATCH_TRACKING.value,
|
this.$refs.resultModal.open(this.detailData)
|
||||||
processInstanceId: this.detailData.prcNum_dictText
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+73
@@ -0,0 +1,73 @@
|
|||||||
|
<template>
|
||||||
|
<j-modal
|
||||||
|
:title="title"
|
||||||
|
:width="width"
|
||||||
|
:visible="visible"
|
||||||
|
:maskClosable="false"
|
||||||
|
@cancel="handleCancel">
|
||||||
|
|
||||||
|
<div class="detail-page-part-form">
|
||||||
|
<!--依据描述-->
|
||||||
|
<div class="detail-page-part-form-item">
|
||||||
|
<label>{{ $t('projectLibrary.specialProjectLibrary.basisDescription') }}</label>
|
||||||
|
<span>{{ detailData.description || global.emptyLine }}</span>
|
||||||
|
</div>
|
||||||
|
<!--佐证材料-->
|
||||||
|
<div class="detail-page-part-form-item">
|
||||||
|
<label>{{ $t('projectLibrary.specialProjectLibrary.supportingMaterial') }}</label>
|
||||||
|
<file-echo class="file-display" :file-ids="detailData.fileId" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<template slot="footer">
|
||||||
|
<a-button @click="handleCancel">{{ $t('close') }}</a-button>
|
||||||
|
</template>
|
||||||
|
</j-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import FileEcho from '../../../../components/FileEcho'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'NoMatchItemEvaluationResultModal',
|
||||||
|
components: { FileEcho },
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
title: this.$t('view'),
|
||||||
|
width: 650,
|
||||||
|
visible: false,
|
||||||
|
detailData: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open (record) {
|
||||||
|
this.visible = true
|
||||||
|
this.detailData = Object.assign({}, record)
|
||||||
|
},
|
||||||
|
handleCancel () {
|
||||||
|
this.visible = false
|
||||||
|
this.detailData = {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
@import '~../../../../assets/less/common.less';
|
||||||
|
|
||||||
|
.detail-page-part-form {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-page-part-form-item {
|
||||||
|
width: 100% !important;
|
||||||
|
|
||||||
|
label {
|
||||||
|
width: 5.5em !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-display {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user