完善商品导入的模板

This commit is contained in:
季圣华
2023-05-21 23:38:21 +08:00
parent 2930dba1ab
commit 7407734832
3 changed files with 4 additions and 2 deletions

View File

@@ -502,10 +502,11 @@ export function getNowFormatDateTime() {
}
/**
* js获取当前时间 格式“MMddHHMMSS”
* js获取当前时间 格式“yyyyMMddHHMMSS”
*/
export function getNowFormatStr() {
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let strDate = date.getDate();
let strHours = date.getHours();
@@ -526,7 +527,7 @@ export function getNowFormatStr() {
if (strSeconds >= 0 && strSeconds <= 9) {
strSeconds = "0" + strSeconds;
}
return month +''+ strDate +''+ strHours +''+ strMinutes +''+ strSeconds;
return year +''+ month +''+ strDate +''+ strHours +''+ strMinutes +''+ strSeconds;
}
/**