yspay_merchant_log.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?php
  2. $type = array
  3. (
  4. 1 => '入账',
  5. //2 => '分账',
  6. 3 => '提现',
  7. );
  8. $tixian_status = array
  9. (
  10. 1 => array('name' => '操作成功', 'style' => 'font-weight:bold;color:#003366'),
  11. 2 => array('name' => '操作失败', 'style' => 'font-weight:bold;color:#993333'),
  12. );
  13. $link = Dever::decode(Dever::input('refer'));
  14. $button = array
  15. (
  16. '返回上一页' => array('location', $link),
  17. );
  18. return array
  19. (
  20. # 表名
  21. 'name' => 'yspay_merchant_log',
  22. # 显示给用户看的名称
  23. 'lang' => '银联资金日志列表',
  24. 'order' => -200,
  25. 'menu' => false,
  26. 'end' => array
  27. (
  28. 'update_tixian_status' => 'pay/yspay/merchant.updateLog',
  29. ),
  30. # 数据结构
  31. 'struct' => array
  32. (
  33. 'id' => array
  34. (
  35. 'type' => 'int-11',
  36. 'name' => 'ID',
  37. 'default' => '',
  38. 'desc' => '',
  39. 'match' => 'is_numeric',
  40. 'order' => 'desc',
  41. 'update' => 'hidden',
  42. //'list' => true,
  43. ),
  44. 'account_id' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '账户id',
  48. 'default' => '',
  49. 'desc' => '账户id',
  50. 'match' => 'option',
  51. 'search' => 'hidden',
  52. 'update' => 'hidden',
  53. 'value' => Dever::input('search_option_account_id'),
  54. ),
  55. 'merchant_id' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '商户id',
  59. 'default' => '',
  60. 'desc' => '商户id',
  61. 'match' => 'option',
  62. 'update' => 'hidden',
  63. 'search' => 'hidden',
  64. 'value' => Dever::input('search_option_merchant_id'),
  65. 'list_name' => '商户名称',
  66. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  67. ),
  68. 'name' => array
  69. (
  70. 'type' => 'varchar-100',
  71. 'name' => '操作人',
  72. 'default' => '',
  73. 'desc' => '操作人',
  74. 'match' => 'option',
  75. 'list_name' => '操作人',
  76. 'list' => true,
  77. 'list_order' => 100,
  78. ),
  79. 'type' => array
  80. (
  81. 'type' => 'int-11',
  82. 'name' => '类型',
  83. 'default' => '',
  84. 'desc' => '类型',
  85. 'match' => 'is_numeric',
  86. 'update' => 'text',
  87. 'option' => $type,
  88. 'search' => 'select',
  89. 'list' => true,
  90. ),
  91. 'cash' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '交易金额',
  95. 'default' => '0',
  96. 'desc' => '交易金额',
  97. 'match' => 'option',
  98. 'update' => 'text',
  99. 'list' => 'Dever::number({cash}/100, 2)',
  100. ),
  101. 'yue' => array
  102. (
  103. 'type' => 'int-11',
  104. 'name' => '交易后余额',
  105. 'default' => '0',
  106. 'desc' => '交易后余额',
  107. 'match' => 'option',
  108. 'update' => 'text',
  109. 'list' => 'Dever::number({yue}/100, 2)',
  110. ),
  111. 'tixian_status' => array
  112. (
  113. 'type' => 'tinyint-1',
  114. 'name' => '状态',
  115. 'default' => '1',
  116. 'desc' => '状态',
  117. 'match' => 'is_numeric',
  118. 'update' => 'text',
  119. 'option' => $tixian_status,
  120. 'search' => 'select',
  121. 'list' => true,
  122. 'edit' => '{my_role_id} == 1 && {type} == 3 && {tixian_status} == 1'
  123. ),
  124. 'state' => array
  125. (
  126. 'type' => 'tinyint-1',
  127. 'name' => '状态',
  128. 'default' => '1',
  129. 'desc' => '请选择状态',
  130. 'match' => 'is_numeric',
  131. ),
  132. 'cdate' => array
  133. (
  134. 'type' => 'int-11',
  135. 'name' => '交易时间',
  136. 'match' => array('is_numeric', time()),
  137. 'desc' => '',
  138. # 只有insert时才生效
  139. //'insert' => true,
  140. 'search' => 'date',
  141. 'list' => 'date("Y-m-d H:i", {cdate})',
  142. ),
  143. ),
  144. 'manage' => array
  145. (
  146. 'edit' => false,
  147. 'insert' => false,
  148. 'delete' => false,
  149. 'button' => $button,
  150. ),
  151. 'request' => array
  152. (
  153. 'getList' => array
  154. (
  155. 'option' => array
  156. (
  157. 'start' => array('yes-cdate', '>='),
  158. 'end' => array('yes-cdate', '<='),
  159. 'type' => 'yes',
  160. 'merchant_id' => 'yes',
  161. 'state' => 1,
  162. ),
  163. 'type' => 'all',
  164. 'page' => array(20, 'list'),
  165. 'order' => array('id' => 'desc'),
  166. 'col' => '*',
  167. ),
  168. ),
  169. );