|
@@ -92,7 +92,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'user.username', title: __('User name')},
|
|
|
{field: 'out_trade_no', title: __('Out_trade_no')},
|
|
|
{field: 'order_price', title: __('Order_price'), operate:'BETWEEN'},
|
|
|
- {field: 'discount_price', title: __('Discount_price'), operate:'BETWEEN'},
|
|
|
+// {field: 'discount_price', title: __('Discount_price'), operate:'BETWEEN'},
|
|
|
{field: 'delivery_price', title: __('Delivery_price'), operate:'BETWEEN'},
|
|
|
{field: 'total_price', title: __('Total_price'), operate:'BETWEEN'},
|
|
|
{field: 'status', title: __('Status'), searchList: {"-1":__('Refund'),"0":__('Cancel'),"1":__('Normal')}, formatter: Table.api.formatter.status},
|
|
@@ -124,13 +124,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: 'data-toggle="tooltip"',
|
|
|
icon: 'fa fa-handshake-o'
|
|
|
},*/
|
|
|
- /* {
|
|
|
+ {
|
|
|
name: 'delivere',
|
|
|
- text: __('Delivere'),
|
|
|
+ text: '发货',
|
|
|
classname: 'btn btn-xs btn-info btn-delivere',
|
|
|
extend: 'data-toggle="tooltip"',
|
|
|
- icon: 'fa fa-plane'
|
|
|
- },*/
|
|
|
+ icon: 'fa fa-plane',
|
|
|
+ hidden: function(row){
|
|
|
+ if(row.status == 1 && row.have_paid != 0 && row.have_delivered == 0){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(row.status == -1 && row.have_paid != 0 && row.have_delivered == 0){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
name: 'product',
|
|
|
text: __('Product'),
|