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 @@ @@ -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 @@ @@ -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 @@ - + - + - + - - + + - - + + - - - + + + - - - + + + - + - - - + + - {{ 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 @@ - + - + - + - - - - - + + + + + - - + + - - + + - - - + + + - - - + + + - + - - + + - {{ dict.label }} + {{ dict.label }}