bill_jiaofu.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?php
  2. $type = Dever::db('option/cash')->config['config_type'];
  3. $status = array
  4. (
  5. 1 => '已确认',
  6. 2 => '未确认',
  7. );
  8. $audit = array
  9. (
  10. 1 => '正常',
  11. 2 => '作废',
  12. );
  13. $audit_manage = array
  14. (
  15. //1 => '正常',
  16. 2 => '作废',
  17. );
  18. $aid = Dever::input('search_option_aid');
  19. $button = array();
  20. if ($aid) {
  21. $button = array
  22. (
  23. '返回上一页' => array('location', 'l=project/database/list&project=option&table=cash&page_type=1&aid=' . $aid),
  24. );
  25. }
  26. return array
  27. (
  28. # 表名
  29. 'name' => 'bill_jiaofu',
  30. # 显示给用户看的名称
  31. 'lang' => '期权交付记录',
  32. 'order' => 90,
  33. 'end' => array
  34. (
  35. 'update' => 'option/lib/manage.setJiaofu',
  36. ),
  37. 'config_audit' => $audit,
  38. # 数据结构
  39. 'struct' => array
  40. (
  41. 'id' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => 'ID',
  45. 'default' => '',
  46. 'desc' => '',
  47. 'match' => 'is_numeric',
  48. 'search' => 'order',
  49. //'list' => true,
  50. ),
  51. 'order_num' => array
  52. (
  53. 'type' => 'varchar-100',
  54. 'name' => '流水号',
  55. 'default' => '',
  56. 'desc' => '流水号',
  57. 'match' => 'is_string',
  58. 'update' => 'text',
  59. 'search' => 'fulltext',
  60. 'list' => true,
  61. 'list_order' => 1,
  62. ),
  63. 'type' => array
  64. (
  65. 'type' => 'tinyint-1',
  66. 'name' => '交易类型',
  67. 'default' => '1',
  68. 'desc' => '交易类型',
  69. 'match' => 'is_numeric',
  70. 'option' => $type,
  71. 'update' => 'radio',
  72. 'list' => true,
  73. 'list_order' => 6,
  74. ),
  75. 'aid' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '手机号',
  79. 'default' => '-1',
  80. 'desc' => '代理商',
  81. 'match' => 'is_string',
  82. 'update' => 'text',
  83. 'search' => array
  84. (
  85. 'api' => 'option/account-find',
  86. 'col' => 'mobile',
  87. 'result' => 'id',
  88. ),
  89. 'list_name' => '期权账户',
  90. 'list' => 'Dever::load("option/lib/account.getInfo", {aid})',
  91. 'list_order' => 3,
  92. ),
  93. 'cash' => array
  94. (
  95. 'type' => 'float-11,2',
  96. 'name' => '期权价值',
  97. 'default' => '0',
  98. 'desc' => '期权价值',
  99. 'match' => 'is_numeric',
  100. //'update' => 'text',
  101. 'list' => true,
  102. 'list_order' => 5,
  103. ),
  104. 'status' => array
  105. (
  106. 'type' => 'tinyint-1',
  107. 'name' => '交付确认',
  108. 'default' => '2',
  109. 'desc' => '交付确认',
  110. 'match' => 'is_numeric',
  111. 'option' => $status,
  112. 'update' => 'radio',
  113. 'list' => true,
  114. 'list_order' => 4,
  115. ),
  116. 'audit' => array
  117. (
  118. 'type' => 'tinyint-1',
  119. 'name' => '审核',
  120. 'default' => '1',
  121. 'desc' => '审核',
  122. 'match' => 'is_numeric',
  123. 'option' => $audit_manage,
  124. 'update' => 'radio',
  125. 'control' => 'audit',
  126. ),
  127. 'audit_desc' => array
  128. (
  129. 'type' => 'varchar-500',
  130. 'name' => '备注',
  131. 'default' => '',
  132. 'desc' => '备注',
  133. 'match' => 'option',
  134. 'update' => 'textarea',
  135. 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
  136. 'list_order' => 8,
  137. ),
  138. 'audit_date' => array
  139. (
  140. 'type' => 'int-11',
  141. 'name' => '审核时间',
  142. 'match' => 'is_numeric',
  143. 'desc' => '审核时间',
  144. 'default' => '',
  145. ),
  146. 'audit_admin' => array
  147. (
  148. 'type' => 'int-11',
  149. 'name' => '操作人',
  150. 'default' => '',
  151. 'match' => 'is_numeric',
  152. 'desc' => '操作人',
  153. 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#name", {audit_admin}) : "-"',
  154. 'list_order' => 7,
  155. ),
  156. 'state' => array
  157. (
  158. 'type' => 'tinyint-1',
  159. 'name' => '状态',
  160. 'default' => '1',
  161. 'desc' => '请选择状态',
  162. 'match' => 'is_numeric',
  163. ),
  164. 'cdate' => array
  165. (
  166. 'type' => 'int-11',
  167. 'name' => '处理时间',
  168. 'match' => array('is_numeric', time()),
  169. 'desc' => '',
  170. 'default' => '',
  171. # 只有insert时才生效
  172. 'insert' => true,
  173. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  174. 'list_order' => 2,
  175. ),
  176. ),
  177. 'manage' => array
  178. (
  179. 'insert' => false,
  180. 'delete' => false,
  181. 'edit' => false,
  182. 'button' => $button,
  183. 'list_button' => array
  184. (
  185. //'list' => array('查看详情', '"member_area&mid={id}&page_type=1"'),
  186. 'edit' => array('作废', 'audit,audit_desc', '{audit} == 1'),
  187. //'delete' => array('删除', '', '{status} == 1'),
  188. ),
  189. ),
  190. 'request' => array
  191. (
  192. 'getData' => array
  193. (
  194. # 匹配的正则或函数 选填项
  195. 'option' => array
  196. (
  197. 'aid' => 'yes',
  198. 'type' => 'yes',
  199. 'status' => 'yes',
  200. 'state' => 1,
  201. ),
  202. 'order' => array('id' => 'desc'),
  203. 'page' => array(10, 'list'),
  204. 'type' => 'all',
  205. 'col' => '*',
  206. ),
  207. ),
  208. );