dh_order_refund.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?php
  2. $type = array
  3. (
  4. 1 => '整个订单',
  5. 2 => '单一商品',
  6. );
  7. $status = array
  8. (
  9. 1 => '仅退款',
  10. 2 => '退货退款',
  11. );
  12. $process = array
  13. (
  14. 1 => '申请退款中',
  15. 2 => '审核通过',
  16. 3 => '审核驳回',
  17. );
  18. return array
  19. (
  20. # 表名
  21. 'name' => 'dh_order_refund',
  22. # 显示给用户看的名称
  23. 'lang' => '订单退款申请',
  24. 'menu' => false,
  25. 'status' => $status,
  26. 'process' => $process,
  27. # 数据结构
  28. 'struct' => array
  29. (
  30. 'id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => 'ID',
  34. 'default' => '',
  35. 'desc' => '',
  36. 'match' => 'is_numeric',
  37. 'search' => 'order',
  38. 'update' => 'hidden',
  39. //'list' => true,
  40. ),
  41. 'order_id' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => '订单表id',
  45. 'default' => '',
  46. 'desc' => '订单表id',
  47. 'match' => 'is_numeric',
  48. ),
  49. 'order_goods_id' => array
  50. (
  51. 'type' => 'varchar-300',
  52. 'name' => '订单商品表id',
  53. 'default' => '',
  54. 'desc' => '订单商品表id',
  55. 'match' => 'option',
  56. ),
  57. 'cash' => array
  58. (
  59. 'type' => 'varchar-300',
  60. 'name' => '退款金额',
  61. 'default' => '',
  62. 'desc' => '退款金额',
  63. 'match' => 'option',
  64. 'update' => 'text',
  65. ),
  66. 'num' => array
  67. (
  68. 'type' => 'int-11',
  69. 'name' => '退款数量',
  70. 'default' => '',
  71. 'desc' => '退款数量',
  72. 'match' => 'is_numeric',
  73. ),
  74. 'desc' => array
  75. (
  76. 'type' => 'varchar-300',
  77. 'name' => '退款描述',
  78. 'default' => '',
  79. 'desc' => '退款描述',
  80. 'match' => 'option',
  81. 'update' => 'textarea',
  82. ),
  83. 'pic' => array
  84. (
  85. 'type' => 'varchar-8000',
  86. 'name' => '退款图片',
  87. 'default' => '',
  88. 'desc' => '退款图片',
  89. 'match' => 'option',
  90. 'update' => 'images',
  91. 'key' => '1',
  92. 'place' => '660*660',
  93. ),
  94. 'type' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '类型',
  98. 'default' => '1',
  99. 'desc' => '类型',
  100. 'match' => 'is_numeric',
  101. //'update' => 'select',
  102. 'option' => $type,
  103. 'search' => 'select',
  104. 'list' => true,
  105. //'edit' => true,
  106. ),
  107. 'status' => array
  108. (
  109. 'type' => 'int-11',
  110. 'name' => '状态',
  111. 'default' => '1',
  112. 'desc' => '状态',
  113. 'match' => 'is_numeric',
  114. //'update' => 'select',
  115. 'option' => $status,
  116. 'search' => 'select',
  117. 'list' => true,
  118. //'edit' => true,
  119. ),
  120. 'process' => array
  121. (
  122. 'type' => 'int-11',
  123. 'name' => '审核进度',
  124. 'default' => '1',
  125. 'desc' => '审核进度',
  126. 'match' => 'is_numeric',
  127. //'update' => 'select',
  128. 'option' => $process,
  129. 'search' => 'select',
  130. 'list' => true,
  131. 'edit' => true,
  132. ),
  133. 'state' => array
  134. (
  135. 'type' => 'tinyint-1',
  136. 'name' => '状态',
  137. 'default' => '1',
  138. 'desc' => '请选择状态',
  139. 'match' => 'is_numeric',
  140. ),
  141. 'cdate' => array
  142. (
  143. 'type' => 'int-11',
  144. 'name' => '创建时间',
  145. 'match' => array('is_numeric', time()),
  146. 'desc' => '',
  147. # 只有insert时才生效
  148. 'insert' => true,
  149. 'search' => 'date',
  150. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  151. ),
  152. ),
  153. 'manage' => array
  154. (
  155. ),
  156. 'request' => array
  157. (
  158. ),
  159. );