yusijie
2 天以前 ebd9bda7e25c054edccba6854bb1171b758a7ace
香囊标签打印过站优化
1个文件已修改
36 ■■■■ 已修改文件
WebTM/views/车间管理/单品过站_小卫/Cj_SachetBarCodePrint.html 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/³µ¼ä¹ÜÀí/µ¥Æ·¹ýÕ¾_СÎÀ/Cj_SachetBarCodePrint.html
@@ -351,7 +351,7 @@
                                //自动打印
                                if (option.data.length > 0) {
                                    get_BatchPrint();
                                    get_BatchPrint(HICMOInterID, HICMOEntryID);
                                }                                
                            }
                            else {
@@ -369,18 +369,18 @@
            //批量打印
            var time;
            var num = 0;
            function get_BatchPrint() {
            function get_BatchPrint(HICMOInterID, HICMOEntryID) {
                //打印间隔
                var HTime = $("#HTime").val();
                time = setInterval(function () {
                    dy_PL(option.data);
                    dy_PL(HICMOInterID, HICMOEntryID, option.data);
                }, HTime*1000);
            }
            function dy_PL(rest) {
                var HItemID = rest[num].HBarCodeID.toString();
                var sWhere = "select top 1 HBarCode æ¡ç ç¼–号,isnull(ms.HCusRelationNumber,'') SKU from Gy_BarCodeBill a with(nolock) left join Gy_Material m with(nolock) on a.HMaterID = m.HItemID left join Gy_MateNumRelation_Sec ms with(nolock) on m.HMASTERID = ms.HMaterID where a.HItemID = " + HItemID
            function dy_PL(HICMOInterID, HICMOEntryID,rest) {
                //var HItemID = rest[num].HBarCodeID.toString();
                var sWhere = "select top 1 a.HItemID,HBarCode æ¡ç ç¼–号,isnull(ms.HCusRelationNumber,'') SKU from Gy_BarCodeBill a with(nolock) left join Gy_Material m with(nolock) on a.HMaterID = m.HItemID left join Gy_MateNumRelation_Sec ms with(nolock) on m.HMASTERID = ms.HMaterID where a.HSourceInterID = " + HICMOInterID + " and a.HSourceEntryID = " + HICMOEntryID + " and a.HPrintQty = 0 order by a.HItemID asc";
                $.ajax({
                    type: "GET",
@@ -427,18 +427,18 @@
                                    num++;
                                }
                                //var sql = "update a set HPrintQty = HPrintQty + 1 from Gy_BarCodeBill a with(nolock) where HItemID = " + HInterID ;
                                //$.ajax({
                                //    type: "GET",
                                //    url: GetWEBURL() + "/Gy_SOPBillList/UpDelSQL", //方法所在页面和方法名
                                //    async: false,
                                //    data: { "sWhere": sql },
                                //    success: function (result) {
                                //        if (result.data.code != 1) {
                                //            layer.alert("更新打印日期异常:" + result.data.Message);
                                //        }
                                //    }
                                //})
                                var sql = "update a set HPrintQty = HPrintQty + 1 from Gy_BarCodeBill a with(nolock) where HItemID = " + data.data[0].HItemID;
                                $.ajax({
                                    type: "GET",
                                    url: GetWEBURL() + "/Gy_SOPBillList/UpDelSQL", //方法所在页面和方法名
                                    async: false,
                                    data: { "sWhere": sql },
                                    success: function (result) {
                                        //if (result.data.code != 1) {
                                        //    layer.alert("更新打印日期异常:" + result.data.Message);
                                        //}
                                    }
                                })
                            } else {
                                layer.msg("查无数据!");