info_refund_log.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php
  2. $status = array
  3. (
  4. 1 => '退款失败',
  5. 2 => '退款成功',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'info_refund_log',
  11. # 显示给用户看的名称
  12. 'lang' => '活动退款',
  13. # 后台菜单排序
  14. 'order' => 2,
  15. 'menu' => false,
  16. 'start' => array
  17. (
  18. 'insert' => 'active/lib/manage.insertInfoRefundLog',
  19. ),
  20. 'end' => array
  21. (
  22. 'insert' => 'active/lib/manage.updateInfoRefundLog',
  23. // 'update' => 'active/lib/manage.updateInfoRefund',
  24. ),
  25. # 数据结构
  26. 'struct' => array
  27. (
  28. 'id' => array
  29. (
  30. 'type' => 'int-11',
  31. 'name' => 'ID',
  32. 'default' => '',
  33. 'desc' => '',
  34. 'match' => 'is_numeric',
  35. 'search' => 'order',
  36. 'list' => true,
  37. 'order' => 'desc',
  38. ),
  39. 'order_id' => array
  40. (
  41. 'type' => 'int-11',
  42. 'name' => '订单id',
  43. 'default' => '-1',
  44. 'desc' => '订单id',
  45. 'match' => 'is_string',
  46. 'value' => Dever::input('search_option_order_id'),
  47. 'update' => 'hidden',
  48. // 'search' => 'text',
  49. // 'list' => "Dever::load('active/lib/manage.active',{active_id})",
  50. ),
  51. 'code_id' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '订单id',
  55. 'default' => '-1',
  56. 'desc' => '订单id',
  57. 'match' => 'is_string',
  58. 'value' => Dever::input('search_option_code_id'),
  59. 'update' => 'hidden',
  60. // 'search' => 'text',
  61. // 'list' => "Dever::load('active/lib/manage.active',{active_id})",
  62. ),
  63. // 'num' => array
  64. // (
  65. // 'type' => 'int-11',
  66. // 'name' => '退款数量-单位:张',
  67. // 'default' => '0',
  68. // 'desc' => '限购数量',
  69. // 'match' => 'option',
  70. // 'update' => 'text',
  71. // // 'search' => 'fulltext',
  72. // // 'list' => true,
  73. // ),
  74. 'price' => array
  75. (
  76. 'type' => 'decimal-11,2',
  77. 'name' => '退款票价-单位:元',
  78. 'default' => '0',
  79. 'desc' => '票价-单位:元',
  80. 'match' => 'option',
  81. 'update' => 'text',
  82. 'value' => Dever::input('search_option_price'),
  83. // 'list' => $search_auth == 1 ? true : false,
  84. // 'list_order' => '3',
  85. // 'tab' => 2,
  86. ),
  87. 'desc' => array
  88. (
  89. 'type' => 'varchar-300',
  90. 'name' => '退款备注',
  91. 'default' => '',
  92. 'desc' => '退款备注',
  93. 'match' => 'is_string',
  94. 'update' => 'textarea',
  95. // 'tab' => 3,
  96. ),
  97. 'status' => array
  98. (
  99. 'type' => 'tinyint-1',
  100. 'name' => '退款状态',
  101. 'default' => '1',
  102. 'desc' => '退款状态',
  103. 'match' => 'is_numeric',
  104. 'option' => $status,
  105. 'search' => 'select',
  106. // 'list' => true,
  107. ),
  108. 'audit_admin' => array
  109. (
  110. 'type' => 'int-11',
  111. 'name' => '退款操作人',
  112. 'default' => '',
  113. 'match' => 'is_numeric',
  114. 'desc' => '退款操作人',
  115. // 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
  116. ),
  117. 'state' => array
  118. (
  119. 'type' => 'tinyint-1',
  120. 'name' => '状态',
  121. 'default' => '1',
  122. 'desc' => '请选择状态',
  123. 'match' => 'is_numeric',
  124. ),
  125. 'cdate' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '退款日期',
  129. 'match' => array('is_numeric', time()),
  130. 'desc' => '',
  131. # 只有insert时才生效
  132. 'insert' => true,
  133. 'search' => 'day',
  134. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  135. 'list_order' => 5,
  136. ),
  137. ),
  138. 'manage' => array
  139. (
  140. 'insert' => false,
  141. 'delete' => false,
  142. 'edit' => false,
  143. ),
  144. 'request' => array
  145. (
  146. 'getAll' => array
  147. (
  148. # 匹配的正则或函数 选填项
  149. 'option' => array
  150. (
  151. 'join_id' => 'yes',
  152. 'state' => 1,
  153. ),
  154. 'type' => 'all',
  155. 'order' => array('cdate' => 'desc'),
  156. 'col' => '*',
  157. ),
  158. 'getNum' => array
  159. (
  160. # 匹配的正则或函数 选填项
  161. 'option' => array
  162. (
  163. 'order_id' => 'yes',
  164. 'state' => 1,
  165. 'status' => 2,
  166. ),
  167. 'type' => 'one',
  168. 'order' => array('cdate' => 'desc'),
  169. 'col' => 'sum(num) as num',
  170. ),
  171. 'getSearch' => array
  172. (
  173. # 匹配的正则或函数 选填项
  174. 'option' => array
  175. (
  176. 'order_id' => 'yes',
  177. 'state' => 1,
  178. 'status' => 2,
  179. ),
  180. 'type' => 'one',
  181. 'order' => array('cdate' => 'desc'),
  182. 'col' => '*',
  183. ),
  184. 'getTui' => array
  185. (
  186. # 匹配的正则或函数 选填项
  187. 'option' => array
  188. (
  189. 'order_id' => 'yes',
  190. 'code_id' => 'yes',
  191. 'state' => 1,
  192. 'status' => 2,
  193. ),
  194. 'type' => 'one',
  195. 'order' => array('cdate' => 'desc'),
  196. 'col' => 'sum(price) as price',
  197. ),
  198. ),
  199. );