Commit 9999f4ca authored by wangxl's avatar wangxl

44

parent 5b01143d
......@@ -10,8 +10,8 @@
<a-form-item>
<a-input placeholder="身份证号" v-model="searchForm.certId" :maxLength="100" style="width: 180px" />
</a-form-item>
<a-form-item>
<a-input placeholder="姓名" v-model="searchForm.personName" :maxLength="100" style="width: 180px" />
<a-form-item v-if="isTop">
<a-input placeholder="审核人" v-model="searchForm.auditPersonName" :maxLength="100" style="width: 180px" />
</a-form-item>
<a-form-item>
<para-select v-model="searchForm.talentCategory" :typeId="21" :width="150" />
......@@ -88,7 +88,8 @@ export default {
certId: null,
personName: null,
reportYear: null,
talentCategory: null
talentCategory: null,
auditPersonName: null
},
activekey: '1',
tabDate: [
......@@ -130,6 +131,7 @@ export default {
description: '',
id: null,
objectId: null,
isTop: false,
excelCol: [
{ title: '申报年度', dataIndex: 'reportYear', align: 'center' },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center' },
......@@ -141,11 +143,17 @@ export default {
{ title: '人才类型', dataIndex: 'talentCategoryName', align: 'center' },
{ title: '总经费', dataIndex: 'totalFunding', align: 'center' },
{ title: '审核状态', dataIndex: 'auditResultName', align: 'center' }
]
],
};
},
created () {
this.getYear()
let user = JSON.parse(window.sessionStorage.getItem('user'))
if (user && user.roles) {
if (user.roles.indexOf("0") != -1) {
this.isTop = true
}
}
},
methods: {
onSelectChange (selectedRowKeys) {
......
......@@ -10,8 +10,8 @@
<a-form-item>
<a-input placeholder="身份证号" v-model="searchForm.certId" :maxLength="100" style="width: 180px" />
</a-form-item>
<a-form-item>
<a-input placeholder="姓名" v-model="searchForm.personName" :maxLength="100" style="width: 180px" />
<a-form-item v-if="isTop">
<a-input placeholder="审核人" v-model="searchForm.auditPersonName" :maxLength="100" style="width: 180px" />
</a-form-item>
<a-form-item>
<para-select v-model="searchForm.talentCategory" :typeId="21" :width="150" />
......@@ -90,7 +90,8 @@ export default {
certId: null,
personName: null,
reportYear: null,
talentCategory: null
talentCategory: null,
auditPersonName: null
},
activekey: '1',
tabDate: [
......@@ -134,10 +135,17 @@ export default {
description: '',
id: null,
objectId: null,
isTop: false,
};
},
created () {
this.getYear()
let user = JSON.parse(window.sessionStorage.getItem('user'))
if (user && user.roles) {
if (user.roles.indexOf("0") != -1) {
this.isTop = true
}
}
},
methods: {
onSelectChange (selectedRowKeys) {
......
<template>
<div class="app-content">
<a-tabs default-active-key="1" :tab-position="'top'" @change="callback">
<a-tab-pane key="1" :tab="'待处理项目('+panes.count1+')'">
</a-tab-pane>
<a-tab-pane key="10" :tab="'已通过项目('+panes.count2+')'">
</a-tab-pane>
<a-tab-pane key="30" :tab="'返回修改项目('+panes.count3+')'">
</a-tab-pane>
<a-tab-pane key="20" :tab="'未通过项目('+panes.count4+')'">
</a-tab-pane>
<a-tab-pane key="" :tab="'所有项目('+panes.count5+')'">
</a-tab-pane>
</a-tabs>
<a-form layout="horizontal" :form="form" :model="searchForm">
<a-row :gutter="30">
<a-col :span="8">
<a-form-item label="项目名称">
<a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 272px" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="项目编号">
<a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 272px" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="项目类别">
<para-select v-model="searchForm.projClass" :typeId="52" />
</a-form-item>
</a-col>
</a-row>
<a-row>
<a-col :span="8">
<a-form-item label="申报单位">
<a-input placeholder="申报单位" v-model="searchForm.appUnitName" :maxLength="100" style="width: 272px" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="申报人">
<a-input placeholder="申报人" v-model="searchForm.appPersonName" :maxLength="50" style="width: 272px" />
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item>
<a-button type="primary" icon="search" @click="search">搜索</a-button>
<a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
</a-form-item>
</a-col>
</a-row>
<a-form :form="form" :model="searchForm" layout="inline" class="search_form">
<a-form-item label="项目名称">
<a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 272px" />
</a-form-item>
<a-form-item label="项目编号">
<a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 272px" />
</a-form-item>
<a-form-item label="项目类别">
<para-select v-model="searchForm.projClass" :typeId="52" />
</a-form-item>
<a-form-item label="申报单位">
<a-input placeholder="申报单位" v-model="searchForm.appUnitName" :maxLength="100" style="width: 272px" />
</a-form-item>
<a-form-item label="申报人">
<a-input placeholder="申报人" v-model="searchForm.appPersonName" :maxLength="50" style="width: 272px" />
</a-form-item>
<a-form-item>
<a-button type="primary" size="default" icon="search" @click="search">搜索</a-button>
<a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
</a-form-item>
</a-form>
<a-row>
<a-col :span="30">
<a-form-item>
<a-button type="primary" @click="exportData">导出Excel</a-button>
<span :style="{color:'#DC143C'}"> 审核时间:{{description}}</span>
</a-form-item>
</a-col>
</a-row>
<div style="width:100%">
<div style="display: inline-block;;width:50%">
<btn-group :data="tabDate" :itemCount="itemCount" v-model="activekey" @change="callback" />
</div>
<div style="display: inline-block;width:50%;text-align: right;">
<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 class="form-description" v-if="description"> ※ 审核时间:{{ description }}</span>
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
<template slot="auditResultName" slot-scope="record">
<span v-if="record">
......@@ -96,7 +71,15 @@ export default {
data () {
return {
// 选项卡
panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, },
activekey: '1',
tabDate: [
{ key: "1", tab: "待审核" },
{ key: "10", tab: "已通过" },
{ key: "30", tab: "返回修改" },
{ key: "20", tab: "未通过" },
{ key: "", tab: "所有" },
],
itemCount: [0, 0, 0, 0, 0],
form: this.$form.createForm(this, { name: 'advanced_search' }),
searchForm: {
auditType: 2,
......@@ -153,7 +136,7 @@ export default {
this.getListByPage()
},
getYear () {
this.$api.batch.getCurrentYearBatch({ type: 2, systemType: getType(), timeType: 2 }).then(({ data = {} }) => {
this.$api.batch.getCurrentYearBatch({ type: 2, systemType: getType(), timeType: 2 }).then(({ data = {} }) => {
if (data) {
this.isButten = data.disabled
this.description = data.description
......@@ -186,14 +169,12 @@ export default {
let pars = isEmptyParams({ auditType: 2, reportYear: this.searchForm.reportYear });
this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) {
this.panes = data
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
}
}).catch(() => {
})
},
submitForm () {
},
change () {
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