Commit 65d85750 authored by wangxl's avatar wangxl

rrrr

parent a3de6cef
...@@ -528,7 +528,7 @@ export default { ...@@ -528,7 +528,7 @@ export default {
return fetch(`/v1/science-admin/com-project-check/getCount`, params) return fetch(`/v1/science-admin/com-project-check/getCount`, params)
}, },
}, },
auditManager: { audit: {
getListByPage (params) { getListByPage (params) {
return fetch(`/v1/science-admin/com_project_audit/getListByPage`, params) return fetch(`/v1/science-admin/com_project_audit/getListByPage`, params)
}, },
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, }
this.$api.auditManager.getAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
this.tableData = dataList; this.tableData = dataList;
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 4, projType: getType() }); let pars = isEmptyParams({ auditType: 4, projType: getType() });
this.$api.auditManager.getConclusionAuditCount(pars).then(({ data = {} }) => { this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
......
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, }
this.$api.auditManager.getAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
this.pagination.total = total; this.pagination.total = total;
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() }); let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() });
this.$api.auditManager.getCount(pars).then(({ data = {} }) => { this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
......
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
this.loading = true this.loading = true
let pars = isEmptyParams(this.auditObj) let pars = isEmptyParams(this.auditObj)
let par = { ...pars } let par = { ...pars }
this.$api.auditManager.projectAudit(par).then(({ data = {} }) => { this.$api.audit.projectAudit(par).then(({ data = {} }) => {
if (data) { if (data) {
if (data === '项目上报已经到达上限!') { if (data === '项目上报已经到达上限!') {
this.$message.info('项目上报已经到达上限!') this.$message.info('项目上报已经到达上限!')
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
this.loading = true this.loading = true
let pars = isEmptyParams(this.auditObj) let pars = isEmptyParams(this.auditObj)
let par = { ...pars } let par = { ...pars }
this.$api.auditManager.projectBatchAudit(par).then(({ data = {} }) => { this.$api.audit.projectBatchAudit(par).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('审核成功!') this.$message.success('审核成功!')
this.$emit('close', 'audit') this.$emit('close', 'audit')
......
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, }
this.$api.auditManager.getFinalAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
this.tableData = dataList; this.tableData = dataList;
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() }); let pars = isEmptyParams({ auditType: 1, reportYear: this.searchForm.reportYear, projType: getType() });
this.$api.auditManager.getFinalCount(pars).then(({ data = {} }) => { this.$api.audit.getFinalCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
...@@ -320,7 +320,7 @@ export default { ...@@ -320,7 +320,7 @@ export default {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: -1, pageSize: -1, } let par = { ...pars, pageIndex: -1, pageSize: -1, }
this.$api.auditManager.getFinalAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getFinalAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
dataList.forEach(e => { dataList.forEach(e => {
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
pageIndex: this.pagination.pageIndex, pageIndex: this.pagination.pageIndex,
pageSize: this.pagination.pageSize pageSize: this.pagination.pageSize
} }
this.$api.auditManager.getAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
this.tableData = dataList this.tableData = dataList
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 2, reportYear: this.searchForm.reportYear }); let pars = isEmptyParams({ auditType: 2, reportYear: this.searchForm.reportYear });
this.$api.auditManager.getCount(pars).then(({ data = {} }) => { this.$api.audit.getCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
} }
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
if (valid) { if (valid) {
let pars = isEmptyParams(this.auditObj) let pars = isEmptyParams(this.auditObj)
let par = { ...pars } let par = { ...pars }
this.$api.auditManager.testAudit(par).then(({ data = {} }) => { this.$api.audit.testAudit(par).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('审核成功!') this.$message.success('审核成功!')
this.$emit('closeWindow', 'audit') this.$emit('closeWindow', 'audit')
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
this.loading = true; this.loading = true;
let pars = isEmptyParams(this.searchForm); let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize, }
this.$api.auditManager.getAuditListByPage(par).then(({ data = {} }) => { this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data; const { dataList = [], total = 0 } = data;
this.tableData = dataList; this.tableData = dataList;
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
}, },
getCount () { getCount () {
let pars = isEmptyParams({ auditType: 5, projType: getType() }); let pars = isEmptyParams({ auditType: 5, projType: getType() });
this.$api.auditManager.getConclusionAuditCount(pars).then(({ data = {} }) => { this.$api.audit.getConclusionAuditCount(pars).then(({ data = {} }) => {
if (data) { if (data) {
this.panes = data this.panes = data
this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5] this.itemCount = [data.count1, data.count2, data.count3, data.count4, data.count5]
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
this.loading = true this.loading = true
this.searchForm.auditObjectId = this.value this.searchForm.auditObjectId = this.value
let par = { ...this.searchForm, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize } let par = { ...this.searchForm, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize }
this.$api.auditManager.getListByPage(par).then(({ data = {} }) => { this.$api.audit.getListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
this.tableData = dataList this.tableData = dataList
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
this.visible = true this.visible = true
} else if (type === 'del') { } else if (type === 'del') {
this.loading = true this.loading = true
this.$api.auditManager.deleteRecord({ id: record.id }).then(({ data = {} }) => { this.$api.audit.deleteRecord({ id: record.id }).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.getListByPage() this.getListByPage()
......
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
this.loading = true this.loading = true
let pars = isEmptyParams(this.formData) let pars = isEmptyParams(this.formData)
let par = { ...pars } let par = { ...pars }
this.$api.auditManager.save(par).then(({ data = {} }) => { this.$api.audit.save(par).then(({ data = {} }) => {
if (data) { if (data) {
this.$message.success('成功!') this.$message.success('成功!')
this.$emit('close', 'edit') this.$emit('close', 'edit')
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
<span class="form-description"> ※填报时间:{{ description }}</span> <span class="form-description"> ※填报时间:{{ description }}</span>
<!-- <a-table :dataSource="tableData" :columns="columns" rowKey="projId" :pagination="false" :loading="loading" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio' }"> --> <!-- <a-table :dataSource="tableData" :columns="columns" rowKey="projId" :pagination="false" :loading="loading" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: 'radio' }"> -->
<a-table :dataSource="tableData" :columns="columns" :scroll="{ x: 'max-content' }" rowKey="projId" :pagination="false" :loading="loading"> <a-table :dataSource="tableData" :columns="columns" :scroll="{ x: 'max-content' }" rowKey="projId" :pagination="false" :loading="loading">
<template slot="projName" slot-scope="record">
<a @click="recordClick(record, 'projView')">{{record.projName}}</a>
</template>
<template slot="taskStateName" slot-scope="record"> <template slot="taskStateName" slot-scope="record">
<span>{{record.taskStateName}}</span> <span>{{record.taskStateName}}</span>
</template> </template>
...@@ -41,6 +44,9 @@ ...@@ -41,6 +44,9 @@
<a-modal v-model="visibleView" title="查看合同书" :width="'94%'" :dialog-style="{ top: '8%' }" :footer="null" destroyOnClose :maskClosable="false"> <a-modal v-model="visibleView" title="查看合同书" :width="'94%'" :dialog-style="{ top: '8%' }" :footer="null" destroyOnClose :maskClosable="false">
<task-view v-model="projId" @close="closeWindow" /> <task-view v-model="projId" @close="closeWindow" />
</a-modal> </a-modal>
<a-modal v-model="visibleProjView" v-if="visibleProjView" title="项目详情" width="94%" :footer="null" :dialog-style="{ top: '8%' }" destroyOnClose :maskClosable="false">
<project-view v-model="projId" @close="closeWindow"></project-view>
</a-modal>
</div> </div>
</template> </template>
...@@ -49,11 +55,12 @@ import { getType } from '@/views/utils/auth' ...@@ -49,11 +55,12 @@ import { getType } from '@/views/utils/auth'
import { isEmptyParams, filterExportExcelData, tableColumnsName } from "@/views/utils/common"; import { isEmptyParams, filterExportExcelData, tableColumnsName } from "@/views/utils/common";
import taskCreate from "@/views/report/task/components/taskCreate.vue" import taskCreate from "@/views/report/task/components/taskCreate.vue"
import taskView from "@/views/report/task/components/taskView.vue" import taskView from "@/views/report/task/components/taskView.vue"
import projectView from '@/views/report/project/components/projectView'
export default { export default {
name: 'reportTask', name: 'reportTask',
components: { components: {
taskCreate, taskView taskCreate, taskView, projectView
}, },
data () { data () {
return { return {
...@@ -70,7 +77,7 @@ export default { ...@@ -70,7 +77,7 @@ export default {
searchForm: { projName: '', projNo: '', taskState: '1', reportYear: null }, searchForm: { projName: '', projNo: '', taskState: '1', reportYear: null },
tableData: [], tableData: [],
columns: [ columns: [
{ title: '项目名称', dataIndex: 'projName', align: 'center' }, { title: "项目名称", scopedSlots: { customRender: 'projName' }, align: 'center' },
{ title: '项目编号', dataIndex: 'projNo', align: 'center' }, { title: '项目编号', dataIndex: 'projNo', align: 'center' },
{ title: '开始时间', dataIndex: 'startDate', align: 'center' }, { title: '开始时间', dataIndex: 'startDate', align: 'center' },
{ title: '结束时间', dataIndex: 'endDate', align: 'center' }, { title: '结束时间', dataIndex: 'endDate', align: 'center' },
...@@ -83,6 +90,7 @@ export default { ...@@ -83,6 +90,7 @@ export default {
// 弹窗 // 弹窗
visibleEdit: false, visibleEdit: false,
visibleView: false, visibleView: false,
visibleProjView: false,
id: null, id: null,
projId: null, projId: null,
selectedRowKeys: [], selectedRowKeys: [],
...@@ -153,6 +161,9 @@ export default { ...@@ -153,6 +161,9 @@ export default {
if (type === 'view') { if (type === 'view') {
this.projId = record.projId this.projId = record.projId
this.visibleView = true this.visibleView = true
} else if (type === 'projView') {
this.projId = record.projId
this.visibleProjView = true
} else if (type === 'create') { } else if (type === 'create') {
this.projId = record.projId this.projId = record.projId
this.visibleEdit = true this.visibleEdit = true
...@@ -179,10 +190,10 @@ export default { ...@@ -179,10 +190,10 @@ export default {
this.getListByPage() this.getListByPage()
} }
else if (value === 'error') { else if (value === 'error') {
this.id = null
this.projId = null this.projId = null
this.visibleEdit = false this.visibleEdit = false
this.visibleView = false this.visibleView = false
this.visibleProjView = false
} }
}, },
callback (key) { callback (key) {
...@@ -190,7 +201,7 @@ export default { ...@@ -190,7 +201,7 @@ export default {
this.getListByPage() this.getListByPage()
}, },
exportData () { exportData () {
this.$ToDoExcel(`任务书列表`, tableColumnsName(this.columns), filterExportExcelData(this.columns, this.tableData)) this.$ToDoExcel(`合同书列表`, tableColumnsName(this.columns), filterExportExcelData(this.columns, this.tableData))
} }
}, },
watch: { watch: {
......
...@@ -580,7 +580,11 @@ ...@@ -580,7 +580,11 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<div class="special-middle"> <div class="special-middle">
<div>{{formData.totalFunding}}</div> <div>
<a-form-model-item prop="isTechnologyReport">
{{formData.totalFunding}}
</a-form-model-item>
</div>
</div> </div>
</a-col> </a-col>
<a-col :span="4" class="bg-gray"> <a-col :span="4" class="bg-gray">
...@@ -590,7 +594,11 @@ ...@@ -590,7 +594,11 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<div class="special-middle"> <div class="special-middle">
<div>{{formData.govFunding}}</div> <div>
<a-form-model-item prop="isTechnologyReport">
{{formData.govFunding}}
</a-form-model-item>
</div>
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
...@@ -604,11 +612,7 @@ ...@@ -604,11 +612,7 @@
<div class="special-middle"> <div class="special-middle">
<div> <div>
<a-form-model-item prop="isTechnologyReport"> <a-form-model-item prop="isTechnologyReport">
<a-select v-model="formData.isTechnologyReport" style="width: 100px"> <base-select v-model="formData.isTechnologyReport" :type="12" :isAll="true" :width="80" />
<a-select-option value="">--请选择--</a-select-option>
<a-select-option value="1"></a-select-option>
<a-select-option value="0"></a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</div> </div>
</div> </div>
...@@ -708,7 +712,30 @@ export default { ...@@ -708,7 +712,30 @@ export default {
projectSubList: [], projectSubList: [],
fileList: [], fileList: [],
auditList: [], auditList: [],
managerDept: "", managerDept: null,
organizationCode: null,
unitAddress: null,
registeredAddress: null,
postCode: null,
legalPerson: null,
workforce: null,
specializedPersonnel: null,
researchPersonnel: null,
depositBank: null,
bankAccount: null,
depositBankAddress: null,
interbankNumber: null,
projWork: null,
fax: null,
telephone: null,
keyAreas: null,
startDate: null,
endDate: null,
linkName: null,
linkMobile: null,
linkEmail: null,
linkFax: null,
isTechnologyReport: null,
}, },
rules: { rules: {
organizationCode: [{ required: true, message: '请填写统一社会信用代码', trigger: 'blur' },], organizationCode: [{ required: true, message: '请填写统一社会信用代码', trigger: 'blur' },],
......
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