WebTM/views/Éú²ú¹ÜÀí/¼ðÁÏÅäË͵¥/JIT_ComplementGoodsBill.html
@@ -146,7 +146,7 @@
        //仓库发料
        form.on('submit(Ckfl)', function () {
            get_Ckfl();
        })
        //行内事件
@@ -172,7 +172,7 @@
            option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                , height: 400
                , height: 420
                , page: true
                , cellMinWidth: 90
                , limit: 50
@@ -262,7 +262,7 @@
            option1 = {
                elem: '#mainTable1'
                //, toolbar: '#toolbarDemo'
                , height: 350
                , height: 420
                , page: true
                , cellMinWidth: 90
                , limit: 50
@@ -336,6 +336,47 @@
            return vars;
        }
        //仓库发料
        function get_Ckfl() {
            if (table.cache['mainTable1'].length == 0) {
                return layer.msg("无数据,无法发料!");
            }
            else {
                layer.confirm("确定要配送生成调拨单", {
                    btn: ['确定', '取消']
                    , btn1: function (index) {
                        $('#Ckfl').addClass("layui-btn-disabled").attr("disabled", true); //仓库发料按钮禁止
                        layer.close(index);
                        var sMainStr = JSON.stringify(table.cache['mainTable1']) + ";" + sessionStorage["HUserName"] + ";" + $("#HInterID").val() + ";" + $("#HRemark").val();//sessionStorage["HUserName"]
                        $.ajax(
                            {
                                type: "POST",
                                url: GetWEBURL() + "/Sc_ComplementGoods/JIT_SendGoodsBill", //方法所在页面和方法名
                                async: true,
                                data: { "msg": sMainStr },
                                dataType: "json",
                                success: function (data) {
                                    if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        layer.msg(data.Message, { icon: 1 });
                                    }
                                    else {
                                        layer.alert(data.Message, { icon: 5 });
                                        console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable));
                                    }
                                    layer.closeAll("loading");
                                },
                                error: function (err) {
                                    layer.alert("错误:" + err, { icon: 5 });
                                    console.log("Reason" + sMainStr);
                                }
                            });
                    }
                })
            }
        }
        //#endregion
    });