From ee5c0b78f4ac8d7202cece99962f8f27237f5587 Mon Sep 17 00:00:00 2001 From: bjang03 Date: Wed, 8 May 2024 14:09:40 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=B7=A5=E5=BA=8F=E6=8A=A5=E5=B7=A5-?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E4=BA=BA=E5=91=98=E6=97=A0=E6=8A=A5=E5=B7=A5?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mes/workScheduling/processReportForm.vue | 31 ++----------------- .../processReportPeopleCheck.vue | 4 +++ 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/pages/mes/workScheduling/processReportForm.vue b/src/pages/mes/workScheduling/processReportForm.vue index 6a80dbc..b6d211e 100644 --- a/src/pages/mes/workScheduling/processReportForm.vue +++ b/src/pages/mes/workScheduling/processReportForm.vue @@ -64,11 +64,12 @@ import { _confirm, _toast } from "@/utils/common" const { proxy } = getCurrentInstance() let show = ref(false) let dataInput = ref() -function selectReworkTime(datetime){ +function selectReworkTime(datetime: { year: any; month: any; day: any; hour: any; minute: any; second: any; }){ dataInput.value = `${datetime.year}-${datetime.month}-${datetime.day} ${datetime.hour}:${datetime.minute}:${datetime.second}` show.value = false } const isLeader = uni.getStorageSync("isLeader") + let params = { year: true, month: true, @@ -100,7 +101,7 @@ function toCheckPeople(){ url: "./processReportPeopleCheck" }) } -function remove(index){ +function remove(index: number){ if (list.value.length > 1) { _confirm('确定要删除吗?',function(){ list.value.splice(index, 1) @@ -113,32 +114,6 @@ function remove(index){ onShow(() => { list.value = uni.getStorageSync("processReportList") }) -function getDate(type) { - const date = new Date(); - - let year = date.getFullYear(); - let month = date.getMonth() + 1; - let day = date.getDate(); - let hour = date.getHours() - let minute = date.getMinutes() - let second = date.getSeconds() - - if (type === 'start') { - year = year - 10; - } else if (type === 'end') { - year = year + 10; - } - month = month > 9 ? month : '0' + month; - day = day > 9 ? day : '0' + day; - - return `${year}-${month}-${day} ${hour}:${minute}:${second}`; -} -let date = getDate({ - format: true -}) -function bindDateChange(e){ - date = e.detail.value -}