Commit 6ed6e0be by liangzhen

更新

1 parent 2ebe0e18
...@@ -321,10 +321,14 @@ export function delProject(params){ ...@@ -321,10 +321,14 @@ export function delProject(params){
} }
//合规检查结果 //合规检查结果
//分页 //合规检查结果分页
export function auditTasksResults(params){ export function auditTasksResults(params){
return post(`${ARCH_EVALUATION}/auditTasksResults/`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/`, params)
} }
//合规检查结果确认分页
export function auditTasksResultsNew(params){
return post(`${ARCH_EVALUATION}/auditTasksResults/ipage`, params)
}
//详情 //详情
export function xqauditTasksResults(params){ export function xqauditTasksResults(params){
return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params)
......
...@@ -1164,15 +1164,12 @@ export default { ...@@ -1164,15 +1164,12 @@ export default {
ruleFormdialogBJ: { ruleFormdialogBJ: {
auditName: "", auditName: "",
auditTime: "", auditTime: "",
auditFrequency: "",
auditType: "", auditType: "",
}, },
dialogAdd: false, dialogAdd: false,
ruleFormdialogAdd: { ruleFormdialogAdd: {
auditName: "", auditName: "",
delivery: true,
auditFrequency: "",
auditTime: "", auditTime: "",
auditType: "", auditType: "",
}, },
...@@ -1301,17 +1298,7 @@ export default { ...@@ -1301,17 +1298,7 @@ export default {
if (res.code == "200") { if (res.code == "200") {
this.tableData = res.data.records; this.tableData = res.data.records;
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.auditFrequency == 0) {
this.$set(item, "auditFrequencyText", "仅一次");
} else if (item.auditFrequency == 1) {
this.$set(item, "auditFrequencyText", "每周");
} else if (item.auditFrequency == 2) {
this.$set(item, "auditFrequencyText", "每月");
} else if (item.auditFrequency == 3) {
this.$set(item, "auditFrequencyText", "每季度");
} else if (item.auditFrequency == 4) {
this.$set(item, "auditFrequencyText", "每年");
}
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<el-input v-model="ruleFormdialogXQ.projectCategory" disabled></el-input> <el-input v-model="ruleFormdialogXQ.projectCategory" disabled></el-input>
</el-form-item> --> </el-form-item> -->
</el-form> </el-form>
<p class="zjBtn">稽核结果</p> <p class="zjBtn">稽核异常项目清单</p>
<div class="setscroll"> <div class="setscroll">
<el-table <el-table
:data="XQtableData" :data="XQtableData"
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,7 @@ export default {
listData: {}, listData: {},
showButton: true, showButton: true,
ruleForm: { ruleForm: {
dates:[]
}, },
ruleFormdialogXQ: {}, ruleFormdialogXQ: {},
currentPageXQ:1, currentPageXQ:1,
......
...@@ -64,11 +64,11 @@ ...@@ -64,11 +64,11 @@
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
<el-option label="待整改" value="0"></el-option> <el-option label="待整改" value="1"></el-option>
<el-option label="待提交" value="1"></el-option> <el-option label="待提交" value="2"></el-option>
<el-option label="已提交" value="2"></el-option> <el-option label="已提交" value="3"></el-option>
<el-option label="被退回" value="3"></el-option> <el-option label="被退回" value="4"></el-option>
<el-option label="整改完成" value="4"></el-option> <el-option label="整改完成" value="5"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -324,20 +324,23 @@ ...@@ -324,20 +324,23 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ruleType" label="申诉证明材料" width="auto"> <el-table-column prop="ruleType" label="申诉证明材料" width="auto">
<template slot-scope="scope"> <template slot-scope="scope" v-if="scope.row.confirmStatus == '1'">
<el-tag type="info" v-if="scope.row.sszmFileName" closable size="small" @close="handleClose(scope)" >{{scope.row.sszmFileName}}</el-tag>
<input <input
v-else
type="file" type="file"
@change="handleFileUpload($event,scope.row,'sszmFileId')" @change="handleFileUpload($event,scope.row,'sszmFileId')"
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 prop="ruleType" label="问题解决佐证材料" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="info" v-if="scope.row.sszzFileName" closable size="small" @close="handleCloseZZ(scope)" >{{scope.row.sszzFileName}}</el-tag>
<input <input
v-else
type="file" type="file"
@change="handleFileUpload($event,scope.row,'sszzFileId')" @change="handleFileUpload($event,scope.row,'sszzFileId')"
v-if="scope.row.confirmStatus == '1'"
/> />
</template> </template>
</el-table-column> </el-table-column>
...@@ -404,6 +407,14 @@ export default { ...@@ -404,6 +407,14 @@ export default {
this.submitForm(); this.submitForm();
}, },
methods: { methods: {
handleClose(fileName){
// console.log('关闭',fileName)
fileName.row.sszmFileName = ""
},
handleCloseZZ(fileName){
// console.log('关闭',fileName)
fileName.row.sszzFileName = ""
},
timeChange(time) { timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
...@@ -426,15 +437,15 @@ export default { ...@@ -426,15 +437,15 @@ export default {
if (res.code == "200") { if (res.code == "200") {
this.tableData = res.data.records; this.tableData = res.data.records;
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.rectificationStatus == 0||!item.rectificationStatus) { if (item.rectificationStatus == 1||!item.rectificationStatus) {
this.$set(item, "rectificationStatusText", "待整改 "); this.$set(item, "rectificationStatusText", "待整改 ");
} else if (item.rectificationStatus == 1) {
this.$set(item, "rectificationStatusText", "待提交");
} else if (item.rectificationStatus == 2) { } else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusText", "提交"); this.$set(item, "rectificationStatusText", "提交");
} else if (item.rectificationStatus == 3) { } else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 4) {
this.$set(item, "rectificationStatusText", "被退回"); this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 2) { } else if (item.rectificationStatus == 5) {
this.$set(item, "rectificationStatusTextt", "整改完成"); this.$set(item, "rectificationStatusTextt", "整改完成");
} }
this.$set( this.$set(
...@@ -560,6 +571,7 @@ export default { ...@@ -560,6 +571,7 @@ export default {
formData.append("file", this.file); formData.append("file", this.file);
ossupload(formData) ossupload(formData)
.then((response) => { .then((response) => {
this.$message("上传成功")
console.log(response); console.log(response);
this.file = []; this.file = [];
this.$set(row, type, response.data.fileId); this.$set(row, type, response.data.fileId);
...@@ -968,4 +980,8 @@ h3 { ...@@ -968,4 +980,8 @@ h3 {
position: relative; position: relative;
overflow: auto; overflow: auto;
} }
/deep/ .el-tag{
white-space: normal;
height:auto;
}
</style> </style>
\ No newline at end of file
...@@ -64,11 +64,9 @@ ...@@ -64,11 +64,9 @@
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
<el-option label="待整改" value="0"></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="2"></el-option> <el-option label="整改完成" value="5"></el-option>
<el-option label="被退回" value="3"></el-option>
<el-option label="整改完成" value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -475,15 +473,15 @@ export default { ...@@ -475,15 +473,15 @@ export default {
this.$set(item, "auditFrequencyText", "每年"); this.$set(item, "auditFrequencyText", "每年");
} }
if (item.rectificationStatus == 0 || !item.rectificationStatus) { if (item.rectificationStatus == 1 || !item.rectificationStatus) {
this.$set(item, "rectificationStatusText", "待整改"); this.$set(item, "rectificationStatusText", "待整改");
} else if (item.rectificationStatus == 1) {
this.$set(item, "rectificationStatusText", "待提交");
} else if (item.rectificationStatus == 2) { } else if (item.rectificationStatus == 2) {
this.$set(item, "rectificationStatusText", "提交"); this.$set(item, "rectificationStatusText", "提交");
} else if (item.rectificationStatus == 3) { } else if (item.rectificationStatus == 3) {
this.$set(item, "rectificationStatusText", "被退回"); this.$set(item, "rectificationStatusText", "已提交");
} else if (item.rectificationStatus == 4) { } else if (item.rectificationStatus == 4) {
this.$set(item, "rectificationStatusText", "被退回");
} else if (item.rectificationStatus == 5) {
this.$set(item, "rectificationStatusText", "整改完成"); this.$set(item, "rectificationStatusText", "整改完成");
} }
this.$set( this.$set(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!