dh_order_ps.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待处理',
  5. 2 => '配送中',
  6. 3 => '已配送',
  7. 4 => '未配送',
  8. );
  9. $service = function()
  10. {
  11. $info = Dever::db('shop/service')->select(array('type' => 2));
  12. return $info;
  13. };
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'dh_order_ps',
  18. # 显示给用户看的名称
  19. 'lang' => '订单配送表',
  20. 'menu' => false,
  21. 'status' => $status,
  22. 'end' => array
  23. (
  24. 'insert' => 'shop/lib/manage.sellOrderPs',
  25. 'update' => 'shop/lib/manage.sellOrderPs',
  26. ),
  27. # 数据结构
  28. 'struct' => array
  29. (
  30. 'id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => 'ID',
  34. 'default' => '',
  35. 'desc' => '',
  36. 'match' => 'is_numeric',
  37. 'search' => 'order',
  38. 'update' => 'hidden',
  39. //'list' => true,
  40. ),
  41. 'order_id' => array
  42. (
  43. 'type' => 'int-11',
  44. 'name' => '订单表id',
  45. 'default' => '',
  46. 'desc' => '订单表id',
  47. 'match' => 'is_numeric',
  48. 'update' => 'hidden',
  49. 'value' => Dever::input('search_option_order_id'),
  50. ),
  51. 'mid' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '代理商姓名/手机号',
  55. 'default' => '-1',
  56. 'desc' => '代理商',
  57. 'match' => 'is_string',
  58. 'update' => 'text',
  59. ),
  60. 'service' => array
  61. (
  62. 'type' => 'text-1000',
  63. 'name' => '快递信息',
  64. 'default' => '',
  65. 'desc' => '配送发货',
  66. 'match' => 'is_string',
  67. 'update' => array
  68. (
  69. array
  70. (
  71. 'col' => 'service_id',
  72. 'name' => '配送服务商',
  73. 'default' => '-1',
  74. 'desc' => '配送服务商',
  75. 'match' => 'is_numeric',
  76. 'update' => 'select',
  77. 'option' => $service,
  78. ),
  79. array
  80. (
  81. 'col' => 'order_num',
  82. 'type' => 'varchar-500',
  83. 'name' => '快递单号-填写一个单号即可',
  84. 'default' => '',
  85. 'desc' => '快递单号',
  86. 'match' => 'is_string',
  87. 'update' => 'text',
  88. ),
  89. ),
  90. ),
  91. 'status' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '状态',
  95. 'default' => '1',
  96. 'desc' => '状态',
  97. 'match' => 'is_numeric',
  98. //'update' => 'select',
  99. 'option' => $status,
  100. 'search' => 'select',
  101. 'list' => true,
  102. 'edit' => true,
  103. ),
  104. 'qu_date' => array
  105. (
  106. 'type' => 'int-11',
  107. 'name' => '取件时间',
  108. 'default' => '',
  109. 'match' => 'is_numeric',
  110. 'desc' => '取件时间',
  111. ),
  112. 'qs_date' => array
  113. (
  114. 'type' => 'int-11',
  115. 'name' => '签收时间',
  116. 'default' => '',
  117. 'match' => 'is_numeric',
  118. 'desc' => '签收时间',
  119. ),
  120. 'state' => array
  121. (
  122. 'type' => 'tinyint-1',
  123. 'name' => '状态',
  124. 'default' => '1',
  125. 'desc' => '请选择状态',
  126. 'match' => 'is_numeric',
  127. ),
  128. 'cdate' => array
  129. (
  130. 'type' => 'int-11',
  131. 'name' => '创建时间',
  132. 'match' => array('is_numeric', time()),
  133. 'desc' => '',
  134. # 只有insert时才生效
  135. 'insert' => true,
  136. 'search' => 'date',
  137. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  138. ),
  139. ),
  140. 'manage' => array
  141. (
  142. ),
  143. 'request' => array
  144. (
  145. 'getDui' => array
  146. (
  147. # 匹配的正则或函数 选填项
  148. 'option' => array
  149. (
  150. 'mid' => 'yes',
  151. 'start' => array('yes-cdate','>='),
  152. 'end' => array('yes-cdate','<='),
  153. 'state' => 1,
  154. ),
  155. 'type' => 'all',
  156. 'col' => '*',
  157. ),
  158. ),
  159. );