fix 80720
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
</div>
|
||||
<!--查看未符合项评估结果-->
|
||||
<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') }}
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -76,14 +76,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<no-match-item-evaluation-result-modal ref="resultModal" />
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ProcessKey } from '../../../../enums/commonEnums'
|
||||
import NoMatchItemEvaluationResultModal from './NoMatchItemEvaluationResultModal'
|
||||
|
||||
export default {
|
||||
name: 'InconformityItemDetailModal',
|
||||
components: { NoMatchItemEvaluationResultModal },
|
||||
data () {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -99,14 +102,11 @@ export default {
|
||||
this.visible = false
|
||||
this.detailData = {}
|
||||
},
|
||||
handleToProcessDetail () {
|
||||
this.$router.push({
|
||||
path: '/workCenter/processCenter/detail/processDetail',
|
||||
query: {
|
||||
processKey: ProcessKey.NO_MATCH_TRACKING.value,
|
||||
processInstanceId: this.detailData.prcNum_dictText
|
||||
}
|
||||
})
|
||||
/**
|
||||
* 查看未符合项评估结果
|
||||
*/
|
||||
handleViewResult () {
|
||||
this.$refs.resultModal.open(this.detailData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+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