7ff38f35 by wang

init

1 parent 9ed942f7
...@@ -44,12 +44,15 @@ ...@@ -44,12 +44,15 @@
44 <script> 44 <script>
45 45
46 function pass(id) { 46 function pass(id) {
47 var data = $("#form1").serializeJson(); 47 // var data = $("#form1").serializeJson();
48 var data = {
49 realRepaymentDate: $("input[name='realRepaymentDate']").val()
50 };
48 console.log(data); 51 console.log(data);
49 $.ajax({ 52 $.ajax({
50 type: 'patch', 53 type: 'patch',
51 // url: apiBaseUrl + 'manage/financial/confirm/' + id + '?realRepaymentDate=' + Date.now(), 54 // url: apiBaseUrl + 'manage/financial/confirm/' + id + '?realRepaymentDate=' + Date.now(),
52 url: apiBaseUrl + 'manage/financial/confirm/' + $('#id').val()+ '?realRepaymentDate=', 55 url: apiBaseUrl + 'manage/financial/confirm/' + $('#id').val()+ '?realRepaymentDate='+$("input[name='realRepaymentDate']").val(),
53 cache: false, 56 cache: false,
54 dataType: 'json', 57 dataType: 'json',
55 data: JSON.stringify(data), 58 data: JSON.stringify(data),
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!