Browse Source

修改移动端库存盘点页面

lwx_dev
erdanergou 3 years ago
parent
commit
1e6a3e793b
  1. 10
      src/main/resources/static/js/stockTaking/stockTakingForMaterial_mobile.js
  2. 2
      target/classes/templates/pages/showInventory/showInventoryForMaterial.html

10
src/main/resources/static/js/stockTaking/stockTakingForMaterial_mobile.js

@ -80,8 +80,10 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () {
$("#LAY_FlowForMaterial").empty(); $("#LAY_FlowForMaterial").empty();
takingPre = 0; takingPre = 0;
let req = {}; let req = {};
req.mid = $("#mid").val(); let mid = $("#mid").val();
req.mid = mid;
req.size = size; req.size = size;
if(mid !== ""){
flow.load({ flow.load({
elem: '#LAY_FlowForMaterial' //流加载容器 elem: '#LAY_FlowForMaterial' //流加载容器
, done: function (page, next) { //执行下一页的回调 , done: function (page, next) { //执行下一页的回调
@ -121,6 +123,8 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () {
}); });
} }
}); });
}
}; };
@ -314,8 +318,8 @@ layui.use(['form', 'step', 'flow', 'table', 'inputTag'], function () {
iframeChildren.css('height', '100%'); iframeChildren.css('height', '100%');
}, },
end: function () { end: function () {
var mid = $("#mid").val(); if (mid !== "") {
if (mid !== '') { console.log(mid)
let loading2 = layer.open({type: 3, shade: [0.25, '#000'], icon: 2, speed: 0}); let loading2 = layer.open({type: 3, shade: [0.25, '#000'], icon: 2, speed: 0});
$.ajax({ $.ajax({
url: "/material/findMatrialById?mid=" + mid + "&type=out", url: "/material/findMatrialById?mid=" + mid + "&type=out",

2
target/classes/templates/pages/showInventory/showInventoryForMaterial.html

@ -179,7 +179,7 @@
let InventoryItem = ""; let InventoryItem = "";
for (let j = 0; j < keys.length; j++) { for (let j = 0; j < keys.length; j++) {
let key = keys[j]; let key = keys[j];
let item = '<p>' + "计量单位:" + key + ";库存数量:" + splitInventory[key] + '</p>'; let item = '<p>' + "计量单位:" + key + ";对应库存:" + splitInventory[key] + '</p>';
InventoryItem += item; InventoryItem += item;
} }
lis.push('<li style="width:100%;margin-top: 10px;float:left;border: 1px solid #9999996e;"><div class="layui-card my-shadow my-card flow1"><div class="layui-card-header"><h2>' + "所处位置:" + result[i].dname+"-"+result[i].kingdeecode + '</h2></div>'); lis.push('<li style="width:100%;margin-top: 10px;float:left;border: 1px solid #9999996e;"><div class="layui-card my-shadow my-card flow1"><div class="layui-card-header"><h2>' + "所处位置:" + result[i].dname+"-"+result[i].kingdeecode + '</h2></div>');

Loading…
Cancel
Save