- 删除 Addon 相关控制器、模型、语言包和视图文件 - 新增服务类型支持一口价属性配置 - 新增系统监控、用户资料、订单评价等后端管理页面 - 新增数据库表结构及索引优化脚本 - 更新应用版本号至 1.0.44 - 更新小程序应用标识 - 完善 .gitignore 配置
61 行
3.2 KiB
JavaScript
61 行
3.2 KiB
JavaScript
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
|
|
|
|
var Controller = {
|
|
index: function () {
|
|
// 初始化表格参数配置(提现单仅师傅端发起,后台只提供审核)
|
|
Table.api.init({
|
|
extend: {
|
|
index_url: 'withdraw/index' + location.search,
|
|
edit_url: 'withdraw/edit',
|
|
table: 'withdraw',
|
|
}
|
|
});
|
|
|
|
var table = $("#table");
|
|
|
|
// 初始化表格
|
|
table.bootstrapTable({
|
|
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
|
pk: 'id',
|
|
sortName: 'id',
|
|
sortOrder: 'desc',
|
|
fixedColumns: true,
|
|
fixedRightNumber: 1,
|
|
columns: [
|
|
[
|
|
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
|
|
{field: 'master.realname', title: '提现师傅', operate: 'LIKE'},
|
|
{field: 'master.mobile', title: '师傅手机号', operate: 'LIKE'},
|
|
{field: 'amount', title: '申请金额', operate: 'BETWEEN'},
|
|
{field: 'fee', title: '手续费', operate: 'BETWEEN'},
|
|
{field: 'arrive_amount', title: '到账金额', operate: 'BETWEEN'},
|
|
{field: 'channel', title: '结算渠道', searchList: {"wechat":__('Wechat'),"bank":__('Bank')}, formatter: Table.api.formatter.normal},
|
|
{field: 'account', title: '收款账号', operate: 'LIKE'},
|
|
{field: 'status', title: '审核状态', searchList: {"wait":__('Wait'),"pass":__('Pass'),"reject":__('Reject'),"done":__('Done')}, formatter: Table.api.formatter.status},
|
|
{field: 'audit_msg', title: '审核批注', operate: 'LIKE', class: 'autocontent', formatter: Table.api.formatter.content},
|
|
{field: 'createtime', title: '申请时间', operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime, width: '150px'},
|
|
{field: 'updatetime', title: '处理时间', operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime, width: '150px'},
|
|
{field: 'operate', title: '审核操作', table: table, events: Table.api.events.operate,
|
|
buttons: [
|
|
{name: 'edit', text: '审核', title: '财务审核', icon: '', classname: 'btn btn-xs btn-success btn-editone'}
|
|
],
|
|
formatter: Table.api.formatter.operate}
|
|
]
|
|
]
|
|
});
|
|
|
|
// 为表格绑定事件
|
|
Table.api.bindevent(table);
|
|
},
|
|
edit: function () {
|
|
Controller.api.bindevent();
|
|
},
|
|
api: {
|
|
bindevent: function () {
|
|
Form.api.bindevent($("form[role=form]"));
|
|
}
|
|
}
|
|
};
|
|
return Controller;
|
|
});
|