完善商品导入的模板

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;
}
/**

View File

@ -392,6 +392,7 @@
}
},
handleImportXls() {
this.$message.warning('最近增加了多属性仓位货架制造商自定义列请下载最新的模板');
let importExcelUrl = this.url.importExcelUrl
let templateUrl = '/doc/goods_template.xls'
let templateName = '商品Excel模板[下载]'