order_process.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. $status_value = Dever::input('status', 1);
  23. $audit_desc = '';
  24. if ($status_value == 1) {
  25. $audit_desc = '需确认代理商信息无误则通过审核。审核通过后,需确认支付金额是否拆分。';
  26. } elseif ($status_value == 2) {
  27. $audit_desc = '现行确认是否已到账,未确认到账时,无法发放权益等操作。';
  28. }
  29. return array
  30. (
  31. # 表名
  32. 'name' => 'order_process',
  33. # 显示给用户看的名称
  34. 'lang' => '订单审核进度表',
  35. 'menu' => false,
  36. 'status' => $status,
  37. 'end' => array
  38. (
  39. 'insert' => 'agent/lib/manage.orderUpdate',
  40. 'update' => 'agent/lib/manage.orderUpdate',
  41. ),
  42. # 数据结构
  43. 'struct' => array
  44. (
  45. 'id' => array
  46. (
  47. 'type' => 'int-11',
  48. 'name' => 'ID',
  49. 'default' => '',
  50. 'desc' => '',
  51. 'match' => 'is_numeric',
  52. 'search' => 'order',
  53. 'update' => 'hidden',
  54. //'list' => true,
  55. ),
  56. 'order_id' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '订单表id',
  60. 'default' => '',
  61. 'desc' => '订单表id',
  62. 'match' => 'is_numeric',
  63. 'update' => 'hidden',
  64. 'value' => Dever::input('order_id', 1),
  65. ),
  66. 'status' => array
  67. (
  68. 'type' => 'int-11',
  69. 'name' => '状态',
  70. 'default' => '1',
  71. 'desc' => '状态',
  72. 'match' => 'is_numeric',
  73. 'update' => 'hidden',
  74. 'option' => $status,
  75. 'search' => 'select',
  76. 'value' => $status_value,
  77. 'control' => 'status',
  78. ),
  79. 'audit' => array
  80. (
  81. 'type' => 'int-11',
  82. 'name' => '审核状态-' . $audit_desc,
  83. 'default' => '1',
  84. 'desc' => '审核状态',
  85. 'match' => 'is_numeric',
  86. 'update' => 'radio',
  87. 'option' => $audit,
  88. 'search' => 'select',
  89. 'control' => 'status',
  90. ),
  91. 'desc' => array
  92. (
  93. 'type' => 'varchar-400',
  94. 'name' => '备注',
  95. 'default' => '',
  96. 'desc' => '备注',
  97. 'match' => 'option',
  98. 'update' => 'textarea',
  99. 'search' => 'fulltext',
  100. 'list' => true,
  101. 'show' => 'type=1,2',
  102. ),
  103. 'type' => array
  104. (
  105. 'type' => 'varchar-400',
  106. 'name' => '权益发放情况',
  107. 'default' => '1',
  108. 'desc' => '权益发放情况',
  109. 'match' => 'option',
  110. 'update' => 'radio',
  111. 'option' => $type,
  112. 'search' => 'select',
  113. 'show' => 'type=3',
  114. ),
  115. 'state' => array
  116. (
  117. 'type' => 'tinyint-1',
  118. 'name' => '状态',
  119. 'default' => '1',
  120. 'desc' => '请选择状态',
  121. 'match' => 'is_numeric',
  122. ),
  123. 'cdate' => array
  124. (
  125. 'type' => 'int-11',
  126. 'name' => '创建时间',
  127. 'match' => array('is_numeric', time()),
  128. 'desc' => '',
  129. # 只有insert时才生效
  130. //'insert' => true,
  131. 'search' => 'date',
  132. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  133. ),
  134. ),
  135. 'manage' => array
  136. (
  137. 'insert' => false,
  138. 'delete' => false,
  139. 'page_list' => 'order_process',
  140. ),
  141. 'request' => array
  142. (
  143. 'getData' => array
  144. (
  145. # 匹配的正则或函数 选填项
  146. 'option' => array
  147. (
  148. 'order_id' => 'yes',
  149. 'state' => 1,
  150. ),
  151. 'type' => 'all',
  152. 'order' => array('status' => 'asc', 'cdate' => 'asc'),
  153. 'col' => '*|status',
  154. ),
  155. ),
  156. );