buy_refund.php 5.3 KB

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