diff --git a/ruoyi-ui/src/views/project/checkDetection/index.vue b/ruoyi-ui/src/views/project/checkDetection/index.vue index 7a9a7864..d1475829 100644 --- a/ruoyi-ui/src/views/project/checkDetection/index.vue +++ b/ruoyi-ui/src/views/project/checkDetection/index.vue @@ -1,37 +1,22 @@ - - - + + + + + + - - + + + + + - + - + - + - - + + - + - + - + - 搜索 + 搜索 重置 @@ -165,80 +116,35 @@ - - + + {{ scope.row.projectName }} - + - + - - - + + + 已提供 未提供 - + {{ scope.row.witnessUserName }} {{ scope.row.witnessUser }} - + {{ parseTime(scope.row.checkTime, "{y}-{m}-{d}") }} @@ -254,17 +160,9 @@ --> - - + + 待登记检测结果 @@ -278,132 +176,57 @@ - {{ parseTime(scope.row.checkTime, "{y}-{m}-{d}") }} + {{ parseTime(scope.row.updateTime, "{y}-{m}-{d}") }} - 下载检测报告 + 下载检测报告 - + - 登记检测结果 - 审批日志 - 处理审批 - 修改 - 删除 + 登记检测结果 + 审批日志 + 处理审批 + 修改 + 删除 - + - + - + - + - - + + @@ -435,40 +258,20 @@ - - + + - - - + + + @@ -479,29 +282,17 @@ - + - + - + @@ -510,13 +301,8 @@ - + @@ -537,89 +323,37 @@ - - + + - + - + - - + + - + - + - + - {{ dict.label }} + {{ dict.label }} - + - + @@ -753,12 +484,45 @@ export default { jxz: "进行中(0)", ywc: "已完成(0)", }, + projectOptions:[], + depts:[], }; }, created() { this.getList(); + this.$api.publics.getMyProjectList({}).then((response) => { + this.projectOptions = response.rows; + }); }, methods: { + doQuerySub() { + let tmps = this.prjDept2 && this.prjDept2[this.queryParams.projectId] ? this.prjDept2[this.queryParams.projectId] || [] : []; + if (tmps.length > 0) { + this.depts = tmps; + if (tmps.length == 1) { + this.queryParams.deptId = tmps[0].deptId; + } else { + this.queryParams.deptId = ''; + } + return; + } + this.$api.publics.queryUnitList({ + projectId: this.queryParams.projectId, + unitTypes: "2".split(","), + }).then((d) => { + let objs = d.rows || []; + if (!this.prjDept2) { + this.prjDept2 = {}; + } + this.prjDept2[this.queryParams.projectId] = objs; + this.depts = objs; + if (objs.length == 1) { + this.queryParams.deptId = objs[0].deptId; + } else { + this.queryParams.deptId = ''; + } + }); + }, doDown(row) { this.files = row.detectionFile.split(","); this.files.forEach((item) => { @@ -946,7 +710,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -986,38 +750,47 @@ export default { .prj-checking-detection-dlg { .el-dialog__body { padding: 0px 10px; + .el-form-item { margin-bottom: 16px; + &.mg-b-8 { margin-bottom: 8px; } + &.img-1 { .el-upload--picture-card { display: none; } + .el-upload__tip { display: none; } } + .upload-file { .upload-file-uploader { display: flex; align-items: center; margin-bottom: 0px; line-height: 30px; + .el-upload__tip { margin-left: 8px; } } } + .el-form-item__error { z-index: 9; margin-top: -4px; } + .upload-file-list { max-height: 120px; overflow-y: auto; padding-right: 30px; + .el-upload-list__item { margin-bottom: 0px !important; } diff --git a/ruoyi-ui/src/views/project/materialSeal/index.vue b/ruoyi-ui/src/views/project/materialSeal/index.vue index 772278fc..484b1d40 100644 --- a/ruoyi-ui/src/views/project/materialSeal/index.vue +++ b/ruoyi-ui/src/views/project/materialSeal/index.vue @@ -1,71 +1,35 @@ - - - + + + + + + - - + + + + + - + - + - + - + - + - - + + - + - 搜索 + 搜索 重置 - - - 下载会签单 + 下载会签单 - - 下载变更单 + v-hasPermi="['project:materialSeal:list']">下载变更单 - @@ -289,77 +174,32 @@ {{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }} - + - 审批日志 - 处理审批 - 修改 - 删除 + 审批日志 + 处理审批 + 修改 + 删除 - + - + - + - + @@ -371,67 +211,33 @@ - + - + - + - - - + + + - + - + @@ -465,7 +271,7 @@ export default { ElImageViewer, approveMaterialSealDrawer, }, - dicts: ["sys_common_isdel","project_check_status","project_checking_result"], + dicts: ["sys_common_isdel", "project_check_status", "project_checking_result"], data() { return { showViewer: false, @@ -504,9 +310,9 @@ export default { useBrand: null, sealDate: null, isDel: null, - approveStatus:null, - materialResult:null, - witnessUser:null, + approveStatus: null, + materialResult: null, + witnessUser: null, activeName: "jxz", }, tabs: { @@ -547,12 +353,45 @@ export default { previewList: [], deptUserData: [], isOnly: false, + projectOptions:[], + depts:[], }; }, created() { this.getList(); + this.$api.publics.getMyProjectList({}).then((response) => { + this.projectOptions = response.rows; + }); }, methods: { + doQuerySub() { + let tmps = this.prjDept2 && this.prjDept2[this.queryParams.projectId] ? this.prjDept2[this.queryParams.projectId] || [] : []; + if (tmps.length > 0) { + this.depts = tmps; + if (tmps.length == 1) { + this.queryParams.deptId = tmps[0].deptId; + } else { + this.queryParams.deptId = ''; + } + return; + } + this.$api.publics.queryUnitList({ + projectId: this.queryParams.projectId, + unitTypes: "2".split(","), + }).then((d) => { + let objs = d.rows || []; + if (!this.prjDept2) { + this.prjDept2 = {}; + } + this.prjDept2[this.queryParams.projectId] = objs; + this.depts = objs; + if (objs.length == 1) { + this.queryParams.deptId = objs[0].deptId; + } else { + this.queryParams.deptId = ''; + } + }); + }, fileInputSign(files) { let fileUrls = null; if (files.length > 0) { @@ -703,7 +542,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { - this.form.approveStatus="1"; + this.form.approveStatus = "1"; if (this.form.id != null) { updateMaterialSeal(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -732,7 +571,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { @@ -770,13 +609,13 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="材料封样"; - row.logType="4"; + row.title = "材料封样"; + row.logType = "4"; this.$refs.indexDrawer.show(row); }, /** 处理审批 */ - handleAudit(row){ - row.typeName="材料封样"; + handleAudit(row) { + row.typeName = "材料封样"; this.$refs.approveMaterialSealDrawer.show(row); } }, diff --git a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue index 2bfe212f..95b29cd7 100644 --- a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue +++ b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue @@ -1,52 +1,27 @@ - + {{ title + " 【处理审批】" }} - + {{ dataInfo.projectName }} - + - + - + @@ -86,23 +61,11 @@ {{ parseTime(dataInfo.checkingDate, "{y}-{m}-{d}") }} - {{ dict.label }} + {{ dict.label }} - + 确 定 @@ -110,12 +73,7 @@ - + @@ -161,7 +119,7 @@ export default { }; }, computed: {}, - mounted() {}, + mounted() { }, methods: { getImageUrl(url) { return process.env.VUE_APP_BASE_API + url + ".min.jpg"; diff --git a/ruoyi-ui/src/views/project/projectChecking/index.vue b/ruoyi-ui/src/views/project/projectChecking/index.vue index c16e47e6..20ec28b6 100644 --- a/ruoyi-ui/src/views/project/projectChecking/index.vue +++ b/ruoyi-ui/src/views/project/projectChecking/index.vue @@ -1,92 +1,45 @@ - - - + + + + + + - - + + + + + - - + + - - + + - + - + - + - + - - + + - 搜索 + 搜索 重置 @@ -176,38 +119,15 @@ - - + + - - + + - + - + - - + + + + + - - - - + - - + + {{ scope.row.qualityUserName }} {{ scope.row.qualityUser }} - + {{ scope.row.superviseUserName }} {{ scope.row.superviseUser }} - + {{ parseTime(scope.row.checkingDate, "{y}-{m}-{d}") }} @@ -325,10 +193,7 @@ --> - + @@ -341,196 +206,82 @@ {{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }} - + - 下载附件 - 审批日志 - 处理审批 - 修改 - 删除 + 下载附件 + 审批日志 + 处理审批 + 修改 + 删除 - + - + - - + + - - + + - - - + + + - - - + + + - + - - - + + - {{ dict.label }} + {{ dict.label }} @@ -652,18 +403,51 @@ export default { deptUserData: [], deptUserData2: [], previewList: [], + projectOptions:[], + depts:[], }; }, created() { this.getList(); + this.$api.publics.getMyProjectList({}).then((response) => { + this.projectOptions = response.rows; + }); }, methods: { - setDataTypeLvl1(row, val){ - row.dataTypeLvl2=null; - updateProjectChecking({id:row.id,dataTypeLvl1:val,dataTypeLvl2:null}); + doQuerySub() { + let tmps = this.prjDept2 && this.prjDept2[this.queryParams.projectId] ? this.prjDept2[this.queryParams.projectId] || [] : []; + if (tmps.length > 0) { + this.depts = tmps; + if (tmps.length == 1) { + this.queryParams.deptId = tmps[0].deptId; + } else { + this.queryParams.deptId = ''; + } + return; + } + this.$api.publics.queryUnitList({ + projectId: this.queryParams.projectId, + unitTypes: "2".split(","), + }).then((d) => { + let objs = d.rows || []; + if (!this.prjDept2) { + this.prjDept2 = {}; + } + this.prjDept2[this.queryParams.projectId] = objs; + this.depts = objs; + if (objs.length == 1) { + this.queryParams.deptId = objs[0].deptId; + } else { + this.queryParams.deptId = ''; + } + }); }, - setDataTypeLvl2(row, val){ - updateProjectChecking({id:row.id,dataTypeLvl2:val}); + setDataTypeLvl1(row, val) { + row.dataTypeLvl2 = null; + updateProjectChecking({ id: row.id, dataTypeLvl1: val, dataTypeLvl2: null }); + }, + setDataTypeLvl2(row, val) { + updateProjectChecking({ id: row.id, dataTypeLvl2: val }); }, getImageUrl(url) { return process.env.VUE_APP_BASE_API + url + ".min.jpg"; @@ -821,7 +605,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() { diff --git a/ruoyi-ui/src/views/project/projectFunVerify/index.vue b/ruoyi-ui/src/views/project/projectFunVerify/index.vue index ef300042..f037b03d 100644 --- a/ruoyi-ui/src/views/project/projectFunVerify/index.vue +++ b/ruoyi-ui/src/views/project/projectFunVerify/index.vue @@ -1,88 +1,43 @@ - - - + + + + + + - - + + + + + - - + + - + - + - + - - + + - 搜索 + 搜索 重置 @@ -139,95 +94,37 @@ - - + + - - + + - + - + - + - - - + + + {{ scope.row.qualityUserName }} {{ scope.row.qualityUser }} - + {{ scope.row.superviseUserName }} {{ scope.row.superviseUser }} - + {{ parseTime(scope.row.checkDate, "{y}-{m}-{d}") }} @@ -242,10 +139,7 @@ --> - + @@ -258,184 +152,82 @@ {{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }} - + - 下载附件 - 审批日志 - 处理审批 - 修改 - 删除 + 下载附件 + 审批日志 + 处理审批 + 修改 + 删除 - + - + - - - - - + + + + + - - + + - - + + - - - + + + - - - + + + - + - - + + - {{ dict.label }} + {{ dict.label }}