|
|
@@ -125,16 +125,34 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
events: Table.api.events.operate, |
|
|
|
formatter: Table.api.formatter.operate, |
|
|
|
buttons:[ |
|
|
|
// { |
|
|
|
// name: 'refund', |
|
|
|
// text: __('Refund'), |
|
|
|
// classname: 'btn btn-xs btn-info', |
|
|
|
// extend: 'data-toggle="tooltip"', |
|
|
|
// icon: 'fa fa-handshake-o', |
|
|
|
// url:function(row){ |
|
|
|
// return "/admin.php/unishop/order/refundShow?id="+row.id+"&refund_fee="+row.total_price; |
|
|
|
// }, |
|
|
|
// confirm:"是否确认退款" |
|
|
|
// }, |
|
|
|
{ |
|
|
|
name: 'refund', |
|
|
|
name: 'click', |
|
|
|
text: __('Refund'), |
|
|
|
classname: 'btn btn-xs btn-info', |
|
|
|
extend: 'data-toggle="tooltip"', |
|
|
|
icon: 'fa fa-handshake-o', |
|
|
|
url:function(row){ |
|
|
|
return "/admin.php/unishop/order/refundShow?id="+row.id+"&refund_fee="+row.total_price; |
|
|
|
classname: 'btn btn-xs btn-info btn-click', |
|
|
|
icon: 'fa fa-leaf', |
|
|
|
// dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示 |
|
|
|
click: function (data,rowElement) { |
|
|
|
Layer.prompt({title: '请输入退款金额', formType: 2}, function(text){ |
|
|
|
Fast.api.ajax({ |
|
|
|
url:"/admin.php/unishop/order/refundShow?id="+rowElement.id+"&refund_fee="+text |
|
|
|
}, function (data, ret) { |
|
|
|
Layer.closeAll(); |
|
|
|
Layer.alert(ret.msg); |
|
|
|
}, function (data, ret) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
confirm:"是否确认退款" |
|
|
|
}, |
|
|
|
// { |
|
|
|
// name: 'delivere', |
|
|
|