|
|
@@ -83,31 +83,36 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
pk: 'id', |
|
|
|
sortName: 'id', |
|
|
|
columns: [ |
|
|
|
[ |
|
|
|
{checkbox: true}, |
|
|
|
[ {checkbox: true}, |
|
|
|
{field: 'id', title: __('Id'),visible:false}, |
|
|
|
{field: 'user_id', title: __('User_id')}, |
|
|
|
{field: 'user.username', title: __('User name')}, |
|
|
|
|
|
|
|
{field: 'name', title: __('姓名'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'mobile', title: __('手机号'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'email', title: __('邮箱'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'address', title: __('地址'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'title', title: __('商品')}, |
|
|
|
{field: 'spec', title: __('规格')}, |
|
|
|
// {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: '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}, |
|
|
|
{field: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal}, |
|
|
|
// {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: 'ip', title: __('Ip'), visible:false}, |
|
|
|
{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: '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: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,visible:false}, |
|
|
|
{ |
|
|
|
field: 'operate', |
|
|
|
title: __('Operate'), |
|
|
@@ -115,35 +120,35 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
events: Table.api.events.operate, |
|
|
|
formatter: Table.api.formatter.operate, |
|
|
|
buttons:[ |
|
|
|
{ |
|
|
|
name: 'refund', |
|
|
|
text: __('Refund'), |
|
|
|
classname: 'btn btn-xs btn-info btn-refund', |
|
|
|
extend: 'data-toggle="tooltip"', |
|
|
|
icon: 'fa fa-handshake-o' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'delivere', |
|
|
|
text: __('Delivere'), |
|
|
|
classname: 'btn btn-xs btn-info btn-delivere', |
|
|
|
extend: 'data-toggle="tooltip"', |
|
|
|
icon: 'fa fa-plane' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'product', |
|
|
|
text: __('Product'), |
|
|
|
classname: 'btn btn-xs btn-info btn-product', |
|
|
|
extend: 'data-toggle="tooltip"', |
|
|
|
icon: 'fa fa-star-half' |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'edit', |
|
|
|
icon: 'fa fa-pencil', |
|
|
|
text: __('Edit'), |
|
|
|
extend: 'data-toggle="tooltip"', |
|
|
|
classname: 'btn btn-xs btn-success btn-editone', |
|
|
|
url: $.fn.bootstrapTable.defaults.extend.edit_url |
|
|
|
} |
|
|
|
// { |
|
|
|
// name: 'refund', |
|
|
|
// text: __('Refund'), |
|
|
|
// classname: 'btn btn-xs btn-info btn-refund', |
|
|
|
// extend: 'data-toggle="tooltip"', |
|
|
|
// icon: 'fa fa-handshake-o' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: 'delivere', |
|
|
|
// text: __('Delivere'), |
|
|
|
// classname: 'btn btn-xs btn-info btn-delivere', |
|
|
|
// extend: 'data-toggle="tooltip"', |
|
|
|
// icon: 'fa fa-plane' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: 'product', |
|
|
|
// text: __('Product'), |
|
|
|
// classname: 'btn btn-xs btn-info btn-product', |
|
|
|
// extend: 'data-toggle="tooltip"', |
|
|
|
// icon: 'fa fa-star-half' |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: 'edit', |
|
|
|
// icon: 'fa fa-pencil', |
|
|
|
// text: __('Edit'), |
|
|
|
// extend: 'data-toggle="tooltip"', |
|
|
|
// classname: 'btn btn-xs btn-success btn-editone', |
|
|
|
// url: $.fn.bootstrapTable.defaults.extend.edit_url |
|
|
|
// } |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
@@ -172,25 +177,32 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
[ |
|
|
|
{checkbox: true}, |
|
|
|
{field: 'id', title: __('Id'),visible:false}, |
|
|
|
{field: 'user_id', title: __('User_id')}, |
|
|
|
{field: 'user.username', title: __('User name')}, |
|
|
|
|
|
|
|
{field: 'name', title: __('姓名'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'mobile', title: __('手机号'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'email', title: __('邮箱'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'address', title: __('地址'), operate: 'LIKE %...%', placeholder: '模糊搜索,*表示任意字符'}, |
|
|
|
{field: 'product_name', title: __('商品')}, |
|
|
|
{field: 'spec', title: __('规格')}, |
|
|
|
// {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: 'discount_price', title: __('Discount_price'), operate:'BETWEEN'}, |
|
|
|
{field: 'delivery_price', title: __('Delivery_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: 'pay_type', title: __('Pay_type'), searchList: {"1":__('Online'),"2":__('Offline'),"3":__('wxPay'),"4":__('aliPay')}, formatter: Table.api.formatter.normal}, |
|
|
|
{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: '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: '模糊搜索,*表示任意字符'}, |
|
|
|
{ |
|
|
@@ -207,22 +219,22 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
|
table: table, |
|
|
|
events: Table.api.events.operate, |
|
|
|
buttons: [ |
|
|
|
{ |
|
|
|
name: 'Restore', |
|
|
|
text: __('Restore'), |
|
|
|
classname: 'btn btn-xs btn-info btn-ajax btn-restoreit', |
|
|
|
icon: 'fa fa-rotate-left', |
|
|
|
url: 'unishop/order/restore', |
|
|
|
refresh: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'Destroy', |
|
|
|
text: __('Destroy'), |
|
|
|
classname: 'btn btn-xs btn-danger btn-ajax btn-destroyit', |
|
|
|
icon: 'fa fa-times', |
|
|
|
url: 'unishop/order/destroy', |
|
|
|
refresh: true |
|
|
|
} |
|
|
|
// { |
|
|
|
// name: 'Restore', |
|
|
|
// text: __('Restore'), |
|
|
|
// classname: 'btn btn-xs btn-info btn-ajax btn-restoreit', |
|
|
|
// icon: 'fa fa-rotate-left', |
|
|
|
// url: 'unishop/order/restore', |
|
|
|
// refresh: true |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// name: 'Destroy', |
|
|
|
// text: __('Destroy'), |
|
|
|
// classname: 'btn btn-xs btn-danger btn-ajax btn-destroyit', |
|
|
|
// icon: 'fa fa-times', |
|
|
|
// url: 'unishop/order/destroy', |
|
|
|
// refresh: true |
|
|
|
// } |
|
|
|
], |
|
|
|
formatter: Table.api.formatter.operate |
|
|
|
} |
|
|
|