tixian.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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-find',
  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. 'search' => 'fulltext',
  75. 'list_order' => 3,
  76. ),
  77. 'agent-member-role'=> array
  78. (
  79. 'name' => '代理角色',
  80. 'default' => '',
  81. 'desc' => '代理角色',
  82. 'match' => 'option',
  83. # 读取另外表的关联方式
  84. 'sync' => array('mid', 'id'),
  85. 'list' => 'Dever::load("setting/role-find#name", "{agent-member-role}")',
  86. 'list_order' => 5,
  87. ),
  88. 'order_num' => array
  89. (
  90. 'type' => 'varchar-100',
  91. 'name' => '流水号',
  92. 'default' => '',
  93. 'desc' => '流水号',
  94. 'match' => 'is_string',
  95. 'update' => 'text',
  96. 'search' => 'fulltext',
  97. 'list' => true,
  98. 'list_order' => 1,
  99. ),
  100. 'ycash' => array
  101. (
  102. 'type' => 'float-11,2',
  103. 'name' => '提现金额',
  104. 'default' => '0',
  105. 'desc' => '金额',
  106. 'match' => 'is_numeric',
  107. 'update' => 'text',
  108. 'list' => true,
  109. 'list_order' => 6,
  110. ),
  111. 'cash' => array
  112. (
  113. 'type' => 'float-11,2',
  114. 'name' => '实际提现金额',
  115. 'default' => '0',
  116. 'desc' => '提现金额',
  117. 'match' => 'is_numeric',
  118. 'update' => 'text',
  119. 'list' => true,
  120. 'list_order' => 7,
  121. ),
  122. 'yue' => array
  123. (
  124. 'type' => 'float-11,2',
  125. 'name' => '提现后余额',
  126. 'default' => '0',
  127. 'desc' => '提现后余额',
  128. 'match' => 'is_numeric',
  129. 'update' => 'text',
  130. 'list' => true,
  131. 'list_order' => 8,
  132. ),
  133. 'name' => array
  134. (
  135. 'type' => 'varchar-100',
  136. 'name' => '姓名',
  137. 'default' => '',
  138. 'desc' => '姓名',
  139. 'match' => 'is_string',
  140. 'update' => 'text',
  141. ),
  142. 'bank' => array
  143. (
  144. 'type' => 'int-11',
  145. 'name' => '银行',
  146. 'default' => '',
  147. 'desc' => '银行',
  148. 'match' => 'is_numeric',
  149. 'update' => 'text',
  150. ),
  151. 'bankname' => array
  152. (
  153. 'type' => 'varchar-100',
  154. 'name' => '开户行',
  155. 'default' => '',
  156. 'desc' => '开户行',
  157. 'match' => 'is_string',
  158. 'update' => 'text',
  159. ),
  160. 'card' => array
  161. (
  162. 'type' => 'varchar-200',
  163. 'name' => '卡号',
  164. 'default' => '',
  165. 'desc' => '卡号',
  166. 'match' => 'is_string',
  167. 'update' => 'text',
  168. ),
  169. 'cash_id' => array
  170. (
  171. 'type' => 'int-11',
  172. 'name' => '资金表id',
  173. 'default' => '',
  174. 'desc' => '资金表id',
  175. 'match' => 'is_string',
  176. 'update' => 'text',
  177. ),
  178. 'bill-cash-status'=> array
  179. (
  180. 'name' => '交易状态',
  181. 'default' => '',
  182. 'desc' => '交易状态',
  183. 'match' => 'option',
  184. # 读取另外表的关联方式
  185. 'sync' => array('cash_id', 'id'),
  186. 'search' => 'select',
  187. 'list' => true,
  188. 'option' => $cash_status,
  189. 'list_order' => 9,
  190. ),
  191. 'status' => array
  192. (
  193. 'type' => 'int-11',
  194. 'name' => '发放状态',
  195. 'default' => '1',
  196. 'desc' => '发放状态',
  197. 'match' => 'is_numeric',
  198. 'update' => 'hidden',
  199. 'option' => $status,
  200. 'search' => 'select',
  201. 'list' => true,
  202. 'list_order' => 10,
  203. ),
  204. 'audit' => array
  205. (
  206. 'type' => 'int-11',
  207. 'name' => '审核状态',
  208. 'default' => '2',
  209. 'desc' => '审核状态',
  210. 'match' => 'is_numeric',
  211. 'update' => 'radio',
  212. 'option' => $manage_status,
  213. 'mul' => true,
  214. 'control' => 'audit',
  215. ),
  216. 'audit_desc' => array
  217. (
  218. 'type' => 'varchar-600',
  219. 'name' => '备注',
  220. 'default' => '',
  221. 'desc' => '审核说明',
  222. 'match' => 'is_string',
  223. 'update' => 'textarea',
  224. 'list' => '"{audit_desc}" ? "{audit_desc}" : "-"',
  225. 'list_order' => 12,
  226. 'show' => 'audit=3',
  227. ),
  228. 'pic' => array
  229. (
  230. 'type' => 'text-255',
  231. 'name' => '凭证',
  232. 'default' => '',
  233. 'desc' => '请选择凭证',
  234. 'match' => 'option',
  235. 'update' => 'images',
  236. 'key' => '1',
  237. 'place' => '150',
  238. ),
  239. 'sign' => array
  240. (
  241. 'type' => 'varchar-150',
  242. 'name' => '手写签名',
  243. 'default' => '',
  244. 'desc' => '手写签名',
  245. 'match' => 'option',
  246. 'update' => 'image',
  247. 'key' => '7',
  248. 'list' => '"<img src=\'{sign}\' width=\'150\'>"',
  249. ),
  250. 'operdate' => array
  251. (
  252. 'type' => 'int-11',
  253. 'name' => '发放时间',
  254. 'default' => '',
  255. 'match' => 'is_numeric',
  256. 'desc' => '',
  257. 'list' => '"{operdate}" > 0 ? date("Y-m-d H:i", {operdate}) : "-"',
  258. 'list_order' => 11,
  259. ),
  260. 'state' => array
  261. (
  262. 'type' => 'tinyint-1',
  263. 'name' => '状态',
  264. 'default' => '1',
  265. 'desc' => '请选择状态',
  266. 'match' => 'is_numeric',
  267. ),
  268. 'cdate' => array
  269. (
  270. 'type' => 'int-11',
  271. 'name' => '交易时间',
  272. 'match' => array('is_numeric', time()),
  273. 'desc' => '',
  274. # 只有insert时才生效
  275. //'insert' => true,
  276. 'search' => 'date',
  277. 'list' => 'date("Y-m-d H:i", {cdate})',
  278. 'list_order' => 2,
  279. ),
  280. ),
  281. 'manage' => array
  282. (
  283. 'insert' => false,
  284. 'delete' => false,
  285. 'edit' => false,
  286. 'mul' => true,
  287. 'list_button' => array
  288. (
  289. 'list' => array('查看详情', '"push_cash&project=bill&id={cash_id}&page_type=1"'),
  290. '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'),
  291. ),
  292. ),
  293. 'request' => array
  294. (
  295. 'getData' => array
  296. (
  297. # 匹配的正则或函数 选填项
  298. 'option' => array
  299. (
  300. 'mid' => 'yes',
  301. 'state' => 1,
  302. ),
  303. 'order' => array('id' => 'desc'),
  304. 'page' => array(10, 'list'),
  305. 'type' => 'all',
  306. 'col' => '*',
  307. ),
  308. 'getNew' => array
  309. (
  310. # 匹配的正则或函数 选填项
  311. 'option' => array
  312. (
  313. 'mid' => 'yes',
  314. 'state' => 1,
  315. ),
  316. 'order' => array('id' => 'desc'),
  317. 'type' => 'one',
  318. 'col' => '*',
  319. ),
  320. ),
  321. );