|
@@ -211,6 +211,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
Table.api.init({
|
|
|
extend: {
|
|
|
index_url: location.pathname + location.search,
|
|
|
+ refund_detail_url:'order_info_refund/audit'
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -233,7 +234,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
a.push(`<div>${name}</div>`)
|
|
|
if(orderInfo.refund){
|
|
|
a.push(`<div>
|
|
|
- <span class="label label-default">${refund_type[orderInfo.refund.refund_type]}</span>
|
|
|
+ <a class="label label-default btnViewRefund" data-id="${orderInfo.refund.id}">售后详情</a>
|
|
|
<span class="label label-danger">${refundStatus[orderInfo.refund.refund_status]}</span>
|
|
|
</div>`)
|
|
|
}
|
|
@@ -257,6 +258,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
|
|
|
// 为表格绑定事件
|
|
|
Table.api.bindevent(table);
|
|
|
+
|
|
|
+ $(document).on('click','.btnViewRefund',function (){
|
|
|
+ let id=$(this).data('id')
|
|
|
+ parent.Fast.api.open(`${$.fn.bootstrapTable.defaults.extend.refund_detail_url}?ids=${id}`,'售后详情')
|
|
|
+ })
|
|
|
},
|
|
|
};
|
|
|
return Controller;
|