#
luxiaotao1123
2021-03-05 2f3992c0e26bc8252b18263be940df281b62aea1
#
4个文件已修改
86 ■■■■■ 已修改文件
src/main/java/zy/cloud/wms/manager/entity/result/StoPrintVo.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/zy/cloud/wms/manager/service/impl/WorkServiceImpl.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/custOrder/custOrder.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/custOrder/custOrder.html 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/zy/cloud/wms/manager/entity/result/StoPrintVo.java
@@ -15,4 +15,10 @@
    private List<Pakout> list;
    private Double total;
    private String custName;
    private String workerName;
}
src/main/java/zy/cloud/wms/manager/service/impl/WorkServiceImpl.java
@@ -88,9 +88,18 @@
    @Override
    public R stockOutPrint(StockOutParam param, Long userId) {
        List<Pakout> pakouts = pakoutService.selectList(new EntityWrapper<Pakout>().eq("doc_num", param.getNumber()));
        Double total = 0.0D;
        String custName = "";
        for (Pakout pakout : pakouts) {
            total = pakout.getAnfme() + total;
            custName = pakout.getCustName();
        }
        StoPrintVo vo = new StoPrintVo();
        vo.setDocNum(param.getNumber());
        vo.setList(pakouts);
        vo.setTotal(total);
        vo.setCustName(custName);
        vo.setWorkerName("陆晓涛");
        return R.ok().add(vo);
    }
src/main/webapp/static/js/custOrder/custOrder.js
@@ -266,7 +266,7 @@
            method: 'POST',
            success: function (res) {
                if (res.code === 200){
                    res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=2&param="+res.data.docNum;
                    res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=1&param="+res.data.docNum;
                    var tpl = $('#pakoutPrintTpl').html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
src/main/webapp/views/custOrder/custOrder.html
@@ -58,10 +58,77 @@
<iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe>
<div id="pakoutPrintBox" style="display: none"></div>
<!--<div id="print-contain">-->
<!--    &lt;!&ndash; 头 &ndash;&gt;-->
<!--    <div id="print-header">-->
<!--        &lt;!&ndash; 左 &ndash;&gt;-->
<!--        <div style="float: left; width: 80%">-->
<!--            <img class="template-code template-qrcode" src="{{data.barcodeUrl}}">-->
<!--            <p>XSSDSSSS-qwewqewq</p>-->
<!--        </div>-->
<!--        &lt;!&ndash; 右 &ndash;&gt;-->
<!--        <div style="float: left;width: 20%">-->
<!--            <div>捡货数量:<span>20</span></div>-->
<!--        </div>-->
<!--        <div style="float: left; width: 80%">-->
<!--            客户:<span>浙江中扬立库技术有限公司</span>-->
<!--        </div>-->
<!--        <div style="float: left; width: 20%">-->
<!--            捡货人:陆晓涛-->
<!--        </div>-->
<!--    </div>-->
<!--    <hr>-->
<!--    &lt;!&ndash; 主体 &ndash;&gt;-->
<!--    <div>-->
<!--        <div class="pakout-item">-->
<!--            <div class="item-header">-->
<!--                {{maktx}}-->
<!--            </div>-->
<!--            <div class="item-content">-->
<!--                <div style="float: left">{{anfme}}{{unit}}</div>-->
<!--                <div style="float: right">货位:{{locNo}}</div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
<!--</div>-->
</body>
<script type="text/template" id="pakoutPrintTpl">
    <img class="template-code template-qrcode" src="{{data.barcodeUrl}}" width="80%">
    <!-- 头 -->
    <div id="print-header">
        <!-- 左 -->
        <div style="float: left; width: 80%">
            <img class="template-code template-qrcode" src="{{data.barcodeUrl}}">
            <p>{{data.docNum}}</p>
        </div>
        <!-- 右 -->
        <div style="float: left;width: 20%">
            <div>捡货数量:<span>{{data.total}}</span></div>
        </div>
        <div style="float: left; width: 80%">
            客户:<span>{{data.custName}}</span>
        </div>
        <div style="float: left; width: 20%">
            捡货人:{{data.workerName}}
        </div>
    </div>
    <hr>
    <!-- 主体 -->
    <div>
        {{#each data.list}}
        <div class="pakout-item">
            <div class="item-header">
                {{maktx}}
            </div>
            <div class="item-content">
                <div style="float: left">{{anfme}}{{unit}}</div>
                <div style="float: right">货位:{{locNo}}</div>
            </div>
        </div>
        {{/each}}
    </div>
</script>
</html>