info_refund.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. $status = array
  3. (
  4. 1 => '退款失败',
  5. 2 => '退款成功',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'info_refund',
  11. # 显示给用户看的名称
  12. 'lang' => '活动退款记录',
  13. # 后台菜单排序
  14. 'order' => 2,
  15. 'menu' => false,
  16. 'start' => array
  17. (
  18. 'insert' => 'active/lib/manage.insertInfoRefund',
  19. ),
  20. 'end' => array
  21. (
  22. 'insert' => 'active/lib/manage.updateInfoRefund',
  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. 'num' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '退款数量-单位:张',
  55. 'default' => '0',
  56. 'desc' => '限购数量',
  57. 'match' => 'option',
  58. 'update' => 'text',
  59. // 'search' => 'fulltext',
  60. // 'list' => true,
  61. ),
  62. 'status' => array
  63. (
  64. 'type' => 'tinyint-1',
  65. 'name' => '退款状态',
  66. 'default' => '1',
  67. 'desc' => '退款状态',
  68. 'match' => 'is_numeric',
  69. 'option' => $status,
  70. 'search' => 'select',
  71. // 'list' => true,
  72. ),
  73. 'audit_admin' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '退款操作人',
  77. 'default' => '',
  78. 'match' => 'is_numeric',
  79. 'desc' => '退款操作人',
  80. // 'list' => '"{audit_admin}" > 0 ? Dever::load("manage/admin-find#username", {audit_admin}) : "-"',
  81. ),
  82. 'state' => array
  83. (
  84. 'type' => 'tinyint-1',
  85. 'name' => '状态',
  86. 'default' => '1',
  87. 'desc' => '请选择状态',
  88. 'match' => 'is_numeric',
  89. ),
  90. 'cdate' => array
  91. (
  92. 'type' => 'int-11',
  93. 'name' => '退款日期',
  94. 'match' => array('is_numeric', time()),
  95. 'desc' => '',
  96. # 只有insert时才生效
  97. 'insert' => true,
  98. 'search' => 'day',
  99. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  100. 'list_order' => 5,
  101. ),
  102. ),
  103. 'manage' => array
  104. (
  105. 'insert' => false,
  106. 'delete' => false,
  107. 'edit' => false,
  108. ),
  109. 'request' => array
  110. (
  111. 'getAll' => array
  112. (
  113. # 匹配的正则或函数 选填项
  114. 'option' => array
  115. (
  116. 'join_id' => 'yes',
  117. 'state' => 1,
  118. ),
  119. 'type' => 'all',
  120. 'order' => array('cdate' => 'desc'),
  121. 'col' => '*',
  122. ),
  123. 'getNum' => array
  124. (
  125. # 匹配的正则或函数 选填项
  126. 'option' => array
  127. (
  128. 'order_id' => 'yes',
  129. 'state' => 1,
  130. 'status' => 2,
  131. ),
  132. 'type' => 'one',
  133. 'order' => array('cdate' => 'desc'),
  134. 'col' => 'sum(num) as num',
  135. ),
  136. ),
  137. );