Commit e087fe0b by liangzhen

新增状态字段

1 parent d8b6f8bf
......@@ -86,9 +86,16 @@
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column prop="projectName" label="评估项目名称" show-overflow-tooltip >
</el-table-column>
<el-table-column prop="reviewText" label="项目审核状态">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<!-- <el-table-column prop="projectStatus" label="项目建设阶段">
......@@ -102,10 +109,10 @@
</el-table-column>
<el-table-column prop="rectificationDeadline" label="问题整改截止时间">
</el-table-column>
<el-table-column prop="postEvalStateText" label="复核状态">
<el-table-column prop="postEvalStateText" label="申诉状态">
</el-table-column>
<!-- <el-table-column prop="reviewStatus" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
<el-table-column prop="planReviewDate" label="评估日期"> </el-table-column>
</el-table>
</div>
<el-pagination
......@@ -391,10 +398,28 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.reviewStatus >= "4") {
this.$set(item, "postEvalStateText", "复核已下发");
} else {
this.$set(item, "postEvalStateText", "复核未下发");
if (item.appealStatus == "0") {
this.$set(item, "postEvalStateText", "未申诉");
} else if (item.appealStatus == "1") {
this.$set(item, "postEvalStateText", "已申诉");
} else if (item.appealStatus == "2") {
this.$set(item, "postEvalStateText", "申诉驳回");
}else if (item.appealStatus == "3") {
this.$set(item, "postEvalStateText", "申诉通过");
}
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
}
if (item.reviewStatus == "0") {
this.$set(item, "reviewText", "无问题");
} else if (item.reviewStatus == "1") {
this.$set(item, "reviewText", "需整改");
} else if (item.reviewStatus == "2") {
this.$set(item, "reviewText", "已整改");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
......@@ -592,10 +617,10 @@ export default {
this.$message("请选择一条数据进行复核");
return;
}
if (this.checkedList[0].postEvalStateText == "复核已下发") {
this.$message("请选择未下发的数据");
return;
}
// if (this.checkedList[0].postEvalStateText == "复核已下发") {
// this.$message("请选择未下发的数据");
// return;
// }
this.dialogSS = true;
let params = {
projectId: this.checkedList[0].projectId,
......
......@@ -103,13 +103,20 @@
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column
prop="projectName"
label="评估项目名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="reviewText" label="项目审核状态">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<!-- <el-table-column prop="projectStatus" label="项目建设阶段">
......@@ -128,7 +135,7 @@
<el-table-column prop="reviewStatusText" label="问题整改状态">
</el-table-column>
<!-- <el-table-column prop="reviewStatus" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
<el-table-column prop="planReviewDate" label="评估日期"> </el-table-column>
</el-table>
</div>
<el-pagination
......@@ -286,7 +293,7 @@
</div>
<p class="midBtn">
<span @click="cancelSS()">取消</span><span @click="saveSS()">保存</span
><span @click="save()">提交</span>
><span @click="saveSubmit()">提交</span>
</p>
</el-dialog>
<!-- 申诉 -->
......@@ -388,7 +395,8 @@ import {
qrProblemAssistedFeedback,
wtssSelProblemAssistedFeedback,
ssProblemAssistedFeedback,
wtssSelProblemRectification
wtssSelProblemRectification,
wtzgxfProblemRectification
} from "@/api/index";
import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default {
......@@ -460,15 +468,29 @@ export default {
} else {
this.$set(item, "postEvalStateText", "未申诉");
}
if (item.reviewStatus == "4") {
this.$set(item, "reviewStatusText", "未整改");
} else if (item.reviewStatus == "5") {
this.$set(item, "reviewStatusText", "整改提交");
} else if (item.reviewStatus == "6") {
this.$set(item, "reviewStatusText", "整改未完成");
} else if (item.reviewStatus == "7") {
if (item.rectificationStatus == "0") {
this.$set(item, "reviewStatusText", "问题未整改");
} else if (item.rectificationStatus == "1") {
this.$set(item, "reviewStatusText", "已整改");
} else if (item.rectificationStatus== "2") {
this.$set(item, "reviewStatusText", "整改不合格");
} else if (item.rectificationStatus== "3") {
this.$set(item, "reviewStatusText", "整改已完成");
}
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
}
if (item.reviewStatus == "0") {
this.$set(item, "reviewText", "无问题");
} else if (item.reviewStatus == "1") {
this.$set(item, "reviewText", "需整改");
} else if (item.reviewStatus == "2") {
this.$set(item, "reviewText", "已整改");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
......@@ -785,6 +807,15 @@ export default {
this.dataPretreatment();
}
},
async saveSubmit(){
let res = await wtzgxfProblemRectification(this.tableDataQR);
if (res.code == "200") {
this.dialogQR = false;
this.resetForm();
} else {
this.$message("整改提交失败");
}
}
},
};
</script>
......
......@@ -85,13 +85,20 @@
>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column
prop="projectName"
label="评估项目名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="reviewStatusText" label="项目审核状态">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<!-- <el-table-column prop="projectStatus" label="项目建设阶段">
......@@ -102,7 +109,7 @@
<el-table-column prop="expertName" label="评审专家名单">
</el-table-column>
<!-- <el-table-column prop="字段待确认" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
<el-table-column prop="planReviewDate" label="评估日期"> </el-table-column>
</el-table>
</div>
<el-pagination
......@@ -343,7 +350,22 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach(item=>{
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
} else {
this.$set(item, "batchStateText", "未确认");
}
if (item.reviewStatus == "0") {
this.$set(item, "reviewStatusText", "无问题");
} else if (item.reviewStatus == "1") {
this.$set(item, "reviewStatusText", "需整改");
} else if (item.reviewStatus == "2") {
this.$set(item, "reviewStatusText", "已整改");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1;
......
......@@ -79,9 +79,17 @@
</template></el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column prop="projectName" label="评估项目名称" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="reviewStatusText" label="项目审核状态">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<!-- <el-table-column prop="projectStatus" label="项目建设阶段">
......@@ -183,6 +191,22 @@ export default {
}else {
this.$set( item,'postEvalState','已提交')
}
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
} else {
this.$set(item, "batchStateText", "未确认");
}
if (item.reviewStatus == "0") {
this.$set(item, "reviewStatusText", "无问题");
} else if (item.reviewStatus == "1") {
this.$set(item, "reviewStatusText", "需整改");
} else if (item.reviewStatus == "2") {
this.$set(item, "reviewStatusText", "已整改");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1;
......
......@@ -24,14 +24,14 @@
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="0"></el-option>
<el-option label="已发起" value="1"></el-option>
<el-option label="已撤回" value="2"></el-option>
</el-select>
</el-form-item>
......@@ -92,7 +92,7 @@
</el-table-column>
<el-table-column
prop="postEvalStateText"
label="批次下发状态"
label="后评估批次状态"
width="auto"
>
</el-table-column>
......@@ -714,13 +714,13 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) {
this.$set(item, "postEvalStateText", "未下发");
this.$set(item, "postEvalStateText", "未发起");
} else if (item.postEvalState == "0") {
this.$set(item, "postEvalStateText", "未下发");
this.$set(item, "postEvalStateText", "未发起");
} else if (item.postEvalState == "2") {
this.$set(item, "postEvalStateText", "已撤回");
} else {
this.$set(item, "postEvalStateText", "已下发");
this.$set(item, "postEvalStateText", "已发起");
}
});
this.total = res.data.total * 1;
......@@ -952,13 +952,13 @@ export default {
},
//点击编辑
async edit() {
//只能选择编辑未下发 待增加
//只能选择编辑未发起 待增加
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalStateText == "已下发") {
this.$message("不能编辑已下发的项目");
if (this.checkedList[0].postEvalStateText == "已发起") {
this.$message("不能编辑已发起的项目");
return;
}
this.addtableData = [];
......@@ -1015,13 +1015,13 @@ export default {
},
//点击下发
async sendMsg() {
//只能选择未下发的 这块需要加一下
//只能选择未发起的 这块需要加一下
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalStateText == "已下发") {
this.$message("该项目已下发");
if (this.checkedList[0].postEvalStateText == "已发起") {
this.$message("该项目已发起");
return;
}
let res = await sendEvalBatchInfo(this.checkedList[0]);
......@@ -1040,13 +1040,13 @@ export default {
},
//点击撤回
async withdraw() {
//只能选择已下发未确认的 这块需要加一下
//只能选择已发起未确认的 这块需要加一下
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalStateText == "未下发") {
this.$message("该项目未下发");
if (this.checkedList[0].postEvalStateText == "未发起") {
this.$message("该项目未发起");
return;
}
if (this.checkedList[0].postEvalStateText == "已撤回") {
......
......@@ -310,21 +310,24 @@ export default {
Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => {
console.log(res[0], res[1], "777777");
this.urlList = res[0].data;
if (res[1].data) {
this.questionList = res[1].data.records;
let counterNum = 0;
this.questionList.forEach(async (item) => {
// let promiseArray = []
// let p = new Promise((resolve, reject) => {
// })
if (item.isProblem == 0) {
console.log("未发现问题");
this.$set(item, "checked", true);
this.changeChecked(item);
}
let respon = await selWtmx({ qid: item.qid });
let paramsFX = {
batchId: this.clqparams.batchId,
projectId: this.clqparams.projectId,
projectStage: item.questionId,
};
let responfx = await selZnfx(paramsFX);
counterNum++
if (respon.data.records && respon.data.records.length > 0) {
respon.data.records.forEach(async (itemImg) => {
if (itemImg.url) {
......@@ -354,11 +357,7 @@ export default {
},
]);
}
if (item.isProblem == 0) {
console.log("未发现问题");
this.$set(item, "checked", true);
this.changeChecked(item);
}
if (responfx.data.records && responfx.data.records.length > 0) {
let znfxList = responfx.data.records.filter((item) => {
if (item.checkDesc) {
......@@ -375,7 +374,13 @@ export default {
this.$set(item, "znfxList", []);
this.$set(item, "fzfxList", []);
}
});
if(counterNum==this.questionList.length){
setTimeout(() => {
this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList));
console.log(this.questionList, this.oldQuestionList, "总列表");
}, 300);
}
})
}
if (this.urlList.length <= 0) {
......@@ -390,10 +395,10 @@ export default {
this.iframeUrl = "/pdf/web/viewer.html?file=" + resUrl.msg;
}
setTimeout(() => {
this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList));
console.log(this.questionList, this.oldQuestionList, "总列表");
}, 1000);
// setTimeout(() => {
// this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList));
// console.log(this.questionList, this.oldQuestionList, "总列表");
// }, 1000);
});
},
async handleClick(tab) {
......@@ -565,7 +570,6 @@ export default {
// list.fileId= response.data.fileId
this.$set(list, "url", response.data.downLoadUrl);
this.$set(list, "fileId", response.data.fileId);
console.log(this.questionList, "总列表");
this.$message("上传成功");
} else {
this.$message("上传失败");
......
......@@ -24,15 +24,16 @@
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="3"></el-option>
<el-option label="执行中" value="3"></el-option>
<el-option label="未确认" value="1"></el-option>
<el-option label="已撤回" value="4"></el-option>
<el-option label="已完成" value="5"></el-option>
</el-select>
</el-form-item>
<el-form-item class="button">
......@@ -86,12 +87,16 @@
</el-table-column>
<el-table-column
prop="postEvalStateText"
label="批次确认状态"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column prop="batchName" label="评估项目" width="auto">
<el-table-column prop="creator" label="创建人" width="auto">
</el-table-column>
<el-table-column prop="createTime" label="创建时间" width="auto">
</el-table-column>
<!-- <el-table-column prop="batchName" label="评估项目" width="auto">
</el-table-column> -->
<!-- <el-table-column prop="prjsOfExpert" label="已选择数量" width="auto">
</el-table-column> -->
</el-table>
......@@ -693,9 +698,11 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.postEvalState == "3") {
this.$set(item, "postEvalStateText", "已确认");
this.$set(item, "postEvalStateText", "执行中");
} else if (item.postEvalState == "4") {
this.$set(item, "postEvalStateText", "已撤回");
} else if (item.postEvalState == "5") {
this.$set(item, "postEvalStateText", "已完成");
} else {
this.$set(item, "postEvalStateText", "未确认");
}
......@@ -742,8 +749,8 @@ export default {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalStateText == "已确认") {
this.$message("该项目已确认");
if (this.checkedList[0].postEvalStateText == "执行中") {
this.$message("该项目已在执行中");
return;
}
this.ruleFormdialogBJ = this.checkedList[0];
......
......@@ -120,8 +120,16 @@
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称" width="auto">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column prop="projectName" label="评估项目名称" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="reviewText" label="项目审核状态">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式" width="auto">
</el-table-column>
<!-- <el-table-column
......@@ -156,12 +164,12 @@
>
</el-table-column>
<el-table-column
prop="postEvalState"
label="整改复核状态"
prop="reviewStatusText"
label="问题整改状态"
width="auto"
>
</el-table-column>
<el-table-column prop="reviewDate" label="评估日期" width="auto">
<el-table-column prop="planReviewDate" label="评估日期" width="auto">
</el-table-column>
</el-table>
</div>
......@@ -511,15 +519,32 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.reviewStatus == "5") {
this.$set(item, "postEvalState", "整改提交");
} else if (item.reviewStatus == "6"){
this.$set(item, "postEvalState", "整改未完成");
}else{
this.$set(item, "postEvalState", "整改已完成");
if (item.rectificationStatus == "0") {
this.$set(item, "reviewStatusText", "问题未整改");
} else if (item.rectificationStatus == "1") {
this.$set(item, "reviewStatusText", "已整改");
} else if (item.rectificationStatus== "2") {
this.$set(item, "reviewStatusText", "整改不合格");
} else if (item.rectificationStatus== "3") {
this.$set(item, "reviewStatusText", "整改已完成");
}
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
}
if (item.reviewStatus == "0") {
this.$set(item, "reviewText", "无问题");
} else if (item.reviewStatus == "1") {
this.$set(item, "reviewText", "需整改");
} else if (item.reviewStatus == "2") {
this.$set(item, "reviewText", "已整改");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
}
},
......
......@@ -73,7 +73,12 @@
</template></el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column
prop="batchStateText"
label="后评估批次状态"
width="auto"
>
</el-table-column>
<el-table-column prop="projectName" label="评估项目名称" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
......@@ -85,6 +90,7 @@
</el-table-column>
<el-table-column prop="expertName" label="评审专家名单">
</el-table-column>
<el-table-column prop="postEvalStateText" label="提交评估材料">
</el-table-column>
</el-table>
......@@ -324,6 +330,15 @@ export default {
} else if (item.postEvalState >=1) {
this.$set(item, "postEvalStateText", "已上传");
}
if (item.batchState == "3") {
this.$set(item, "batchStateText", "执行中");
} else if (item.batchState == "4") {
this.$set(item, "batchStateText", "已撤回");
} else if (item.batchState == "5") {
this.$set(item, "batchStateText", "已完成");
} else {
this.$set(item, "batchStateText", "未确认");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!