1.pda添加物料(非原材料)新增判断生产单号为空的情况
| | |
| | | <div class="form-item"> |
| | | <span style="vertical-align: middle">数量</span> |
| | | <div class="number-tool" style="vertical-align: middle"> |
| | | <button onclick="reduce()">-</button><input id="count" type="number"><button onclick="add()">+</button> |
| | | <button onclick="reduce()">-</button><input id="count" type="number" min="1" onblur="checkCount()"><button onclick="add()">+</button> |
| | | </div> |
| | | </div> |
| | | <button id="confirm" onclick="confirm()">提取</button> |
| | |
| | | } |
| | | } |
| | | |
| | | // 校正最小数量 |
| | | function checkCount() { |
| | | var countValue = $("#count").val(); |
| | | if (countValue <= 0) { |
| | | $("#count").val(1); |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | </html> |