[update] 联调法规符合性评估库和不符合项库

This commit is contained in:
lideqin
2024-06-24 20:47:46 +08:00
parent 53e2ea1e93
commit e5f97748bf
5 changed files with 51 additions and 37 deletions
@@ -27,7 +27,7 @@
<a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType')"> <a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType')">
<j-input <j-input
:placeholder="$t('pleaseEnter') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType')" :placeholder="$t('pleaseEnter') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType')"
v-model="queryParam.vehicleType"></j-input> v-model="queryParam.model"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -57,7 +57,7 @@
<a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState')"> <a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState')">
<j-dict-select-tag <j-dict-select-tag
:placeholder="$t('pleaseSelect') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState')" :placeholder="$t('pleaseSelect') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState')"
v-model="queryParam.rectificationState" v-model="queryParam.rectifyStatus"
dict-code=""></j-dict-select-tag> dict-code=""></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -67,7 +67,7 @@
<a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')"> <a-form-item :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')">
<j-input <j-input
:placeholder="$t('pleaseEnter') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')" :placeholder="$t('pleaseEnter') + $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')"
v-model="queryParam.pcrNumber"></j-input> v-model="queryParam.pcrNo"></j-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
</template> </template>
@@ -106,6 +106,8 @@
:pagination="false" :pagination="false"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:operationList="operationList"
@operationClick="operationClick"
@change="handleTableChange"> @change="handleTableChange">
<!-- 标准编号标准名称 --> <!-- 标准编号标准名称 -->
@@ -167,7 +169,7 @@ export default {
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.vehicleType'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'vehicleType', dataIndex: 'model',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 车型状态 { // 车型状态
@@ -195,28 +197,28 @@ export default {
title: this.$t('clauseNo'), title: this.$t('clauseNo'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'clauseNo', dataIndex: 'termNumber',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 条款内容 { // 条款内容
title: this.$t('clauseContent'), title: this.$t('clauseContent'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'clauseContent', dataIndex: 'termContent',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 责任部门 { // 责任部门
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.responsibleDepartment'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.responsibleDepartment'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'responsibleDepartment', dataIndex: 'authDept',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 评估人 { // 评估人
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.appraiser'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.appraiser'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'appraiser', dataIndex: 'userId',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 问题类型 { // 问题类型
@@ -230,28 +232,28 @@ export default {
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationState'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'rectificationState', dataIndex: 'rectifyStatus',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // PCR编号 { // PCR编号
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'pcrNumber', dataIndex: 'pcrNo',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 整改完成日期 { // 整改完成日期
title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate'), title: this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'rectificationCompletionDate', dataIndex: 'rectifyCompleteDate',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 附件 { // 附件
title: this.$t('attach'), title: this.$t('attach'),
align: 'center', align: 'center',
width: 180, width: 180,
dataIndex: 'attach', dataIndex: 'file',
scopedSlots: { customRender: 'file' } scopedSlots: { customRender: 'file' }
}, },
{ {
@@ -277,7 +279,7 @@ export default {
} }
], ],
url: { url: {
list: '' list: '/assessment/lawsEvaluationNotMet/page'
} }
} }
}, },
@@ -334,7 +336,7 @@ export default {
// 批量关闭 // 批量关闭
batchClose () { batchClose () {
// 只有待整改状态的可以关闭 // 只有待整改状态的可以关闭
const isHaveClosed = this.selectionRows.includes(i => i.rectificationState === RectificationState.TARGET_IS_CLOSED.value) const isHaveClosed = this.selectionRows.includes(i => i.rectifyStatus === RectificationState.TARGET_IS_CLOSED.value)
if (isHaveClosed) { if (isHaveClosed) {
// 存在已关闭的数据 // 存在已关闭的数据
this.$message.warning(this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.isHaveClosed')) this.$message.warning(this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.isHaveClosed'))
@@ -380,6 +382,7 @@ export default {
}, },
// 查看 // 查看
handleLook (record) { handleLook (record) {
console.log('----', record)
this.$refs.nonmatchItemLookModal.open(record) this.$refs.nonmatchItemLookModal.open(record)
}, },
// 关闭 // 关闭
@@ -14,12 +14,12 @@
<!-- PCR编号 --> <!-- PCR编号 -->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber')">
<a-input :max-length="50" <a-input :max-length="50"
v-decorator.trim="[ 'pcrNumber', validatorRules.pcrNumber]"/> v-decorator.trim="[ 'pcrNo', validatorRules.pcrNo]"/>
</a-form-item> </a-form-item>
<!-- 整改完成日期 --> <!-- 整改完成日期 -->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate')"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate')">
<a-date-picker <a-date-picker
v-decorator.trim="[ 'rectificationCompletionDate', validatorRules.rectificationCompletionDate]" v-decorator.trim="[ 'rectifyCompleteDate', validatorRules.rectifyCompleteDate]"
format="YYYY-MM-DD" format="YYYY-MM-DD"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD"
> >
@@ -31,7 +31,7 @@
return-id return-id
:multiple="false" :multiple="false"
:number="1" :number="1"
v-decorator.trim="[ 'attach', validatorRules.attach]"/> v-decorator.trim="[ 'file', validatorRules.file]"/>
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-spin> </a-spin>
@@ -61,21 +61,21 @@ export default {
}, },
validatorRules: { validatorRules: {
// PCR编号 // PCR编号
pcrNumber: { pcrNo: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseEnter') + this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber') } { required: false, message: this.$t('pleaseEnter') + this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.pcrNumber') }
], ],
validateTrigger: 'blur' validateTrigger: 'blur'
}, },
// 整改完成日期 // 整改完成日期
rectificationCompletionDate: { rectifyCompleteDate: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseSelect') + this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate') } { required: false, message: this.$t('pleaseSelect') + this.$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCompletionDate') }
], ],
validateTrigger: 'change' validateTrigger: 'change'
}, },
// 附件 // 附件
attach: { file: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseSelect') + this.$t('attach') } { required: false, message: this.$t('pleaseSelect') + this.$t('attach') }
], ],
@@ -12,46 +12,56 @@
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-row :gutter="24"> <a-row :gutter="24">
<!-- 不满足要求的现状 --> <!-- 不满足要求的现状 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.theStatusNotMeetRequirements }}</value> <value name="unsatisfiedRequire">{{ model.unsatisfiedRequire }}</value>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<!-- 整改方案 --> <!-- 整改方案 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.rectificationPlan }}</value> <value name="correctionSolution">{{ model.correctionSolution }}</value>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<!-- 整改周期 --> <!-- 整改周期 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCycle') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.rectificationCycle }}</value> <value name="correctionPeriod">{{ model.correctionPeriod }}</value>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<!-- 整改费用 --> <!-- 整改费用 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationCost') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.rectificationCost }}</value> <value name="correctionCost">{{ model.correctionCost }}</value>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<!-- 与其他项目共用性 --> <!-- 与其他项目共用性 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.sharedWithOtherProjects') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.sharedWithOtherProjects }}</value> <value name="commonality">{{ model.commonality }}</value>
</a-col> </a-col>
</a-row>
<a-row :gutter="24">
<!-- 共用后本项目所需费用 --> <!-- 共用后本项目所需费用 -->
<a-col :sm="8"> <a-col :sm="5" :offset="1">
<label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing') }}</label> <label>{{ $t('regulatoryComplianceAssessmentDatabase.nonmatchItem.costOfThisItemAfterSharing') }}</label>
</a-col> </a-col>
<a-col :sm="16"> <a-col :sm="16">
<value>{{ model.costOfThisItemAfterSharing }}</value> <value name="commonalityCost">{{ model.commonalityCost }}</value>
</a-col> </a-col>
</a-row> </a-row>
</div> </div>
@@ -76,6 +76,8 @@
:pagination="false" :pagination="false"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
:operationList="operationList"
@operationClick="operationClick"
@change="handleTableChange"> @change="handleTableChange">
<!-- 标准编号标准名称 --> <!-- 标准编号标准名称 -->
@@ -149,13 +151,14 @@ export default {
{ {
text: this.$t('view'), text: this.$t('view'),
clickEvent: 'handleLook', clickEvent: 'handleLook',
has: '' has: 'assessment:lawsConformityAssessment:view'
} }
], ],
url: { url: {
list: '', list: '/assessment/lawsConformityAssessment/page',
exportXlsUrl: '' exportXlsUrl: ''
} },
needFilterTableBtn: true
} }
}, },
methods: { methods: {
@@ -113,7 +113,6 @@ import { previewPdf } from '@/utils/previewPdf'
import { kkFilePreview } from '@/utils/kkFilePreview' import { kkFilePreview } from '@/utils/kkFilePreview'
import { downloadFile, getFileAccessHttpUrl } from '@/api/manage' import { downloadFile, getFileAccessHttpUrl } from '@/api/manage'
import { queryDepartTreeList } from '../../../../api/api' import { queryDepartTreeList } from '../../../../api/api'
import JTable from '@/components/jero/JTable'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
// 支持预览的文件后缀 // 支持预览的文件后缀
@@ -123,7 +122,6 @@ const FILE_TYPE_PDF = 'pdf'
export default { export default {
name: 'AssessmentLookModal', name: 'AssessmentLookModal',
components: { JTable },
mixins: [JeroListMixin], mixins: [JeroListMixin],
data () { data () {
return { return {