From 211834fd980116ca53f465b2d2ea621c7bc2e5a9 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Fri, 22 May 2026 09:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E6=95=99=E8=82=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/apply/subPages/SE/1trainNotifyEdit.vue | 168 ++++++++++++++----- pages/apply/subPages/SE/2trainRecordEdit.vue | 98 +++++++---- 2 files changed, 189 insertions(+), 77 deletions(-) diff --git a/pages/apply/subPages/SE/1trainNotifyEdit.vue b/pages/apply/subPages/SE/1trainNotifyEdit.vue index 9c5fe2e..520b79e 100644 --- a/pages/apply/subPages/SE/1trainNotifyEdit.vue +++ b/pages/apply/subPages/SE/1trainNotifyEdit.vue @@ -3,66 +3,106 @@ - + - + - - + + - - + + - - + + - - + - - + + + + + + + + + - + - + - - + + - - + + - - + + - + - + - + - + @@ -71,41 +111,56 @@ - - + + - + - - + + 附件 - + - + - + - - + + - - - + + + 提交 @@ -286,12 +341,18 @@ this.model.CREATE_NOTIFY_RECORD = true; this.model.IN_OUT_SHOW = this.enumsData['TrainInOut'][0].name this.model.IN_OUT = this.enumsData['TrainInOut'][0].code + this.model.ISSENDNOTICE = true } }) }, - changeSwitch(e) { - this.model.CREATE_NOTIFY_RECORD = e; + changeSwitch(e, prop) { + if (prop == 'ISSENDNOTICE') { + this.model.ISSENDNOTICE = e; + } else { + this.model.CREATE_NOTIFY_RECORD = e; + } }, + //时间start //显示时间控件 showCheckDate(p) { @@ -317,6 +378,17 @@ defaultDateTime: this.model.TRAIN_END_TIME, name: p.name } + } else if (p.name === 'DT_START_SIGN') { + if (this.model.DT_START_SIGN == null) { + this.model.DT_START_SIGN = uni.$u.timeFormat(new Date(), + 'yyyy-mm-dd hh:MM') + } + this.dateTimePickerInfo = { + showCheckDate: true, + dataIndex: p.dataIndex, + defaultDateTime: this.model.DT_START_SIGN, + name: p.name + } } }, handleCheckDate(e) { @@ -325,12 +397,12 @@ dataIndex } = this.dateTimePickerInfo if (name === 'TRAIN_START_TIME') { - this.model.TRAIN_START_TIME = uni.$u.timeFormat(e.value, - 'yyyy-mm-dd hh:MM') - } - if (name === 'TRAIN_END_TIME') { - this.model.TRAIN_END_TIME = uni.$u.timeFormat(e.value, - 'yyyy-mm-dd hh:MM') + this.model.TRAIN_START_TIME = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + this.model.DT_START_SIGN =uni.$u.timeFormat(new Date(e.value - 5 * 60 * 1000), 'yyyy-mm-dd hh:MM'); + } else if (name === 'TRAIN_END_TIME') { + this.model.TRAIN_END_TIME = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') + } else if (name === 'DT_START_SIGN') { + this.model.DT_START_SIGN = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') } //如果开始结束时间都有 默认处理 培训学时 @@ -338,6 +410,8 @@ this.model.HOURS = ((new Date(this.model.TRAIN_END_TIME).getTime() - new Date(this.model .TRAIN_START_TIME).getTime()) / 1000 / 60 / 45.0).toFixed(1) } + + this.dateTimePickerInfo.showCheckDate = false }, //时间end @@ -569,6 +643,8 @@ extendRule(json, 'ID', 1, this.model.ID) getRequest(json, "/SE/TrainNotify/Get").then(res => { this.model = res + // ISSENDNOTICE + debugger this.model.LEVEL_SHOW = res.LEVEL !== undefined ? this.enumsData['FMDepartmentType'].find( item => item.code === res.LEVEL)?.name : ''; this.model.TRAINTYPE_SHOW = res.TRAINTYPE !== undefined ? this.enumsData['TrainType'].find( diff --git a/pages/apply/subPages/SE/2trainRecordEdit.vue b/pages/apply/subPages/SE/2trainRecordEdit.vue index 241c667..490062e 100644 --- a/pages/apply/subPages/SE/2trainRecordEdit.vue +++ b/pages/apply/subPages/SE/2trainRecordEdit.vue @@ -3,44 +3,61 @@ - + - + - + - + - + - - + + - - + + - + - + - + - + - + @@ -49,45 +66,58 @@ 附件: - + - + - + - - - + + + - - + + - + 附件: - + - + @@ -97,18 +127,24 @@ - - + + - + + 停止签到 + 刷新 提交