[add] 企标稽查
This commit is contained in:
@@ -28,6 +28,13 @@ const setQualityStandard = (params) => getAction('/enterprise/reviewMeeting/setQ
|
||||
// 获取评分详情
|
||||
const getScoreDetail = (params) => getAction('/enterprise/reviewMeeting/evaluateDetail/' + `${params.id}`, params)
|
||||
|
||||
// 企标稽查-延期稽查
|
||||
const deferredCheck = (params) => getAction('', params)
|
||||
// 企标稽查-根据id获取稽查报告详情
|
||||
const getCheckReportById = (params) => getAction('', params)
|
||||
// 企标稽查-根据id获取整改计划
|
||||
const getRectificationPlanById = (params) => getAction('', params)
|
||||
|
||||
export {
|
||||
getEnterpriseStandardTableHeader,
|
||||
getEnterpriseStandardSearchForm,
|
||||
@@ -42,5 +49,9 @@ export {
|
||||
shareStandard,
|
||||
|
||||
setQualityStandard,
|
||||
getScoreDetail
|
||||
getScoreDetail,
|
||||
|
||||
deferredCheck,
|
||||
getCheckReportById,
|
||||
getRectificationPlanById
|
||||
}
|
||||
|
||||
@@ -51,5 +51,45 @@ module.exports = {
|
||||
releaseDate: '发布日期',
|
||||
materialDate: '实施日期',
|
||||
relatedMaterial: '相关材料'
|
||||
},
|
||||
// 稽查
|
||||
check: {
|
||||
enterpriseStandardNum: '企标编号',
|
||||
enterpriseStandardName: '企标名称',
|
||||
status: '状态',
|
||||
scheduledCheckDate: '计划稽查日期',
|
||||
createdDate: '创建日期',
|
||||
department: '所属部门',
|
||||
exportFileName: '企标稽查表',
|
||||
exportPostponeDataName: '企标稽查延期数据',
|
||||
exportPostponeData: '导出延期数据',
|
||||
exportRectificationPlanName: '企标稽查整改计划',
|
||||
exportRectificationPlan: '导出整改计划',
|
||||
deferredCheck: '延期稽查',
|
||||
checkReport: '稽查报告',
|
||||
rectificationPlan: '整改计划',
|
||||
basedStandardNo: '稽查依据标准号',
|
||||
basedStandardName: '稽查依据标准名称',
|
||||
planCheckTarget: '计划稽查对象',
|
||||
workGroup: '主责标准化工作组',
|
||||
headOfCheck: '稽查负责人',
|
||||
contactPerson: '标准化组对接人',
|
||||
checkFinishDate: '实际稽查完成日期',
|
||||
actualChecker: '实际稽查人',
|
||||
createDate: '创建日期',
|
||||
applyPostponeDate: '申请延期日期',
|
||||
postponement: '延期说明',
|
||||
basedClause: '依据条款',
|
||||
standardContent: '标准内容或要求',
|
||||
executiveCondition: '执行情况',
|
||||
file: '附件',
|
||||
score: '评分',
|
||||
checkBasedEnterpriseStandard: '稽查依据企标:',
|
||||
existProblem: '存在问题',
|
||||
rectificationMeasure: '整改措施',
|
||||
headOfRectification: '整改负责人',
|
||||
rectificationPlanFinishTime: '整改计划完成时间',
|
||||
rectificationActualFinishTime: '整改实际完成时间',
|
||||
rectificationStatus: '整改状态'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,5 +51,45 @@ module.exports = {
|
||||
releaseDate: '发布日期',
|
||||
materialDate: '实施日期',
|
||||
relatedMaterial: '相关材料'
|
||||
},
|
||||
// 稽查
|
||||
check: {
|
||||
enterpriseStandardNum: '企标编号',
|
||||
enterpriseStandardName: '企标名称',
|
||||
status: '状态',
|
||||
scheduledCheckDate: '计划稽查日期',
|
||||
createdDate: '创建日期',
|
||||
department: '所属部门',
|
||||
exportFileName: '企标稽查表',
|
||||
exportPostponeDataName: '企标稽查延期数据',
|
||||
exportPostponeData: '导出延期数据',
|
||||
exportRectificationPlanName: '企标稽查整改计划',
|
||||
exportRectificationPlan: '导出整改计划',
|
||||
deferredCheck: '延期稽查',
|
||||
checkReport: '稽查报告',
|
||||
rectificationPlan: '整改计划',
|
||||
basedStandardNo: '稽查依据标准号',
|
||||
basedStandardName: '稽查依据标准名称',
|
||||
planCheckTarget: '计划稽查对象',
|
||||
workGroup: '主责标准化工作组',
|
||||
headOfCheck: '稽查负责人',
|
||||
contactPerson: '标准化组对接人',
|
||||
checkFinishDate: '实际稽查完成日期',
|
||||
actualChecker: '实际稽查人',
|
||||
createDate: '创建日期',
|
||||
applyPostponeDate: '申请延期日期',
|
||||
postponement: '延期说明',
|
||||
basedClause: '依据条款',
|
||||
standardContent: '标准内容或要求',
|
||||
executiveCondition: '执行情况',
|
||||
file: '附件',
|
||||
score: '评分',
|
||||
checkBasedEnterpriseStandard: '稽查依据企标:',
|
||||
existProblem: '存在问题',
|
||||
rectificationMeasure: '整改措施',
|
||||
headOfRectification: '整改负责人',
|
||||
rectificationPlanFinishTime: '整改计划完成时间',
|
||||
rectificationActualFinishTime: '整改实际完成时间',
|
||||
rectificationStatus: '整改状态'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,392 @@
|
||||
<template>
|
||||
<a-card :bordered="false">
|
||||
<!-- 搜索区域 -->
|
||||
<div class="table-page-search-wrapper">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.enterpriseStandardNum')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('enterpriseStandardLibrary.check.enterpriseStandardNum')" v-model="queryParam.standardNo"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.enterpriseStandardName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input :placeholder="$t('pleaseEnter')+$t('enterpriseStandardLibrary.check.enterpriseStandardName')" v-model="queryParam.standardName"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.status')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<j-dict-select-tag
|
||||
:placeholder="$t('pleaseEnter')+$t('enterpriseStandardLibrary.check.status')"
|
||||
dict-code=""
|
||||
v-model="queryParam.standardName">
|
||||
</j-dict-select-tag>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<template v-if="toggleSearchStatus">
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.scheduledCheckDate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-range-picker
|
||||
value-format="YYYY-MM-DD"
|
||||
format="YYYY-MM-DD"
|
||||
@change="checkDateChange"
|
||||
v-model="queryParam.checkDate">
|
||||
</a-range-picker>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.createdDate')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-range-picker
|
||||
value-format="YYYY-MM-DD"
|
||||
format="YYYY-MM-DD"
|
||||
@change="createDateChange"
|
||||
v-model="queryParam.createDate">
|
||||
</a-range-picker>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="6">
|
||||
<a-form-item :label="$t('enterpriseStandardLibrary.check.department')">
|
||||
<a-tree-select
|
||||
tree-node-filter-prop="title"
|
||||
v-model="queryParam.departId"
|
||||
:maxTagCount="1"
|
||||
:show-search="true"
|
||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||
class="box-input"
|
||||
style="width: 100%"
|
||||
:tree-data="categoryTreeList"
|
||||
:placeholder="$t('pleaseSelect') + $t('enterpriseStandardLibrary.check.department')"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
|
||||
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button type="primary" @click="searchQuery" icon="search">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||
</div>
|
||||
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
|
||||
<!-- 操作区域 -->
|
||||
<div class="table-operator">
|
||||
<!-- 导出-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportXls($t('enterpriseStandardLibrary.check.exportFileName'))">
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<!-- 导出延期数据-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportPostponeData($t('enterpriseStandardLibrary.check.exportPostponeDataName'))">
|
||||
{{ $t('enterpriseStandardLibrary.check.exportPostponeData') }}
|
||||
</a-button>
|
||||
<!-- 导出整改计划-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportRectificationPlan($t('enterpriseStandardLibrary.check.exportRectificationPlanName'))">
|
||||
{{ $t('enterpriseStandardLibrary.check.exportRectificationPlan') }}
|
||||
</a-button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<j-table
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%'}"
|
||||
ref="table"
|
||||
size="middle"
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!-- 企标编号/企标名称 -->
|
||||
<template v-slot:toDetail="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 计划稽查日期: 到期前一周标红?? -->
|
||||
<template slot="scheduledCheckDate" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 操作栏 -->
|
||||
<div slot="action" slot-scope="{text, record}" class="action-span-cell">
|
||||
<a @click="handleDeferredCheck(record)" class="table-ope-btn">{{ $t('enterpriseStandardLibrary.check.deferredCheck') }}</a>
|
||||
<a @click="handleCheckReport(record)" class="table-ope-btn">{{ $t('enterpriseStandardLibrary.check.checkReport') }}</a>
|
||||
<a @click="handleRectificationPlan(record)" class="table-ope-btn">{{ $t('enterpriseStandardLibrary.check.rectificationPlan') }}</a>
|
||||
</div>
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
<!-- 延期稽查弹框 -->
|
||||
<deferred-check-modal ref="deferredCheckModal"></deferred-check-modal>
|
||||
<!-- 稽查报告弹框 -->
|
||||
<check-report-modal ref="checkReportModal"></check-report-modal>
|
||||
<!-- 整改计划弹框 -->
|
||||
<rectification-plan-modal ref="rectificationPlanModal"></rectification-plan-modal>
|
||||
</a-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@assets/less/common.less'
|
||||
import { queryDepartTreeList } from '@/api/api'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import { downFile } from '@/api/manage'
|
||||
import JTable from '@/components/jero/JTable'
|
||||
// 延期稽查弹框
|
||||
import DeferredCheckModal from './modules/DeferredCheckModal'
|
||||
// 稽查报告弹框
|
||||
import CheckReportModal from './modules/CheckReportModal'
|
||||
import RectificationPlanModal from './modules/RectificationPlanModal'
|
||||
|
||||
export default {
|
||||
name: 'CheckList',
|
||||
components: { RectificationPlanModal, JTable, CheckReportModal, DeferredCheckModal },
|
||||
mixins: [JeroListMixin],
|
||||
data () {
|
||||
return {
|
||||
categoryTreeList: [], // 组织机构查询的组织机构树数据
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.basedStandardNo'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardNo',
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.basedStandardName'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardName',
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.planCheckTarget'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'planCheckTarget',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.workGroup'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'workGroup',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.department'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'department',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.scheduledCheckDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'scheduledCheckDate',
|
||||
scopedSlots: { customRender: 'scheduledCheckDate' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.headOfCheck'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'headOfCheck',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.contactPerson'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'contactPerson',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.checkFinishDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'checkFinishDate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.actualChecker'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'actualChecker',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.status'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'status',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.createDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'createDate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('operation'),
|
||||
scopedSlots: { customRender: 'action' },
|
||||
align: 'center',
|
||||
width: 200
|
||||
}
|
||||
],
|
||||
url: {
|
||||
list: '/enterprise/inspect/page',
|
||||
exportPostponeDataUrl: '', // 导出延期数据
|
||||
exportRectificationPlanUrl: '' // 导出整改计划
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getSysCategoryTree()
|
||||
},
|
||||
methods: {
|
||||
// 获取组织机构树
|
||||
getSysCategoryTree () {
|
||||
queryDepartTreeList().then((res) => {
|
||||
if (res.success) {
|
||||
this.categoryTreeList = res.result
|
||||
} else {
|
||||
this.categoryTreeList = []
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击跳转企标详情
|
||||
handleGoDetail (record) {
|
||||
this.$openPageNewSheet({
|
||||
path: '/enterpriseStandardLibrary/enterpriseStandardDetail',
|
||||
query: {
|
||||
id: record.id
|
||||
}
|
||||
})
|
||||
},
|
||||
// 导出延期数据
|
||||
handleExportPostponeData (fileName) {
|
||||
if (!fileName || typeof fileName !== 'string') {
|
||||
fileName = '导出文件'
|
||||
}
|
||||
const param = this.getQueryParams()
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
param.selections = this.selectedRowKeys.join(',')
|
||||
}
|
||||
console.log('导出参数', param)
|
||||
// 加一个大的提示
|
||||
const modalLoading = this.$info({
|
||||
title: '提示',
|
||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
||||
keyboard: false
|
||||
})
|
||||
// 把知道了这个按钮去掉
|
||||
this.$nextTick(() => {
|
||||
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
|
||||
})
|
||||
downFile(this.url.exportPostponeDataUrl, param).then((data) => {
|
||||
if (!data) {
|
||||
this.$message.warning('文件下载失败')
|
||||
return
|
||||
}
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xls')
|
||||
} else {
|
||||
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
||||
const link = document.createElement('a')
|
||||
link.style.display = 'none'
|
||||
link.href = url
|
||||
link.setAttribute('download', fileName + '.xls')
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link) // 下载完成移除元素
|
||||
window.URL.revokeObjectURL(url) // 释放掉blob对象
|
||||
}
|
||||
}).finally(() => {
|
||||
// 销毁这个提示
|
||||
modalLoading.destroy()
|
||||
})
|
||||
},
|
||||
// 导出整改计划
|
||||
handleExportRectificationPlan (fileName) {
|
||||
if (!fileName || typeof fileName !== 'string') {
|
||||
fileName = '导出文件'
|
||||
}
|
||||
const param = this.getQueryParams()
|
||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||
param.selections = this.selectedRowKeys.join(',')
|
||||
}
|
||||
console.log('导出参数', param)
|
||||
// 加一个大的提示
|
||||
const modalLoading = this.$info({
|
||||
title: '提示',
|
||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
||||
keyboard: false
|
||||
})
|
||||
// 把知道了这个按钮去掉
|
||||
this.$nextTick(() => {
|
||||
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
|
||||
})
|
||||
downFile(this.url.exportRectificationPlanUrl, param).then((data) => {
|
||||
if (!data) {
|
||||
this.$message.warning('文件下载失败')
|
||||
return
|
||||
}
|
||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||
window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + '.xls')
|
||||
} else {
|
||||
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
|
||||
const link = document.createElement('a')
|
||||
link.style.display = 'none'
|
||||
link.href = url
|
||||
link.setAttribute('download', fileName + '.xls')
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
document.body.removeChild(link) // 下载完成移除元素
|
||||
window.URL.revokeObjectURL(url) // 释放掉blob对象
|
||||
}
|
||||
}).finally(() => {
|
||||
// 销毁这个提示
|
||||
modalLoading.destroy()
|
||||
})
|
||||
},
|
||||
// 延期稽查
|
||||
handleDeferredCheck (record) {
|
||||
this.$refs.deferredCheckModal.open(record)
|
||||
},
|
||||
// 稽查报告
|
||||
handleCheckReport (record) {
|
||||
this.$refs.checkReportModal.open(record)
|
||||
},
|
||||
// 整改计划
|
||||
handleRectificationPlan (record) {
|
||||
this.$refs.rectificationPlanModal.open(record)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,174 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
@cancel="handleCancel"
|
||||
:footer="false"
|
||||
:visible="visible">
|
||||
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<p>{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}{{model.standardName}}</p>
|
||||
<a-table
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
rowKey="id"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 附件 -->
|
||||
<template v-slot:relatedMaterial="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ text }}</a>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-spin>
|
||||
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import { getFileAccessHttpUrl } from '@/api/manage'
|
||||
import { previewPdf } from '@/utils/previewPdf'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { getCheckReportById } from '@/api/enterpriseStandardLibraryApi'
|
||||
|
||||
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
|
||||
const FILE_TYPE_PDF = 'pdf'
|
||||
const Base64 = require('js-base64').Base64
|
||||
|
||||
export default {
|
||||
name: 'CheckReportModal',
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('enterpriseStandardLibrary.check.checkReport'),
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
model: {},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.basedClause'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'basedClause',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.standardContent'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardContent',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.executiveCondition'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'executiveCondition',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.file'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'file',
|
||||
scopedSlots: { customRender: 'file' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.score'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'score',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
ipagination: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['10', '20', '30'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
this.initData()
|
||||
},
|
||||
initData () {
|
||||
getCheckReportById({ id: this.model.id }).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击附件
|
||||
handleRelatedMaterialClick (record) {
|
||||
// 截取文件后缀名
|
||||
const fileSuffix = record.declareFileName ? record.declareFileName.split('.')[record.declareFileName.split('.').length - 1] : ''
|
||||
const fileFullUrl = `${window._CONFIG.domianWebSocketURL}/sys/common/download/${record.declareFile}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.declareFileName}`
|
||||
// 图片预览,使用自己添加的组件
|
||||
if (FILE_TYPE_IMGS.includes(fileSuffix)) {
|
||||
this.imageUrl = getFileAccessHttpUrl(record.declareFile)
|
||||
// 获取viewer实例
|
||||
const viewer = this.$el.querySelector('.image').$viewer
|
||||
// 调用show方法进行显示预览图
|
||||
viewer.show()
|
||||
// this.$refs.imagePreviewModal.open(file)
|
||||
return
|
||||
}
|
||||
// pdf预览
|
||||
if (FILE_TYPE_PDF.includes(fileSuffix)) {
|
||||
const url = previewPdf(record.declareFile)
|
||||
window.open(url)
|
||||
return
|
||||
}
|
||||
// 其余可预览文件仍使用KKFile进行预览
|
||||
const url = `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileFullUrl))}`
|
||||
window.open(url)
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
},
|
||||
close () {
|
||||
this.visible = false
|
||||
this.dataSource = []
|
||||
this.model = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,111 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
@cancel="handleCancel"
|
||||
@ok="handleOk"
|
||||
:visible="visible">
|
||||
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-form :form="form">
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('enterpriseStandardLibrary.check.applyPostponeDate')">
|
||||
<a-date-picker
|
||||
v-decorator.trim="[ 'applyPostponeDate', validatorRules.applyPostponeDate]"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
>
|
||||
</a-date-picker>
|
||||
</a-form-item>
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('enterpriseStandardLibrary.check.postponement')">
|
||||
<a-textarea
|
||||
v-decorator.trim="[ 'postponement', validatorRules.postponement]"
|
||||
:placeholder="$t('pleaseEnter')+$t('enterpriseStandardLibrary.check.postponement')"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import pick from 'lodash.pick'
|
||||
import { deferredCheck } from '@/api/enterpriseStandardLibraryApi'
|
||||
|
||||
export default {
|
||||
name: 'DeferredCheckModal',
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('enterpriseStandardLibrary.check.deferredCheck'),
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
form: this.$form.createForm(this),
|
||||
model: {},
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 6 }
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 16 }
|
||||
},
|
||||
validatorRules: {
|
||||
applyPostponeDate: {
|
||||
rules: [
|
||||
{ required: false, message: this.$t('pleaseSelect') + this.$t('enterpriseStandardLibrary.check.applyPostponeDate') }
|
||||
],
|
||||
validateTrigger: 'change'
|
||||
},
|
||||
postponement: {
|
||||
rules: [
|
||||
{ required: false, message: this.$t('pleaseEnter') + this.$t('enterpriseStandardLibrary.check.postponement') }
|
||||
],
|
||||
validateTrigger: 'blur'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.form.resetFields()
|
||||
this.model = Object.assign({}, record)
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(this.model, 'applyPostponeDate', 'postponement'))
|
||||
})
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
},
|
||||
handleOk () {
|
||||
if (this.confirmLoading) return
|
||||
this.form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
this.confirmLoading = true
|
||||
const param = Object.assign({}, values)
|
||||
deferredCheck(param).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.$emit('ok')
|
||||
this.close()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
close () {
|
||||
this.model = {}
|
||||
this.visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -0,0 +1,141 @@
|
||||
<template>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
@cancel="handleCancel"
|
||||
:footer="false"
|
||||
:visible="visible">
|
||||
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<p>{{ $t('enterpriseStandardLibrary.check.checkBasedEnterpriseStandard') }}{{model.standardName}}</p>
|
||||
<a-table
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
rowKey="id"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
</a-table>
|
||||
</a-spin>
|
||||
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getRectificationPlanById } from '@/api/enterpriseStandardLibraryApi'
|
||||
|
||||
export default {
|
||||
name: 'RectificationPlanModal',
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('enterpriseStandardLibrary.check.rectificationPlan'),
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
model: {},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
dataIndex: '',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function (t, r, index) {
|
||||
return parseInt(index) + 1
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.existProblem'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'existProblem',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.rectificationMeasure'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'rectificationMeasure',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.headOfRectification'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'headOfRectification',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.rectificationPlanFinishTime'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'rectificationPlanFinishTime',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.rectificationActualFinishTime'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'rectificationActualFinishTime',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.check.rectificationStatus'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'rectificationStatus',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
ipagination: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['10', '20', '30'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
this.initData()
|
||||
},
|
||||
initData () {
|
||||
getRectificationPlanById({ id: this.model.id }).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
},
|
||||
close () {
|
||||
this.visible = false
|
||||
this.dataSource = []
|
||||
this.model = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -57,7 +57,7 @@
|
||||
@change="handleTableChange">
|
||||
|
||||
<!-- 企标编号/企标名称 -->
|
||||
<template v-slot:toDeatil="{text, record}">
|
||||
<template v-slot:toDetail="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
|
||||
@@ -111,14 +111,14 @@ export default {
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardNo',
|
||||
scopedSlots: { customRender: 'toDeatil' }
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.enterpriseStandardName'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'standardName',
|
||||
scopedSlots: { customRender: 'toDeatil' }
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.principalDrafter'),
|
||||
|
||||
Reference in New Issue
Block a user