diff --git a/src/main/resources/templates/pages/depository/table-stock.html b/src/main/resources/templates/pages/depository/table-stock.html index bb17ff3b..2dc8e6e6 100644 --- a/src/main/resources/templates/pages/depository/table-stock.html +++ b/src/main/resources/templates/pages/depository/table-stock.html @@ -382,7 +382,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'applicationOut') { + } + else if (obj.event === 'applicationOut') { // 出库申请 var index = layer.open({ title: '出库申请', @@ -397,7 +398,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'changeUnit') { + } + else if (obj.event === 'changeUnit') { let showQuantity = data.showQuantity; let btn = $("#btn_" + data.id); let clickNum = Number(btn.attr("click_num")); @@ -433,6 +435,9 @@ } } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); // 用于更改同一仓库下的库位 diff --git a/src/main/resources/templates/pages/material/material-out.html b/src/main/resources/templates/pages/material/material-out.html index ff1999f7..d0b9c449 100644 --- a/src/main/resources/templates/pages/material/material-out.html +++ b/src/main/resources/templates/pages/material/material-out.html @@ -468,7 +468,8 @@ $(window).on("resize", function () { layer.full(index); }); - } else if (obj.event === 'delete') { // 监听删除操作 + } + else if (obj.event === 'delete') { // 监听删除操作 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; var req = {}; @@ -513,7 +514,8 @@ layer.msg("未选中记录,请确认!"); return false; } - } else if (obj.event === 'applicationIn') { + } + else if (obj.event === 'applicationIn') { // 入库申请 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; @@ -554,9 +556,13 @@ } }) - } else if (obj.event === 'downloadFile') { + } + else if (obj.event === 'downloadFile') { window.open("/download/materialImportDownload", "_self"); } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); diff --git a/src/main/resources/templates/pages/materialtype/materialType_view.html b/src/main/resources/templates/pages/materialtype/materialType_view.html index 8a0fb118..51129e54 100644 --- a/src/main/resources/templates/pages/materialtype/materialType_view.html +++ b/src/main/resources/templates/pages/materialtype/materialType_view.html @@ -205,7 +205,8 @@ $(window).on("resize", function () { layer.full(index); }); - } else if (obj.event === 'delete') { // 监听删除操作 + } + else if (obj.event === 'delete') { // 监听删除操作 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; var req = {}; @@ -250,9 +251,13 @@ layer.msg("未选中记录,请确认!"); return false; } - } else if (obj.event === 'downloadFile') { + } + else if (obj.event === 'downloadFile') { window.open("/download/materialTypeImportDownload", "_self"); } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); @@ -449,7 +454,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'delete') { + } + else if (obj.event === 'delete') { var req = {}; req.id = data.oldId; $.ajax({ diff --git a/target/classes/templates/pages/depository/table-stock.html b/target/classes/templates/pages/depository/table-stock.html index bb17ff3b..2dc8e6e6 100644 --- a/target/classes/templates/pages/depository/table-stock.html +++ b/target/classes/templates/pages/depository/table-stock.html @@ -382,7 +382,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'applicationOut') { + } + else if (obj.event === 'applicationOut') { // 出库申请 var index = layer.open({ title: '出库申请', @@ -397,7 +398,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'changeUnit') { + } + else if (obj.event === 'changeUnit') { let showQuantity = data.showQuantity; let btn = $("#btn_" + data.id); let clickNum = Number(btn.attr("click_num")); @@ -433,6 +435,9 @@ } } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); // 用于更改同一仓库下的库位 diff --git a/target/classes/templates/pages/material/material-out.html b/target/classes/templates/pages/material/material-out.html index ff1999f7..d0b9c449 100644 --- a/target/classes/templates/pages/material/material-out.html +++ b/target/classes/templates/pages/material/material-out.html @@ -468,7 +468,8 @@ $(window).on("resize", function () { layer.full(index); }); - } else if (obj.event === 'delete') { // 监听删除操作 + } + else if (obj.event === 'delete') { // 监听删除操作 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; var req = {}; @@ -513,7 +514,8 @@ layer.msg("未选中记录,请确认!"); return false; } - } else if (obj.event === 'applicationIn') { + } + else if (obj.event === 'applicationIn') { // 入库申请 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; @@ -554,9 +556,13 @@ } }) - } else if (obj.event === 'downloadFile') { + } + else if (obj.event === 'downloadFile') { window.open("/download/materialImportDownload", "_self"); } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); diff --git a/target/classes/templates/pages/materialtype/materialType_view.html b/target/classes/templates/pages/materialtype/materialType_view.html index 8a0fb118..51129e54 100644 --- a/target/classes/templates/pages/materialtype/materialType_view.html +++ b/target/classes/templates/pages/materialtype/materialType_view.html @@ -205,7 +205,8 @@ $(window).on("resize", function () { layer.full(index); }); - } else if (obj.event === 'delete') { // 监听删除操作 + } + else if (obj.event === 'delete') { // 监听删除操作 var checkStatus = table.checkStatus('currentTableId') , data = checkStatus.data; var req = {}; @@ -250,9 +251,13 @@ layer.msg("未选中记录,请确认!"); return false; } - } else if (obj.event === 'downloadFile') { + } + else if (obj.event === 'downloadFile') { window.open("/download/materialTypeImportDownload", "_self"); } + else if(obj.event === 'import'){ + bindTableToolbarFunction() + } }); @@ -449,7 +454,8 @@ layer.full(index); }); return false; - } else if (obj.event === 'delete') { + } + else if (obj.event === 'delete') { var req = {}; req.id = data.oldId; $.ajax({