Browse Source

修改库存、物料、物料类型导入方法

lwx_dev
erdanergou 3 years ago
parent
commit
980b95a9b3
  1. 8
      src/main/resources/templates/pages/depository/table-stock.html
  2. 8
      src/main/resources/templates/pages/material/material-out.html
  3. 8
      src/main/resources/templates/pages/materialtype/materialType_view.html
  4. 8
      target/classes/templates/pages/depository/table-stock.html
  5. 8
      target/classes/templates/pages/material/material-out.html
  6. 8
      target/classes/templates/pages/materialtype/materialType_view.html

8
src/main/resources/templates/pages/depository/table-stock.html

@ -89,6 +89,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
@ -540,7 +541,7 @@
var show = "<p style='color: #00FF00'>" + code + ", " + mname + ", " + version + ", 数量为" + quantity + ":通过" + "</p>"; var show = "<p style='color: #00FF00'>" + code + ", " + mname + ", " + version + ", 数量为" + quantity + ":通过" + "</p>";
re += show re += show
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -573,8 +574,9 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
closeShowDataMessage(); closeShowDataMessage();
layer.close(indexForMsg);
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
@ -628,7 +630,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

8
src/main/resources/templates/pages/material/material-out.html

@ -115,6 +115,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
</div> </div>
@ -324,7 +325,7 @@
re += show; re += show;
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -357,8 +358,9 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
closeShowDataMessage(); closeShowDataMessage();
layer.close(indexForMsg);
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/material', url: '/material/material',
page: { page: {
@ -410,7 +412,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

8
src/main/resources/templates/pages/materialtype/materialType_view.html

@ -91,6 +91,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
@ -320,7 +321,7 @@
re += show re += show
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -353,7 +354,8 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
layer.close(indexForMsg);
closeShowDataMessage(); closeShowDataMessage();
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/materialType/materialTypeRecord', url: '/materialType/materialTypeRecord',
@ -408,7 +410,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

8
target/classes/templates/pages/depository/table-stock.html

@ -89,6 +89,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
@ -540,7 +541,7 @@
var show = "<p style='color: #00FF00'>" + code + ", " + mname + ", " + version + ", 数量为" + quantity + ":通过" + "</p>"; var show = "<p style='color: #00FF00'>" + code + ", " + mname + ", " + version + ", 数量为" + quantity + ":通过" + "</p>";
re += show re += show
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -573,8 +574,9 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
closeShowDataMessage(); closeShowDataMessage();
layer.close(indexForMsg);
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
@ -628,7 +630,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

8
target/classes/templates/pages/material/material-out.html

@ -115,6 +115,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
</div> </div>
@ -324,7 +325,7 @@
re += show; re += show;
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -357,8 +358,9 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
closeShowDataMessage(); closeShowDataMessage();
layer.close(indexForMsg);
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/material', url: '/material/material',
page: { page: {
@ -410,7 +412,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

8
target/classes/templates/pages/materialtype/materialType_view.html

@ -91,6 +91,7 @@
<div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;"> <div onclick="closeShowDataMessage()" style="position: absolute; right: 0; top: 2%; cursor: pointer;">
<i class="fa fa-window-close-o"></i> <i class="fa fa-window-close-o"></i>
</div> </div>
<div id="showDataContent"></div>
</div> </div>
</div> </div>
@ -320,7 +321,7 @@
re += show re += show
} }
$("#showImportData").append(re); $("#showDataContent").append(re);
}); });
} }
@ -353,7 +354,8 @@
} }
layer.alert("数据导入完成", { layer.alert("数据导入完成", {
icon: 0 icon: 0
},function () { },function (indexForMsg,layero) {
layer.close(indexForMsg);
closeShowDataMessage(); closeShowDataMessage();
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/materialType/materialTypeRecord', url: '/materialType/materialTypeRecord',
@ -408,7 +410,7 @@
closeShowDataMessage = function () { closeShowDataMessage = function () {
$("#layui-layer-shade-x"+newIndexShade).remove(); $("#layui-layer-shade-x"+newIndexShade).remove();
$("#showImportData").hide(); $("#showImportData").hide();
$("#showImportData").empty(); $("#showDataContent").empty();
if (socket !== null) { if (socket !== null) {
socket.close(); socket.close();
} }

Loading…
Cancel
Save