动态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 编辑过 |
关键字查询
相关文章
正在查询... |