From 76014fbd942ec5aa71b23fb0e63bf0f41f5a94a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Sun, 21 Jan 2024 16:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/project/projectChecking/index.vue | 151 ++++++++++++++---- .../projectChecking/projectCheckingDrawer.vue | 109 ++++++++++--- .../src/views/project/surProject/index.vue | 2 +- .../statistics/statisticsProject/index.vue | 2 +- .../statistics/statisticsProjectJl/index.vue | 2 +- .../emergencyDrill/emergencyDrillDrawer.vue | 41 +++-- .../src/views/work/emergencyDrill/index.vue | 52 +++--- ruoyi-ui/src/views/work/workTrain/index.vue | 50 +++--- .../views/work/workTrain/workTrainDrawer.vue | 53 +++--- .../project/SurProjectCheckingMapper.xml | 8 +- .../resources/mapper/work/WorkTrainMapper.xml | 9 +- 11 files changed, 332 insertions(+), 147 deletions(-) diff --git a/ruoyi-ui/src/views/project/projectChecking/index.vue b/ruoyi-ui/src/views/project/projectChecking/index.vue index 6f356a04..c1e1e49c 100644 --- a/ruoyi-ui/src/views/project/projectChecking/index.vue +++ b/ruoyi-ui/src/views/project/projectChecking/index.vue @@ -24,7 +24,35 @@ @keyup.enter.native="handleQuery" /> - + + + + + + + + + + - - - + @@ -249,13 +298,6 @@ - 处理审批 修改 - + - + + + + + + + + + + + - + @@ -439,7 +517,13 @@ export default { ElImageViewer, approveCheckingDrawer, }, - dicts: ["sys_common_isdel","project_check_status", "project_checking_result"], + dicts: [ + "sys_common_isdel", + "project_check_status", + "project_checking_result", + "project_checking_data_type_lvl1", + "project_checking_data_type_lvl2", + ], data() { return { showViewer: false, @@ -484,7 +568,9 @@ export default { isDel: null, projectName: null, deptName: null, - approveStatus:null, + approveStatus: null, + dataTypeLvl1: null, + dataTypeLvl2: null, activeName: "jxz", }, tabs: { @@ -497,6 +583,8 @@ export default { // 表单校验 rules: { imageUrls: [{ required: true, message: "请上传验收图片", trigger: "blur" }], + dataTypeLvl1: [{ required: true, message: "请选择验收类型", trigger: "blur" }], + dataTypeLvl2: [{ required: true, message: "请选择类型分类", trigger: "blur" }], qualityUser: [{ required: true, message: "请选择质量专员", trigger: "blur" }], superviseUser: [{ required: true, message: "请选择监理专员", trigger: "blur" }], checkWorkingPosition: [ @@ -511,7 +599,7 @@ export default { checkResult: [{ required: false, message: "请选择验收结果", trigger: "blur" }], }, deptUserData: [], - deptUserData2:[], + deptUserData2: [], previewList: [], }; }, @@ -519,6 +607,15 @@ export default { this.getList(); }, methods: { + findUpdateData(val) { + // this.$store.getters.userId==1 + // val != "4" + if (true) { + return true; + } else { + return false; + } + }, getImageUrl(url) { return process.env.VUE_APP_BASE_API + url + ".min.jpg"; }, @@ -640,13 +737,13 @@ export default { }) .then((d) => { this.deptUserData2 = d.data; - }); + }); }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => { if (valid) { - this.form.approveStatus="1"; + this.form.approveStatus = "1"; if (this.form.id != null) { updateProjectChecking(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -716,15 +813,15 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="举牌验收"; - row.logType="3"; + row.title = "举牌验收"; + row.logType = "3"; this.$refs.indexDrawer.show(row); }, /** 处理审批 */ - handleAudit(row){ - row.typeName="举牌验收"; + handleAudit(row) { + row.typeName = "举牌验收"; this.$refs.approveCheckingDrawer.show(row); - } + }, }, }; diff --git a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue index e8982101..9a3f1471 100644 --- a/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue +++ b/ruoyi-ui/src/views/project/projectChecking/projectCheckingDrawer.vue @@ -71,17 +71,19 @@ - + @@ -93,11 +95,27 @@ > + + + + + + @@ -105,7 +123,6 @@ label="验收描述" align="left" prop="intro" - width="220" show-overflow-tooltip /> @@ -151,9 +168,12 @@ /> --> - + - + 审批日志 修改 - + + + + + + + + + + + { this.nodes = d.rows; @@ -562,7 +629,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { - this.form.approveStatus="1"; + this.form.approveStatus = "1"; if (this.form.id != null) { updateProjectChecking(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -634,10 +701,10 @@ export default { }, /** 审批日志 */ handleAuditinfo(row) { - row.title="举牌验收"; - row.logType="3"; + row.title = "举牌验收"; + row.logType = "3"; this.$refs.indexDrawer.show(row); - } + }, }, }; diff --git a/ruoyi-ui/src/views/project/surProject/index.vue b/ruoyi-ui/src/views/project/surProject/index.vue index 0e43fefa..1829932e 100644 --- a/ruoyi-ui/src/views/project/surProject/index.vue +++ b/ruoyi-ui/src/views/project/surProject/index.vue @@ -409,7 +409,7 @@ command="handleWorkTrain" icon="el-icon-notebook-2" v-hasPermi="['work:workTrain:list']" - >项目专项培训项目教育培训 - + diff --git a/ruoyi-ui/src/views/statistics/statisticsProjectJl/index.vue b/ruoyi-ui/src/views/statistics/statisticsProjectJl/index.vue index a682be44..b6ab05fe 100644 --- a/ruoyi-ui/src/views/statistics/statisticsProjectJl/index.vue +++ b/ruoyi-ui/src/views/statistics/statisticsProjectJl/index.vue @@ -105,7 +105,7 @@ - + diff --git a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue index 3ab226bf..d8bb6949 100644 --- a/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue +++ b/ruoyi-ui/src/views/work/emergencyDrill/emergencyDrillDrawer.vue @@ -47,7 +47,8 @@ @@ -62,15 +63,13 @@ @@ -78,7 +77,6 @@ label="演练标题" align="center" prop="trainTitle" - width="220" show-overflow-tooltip /> @@ -167,7 +165,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" > - + - + - + type="number" + placeholder="请输入参与人数" + > + 人 + - + @@ -139,11 +141,11 @@ > - + @@ -230,7 +232,14 @@ /> - + - + - + type="number" + placeholder="请输入参与人数" + > + 人 + - + @@ -139,11 +141,11 @@ > - + @@ -230,20 +232,28 @@ /> - + - + - + > + 人 + - {{ drawerTitle + " 【专项培训管理】" }} + {{ drawerTitle + " 【教育培训管理】" }} @@ -62,15 +63,13 @@ @@ -78,7 +77,6 @@ label="培训标题" align="center" prop="trainTitle" - width="220" show-overflow-tooltip /> @@ -167,7 +165,7 @@ :close-on-click-modal="false" :close-on-press-escape="false" > - + - + - + type="number" + placeholder="请输入参与人数" + > + 人 + - select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, sp.projectName, sd.dept_name from sur_project_checking spc + select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, spc.data_type_lvl1, spc.data_type_lvl2, sp.projectName, sd.dept_name from sur_project_checking spc left join sur_project sp on spc.project_id = sp.id left join sys_dept sd on sd.dept_id = spc.dept_id - select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, sp.projectName, sd.dept_name from sur_project_checking spc + select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, spc.data_type_lvl1, spc.data_type_lvl2, sp.projectName, sd.dept_name from sur_project_checking spc left join sur_project sp on spc.project_id = sp.id left join sys_dept sd on sd.dept_id = spc.dept_id @@ -57,6 +57,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and sd.dept_name like concat('%', #{deptName}, '%') and spc.group_dept_id = #{groupDeptId} + and spc.data_type_lvl1 = #{dataTypeLvl1} + and spc.data_type_lvl2 = #{dataTypeLvl2} and spc.check_type = #{checkType} and spc.approve_status = #{approveStatus} and spc.working_position_type = #{workingPositionType} @@ -199,7 +201,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, sp.projectName, sd.dept_name from sur_project_checking spc + select spc.id, spc.project_id, spc.dept_id, spc.group_dept_id, spc.check_type, spc.main_image, spc.image_urls, spc.working_position_type, spc.check_working_position, spc.checking_num, spc.check_result, spc.intro, spc.quality_user, spc.quality_user_name, spc.supervise_user, spc.supervise_user_name, spc.group_dept_user, spc.group_dept_user_name, spc.checking_date, spc.checking_files, spc.is_del, spc.create_by, spc.create_time, spc.update_by, spc.update_time, spc.remark, spc.approve_status, spc.data_type_lvl1, spc.data_type_lvl2, sp.projectName, sd.dept_name from sur_project_checking spc left join sur_project sp on spc.project_id = sp.id left join sys_dept sd on sd.dept_id = spc.dept_id where spc.id = #{id} diff --git a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml index a9bdde08..6c5635dc 100644 --- a/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml +++ b/yanzhu-jh/src/main/resources/mapper/work/WorkTrainMapper.xml @@ -40,11 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, project_id, project_name, main_image, train_type, train_title,train_nature, train_participants, begin_date, end_date, train_content, train_file, is_del, create_by, create_time, update_by, update_time, remark from work_train + select id, project_id, project_name, main_image, train_type, train_title,train_nature, train_participants, begin_date, end_date, train_content, train_file, is_del, create_by, create_time, update_by, update_time, remark, data_type from work_train - select wt.id, wt.project_id, wt.project_name, wt.main_image, wt.train_type, wt.train_title, wt.train_nature, wt.train_participants, wt.begin_date, wt.end_date, wt.train_content, wt.train_file, wt.is_del, wt.create_by, wt.create_time, wt.update_by, wt.update_time, wt.remark, group_concat(sd.dept_id) as trainDeptIds, group_concat(sd.dept_name) as trainDeptNames + select wt.id, wt.project_id, wt.project_name, wt.main_image, wt.train_type, wt.train_title, wt.train_nature, wt.train_participants, wt.begin_date, wt.end_date, wt.train_content, wt.train_file, wt.is_del, wt.create_by, wt.create_time, wt.update_by, wt.update_time, wt.remark, wt.data_type, group_concat(sd.dept_id) as trainDeptIds, group_concat(sd.dept_name) as trainDeptNames from work_train wt left join work_train_dept wtd on wtd.train_id = wt.id left join sys_dept sd on sd.dept_id = wtd.dept_id @@ -57,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and wt.project_id = #{projectId} and wtd2.dept_id = #{deptId} + and wt.data_type = #{dataType} and wt.project_name like concat('%', #{projectName}, '%') and train_type = #{trainType} and train_title like concat('%', #{trainTitle}, '%') @@ -123,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select a.id, a.project_id, a.project_name, a.main_image, a.train_type, a.train_title, a.train_nature, a.train_participants, a.begin_date, a.end_date, a.train_content, a.train_file, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, + select a.id, a.project_id, a.project_name, a.main_image, a.train_type, a.train_title, a.train_nature, a.train_participants, a.begin_date, a.end_date, a.train_content, a.train_file, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.data_type, b.train_id as sub_train_id, b.dept_id as sub_dept_id, b.is_main as sub_is_main from work_train a left join work_train_dept b on b.train_id = a.id and b.is_main ='N' @@ -131,7 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select a.id, a.project_id, a.project_name, a.main_image, a.train_type, a.train_title, a.train_nature, a.train_participants, a.begin_date, a.end_date, a.train_content, a.train_file, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, + select a.id, a.project_id, a.project_name, a.main_image, a.train_type, a.train_title, a.train_nature, a.train_participants, a.begin_date, a.end_date, a.train_content, a.train_file, a.is_del, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.data_type, b.train_id as sub_train_id, b.dept_id as sub_dept_id, b.is_main as sub_is_main, d.dept_name as sub_dept_name from work_train a left join work_train_dept b on b.train_id = a.id