|
@@ -8,7 +8,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
index_url: 'order/index' + location.search,
|
|
|
add_url: 'order/add',
|
|
|
edit_url: 'order/edit',
|
|
|
- del_url: 'order/del',
|
|
|
+// del_url: 'order/del',
|
|
|
multi_url: 'order/multi',
|
|
|
import_url: 'order/import',
|
|
|
table: 'order',
|
|
@@ -22,32 +22,21 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
|
pk: 'id',
|
|
|
sortName: 'id',
|
|
|
- fixedColumns: true,
|
|
|
- fixedRightNumber: 1,
|
|
|
columns: [
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
-// {field: 'order_no', title: __('Order_no'), operate: 'LIKE'},
|
|
|
-// {field: 'active_id', title: __('Active_id')},
|
|
|
- {field: 'active.name', title: __('Active.name'), operate: 'LIKE'},
|
|
|
-// {field: 'user_id', title: __('User_id')},
|
|
|
- {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
|
|
|
+ {field: 'order_no', title: __('Order_no'), operate: 'LIKE'},
|
|
|
+ {field: 'product_id', title: __('Product_id')},
|
|
|
+ {field: 'product.title', title: __('Product.title'), operate: 'LIKE'},
|
|
|
+ {field: 'user_id', title: __('User_id')},
|
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
-// {field: 'student_id', title: __('Student_id')},
|
|
|
- {field: 'student.realname', title: __('Student.realname'), operate: 'LIKE'},
|
|
|
- {field: 'school.schoolname', title: __('School.schoolname'), operate: 'LIKE'},
|
|
|
- {field: 'grade.gradename', title: __('Grade.gradename'), operate: 'LIKE'},
|
|
|
- {field: 'classes.classname', title: __('Classes.classname'), operate: 'LIKE'},
|
|
|
+ {field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'pay_fee', title: __('Pay_fee'), operate:'BETWEEN'},
|
|
|
- {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
|
|
|
{field: 'remark', title: __('Remark'), operate: 'LIKE'},
|
|
|
- {field: 'paytime', title: __('Paytime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
-// {field: 'pay_type', title: __('Pay_type'), operate: 'LIKE'},
|
|
|
-// {field: 'pay_out_trade_no', title: __('Pay_out_trade_no'), operate: 'LIKE'},
|
|
|
-
|
|
|
-// {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
|
|
|
+ {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|