init
Showing
2 changed files
with
63 additions
and
2 deletions
| ... | @@ -94,9 +94,40 @@ | ... | @@ -94,9 +94,40 @@ |
| 94 | title: '客户已同意', | 94 | title: '客户已同意', |
| 95 | icon: 3 | 95 | icon: 3 |
| 96 | }, function(){ | 96 | }, function(){ |
| 97 | layer.msg('确认'); | 97 | var targetUrl = 'flow/confirm2NextStatus'; |
| 98 | var data = { | ||
| 99 | "opinion": "", | ||
| 100 | "orderStatus": "<?=$applyOrderVO->status?>" | ||
| 101 | } | ||
| 102 | $.ajax({ | ||
| 103 | type: 'put', | ||
| 104 | url: apiBaseUrl + targetUrl, | ||
| 105 | cache: false, | ||
| 106 | dataType: 'json', | ||
| 107 | data: JSON.stringify(data), | ||
| 108 | contentType: "application/json; charset=UTF-8", | ||
| 109 | success: function (data) { | ||
| 110 | if (data.msg) { | ||
| 111 | layer.alert(data.msg); | ||
| 112 | } else if (data.code != 0) { | ||
| 113 | layer.alert('操作失败'); | ||
| 114 | } else { | ||
| 115 | layer.alert('操作成功'); | ||
| 116 | } | ||
| 117 | setTimeout(function () { | ||
| 118 | if (!data.code) { | ||
| 119 | table.fnDraw(); | ||
| 120 | layer_close(); | ||
| 121 | } | ||
| 122 | }, 500); | ||
| 123 | }, | ||
| 124 | error: function () { | ||
| 125 | layer.alert("操作失败") | ||
| 126 | } | ||
| 127 | }) | ||
| 98 | }); | 128 | }); |
| 99 | } | 129 | } |
| 130 | |||
| 100 | </script> | 131 | </script> |
| 101 | </body> | 132 | </body> |
| 102 | </html> | 133 | </html> | ... | ... |
| ... | @@ -146,7 +146,37 @@ | ... | @@ -146,7 +146,37 @@ |
| 146 | title: '资料转移', | 146 | title: '资料转移', |
| 147 | icon: 3 | 147 | icon: 3 |
| 148 | }, function(){ | 148 | }, function(){ |
| 149 | layer.msg('确认'); | 149 | var targetUrl = 'flow/confirm2NextStatus'; |
| 150 | var data = { | ||
| 151 | "opinion": "", | ||
| 152 | "orderStatus": "<?=$applyOrderVO->status?>" | ||
| 153 | } | ||
| 154 | $.ajax({ | ||
| 155 | type: 'put', | ||
| 156 | url: apiBaseUrl + targetUrl, | ||
| 157 | cache: false, | ||
| 158 | dataType: 'json', | ||
| 159 | data: JSON.stringify(data), | ||
| 160 | contentType: "application/json; charset=UTF-8", | ||
| 161 | success: function (data) { | ||
| 162 | if (data.msg) { | ||
| 163 | layer.alert(data.msg); | ||
| 164 | } else if (data.code != 0) { | ||
| 165 | layer.alert('操作失败'); | ||
| 166 | } else { | ||
| 167 | layer.alert('操作成功'); | ||
| 168 | } | ||
| 169 | setTimeout(function () { | ||
| 170 | if (!data.code) { | ||
| 171 | table.fnDraw(); | ||
| 172 | layer_close(); | ||
| 173 | } | ||
| 174 | }, 500); | ||
| 175 | }, | ||
| 176 | error: function () { | ||
| 177 | layer.alert("操作失败") | ||
| 178 | } | ||
| 179 | }) | ||
| 150 | }); | 180 | }); |
| 151 | } | 181 | } |
| 152 | </script> | 182 | </script> | ... | ... |
-
Please register or sign in to post a comment