servicer_in.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待审核',
  5. 2 => '已审核',
  6. 3 => '已驳回',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'servicer_in',
  12. # 显示给用户看的名称
  13. 'lang' => '入库订单',
  14. 'order' => 98,
  15. 'set' => array
  16. (
  17. 'status' => $status,
  18. ),
  19. # 数据结构
  20. 'struct' => array
  21. (
  22. 'id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => 'ID',
  26. 'default' => '',
  27. 'desc' => '',
  28. 'match' => 'is_numeric',
  29. 'search' => 'order',
  30. //'list' => true,
  31. ),
  32. 'order_num' => array
  33. (
  34. 'type' => 'varchar-100',
  35. 'name' => '订单号',
  36. 'default' => '',
  37. 'desc' => '订单号',
  38. 'match' => 'is_string',
  39. 'update' => 'text',
  40. 'search' => 'fulltext',
  41. 'list_name' => '订单信息',
  42. 'list' => 'Dever::load("scm_order/lib/sell.info#order", {id})',
  43. ),
  44. 'type_id' => array
  45. (
  46. 'type' => 'int-11',
  47. 'name' => '角色ID',
  48. 'default' => '',
  49. 'desc' => '角色ID',
  50. 'match' => 'is_numeric',
  51. 'update' => 'hidden',
  52. 'search' => array
  53. (
  54. 'api' => 'scm_role/seller-like',
  55. 'col' => 'name',
  56. 'result' => 'id',
  57. ),
  58. 'value' => Dever::input('search_option_seller_id'),
  59. ),
  60. 'info' => array
  61. (
  62. 'type' => 'varchar-300',
  63. 'name' => '订单备注',
  64. 'default' => '',
  65. 'desc' => '订单备注',
  66. 'match' => 'option',
  67. 'update' => 'textarea',
  68. ),
  69. 'status' => array
  70. (
  71. 'type' => 'tinyint-1',
  72. 'name' => '订单状态',
  73. 'default' => '1',
  74. 'desc' => '订单状态',
  75. 'match' => 'is_numeric',
  76. 'option' => $status,
  77. 'search' => 'select',
  78. //'search_after' => '<br />',
  79. //'mul' => true,
  80. //'mul_option' => array(2 => '批量审核', 5 => '确认收货'),
  81. ),
  82. 'state' => array
  83. (
  84. 'type' => 'tinyint-1',
  85. 'name' => '状态',
  86. 'default' => '1',
  87. 'desc' => '请选择状态',
  88. 'match' => 'is_numeric',
  89. ),
  90. 'cdate' => array
  91. (
  92. 'type' => 'int-11',
  93. 'name' => '下单时间',
  94. 'match' => array('is_numeric', time()),
  95. 'desc' => '',
  96. # 只有insert时才生效
  97. 'insert' => true,
  98. 'search' => 'sdate',
  99. 'list' => 'date("Y-m-d H:i", {cdate})',
  100. ),
  101. ),
  102. 'manage' => array
  103. (
  104. 'delete' => false,
  105. 'edit' => false,
  106. 'insert' => false,
  107. //'excel' => $excel,
  108. //'mul' => $mul,
  109. 'button' => array
  110. (
  111. //'导出订单明细' => array('excel', 'shop/excel.sell_order'),
  112. ),
  113. 'list_button' => array
  114. (
  115. //fast_list
  116. /*
  117. 'list' => array('查看详情', '"sell_order_goods&project=shop&order_id={id}&page_type=&search_option_shop_type='.$search_option_shop_type.'"'),
  118. 'list11' => array('查看采购单', '"buy_order&project=shop&search_option_type=1&&search_option_parent_type=2&search_option_parent_order_id={id}&oper_table=sell_order&search_option_shop_type='.$search_option_shop_type.'"', '{status} >= 3 && {audit} == 2 && {shop_type} == 2'),
  119. 'list1' => array('审核', '"sell_order_goods&project=shop&order_id={id}&audit=1&page_type=&search_option_shop_type='.$search_option_shop_type.'"', '{status} == 2 && {shop_type} == 2'),
  120. 'oper' => array('确认收货', '"shop/lib/manage.setSellOrderStatus?shop_id={shop_id}&order_id={id}"', '{status} == 4 && {shop_type} == 2'),
  121. */
  122. ),
  123. ),
  124. 'request' => array
  125. (
  126. 'getList' => array
  127. (
  128. # 匹配的正则或函数 选填项
  129. 'option' => array
  130. (
  131. 'shop_id' => 'yes',
  132. 'uid' => 'yes',
  133. 'status' => 'yes',
  134. 'state' => 1,
  135. ),
  136. 'type' => 'all',
  137. 'order' => array('cdate' => 'desc'),
  138. 'page' => array(5, 'list'),
  139. 'col' => '*',
  140. ),
  141. 'getAll' => array
  142. (
  143. # 匹配的正则或函数 选填项
  144. 'option' => array
  145. (
  146. 'uid' => 'yes',
  147. 'name' => array('yes', 'like'),
  148. 'shop_id' => 'yes',
  149. 'method' => 'yes',
  150. 'pay_method' => 'yes',
  151. 'start' => array('yes-cdate', '>='),
  152. 'end' => array('yes-cdate', '<='),
  153. 'status' => array('yes', 'in'),
  154. 'state' => 1,
  155. ),
  156. 'type' => 'all',
  157. 'order' => array('cdate' => 'desc'),
  158. 'page' => array(10, 'list'),
  159. 'col' => '*',
  160. ),
  161. ),
  162. );