完善商品导入的模板

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() { export function getNowFormatStr() {
let date = new Date(); let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1; let month = date.getMonth() + 1;
let strDate = date.getDate(); let strDate = date.getDate();
let strHours = date.getHours(); let strHours = date.getHours();
@@ -526,7 +527,7 @@ export function getNowFormatStr() {
if (strSeconds >= 0 && strSeconds <= 9) { if (strSeconds >= 0 && strSeconds <= 9) {
strSeconds = "0" + strSeconds; strSeconds = "0" + strSeconds;
} }
return month +''+ strDate +''+ strHours +''+ strMinutes +''+ strSeconds; return year +''+ month +''+ strDate +''+ strHours +''+ strMinutes +''+ strSeconds;
} }
/** /**

View File

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