bill_jiaofu.php 7.4 KB

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