保存报告
@@ -451,17 +458,24 @@
align="center"
prop="isOk"
:formatter="isOkFormatter"
- />
+ >
+
+
+ {{ isOkFormatter(scope.row) }}
+
+
+
{{ parseTime(scope.row.uploadTime, "{y}-{m}-{d}") }}
@@ -497,7 +511,6 @@
{
+ if (!this.reportForm.reportAttachment) {
+ callback(new Error("请上传检测报告"));
+ } else {
+ callback();
+ }
+ };
return {
// 遮罩层
loading: true,
@@ -644,7 +664,8 @@ export default {
{ required: true, message: "请输入检测报告名称", trigger: "blur" },
],
reportAttachment: [
- { required: true, message: "请上传检测报告", trigger: "blur" },
+ // { required: true, message: "请上传检测报告", trigger: "change" },
+ { required: true, validator: validateRepoer, trigger: "change" },
],
reportType: [
{ required: true, message: "请选择检测报告类型", trigger: "blur" },
@@ -682,6 +703,9 @@ export default {
});
},
methods: {
+ closeReportDia() {
+ this.fileList = [];
+ },
isOkFormatter(row) {
return this.selectDictLabel(this.whetherOptions, row.isOk);
},
@@ -694,7 +718,7 @@ export default {
viewreport(row) {
this.viewOpen = true;
this.supervision_id = row.id;
- console.log("row.id", row.id);
+ // console.log("row.id", row.id);
},
getTreeData() {
getAreasData().then((items) => {
@@ -825,7 +849,7 @@ export default {
this.reportLoading = true;
// this.queryParams.data.proNo = this.proNo;
// this.queryParams.data.proCode = this.proCode;
- // this.reportQueryParams.data.supervisionId = this.supervision_id;
+ this.reportQueryParams.data.supervisionId = this.supervision_id;
listAttachment(this.reportQueryParams).then((response) => {
// listAttachment({ data: { supervisionId: this.supervision_id } }).then((response) => {
this.attachmentList = response.records;
@@ -836,9 +860,18 @@ export default {
},
submitReportForm() {
let now = new Date();
+ if (this.fileList.length > 0) {
+ this.reportForm.reportAttachment = JSON.stringify(this.fileList);
+ } else {
+ this.reportForm.reportAttachment = "";
+ }
+
+ console.log("reportAttachment", this.reportForm.reportAttachment);
+ // this.$refs.reportForm.validateField("reportAttachment");
this.$refs["reportForm"].validate((valid) => {
if (valid) {
this.reportForm.uploadTime = this.parseTime(now, "{y}-{m}-{d}");
+ this.reportForm.supervisionId = this.supervision_id;
if (this.reportForm.id != null) {
updateAttachment(this.reportForm).then((response) => {
if (response.code === 200) {
@@ -873,7 +906,7 @@ export default {
/** 上次报告按钮操作 */
handleUpdateReport(row) {
this.supervision_id = row.id;
- this.reportForm.supervisionId = row.id;
+ // this.reportForm.supervisionId = row.id;
this.reportTitle = "上传工程质量检测报告";
this.reportOpen = true;
this.getReportList();
@@ -960,7 +993,9 @@ export default {
url: fileList.response.url,
uid: fileList.uid,
});
- this.reportForm.reportAttachment = JSON.stringify(this.fileList);
+ // this.reportForm.reportAttachment = JSON.stringify(this.fileList);
+ // this.$refs.reportForm.validateField("reportAttachment");
+ // this.$refs.uploadItem.clearValidate();
},
// 表格中下载
downloadFile(scope, index) {
@@ -1012,6 +1047,12 @@ export default {
overflow-y: auto;
}
}
+// .reportTitle ::v-deep .el-dialog {
+// margin-top: 2vh !important;
+// height: 950px;
+// overflow-y: auto;
+// }
+
.listTitle {
font-size: 14px;
padding-left: 10px;
@@ -1031,4 +1072,10 @@ export default {
color: #31a08e;
}
}
+.no {
+ color: #f13939;
+}
+.yes {
+ color: #36b29e;
+}
diff --git a/jwtech-admin-page/src/views/building/projectInfo/projectProcess/qualityControl/options/itemDivision/components/itemDivisionManage.vue b/jwtech-admin-page/src/views/building/projectInfo/projectProcess/qualityControl/options/itemDivision/components/itemDivisionManage.vue
index 27aa47eb..b31458fd 100644
--- a/jwtech-admin-page/src/views/building/projectInfo/projectProcess/qualityControl/options/itemDivision/components/itemDivisionManage.vue
+++ b/jwtech-admin-page/src/views/building/projectInfo/projectProcess/qualityControl/options/itemDivision/components/itemDivisionManage.vue
@@ -1,6 +1,6 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
+
+ 整体措施方案
+
+
+ 添加
+
+
+
+
-
-
- 新增
-
-
- 修改
-
-
- 删除
-
-
- 导出
-
-
-
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
-
-
-
+
+
+ 修改
+ 删除
+
+
+
-
-
-
-
+
+ 度汛方案
+
+
+ 添加
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
-
+ /> -->
-
-
+
+
-
+
+
+
-
+
-
+
-
+
+
+
+
+
+ 点击上传
+
+
+ 支持jpg/png/pdf/word/excel文件等,不超过100M
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+ 点击上传
+
+
+ 支持jpg/png/pdf/word/excel文件等,不超过100M
+
+
-
-
+
+
+
+
+
+ 点击上传
+
+
+ 支持jpg/png/pdf/word/excel文件等,不超过100M
+
+