var self = this
var page = {
    tableEditIndex: -1,

    update: function (call) {
        let validate = $('#form').form('validate');
        if (!validate) {
            topWin.layer.msg("必填项不得为空!");
            return false;
        }
        var formData = $('#form').serializeJson();
        var id = formData.id;
        var assessType = formData.assessType
        var specialRemark = formData.specialRemark;
        debugger;
        $.ajax({
            url: g.ctx + 'pc/supplier/invitation/rest/updateReview',
            method: "post",
            data: {id:id,assessType:assessType,specialRemark:specialRemark},
            success: function (data) {
                topWin.layer.alert("保存成功", {icon: 1}, function (idx) {
                    topWin.layer.close(idx);
                    call()
                });
            },
            error: function (data) {
                topWin.layer.alert(data.responseJSON.message, {icon: 2});
            }
        });
    }


}
