[update] 修改UAT问题,企标详情增加企标复审信息板块

This commit is contained in:
lideqin
2024-08-23 09:45:15 +08:00
parent 2c0627a64b
commit 89953373a3
3 changed files with 76 additions and 1 deletions
+3
View File
@@ -39,6 +39,8 @@ const detailGetUpdateRecord = (params) => getAction('/laws/standard/enterprise/g
const detailSubmitQuestion = (params) => postAction('/laws/library/lawsProblemLibrary/addProblem/QB', params)
// 企标详情-企标评价
const detailEvaluate = (standardId, params) => getAction('/laws/standard/enterprise/evaluateDetailForESInfo/' + `${standardId}`, params)
// 企标详情-通过id获取复审信息
const getRecheckInfoById = (params) => getAction('/enterprise/recheckPlan/getListByStandardId', params)
// 企标评审会记录-设置优质标准
const setQualityStandard = (params) => getAction('/enterprise/reviewMeeting/setQualityStandards', params)
@@ -83,6 +85,7 @@ export {
detailGetUpdateRecord,
detailSubmitQuestion,
detailEvaluate,
getRecheckInfoById,
setQualityStandard,
getScoreDetail,
@@ -27,6 +27,9 @@ module.exports = {
standardContentOrRequirements: '标准内容或要求',
rectificationDepartment: '整改部门',
auditContent: '稽查内容',
recheckTime: '复审时间',
recheckConclusion: '复审结论',
processNumber: '流程编号',
disabledBatchDel: '选中数据中存在没有操作权限的数据,请重新选择',
pleaseSelectUserOrDepart: '授权部门和授权人员至少需要选择一个',
youNot: '您没有',
@@ -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