| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="matnr" placeholder="商品编号" autocomplete="off"> |
| | | <input class="layui-input" type="text" name="matnr" placeholder="SKU" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="specs" placeholder="规格" autocomplete="off"> |
| | | <input class="layui-input" type="text" name="standby1" placeholder="PO" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="maktx" placeholder="物料描述" autocomplete="off"> |
| | | <input class="layui-input" type="text" name="boxType3" placeholder="采购单号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="standby2" placeholder="UPC" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <select name="frozen" class="layui-input" type="text" autocomplete="off">--> |
| | | <!-- <option value="">冻结否</option>--> |
| | | <!-- <option value="0">未冻结</option>--> |
| | | <!-- <option value="1">已冻结</option>--> |
| | | <!-- </select>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <!-- 日期范围 --> |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | |
| | | |
| | | </body> |
| | | <script> |
| | | layui.use(['form', 'jquery'], function () { |
| | | var $ = layui.jquery; |
| | | var form = layui.form; |
| | | |
| | | // 重置按钮功能 |
| | | $('#reset').on('click', function () { |
| | | // 重置表单内容 |
| | | $('#search-box')[0].reset(); // 清空表单 |
| | | form.render(); // 更新表单UI |
| | | |
| | | // 清除其他控件的值,比如日期范围 |
| | | $('.layui-laydate-range').val(''); |
| | | |
| | | // 重新渲染表格 |
| | | tableReload(); |
| | | }); |
| | | }); |
| | | |
| | | function getCol() { |
| | | let cols = [ |
| | | {type: 'checkbox', merge: ['locNo']} |
| | | ,{field: 'locNo', align: 'center',title: '库位号', merge: true, style: 'font-weight: bold'} |
| | | ,{field: 'locNo', align: 'center',title: '库位号', merge: true, style: 'font-weight: bold'}, |
| | | {field: 'matnr', align: 'center',title: '商品编号', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false}, |
| | | {field: 'standby1', align: 'center',title: '客户po', hide: false}, |
| | | {field: 'standby3', align: 'center',title: '客户sku', hide: false}, |
| | | ]; |
| | | arrRemove(detlCols, "field", "matnr") |
| | | arrRemove(detlCols, "field", "orderNo") |
| | | arrRemove(detlCols, "field", "standby1") |
| | | arrRemove(detlCols, "field", "standby3") |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'modiUser$', align: 'center',title: '修改人员', hide: true} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间'}) |
| | |
| | | layer.msg("请选择数据", {icon: 2}); |
| | | return; |
| | | } |
| | | if (data.some(obj => obj.frozen === 1)) { |
| | | layer.msg("冻结的库存不允许出库!"); |
| | | return; |
| | | } |
| | | |
| | | let locNos = []; |
| | | data.forEach(function(elem) { |
| | | locNos.push(elem.locNo); |