|
@@ -29,7 +29,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'order_no', title: __('Order_no')},
|
|
|
- {field: 'status', title: __('Status'),formatter: Table.api.formatter.label,searchList:status},
|
|
|
+ {field: 'status', title: __('Status'),formatter(status,order,index){
|
|
|
+ if(status===0 && order.voucher && voucher.status===0){
|
|
|
+
|
|
|
+ }
|
|
|
+ return Table.api.formatter.label.call(this,status,order,index)
|
|
|
+ },searchList:status},
|
|
|
{field: 'user.nickname', title: __('下单用户')},
|
|
|
{field: 'amount_total', title: __('Amount_total'), operate:'BETWEEN'},
|
|
|
{field: 'amount_pay', title: __('Amount_pay'), operate:'BETWEEN'},
|