[update] 修改UAT问题,企标详情增加企标复审信息板块
This commit is contained in:
@@ -129,6 +129,29 @@
|
||||
</a-table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 复审信息 -->
|
||||
<div class="detail-page-part">
|
||||
<div class="detail-page-part-title">
|
||||
<span>复审信息</span>
|
||||
</div>
|
||||
<div class="detail-page-part-table">
|
||||
<a-table
|
||||
:scroll="{x: 500}"
|
||||
:columns="recheckColumns"
|
||||
:dataSource="recheckDataSource"
|
||||
:pagination="false"
|
||||
bordered
|
||||
rowKey="id">
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 企标评价 -->
|
||||
<enterprise-standard-evaluate-modal ref="enterpriseStandardEvaluateModal"></enterprise-standard-evaluate-modal>
|
||||
<!-- 更新记录弹框 -->
|
||||
@@ -151,7 +174,7 @@
|
||||
import '@assets/less/common.less'
|
||||
import { FieldType, StandardSource } from '@/enums/commonEnums'
|
||||
import { downloadFile, getFileAccessHttpUrl } from '@/api/manage'
|
||||
import { getEnterpriseStandardInfoById, getEnterpriseStandardAddForm } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { getEnterpriseStandardInfoById, getEnterpriseStandardAddForm, getRecheckInfoById } from '@/api/enterpriseStandardLibraryApi'
|
||||
import UpdateRecordModal from './module/UpdateRecordModal'
|
||||
import SubmitQuestionModal from './module/SubmitQuestionModal'
|
||||
import EnterpriseStandardEvaluateModal from './module/EnterpriseStandardEvaluateModal'
|
||||
@@ -216,6 +239,38 @@ export default {
|
||||
}
|
||||
], // 稽查内容表格列参数
|
||||
dataSource: [], // 稽查内容数据
|
||||
// 复审信息表格列参数
|
||||
recheckColumns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{ // 时间
|
||||
title: this.$t('enterpriseStandardLibrary.standard.recheckTime'),
|
||||
align: 'center',
|
||||
dataIndex: 'recheckDate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 结论
|
||||
title: this.$t('enterpriseStandardLibrary.standard.recheckConclusion'),
|
||||
align: 'center',
|
||||
dataIndex: 'recheckAdvice',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 流程编号
|
||||
title: this.$t('enterpriseStandardLibrary.standard.processNumber'),
|
||||
align: 'center',
|
||||
dataIndex: 'prcNum',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
recheckDataSource: [],
|
||||
image: false,
|
||||
imageUrl: '',
|
||||
showViewAllField: ['auth_dept'], // 需要显示展示查看全部按钮的字段
|
||||
@@ -253,6 +308,7 @@ export default {
|
||||
if (res.success) {
|
||||
this.detailData = res.result
|
||||
this.dataSource = this.detailData.checkList
|
||||
this.initRecheckList(this.detailData.id)
|
||||
this.fileField.forEach(item => {
|
||||
if (this.detailData[item]) {
|
||||
const fileList = this.detailData[item].split(',')
|
||||
@@ -271,6 +327,19 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
// 获取复审信息列表
|
||||
initRecheckList (id) {
|
||||
const params = {}
|
||||
params.standardId = id
|
||||
getRecheckInfoById(params).then(res => {
|
||||
if (res.success) {
|
||||
// 复审信息
|
||||
this.recheckDataSource = res.result
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
getFileInfo (fileId) {
|
||||
return new Promise(resolve => {
|
||||
let fileInfo
|
||||
|
||||
Reference in New Issue
Block a user