#
luxiaotao1123
2021-03-12 2d28053beec1de1e98b442b6af3734cea7fd0949
src/main/webapp/static/js/custOrder/custOrder.js
@@ -1,14 +1,16 @@
var pageCurr;
function right(){
    top.layui.admin.popupRight({
    top.popupRight = top.layui.admin.popupRight({
        id: 'LAY_adminPopupLayerTest'
        , area: '750px'
        , type: 2
        ,content:'custOrder/matQuery.html'
        ,success: function(){
        , content:'custOrder/matQuery.html'
        , success: function(){
            // $('#'+ this.id).html('<div style="padding: 20px;">放入内容</div>');
            //admin.view(this.id).render('system/xxx')
        }
        , end: function () {
            $(".layui-laypage-btn")[0].click();
        }
    });
}
@@ -40,16 +42,17 @@
            {type: 'checkbox'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'number', align: 'center',title: '销售单号'}
            ,{field: 'billDate', align: 'center',title: '单据日期'}
            ,{field: 'bTypeId', align: 'center',title: '客户编号'}
            ,{field: 'eTypeId', align: 'center',title: '经手人编号'}
            ,{field: 'btypeId', align: 'center',title: '客户编号'}
            ,{field: 'etypeId', align: 'center',title: '经手人编号', hide: true}
            ,{field: 'userCode', align: 'center',title: '商品编号'}
            ,{field: 'qty', align: 'center',title: '商品数量'}
            ,{field: 'price', align: 'center',title: '商品单价'}
            ,{field: 'comment', align: 'center',title: '商品备注'}
            ,{field: 'status$', align: 'center',title: '状态'}
            ,{field: 'price', align: 'center',title: '商品单价', hide: true}
            ,{field: 'comment', align: 'center',title: '商品备注', hide: true}
            ,{field: 'status$', align: 'center',title: '状态', templet: '#statusTpl', width: 100}
            ,{field: 'billDate', align: 'center',title: '单据日期'}
            // ,{field: 'createTime$', align: 'center',title: '添加时间'}
            ,{field: 'updateTime$', align: 'center',title: '修改时间'}
            ,{field: 'updateTime$', align: 'center',title: '修改时间', hide: true}
            // ,{field: 'memo', align: 'center',title: '备注'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 120}
@@ -142,7 +145,7 @@
                            success: function (res) {
                                if (res.code === 200){
                                    layer.closeAll();
                                    tableReload(false);
                                    $(".layui-laypage-btn")[0].click();
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {
@@ -225,12 +228,12 @@
                            } else if (res.code === 20001) {
                                layer.confirm(res.msg, {
                                        shadeClose: true
                                        , btn: ['库存调拨', '打印']
                                        , btn: ['库存调拨', '取消']
                                    }, function() {
                                        // todo 库存调拨
                                        layer.closeAll();
                                    }, function() {
                                        printPakouts(data.number);
                                        // printPakouts(data.number);
                                        layer.closeAll();
                                    }
                                )