| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>添加出库单</title> |
| | |
| | | .isShow{ |
| | | display: block; |
| | | } |
| | | |
| | | .isNoShow{ |
| | | display: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-form" lay-filter="layuiadmin-app-form-list" style="padding: 20px 0 0 0;"> |
| | | <div class="layui-form-item" style="margin-bottom: 0px;"> |
| | |
| | | } |
| | | |
| | | // 转换为浮点数并处理精度 |
| | | const precision = 10000; |
| | | const exqty = Math.round(parseFloat(exqtyStr) * precision) / precision; |
| | | |
| | | //const precision = 10000; |
| | | //const exqty = Math.round(parseFloat(exqtyStr) * precision) / precision; |
| | | const exqty = parseFloat(exqtyStr); |
| | | // 验证是否大于0 |
| | | if (exqty < 0) { |
| | | layer.msg("出库数量必须大于0!", { icon: 2, time: 2000 }); |