|
@@ -81,6 +81,9 @@ function submitWaveNo() {
|
|
|
}
|
|
|
var wave = result.extend;
|
|
|
|
|
|
+ //刷新待下架列表
|
|
|
+ showUnOutShelfDetails();
|
|
|
+
|
|
|
$("#warehouseCode").val(wave.warehouseCode);
|
|
|
$("#customerCode").val(wave.customerCode);
|
|
|
$("#statusName").val(wave.statusName);
|
|
@@ -153,6 +156,10 @@ function submitOutShelf() {
|
|
|
//播放成功声音
|
|
|
playSound('../raw/ok.wav');
|
|
|
|
|
|
+ //刷新下架列表
|
|
|
+ refreshUnOutShelfItems();
|
|
|
+ refreshAlreadyOutShelfItems();
|
|
|
+
|
|
|
nextBarcode(); // 下一个库位
|
|
|
|
|
|
if(result.extend.flag == '3') { // 波次完成下架
|
|
@@ -181,4 +188,135 @@ function cleanAll() {
|
|
|
$(this).val("")
|
|
|
})
|
|
|
$('#waveNo').focus();
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+//下架列表
|
|
|
+var isShowUnOutShelfDetails = false;
|
|
|
+function showUnOutShelfDetails(){
|
|
|
+ if(!isShowUnOutShelfDetails){
|
|
|
+ $("#showUnOutShelfDetails").show();
|
|
|
+ isShowUnOutShelfDetails = true;
|
|
|
+ $("#showUnOutShelfIco").attr("class", "fa fa-angle-double-up");
|
|
|
+
|
|
|
+ //刷新明细
|
|
|
+ refreshUnOutShelfItems();
|
|
|
+ }else{
|
|
|
+ $("#showUnOutShelfDetails").hide();
|
|
|
+ isShowUnOutShelfDetails = false;
|
|
|
+ $("#showUnOutShelfIco").attr("class", "fa fa-angle-double-down");
|
|
|
+ }
|
|
|
+ //回到上次焦点地方
|
|
|
+ // if(focusId!=null && focusId != ''){
|
|
|
+ // $("#"+focusId).focus();
|
|
|
+ // }
|
|
|
+}
|
|
|
+
|
|
|
+//显示待下架明细
|
|
|
+function refreshUnOutShelfItems(){
|
|
|
+ var waveNo = $('#waveNo').val();
|
|
|
+
|
|
|
+ var appRequest = $appRequest;//复制请求封装对象
|
|
|
+ appRequest.opType = OP_TYPE_MENU.BATCH_OUT_SHELF_3;
|
|
|
+ appRequest.msg = waveNo;//msg是消息内容主体
|
|
|
+
|
|
|
+ $("#unOutShelfItemList").empty();
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: $appRequestUrl,
|
|
|
+ contentType: "application/json; charset=utf-8",
|
|
|
+ data: JSON.stringify(appRequest),
|
|
|
+ success: function (appResponse) {
|
|
|
+ if(!appResponse.success){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var waitQtyTotal = 0;
|
|
|
+ var itemList = appResponse.extend;
|
|
|
+ // console.log(JSON.stringify(itemList));
|
|
|
+
|
|
|
+ var unOutShelfList = itemList.unOutShelfList;
|
|
|
+ for(var index = 0; index < unOutShelfList.length; index ++){
|
|
|
+ var unOutShelf = unOutShelfList[index];
|
|
|
+ var tr = "<tr id='item_"+unOutShelf.id+"'>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+unOutShelf.barcode+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+unOutShelf.productName+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+unOutShelf.locationCode+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+unOutShelf.quantity+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+unOutShelf.extend4+"</div></th>";
|
|
|
+ tr += "</tr>";
|
|
|
+
|
|
|
+ $("#unOutShelfItemList").append(tr);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ playSound('../raw/error.wav');
|
|
|
+ mui.toast('网络断开或服务器发生异常');
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+//已下架列表
|
|
|
+var isAlreadyOutShelfDetails = false;
|
|
|
+function alreadyOutShelfDetails(){
|
|
|
+ if(!isAlreadyOutShelfDetails){
|
|
|
+ $("#alreadyOutShelfDetails").show();
|
|
|
+ isAlreadyOutShelfDetails = true;
|
|
|
+ $("#showAlreadyOutShelfIco").attr("class", "fa fa-angle-double-up");
|
|
|
+
|
|
|
+ //刷新明细
|
|
|
+ refreshAlreadyOutShelfItems();
|
|
|
+ }else{
|
|
|
+ $("#alreadyOutShelfDetails").hide();
|
|
|
+ isAlreadyOutShelfDetails = false;
|
|
|
+ $("#showAlreadyOutShelfIco").attr("class", "fa fa-angle-double-down");
|
|
|
+ }
|
|
|
+ //回到上次焦点地方
|
|
|
+ /* if(focusId!=null && focusId != ''){
|
|
|
+ $("#"+focusId).focus();
|
|
|
+ } */
|
|
|
+}
|
|
|
+
|
|
|
+//显示已下架明细
|
|
|
+function refreshAlreadyOutShelfItems(){
|
|
|
+ var waveNo = $('#waveNo').val();
|
|
|
+
|
|
|
+ var appRequest = $appRequest;//复制请求封装对象
|
|
|
+ appRequest.opType = OP_TYPE_MENU.BATCH_OUT_SHELF_3;
|
|
|
+ appRequest.msg = waveNo;//msg是消息内容主体
|
|
|
+
|
|
|
+ $("#alreadyOutShelfItemList").empty();
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: $appRequestUrl,
|
|
|
+ contentType: "application/json; charset=utf-8",
|
|
|
+ data: JSON.stringify(appRequest),
|
|
|
+ success: function (appResponse) {
|
|
|
+ if(!appResponse.success){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var waitQtyTotal = 0;
|
|
|
+ var itemList = appResponse.extend;
|
|
|
+ // console.log(JSON.stringify(itemList));
|
|
|
+
|
|
|
+ var alreadyOutShelfList = itemList.alreadyOutShelfList;
|
|
|
+ for(var index = 0; index < alreadyOutShelfList.length; index ++){
|
|
|
+ var alreadyOutShelf = alreadyOutShelfList[index];
|
|
|
+ var tr = "<tr id='item_"+alreadyOutShelf.id+"'>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+alreadyOutShelf.barcode+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+alreadyOutShelf.productName+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+alreadyOutShelf.locationCode+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+alreadyOutShelf.quantity+"</div></th>";
|
|
|
+ tr += "<th><div style='width:100%;overflow: hidden;font-size: 9pt;text-align: left;'>"+alreadyOutShelf.extend4+"</div></th>";
|
|
|
+ tr += "</tr>";
|
|
|
+
|
|
|
+ $("#alreadyOutShelfItemList").append(tr);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function () {
|
|
|
+ playSound('../raw/error.wav');
|
|
|
+ mui.toast('网络断开或服务器发生异常');
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|