Commit 3b193b46 by liangzhen

重置修改

1 parent 0816a063
<!-- 辅助核验 --> <!-- 辅助核验 -->
<template> <template>
<div class="main"> <div class="main">
<el-form :model="ruleForm" label-width="100px" class="demo-ruleForm"> <el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择"> <el-select v-model="ruleForm.batchYear" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option> <el-option label="2024年" value="2024"></el-option>
...@@ -607,7 +607,7 @@ export default { ...@@ -607,7 +607,7 @@ export default {
} }
}, },
resetForm() { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -289,8 +289,8 @@ export default { ...@@ -289,8 +289,8 @@ export default {
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -181,8 +181,8 @@ export default { ...@@ -181,8 +181,8 @@ export default {
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -254,8 +254,8 @@ ...@@ -254,8 +254,8 @@
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -231,82 +231,13 @@ ...@@ -231,82 +231,13 @@
this.submitForm(); this.submitForm();
}, },
methods: { methods: {
submitForm(formName) { submitForm() {
// this.$refs[formName].validate((valid) => {
// if (valid) {
// alert("submit!");
// } else {
// console.log("error submit!!");
// return false;
// }
// });
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}; };
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm);
console.log(params); 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 = evaluationMaterials(params); let res = evaluationMaterials(params);
if (res.code == "200") { if (res.code == "200") {
...@@ -315,7 +246,7 @@ ...@@ -315,7 +246,7 @@
} }
}, },
resetForm(formName) { resetForm(formName) {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -227,8 +227,8 @@ ...@@ -227,8 +227,8 @@
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -272,8 +272,8 @@ export default { ...@@ -272,8 +272,8 @@ export default {
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -406,8 +406,8 @@ export default { ...@@ -406,8 +406,8 @@ export default {
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-table-column prop="abnormalResults" label="检查异常项"> <el-table-column prop="abnormalResults" label="检查异常项">
</el-table-column> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间"> </el-table-column> <el-table-column prop="auditTime" label="稽核时间"> </el-table-column>
<el-table-column prop="rectificationStatus" label="问题整改状态"> <el-table-column prop="rectificationStatusText" label="问题整改状态">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -409,19 +409,23 @@ export default { ...@@ -409,19 +409,23 @@ export default {
this.$set(item, "auditFrequencyText", "每年"); this.$set(item, "auditFrequencyText", "每年");
} }
if (item.confirmStatus == 0) { if (item.rectificationStatus == 0||!item.rectificationStatus) {
this.$set(item, "confirmStatusText", "未确认"); this.$set(item, "rectificationStatusText", "待整改 ");
} else if (item.confirmStatus == 1) { } else if (item.rectificationStatus == 1) {
this.$set(item, "confirmStatusText", "未下发"); this.$set(item, "rectificationStatusText", "待提交");
} else if (item.confirmStatus == 2) { } else if (item.rectificationStatus == 2) {
this.$set(item, "confirmStatusText", "已下发"); this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusTextt", "整改完成");
} }
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="main"> <div class="main">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
ref="ruleForm" ref="formName"
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
> >
<el-button @click="detailsForm('xf')"> <el-button @click="detailsForm('xf')">
<i class="el-icon-document-remove"></i <i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;整改复核提交</el-button >&nbsp;&nbsp;&nbsp;整改提交</el-button
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-table-column prop="abnormalResults" label="检查异常项"> <el-table-column prop="abnormalResults" label="检查异常项">
</el-table-column> </el-table-column>
<el-table-column prop="auditTime" label="稽核时间"> </el-table-column> <el-table-column prop="auditTime" label="稽核时间"> </el-table-column>
<el-table-column prop="rectificationStatus" label="问题整改复核状态"> <el-table-column prop="rectificationStatusText" label="问题整改状态">
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
</el-pagination> </el-pagination>
<!-- 详情弹窗 --> <!-- 详情弹窗 -->
<el-dialog <el-dialog
title="稽核问题整改核验" title="稽核问题整改"
:visible.sync="dialog" :visible.sync="dialog"
width="90%" width="90%"
:modal-append-to-body="false" :modal-append-to-body="false"
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<input <input
type="file" type="file"
@change="handleFileUpload($event,scope.row,sszmFileId)" @change="handleFileUpload($event,scope.row,'sszmFileId')"
v-if="scope.row.confirmStatus == '1'" v-if="scope.row.confirmStatus == '1'"
/> />
</template> </template>
...@@ -313,14 +313,11 @@ ...@@ -313,14 +313,11 @@
<template slot-scope="scope"> <template slot-scope="scope">
<input <input
type="file" type="file"
@change="handleFileUpload($event,scope.row,sszzFileId)" @change="handleFileUpload($event,scope.row,'sszzFileId')"
v-if="scope.row.confirmStatus == '1'" v-if="scope.row.confirmStatus == '1'"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ruleType" label="问题整改复核" width="auto">
</el-table-column>
</el-table> </el-table>
</div> </div>
<!-- <el-pagination <!-- <el-pagination
...@@ -347,9 +344,9 @@ ...@@ -347,9 +344,9 @@
<script> <script>
import { import {
auditTasksRuleProjectLink, auditTasksRuleProjectLink,
xqRuleProjectLink, zgxqRuleProjectLink,
savaauditRuleProjectLink, savaRuleProjectLink,
tjTasksRuleProjectLink, tjRuleProjectLink,
ossupload, ossupload,
} from "@/api/index"; } from "@/api/index";
export default { export default {
...@@ -412,19 +409,23 @@ export default { ...@@ -412,19 +409,23 @@ export default {
this.$set(item, "auditFrequencyText", "每年"); this.$set(item, "auditFrequencyText", "每年");
} }
if (item.confirmStatus == 0) { if (item.rectificationStatus == 0||!item.rectificationStatus) {
this.$set(item, "confirmStatusText", "未确认"); this.$set(item, "rectificationStatusText", "待整改 ");
} else if (item.confirmStatus == 1) { } else if (item.rectificationStatus == 1) {
this.$set(item, "confirmStatusText", "未下发"); this.$set(item, "rectificationStatusText", "待提交");
} else if (item.confirmStatus == 2) { } else if (item.rectificationStatus == 2) {
this.$set(item, "confirmStatusText", "已下发"); this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusText", "整改完成");
} }
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
resetForm(formName) { resetForm() {
this.$refs[formName].resetFields(); this.$refs.formName.resetFields();
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10; this.pageSize = 10;
this.submitForm(); this.submitForm();
...@@ -441,7 +442,7 @@ export default { ...@@ -441,7 +442,7 @@ export default {
projectId: this.checkedList[0].projectId, projectId: this.checkedList[0].projectId,
auditId: this.checkedList[0].auditId, auditId: this.checkedList[0].auditId,
}; };
let res = await xqRuleProjectLink(params); let res = await zgxqRuleProjectLink(params);
if (res.code == 200) { if (res.code == 200) {
this.ruleFormdialogXQ = this.checkedList[0]; this.ruleFormdialogXQ = this.checkedList[0];
this.XQtableData = res.data.records; this.XQtableData = res.data.records;
...@@ -509,14 +510,11 @@ export default { ...@@ -509,14 +510,11 @@ export default {
//结果确认 //结果确认
async saveXF() { async saveXF() {
console.log(this.XQtableData,'this.XQtableData') console.log(this.XQtableData,'this.XQtableData')
// let res = await jgxqResults(this.XQtableData); let res = await savaRuleProjectLink(this.XQtableData);
}, },
//结果下发 //结果下发
async resaultXF() { async resaultXF() {
// let params = { let res = await tjRuleProjectLink(this.XQtableData);
// auditId: this.checkedList[0].auditId,
// };
let res = await wtxfResults(this.XQtableData);
if (res.code == 200) { if (res.code == 200) {
this.dialogXF = false; this.dialogXF = false;
this.resetForm(); this.resetForm();
...@@ -536,6 +534,7 @@ export default { ...@@ -536,6 +534,7 @@ export default {
console.log(response); console.log(response);
this.file = []; this.file = [];
this.$set(row, type, response.data.fileId); this.$set(row, type, response.data.fileId);
console.log(this.XQtableData,'XQtableDataXQtableData')
}) })
.catch((error) => { .catch((error) => {
console.error(error); console.error(error);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!