update 法规合规评估流程
This commit is contained in:
+78
-14
@@ -12,29 +12,58 @@
|
||||
<!--标准编号/条款号-->
|
||||
<div class="detail-page-part-form-item">
|
||||
<label>{{ $t('projectLibrary.vehicleItemLibrary.standardNumberClauseNumber') }}</label>
|
||||
<span></span>
|
||||
<span>{{ model.termNumber }}</span>
|
||||
</div>
|
||||
<!--标准名称/条款名称-->
|
||||
<div class="detail-page-part-form-item">
|
||||
<label>{{ $t('workCenter.projectComplianceEvaluationProcess.standardNameClauseName') }}</label>
|
||||
<span></span>
|
||||
<span>{{ model.termName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<j-table :columns="columns" :data-source="dataSource" :pagination="ipagination" :scroll="{x: '100%'}">
|
||||
|
||||
<j-table :loading="loading"
|
||||
:columns="columns"
|
||||
:data-source="dataSource"
|
||||
:pagination="ipagination"
|
||||
:scroll="{x: '100%'}"
|
||||
@change="handleTableChange">
|
||||
<!--佐证材料-->
|
||||
<template v-slot:file="{text}">
|
||||
<a-button class="table-text" v-if="!!text" type="primary" ghost @click="displayFile(text)">{{ $t('view') }}</a-button>
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
</j-table>
|
||||
</div>
|
||||
|
||||
<!--佐证材料回显-->
|
||||
<upload-file ref="fileDisplayModal" disabled />
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import JTable from '../../../../components/jero/JTable'
|
||||
import { queryStandardComplianceResult } from '../../../../api/workCenter'
|
||||
import UploadFile from '../../../../components/UploadFile'
|
||||
import SplitClauseDetail from '../../../documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
|
||||
export default {
|
||||
name: 'DepartLeaderDetailModal',
|
||||
components: { JTable },
|
||||
components: { SplitClauseDetail, UploadFile, JTable },
|
||||
props: {
|
||||
// 标准编号
|
||||
standardNumber: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
// 标准名称
|
||||
standardName: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -70,41 +99,70 @@ export default {
|
||||
// 设计工程师
|
||||
{
|
||||
title: this.$t('workCenter.standardConsultationProcess.designEngineer'),
|
||||
dataIndex: 'contact',
|
||||
dataIndex: 'designEngineer_dictText',
|
||||
width: 150
|
||||
},
|
||||
// 评估结果
|
||||
{
|
||||
dataIndex: 'evaluationResults_dictText',
|
||||
dataIndex: 'assessResults_dictText',
|
||||
title: this.$t('projectLibrary.vehicleItemLibrary.evaluationResult'),
|
||||
width: 120
|
||||
},
|
||||
// 车型
|
||||
{
|
||||
dataIndex: '4',
|
||||
dataIndex: 'modelSeries_dictText',
|
||||
title: this.$t('projectLibrary.specialProjectLibrary.vehicleModel'),
|
||||
width: 100
|
||||
width: 150
|
||||
},
|
||||
// 依据描述
|
||||
{
|
||||
dataIndex: 'nameWorkNo',
|
||||
dataIndex: 'description',
|
||||
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
||||
width: 250
|
||||
width: 150
|
||||
},
|
||||
// 佐证材料
|
||||
{
|
||||
dataIndex: '5',
|
||||
dataIndex: 'fileId',
|
||||
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
||||
width: 120
|
||||
width: 100,
|
||||
scopedSlots: { customRender: 'file' }
|
||||
}
|
||||
],
|
||||
dataSource: []
|
||||
dataSource: [],
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
this.loadData(1)
|
||||
},
|
||||
loadData (arg) {
|
||||
this.loading = true
|
||||
if (arg) {
|
||||
this.ipagination.current = 1
|
||||
}
|
||||
const params = {
|
||||
taskId: this.$route.query.taskId,
|
||||
id: this.model.id,
|
||||
pageNo: this.ipagination.current,
|
||||
pageSize: this.ipagination.pageSize
|
||||
}
|
||||
queryStandardComplianceResult(params).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.records || []
|
||||
if (res.result.total) {
|
||||
this.ipagination.total = res.result.total
|
||||
} else {
|
||||
this.ipagination.total = 0
|
||||
}
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
handleOk () {
|
||||
this.close()
|
||||
@@ -115,6 +173,12 @@ export default {
|
||||
close () {
|
||||
this.visible = false
|
||||
this.model = {}
|
||||
this.dataSource = []
|
||||
Object.assign(this.$data, this.$options.data())
|
||||
},
|
||||
handleTableChange (pagination) {
|
||||
this.ipagination = pagination
|
||||
this.loadData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user