From 8903e1a476fd1140acbc1a91e187de6d771e4664 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期四, 23 三月 2023 17:56:23 +0800 Subject: [PATCH] 1.待领取列表增加字段 矿、煤场、煤种、客户名称、发运日期、日计划编号(完成) 2.多次抢单弹框再次确认是否抢单(完成) 3.待预约提煤单列表显示样式(完成) --- utils/util.js | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/utils/util.js b/utils/util.js index f5e9768..f9b67d7 100644 --- a/utils/util.js +++ b/utils/util.js @@ -1,7 +1,16 @@ -export function todayDate(){ +export function todayDate(arg){ let date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1; let day = date.getDate() - return year + '-' + month + '-' + day + let hour = date.getHours() + let minutes = date.getMinutes() + let seconds = date.getSeconds() + console.log(arg,'鏃堕棿'); + if(arg == 'hms'){ + hour = hour < 10 ? '0' + hour : hour + minutes = minutes < 10 ? '0' + minutes : minutes + seconds = seconds < 10 ? '0' + seconds : seconds + return hour+':'+minutes+':' + seconds + } } \ No newline at end of file -- Gitblit v1.9.1