yzh
2022-06-30 a6a84e6f677447342e8c5984fdc0b52241b92ce3
web/web/GwClient.aspx
@@ -224,33 +224,35 @@
            //修改分配个性产品:修改确认
            $(document).on("click", ".action-updateProduct", function () {
                var productIdArray = [];
                mytek.confirm("是否需要修改客户分配个性产品?", "确认分配个性产品,请谨慎操作!", function (b) {
                    if (b) {
                        $("#updateProductDialog #_ProductId").each(function () {
                            if ($(this).is(":checked")) {
                                productIdArray.push($(this).val());
                            }
                        });
                //mytek.confirm("是否需要修改客户分配个性产品?", "确认分配个性产品,请谨慎操作!", function (b) {
                    //if (b) {
                if (confirm("是否需要修改客户分配个性产品?") == true) {
                    $("#updateProductDialog #_ProductId").each(function () {
                        if ($(this).is(":checked")) {
                            productIdArray.push($(this).val());
                        }
                    });
                        //var clientId = $("#updateProductDialog").data("id");
                        var clientId = $("#updateProductDialog input[name='clientID']").val();
                        $.ajax({
                            url: "GwClient.ashx",
                            type: "POST",
                            data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
                            success: function (result) {
                                if (result.OK) {
                                    $("#updateProductDialog").modal("hide");
                                    loadPageList();
                                } else {
                                    mytek.alert(result.Message, result.OK);
                                }
                    //var clientId = $("#updateProductDialog").data("id");
                    var clientId = $("#updateProductDialog input[name='clientID']").val();
                    $.ajax({
                        url: "GwClient.ashx",
                        type: "POST",
                        data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
                        success: function (result) {
                            if (result.OK) {
                                $("#updateProductDialog").modal("hide");
                                loadPageList();
                            } else {
                                mytek.alert(result.Message, result.OK);
                            }
                        });
                        }
                    });
                        //swal.close();
                    }
                });
                    //swal.close();
                    //}
                    //});
                }
            });