| | |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <meta name="viewport" content="width=device-width, target-densitydpi=high-dpi, initial-scale=1.0, user-scalable=no"/> |
| | | <title>出库</title> |
| | | <title>Outbound</title> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/pda.css" media="all"> |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script> |
| | | <script type="text/javascript" src="../../static/i18n/i18n.js"></script> |
| | | <style> |
| | | .layui-input-block { |
| | | margin-left: 60px; |
| | |
| | | <!-- 头部 --> |
| | | <header class="layui-form"> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">库位</label> |
| | | <label class="layui-form-label" data-i18n="pda_location">库位</label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" type="number" id="locNo" onkeyup="findByLocNo(this)" autocomplete="off"> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">物料</label> |
| | | <label class="layui-form-label" data-i18n="pda_material">物料</label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" type="text" id="matNo" onkeyup="findByMatNo(this)" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">出库口</label> |
| | | <label class="layui-form-label" data-i18n="pda_outbound_station">出库口</label> |
| | | <div class="layui-input-inline" style="margin-left: 5px;width: 120px"> |
| | | <select id="staNoSelect"> |
| | | <option value="">请选择</option> |
| | | <option value="" data-i18n="pda_please_select">请选择</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | <!-- 尾部 --> |
| | | <footer> |
| | | <div class="layui-btn-container"> |
| | | <button id="reset" type="button" class="layui-btn layui-btn-primary" onclick="reset()">重置</button> |
| | | <button id="pakOut" type="button" class="layui-btn layui-btn-normal" onclick="pakOut()" style="margin-left: 20px">出库</button> |
| | | <button id="reset" type="button" class="layui-btn layui-btn-primary" onclick="reset()" data-i18n="pda_reset">重置</button> |
| | | <button id="pakOut" type="button" class="layui-btn layui-btn-normal" onclick="pakOut()" style="margin-left: 20px" data-i18n="pda_outbound">出库</button> |
| | | <span id="tips"></span> |
| | | </div> |
| | | </footer> |
| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox', fixed: 'left', width:30}, |
| | | {field: 'count', align: 'center', title: '数量', event: 'detail', style:'color: blue', width:50}, |
| | | {field: 'matnr', align: 'center', title: '编码', event: 'detail'}, |
| | | {field: 'maktx', align: 'center', title: '名称', event: 'detail'}, |
| | | {field: 'locNo', align: 'center', title: '库位', event: 'detail'} |
| | | {field: 'count', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_quantity') : '数量', event: 'detail', style:'color: blue', width:50}, |
| | | {field: 'matnr', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_code') : '编码', event: 'detail'}, |
| | | {field: 'maktx', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_name') : '名称', event: 'detail'}, |
| | | {field: 'locNo', align: 'center', title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_location') : '库位', event: 'detail'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | } |
| | |
| | | case 'detail': |
| | | layer.open({ |
| | | type: 2, |
| | | title: '库存明细', |
| | | title: (typeof I18n !== 'undefined' && I18n.t) ? I18n.t('pda_stock_detail') : '库存明细', |
| | | shade: [0.3,'#000'], |
| | | area: ['90%', '70%'], |
| | | content: 'locDetlIframe.html', |
| | |
| | | function pakOut() { |
| | | var tableData = layui.table.checkStatus('tableIdx').data; |
| | | if (tableData.length === 0) { |
| | | tips("请选择物料", true); |
| | | tips("please_select_material", true); |
| | | return; |
| | | } |
| | | var site = $('#staNoSelect').val(); |
| | | if (null === site || undefined === site || site === "") { |
| | | tips("请选择出库口", true); |
| | | tips("please_select_outbound_station", true); |
| | | return; |
| | | } |
| | | $.ajax({ |