|
@@ -42,17 +42,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}},
|
|
|
{field: 'info.describe', title: __('套餐信息'),operate: "like"},
|
|
|
{field: 'amount_original', title: __('Amount_original'), operate:'BETWEEN'},
|
|
|
-
|
|
|
-
|
|
|
- {field: 'name', title: __('Name')},
|
|
|
- {field: 'type', title: __('Type'),formatter: Table.api.formatter.label,searchList:no_type},
|
|
|
- {field: 'amount_exists', title: __('Amount_exists'), operate:'BETWEEN'},
|
|
|
- {field: 'amount_base', title: __('Amount_base'), operate:'BETWEEN'},
|
|
|
- {field: 'amount_charge', title: __('Amount_charge'), operate:'BETWEEN'},
|
|
|
+ {field: 'amount_di', title: __('底价'), operate:'BETWEEN'},
|
|
|
{field: 'amount', title: __('Amount'), operate:'BETWEEN'},
|
|
|
- {field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false,formatter: Table.api.formatter.datetime},
|
|
|
+ {field: 'amount_charge', title: __('预存话费'), operate:'BETWEEN'},
|
|
|
+ {field: 'remark', title: __('备注'), operate:'BETWEEN'},
|
|
|
{field: 'top_time', title: __('Top_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false,formatter(a,b,c){
|
|
|
- return `<a data-toggle="switcher" class="btn-switcher btn-change-top" data-id="${b.id}" data-value="${a?a:''}">
|
|
|
+ return `<a data-toggle="switcher" class="btn-switcher btn-change-top" data-id="${b.id}" data-value="${a?a:''}">
|
|
|
<i class="fa fa-toggle-on text-success ${a?'':'fa-flip-horizontal text-gray'} fa-2x"></i>
|
|
|
</a>`
|
|
|
}},
|
|
@@ -61,13 +56,77 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
<i class="fa fa-toggle-on text-success ${a?'':'fa-flip-horizontal text-gray'} fa-2x"></i>
|
|
|
</a>`
|
|
|
}},
|
|
|
+ //{field: 'is_hold', title: __('预占'),formatter: Table.api.formatter.toggle,searchList:{0:'否',1:'是'}},
|
|
|
+ {field:'buttons',width: "120px",title: __('操作'),table: table,events: Table.api.events.operate,
|
|
|
+ formatter: Table.api.formatter.buttons,buttons:[
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('预占'),
|
|
|
+ title: __('预占'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ url: 'example/bootstraptable/detail',
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('记录'),
|
|
|
+ title: __('记录'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ url: 'example/bootstraptable/detail',
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ]},
|
|
|
+ {field: 'is_hold', title: __('状态'),formatter: Table.api.formatter.normal,searchList:{0:'正常',1:'预占'}},
|
|
|
+ {field: 'update_time', title: __('Update_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false,formatter: Table.api.formatter.datetime},
|
|
|
+ {field: 'create_time', title: __('上架时间'), operate:'RANGE', addclass:'datetimerange', autocomplete:false,formatter: Table.api.formatter.datetime},
|
|
|
+ {field: 'sort', title: __('Sort'),operate: "BETWEEN"},
|
|
|
+ {field: 'sort', title: __('预占通道'),operate: "BETWEEN"},
|
|
|
+ {field: 'sort', title: __('预占用户ID'),operate: "BETWEEN"},
|
|
|
+ {field: 'sort', title: __('上传用户'),operate: "BETWEEN"},
|
|
|
+
|
|
|
+ /*{field: 'name', title: __('Name')},
|
|
|
+ {field: 'type', title: __('Type'),formatter: Table.api.formatter.label,searchList:no_type},
|
|
|
+ {field: 'amount_exists', title: __('Amount_exists'), operate:'BETWEEN'},
|
|
|
+ {field: 'amount_base', title: __('Amount_base'), operate:'BETWEEN'},
|
|
|
{field: 'summary', title: __('Summary')},
|
|
|
{field: 'saled', title: __('Saled'),formatter: Table.api.formatter.label,searchList:{0:'否',1:'是'}},
|
|
|
- {field: 'is_hold', title: __('预占'),formatter: Table.api.formatter.toggle,searchList:{0:'否',1:'是'}},
|
|
|
{field: 'is_activity', title: __('Is_activity'),formatter: Table.api.formatter.label,searchList:{0:'否',1:'是'}},
|
|
|
{field: 'activity_time_end', title: __('Activity_time_end'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
|
|
- {field: 'sort', title: __('Sort'),operate: "BETWEEN"},
|
|
|
- //{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate},
|
|
|
+ {field: 'sort', title: __('Sort'),operate: "BETWEEN"},*/
|
|
|
+ {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,buttons:[
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('取消预占'),
|
|
|
+ title: __('取消预占'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-ajax',
|
|
|
+ url: 'mobile/cancel_hold',
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return row.is_hold===1;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'detail',
|
|
|
+ text: __('记录'),
|
|
|
+ title: __('记录'),
|
|
|
+ classname: 'btn btn-xs btn-info btn-dialog',
|
|
|
+ url: 'example/bootstraptable/detail',
|
|
|
+ callback: function (data) {
|
|
|
+ },
|
|
|
+ visible: function (row) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ ]},
|
|
|
]
|
|
|
]
|
|
|
});
|