init
Showing
1 changed file
with
20 additions
and
1 deletions
| ... | @@ -185,7 +185,26 @@ | ... | @@ -185,7 +185,26 @@ |
| 185 | title: '确认到账', | 185 | title: '确认到账', |
| 186 | icon: 3 | 186 | icon: 3 |
| 187 | }, function(){ | 187 | }, function(){ |
| 188 | layer.msg('通过'); | 188 | $.ajax({ |
| 189 | type:'patch', | ||
| 190 | url:apiBaseUrl + 'manage/financial/confirm/' + id, | ||
| 191 | cache: false, | ||
| 192 | dataType:'json', | ||
| 193 | contentType: "application/json; charset=UTF-8", | ||
| 194 | success:function(data){ | ||
| 195 | if(data.msg){ | ||
| 196 | layer.alert(data.msg); | ||
| 197 | } else if(data.code != 0){ | ||
| 198 | layer.alert('请求失败'); | ||
| 199 | } else { | ||
| 200 | layer.msg('通过'); | ||
| 201 | } | ||
| 202 | }, | ||
| 203 | error:function(){ | ||
| 204 | layer.alert("请求失败") | ||
| 205 | } | ||
| 206 | }) | ||
| 207 | |||
| 189 | }); | 208 | }); |
| 190 | } | 209 | } |
| 191 | </script> | 210 | </script> | ... | ... |
-
Please register or sign in to post a comment