|
|
@@ -1382,16 +1382,25 @@ console.log(matchdata);
|
|
|
layer.confirm('取消结算?', {
|
|
|
btn: ['确认', '取消'] //按钮
|
|
|
}, function() {
|
|
|
- $.getJSON("/admin/SoccerNoteList/no_cancel_end", {'order_id' : order_id}, function(data, textStatus) {
|
|
|
- if (data.statusa == 1) {
|
|
|
- reloadDataTable();
|
|
|
- layer.msg('成功');
|
|
|
- } else {
|
|
|
- layer.msg(data.msg);
|
|
|
+ $.getJSON("/admin/SoccerNoteList/no_cancel_end", {'order_id' : order_id}, function(res) {
|
|
|
+ if (1 == res.status) {
|
|
|
+ layer.alert("设置成功", {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // if (data.statusa == 1) {
|
|
|
+ // // reloadDataTable();
|
|
|
+ // // layer.msg('成功');
|
|
|
+ // layer.alert("操作成功", {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
+ // window.location.reload();
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ else {
|
|
|
+ layer.msg(res.msg);
|
|
|
}
|
|
|
});
|
|
|
}, function() {
|
|
|
-
|
|
|
+ window.location.reload();
|
|
|
});
|
|
|
|
|
|
// console.log(order_id+'取消结算')
|
|
|
@@ -1403,12 +1412,18 @@ console.log(matchdata);
|
|
|
layer.confirm('取消作废?', {
|
|
|
btn: ['确认', '取消'] //按钮
|
|
|
}, function() {
|
|
|
- $.getJSON("/admin/SoccerNoteList/no_cancel_invalid", {'order_id' : order_id}, function(data, textStatus) {
|
|
|
- if (data.statusa == 1) {
|
|
|
- reloadDataTable();
|
|
|
- layer.msg('成功');
|
|
|
- } else {
|
|
|
- layer.msg(data.msg);
|
|
|
+ $.getJSON("/admin/SoccerNoteList/no_cancel_invalid", {'order_id' : order_id}, function(res) {
|
|
|
+ if (1 == res.status) {
|
|
|
+ layer.alert("设置成功", {title: '友情提示', icon: 1, closeBtn: 0}, function(){
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ // if (data.statusa == 1) {
|
|
|
+ // reloadDataTable();
|
|
|
+ // layer.msg('成功');
|
|
|
+ // }
|
|
|
+ else {
|
|
|
+ layer.msg(res.msg);
|
|
|
}
|
|
|
});
|
|
|
}, function() {
|