|
@@ -56,7 +56,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
$('.btn-refresh').trigger('click')
|
|
|
},
|
|
|
visible: function (row) {
|
|
|
- return row.refund_status===100 && table.data('operate-audit');
|
|
|
+ return table.data('operate-audit');
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -81,13 +81,28 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
classname: 'btn btn-xs btn-primary btn-ajax',
|
|
|
icon: 'fa',
|
|
|
url: 'order_info_refund/has_rec',
|
|
|
- callback: function (data) {
|
|
|
+ success: function (data) {
|
|
|
$('.btn-refresh').trigger('click')
|
|
|
},
|
|
|
visible: function (row) {
|
|
|
return row.need_rec && table.data('operate-hasrec');
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('退款'),
|
|
|
+ title: __('退款'),
|
|
|
+ confirm:'确认退款吗?',
|
|
|
+ classname: 'btn btn-xs btn-primary btn-ajax',
|
|
|
+ icon: 'fa',
|
|
|
+ url: 'order_info_refund/tk',
|
|
|
+ success: function (data) {
|
|
|
+ $('.btn-refresh').trigger('click')
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return row.need_tk && table.data('operate-tk');
|
|
|
+ }
|
|
|
+ },
|
|
|
]
|
|
|
}
|
|
|
]
|