sell_refund.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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' => 'sell_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. 'card_cash' => array
  80. (
  81. 'type' => 'decimal-11,2',
  82. 'name' => '礼品卡抵扣金额',
  83. 'default' => '0',
  84. 'desc' => '礼品卡抵扣金额',
  85. 'match' => 'option',
  86. 'update' => 'text',
  87. ),
  88. 'wallet_cash' => array
  89. (
  90. 'type' => 'decimal-11,2',
  91. 'name' => '钱包抵扣金额',
  92. 'default' => '0',
  93. 'desc' => '钱包抵扣金额',
  94. 'match' => 'option',
  95. 'update' => 'text',
  96. ),
  97. 'num' => array
  98. (
  99. 'type' => 'int-11',
  100. 'name' => '退款数量',
  101. 'default' => '',
  102. 'desc' => '退款数量',
  103. 'match' => 'is_numeric',
  104. ),
  105. 'desc' => array
  106. (
  107. 'type' => 'varchar-300',
  108. 'name' => '退款描述',
  109. 'default' => '',
  110. 'desc' => '退款描述',
  111. 'match' => 'option',
  112. 'update' => 'textarea',
  113. ),
  114. 'pic' => array
  115. (
  116. 'type' => 'varchar-8000',
  117. 'name' => '退款图片',
  118. 'default' => '',
  119. 'desc' => '退款图片',
  120. 'match' => 'option',
  121. 'update' => 'images',
  122. 'key' => '1',
  123. 'place' => '660*660',
  124. ),
  125. 'scope' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '范围',
  129. 'default' => '1',
  130. 'desc' => '范围',
  131. 'match' => 'is_numeric',
  132. //'update' => 'select',
  133. 'option' => $scope,
  134. 'search' => 'select',
  135. 'list' => true,
  136. //'edit' => true,
  137. ),
  138. 'type' => array
  139. (
  140. 'type' => 'int-11',
  141. 'name' => '类型',
  142. 'default' => '1',
  143. 'desc' => '类型',
  144. 'match' => 'is_numeric',
  145. //'update' => 'select',
  146. 'option' => $type,
  147. 'search' => 'select',
  148. 'list' => true,
  149. //'edit' => true,
  150. ),
  151. 'process' => array
  152. (
  153. 'type' => 'int-11',
  154. 'name' => '审核进度',
  155. 'default' => '1',
  156. 'desc' => '审核进度',
  157. 'match' => 'is_numeric',
  158. //'update' => 'select',
  159. 'option' => $process,
  160. 'search' => 'select',
  161. 'list' => true,
  162. 'edit' => true,
  163. ),
  164. 'state' => array
  165. (
  166. 'type' => 'tinyint-1',
  167. 'name' => '状态',
  168. 'default' => '1',
  169. 'desc' => '请选择状态',
  170. 'match' => 'is_numeric',
  171. ),
  172. 'cdate' => array
  173. (
  174. 'type' => 'int-11',
  175. 'name' => '创建时间',
  176. 'match' => array('is_numeric', time()),
  177. 'desc' => '',
  178. # 只有insert时才生效
  179. 'insert' => true,
  180. 'search' => 'date',
  181. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  182. ),
  183. ),
  184. 'manage' => array
  185. (
  186. ),
  187. 'request' => array
  188. (
  189. ),
  190. );