Commit 23093a38 by liangzhen

建设形式映射

1 parent 6d500e1c
......@@ -37,7 +37,7 @@ export const routes = [
name: 'auxiliarySelection',
component: () => import('@/views/assessZC/auxiliarySelection.vue'),
meta: {
title: "评估项目辅助选定",
title: "评估批次发起",
},
},
{
......@@ -148,7 +148,7 @@ export const routes = [
name: 'auxiliarySelection',
component: () => import('@/views/assessChecks/auxiliarySelection.vue'),
meta: {
title: "评估项目辅助选定",
title: "评估批次发起",
},
},
{
......
......@@ -69,7 +69,7 @@ export function MaterialsListKY(type) {
]
break
case 4:
return [
return [
{ batchtype: "合同", typeText: "项目合同", typeCode: "9" },
{ batchtype: "合同", typeText: "技术协议", typeCode: "10" },
{ batchtype: "执行", typeText: " 合同变更文件(若有)", typeCode: "11" },
......@@ -102,7 +102,7 @@ export function MaterialsListKY(type) {
]
break
case 6:
return [
return [
{ batchtype: "结决算及转资", typeText: "项目结算报告", typeCode: "31" },
{ batchtype: "结决算及转资", typeText: "项目决算报告(仅涉及含资本金的项目)", typeCode: "32" },
{ batchtype: "结决算及转资", typeText: "决算审计意见(仅涉及含资本金的项目)", typeCode: "33" },
......@@ -116,4 +116,19 @@ export function generateYearOptions() {
console.log('获取时间')
const currentYear = new Date().getFullYear();
return Array.from({ length: 10 }, (_, i) => currentYear - i);
}
\ No newline at end of file
}
export function projectCategoryText(type) {
switch (type) {
case "01":
return '统推'
break;
case "02":
return '自建'
break;
case "03":
return '独立建设'
break;
}
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ export function trendsRules(type) {
children: [
{
name: "评估项目辅助选定",
name: "评估批次发起",
url: "/mainLayout/auxiliarySelection",
children: [],
},
......@@ -205,7 +205,7 @@ export function trendsRules(type) {
url: "",
children: [
{
name: "自查项目辅助选定",
name: "自查评估批次发起",
url: "/assesszc/auxiliarySelection",
children: [],
},
......@@ -267,7 +267,7 @@ export function trendsRules(type) {
url: "",
children: [
{
name: "评估项目辅助选定",
name: "评估批次发起",
url: "/mainLayout/auxiliarySelection",
children: [],
},
......
......@@ -330,7 +330,7 @@ import {
wtssSelAssistanceConfirmatio,
downloadObject
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -396,7 +396,8 @@ export default {
} else {
this.$set(item, "postEvalStateText", "复核未下发");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
console.log(this.tableData,'tableDatatableData')
this.total = res.data.total * 1;
......
......@@ -297,7 +297,7 @@ import {
wtssSelProblemAssistedFeedback,
ssProblemAssistedFeedback,
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -367,6 +367,7 @@ export default {
} else {
this.$set(item, "postEvalStateText", "未申诉");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
......@@ -24,17 +24,32 @@
clearable
></el-input>
</el-form-item>
<!-- <el-form-item label="后评估状态:" prop="postEvalState" class="fromItem">
<el-form-item label="问题整改状态:" prop="postEvalState" class="fromItem">
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<el-option label="未下发" value="0"></el-option>
<el-option label="已下发" value="1"></el-option>
<el-option label="已撤回" value="2"></el-option>
<el-option label="未整改" value="4"></el-option>
<el-option label="整改提交" value="5"></el-option>
<el-option label="整改未完成" value="6"></el-option>
<el-option label="整改已完成" value="7"></el-option>
</el-select>
</el-form-item> -->
</el-form-item>
<el-form-item label="评估项目名称:" prop="projectName" class="fromItem">
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem">
<el-input
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item class="button">
<el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
......@@ -407,7 +422,7 @@ import {
ossupload,
downloadObject,
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -457,6 +472,7 @@ export default {
} else if (item.reviewStatus == "7") {
this.$set(item, "postEvalState", "整改已完成");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
......@@ -543,67 +543,6 @@ export default {
};
Object.assign(params, this.ruleForm);
console.log(params);
(this.tableData = [
{
expertId: 1,
fullName: "王小明",
gender: 1,
birthday: "2024-04-23",
compId: 10001,
qualification: "硕士",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
{
expertId: 2,
fullName: "李晓帅",
gender: 0,
birthday: "2024-04-23",
compId: 10001,
qualification: "博士",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
{
expertId: 3,
fullName: "张晓楠",
gender: 1,
birthday: "2024-04-23",
compId: 10002,
qualification: "博士后",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
]),
(this.total = 2);
return;
let res = await projectInfo(params);
if (res.code == "200") {
......
......@@ -289,7 +289,7 @@ import {
selLcb,
downloadObject
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions ,projectCategoryText} from "@/utils/cache";
export default {
data() {
return {
......@@ -342,6 +342,10 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach(item=>{
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1;
}
},
......
......@@ -165,7 +165,7 @@ import {
wtplxfproblemAssistedDistribution,
chproblemAssistedDistribution
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -233,6 +233,7 @@ export default {
} else {
this.$set(item, "postEvalState", "已下发");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
......@@ -307,7 +307,7 @@ import {
wtqdqselect,
selLcb
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
import { MaterialsList } from "@/utils/cache";
export default {
data() {
......@@ -355,6 +355,9 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
},
......
......@@ -116,7 +116,7 @@ import {
chpostEvalQuesInfo,
qrscevaluationMaterials,
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText} from "@/utils/cache";
export default {
data() {
return {
......@@ -183,6 +183,7 @@ export default {
}else {
this.$set( item,'postEvalState','已提交')
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1;
}
......
......@@ -158,7 +158,7 @@
import {
fzcxpostSelect
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions, projectCategoryText} from "@/utils/cache";
export default {
data() {
return {
......@@ -219,6 +219,7 @@ export default {
} else {
this.$set(item, "postEvalState", "未下发");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
<!-- 评估项目辅助选定 -->
<!-- 评估批次发起 -->
<template>
<div class="main">
<el-form
......
......@@ -188,7 +188,7 @@
clqdevaluationMaterials,
qrscevaluationMaterials,
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText} from "@/utils/cache";
export default {
data() {
return {
......@@ -252,6 +252,7 @@ export default {
}else{
this.$set( item,'postEvalState','待确认')
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1;
}
......
......@@ -19,6 +19,31 @@
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName" clearable></el-input>
</el-form-item>
<el-form-item label="整改复核状态:" prop="postEvalState" class="fromItem">
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<el-option label="整改提交" value="5"></el-option>
<el-option label="整改未完成" value="6"></el-option>
<el-option label="整改已完成" value="7"></el-option>
</el-select>
</el-form-item>
<el-form-item label="评估项目名称:" prop="projectName" class="fromItem">
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem">
<el-input
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<!-- <el-form-item
label="计划评审日期:"
prop="planReviewDate"
......@@ -437,7 +462,7 @@ import {
ossupload,
downloadObject
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -493,6 +518,7 @@ export default {
}else{
this.$set(item, "postEvalState", "整改已完成");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
......@@ -257,7 +257,7 @@ import {
ossupload,
downloadObject
} from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
data() {
return {
......@@ -324,6 +324,7 @@ export default {
} else if (item.postEvalState >=1) {
this.$set(item, "postEvalStateText", "已上传");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
......
<!-- 评估项目辅助选定 -->
<!-- 评估批次发起 -->
<template>
<div class="main">
<el-form
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!