yusijie
2023-05-31 b94b49249478ac97272aa545439c682e70143e32
其他入库扫码删除
1个文件已修改
61 ■■■■■ 已修改文件
WebTM/views/验收入库/其他入库/Kf_OtherInBill_Fast.html 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_Fast.html
@@ -1107,6 +1107,65 @@
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                var HBillType = '1203'
                var HDeleteFlag = sBarCode.substring(0, 1);
                if (HDeleteFlag == "*") {
                    if (sBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    var sBarCode_Del = sBarCode.slice(1);
                    $.ajax(
                        {
                            type: "Get",
                            url: GetWEBURL() + "/ProductIn/Delete_Json",
                            async: true,
                            data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": HBillType, "HBarCode": sBarCode_Del },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                    playSound1();
                                    table.render({
                                        elem: '#wl-table'
                                        , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                        //, toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , page: true
                                        , limit: 100
                                        , where: { HBillID: sInterID, HBillType: '1203', sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
                                            , { field: 'HQty', title: '数量', width: 150 }
                                            , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                                            , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                            , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                            , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                            //, { field: 'HBatchNo', title: '批次', width: 150 }
                                            , { field: 'HBarcodeQtys', title: '条码数量', width: 150 }
                                        ]]
                                        // , data: [linterid]
                                        // , page: true
                                        , height: 500
                                        , done: function () {
                                            layer.closeAll("loading");
                                        }
                                    })
                                    //清空数量
                                    $("#HQty").val("");
                                }
                                else {
                                    playSound();
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            },
                            error: function (err) {
                                playSound();
                                layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        });
                } else {
                //判断条码是否为空  new
                if (sBarCode == '') {
                    playSound();
@@ -1117,6 +1176,7 @@
                    $('#HBarCode').val("");
                    //sessionStorage["SourceFlag"] = false;
                }
                //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                $.ajax({
                    //url: "http://localhost:12761/OtherInStockBill/get_InfoByBarCode_Source_Json", //方法所在页面和方法名
@@ -1285,6 +1345,7 @@
                    }
                });
            }
            }
            function playSound() {
                //var audio = document.getElementById("cs");
                //if (audio == null)