#
luxiaotao1123
2021-04-07 be51c67ce88a3b1fe0aee057f55883cb57b58be5
#
2个文件已修改
25 ■■■■■ 已修改文件
src/main/webapp/views/pda/matQuery.html 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/selectMat.html 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/matQuery.html
@@ -116,6 +116,10 @@
</body>
<script>
    var layer;
    layui.use(['layer'], function() {
        layer = layui.layer;
    })
    var countDom = $('#count');
    var initMatCount = 1;
    var pageCurr;
@@ -152,6 +156,13 @@
        })
    }
    function findBySelect(el) {
        $("#matnr").val(el.value);
        find(el);
        layer.close(matSelectIdx);
    }
    /**
     * 提取
     */
@@ -166,17 +177,17 @@
    }
    window.onload = function(){document.getElementById("matnr").focus();}
    var matSelectIdx;
    $(document).on('click','#selectBtn', function () {
        var matSelectIdx = parent.layer.open({
        matSelectIdx = layer.open({
            type: 2,
            title: '选择商品',
            title: false,
            area: ['100%', '100%'],
            content: 'selectMat.html',
            success: function(layero, index){
                // $('.layui-layer-title').css('font-size', '16px').css('background-color', '#fff');
                $('.layui-layer-setwin .layui-layer-close2').hide();
            }
        });
        parent.layer.full(matSelectIdx);
    })
    // $('body').keydown(function () {
src/main/webapp/views/pda/selectMat.html
@@ -116,7 +116,7 @@
    // 商品点击
    $(document).on('click','.box-mat-item', function () {
        var tagId = $(this).children('input').get(0).value;
        parent.findBySelect($(this).children('input').get(0))
    })
    // 展示归类
@@ -131,7 +131,6 @@
            success: function (res) {
                if (res.code === 200) {
                    if (res.data != null && res.data.length > 0) {
                        console.log(res.data)
                        var tplDom = $("#tagTpl");
                        var tpl = tplDom.html();
                        var template = Handlebars.compile(tpl);
@@ -165,7 +164,6 @@
            success: function (res) {
                if (res.code === 200) {
                    if (res.data != null && res.data.length > 0) {
                        console.log(res.data)
                        var tplDom = $("#matTpl");
                        var tpl = tplDom.html();
                        var template = Handlebars.compile(tpl);
@@ -196,7 +194,7 @@
<script type="text/template" id="matTpl">
    {{#each data}}
    <div class="box-mat-item">
        <input name="matId" type="hidden" value="{{this.id}}">
        <input name="matnr" type="hidden" value="{{this.matnr}}">
        <div class="box-mat-item-label">{{this.maktx}}</div>
    </div>
    {{/each}}