自动化立体仓库 - WMS系统
whycq
2023-07-24 b7e08df5a07b3fa832a46ecc31983e16f2bccc8c
src/main/webapp/views/pakStore/matQuery.html
@@ -27,7 +27,7 @@
    <div id="search-box" class="layui-form layui-card-header">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="mat_no" placeholder="物料编码" autocomplete="off">
                <input class="layui-input" type="text" name="mat_no" placeholder="产品编码" autocomplete="off">
            </div>
        </div>
        <!-- 日期范围 -->
@@ -67,7 +67,17 @@
</body>
<script>
    function getCol() {
        var cols = [
            {type: 'checkbox', fixed: 'left'}
        ];
        cols.push.apply(cols, matCols);
        cols.push(
            {field: 'modiUser$', align: 'center',title: '修改人员', hide: true},
            {field: 'modiTime$', align: 'center',title: '修改时间'}
        )
        return cols;
    }
    var pageCurr;
    layui.use(['table','laydate', 'form'], function() {
        var table = layui.table;
@@ -75,7 +85,7 @@
        var layer = layui.layer;
        var layDate = layui.laydate;
        var form = layui.form;
        // 物料查询数据表
        // 产品查询数据表
        matQueryTable = table.render({
            elem: '#matCode',
            headers: {token: localStorage.getItem('token')},
@@ -86,16 +96,7 @@
            even: true,
            cellMinWidth: 50,
            toolbar: '#toolbar',
            cols: [[
                {type: 'checkbox', fixed: 'left'},
                {field: 'matNo', align: 'center', title: '物料编码'},
                {field: 'barcode', align: 'center', title: '条码'},
                {field: 'matName', align: 'center', title: '物料名称'},
                {field: 'str1', align: 'center', title: '物料单位'},
                {field: 'str2', align: 'center', title: '物料规格'},
                {field: 'modiUser$', align: 'center',title: '修改人员', hide: true},
                {field: 'modiTime$', align: 'center',title: '修改时间'}
            ]],
            cols: [getCol()],
            request: {
                pageName: 'curr',
                pageSize: 'limit'
@@ -122,6 +123,10 @@
        table.on('toolbar(matCode)', function (obj) {
            var checkStatus = table.checkStatus(obj.config.id);
            var data = checkStatus.data;
            for(i=0;i<data.length;i++){
                data[i].supplier='0';
            }
            // debugger
            switch(obj.event) {
                case 'confirm':
                    if (data.length === 0){