cdk
2025-05-20 87682b4f1579d5e02b2b9a02e7a09227406156ee
js/CangKuManage_js/EMCheck.js
@@ -48,6 +48,34 @@
   });
}
         document.getElementById('saomiaolb').addEventListener('tap', function() {
            console.log(12);
            var url = 'getScanCode1.html';
            mui.openWindow({
               url: url,
               extras: {},
               waiting: {
                  autoShow: true,
                  title: '加载中'
               }
            });
         }, false)
         function scaned(t, r, f) {
            console.log(r);
            $("#DAB001").val(r);
            // var selectElementD = document.getElementById('selectModeNoT');
            // selectElementD.innerHTML = "";
            // var option = document.createElement("option");
            // option.value = r;
            // option.text = r;
            // selectElementD.appendChild(option);
            GetBarInfo_NEW();
         }
function GetBillList() {
   var billDate = $("#txtBillDate").val();
   var o = {};
@@ -134,8 +162,65 @@
 };
 //扫描条码处理方法
 function GetBarInfo_NEW() {
   //如果未输入条码,跳出方法
   if($("#DAB001").val() == "") {
      return;
   }
   //用户ID
   var currentSession = app.loadconfig(app.CONFIG_CURRENT_SESSION);
   var user_id = currentSession.user_id;
   if($("#txtBillNo").val() == ""){
   var user_id =currentSession.user_id;
   }else{
   var user_id =$("#txtBillNo").val();
   }
//      var user_id = "admin";
   $.ajax({
      url: app.API_URL_HEADER + "/BASQC/GetBarInfoEMCheck",
      data: {
         DAB001: $("#DAB001").val(),
         logID: user_id //user_id,//Admin //先写死,便于调试
      },
      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("#DAB001")[0].focus();
               $("#DAB001").val("");
            });
            return;
         } else {
            if(data.data.sp_state > 0) {
               playerAudio("OK");
               $("#DAB001").val("");
               $("#DAB001").focus();
               mui.toast("清点完成!");
               //mui.alert("入库成功,测试后删除该提示!!!");
               //查询入库情况
               //BarcodePutInStorageHint();
            }
         }
      },
      error: function(xhr, type, errorThrown) {
         alert("获取数据异常:" + JSON.stringify(errorThrown));
      }
   });
 };
 //扫描条码处理方法
 function GetBarInfo() {
    if(event.keyCode == 13) {
    if(typeof name3 === "undefined" || event.keyCode == 13) {
       //如果未输入条码,跳出方法
       if($("#DAB001").val() == "") {
          return;