[update] 企标稽查的稽查报告和整改计划联调
This commit is contained in:
@@ -33,9 +33,9 @@ const getScoreDetail = (params) => getAction('/enterprise/reviewMeeting/evaluate
|
|||||||
// 企标稽查-获取延期稽查数据
|
// 企标稽查-获取延期稽查数据
|
||||||
const getDeferredCheck = (params) => getAction('/enterprise/inspect/delayInspect', params)
|
const getDeferredCheck = (params) => getAction('/enterprise/inspect/delayInspect', params)
|
||||||
// 企标稽查-根据id获取稽查报告详情
|
// 企标稽查-根据id获取稽查报告详情
|
||||||
const getCheckReportById = (params) => getAction('', params)
|
const getCheckReportById = (params) => getAction('/enterprise/inspect/inspectReport', params)
|
||||||
// 企标稽查-根据id获取整改计划
|
// 企标稽查-根据id获取整改计划
|
||||||
const getRectificationPlanById = (params) => getAction('', params)
|
const getRectificationPlanById = (params) => getAction('/enterprise/inspect/rectifyPlan', params)
|
||||||
|
|
||||||
// 企标复审计划-发起复审
|
// 企标复审计划-发起复审
|
||||||
const initReview = (params) => getAction('', params)
|
const initReview = (params) => getAction('', params)
|
||||||
|
|||||||
@@ -127,22 +127,26 @@
|
|||||||
<div slot="action" slot-scope="{text, record}" class="action-span-cell">
|
<div slot="action" slot-scope="{text, record}" class="action-span-cell">
|
||||||
<template v-if="record.delayFlag && isHasPermission(operationList[0].has)">
|
<template v-if="record.delayFlag && isHasPermission(operationList[0].has)">
|
||||||
<a @click="operationClick(operationList[0],record)">{{ operationList[0].text }}</a>
|
<a @click="operationClick(operationList[0],record)">{{ operationList[0].text }}</a>
|
||||||
<a-divider type="vertical" />
|
<template v-if="operationList.length > operateMaxNum">
|
||||||
<a-dropdown placement="bottomCenter">
|
<a-divider type="vertical" />
|
||||||
<a-icon type="more" class="operate-icon-btn operate-icon-more" />
|
<a-dropdown placement="bottomCenter">
|
||||||
<a-menu slot="overlay">
|
<a-icon type="more" class="operate-icon-btn operate-icon-more" />
|
||||||
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
<a-menu slot="overlay">
|
||||||
<a @click="operationClick(operation,record)">
|
<a-menu-item v-for="(operation, index) in operationList.slice(operateMaxNum)" :key="index">
|
||||||
<div class="operate-btn">
|
<a @click="operationClick(operation,record)">
|
||||||
{{ operation.text }}
|
<div class="operate-btn">
|
||||||
</div>
|
{{ operation.text }}
|
||||||
</a>
|
</div>
|
||||||
</a-menu-item>
|
</a>
|
||||||
</a-menu>
|
</a-menu-item>
|
||||||
</a-dropdown>
|
</a-menu>
|
||||||
|
</a-dropdown>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else-if="operationList.length > 0">
|
||||||
<a v-for="(operation, index) in operationList.splice(1)" :key="index" @click="operationClick(operation,record)">{{ operation.text }}</a>
|
<template v-for="(operation, index) in operationList.slice(1)">
|
||||||
|
<a :key="index" @click="operationClick(operation,record)">{{ operation.text }}</a>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -183,6 +187,7 @@ export default {
|
|||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
span: 14
|
span: 14
|
||||||
},
|
},
|
||||||
|
needFilterTableBtn: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -294,17 +299,17 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t('enterpriseStandardLibrary.check.deferredCheck'),
|
text: this.$t('enterpriseStandardLibrary.check.deferredCheck'),
|
||||||
clickEvent: 'handleDeferredCheck',
|
clickEvent: 'handleDeferredCheck',
|
||||||
has: 'enterpriseStandardLibrary.check.deferredCheck'
|
has: 'enterpriseStandardLibrary:check:deferredCheck'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: this.$t('enterpriseStandardLibrary.check.checkReport'),
|
text: this.$t('enterpriseStandardLibrary.check.checkReport'),
|
||||||
clickEvent: 'handleCheckReport',
|
clickEvent: 'handleCheckReport',
|
||||||
has: 'enterpriseStandardLibrary.check.checkReport'
|
has: 'enterpriseStandardLibrary:check:checkReport'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: this.$t('enterpriseStandardLibrary.check.rectificationPlan'),
|
text: this.$t('enterpriseStandardLibrary.check.rectificationPlan'),
|
||||||
clickEvent: 'handleRectificationPlan',
|
clickEvent: 'handleRectificationPlan',
|
||||||
has: 'enterpriseStandardLibrary.check.rectificationPlan'
|
has: 'enterpriseStandardLibrary:check:rectificationPlan'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,13 @@
|
|||||||
:visible="visible">
|
:visible="visible">
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<p>{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}{{model.standardName}}</p>
|
<p>
|
||||||
|
{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}
|
||||||
|
{{model.inspectNo}}
|
||||||
|
{{model.inspectName}}
|
||||||
|
</p>
|
||||||
<a-table
|
<a-table
|
||||||
|
:scroll="{x: 500}"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -70,36 +75,36 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.basedClause'),
|
title: this.$t('enterpriseStandardLibrary.check.basedClause'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 140,
|
||||||
dataIndex: 'basedClause',
|
dataIndex: 'baseClause',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.standardContent'),
|
title: this.$t('enterpriseStandardLibrary.check.standardContent'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 150,
|
||||||
dataIndex: 'standardContent',
|
dataIndex: 'standardRequire',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.executiveCondition'),
|
title: this.$t('enterpriseStandardLibrary.check.executiveCondition'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 150,
|
||||||
dataIndex: 'executiveCondition',
|
dataIndex: 'executionStatus',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.file'),
|
title: this.$t('enterpriseStandardLibrary.check.file'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 150,
|
||||||
dataIndex: 'file',
|
dataIndex: 'attachment',
|
||||||
scopedSlots: { customRender: 'file' }
|
scopedSlots: { customRender: 'file' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.score'),
|
title: this.$t('enterpriseStandardLibrary.check.score'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 100,
|
||||||
dataIndex: 'score',
|
dataIndex: 'evaluateScore',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -124,14 +129,21 @@ export default {
|
|||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
initData () {
|
initData () {
|
||||||
getCheckReportById({ id: this.model.id }).then(res => {
|
const params = {}
|
||||||
|
params.pageNo = this.ipagination.current
|
||||||
|
params.pageSize = this.ipagination.pageSize
|
||||||
|
params.id = this.model.id
|
||||||
|
getCheckReportById(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result
|
this.dataSource = res.result.records
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
// 点击附件
|
// 点击附件
|
||||||
handleRelatedMaterialClick (record) {
|
handleRelatedMaterialClick (record) {
|
||||||
// 截取文件后缀名
|
// 截取文件后缀名
|
||||||
|
|||||||
@@ -2,15 +2,20 @@
|
|||||||
<a-modal
|
<a-modal
|
||||||
:title="title"
|
:title="title"
|
||||||
:maskClosable="true"
|
:maskClosable="true"
|
||||||
:width="800"
|
:width="1000"
|
||||||
:closable="true"
|
:closable="true"
|
||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
:footer="false"
|
:footer="false"
|
||||||
:visible="visible">
|
:visible="visible">
|
||||||
|
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<p>{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}{{model.standardName}}</p>
|
<p>
|
||||||
|
{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}
|
||||||
|
{{ model.inspectNo }}
|
||||||
|
{{ model.inspectName }}
|
||||||
|
</p>
|
||||||
<a-table
|
<a-table
|
||||||
|
:scroll="{x:800}"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
@@ -55,43 +60,43 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.existProblem'),
|
title: this.$t('enterpriseStandardLibrary.check.existProblem'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 120,
|
||||||
dataIndex: 'existProblem',
|
dataIndex: 'issue',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.rectificationMeasure'),
|
title: this.$t('enterpriseStandardLibrary.check.rectificationMeasure'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 120,
|
||||||
dataIndex: 'rectificationMeasure',
|
dataIndex: 'rectifyMeasure',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.headOfRectification'),
|
title: this.$t('enterpriseStandardLibrary.check.headOfRectification'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 120,
|
||||||
dataIndex: 'headOfRectification',
|
dataIndex: 'responseUser',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.rectificationPlanFinishTime'),
|
title: this.$t('enterpriseStandardLibrary.check.rectificationPlanFinishTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 150,
|
||||||
dataIndex: 'rectificationPlanFinishTime',
|
dataIndex: 'planCompleteDate',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.rectificationActualFinishTime'),
|
title: this.$t('enterpriseStandardLibrary.check.rectificationActualFinishTime'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 150,
|
||||||
dataIndex: 'rectificationActualFinishTime',
|
dataIndex: 'actualCompleteDate',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('enterpriseStandardLibrary.check.rectificationStatus'),
|
title: this.$t('enterpriseStandardLibrary.check.rectificationStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 120,
|
||||||
dataIndex: 'rectificationStatus',
|
dataIndex: 'rectifyStatus',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -116,14 +121,21 @@ export default {
|
|||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
initData () {
|
initData () {
|
||||||
getRectificationPlanById({ id: this.model.id }).then(res => {
|
const params = {}
|
||||||
|
params.pageNo = this.ipagination.current
|
||||||
|
params.pageSize = this.ipagination.pageSize
|
||||||
|
params.id = this.model.id
|
||||||
|
getRectificationPlanById(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result
|
this.dataSource = res.result.records
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleTableChange (pagination) {
|
||||||
|
this.ipagination = pagination
|
||||||
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user