自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-08 3b8d5759a3e2aaa170b848cc6a85d34274bd4f72
#
3个文件已修改
30 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/MatCodeController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/matCode/matCode.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/matCode/matCode.html 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MatCodeController.java
@@ -168,7 +168,7 @@
    // todo resource
    @RequestMapping(value = "/macCode/barcode/auth")
    @ManagerAuth(memo = "物料编码条形码获取")
//    @ManagerAuth(memo = "物料编码条形码获取")
    public R matCodeBarcode(@RequestParam String param, HttpServletResponse response) throws IOException {
        BufferedImage img = BarcodeUtils.encode(param);
        if (!ImageIO.write(img, "jpg", response.getOutputStream())) {
src/main/webapp/static/js/matCode/matCode.js
@@ -374,10 +374,11 @@
                layer.open({
                    type: 1,
                    title: '打印',
                    // area: ['500px', top.detailHeight],
                    shadeClose: true,
                    content: $('#printDataDiv'),
                    success: function(layero, index){
                        layer.iframeAuto(index);
                    },
                    end: function () {
                    }
src/main/webapp/views/matCode/matCode.html
@@ -22,6 +22,11 @@
        }
        /* ------------------------------------------------  */
        .template-preview {
            display: inline-block;
        }
        .contain {
            border: 1px solid #000;
            /*width: 100%;*/
@@ -123,8 +128,16 @@
<!-- 打印操作弹窗 -->
<div id="printDataDiv" style="display: none;padding: 20px">
    <div class="layui-form">
        <div id="template-container">
    <div class="layui-form" style="text-align: center">
        <!--单选框-->
        <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px">
            <input type="radio" name="sex" value="男" title="模板一" checked="">
            <input type="radio" name="sex" value="女" title="模板二">
            <input type="radio" name="sex" value="禁" title="模板三">
        </div>
        <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left">
            <legend>打印预览</legend>
            <div id="template-container" style="margin: 20px;text-align: center">
            <!-- 预览图 1 -->
            <div id="template-preview-1" class="template-preview">
                <table class="contain" height="317" width="317" style="overflow: hidden">
@@ -164,11 +177,9 @@
            <!-- 预览图 3 -->
            <div class="template-preview"></div>
        </div>
        <div class="select-template">
            <label><input type="radio" name="templateSelect" value="1" checked>模板一</label>
            <label><input type="radio" name="templateSelect" value="2">&nbsp;模板二</label>
        </div>
        <button class="layui-btn layui-btn-danger" id="doPrint" lay-submit lay-filter="doPrint">确定</button>
        </fieldset>
        <button class="layui-btn layui-btn-danger" id="doPrint" lay-submit lay-filter="doPrint" style="margin-top: 20px">确定</button>
    </div>
</div>