Commit a3a999e9 authored by wangxl's avatar wangxl

3333333

parent e2b43ad9
...@@ -593,9 +593,6 @@ export default { ...@@ -593,9 +593,6 @@ export default {
updateBatch (params) { updateBatch (params) {
return fetch('/v1/science-admin/com-batch/updateBatch', params, 'post', 'json') return fetch('/v1/science-admin/com-batch/updateBatch', params, 'post', 'json')
}, },
getMaxBatch (params) {
return fetch('/v1/science-admin/com-batch/getMaxBatch', params)
},
deleteBatch (params) { deleteBatch (params) {
return fetch(`/v1/science-admin/com-batch/deleteBatch/${params.id}`, params, 'delete', 'json') return fetch(`/v1/science-admin/com-batch/deleteBatch/${params.id}`, params, 'delete', 'json')
}, },
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.assignYear = data.year this.searchForm.assignYear = data.year
this.getListByPage() this.getListByPage()
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
this.pagination.pageIndex = 1 this.pagination.pageIndex = 1
this.getListByPage() this.getListByPage()
}, },
groupChange(value) { groupChange (value) {
this.searchForm.groupId = value this.searchForm.groupId = value
}, },
recordClick (record, type) { recordClick (record, type) {
......
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
</span> </span>
</template> </template>
<template slot="option" slot-scope="record"> <template slot="option" slot-scope="record">
<!-- <a-button type="link" size="small" v-if="record.projState >= 50" @click="recordClick(record, 'viewProjectTask')">查看任务书</a-button> -->
<a-button type="link" size="small" @click="recordClick(record, 'evaluation')">专家评审明细</a-button> <a-button type="link" size="small" @click="recordClick(record, 'evaluation')">专家评审明细</a-button>
<a-button type="link" size="small" v-if="record.auditResult == 1" @click="recordClick(record, 'audit')">审核</a-button> <a-button type="link" size="small" v-if="record.auditResult == 1" @click="recordClick(record, 'audit')">审核</a-button>
</template> </template>
...@@ -227,7 +226,7 @@ export default { ...@@ -227,7 +226,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 2, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 2, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -53,11 +53,13 @@ export default { ...@@ -53,11 +53,13 @@ export default {
}) })
}, },
getSpecInfo (key) { getSpecInfo (key) {
console.log(this.specArray, this.value,1)
let newArray = this.specArray.filter( let newArray = this.specArray.filter(
function (el) { function (el) {
return el.key == key return el.key == key
} }
); );
console.log(this.specArray, newArray, this.value,2)
if (!!newArray && newArray.length > 0) if (!!newArray && newArray.length > 0)
return [newArray[0].ppkey, newArray[0].pkey, newArray[0].key] return [newArray[0].ppkey, newArray[0].pkey, newArray[0].key]
else else
......
...@@ -274,7 +274,7 @@ export default { ...@@ -274,7 +274,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.comBatch = data this.comBatch = data
} }
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 5, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.changeType() this.changeType()
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.changeType() this.changeType()
......
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() , timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
} }
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.getEvaluationStatistic() this.getEvaluationStatistic()
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
methods: { methods: {
moment, moment,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.formData.groupYear = data.year + '' this.formData.groupYear = data.year + ''
} }
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.totalTitle = this.reportYear + '项目二级学科选择' this.totalTitle = this.reportYear + '项目二级学科选择'
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.reportYear = data.year this.searchForm.reportYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.searchForm.reportYear = data.year this.searchForm.reportYear = data.year
this.getListByPage() this.getListByPage()
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}, },
methods: { methods: {
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.getProjectExpertGroupStatistic() this.getProjectExpertGroupStatistic()
......
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
methods: { methods: {
isEmptyParams, isEmptyParams,
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
}) })
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() , timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.reportYear = data.year this.reportYear = data.year
this.searchForm.groupYear = data.year this.searchForm.groupYear = data.year
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
this.visibleEdit = true this.visibleEdit = true
}, },
getYear () { getYear () {
this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType() }).then(({ data = {} }) => { this.$api.batch.getCurrentYearBatch({ type: 1, projType: getType(), timeType: 1 }).then(({ data = {} }) => {
if (data) { if (data) {
this.isButten = data.disabled this.isButten = data.disabled
this.description = data.description this.description = data.description
......
...@@ -40,26 +40,6 @@ ...@@ -40,26 +40,6 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
<!-- <a-row>
<a-col :span="6" class="bg-gray">
<div class="required">州市级行政单位审核时间</div>
</a-col>
<a-col :span="18">
<a-form-model-item ref="prefectureRange" prop="prefectureRange">
<a-range-picker v-model="formData.prefectureRange" show-time format="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss" @change="prefectureDateChange" :placeholder="['开始时间', '结束时间']" />
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col :span="6" class="bg-gray">
<div class="required">省直单位上报时间</div>
</a-col>
<a-col :span="18">
<a-form-model-item ref="provinceRange" prop="provinceRange">
<a-range-picker v-model="formData.provinceRange" show-time format="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss" @change="provinceDateChange" :placeholder="['开始时间', '结束时间']" />
</a-form-model-item>
</a-col>
</a-row> -->
<a-row> <a-row>
<a-col :span="6" class="bg-gray"> <a-col :span="6" class="bg-gray">
<div class="required">专家审核时间</div> <div class="required">专家审核时间</div>
...@@ -107,6 +87,7 @@ export default { ...@@ -107,6 +87,7 @@ export default {
id: null, id: null,
year: moment().format('YYYY'), year: moment().format('YYYY'),
batch: '1', batch: '1',
timeType: 1,
reportStart: '', reportStart: '',
reportEnd: '', reportEnd: '',
auditStart: '', auditStart: '',
...@@ -154,6 +135,7 @@ export default { ...@@ -154,6 +135,7 @@ export default {
if (data) { if (data) {
this.formData.id = data.id this.formData.id = data.id
this.formData.year = data.year + '' this.formData.year = data.year + ''
this.formData.timeType = data.timeType
this.formData.projType = data.projType this.formData.projType = data.projType
this.formData.reportStart = data.reportStart this.formData.reportStart = data.reportStart
this.formData.reportEnd = data.reportEnd this.formData.reportEnd = data.reportEnd
......
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
id: null, id: null,
year: moment().format('YYYY'), year: moment().format('YYYY'),
batch: '1', batch: '1',
timeType: 2,
reportStart: '', reportStart: '',
reportEnd: '', reportEnd: '',
auditStart: '', auditStart: '',
...@@ -120,6 +121,7 @@ export default { ...@@ -120,6 +121,7 @@ export default {
if (data) { if (data) {
this.formData.id = data.id this.formData.id = data.id
this.formData.year = data.year + '' this.formData.year = data.year + ''
this.formData.timeType = data.timeType
this.formData.projType = data.projType this.formData.projType = data.projType
this.formData.reportStart = data.reportStart this.formData.reportStart = data.reportStart
this.formData.reportEnd = data.reportEnd this.formData.reportEnd = data.reportEnd
......
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