order_process.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. 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. 'price' => array
  97. (
  98. 'type' => 'float-11,2',
  99. 'name' => '实付金额',
  100. 'default' => '0',
  101. 'desc' => '金额',
  102. 'match' => 'option',
  103. 'update' => 'text',
  104. 'value' => Dever::input('price'),
  105. 'list' => true,
  106. ),
  107. 'cstatus' => array
  108. (
  109. 'type' => 'tinyint-1',
  110. 'name' => '是否拆分代理费-选择拆分后,将代理费拆为代理费和软件服务费',
  111. 'default' => '1',
  112. 'desc' => '是否拆分代理费',
  113. 'match' => 'is_numeric',
  114. 'update' => 'radio',
  115. 'option' => $cstatus,
  116. ),
  117. 'desc' => array
  118. (
  119. 'type' => 'varchar-400',
  120. 'name' => '备注',
  121. 'default' => '',
  122. 'desc' => '备注',
  123. 'match' => 'option',
  124. 'update' => 'textarea',
  125. 'search' => 'fulltext',
  126. 'list' => true,
  127. 'show' => 'type=1,2',
  128. ),
  129. 'type' => array
  130. (
  131. 'type' => 'varchar-400',
  132. 'name' => '权益发放情况',
  133. 'default' => '1',
  134. 'desc' => '权益发放情况',
  135. 'match' => 'option',
  136. 'update' => 'checkbox',
  137. 'checkall' => 1,
  138. 'disabled' => 1,
  139. 'option' => $type,
  140. 'search' => 'select',
  141. 'show' => 'type=3',
  142. ),
  143. 'state' => array
  144. (
  145. 'type' => 'tinyint-1',
  146. 'name' => '状态',
  147. 'default' => '1',
  148. 'desc' => '请选择状态',
  149. 'match' => 'is_numeric',
  150. ),
  151. 'cdate' => array
  152. (
  153. 'type' => 'int-11',
  154. 'name' => '创建时间',
  155. 'match' => array('is_numeric', time()),
  156. 'desc' => '',
  157. # 只有insert时才生效
  158. //'insert' => true,
  159. 'search' => 'date',
  160. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  161. ),
  162. ),
  163. 'manage' => array
  164. (
  165. 'insert' => false,
  166. 'delete' => false,
  167. 'page_list' => 'order_process',
  168. ),
  169. 'request' => array
  170. (
  171. 'getData' => array
  172. (
  173. # 匹配的正则或函数 选填项
  174. 'option' => array
  175. (
  176. 'order_id' => 'yes',
  177. 'state' => 1,
  178. ),
  179. 'type' => 'all',
  180. 'order' => array('status' => 'asc', 'cdate' => 'asc'),
  181. 'col' => '*|status',
  182. ),
  183. ),
  184. );