
<script>
    var form = 'deliver-form';
    var id = "{{ model.id }}";
    var url = '/act-order/prepare?id='+id;

    $('#' + form).form({
        url: url,
        onSubmit:function(){
            return $(this).form('enableValidation').form('validate');
        },
        success: function (data) {
            var data = eval('('+data+')');
            if (data.error == 0) {
                $.messager.alert('成功', data.message);
                setTimeout(function(){
                    parent.closeW