yusijie
2023-04-23 ebda0f288bfbd60baca5e790dbe3faf5b6ace455
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Gy_BarCodeBillList.html
@@ -137,16 +137,21 @@
                    case 'btn-Delete':                        
                        var checkStatus = table.checkStatus('mainTable')
                            , data = checkStatus.data;
                        if (checkStatus.data.length == 0) {
                            layer.msg('请选择要删除的数据!');
                        if (checkStatus.data.length == 0 || checkStatus.data.length > 300) {
                            layer.msg('请选择要删除的数据,且选中行数不能超过300行!');
                            return;
                        }
                        var mainid = "";
                        var BarCode = "";
                        for (i = 0; i < data.length; i++) {
                            mainid += data[i].hmainid.toString() + ",";
                            BarCode += data[i].条码编号.toString() + ",";
                        }
                        mainid = mainid.substring(0, mainid.length - 1)
                        var oData = JSON.stringify(mainid) + ";" + sessionStorage["HUserName"];
                        BarCode = BarCode.substring(0, BarCode.length - 1)
                        var oData = JSON.stringify(mainid) + ";" + sessionStorage["HUserName"] + ";" + JSON.stringify(BarCode);
                        //逻辑删除方法
                        layer.confirm("确认要删除吗,删除后不能恢复", { title: "删除确认" }, function (index) {