Commit c6c18e49 by liuyang

2024-08-06 导入去掉文件类型判断

parent 92a90a2f
...@@ -436,10 +436,10 @@ $(function() { ...@@ -436,10 +436,10 @@ $(function() {
eiInfo.set("fileName", src); eiInfo.set("fileName", src);
EiCommunicator.send("HGCW002A", "importDate", eiInfo, { EiCommunicator.send("HGCW002A", "importDate", eiInfo, {
onSuccess(ei) { onSuccess(ei) {
if (notIsExcelFile) { /* if (notIsExcelFile) {
NotificationUtil("请导入xls或xlsx文件", "error"); NotificationUtil("请导入xls或xlsx文件", "error");
return; return;
} }*/
if (ei.status == "-1") { if (ei.status == "-1") {
NotificationUtil( NotificationUtil(
{msg: ei.msg, detailMsg: ei.detailMsg}, "error"); {msg: ei.msg, detailMsg: ei.detailMsg}, "error");
......
...@@ -368,10 +368,10 @@ $(function() { ...@@ -368,10 +368,10 @@ $(function() {
eiInfo.set("fileName", src); eiInfo.set("fileName", src);
EiCommunicator.send("HGCW002A", "importDate", eiInfo, { EiCommunicator.send("HGCW002A", "importDate", eiInfo, {
onSuccess(ei) { onSuccess(ei) {
if (notIsExcelFile) { /*if (notIsExcelFile) {
NotificationUtil("请导入xls或xlsx文件", "error"); NotificationUtil("请导入xls或xlsx文件", "error");
return; return;
} }*/
if (ei.status == "-1") { if (ei.status == "-1") {
NotificationUtil( NotificationUtil(
{msg: ei.msg, detailMsg: ei.detailMsg}, "error"); {msg: ei.msg, detailMsg: ei.detailMsg}, "error");
......
...@@ -487,10 +487,10 @@ $(function () { ...@@ -487,10 +487,10 @@ $(function () {
eiInfo.set("materialId", $("#inqu_status-0-materialId").val()) eiInfo.set("materialId", $("#inqu_status-0-materialId").val())
EiCommunicator.send("HGSC004A", "importDate", eiInfo, { EiCommunicator.send("HGSC004A", "importDate", eiInfo, {
onSuccess(ei) { onSuccess(ei) {
if (notIsExcelFile) { /*if (notIsExcelFile) {
NotificationUtil("请导入xls或xlsx文件", "error"); NotificationUtil("请导入xls或xlsx文件", "error");
return; return;
} }*/
if (ei.status == "-1") { if (ei.status == "-1") {
NotificationUtil( NotificationUtil(
{msg: ei.msg, detailMsg: ei.detailMsg}, "error"); {msg: ei.msg, detailMsg: ei.detailMsg}, "error");
......
...@@ -189,10 +189,10 @@ $(function () { ...@@ -189,10 +189,10 @@ $(function () {
eiInfo.set("fileName", src); eiInfo.set("fileName", src);
EiCommunicator.send("HGSC009", "importDate", eiInfo, { EiCommunicator.send("HGSC009", "importDate", eiInfo, {
onSuccess(ei) { onSuccess(ei) {
if (notIsExcelFile) { /*if (notIsExcelFile) {
NotificationUtil("请导入xls或xlsx文件", "error"); NotificationUtil("请导入xls或xlsx文件", "error");
return; return;
} }*/
if (ei.status == "-1") { if (ei.status == "-1") {
NotificationUtil( NotificationUtil(
{msg: ei.msg, detailMsg: ei.detailMsg}, "error"); {msg: ei.msg, detailMsg: ei.detailMsg}, "error");
......
...@@ -216,10 +216,10 @@ $(function (){ ...@@ -216,10 +216,10 @@ $(function (){
eiInfo.set("fileName", src); eiInfo.set("fileName", src);
EiCommunicator.send("HGSJ003", "importDate", eiInfo, { EiCommunicator.send("HGSJ003", "importDate", eiInfo, {
onSuccess(ei) { onSuccess(ei) {
if (notIsExcelFile) { /*if (notIsExcelFile) {
NotificationUtil("请导入xls或xlsx文件", "error"); NotificationUtil("请导入xls或xlsx文件", "error");
return; return;
} }*/
if (ei.status == "-1") { if (ei.status == "-1") {
NotificationUtil( NotificationUtil(
{msg: ei.msg, detailMsg: ei.detailMsg}, "error"); {msg: ei.msg, detailMsg: ei.detailMsg}, "error");
......
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