info_refund_log.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. 'status' => array
  88. (
  89. 'type' => 'tinyint-1',
  90. 'name' => '退款状态',
  91. 'default' => '1',
  92. 'desc' => '退款状态',
  93. 'match' => 'is_numeric',
  94. 'option' => $status,
  95. 'search' => 'select',
  96. // 'list' => true,
  97. ),
  98. 'audit_admin' => array
  99. (
  100. 'type' => 'int-11',
  101. 'name' => '退款操作人',
  102. 'default' => '',
  103. 'match' => 'is_numeric',
  104. 'desc' => '退款操作人',
  105. // 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
  106. ),
  107. 'state' => array
  108. (
  109. 'type' => 'tinyint-1',
  110. 'name' => '状态',
  111. 'default' => '1',
  112. 'desc' => '请选择状态',
  113. 'match' => 'is_numeric',
  114. ),
  115. 'cdate' => array
  116. (
  117. 'type' => 'int-11',
  118. 'name' => '退款日期',
  119. 'match' => array('is_numeric', time()),
  120. 'desc' => '',
  121. # 只有insert时才生效
  122. 'insert' => true,
  123. 'search' => 'day',
  124. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  125. 'list_order' => 5,
  126. ),
  127. ),
  128. 'manage' => array
  129. (
  130. 'insert' => false,
  131. 'delete' => false,
  132. 'edit' => false,
  133. ),
  134. 'request' => array
  135. (
  136. 'getAll' => array
  137. (
  138. # 匹配的正则或函数 选填项
  139. 'option' => array
  140. (
  141. 'join_id' => 'yes',
  142. 'state' => 1,
  143. ),
  144. 'type' => 'all',
  145. 'order' => array('cdate' => 'desc'),
  146. 'col' => '*',
  147. ),
  148. 'getNum' => array
  149. (
  150. # 匹配的正则或函数 选填项
  151. 'option' => array
  152. (
  153. 'order_id' => 'yes',
  154. 'state' => 1,
  155. 'status' => 2,
  156. ),
  157. 'type' => 'one',
  158. 'order' => array('cdate' => 'desc'),
  159. 'col' => 'sum(num) as num',
  160. ),
  161. ),
  162. );