| | |
| | | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>物料信息录入</title> |
| | | <title>物料标签</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" |
| | |
| | | <div class="layui-form layui-card-header layuiadmin-card-header-auto"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline" style="margin-right: 0;"> |
| | | <label class="layui-form-label" style="width: 60px;">入库单号</label> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <input type="text" id="ASNNo" name="ASNNo" placeholder="入库单号" autocomplete="off" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-right: 0;"> |
| | | <label class="layui-form-label" style="width: 60px;">箱 号</label> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <input type="text" id="BoxNo" name="BoxNo" placeholder="箱号" autocomplete="off" |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-right: 0;"> |
| | | <label class="layui-form-label" style="width: 60px;">批次描述</label> |
| | | <label class="layui-form-label" style="width: 60px;">供货批次</label> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <input type="text" id="LotText" name="LotText" placeholder="批次描述" autocomplete="off" |
| | | class="layui-input"> |
| | | <input type="text" id="SupplierLot" name="SupplierLot" placeholder="供货批次" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline" style="margin-right: 0;"> |
| | | <label class="layui-form-label">是否使用</label> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <select name="IsUse" id="IsUse" lay-filter="IsUse" lay-search> |
| | | <option value=""></option> |
| | | <option value="0">否</option> |
| | | <option value="1">是</option> |
| | | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </script> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <!-- <script type="text/html" id="toolbarDemo"> |
| | | <button style="margin-right: 5px;" class="layui-btn layui-btn-sm layuiadmin-btn-list addClass" lay-event="add" > |
| | | <i class="layui-icon"></i>添加 |
| | | </button> |
| | |
| | | <button style="margin-right: 5px;" id="daoru" class="layui-btn layui-btn-sm layuiadmin-btn-list DaoRuClass" lay-event="import" > |
| | | <i class="layui-icon"></i>导入 |
| | | </button> |
| | | </script> |
| | | </script> --> |
| | | |
| | | <script type="text/html" id="toolbarDemoList"> |
| | | {{# function GetBtn2(d){ |
| | |
| | | //#region 自定义表头 |
| | | var TotalColsArr = [[ |
| | | |
| | | { field: 'AsnNo', title: '入库单号', align: 'center', width: 155, "disabled": true }, |
| | | {field: 'BoxNo',title: '箱号',align: 'center',fixed: 'left',width: 220, "disabled": true}, |
| | | {field: 'ParentBoxNo',title: '父级箱号',align: 'center',fixed: 'left',width: 220, "disabled": true}, |
| | | {field: 'SkuNo',title: '物料编码',align: 'center',fixed: 'left',width: 140, "disabled": true }, |
| | |
| | | {field: 'Qty',title: '数量',align: 'center',width: 100,}, |
| | | {field: 'LotNo',title: '批次号',align: 'center',width: 155,}, |
| | | {field: 'LotText',title: '批次描述',align: 'center',width: 165}, |
| | | {field: 'AsnNo',title: '单据号',align: 'center',width: 155,}, |
| | | {field: 'IsUse',title: '是否使用',align: 'center',templet: '#templetIsUse',width: 90}, |
| | | {field: 'Level',title: '级别',align: 'center',width: 90}, |
| | | {field: 'ProductionTime',title: '生产日期',align: 'center',width: 160,templet: '#templetProductionTime'}, |
| | |
| | | } |
| | | var param = { |
| | | BoxNo: $("#BoxNo").val(), |
| | | // BoxNo2: $("#BoxNo2").val(), |
| | | BoxNo3: $("#BoxNo3").val(), |
| | | SkuNo: $("#SkuNo").val(), |
| | | LotNo: $("#LotNo").val(), |
| | |
| | | ProductionTime: $("#ProductionTime").val(), |
| | | InspectMark: $("#InspectMark").val(), |
| | | BitBoxMark: $("#BitBoxMark").val(), |
| | | // Origin: "录入", |
| | | }; |
| | | table.render({ |
| | | elem: '#Box-list', |
| | |
| | | id: 'Box-list', |
| | | where: param, |
| | | contentType: 'application/json', |
| | | toolbar: '#toolbarDemo', |
| | | defaultToolbar: [], //'filter','print', 'exports' |
| | | headers: { ToKen: $.cookie('token') }, |
| | | page: true, |
| | |
| | | }); |
| | | return msg; |
| | | } |
| | | // if ($("#BoxNo2").val() == "") { |
| | | // layer.msg("请输入盒码!", { |
| | | // icon: 2, |
| | | // time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | // }); |
| | | // return msg; |
| | | // } |
| | | if ($("#BoxNo3").val() == "") { |
| | | layer.msg("请输入支码!", { |
| | | icon: 2, |
| | |
| | | |
| | | var param = { |
| | | BoxNo: $("#BoxNo").val(), |
| | | // BoxNo2: $("#BoxNo2").val(), |
| | | BoxNo3: $("#BoxNo3").val(), |
| | | SkuNo: $("#SkuNo").val(), |
| | | LotNo: $("#LotNo").val(), |