Commit f0de906b authored by wangxl's avatar wangxl

3333

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