|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<title>库存查询</title>
|
|
|
|
|
<meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
|
|
|
|
<link rel="stylesheet" href="css/weui.css"/>
|
|
|
|
|
<link rel="stylesheet" href="css/weuix.css"/>
|
|
|
|
|
<link rel="stylesheet" href="css/query2.css"/>
|
|
|
|
|
<script src="js/zepto.min.js"></script>
|
|
|
|
|
<script src="js/zepto.weui.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="weui-panel">
|
|
|
|
|
<div class="weui-panel__bd" id="listContainer">
|
|
|
|
|
<div class="weui-form-preview">
|
|
|
|
|
<div class="weui-form-preview__hd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
|
|
|
|
|
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__bd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="case-number weui-form-preview__label">箱号:RT754874154</label>
|
|
|
|
|
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">入库件数:90</label>
|
|
|
|
|
<span class="weui-form-preview__value">库存件数:60</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">仓库:盛捷1号库</label>
|
|
|
|
|
<span class="weui-form-preview__value">库位:01C1-1</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview">
|
|
|
|
|
<div class="weui-form-preview__hd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
|
|
|
|
|
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__bd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="case-number weui-form-preview__label">箱号:RT754874154</label>
|
|
|
|
|
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">入库件数:90</label>
|
|
|
|
|
<span class="weui-form-preview__value">库存件数:60</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">仓库:盛捷1号库</label>
|
|
|
|
|
<span class="weui-form-preview__value">库位:01C1-1</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview">
|
|
|
|
|
<div class="weui-form-preview__hd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label"><span>提单号:</span>SMLMPHX084996300</label>
|
|
|
|
|
<label class="weui-form-preview__label"><span>报关单号:</span>42502020100</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__bd">
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="case-number weui-form-preview__label">箱号:RT754874154</label>
|
|
|
|
|
<span class="name-good weui-form-preview__value">货物名称:美棉</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">入库件数:90</label>
|
|
|
|
|
<span class="weui-form-preview__value">库存件数:60</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-form-preview__item">
|
|
|
|
|
<label class="weui-form-preview__label">仓库:盛捷1号库</label>
|
|
|
|
|
<span class="weui-form-preview__value">库位:01C1-1</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class='demos-content-padded'>
|
|
|
|
|
<div class="weui-loadmore" id="loadingTip">
|
|
|
|
|
<i class="weui-loading"></i>
|
|
|
|
|
<span class="weui-loadmore__tips">正在加载</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="weui-loadmore weui-loadmore_line" id="noMoreTip">
|
|
|
|
|
<span class="weui-loadmore__tips">没有更多数据</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<script>
|
|
|
|
|
var loading = false;
|
|
|
|
|
var pageIndex = 0;
|
|
|
|
|
var pageSize = 10;
|
|
|
|
|
var total = 0;
|
|
|
|
|
var openid = '<%=ViewData["openid"]%>';
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
loadData();
|
|
|
|
|
|
|
|
|
|
//$("#listContainer", ".weui-form-preview").on('click',
|
|
|
|
|
// function () {
|
|
|
|
|
// alert(aaa);
|
|
|
|
|
// }
|
|
|
|
|
//);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(document.body).infinite().on("infinite", function () {
|
|
|
|
|
loadData();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function loadData() {
|
|
|
|
|
if (loading) return;
|
|
|
|
|
loading = true;
|
|
|
|
|
|
|
|
|
|
$("#loadingTip").show();
|
|
|
|
|
$("#noMoreTip").hide();
|
|
|
|
|
|
|
|
|
|
var len = $("#listContainer").children().length;
|
|
|
|
|
if (total == 0 || len < total) {
|
|
|
|
|
console.log(len + " " + total);
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: "/Dispatch/Dispatch/DispatchData?openid=" + openid + "&page=" + (pageIndex + 1) + "&pageSize=" + pageSize,
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
loading = false;
|
|
|
|
|
total = data.total;
|
|
|
|
|
pageIndex = data.page;
|
|
|
|
|
showList(data.list);
|
|
|
|
|
|
|
|
|
|
$("#loadingTip").hide();
|
|
|
|
|
if (total == 0) {
|
|
|
|
|
$("#noMoreTip").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
$("#loadingTip").hide();
|
|
|
|
|
$("#noMoreTip").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showList(list) {
|
|
|
|
|
for (var idx = 0; idx < list.length; idx++) {
|
|
|
|
|
var html = '<div class="weui-form-preview" onclick="goDetail(\'' + list[idx].LE_ID + '\')">'
|
|
|
|
|
+ '<div class="weui-form-preview__hd">'
|
|
|
|
|
+ ' <div class="weui-form-preview__item">'
|
|
|
|
|
+ ' <label class="weui-form-preview__label"><span>提单号</span>' + SMLMPHX084996300 + '</label>'
|
|
|
|
|
+ ' <label class="weui-form-preview__label"><span>报关单号</span>' + 42502020100 + '</label>'
|
|
|
|
|
+ ' </div>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '<div class="weui-form-preview__bd">'
|
|
|
|
|
+ ' <div class="weui-form-preview__item">'
|
|
|
|
|
+ ' <label class="case-number weui-form-preview__label">箱号' + RT754874154 + '</label>'
|
|
|
|
|
+ ' <span class="name-good weui-form-preview__value">货物名称' + 美棉 + '</span>'
|
|
|
|
|
+ ' </div>'
|
|
|
|
|
+ ' <div class="weui-form-preview__item">'
|
|
|
|
|
+ ' <label class="weui-form-preview__label">入库件数' + 90 + '</label>'
|
|
|
|
|
+ ' <span class="weui-form-preview__value">库存件数' + 90 + '</span>'
|
|
|
|
|
+ ' </div>'
|
|
|
|
|
+ ' <div class="weui-form-preview__item">'
|
|
|
|
|
+ ' <label class="weui-form-preview__label">仓库' + 盛捷1号库 + '</label>'
|
|
|
|
|
+ ' <span class="weui-form-preview__value">库位' + 01C1-1 + '</span>'
|
|
|
|
|
+ ' </div>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
html += '</div>';
|
|
|
|
|
$("#listContainer").append(html);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function goDetail(leid) {
|
|
|
|
|
location.href = "/Dispatch/Dispatch/DispatchDetail?leid=" + leid;
|
|
|
|
|
}
|
|
|
|
|
</script>-->
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|