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 -}