#
luxiaotao1123
2021-03-05 3e764a41adfd59ea1b94b80363847440e577bdc6
#
2个文件已修改
31 ■■■■■ 已修改文件
src/main/webapp/static/js/custOrder/custOrder.js 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/custOrder/custOrder.html 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/custOrder/custOrder.js
@@ -33,7 +33,7 @@
            ,{field: 'updateTime$', align: 'center',title: '修改时间'}
            // ,{field: 'memo', align: 'center',title: '备注'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:100}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 120}
        ]],
        request: {
            pageName: 'curr',
@@ -243,24 +243,12 @@
                    }
                });
                break;
            // 编辑
            case 'edit':
                layer.open({
                    type: 2,
                    title: '修改',
                    maxmin: true,
                    area: [top.detailWidth, top.detailHeight],
                    content: 'custOrder_detail.html',
                    success: function(layero, index){
                        layer.getChildFrame('#data-detail-submit-save', index).hide();
                        setFormVal(layer.getChildFrame('#detail', index), data, false);
                        top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false);
                        top.convertDisabled(layer.getChildFrame('', index), true);
                        layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"});
                        layero.find('iframe')[0].contentWindow.layui.form.render('select');
                        layero.find('iframe')[0].contentWindow.layui.form.render('checkbox');
                    }
                });
            // 打印
            case 'print':
                layer.confirm('开始打印' +data.number + ' 捡货单?', {shadeClose: true}, function(){
                    layer.closeAll();
                    printPakouts(data.number);
                })
                break;
        }
src/main/webapp/views/custOrder/custOrder.html
@@ -41,7 +41,10 @@
<script type="text/html" id="operate">
    {{#if (d.status == 1){ }}
        <a class="layui-btn layui-btn-sm" lay-event="stockOut" style="font-size: 16px">捡货</a>
        <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stockOut" style="font-size: 16px">捡货</a>
    {{# } }}
    {{#if (d.status == 2){ }}
        <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="print" style="font-size: 16px">打印</a>
    {{# } }}
</script>