tixian.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待发放',
  5. 2 => '已发放',
  6. );
  7. $cash_status = array
  8. (
  9. 1 => '待审核',
  10. 2 => '已审核',
  11. 3 => '已作废',
  12. );
  13. $manage_status = array
  14. (
  15. //1 => '待发放',
  16. 2 => '已发放',
  17. );
  18. $mid = Dever::input('search_option_mid');
  19. return array
  20. (
  21. # 表名
  22. 'name' => 'tixian',
  23. # 显示给用户看的名称
  24. 'lang' => '提现管理',
  25. 'set' => array
  26. (
  27. 'status' => $status,
  28. ),
  29. 'end' => array
  30. (
  31. 'update' => 'bill/lib/manage.tixianAuditUpdate',
  32. ),
  33. 'order' => 80,
  34. # 数据结构
  35. 'struct' => array
  36. (
  37. 'id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => 'ID',
  41. 'default' => '',
  42. 'desc' => '',
  43. 'match' => 'is_numeric',
  44. 'search' => 'order',
  45. //'list' => true,
  46. ),
  47. 'mid' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '手机号',
  51. 'default' => '-1',
  52. 'desc' => '代理商',
  53. 'match' => 'is_string',
  54. 'update' => 'text',
  55. 'search' => $mid ? 'hidden' : array
  56. (
  57. 'api' => 'agent/member-select',
  58. 'col' => 'mobile',
  59. 'result' => 'id',
  60. ),
  61. 'list_name' => '手机号',
  62. 'list' => 'Dever::load("agent/member-find#mobile", {mid})',
  63. 'list_order' => 4,
  64. ),
  65. 'agent-member-name'=> array
  66. (
  67. 'name' => '姓名',
  68. 'default' => '',
  69. 'desc' => '姓名',
  70. 'match' => 'option',
  71. # 读取另外表的关联方式
  72. 'sync' => array('mid', 'id'),
  73. 'list' => true,
  74. 'list_order' => 3,
  75. ),
  76. 'agent-member-role'=> array
  77. (
  78. 'name' => '代理角色',
  79. 'default' => '',
  80. 'desc' => '代理角色',
  81. 'match' => 'option',
  82. # 读取另外表的关联方式
  83. 'sync' => array('mid', 'id'),
  84. 'list' => 'Dever::load("setting/role-find#name", "{agent-member-role}")',
  85. 'list_order' => 5,
  86. ),
  87. 'order_num' => array
  88. (
  89. 'type' => 'varchar-100',
  90. 'name' => '流水号',
  91. 'default' => '',
  92. 'desc' => '流水号',
  93. 'match' => 'is_string',
  94. 'update' => 'text',
  95. 'search' => 'fulltext',
  96. 'list' => true,
  97. 'list_order' => 1,
  98. ),
  99. 'ycash' => array
  100. (
  101. 'type' => 'float-11,2',
  102. 'name' => '提现金额',
  103. 'default' => '0',
  104. 'desc' => '金额',
  105. 'match' => 'is_numeric',
  106. 'update' => 'text',
  107. 'list' => true,
  108. 'list_order' => 6,
  109. ),
  110. 'cash' => array
  111. (
  112. 'type' => 'float-11,2',
  113. 'name' => '实际提现金额',
  114. 'default' => '0',
  115. 'desc' => '提现金额',
  116. 'match' => 'is_numeric',
  117. 'update' => 'text',
  118. 'list' => true,
  119. 'list_order' => 7,
  120. ),
  121. 'yue' => array
  122. (
  123. 'type' => 'float-11,2',
  124. 'name' => '提现后余额',
  125. 'default' => '0',
  126. 'desc' => '提现后余额',
  127. 'match' => 'is_numeric',
  128. 'update' => 'text',
  129. 'list' => true,
  130. 'list_order' => 8,
  131. ),
  132. 'name' => array
  133. (
  134. 'type' => 'varchar-100',
  135. 'name' => '姓名',
  136. 'default' => '',
  137. 'desc' => '姓名',
  138. 'match' => 'is_string',
  139. 'update' => 'text',
  140. ),
  141. 'bank' => array
  142. (
  143. 'type' => 'int-11',
  144. 'name' => '银行',
  145. 'default' => '',
  146. 'desc' => '银行',
  147. 'match' => 'is_numeric',
  148. 'update' => 'text',
  149. ),
  150. 'bankname' => array
  151. (
  152. 'type' => 'varchar-100',
  153. 'name' => '开户行',
  154. 'default' => '',
  155. 'desc' => '开户行',
  156. 'match' => 'is_string',
  157. 'update' => 'text',
  158. ),
  159. 'card' => array
  160. (
  161. 'type' => 'varchar-200',
  162. 'name' => '卡号',
  163. 'default' => '',
  164. 'desc' => '卡号',
  165. 'match' => 'is_string',
  166. 'update' => 'text',
  167. ),
  168. 'cash_id' => array
  169. (
  170. 'type' => 'int-11',
  171. 'name' => '资金表id',
  172. 'default' => '',
  173. 'desc' => '资金表id',
  174. 'match' => 'is_string',
  175. 'update' => 'text',
  176. ),
  177. 'bill-cash-status'=> array
  178. (
  179. 'name' => '交易状态',
  180. 'default' => '',
  181. 'desc' => '交易状态',
  182. 'match' => 'option',
  183. # 读取另外表的关联方式
  184. 'sync' => array('cash_id', 'id'),
  185. 'list' => true,
  186. 'option' => $cash_status,
  187. 'list_order' => 9,
  188. ),
  189. 'status' => array
  190. (
  191. 'type' => 'int-11',
  192. 'name' => '发放状态',
  193. 'default' => '1',
  194. 'desc' => '发放状态',
  195. 'match' => 'is_numeric',
  196. 'update' => 'hidden',
  197. 'option' => $status,
  198. 'search' => 'select',
  199. 'list' => true,
  200. 'list_order' => 10,
  201. ),
  202. 'audit' => array
  203. (
  204. 'type' => 'int-11',
  205. 'name' => '审核状态',
  206. 'default' => '2',
  207. 'desc' => '审核状态',
  208. 'match' => 'is_numeric',
  209. 'update' => 'radio',
  210. 'option' => $manage_status,
  211. ),
  212. 'audit_desc' => array
  213. (
  214. 'type' => 'varchar-600',
  215. 'name' => '备注',
  216. 'default' => '',
  217. 'desc' => '审核说明',
  218. 'match' => 'is_string',
  219. 'update' => 'textarea',
  220. 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
  221. 'list_order' => 12,
  222. ),
  223. 'pic' => array
  224. (
  225. 'type' => 'text-255',
  226. 'name' => '凭证',
  227. 'default' => '',
  228. 'desc' => '请选择凭证',
  229. 'match' => 'option',
  230. 'update' => 'images',
  231. 'key' => '1',
  232. 'place' => '150',
  233. ),
  234. 'operdate' => array
  235. (
  236. 'type' => 'int-11',
  237. 'name' => '发放时间',
  238. 'default' => '',
  239. 'match' => 'is_numeric',
  240. 'desc' => '',
  241. 'list' => '"{operdate}" > 0 ? date("Y-m-d H:i", {operdate}) : "-"',
  242. 'list_order' => 11,
  243. ),
  244. 'state' => array
  245. (
  246. 'type' => 'tinyint-1',
  247. 'name' => '状态',
  248. 'default' => '1',
  249. 'desc' => '请选择状态',
  250. 'match' => 'is_numeric',
  251. ),
  252. 'cdate' => array
  253. (
  254. 'type' => 'int-11',
  255. 'name' => '交易时间',
  256. 'match' => array('is_numeric', time()),
  257. 'desc' => '',
  258. # 只有insert时才生效
  259. //'insert' => true,
  260. 'search' => 'date',
  261. 'list' => 'date("Y-m-d H:i", {cdate})',
  262. 'list_order' => 2,
  263. ),
  264. ),
  265. 'manage' => array
  266. (
  267. 'insert' => false,
  268. 'delete' => false,
  269. 'edit' => false,
  270. 'list_button' => array
  271. (
  272. 'list' => array('查看详情', '"push_cash&project=bill&id={cash_id}&page_type=1"'),
  273. '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'),
  274. ),
  275. ),
  276. 'request' => array
  277. (
  278. 'getData' => array
  279. (
  280. # 匹配的正则或函数 选填项
  281. 'option' => array
  282. (
  283. 'mid' => 'yes',
  284. 'state' => 1,
  285. ),
  286. 'order' => array('id' => 'desc'),
  287. 'page' => array(10, 'list'),
  288. 'type' => 'all',
  289. 'col' => '*',
  290. ),
  291. 'getNew' => array
  292. (
  293. # 匹配的正则或函数 选填项
  294. 'option' => array
  295. (
  296. 'mid' => 'yes',
  297. 'state' => 1,
  298. ),
  299. 'order' => array('id' => 'desc'),
  300. 'type' => 'one',
  301. 'col' => '*',
  302. ),
  303. ),
  304. );