Commit 5c4321c7 authored by stone's avatar stone

【fix】金税接口导入增加提示

parent e16ef3ca
......@@ -7,8 +7,8 @@
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
if (fileType != '.xls') {
alert('请选择正确的导入文件!');
if (fileType != '.xls'&&fileType != '.xlsx') {
alert('请选择正确的导入文件!请使用xls或者xlsx后缀的文件');
} else {
document.getElementById('importForm').submit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment