動態JS-委外發料時提醒超發
當前位置:點晴教程→知識管理交流
→『 技術文檔交流 』
:動態JS-委外發料時提醒超發 function fn_submit_btn(){ var tr_num=document.getElementById("num").value; for (var i=0;i<tr_num-1;i++) { if(document.getElementById("order_quantity"+i).value>0){ if(document.getElementById("pre_draw_quantity"+i).value-document.getElementById("real_draw_quantity"+i).value-document.getElementById("order_quantity"+i).value<0 ){ confirm("第"+(i+1)+"行的"+document.getElementById("sub_product_code"+i).value+ "已超發材料是否繼續");
} } } if(document.getElementById('allaround_100248').value=='是'){ if(document.getElementById('main_warehouse_all_code').value==''){alert('你設置了先進先出,但未選出庫倉庫,請選擇!');return false;} } var tr_num=document.getElementById('num').value; for(no_i=0;no_i<tr_num;no_i++){ no_j=no_i-(-1) if(document.getElementById('order_quantity'+no_i).value-0<0){alert('第“'+no_j+'”行錄入數量禁止小于0,請檢查!');return false;} if(document.getElementById('order_quantity'+no_i).value>(document.getElementById('pre_draw_quantity'+no_i).value-document.getElementById('real_draw_quantity'+no_i).value-(-document.getElementById('return_quantity'+no_i).value)-(-0.000000001))){ //alert('第“'+no_j+'”行超過計劃出庫數量-累計出庫量+退料數量!');return false; } } if(confirm('你確定要提交該單嗎?')){ fnCheckForm(); document.getElementById('del').value=''; if (document.getElementById('checkform').value == 'ok') { document.getElementById('B2').style.background = "#808080"; document.getElementById('B2').style.color = "#FFFFFF"; document.getElementById('B2').disabled = true; document.getElementById('B3').style.background = "#808080"; document.getElementById('B3').style.color = "#FFFFFF"; document.getElementById('B3').disabled = true; document.getElementById('del_btn').style.background = "#808080"; document.getElementById('del_btn').style.color = "#FFFFFF"; document.getElementById('del_btn').disabled = true; document.getElementById('form1').submit(); } } }
該文章在 2024/12/27 15:59:19 編輯過 |
關鍵字查詢
相關文章
正在查詢... |