| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 | <?php$status = array(    -1 => array('name' => '未审核待发放', 'style' => 'font-weight:bold;color:#436EEE'),    1 => array('name' => '已审核待发放', 'style' => 'font-weight:bold;color:green'),    //2 => array('name' => '已审核待发放', 'style' => 'font-weight:bold;color:green'),    2 => array('name' => '已发放', 'style' => 'font-weight:bold;color:#CD3700'),    3 => array('name' => '已作废','style' => 'font-weight:bold;color:#CD3700'),);$cash_status = array(    1 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),    2 => array('name' => '已审核', 'style' => 'font-weight:bold;color:green'),    3 => array('name' => '已作废', 'style' => 'font-weight:bold;color:#CD3700'),);$manage_status = array(    //1 => '待发放',    2 => '已发放',    3 => '已作废',);$list_button = array();$list_button['list'] = array('查看详情', '"push_cash&project=bill&id={cash_id}&page_type=1&[refer]"');if (Dever::load('manage/auth')->checkFunc('bill.tixian', 'edit1', '发放')) {    $list_button['fast'] = array('发放', '"tixian&where_id={id}&col=audit,audit_desc,pic&oper_save_jump=tixian&oper_table=tixian&oper_parent=tixian"', '{status} == 1 && "{bill-cash-status}" == 2');}$mid = Dever::input('search_option_mid');$mul = false;if (Dever::load('manage/auth')->checkFunc('bill.tixian', 'fafangedit', '批量发放')) {    $mul = '{status} == 1';}return array(    # 表名    'name' => 'tixian',    # 显示给用户看的名称    'lang' => '提现管理',    'auto' => 100000,    'set' => array    (    	'status' => $status,    ),    'end' => array    (        'update' => 'bill/lib/manage.tixianAuditUpdate',        'updatemul' => 'bill/lib/manage.tixianAuditUpdate',    ),    'order' => 80,    # 数据结构    'struct' => array    (            'id'        => array        (            'type'      => 'int-11',            'name'      => 'ID',            'default'   => '',            'desc'      => '',            'match'     => 'is_numeric',            'search'    => 'order',            //'list'        => true,        ),        'mid'      => array        (            'type'      => 'int-11',            'name'      => '代理商姓名/手机号',            'default'   => '-1',            'desc'      => '代理商',            'match'     => 'is_string',            'update'    => 'text',            'search'    => array            (                'api' => 'agent/member-getSearch',                'col' => 'col',                'result' => 'id',                'search' => 'mid',            ),            'list_name' => '代理商信息',            'list'      => 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',            'list_order' => 3,        ),        'agent-member-name'=> array        (            'name'      => '姓名',            'default'   => '',            'desc'      => '姓名',            'match'     => 'option',            # 读取另外表的关联方式            'sync'      => array('mid', 'id'),        ),        '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_name' => '流水号<br />交易时间<br />发放时间',            'list'      => 'Dever::load("bill/lib/tixian.order_num#name",{id})',            'list_order'  => 1,        ),        'ycash'      => array        (            'type'      => 'decimal-11,2',            'name'      => '提现金额',            'default'   => '0',            'desc'      => '金额',            'match'     => 'is_numeric',            'update'    => 'text',            'list'      => true,            'list_name' => '提现金额<br />实际提现金额<br />提现后余额',            'list'      => 'Dever::load("bill/lib/tixian.order_num#money",{id})',            'list_order' => 6,        ),        'cash'      => array        (            'type'      => 'decimal-11,2',            'name'      => '实际提现金额',            'default'   => '0',            'desc'      => '提现金额',            'match'     => 'is_numeric',            'update'    => 'text',            // 'list'      => true,            // 'list_order' => 7,        ),        'yue'      => array        (            'type'      => 'decimal-11,2',            'name'      => '提现后余额',            'default'   => '0',            'desc'      => '提现后余额',            'match'     => 'is_numeric',            'update'    => 'text',            // 'list'      => true,            // 'list_order' => 8,        ),        'cash_id'      => array        (            'type'      => 'int-11',            'name'      => '资金表id',            'default'   => '',            'desc'      => '资金表id',            'match'     => 'is_string',            'update'    => 'text',        ),        'bill-cash-status'=> array        (            'name'      => '交易状态',            'default'   => '',            'desc'      => '交易状态',            'match'     => 'option',            # 读取另外表的关联方式            'sync'      => array('cash_id', 'id'),            // 'search'    => 'select',            //'list'      => true,            'option'	=> $cash_status,            //'list_name' => '交易状态<br />发放状态',            //'list'      => 'Dever::load("bill/lib/tixian.order_num#status",{id})',            //'list_order' => 9,        ),        'status'        => array        (            'type'      => 'int-11',            'name'      => '发放状态',            'default'   => '1',            'desc'      => '发放状态',            'match'     => 'is_numeric',            'update'  	=> 'hidden',            'option'    => $status,            'search'    => 'select',            // 'list'      => true,            // 'list_order' => 10,            'list_name' => '交易状态',            'list'      => true,            'list_order' => 9,        ),        'audit'        => array        (            'type'      => 'int-11',            'name'      => '审核状态',            'default'   => '2',            'desc'      => '审核状态',            'match'     => 'is_numeric',            'update'    => 'radio',            'option'    => $manage_status,            'mul'       => true,            'control'   => 'audit',        ),        'audit_desc'      => array        (            'type'      => 'varchar-600',            'name'      => '备注',            'default'   => '',            'desc'      => '审核说明',            'match'     => 'is_string',            'update'    => 'textarea',            'list'      => '"{audit_desc}" ? "{audit_desc}" : "-"',            'list_order'  => 12,            'show'      => 'audit=3',        ),        'pic'		=> array		(			'type' 		=> 'text-255',			'name' 		=> '凭证',			'default' 	=> '',			'desc' 		=> '请选择凭证',			'match' 	=> 'option',			'update'	=> 'images',			'key' 		=> '1',			'place'		=> '150',            'show'      => 'audit=2',		),        'sign'     => array        (            'type'      => 'varchar-150',            'name'      => '手写签名',            'default'   => '',            'desc'      => '手写签名',            'match'     => 'option',            'update'    => 'image',            'key'       => '7',            'list'      => '"<img src=\'{sign}\' width=\'150\'>"',        ),        'operdate'     => array        (            'type'      => 'int-11',            'name'      => '发放时间',            'default'   => '',            'match'     => 'is_numeric',            'desc'      => '',            // 'list'      => '"{operdate}" > 0 ? date("Y-m-d H:i", {operdate}) : "-"',            // 'list_order'  => 11,        ),        'audit_admin'     => array        (            'type'      => 'int-11',            'name'      => '操作人',            'default'   => '',            'match'     => 'is_numeric',            'desc'      => '操作人',            'list'      => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',            // 'list_order'  => 8,        ),        'state'     => array        (            'type'      => 'tinyint-1',            'name'      => '状态',            'default'   => '1',            'desc'      => '请选择状态',            'match'     => 'is_numeric',        ),                'cdate'     => array        (            'type'      => 'int-11',            'name'      => '交易时间',            'match'     => array('is_numeric', time()),            'desc'      => '',            # 只有insert时才生效            'insert'    => true,            'search'    => 'date',            // 'list'      => 'date("Y-m-d H:i", {cdate})',            // 'list_order'  => 2,        ),    ),    'manage' => array    (        'insert' => false,        'delete' => false,        'edit' => false,        'mul' => $mul,        'list_button' => $list_button,        'button' => array        (            '数据导出' => array('excel', 'bill/lib/manage.tixian_out'),        ),    ),    'request' => array    (        'getData' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'mid' => 'yes',                'state' => 1,            ),            'order' => array('id' => 'desc'),            'page' => array(10, 'list'),            'type' => 'all',            'col' => '*',        ),        'getNew' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'mid' => 'yes',                'state' => 1,            ),            'order' => array('id' => 'desc'),            'type' => 'one',            'col' => '*',        ),        'gettxCash' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'start' => array('yes-cdate', '>='),                'end' => array('yes-cdate', '<='),                'status' => array('yes', 'in'),                'state' => 1,            ),            'type' => 'one',            'col' => 'sum(cash) as total',        ),        'getdfCash' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'start' => array('yes-cdate', '>='),                'end' => array('yes-cdate', '<='),                'status' => array('yes', 'in'),                'state' => 1,            ),            'type' => 'one',            'col' => 'sum(cash) as total',        ),         'getwsCash' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'start' => array('yes-cdate', '>='),                'end' => array('yes-cdate', '<='),                'status' => array('yes', 'in'),                'state' => 1,            ),            'type' => 'one',            'col' => 'sum(cash) as total',        ),        'upStatus' => array        (            'type' => 'update',            'where' => array            (                'id' => 'yes',            ),            'set' => array            (                'status' =>'yes',                'bill-cash-status'=>'yes',            ),        ),        'getExcelAll' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                'start' => array('yes-cdate', '>='),                'end' => array('yes-cdate', '<='),                'status' => array('yes', 'in'),                'state' => 1,            ),            'type' => 'All',            'order' => array('cdate' => 'desc'),            'col' => '*',        ),    ),);
 |