order_process.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <?php
  2. $audit = array
  3. (
  4. 1 => '审核通过',
  5. 2 => '拒绝',
  6. );
  7. $status = array
  8. (
  9. 1 => '初审',
  10. 2 => '终审',
  11. 3 => '权益发放',
  12. 4 => '已完成',
  13. );
  14. $type = array
  15. (
  16. 1 => '支付已确认',
  17. 2 => '权益已确认发放',
  18. 3 => '分润已确认发放',
  19. //4 => '期权已确认发放',
  20. 5 => '代理合同已生成',
  21. );
  22. $cstatus = array
  23. (
  24. 1 => '不拆分',
  25. 2 => '拆分',
  26. );
  27. $status_value = Dever::input('status', 1);
  28. $audit_desc = '';
  29. if ($status_value == 1) {
  30. $audit_desc = '需确认代理商信息无误则通过审核。审核通过后,需确认支付金额是否拆分。';
  31. } elseif ($status_value == 2) {
  32. $audit_desc = '现行确认是否已到账,未确认到账时,无法发放权益等操作。';
  33. }
  34. $prize_type = array
  35. (
  36. 1 => '非赠送区域',
  37. 2 => '赠送区域,会自动扣减已有名额',
  38. );
  39. return array
  40. (
  41. # 表名
  42. 'name' => 'order_process',
  43. # 显示给用户看的名称
  44. 'lang' => '订单审核进度表',
  45. 'menu' => false,
  46. 'status' => $status,
  47. 'end' => array
  48. (
  49. 'insert' => 'agent/lib/manage.orderUpdate',
  50. 'update' => 'agent/lib/manage.orderUpdate',
  51. ),
  52. # 数据结构
  53. 'struct' => array
  54. (
  55. 'id' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => 'ID',
  59. 'default' => '',
  60. 'desc' => '',
  61. 'match' => 'is_numeric',
  62. 'search' => 'order',
  63. 'update' => 'hidden',
  64. //'list' => true,
  65. ),
  66. 'order_id' => array
  67. (
  68. 'type' => 'int-11',
  69. 'name' => '订单表id',
  70. 'default' => '',
  71. 'desc' => '订单表id',
  72. 'match' => 'is_numeric',
  73. 'update' => 'hidden',
  74. 'value' => Dever::input('order_id', 1),
  75. ),
  76. 'status' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '状态',
  80. 'default' => '1',
  81. 'desc' => '状态',
  82. 'match' => 'is_numeric',
  83. 'update' => 'hidden',
  84. 'option' => $status,
  85. 'search' => 'select',
  86. 'value' => $status_value,
  87. 'control' => 'status',
  88. ),
  89. 'audit' => array
  90. (
  91. 'type' => 'int-11',
  92. 'name' => '审核状态-' . $audit_desc,
  93. 'default' => '1',
  94. 'desc' => '审核状态',
  95. 'match' => 'is_numeric',
  96. 'update' => 'radio',
  97. 'option' => $audit,
  98. 'search' => 'select',
  99. 'control' => 'audit',
  100. ),
  101. 'prize_type' => array
  102. (
  103. 'type' => 'tinyint-1',
  104. 'name' => '是否赠送区域-当出现此选项时,代表代理商有免费赠送的区域名额,当选择赠送区域时,会自动扣减当前代理商已有的名额,并且会将实付金额强制改为0元',
  105. 'default' => '1',
  106. 'desc' => '是否赠送区域',
  107. 'match' => 'is_numeric',
  108. 'update' => 'radio',
  109. 'option' => $prize_type,
  110. 'control' => 'prize_type',
  111. ),
  112. 'price' => array
  113. (
  114. 'type' => 'float-11,2',
  115. 'name' => '实付金额',
  116. 'default' => '0',
  117. 'desc' => '金额',
  118. 'match' => 'option',
  119. 'update' => 'text',
  120. 'value' => Dever::input('price'),
  121. 'list' => true,
  122. 'show' => 'prize_type=1',
  123. ),
  124. 'cstatus' => array
  125. (
  126. 'type' => 'tinyint-1',
  127. 'name' => '是否拆分代理费-选择拆分后,将代理费拆为代理费和软件服务费',
  128. 'default' => '1',
  129. 'desc' => '是否拆分代理费',
  130. 'match' => 'is_numeric',
  131. 'update' => 'radio',
  132. 'option' => $cstatus,
  133. ),
  134. 'soft_price' => array
  135. (
  136. 'type' => 'float-11,2',
  137. 'name' => '软件服务费-如填写这里的软件服务费,将不使用角色设置的拆分规则',
  138. 'default' => '0',
  139. 'desc' => '金额',
  140. 'match' => 'option',
  141. 'update' => 'text',
  142. 'show' => 'cstatus=2',
  143. ),
  144. 'desc' => array
  145. (
  146. 'type' => 'varchar-400',
  147. 'name' => '备注',
  148. 'default' => '',
  149. 'desc' => '备注',
  150. 'match' => 'is_string',
  151. 'update' => 'textarea',
  152. 'search' => 'fulltext',
  153. 'list' => true,
  154. 'show' => 'type=1,2&audit=2',
  155. ),
  156. 'type' => array
  157. (
  158. 'type' => 'varchar-400',
  159. 'name' => '权益发放情况',
  160. 'default' => '1',
  161. 'desc' => '权益发放情况',
  162. 'match' => 'option',
  163. 'update' => 'checkbox',
  164. 'checkall' => 1,
  165. 'disabled' => 1,
  166. 'option' => $type,
  167. 'search' => 'select',
  168. 'show' => 'type=3',
  169. ),
  170. 'state' => array
  171. (
  172. 'type' => 'tinyint-1',
  173. 'name' => '状态',
  174. 'default' => '1',
  175. 'desc' => '请选择状态',
  176. 'match' => 'is_numeric',
  177. ),
  178. 'cdate' => array
  179. (
  180. 'type' => 'int-11',
  181. 'name' => '创建时间',
  182. 'match' => array('is_numeric', time()),
  183. 'desc' => '',
  184. # 只有insert时才生效
  185. //'insert' => true,
  186. 'search' => 'date',
  187. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  188. ),
  189. ),
  190. 'manage' => array
  191. (
  192. 'insert' => false,
  193. 'delete' => false,
  194. 'page_list' => 'order_process',
  195. ),
  196. 'request' => array
  197. (
  198. 'getData' => array
  199. (
  200. # 匹配的正则或函数 选填项
  201. 'option' => array
  202. (
  203. 'order_id' => 'yes',
  204. 'state' => 1,
  205. ),
  206. 'type' => 'all',
  207. 'order' => array('status' => 'asc', 'cdate' => 'asc'),
  208. 'col' => '*|status',
  209. ),
  210. ),
  211. );