123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- <?php
- $status = array
- (
- 1 => '待审核',
- 2 => '已审核',
- 3 => '已作废',
- );
- $manage_status = array
- (
-
- 2 => '已审核',
- 3 => '已作废',
- );
- $type = array
- (
- 1 => '直推佣金',
- 2 => '市场培训费',
- 3 => '代理区域分润',
- 4 => '活动分佣',
- 10 => '手动发放',
- 11 => '提现',
- );
- $role = function()
- {
- $array = array();
- $data = Dever::load('setting/role-state');
- if($data)
- {
- $array += $data;
- }
- return $array;
- };
- $mid = Dever::input('search_option_mid');
- $button = array();
- if ($mid) {
- $button = array
- (
- '返回上一页' => array('location', 'l=project/database/list&project=agent&table=member_area&page_type=1&mid=' . $mid),
- '发放资金' => array('fast', '', 'push_cash&search_option_mid=' . $mid),
- );
- }
- return array
- (
-
- 'name' => 'cash',
-
- 'lang' => '资金流水',
- 'set' => array
- (
- 'status' => $status,
- 'type' => $type,
- ),
- 'end' => array
- (
- 'update' => 'bill/lib/manage.cashAuditUpdate',
- ),
- 'order' => 99,
-
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
-
- ),
- 'mid' => array
- (
- 'type' => 'int-11',
- 'name' => '手机号',
- 'default' => '-1',
- 'desc' => '代理商',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => $mid ? 'hidden' : array
- (
- 'api' => 'agent/member-find',
- 'col' => 'mobile',
- 'result' => 'id',
- ),
- 'list_name' => '手机号',
- 'list' => 'Dever::load("agent/member-find#mobile", {mid})',
- 'list_order' => 4,
- ),
- 'agent-member-name'=> array
- (
- 'name' => '姓名',
- 'default' => '',
- 'desc' => '姓名',
- 'match' => 'option',
-
- 'sync' => array('mid', 'id'),
- 'list' => true,
- 'list_order' => 3,
- ),
- 'agent-member-role'=> array
- (
- 'name' => '代理角色',
- 'default' => '',
- 'desc' => '代理角色',
- 'match' => 'option',
-
- 'sync' => array('mid', 'id'),
- 'list' => 'Dever::load("setting/role-find#name", "{agent-member-role}")',
- 'list_order' => 5,
- ),
- 'order_num' => array
- (
- 'type' => 'varchar-100',
- 'name' => '流水号',
- 'default' => '',
- 'desc' => '流水号',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- 'list_order' => 1,
- ),
- 'role' => array
- (
- 'type' => 'int-11',
- 'name' => '代理角色',
- 'default' => '',
- 'desc' => '代理角色',
- 'match' => 'is_numeric',
-
- 'update' => 'checkbox',
- 'option' => $role,
-
- ),
- 'type' => array
- (
- 'type' => 'int-11',
- 'name' => '交易类型',
- 'default' => '1',
- 'desc' => '交易类型',
- 'match' => 'is_numeric',
- 'search' => 'select',
- 'update' => 'checkbox',
- 'option' => $type,
- 'list' => true,
- 'list_order' => 7,
- ),
- 'type_id' => array
- (
- 'type' => 'int-11',
- 'name' => '交易来源id',
- 'default' => '',
- 'desc' => '交易来源id',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
- 'cash' => array
- (
- 'type' => 'float-11,2',
- 'name' => '金额',
- 'default' => '0',
- 'desc' => '金额',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- 'list_order' => 6,
- ),
- 'yue' => array
- (
- 'type' => 'float-11,2',
- 'name' => '操作后余额',
- 'default' => '0',
- 'desc' => '操作后余额',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- 'list_order' => 7,
- ),
- 'status' => array
- (
- 'type' => 'int-11',
- 'name' => '交易状态',
- 'default' => '1',
- 'desc' => '交易状态',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'option' => $status,
- 'search' => 'select',
- 'list' => true,
- 'list_name' => '交易状态',
- 'list_order' => 8,
- ),
- 'audit' => array
- (
- 'type' => 'int-11',
- 'name' => '审核状态',
- 'default' => '2',
- 'desc' => '审核状态',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $manage_status,
- 'mul' => true,
- ),
- 'audit_desc' => array
- (
- 'type' => 'varchar-600',
- 'name' => '备注',
- 'default' => '',
- 'desc' => '审核说明',
- 'match' => 'option',
- 'update' => 'textarea',
- 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
- 'list_order' => 9,
- ),
- 'desc' => array
- (
- 'type' => 'varchar-600',
- 'name' => '资金说明',
- 'default' => '',
- 'desc' => '资金说明',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
- 'operdate' => array
- (
- 'type' => 'int-11',
- 'name' => '审核确认时间',
- 'default' => '',
- 'match' => 'is_numeric',
- 'desc' => '',
- 'list' => '"{operdate}" > 0 ? date("Y-m-d H:i", {operdate}) : "-"',
- 'list_order' => 9,
- ),
- 'state' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '请选择状态',
- 'match' => 'is_numeric',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '交易时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
-
-
- 'search' => 'date',
- 'list' => 'date("Y-m-d H:i", {cdate})',
- 'list_order' => 2,
- ),
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'delete' => false,
- 'edit' => false,
- 'button' => $button,
- 'mul' => true,
- 'list_button' => array
- (
- 'list' => array('查看详情', '"push_cash&project=bill&id={id}&page_type=1"'),
- 'fast' => array('审核', '"cash&where_id={id}&col=audit,audit_desc&oper_save_jump=cash&oper_table=cash&oper_parent=cash"', '{status} == 1'),
-
- ),
- ),
- 'request' => array
- (
- 'getData' => array
- (
-
- 'option' => array
- (
- 'mid' => 'yes',
- 'type' => 'yes',
- 'state' => 1,
- ),
- 'order' => array('id' => 'desc'),
- 'page' => array(10, 'list'),
- 'type' => 'all',
- 'col' => '*',
- ),
- ),
- );
|