Commit 27e03303 authored by 徐俊's avatar 徐俊
parents 980cefa4 23bc5837
......@@ -117,6 +117,19 @@ export default {
{ title: '审核状态', dataIndex: 'auditResultName', align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, },
],
excelCol: [
{ title: "项目名称", dataIndex: 'projName' },
{ title: '申请编号', dataIndex: 'appNo' },
{ title: "开始时间", dataIndex: "startDate" },
{ title: "结束时间", dataIndex: "endDate" },
{ title: "申报年度", dataIndex: "reportYear" },
{ title: "项目类别", dataIndex: 'projClassName' },
{ title: "项目资金(万元)", dataIndex: "govFunding" },
{ title: '申报单位', dataIndex: 'appUnitName' },
{ title: '申报学科', dataIndex: 'knowledgeName' },
{ title: '申报人', dataIndex: 'appPersonName' },
{ title: '审核状态', dataIndex: 'auditResultName' },
],
pagination: {
pageIndex: 1,
pageSize: this.$defaultPageSize,
......@@ -193,7 +206,7 @@ export default {
this.tableData = dataList.map(item => {
return {
...item,
projClassName: item.projClass === 1 ? "一般项目" : "重点项目",
projClassName: item.projClass === "1" ? "一般项目" : "重点项目",
}
})
this.tableData.forEach(e => {
......@@ -265,21 +278,23 @@ export default {
this.disabledSubmit = value
},
exportData () {
let column = [
{ title: "项目名称", dataIndex: 'projName' },
//{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: '申请编号', dataIndex: 'appNo' },
{ title: "开始时间", dataIndex: "startDate" },
{ title: "结束时间", dataIndex: "endDate" },
{ title: "申报年度", dataIndex: "reportYear" },
{ title: "项目类别", dataIndex: 'projClassName' },
{ title: "项目资金(万元)", dataIndex: "govFunding" },
{ title: '申报单位', dataIndex: 'appUnitName' },
{ title: '申报学科', dataIndex: 'knowledgeName' },
{ title: '申报人', dataIndex: 'appPersonName' },
{ title: '审核状态', dataIndex: 'auditResultName' },
]
this.$ToDoExcel(`项目审核列表`, tableColumnsName(column), filterExportExcelData(column, this.tableData))
this.loading = true;
let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: -1, pageSize: -1, }
this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data;
this.pagination.total = total;
this.tableData = dataList
this.tableData.forEach(e => {
e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目"
e.startDate = moment(e.startDate).format('YYYY-MM-DD')
e.endDate = moment(e.endDate).format('YYYY-MM-DD')
})
this.$ToDoExcel(`项目审核列表`, tableColumnsName(this.excelCol), filterExportExcelData(this.excelCol, dataList))
this.loading = false
}
}).catch(() => { this.loading = false })
}
},
};
......
......@@ -16,6 +16,9 @@
<a-form-item>
<a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 150px" />
</a-form-item>
<a-form-item>
<base-select v-model="searchForm.projClass" :title="'项目类别'" :type="17" :isAll="true" :width="150" />
</a-form-item>
<a-form-item label="评分刷选">
<a-input-number v-model="searchForm.scoreStart" :min="0" :step="0.01" style="width: 60px" />
~
......@@ -121,21 +124,21 @@ const EditableCell = {
props: {
text: Number,
},
data() {
data () {
return {
value: this.text,
editable: false,
};
},
methods: {
handleChange(value) {
handleChange (value) {
this.value = value;
},
check() {
check () {
this.editable = false;
this.$emit('change', this.value);
},
edit() {
edit () {
this.editable = true;
},
},
......@@ -178,17 +181,17 @@ export default {
columns: [
{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300 },
{ title: "答辩技术专家评分", scopedSlots: { customRender: 'defenseTechnologyInfo' }, align: 'center', width: 150 },
{ title: "答辩账务专家评分", scopedSlots: { customRender: 'defenseEconomyInfo' }, align: 'center', width: 150 },
{ title: "答辩分数", dataIndex: "defenseScore", align: 'center', width: 150 },
{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: "答辩分数", scopedSlots: { customRender: 'defenseInfo' }, align: 'center', width: 150 },
{ title: "项目类别", dataIndex: 'projClassName' , align: 'center' },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center' },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center' },
{ title: '年龄', dataIndex: 'age', align: 'center' },
{ title: '技术专家评分', dataIndex: 'gradeScore1', align: 'center' },
{ title: '财务专家评分', dataIndex: 'gradeScore2', align: 'center' },
{ title: '最终得分', dataIndex: 'gradeScore', align: 'center' },
{ title: '审核状态', dataIndex: 'auditResultName', align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', width: 120, },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 180, },
],
tableData: [],
innerColumns: [
......@@ -206,8 +209,12 @@ export default {
{ title: "答辩账务专家评分", dataIndex: 'defenseEconomyScore', align: 'center' },
{ title: "答辩分数", dataIndex: "defenseScore", align: 'center' },
{ title: "项目类别", dataIndex: 'projClassName', align: 'center' },
{ title: "总预算数", dataIndex: 'totalFunding', align: 'center' },
{ title: "省级财政资金", dataIndex: 'govFunding', align: 'center' },
{ title: "自筹资金", dataIndex: 'selfFunding', align: 'center' },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center' },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center' },
{ title: '年龄', dataIndex: 'age', align: 'center' },
{ title: '技术专家评分', dataIndex: 'gradeScore1', align: 'center' },
{ title: '财务专家评分', dataIndex: 'gradeScore2', align: 'center' },
{ title: '最终得分', dataIndex: 'gradeScore', align: 'center' },
......@@ -292,14 +299,10 @@ export default {
this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data;
this.tableData = dataList.map(item => {
return {
...item,
projClassName: item.projClass === "1" ? "一般项目" : "重点项目",
}
})
this.tableData = dataList
this.pagination.total = total;
this.tableData.forEach(e => {
e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目"
e.startDate = moment(e.startDate).format('YYYY-MM-DD')
e.endDate = moment(e.endDate).format('YYYY-MM-DD')
// 技术专家
......@@ -412,7 +415,7 @@ export default {
}
}).catch(() => { this.loading = false })
},
onCellChange(key, dataIndex, value) {
onCellChange (key, dataIndex, value) {
const target = this.tableData.find(item => item.id === key);
if (target) {
target[dataIndex] = value
......
......@@ -106,8 +106,18 @@ export default {
case 16:
this.getSexSelect()
break;
case 17:
this.geProjClassSelect()
break;
}
},
geProjClassSelect () {
let arr = []
arr.push({ title: '一般项目', key: '1' })
arr.push({ title: '重点项目', key: '2' })
this.selectArray = arr
this.loadValue()
},
getIsSelect () {
let arr = []
arr.push({ title: '是', key: '1' })
......
......@@ -35,8 +35,8 @@
</template>
<template slot="option" slot-scope="record">
<a-button type="link" size="small" @click="recordClick(record, 'view')">查看</a-button>
<a-button type="link" size="small" v-if="((record.projState == -10 || record.projState == 10 || record.projState == 30))" @click="recordClick(record, 'edit')">修改</a-button>
<a-popconfirm title="确定要上报吗?" v-if="((record.projState == 10 || record.projState == 30))" ok-text="确定" cancel-text="取消" @confirm="recordClick(record,'report')">
<a-button type="link" size="small" v-if="((record.projState == -10 || record.projState == 10 || record.projState == 30 || record.projState == 35))" @click="recordClick(record, 'edit')">修改</a-button>
<a-popconfirm title="确定要上报吗?" v-if="((record.projState == 10 || record.projState == 30 || record.projState == 35))" ok-text="确定" cancel-text="取消" @confirm="recordClick(record,'report')">
<a-button type="link" size="small">上报</a-button>
</a-popconfirm>
<a-button type="link" size="small" v-if="record.projState <= 10" @click="recordClick(record,'delete')">删除</a-button>
......@@ -73,7 +73,7 @@ import axios from 'axios'
export default {
name: 'reportProject',
components: {
projectView, projectCreate,previewFile, knowledgeSelect, personInfoEdit
projectView, projectCreate, previewFile, knowledgeSelect, personInfoEdit
},
data () {
return {
......@@ -142,7 +142,7 @@ export default {
this.visibleEdit = true
},
getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) {
this.isButten = data.disabled
this.description = data.description
......
......@@ -796,7 +796,7 @@ export default {
var obj = this.getObj(step)
obj.step = step
let state = obj.projState
if (state != 30 && step == 5)
if ((state != 30 || state != 30) && step == 5)
obj.projState = 10
let pars = isEmptyParams(obj)
let par = { ...pars }
......
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