yangle
2022-03-17 8ea89cb4b1fe63c363a51515267e68dad5bed07a
拣料单
5个文件已修改
210 ■■■■ 已修改文件
WebTM/views/生产管理/拣料配送单/JIT_ComplementGoodsBill.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/拣料配送单/JIT_ComplementGoodsList.html 51 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产叫料平台/JIT_ComplementGoodBillMain.html 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产叫料平台/JIT_HlpBillList.html 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/退料申请单/JIT_CallGoodsBackRequestBillList.html 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Éú²ú¹ÜÀí/¼ðÁÏÅäË͵¥/JIT_ComplementGoodsBill.html
@@ -205,9 +205,9 @@
            var ajaxLoad = layer.load();
            $.ajax({
                url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList',
                url: GetWEBURL() + '/Sc_ComplementGoods/ComplementGoodsBill',
                type: "GET",
                data: { "sWhere": sWhere, "user": "Admin" },
                data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
@@ -233,7 +233,7 @@
            $.ajax({
                url: GetWEBURL() + '/Sc_ComplementGoodBill/ComplementGoodBillList',
                type: "GET",
                data: { "sWhere": sWhere, "user": "Admin" },
                data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                success: function (data1) {
                    if (data1.count == 1) {
                        option1.data = data1.data;
WebTM/views/Éú²ú¹ÜÀí/¼ðÁÏÅäË͵¥/JIT_ComplementGoodsList.html
@@ -257,46 +257,23 @@
                , limit: 50
                , limits: [50, 500, 5000, 20000]
                , cols: [[
                    //{ type: 'checkbox', fixed: 'left' }
                     { field: '销售订单号', title: '销售订单号',width: 150 }
                    , { field: '生产订单号', title: '生产订单号', width: 170}
                    , { field: '产品代码', title: '产品代码', width: 170 }
                    , { field: '产品名称', title: '产品名称', width: 260, }
                    , { field: '产品规格型号', title: '产品规格型号', width: 160 }
                    , { field: '生产车间', title: '生产车间', width: 160 }
                    , { field: '计划开工日期', title: '计划开工日期', width: 160, templet: "<div>{{d.计划开工日期 ==null ?'':layui.util.toDateString(d.计划开工日期, 'yyyy-MM-dd')}}</div>" }
                    { type: 'checkbox', fixed: 'left' }
                    , { field: '拣料单日期', title: '拣料单日期', width: 150, templet: "<div>{{d.拣料单日期 ==null ?'':layui.util.toDateString(d.拣料单日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '拣料配送单号', title: '生产订单号', width: 170 }
                    , { field: '配送人', title: '配送人', width: 170 }
                    , { field: '制单人', title: '制单人', width: 260, }
                    , { field: '制单日期', title: '制单日期', width: 160, templet: "<div>{{d.制单日期 ==null ?'':layui.util.toDateString(d.制单日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '物料代码', title: '物料代码', width: 160 }
                    , { field: '物料名称', title: '物料名称', width: 160 }
                    , { field: '规格型号', title: '规格型号', width: 160 }
                    , { field: '子项单位', title: '子项单位', width: 160 }
                    , { field: '单位用量', title: '单位用量', width: 160}
                    , { field: '计划发料数量', title: '计划发料数量', width: 160 }
                    , { field: '叫料数量', title: '叫料数量', width: 160, edit: 'text'}
                    , { field: '退料数量', title: '退料数量', width: 160, edit: 'text'}
                    , { field: '退料原因', title: '退料原因', width: 160, edit: 'text'}
                    , { field: '已叫料数量', title: '已叫料数量', width: 160}
                    , { field: '已配送数量', title: '已配送数量', width: 160 }
                    , { field: '调出仓库', title: '调出仓库', width: 160, edit: 'text', event: 'Warehouse' }
                    , { field: '调出仓库id', title: '调出仓库id', width: 160, hide: true }
                    , { field: '库存数量', title: '库存数量', width: 160 }
                    , { field: '调出仓库库存数量', title: '调出仓库库存数量', width: 160 }
                    , { field: '调出仓库可用库存数量', title: '调出仓库可用库存数量', width: 160 }
                    , { field: '可用库存', title: '可用库存', width: 160 }
                    , { field: '库存组织', title: '库存组织', width: 160}
                    , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 }
                    , { field: '源单主内码', title: '源单主内码', width: 160 }
                    , { field: '源单子内码', title: '源单子内码', width: 160 }
                    , { field: 'HDeptID', title: 'HDeptID', hide: true }
                    , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true }
                    , { field: 'HMaterialID', title: 'HMaterialID', hide: true }
                    , { field: 'HWHID', title: 'HWHID', hide: true }
                    , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true }
                    , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true }
                    , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true }
                    , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true }
                    , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true }
                    , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true }
                    , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true }
                    , { field: '拣料数量', title: '拣料数量', width: 160 }
                    , { field: '已调拨数量', title: '已调拨数量', width: 160 }
                    , { field: '计量单位', title: '计量单位', width: 160 }
                    , { field: '车间', title: '车间', width: 160 }
                    , { field: '工段', title: '工段', width: 160 }
                    , { field: '备注', title: '备注', width: 160 }
                    , { field: '调出仓库', title: '调出仓库', width: 160 }
                    , { field: '调出仓位', title: '调出仓位', width: 160 }
                ]]
            };
        }
WebTM/views/Éú²ú¹ÜÀí/Éú²ú½ÐÁÏÆ½Ì¨/JIT_ComplementGoodBillMain.html
@@ -243,7 +243,11 @@
        form.on('submit(Bftl)', function () {
            set_AddNew_Bftl();
        })
        //新增拣料单
        form.on('submit(Scjld)', function () {
            set_AddNew_Scjld();
        })
        //下查
        form.on('submit(Xc)', function () {
@@ -285,6 +289,7 @@
            })
        }
        //表格数据
        function set_InitGrid() {
            option = {
                elem: '#mainTable'
@@ -672,6 +677,45 @@
            }
        }
         //新增拣料单
        function set_AddNew_Scjld() {
            if (table.cache['mainTable'].length == 0) {
                return layer.msg("无数据,无法拣料!");
            }
            else {
                layer.confirm('确定要生成拣料单?', {
                    btn: ['确定', '取消'] //按钮
                    , btn1: function () {
                        var sMainStr = JSON.stringify(table.cache['mainTable']) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"];//sessionStorage["HUserName"]
                        $.ajax(
                            {
                                type: "POST",
                                url: GetWEBURL() + "Sc_ComplementGoodBill/Insert_JL_ICStockTuiBill", //方法所在页面和方法名
                                async: true,
                                data: { "msg": sMainStr },
                                dataType: "json",
                                success: function (data) {
                                    if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        layer.msg(data.Message, { icon: 1 });
                                        $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
                                    }
                                    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);
                                }
                            });
                    }
                })
            }
        }
        //下查
        function getXc() {
            var CheckStatus = table.checkStatus("mainTable");
WebTM/views/Éú²ú¹ÜÀí/Éú²ú½ÐÁÏÆ½Ì¨/JIT_HlpBillList.html
@@ -78,6 +78,11 @@
        //#region è§¦å‘事件:包括form.on(){}格式的所有点击事件、选择事件等
        //退出
        form.on('submit(Cancel)', function () {
            Pub_Close(1);
        })
        //行内事件
        table.on('tool(mainTable)', function (obj) {
            set_GridCellCheck(obj); //行内快捷键筛选
@@ -102,52 +107,30 @@
            option = {
                elem: '#mainTable'
                //, toolbar: '#toolbarDemo'
                , height: 350
                , height: 550
                , page: true
                , cellMinWidth: 90
                , limit: 50
                , limits: [50, 500, 5000, 20000]
                , cols: [[
                    { type: 'checkbox', fixed: 'left' }
                    , { field: '销售订单号', title: '销售订单号',width: 150 }
                    , { field: '生产订单号', title: '生产订单号', width: 170}
                    , { field: '产品代码', title: '产品代码', width: 170 }
                    , { field: '产品名称', title: '产品名称', width: 260, }
                    , { field: '产品规格型号', title: '产品规格型号', width: 160 }
                    , { field: '生产车间', title: '生产车间', width: 160 }
                    , { field: '计划开工日期', title: '计划开工日期', width: 160, templet: "<div>{{d.计划开工日期 ==null ?'':layui.util.toDateString(d.计划开工日期, 'yyyy-MM-dd')}}</div>" }
                   /* { type: 'checkbox', fixed: 'left' }*/
                    { field: 'HBillType', title: 'HBillType',width: 150 }
                    , { field: '是否检料', title: '是否检料', width: 170}
                    , { field: '叫料单单号', title: '叫料单单号', width: 170 }
                    , { field: '组织', title: '组织', width: 260, }
                    , { field: '调出组织', title: '调出组织', width: 160 }
                    , { field: '日期', title: '日期', width: 160, templet: "<div>{{d.日期 ==null ?'':layui.util.toDateString(d.日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '销售订单', title: '销售订单', width: 160 }
                    , { field: '生产订单', title: '生产订单', width: 160}
                    , { field: '用料清单号', title: '用料清单号', width: 160 }
                    , { field: '物料代码', title: '物料代码', width: 160 }
                    , { field: '物料名称', title: '物料名称', width: 160 }
                    , { field: '规格型号', title: '规格型号', width: 160 }
                    , { field: '子项单位', title: '子项单位', width: 160 }
                    , { field: '单位用量', title: '单位用量', width: 160}
                    , { field: '计划发料数量', title: '计划发料数量', width: 160 }
                    , { field: '叫料数量', title: '叫料数量', width: 160, edit: 'text'}
                    , { field: '退料数量', title: '退料数量', width: 160, edit: 'text'}
                    , { field: '退料原因', title: '退料原因', width: 160, edit: 'text'}
                    , { field: '已叫料数量', title: '已叫料数量', width: 160}
                    , { field: '已配送数量', title: '已配送数量', width: 160 }
                    , { field: '调出仓库', title: '调出仓库', width: 160, edit: 'text', event: 'Warehouse' }
                    , { field: '调出仓库id', title: '调出仓库id', width: 160, hide: true }
                    , { field: '库存数量', title: '库存数量', width: 160 }
                    , { field: '调出仓库库存数量', title: '调出仓库库存数量', width: 160 }
                    , { field: '调出仓库可用库存数量', title: '调出仓库可用库存数量', width: 160 }
                    , { field: '可用库存', title: '可用库存', width: 160 }
                    , { field: '库存组织', title: '库存组织', width: 160}
                    , { field: 'HICMOBillNo', title: 'HICMOBillNo', width: 160 }
                    , { field: '源单主内码', title: '源单主内码', width: 160 }
                    , { field: '源单子内码', title: '源单子内码', width: 160 }
                    , { field: 'HDeptID', title: 'HDeptID', hide: true }
                    , { field: 'HDeptNumber', title: 'HDeptNumber', hide: true }
                    , { field: 'HMaterialID', title: 'HMaterialID', hide: true }
                    , { field: 'HWHID', title: 'HWHID', hide: true }
                    , { field: 'HOutOrgID', title: 'HOutOrgID', hide: true }
                    , { field: 'HSouceInterID', title: 'HSouceInterID', hide: true }
                    , { field: 'HSourceEntryID', title: 'HSourceEntryID', hide: true }
                    , { field: 'HSourceBillNo', title: 'HSourceBillNo', hide: true }
                    , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true }
                    , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true }
                    , { field: 'HSTOCKID', title: 'HSTOCKID', hide: true }
                    , { field: '叫料数量', title: '叫料数量', width: 160 }
                    , { field: '叫料人', title: '叫料人', width: 160}
                    , { field: '叫料日期', title: '叫料日期', width: 160, templet: "<div>{{d.叫料日期 ==null ?'':layui.util.toDateString(d.叫料日期, 'yyyy-MM-dd')}}</div>" }
                    , { field: '部门', title: '部门', width: 160}
                    , { field: '仓库', title: '仓库', width: 160 }
                    , { field: '工段', title: '工段', width: 160}
                ]]
            };
        }
WebTM/views/Éú²ú¹ÜÀí/ÍËÁÏÉêÇëµ¥/JIT_CallGoodsBackRequestBillList.html
@@ -218,34 +218,24 @@
                        , { field: '关闭类型', title: '关闭类型', width: 170 }
                        , { field: '作废人', title: '作废人' }
                        , { field: '作废日期', title: '作废日期', width: 200, templet: "<div>{{d.作废日期 ==null ?'':layui.util.toDateString(d.作废日期, 'yyyy-MM-dd')}}</div>" }
                        , { field: '源单类型', title: '源单类型', width: 170 }
                        , { field: '源单子内码', title: '源单子内码', width: 170 }
                        , { field: '源单号', title: '源单号', width: 170 }
                        , { field: '打印次数', title: '打印次数', width: 170 }
                        , { field: '退料人代码', title: '退料人代码', width: 170 }
                        , { field: '退料人', title: '退料人', width: 170 }
                        , { field: '搬运人代码', title: '搬运人代码', width: 170 }
                        , { field: '搬运人', title: '搬运人', width: 170 }
                        , { field: '验收人代码', title: '验收人代码', width: 170 }
                        , { field: '验收人', title: '验收人', width: 170 }
                        , { field: '退料模式', title: '叫料模式', width: 170 }
                        , { field: '表体备注', title: '表体备注', width: 170 }
                        , { field: '源单单号', title: '源单单号', width: 170 }
                        , { field: '物料代码', title: '物料代码', width: 170 }
                        , { field: '物料名称', title: '物料名称', width: 170 }
                        , { field: '规格型号', title: '规格型号', width: 170 }
                        , { field: '责任部门代码', title: '责任部门代码', width: 170 }
                        , { field: '责任部门名称', title: '责任部门名称', width: 170 }
                        , { field: '调入仓库', title: '调入仓库', width: 170 }
                        , { field: '调入仓位', title: '调入仓位', width: 215 }
                        , { field: '调出仓库', title: '调出仓库', width: 215 }
                        , { field: '调出仓位', title: '调出仓位', width: 215 }
                        , { field: '退回数量', title: '退回数量', width: 170 }
                        , { field: '工序代码', title: '工序代码', width: 170 }
                        , { field: '工序名称', title: '工序名称', width: 170 }
                        , { field: '退料原因', title: '退料原因', width: 170 }
                        , { field: '供应商代码', title: '供应商代码', width: 170 }
                        , { field: '供应商名称', title: '供应商名称', width: 170 }
                        , { field: '退料人', title: '退料人', width: 160 }
                        , { field: '搬运人', title: '搬运人', width: 160 }
                        , { field: '验收人', title: '验收人', width: 160 }
                        , { field: '调出组织', title: '调出组织', width: 160 }
                        , { field: '调入组织', title: '调入组织', width: 160 }
                        , { field: '退料模式', title: '退料模式', width: 160 }
                        , { field: '源单单号', title: '源单单号', width: 160 }
                        , { field: '物料代码', title: '物料代码', width: 160 }
                        , { field: '物料名称', title: '物料名称', width: 160 }
                        , { field: '规格型号', title: '规格型号', width: 160 }
                        , { field: '退回数量', title: '退回数量', width: 160 }
                        , { field: '仓库代码', title: '仓库代码', width: 160 }
                        , { field: '调入仓库', title: '调入仓库', width: 160 }
                        , { field: '调入仓位', title: '调入仓位', width: 160 }
                        , { field: '调出仓库', title: '调出仓库', width: 160 }
                        , { field: '调出仓位', title: '调出仓位', width: 160 }
                        , { field: '责任部门代码', title: '责任部门代码', width: 160 }
                        , { field: '责任部门名称', title: '责任部门名称', width: 160 }
                    ]]
                };
            }