|
@@ -79,25 +79,28 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
|
|
|
|
|
// 初始化表格 |
|
|
// 初始化表格 |
|
|
table.bootstrapTable({ |
|
|
table.bootstrapTable({ |
|
|
|
|
|
pageSize: 20, |
|
|
|
|
|
pageList: [20, 50, 100], |
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url, |
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url, |
|
|
pk: 'id', |
|
|
pk: 'id', |
|
|
sortName: 'id', |
|
|
sortName: 'id', |
|
|
showExport: false, |
|
|
showExport: false, |
|
|
commonSearch: false, |
|
|
|
|
|
|
|
|
commonSearch: true, |
|
|
showToggle: false, |
|
|
showToggle: false, |
|
|
columns: [ |
|
|
columns: [ |
|
|
[ |
|
|
[ |
|
|
{checkbox: true}, |
|
|
{checkbox: true}, |
|
|
// {field: 'id', title: __('Id'),visible:false}, |
|
|
// {field: 'id', title: __('Id'),visible:false}, |
|
|
// {field: 'user_id', title: __('User_id')}, |
|
|
// {field: 'user_id', title: __('User_id')}, |
|
|
{field: 'user.username', title: __('User name')}, |
|
|
|
|
|
{field: 'out_trade_no', title: __('Out_trade_no')}, |
|
|
|
|
|
{field: 'order_price', title: __('Order_price'), operate:'BETWEEN'}, |
|
|
|
|
|
|
|
|
{field: 'user.username', title: __('User name'),operate: 'LIKE'}, |
|
|
|
|
|
{field: 'user.nickname', title: __('工号'),visible:false,operate: 'LIKE'}, |
|
|
|
|
|
{field: 'out_trade_no', title: __('Out_trade_no'),operate:false}, |
|
|
|
|
|
{field: 'order_price', title: __('Order_price'), operate:false}, |
|
|
// {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: '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}, |
|
|
|
|
|
{field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal}, |
|
|
|
|
|
|
|
|
{field: 'total_price', title: __('Total_price'), operate:false}, |
|
|
|
|
|
{field: 'status', title: __('Status'),operate:false, searchList: {"-1":__('Refund'),"0":__('Cancel'),"1":__('Normal')}, formatter: Table.api.formatter.status}, |
|
|
|
|
|
{field: 'pay_type', title: __('Pay_type'),operate:false, searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal}, |
|
|
// {field: 'ip', title: __('Ip'), visible:false}, |
|
|
// {field: 'ip', title: __('Ip'), visible:false}, |
|
|
// {field: 'have_paid_status', title: __('Have_paid'), searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
// {field: 'have_paid_status', title: __('Have_paid'), searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
// {field: 'have_delivered_status', title: __('Have_delivered'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
// {field: 'have_delivered_status', title: __('Have_delivered'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
@@ -108,9 +111,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
// {field: 'have_delivered', title: __('Delivered time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
// {field: 'have_delivered', title: __('Delivered time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
// {field: 'have_received', title: __('Received time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
// {field: 'have_received', title: __('Received time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
// {field: 'have_commented', title: __('Commented time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
// {field: 'have_commented', title: __('Commented time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, |
|
|
|
|
|
{field: 'remark', title: __('Remark'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
|
|
|
{field: 'createtime', title: __('Createtime'),operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime}, |
|
|
|
|
|
{field: 'remark', title: __('Remark'),operate:false}, |
|
|
|
|
|
{field: 'updatetime', title: __('Updatetime'),operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
{ |
|
|
{ |
|
|
field: 'operate', |
|
|
field: 'operate', |
|
|
title: __('Operate'), |
|
|
title: __('Operate'), |
|
@@ -178,37 +181,38 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
var table = $("#table"); |
|
|
var table = $("#table"); |
|
|
|
|
|
|
|
|
// 初始化表格 |
|
|
// 初始化表格 |
|
|
table.bootstrapTable({ |
|
|
table.bootstrapTable({ |
|
|
url: 'unishop/order/recyclebin' + location.search, |
|
|
url: 'unishop/order/recyclebin' + location.search, |
|
|
pk: 'id', |
|
|
pk: 'id', |
|
|
sortName: 'id', |
|
|
sortName: 'id', |
|
|
|
|
|
pageSize: 20, |
|
|
|
|
|
pageList: [20, 50, 100], |
|
|
columns: [ |
|
|
columns: [ |
|
|
[ |
|
|
[ |
|
|
{checkbox: true}, |
|
|
{checkbox: true}, |
|
|
{field: 'id', title: __('Id'),visible:false}, |
|
|
{field: 'id', title: __('Id'),visible:false}, |
|
|
{field: 'user_id', title: __('User_id')}, |
|
|
{field: 'user_id', title: __('User_id')}, |
|
|
{field: 'user.username', title: __('User name')}, |
|
|
{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: 'delivery_price', title: __('Delivery_price'), operate:'BETWEEN'}, |
|
|
|
|
|
{field: 'total_price', title: __('Total_price'), operate:'BETWEEN'}, |
|
|
|
|
|
{field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal}, |
|
|
|
|
|
|
|
|
{field: 'out_trade_no', title: __('Out_trade_no'),operate:false}, |
|
|
|
|
|
{field: 'order_price', title: __('Order_price'), operate:false}, |
|
|
|
|
|
{field: 'discount_price', title: __('Discount_price'), operate:false}, |
|
|
|
|
|
{field: 'delivery_price', title: __('Delivery_price'), operate:false}, |
|
|
|
|
|
{field: 'total_price', title: __('Total_price'),operate:false}, |
|
|
|
|
|
{field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')},operate:false, formatter: Table.api.formatter.normal}, |
|
|
{field: 'ip', title: __('Ip'), visible:false}, |
|
|
{field: 'ip', title: __('Ip'), visible:false}, |
|
|
{field: 'status', title: __('Status'), searchList: {"-1":__('Refund'),"0":__('Cancel'),"1":__('Normal')}, formatter: Table.api.formatter.status}, |
|
|
|
|
|
{field: 'have_paid_status', title: __('Have_paid'), searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_delivered_status', title: __('Have_delivered'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_received_status', title: __('Have_received'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_commented_status', title: __('Have_commented'),searchList: {"0":__('No'),"1":__('Yes')}, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'refund_status', title: __('Refund status'),searchList: {"0":__('None'),"1":__('Apply'),"2":__('Waiting for shipment'),"3":__('Pass'),"4":__('Refuse')}, formatter: Table.api.formatter.status}, |
|
|
|
|
|
{field: 'have_paid', title: __('Pay time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_delivered', title: __('Delivered time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_received', title: __('Received time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_commented', title: __('Commented time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, |
|
|
|
|
|
{field: 'remark', title: __('Remark'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
|
|
|
|
|
{field: 'status', title: __('Status'), searchList: {"-1":__('Refund'),"0":__('Cancel'),"1":__('Normal')},operate:false, formatter: Table.api.formatter.status}, |
|
|
|
|
|
{field: 'have_paid_status', title: __('Have_paid'), searchList: {"0":__('No'),"1":__('Yes')},operate:false, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_delivered_status', title: __('Have_delivered'),searchList: {"0":__('No'),"1":__('Yes')},operate:false, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_received_status', title: __('Have_received'),searchList: {"0":__('No'),"1":__('Yes')},operate:false, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'have_commented_status', title: __('Have_commented'),searchList: {"0":__('No'),"1":__('Yes')},operate:false, formatter: Table.api.formatter.statusCustom}, |
|
|
|
|
|
{field: 'refund_status',operate:false, title: __('Refund status'),searchList: {"0":__('None'),"1":__('Apply'),"2":__('Waiting for shipment'),"3":__('Pass'),"4":__('Refuse')}, formatter: Table.api.formatter.status}, |
|
|
|
|
|
{field: 'have_paid', title: __('Pay time'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_delivered', title: __('Delivered time'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_received', title: __('Received time'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'have_commented', title: __('Commented time'),operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
|
|
{field: 'createtime', title: __('Createtime'), operate:false, addclass:'datetimerange', formatter: Table.api.formatter.datetime}, |
|
|
|
|
|
{field: 'remark', title: __('Remark'), operate:false, placeholder: '模糊搜索,*表示任意字符'}, |
|
|
{ |
|
|
{ |
|
|
field: 'deletetime', |
|
|
field: 'deletetime', |
|
|
title: __('Deletetime'), |
|
|
title: __('Deletetime'), |
|
|