| | |
| | | </script> |
| | | <script type="text/html" id="orderActivityCheckToolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="orderActivity:update" lay-event="checkOrder">手动核销</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="orderActivity:update" lay-event="checkOrderItem">手动核销</button> |
| | | </div> |
| | | </script> |
| | | |
| | |
| | | let id = obj.config.id; |
| | | let checkStatus = table.checkStatus(id); |
| | | |
| | | if (event === 'checkOrder') { |
| | | if (event === 'checkOrderItem') { |
| | | let data = checkStatus.data; |
| | | |
| | | // 校验 data 是否为空或未定义 |
| | |
| | | |
| | | // 遍历数据,筛选符合条件的订单 |
| | | for (let i = 0; i < data.length; i++) { |
| | | if (data[i].state !== 1) { |
| | | if (data[i].state !== 0) { |
| | | hasInvalidOrder = true; |
| | | break; // 提前中断循环,避免无意义的继续遍历 |
| | | } else { |