function submit(call) {
    let b ;
    var formData = $("#searchForm").serializeJson();
    if (formData.result == 0) {
        if (formData.remark == '') {
            layer.msg("请填写说明信息");
            return;
        }
    }
    formData.type = formData.result;
    $.ajax( {
        type: 'POST',
        url: g.ctx+"pc/order/pcn/approv/rest/addAgreeRecord",
        data: JSON.stringify(formData),
        dataType: 'json',
        contentType: "application/json; utf-8'",
        statusCode: {
            200: function () {
                topWin.layer.alert(common_opt_msg.opt_success_msg, {icon: 1}, function (idx) {
                    call() ;
                    topWin.layer.close(idx);
                });
            },
            400: function () {
                topWin.layer.alert("请求参数有误");
            },
            500: function () {
                topWin.layer.alert(common_opt_msg.opt_fail_msg);
            }
        }

    });
    return b ;
}


function cancel() {
    window.top.pcnList.closeAndRefreshPage();
}