南骏 池
2024-12-14 a6e5d667123496f0129c8e7c3d930c46e7a46ba1
js/CangKuManage_js/GS_CKPDD.js
@@ -26,12 +26,12 @@
   app.init();
   fetchData();
   mui("#txtGD")[0].focus();
   console.log("连接测试!");
   initBluetooth();
   // initBluetooth();
   //SetBillNo();
   $('#info').height($(window).height() - $("#row001").height() - $("#div001").height() - $("#div002")
   .height() - 70);
      .height() - 70);
});
// $(function(){
//   billNo= GetMaxBillNO("1201",GetSysDateTime());//调拨单号,只要不离开界面,单号不变
@@ -275,6 +275,55 @@
   });
});
function refreshpdno() {
   $.ajax({
      url: app.API_URL_HEADER + "/WARBABChag/GetBarInfoTAC",
      data: {
         TAA001: $("#order").val(),
      },
      DataType: "json",
      type: "post",
      async: false,
      //timeout: 15000,
      success: function(data) {
         //console.log(JSON.stringify(data));
         if (data.status != 0) {
            playerAudio("NG");
            mui.alert(data.message, "", "", function() {
               mui("#input")[0].focus();
            });
            return;
         } else {
            populateTable(data.data);
            var selectElement = document.getElementById("spici");
            console.log(pici);
            // 清空 <select> 元素的现有选项
            selectElement.innerHTML = "";
            // 从1开始到 pici 为止的数,添加到 <select> 元素中
            for (var i = 1; i <= parseInt(pici); i++) {
               // 创建一个新的 <option> 元素
               var option = document.createElement("option");
               // 设置 <option> 元素的 value 和 text 属性
               option.value = i;
               option.text = i;
               // 将 <option> 元素添加到 <select> 元素中
               selectElement.appendChild(option);
            }
            selectElement.value = pici;
            GetInfopici();
            mui("#MBA001")[0].focus();
         }
      },
      error: function(xhr, type, errorThrown) {
         alert("获取数据异常:" + JSON.stringify(errorThrown));
      }
   });
}
//判断库位
function GetStoreTAA() {
   if (event.keyCode == 13) {
@@ -472,8 +521,11 @@
            });
            return;
         } else {
GetInfopici();
         mui.toast("汇总成功!");
            refreshpdno();
            var selectElement = document.getElementById("spici");
            selectElement.value = parseInt(pici) - 1;
            GetInfopici();
            mui.toast("汇总成功!");
         }
@@ -489,27 +541,41 @@
}
function showdetail() {
document.getElementById("huizongbt").addEventListener("click", function() {
   console.log('133');
   var element = document.getElementById("divdetail");
   var element1 = document.getElementById("info");
   var element2 = document.getElementById("myTable2");
   if (element.style.display === "none") {
      element.style.display = "block";
      element.style.display = "";
   } else {
      element.style.display = "none";
   }
   if (element1.style.display === "none") {
      element1.style.display = "block";
      element1.style.display = "";
   } else {
      element1.style.display = "none";
   }
   if (element2.style.display === "none") {
      element2.style.display = "block";
});
function showdetail() {
   console.log('133');
   var element = document.getElementById("divdetail");
   var element1 = document.getElementById("info");
   if (element.style.display === "none") {
      element.style.display = "";
   } else {
      element2.style.display = "none";
      element.style.display = "none";
   }
   if (element1.style.display === "none") {
      element1.style.display = "";
   } else {
      element1.style.display = "none";
   }
}
@@ -612,7 +678,7 @@
         alert("获取数据异常:" + JSON.stringify(errorThrown));
      }
   });
    GetInfopici();
   GetInfopici();
};