update 企标稽查流程

This commit is contained in:
danshihao
2023-11-28 11:36:19 +08:00
parent e277f6488b
commit bbcd8486c2
14 changed files with 582 additions and 177 deletions
@@ -25,7 +25,7 @@
:can-drag="true"
rowKey="id"
:row-selection="null"
:pagination="ipagination"
:pagination="false"
:scroll="{x: '100%'}"
@change="tableOnChange">
@@ -39,17 +39,25 @@
</a-tooltip>
</template>
<!-- 附件 -->
<template v-slot:file="{text, record}">
<a v-if="text" @click="fileLook(record)">{{ $t('view') }}</a>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</template>
<!-- 操作 -->
<template slot="action" slot-scope="{text, record, index}">
<a @click="handleEdit(record, index)" >{{ $t('edit') }}</a>
<a-divider type="vertical" />
<a @click="handleDelete(record, index)" >{{ $t('delete') }}</a>
<a @click="handleDelete(record.id)" >{{ $t('delete') }}</a>
</template>
</j-table>
</a-spin>
<!-- 新增、编辑稽查报告 -->
<inspection-process-report-modal ref="modalForm" @ok="modalFormOk"/>
<!-- 上传回显 -->
<upload-file ref="uploadFile" disabled></upload-file>
</j-modal>
</template>
@@ -58,11 +66,12 @@ import JTable from '@comp/jero/JTable'
import { JeroListMixin } from '@/mixins/JeroListMixin'
import InspectionProcessReportModal
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessReportModal'
import UploadFile from '@comp/UploadFile'
export default {
name: 'InspectionProcessReport',
mixins: [JeroListMixin],
components: { InspectionProcessReportModal, JTable },
components: { UploadFile, InspectionProcessReportModal, JTable },
props: {
disabled: {
type: Boolean,
@@ -85,35 +94,35 @@ export default {
title: this.$t('workCenter.esInspectionProcess.accordingToTerms'),
align: 'center',
width: 120,
dataIndex: 'planInspectionDate',
dataIndex: 'baseClause',
scopedSlots: { customRender: 'text' }
},
{ // 标准内容或要求
title: this.$t('workCenter.esInspectionProcess.standardContentOrDemand'),
align: 'center',
width: 180,
dataIndex: 'inspectionDirector',
dataIndex: 'standardRequire',
scopedSlots: { customRender: 'text' }
},
{ // 执行情况
title: this.$t('workCenter.esInspectionProcess.implementation'),
align: 'center',
width: 180,
dataIndex: 'implementation',
dataIndex: 'executionStatus',
scopedSlots: { customRender: 'text' }
},
{ // 附件
title: this.$t('workCenter.esInspectionProcess.file'),
align: 'center',
width: 140,
dataIndex: 'file',
scopedSlots: { customRender: 'text' }
dataIndex: 'attachmentName',
scopedSlots: { customRender: 'file' }
},
{ // 评分
title: this.$t('workCenter.esInspectionProcess.score'),
align: 'center',
width: 100,
dataIndex: 'score',
dataIndex: 'evaluateScore',
scopedSlots: { customRender: 'text' }
},
{
@@ -134,22 +143,26 @@ export default {
model: {},
confirmLoading: false,
url: {
list: ''
list: '/laws.enterprise/EnterpriseStandardInspectReport/queryByProcessEsInspectId',
delete: '/laws.enterprise/EnterpriseStandardInspectReport/delete'
},
dataSource: [{}],
dataSource: [],
columns: columns.slice(0, this.disabled ? 6 : 7)
}
},
methods: {
show (record) {
this.filters = {}
this.filters = {
processEsInspectId: record.id
}
this.loadData()
this.model = Object.assign({}, record)
this.visible = true
},
// 确定
handleOk () {
console.log(this.selectedRowKeys)
// console.log(this.selectedRowKeys)
this.$emit('ok')
this.close()
},
// 关闭
@@ -174,6 +187,20 @@ export default {
this.orderByField = sorter.columnKey
this.ipagination = pagination
this.getTableList()
},
handleAdd () {
this.$refs.modalForm.add(this.model)
this.$refs.modalForm.title = this.$t('newlyAdded')
this.$refs.modalForm.disableSubmit = false
},
handleEdit (record) {
this.$refs.modalForm.edit(this.model, record)
this.$refs.modalForm.title = this.$t('edit')
this.$refs.modalForm.disableSubmit = false
},
// 附件列的查看点击
fileLook (record) {
this.$refs.uploadFile.open(record.attachment)
}
}
}