Commit 3b193b46 by liangzhen

重置修改

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