#
luxiaotao1123
2021-03-12 166070c6d723a84036b78e653f4ccb6afa7e79c8
src/main/webapp/static/js/custOrder/custOrder.js
@@ -1,10 +1,31 @@
var pageCurr;
layui.use(['table','laydate', 'form'], function(){
function right(){
    top.popupRight = top.layui.admin.popupRight({
        id: 'LAY_adminPopupLayerTest'
        , area: '750px'
        , type: 2
        , 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();
        }
    });
}
layui.config({
    base: '../../layuiadmin/' //静态资源所在路径
}).extend({
    index: 'lib/index' //主入口模块
}).use(['table', 'laydate', 'form'], function(){
    var table = layui.table;
    var $ = layui.jquery;
    var layer = layui.layer;
    var layDate = layui.laydate;
    var form = layui.form;
    var admin = layui.admin;
    // 数据渲染
    tableIns = table.render({
@@ -22,8 +43,8 @@
//            ,{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: '经手人编号'}
            ,{field: 'userCode', align: 'center',title: '商品编号'}
            ,{field: 'qty', align: 'center',title: '商品数量'}
            ,{field: 'price', align: 'center',title: '商品单价'}
@@ -123,7 +144,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 {
@@ -206,12 +227,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();
                                    }
                                )