|
@@ -24,16 +24,41 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
sortName: 'id',
|
|
|
columns: [
|
|
|
[
|
|
|
- {checkbox: true},
|
|
|
+ //{checkbox: true},
|
|
|
{field: 'refund_status', title: __('Refund_status')},
|
|
|
- {field: 'refund_type', title: __('Refund_type')},
|
|
|
+ {field: 'refund_type', title: __('申请类型'),searchList:refundTypes,formatter:Table.api.formatter.label},
|
|
|
{field: 'refund_by', title: __('Refund_by')},
|
|
|
- {field: 'reason1', title: __('Reason1')},
|
|
|
- {field: 'reason2', title: __('Reason2')},
|
|
|
+ {field: 'reason1', title: __('退款退货原因')},
|
|
|
+ {field: 'reason2', title: __('退款退货原因'),formatter: Table.api.formatter.content,width:200},
|
|
|
{field: 'num', title: __('Num')},
|
|
|
{field: 'amount', title: __('Amount'), operate:'BETWEEN'},
|
|
|
{field: 'create_time', title: __('Create_time')},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ //{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {
|
|
|
+ field: 'operate',
|
|
|
+ title: '操作',
|
|
|
+ table:table,
|
|
|
+ events:Table.api.event.operate,
|
|
|
+ formatter:Table.api.event.buttons,
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name: 'edit',
|
|
|
+ text: __('审核'),
|
|
|
+ title: __('审核'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ icon: 'fa',
|
|
|
+ url: 'audit',
|
|
|
+ callback: function (data) {
|
|
|
+ //Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ $('.btn-refresh').trigger('click')
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ //返回true时按钮显示,返回false隐藏
|
|
|
+ return row.status===5 && table.data('operate-audit');
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
]
|
|
|
});
|