Commit f0de906b authored by wangxl's avatar wangxl

3333

parent e9e51bd0
......@@ -32,12 +32,13 @@
</div>
<div style="display: inline-block;width:50%;text-align: right;">
<a-tag :color="'#2db7f5'">{{ '技术专家' }}</a-tag>&nbsp;<a-tag :color="'#87d068'">{{ '财务专家' }}</a-tag>
<a-button type="primary" @click="batchAudit" style="margin-right: 8px;" v-if="isBatchButten">批量审核</a-button>
<a-button type="primary" @click="exportData" icon="download">Excel</a-button>
</div>
</div>
<a-divider style="height: 1px; background-color: #e8e8e8;" />
<span style="margin:6px;display: block;color:red;">评分为 总分/平均分,最终得分=技术专家平均分X80% + 财务专家X20%</span>
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :scroll="{ x: 'max-content' }" :pagination="false" :loading="loading">
<a-table :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :dataSource="tableData" :columns="columns" rowKey="id" :scroll="{ x: 'max-content' }" :pagination="false" :loading="loading">
<template slot="projName" slot-scope="record">
<a @click="recordClick(record, 'view')">{{record.projName}}</a>
</template>
......@@ -84,6 +85,9 @@
<a-modal v-model="visibleEvaluationView" title="专家评分" width="90%" :dialog-style="{ top: '8%' }" :footer="null" destroyOnClose>
<score-view v-model="assignId" @close="() => this.visibleEvaluationView = false" />
</a-modal>
<a-modal v-model="visibleBatch" v-if="visibleBatch" title="批量审核" :footer="null" width="700px" :dialog-style="{ top: '15%' }" destroyOnClose :maskClosable="false">
<batch-audit :idList="selectedRowKeys" @close="closeWindow" />
</a-modal>
</div>
</template>
......@@ -94,6 +98,7 @@ import { isEmptyParams, filterExportExcelData, tableColumnsName } from "@/views/
import projectAssignDetail from '@/views/assign/components/projectAssignDetail'
import paraSelect from '@/views/components/common/paraSelect'
import audit from '@/views/audit/project/audit'
import batchAudit from '@/views/audit/project/batchAudit'
import projectView from '@/views/report/project/components/projectView'
import unitTreeSelect from '@/views/components/common/unitTreeSelect'
import taskFileInfo from '@/views/report/task/components/taskFileInfo'
......@@ -102,10 +107,11 @@ import scoreView from '@/views/evaluation/components/scoreView'
export default {
name: "projectFinal",
components: {
projectView, paraSelect, audit, unitTreeSelect, projectAssignDetail, taskFileInfo, scoreView
projectView, paraSelect, audit, unitTreeSelect, projectAssignDetail, taskFileInfo, scoreView, batchAudit
},
data () {
return {
selectedRowKeys: [],
// 选项卡
panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, },
form: this.$form.createForm(this, { name: 'advanced_search' }),
......@@ -184,6 +190,8 @@ export default {
visibleAudit: false,
visibleView: false,
visibleEvaluationView: false,
visibleBatch: false,
isBatchButten: true,
isButten: false,
description: '',
id: null,
......@@ -197,6 +205,17 @@ export default {
this.getYear()
},
methods: {
onSelectChange (selectedRowKeys) {
this.selectedRowKeys = selectedRowKeys;
},
batchAudit () {
if (!!this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.visibleBatch = true
}
else
this.$message.error('请选择项目!')
},
search () {
this.pagination.pageIndex = 1
this.getListByPage();
......@@ -273,12 +292,19 @@ export default {
closeWindow (value) {
if (value === 'audit') {
this.getListByPage()
this.id = null
this.objectId = null
this.selectedRowKeys = []
this.visibleView = false
this.visibleAudit = false
this.visibleBatch = false
} else if (value === 'error') {
this.id = null
this.objectId = null
this.visibleAudit = false
this.selectedRowKeys = []
this.visibleView = false
this.visibleAudit = false
this.visibleBatch = false
}
},
recordClick (record, type) {
......@@ -301,6 +327,10 @@ export default {
}
},
callback (key) {
if (key == '1') {
this.isBatchButten = true
} else
this.isBatchButten = false
this.searchForm.auditResult = key;
this.getListByPage()
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment