push_cash.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php
  2. $mid = Dever::input('search_option_mid');
  3. $status = array
  4. (
  5. 1 => '发放成功',
  6. 2 => '发放失败',
  7. );
  8. $type = array
  9. (
  10. 10 => '手动发放',
  11. 13 => '区域招商补贴',
  12. 14 => '创V归店补贴',
  13. 15 => '区域运营收益',
  14. //21 => '抵扣券差额',
  15. );
  16. return array
  17. (
  18. # 表名
  19. 'name' => 'push_cash',
  20. # 显示给用户看的名称
  21. 'lang' => '发放资金',
  22. 'order' => 99,
  23. 'menu' => false,
  24. 'end' => array
  25. (
  26. 'insert' => 'bill/lib/manage.cashUpdate',
  27. ),
  28. # 数据结构
  29. 'struct' => array
  30. (
  31. 'id' => array
  32. (
  33. 'type' => 'int-11',
  34. 'name' => 'ID',
  35. 'default' => '',
  36. 'desc' => '',
  37. 'match' => 'is_numeric',
  38. 'search' => 'order',
  39. //'list' => true,
  40. ),
  41. 'mid' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => '代理商',
  45. 'default' => '-1',
  46. 'desc' => '代理商',
  47. 'match' => 'is_string',
  48. 'update' => 'hidden',
  49. 'value' => $mid,
  50. ),
  51. 'type' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '交易类型',
  55. 'default' => '10',
  56. 'desc' => '交易类型',
  57. 'match' => 'is_numeric',
  58. 'update' => 'radio',
  59. 'option' => $type,
  60. ),
  61. 'cash' => array
  62. (
  63. 'type' => 'decimal-11,2',
  64. 'name' => '发放金额-金额单位为元',
  65. 'default' => '',
  66. 'desc' => '发放金额',
  67. 'match' => 'is_numeric',
  68. 'update' => 'text',
  69. ),
  70. 'desc' => array
  71. (
  72. 'type' => 'varchar-600',
  73. 'name' => '资金说明',
  74. 'default' => '',
  75. 'desc' => '资金说明',
  76. 'match' => 'option',
  77. 'update' => 'textarea',
  78. ),
  79. 'admin_founder' => array
  80. (
  81. 'type' => 'int-11',
  82. 'name' => '插入操作人',
  83. 'default' => '',
  84. 'desc' => '',
  85. 'match' => 'is_numeric',
  86. 'search' => 'order',
  87. //'list' => true,
  88. ),
  89. 'admin_editor' => array
  90. (
  91. 'type' => 'int-11',
  92. 'name' => '更新操作人',
  93. 'default' => '',
  94. 'desc' => '',
  95. 'match' => 'is_numeric',
  96. 'search' => 'order',
  97. //'list' => true,
  98. ),
  99. 'status' => array
  100. (
  101. 'type' => 'int-11',
  102. 'name' => '发放状态',
  103. 'default' => '1',
  104. 'desc' => '发放状态',
  105. 'match' => 'is_numeric',
  106. 'update' => 'hidden',
  107. 'option' => $status,
  108. ),
  109. 'state' => array
  110. (
  111. 'type' => 'tinyint-1',
  112. 'name' => '状态',
  113. 'default' => '1',
  114. 'desc' => '请选择状态',
  115. 'match' => 'is_numeric',
  116. ),
  117. 'cdate' => array
  118. (
  119. 'type' => 'int-11',
  120. 'name' => '交易时间',
  121. 'match' => array('is_numeric', time()),
  122. 'desc' => '',
  123. # 只有insert时才生效
  124. //'insert' => true,
  125. 'search' => 'date',
  126. 'list' => 'date("Y-m-d H:i", {cdate})',
  127. 'list_order' => 2,
  128. ),
  129. ),
  130. 'manage' => array
  131. (
  132. 'insert' => false,
  133. 'delete' => false,
  134. 'edit' => false,
  135. 'page_list' => 'push_cash',
  136. 'list_button' => array
  137. (
  138. ),
  139. ),
  140. 'request' => array
  141. (
  142. ),
  143. );