From 25db5488adcf3564ab62b6caf975cfc1c34d12e2 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Fri, 22 May 2026 12:41:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/apply/subPages/SE/2trainRecordEdit.vue | 148 ++++++++++++++----- 1 file changed, 115 insertions(+), 33 deletions(-) diff --git a/pages/apply/subPages/SE/2trainRecordEdit.vue b/pages/apply/subPages/SE/2trainRecordEdit.vue index d2a7c0d..36b1b41 100644 --- a/pages/apply/subPages/SE/2trainRecordEdit.vue +++ b/pages/apply/subPages/SE/2trainRecordEdit.vue @@ -3,44 +3,61 @@ - + - + - + - + - + - - + + - - + + - + - + - + - + - + @@ -49,45 +66,65 @@ 附件: - + - + - + - - - + + + - - + + + + + + + - + 附件: - + - + @@ -97,20 +134,26 @@ - - + + - + - 停止签到 - 取消 + 停止签到 + 刷新 提交 @@ -452,6 +495,45 @@ formIndex: undefined } }, + + + // --SE/TrainRecordUser/Entities + // --SE/SETrainRecord/StopSign + + Refresh() { + let json = initFilter(this.ORG_ID) + extendRule(json, 'RECORD_ID', 1, this.model.ID); + getRequest(json, "/SE/TrainRecordUser/Entities").then(res => { + if (res && res.length > 0) { + this.model.Nav_Users.forEach(e => { + let r = res.find(x => x.ID == e.ID) + if (e.DT_SIGN != r.DT_SIGN) { + e.DT_SIGN = r.DT_SIGN + e.OK = r.OK + e.STATUS = r.STATUS + e.EXAMINATION_RESULTS = r.EXAMINATION_RESULTS + if (e.DT_SIGN != null && e.EXAMINATION_RESULTS == null && this + .model.Nav_Notify && this.model.Nav_Notify.CHECKTYPE == 56) { + //有签到 默认 考核通过 不考试 Nav_Notify.CHECKTYPE 56 + e.EXAMINATION_RESULTS = 1 + } + } + }) + } + }) + }, + StopSign() { + let json = initFilter(this.ORG_ID, this.model.ID) + getRequest(json, "/SE/SETrainRecord/StopSign").then(res => { + if (res) { + uni.$showMsgFunc('操作成功!', () => { + this.loadData(); + }, 'success', 1000) + } else { + uni.navigateBack() + } + }) + }, } }