Browse Source

添加库存搜索按库位搜索,且修复库内移动时的bug

lwx_dev
erdanergou 2 years ago
parent
commit
6822df350e
  1. 20
      src/main/resources/templates/pages/depository/table-stock.html
  2. 20
      target/classes/templates/pages/depository/table-stock.html

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

@ -145,6 +145,7 @@
// 用于保证导入时点击只导入一次 // 用于保证导入时点击只导入一次
let flagForImport = true; let flagForImport = true;
let reqForPublic = {};
layui.use(['form', 'table', 'upload'], function () { layui.use(['form', 'table', 'upload'], function () {
var $ = layui.jquery, var $ = layui.jquery,
@ -360,6 +361,7 @@
if (data.materialTypeId !== '') { if (data.materialTypeId !== '') {
req.materialTypeId = data.materialTypeId; req.materialTypeId = data.materialTypeId;
} }
reqForPublic = req;
//执行搜索重载 //执行搜索重载
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/findInventory', url: '/material/findInventory',
@ -405,7 +407,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}); });
} else { } else {
@ -418,7 +421,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}) })
} }
@ -547,7 +551,7 @@
page: { page: {
curr: 1 curr: 1
} }
, where: {} , where:reqForPublic
}, 'data'); }, 'data');
} }
}); });
@ -683,7 +687,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}) })
}, },
@ -758,7 +763,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
} }
}); });
@ -767,10 +773,6 @@
}); });
return false; return false;
} }
$('body').on('click', '[data-refresh]', function () {
location.reload();
})
}); });
</script> </script>

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

@ -145,6 +145,7 @@
// 用于保证导入时点击只导入一次 // 用于保证导入时点击只导入一次
let flagForImport = true; let flagForImport = true;
let reqForPublic = {};
layui.use(['form', 'table', 'upload'], function () { layui.use(['form', 'table', 'upload'], function () {
var $ = layui.jquery, var $ = layui.jquery,
@ -360,6 +361,7 @@
if (data.materialTypeId !== '') { if (data.materialTypeId !== '') {
req.materialTypeId = data.materialTypeId; req.materialTypeId = data.materialTypeId;
} }
reqForPublic = req;
//执行搜索重载 //执行搜索重载
table.reload('currentTableId', { table.reload('currentTableId', {
url: '/material/findInventory', url: '/material/findInventory',
@ -405,7 +407,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}); });
} else { } else {
@ -418,7 +421,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}) })
} }
@ -547,7 +551,7 @@
page: { page: {
curr: 1 curr: 1
} }
, where: {} , where:reqForPublic
}, 'data'); }, 'data');
} }
}); });
@ -683,7 +687,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
}) })
}, },
@ -758,7 +763,8 @@
url: '/material/findInventory', url: '/material/findInventory',
page: { page: {
curr: 1 curr: 1
} },
where:reqForPublic
}, 'data'); }, 'data');
} }
}); });
@ -767,10 +773,6 @@
}); });
return false; return false;
} }
$('body').on('click', '[data-refresh]', function () {
location.reload();
})
}); });
</script> </script>

Loading…
Cancel
Save