| | |
| | | function GetBarInfoLL() { |
| | | if (event.keyCode == 13) { |
| | | //如果未输入条码,跳出方法 |
| | | if ($("#DAB001").val() == "") { |
| | | if ($("#DAB001").val() == "" ) { |
| | | $("#DAB001").focus(); |
| | | playerAudio("NG"); |
| | | mui.toast("请先扫描物料条码!"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | if ($("#DEPOTSE").val() == "" ) { |
| | | |
| | | playerAudio("NG"); |
| | | mui.toast("该工单线别寄存库位未维护!"); |
| | | return; |
| | | } |
| | | |
| | | //用户ID |
| | | var currentSession = app.loadconfig(app.CONFIG_CURRENT_SESSION); |
| | | var user_id = currentSession.user_id; //currentSession.user_id; |
| | |
| | | mui.alert("请输入正确的数字!") |
| | | return; |
| | | } |
| | | var txtSL = parseFloat($("#txtSL").val()); |
| | | var SFSL = parseFloat($("#SFSL").val()); |
| | | console.log("txtSL:", txtSL); |
| | | console.log("SFSL:", SFSL); |
| | | // 比较数值大小 |
| | | if ($("#txtSL").val() < $("#SFSL").val()) { |
| | | if (txtSL < SFSL) { |
| | | console.log($("#txtSL").val()); |
| | | console.log( $("#SFSL").val()); |
| | | console.log("1"); |
| | | mui.alert("实发数不能大于条码数"); |
| | | return; |
| | | }; |
| | | if ($("#txtSL").val() > $("#SFSL").val()) { |
| | | if (txtSL > SFSL) { |
| | | // console.log("2"); |
| | | PrintSplit(); |
| | | }; |
| | | |