order_process.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. $get_type = 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. return array
  35. (
  36. # 表名
  37. 'name' => 'order_process',
  38. # 显示给用户看的名称
  39. 'lang' => '订单审核进度表',
  40. 'menu' => false,
  41. 'status' => $status,
  42. 'end' => array
  43. (
  44. 'insert' => 'agent/lib/manage.orderUpdate',
  45. 'update' => 'agent/lib/manage.orderUpdate',
  46. ),
  47. # 数据结构
  48. 'struct' => array
  49. (
  50. 'id' => array
  51. (
  52. 'type' => 'int-11',
  53. 'name' => 'ID',
  54. 'default' => '',
  55. 'desc' => '',
  56. 'match' => 'is_numeric',
  57. 'search' => 'order',
  58. 'update' => 'hidden',
  59. //'list' => true,
  60. ),
  61. 'order_id' => array
  62. (
  63. 'type' => 'int-11',
  64. 'name' => '订单表id',
  65. 'default' => '',
  66. 'desc' => '订单表id',
  67. 'match' => 'is_numeric',
  68. 'update' => 'hidden',
  69. 'value' => Dever::input('order_id', 1),
  70. ),
  71. 'status' => array
  72. (
  73. 'type' => 'int-11',
  74. 'name' => '状态',
  75. 'default' => '1',
  76. 'desc' => '状态',
  77. 'match' => 'is_numeric',
  78. 'update' => 'hidden',
  79. 'option' => $status,
  80. 'search' => 'select',
  81. 'value' => $status_value,
  82. 'control' => 'status',
  83. ),
  84. 'audit' => array
  85. (
  86. 'type' => 'int-11',
  87. 'name' => '审核状态-' . $audit_desc,
  88. 'default' => '1',
  89. 'desc' => '审核状态',
  90. 'match' => 'is_numeric',
  91. 'update' => 'radio',
  92. 'option' => $audit,
  93. 'search' => 'select',
  94. 'control' => 'status',
  95. ),
  96. 'get_type' => array
  97. (
  98. 'type' => 'tinyint-1',
  99. 'name' => '是否赠送区域',
  100. 'default' => '1',
  101. 'desc' => '是否赠送区域',
  102. 'match' => 'is_numeric',
  103. 'update' => 'radio',
  104. 'option' => $get_type,
  105. 'show' => 'type=2',
  106. ),
  107. 'desc' => array
  108. (
  109. 'type' => 'varchar-400',
  110. 'name' => '备注',
  111. 'default' => '',
  112. 'desc' => '备注',
  113. 'match' => 'option',
  114. 'update' => 'textarea',
  115. 'search' => 'fulltext',
  116. 'list' => true,
  117. 'show' => 'type=1,2',
  118. ),
  119. 'type' => array
  120. (
  121. 'type' => 'varchar-400',
  122. 'name' => '权益发放情况',
  123. 'default' => '1',
  124. 'desc' => '权益发放情况',
  125. 'match' => 'option',
  126. 'update' => 'checkbox',
  127. 'option' => $type,
  128. 'search' => 'select',
  129. 'show' => 'type=3',
  130. ),
  131. 'state' => array
  132. (
  133. 'type' => 'tinyint-1',
  134. 'name' => '状态',
  135. 'default' => '1',
  136. 'desc' => '请选择状态',
  137. 'match' => 'is_numeric',
  138. ),
  139. 'cdate' => array
  140. (
  141. 'type' => 'int-11',
  142. 'name' => '创建时间',
  143. 'match' => array('is_numeric', time()),
  144. 'desc' => '',
  145. # 只有insert时才生效
  146. //'insert' => true,
  147. 'search' => 'date',
  148. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  149. ),
  150. ),
  151. 'manage' => array
  152. (
  153. 'insert' => false,
  154. 'delete' => false,
  155. 'page_list' => 'order_process',
  156. ),
  157. 'request' => array
  158. (
  159. 'getData' => array
  160. (
  161. # 匹配的正则或函数 选填项
  162. 'option' => array
  163. (
  164. 'order_id' => 'yes',
  165. 'state' => 1,
  166. ),
  167. 'type' => 'all',
  168. 'order' => array('status' => 'asc', 'cdate' => 'asc'),
  169. 'col' => '*|status',
  170. ),
  171. ),
  172. );