Commit cbe441f8 by liangzhen

暂存一下

1 parent b495441d
......@@ -722,7 +722,7 @@ export default {
this.dataPretreatmentSS();
}
},
handleFileUploadZG(event, row, id) {
handleFileUpload(event, row, id) {
console.log("来了么");
this.file = event.target.files[0];
this.submitFile(row, id);
......
......@@ -52,16 +52,17 @@
/>
</el-select>
</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="2"></el-option>
<el-option label="已撤回" value="4"></el-option>
<el-option label="已提交" value="3"></el-option>
<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="3"></el-option>
<el-option label="已归档" value="4"></el-option>
</el-select>
</el-form-item>
<el-form-item
......@@ -94,17 +95,17 @@
<el-button @click="inspectNexts()"
><i class="el-icon-tickets"></i> &nbsp;&nbsp;合规性检查评估</el-button
>
<el-button @click="submitNexts()"
<!-- <el-button @click="submitNexts()"
><i class="el-icon-finished"></i> &nbsp;&nbsp;提交问题清单</el-button
>
> -->
<el-button @click="rectificationReview('ruleForm')">
<i class="el-icon-chat-dot-square"></i
>&nbsp;&nbsp;&nbsp;整改复核</el-button
>
<el-button @click="subfinished()">
<!-- <el-button @click="subfinished()">
<i class="el-icon-finished"></i
>&nbsp;&nbsp;&nbsp;归档</el-button
>
> -->
<!-- <el-button @click="withdraw()">
<i class="el-icon-folder-delete"></i>撤回
</el-button> -->
......@@ -548,16 +549,17 @@ export default {
} else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "待评估");
} else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "已评估");
}else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "无需整改");
}else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "需整改");
}else if (item.postEvalState == 5) {
}else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改");
}else if (item.postEvalState == 6) {
}else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档");
}
// else if (item.postEvalState == 5) {
// this.$set(item, "postEvalStateText", "已整改");
// }else if (item.postEvalState == 6) {
// this.$set(item, "postEvalStateText", "已归档");
// }
this.$set(
item,
......@@ -979,8 +981,8 @@ h3 {
.eltable {
box-sizing: border-box;
text-align: center;
width: 150%;
min-width: 150%;
width: 190%;
min-width: 190%;
}
/deep/.el-table__fixed-body-wrapper .el-table__body {
padding-bottom: 6px; // 6px为横向滚动条高度
......
......@@ -190,7 +190,7 @@
</div>
</div>
<p class="Btn">
<span @click="cancel()">取消</span><span @click="save()">保存</span>
<span @click="cancel()">取消</span><span @click="save()">保存</span> <span @click="submitNexts()">提交</span>
</p>
</div>
</template>
......@@ -250,6 +250,42 @@ export default {
this.init(this.clqparams);
},
methods: {
//提交问题清单
async submitNexts() {
// this.$router.push({
// path: "/mainLayout/Compliancefz",
// query: {
// clqparams: JSON.stringify(this.clqparams),
// },
// });
this.$confirm("您确定检查完所有流程并去提交?", "提示", {
confirmButtonText: "是",
cancelButtonText: "继续检查",
distinguishCancelAndClose: true,
type: "warning",
})
.then(() => {
this.save();
this.$router.push({
path: "/mainLayout/Compliancefz",
query: {
clqparams: JSON.stringify(this.clqparams),
},
});
})
.catch((action) => {
});
},
// 放大图片
handlePictureCardPreview(file) {
console.log("点击放大");
......@@ -621,35 +657,35 @@ export default {
// console.log("来了么222222", this.fileList);
// },
},
beforeRouteLeave(to,from,next){
if(JSON.stringify(this.questionList) ==JSON.stringify(this.oldQuestionList)){
console.log('相同么')
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
// beforeRouteLeave(to,from,next){
// if(JSON.stringify(this.questionList) ==JSON.stringify(this.oldQuestionList)){
// console.log('相同么')
// next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
}else{
console.log('不同么')
setTimeout(() => {
this.$confirm("是否保存?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
distinguishCancelAndClose: true,
type: "warning",
}).then(() => {
this.save('leave');
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
})
.catch((action) => {
console.log(action, "actionaction");
if (action === "cancel") {
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
} else {
// next()
}
});
},16)
}
// }else{
// console.log('不同么')
// setTimeout(() => {
// this.$confirm("是否保存?", "提示", {
// confirmButtonText: "是",
// cancelButtonText: "否",
// distinguishCancelAndClose: true,
// type: "warning",
// }).then(() => {
// this.save('leave');
// next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
// })
// .catch((action) => {
// console.log(action, "actionaction");
// if (action === "cancel") {
// next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
// } else {
// // next()
// }
// });
// },16)
// }
}
// }
};
</script>
......
......@@ -52,7 +52,8 @@
</el-table>
</div>
<p class="Btn" v-if="!ishow">
<span @click="cancel()">取消</span><span @click="save('add')">确定</span>
<span @click="cancel()">取消</span>
<!-- <span @click="save('add')">确定</span> -->
<span @click="save('upLoad')">提交</span>
</p>
</div>
......@@ -197,23 +198,28 @@ export default {
console.log(params, "this.clqparams");
// return
if (type == "add") {
console.log(params, "this.zjtableDatathis.zjtableData");
let res = await bcpostEvalQuesInfo(params);
if (res.code == "200") {
this.$router.go(-1);
} else {
this.$message("保存失败");
}
} else {
// if (type == "add") {
// console.log(params, "this.zjtableDatathis.zjtableData");
// let res = await bcpostEvalQuesInfo(params);
// if (res.code == "200") {
// // this.$router.go(-1);
// this.$message("保存成功");
// } else {
// this.$message("保存失败");
// }
// } else {
let res = await tjpostEvalQuesInfo(params);
if (res.code == "200") {
this.$router.go(-1);
// this.$router.go(-1);
this.$router.push({
path: "/mainLayout/auxiliaryInspection",
});
} else {
this.$message("上传失败");
this.$message("提交失败");
}
}
},
// },
},
};
</script>
......
......@@ -452,6 +452,7 @@
v-model="ruleFormZJ.projectYear"
placeholder="请选择"
clearable
multiple
>
<el-option
v-for="(item, index) in yearsList"
......
......@@ -75,13 +75,10 @@
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="3"></el-option> -->
<el-option label="无需整改" value="3"></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="1"></el-option>
<el-option label="需整改" value="2"></el-option>
<el-option label="已整改" value="3"></el-option>
<el-option label="已归档" value="4"></el-option>
</el-select>
</el-form-item>
......@@ -681,14 +678,12 @@ export default {
} else if (item.postEvalState == "0") {
this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "材料已上传");
}else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "无需整改");
}else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "待评估");
} else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "需整改");
}else if (item.postEvalState == 5) {
}else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改");
}else if (item.postEvalState == 6) {
}else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档");
}
// if (item.batchState == "3") {
......@@ -1249,8 +1244,8 @@ h3 {
.eltable {
box-sizing: border-box;
text-align: center;
width: 150%;
min-width: 150%;
width: 190%;
min-width: 190%;
}
/deep/.el-table--scrollable-x .el-table__body-wrapper {
overflow-x: hidden !important;
......
......@@ -71,6 +71,24 @@ export default {
immediate: true,
handler(newParams, oldParams) {
console.log('路又变了',newParams)
if (
this.$route.path == "/mainLayout/Compliancefz" ||
this.$route.path == "/mainLayout/Compliance"
) {
this.activeIndex = "/mainLayout/auxiliaryInspection";
} else if (this.$route.path == "/mainLayout/qrCompliance") {
this.activeIndex = "/mainLayout/confirmChanges";
} else if (this.$route.path == "/mainLayout/Compliancexf") {
if (this.$route.query.fromType == "fzcx") {
this.activeIndex = "/mainLayout/auxiliaryQuery";
} else {
this.activeIndex = "/mainLayout/assitedDistribution";
}
} else {
this.activeIndex = this.$route.path;
}
// this.$refs.kzMenu.activeIndex = this.$route.path;
// this.activeIndex = this.$route.path;
},
},
autho(newVal, oldVal) {
......
......@@ -96,6 +96,9 @@
>
</el-table-column>
<el-table-column prop="abnormalResults" label="检查异常结果">
<template v-slot="scope">
<el-button type="text" size="small" @click="detailsForm(scope.row)">{{scope.row.abnormalResults}}</el-button>
</template>
</el-table-column>
</el-table>
</div>
......@@ -271,11 +274,16 @@ export default {
this.submitForm();
},
//详情
async detailsForm() {
async detailsForm(info) {
if(info){
this.checkedList[0]=info
}else{
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
}
let params = {
current: this.currentPageXQ,
pageSize: this.pageSizeXQ,
......@@ -651,4 +659,7 @@ h3 {
position: relative;
overflow: auto;
}
/deep/.el-button--small{
font-size: 14px;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!