fix 80304
This commit is contained in:
@@ -544,3 +544,14 @@ export const InspectStatus = {
|
||||
completed: { text: '已完成', value: '3' },
|
||||
delay: { text: '拖期', value: '4' }
|
||||
}
|
||||
|
||||
// 未符合项整改状态
|
||||
export const InconformityItemState = {
|
||||
toBeRectified: { text: '待整改', value: '1' },
|
||||
rectifying: { text: '整改中', value: '2' },
|
||||
approving: { text: '审批中', value: '3' },
|
||||
done: { text: '已完成', value: '4' },
|
||||
closed: { text: '已关闭', value: '5' },
|
||||
caution: { text: '警示', value: '6' },
|
||||
exceedTheTimeLimit: { text: '超期', value: '7' }
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!--整改状态-->
|
||||
<template slot="state" slot-scope="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<div class="table-text"
|
||||
:class="{'warning-text': record.state === InconformityItemState.caution.value,'exceeded-text': record.state === InconformityItemState.exceedTheTimeLimit.value}">
|
||||
{{ text || text === 0 ? text : global.emptyLine }}
|
||||
</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
|
||||
@@ -131,7 +142,7 @@ import JTable from '../../../components/jero/JTable'
|
||||
import InconformityItemModal from './modules/InconformityItemModal'
|
||||
import { batchCloseInconformityItem } from '../../../api/projectLibraryApi'
|
||||
import InconformityItemDetailModal from './modules/InconformityItemDetailModal'
|
||||
import { StandardSource } from '../../../enums/commonEnums'
|
||||
import { StandardSource, InconformityItemState } from '../../../enums/commonEnums'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { filterObj } from '../../../utils/util'
|
||||
|
||||
@@ -150,6 +161,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
InconformityItemState,
|
||||
columns: [
|
||||
// 工作令编号
|
||||
{
|
||||
@@ -214,7 +226,8 @@ export default {
|
||||
{
|
||||
dataIndex: 'state_dictText',
|
||||
title: this.$t('workCenter.esInspectionProcess.rectificationStatus'),
|
||||
width: 120
|
||||
width: 120,
|
||||
scopedSlots: { customRender: 'state' }
|
||||
},
|
||||
// 操作
|
||||
{
|
||||
@@ -332,5 +345,10 @@ export default {
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
|
||||
.warning-text {
|
||||
color: #ffc100;
|
||||
}
|
||||
.exceeded-text {
|
||||
color: #d9001b;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user