order_ps.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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' => 1));
  12. return $info;
  13. };
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'order_ps',
  18. # 显示给用户看的名称
  19. 'lang' => '订单配送表',
  20. 'menu' => false,
  21. 'status' => $status,
  22. 'end' => array
  23. (
  24. 'insert' => 'card/lib/manage.orderPs',
  25. 'update' => 'card/lib/manage.orderPs',
  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. 'service_id' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '配送服务商',
  55. 'default' => '-1',
  56. 'desc' => '配送服务商',
  57. 'match' => 'is_numeric',
  58. 'update' => 'select',
  59. 'option' => $service,
  60. ),
  61. 'order_num' => array
  62. (
  63. 'type' => 'varchar-800',
  64. 'name' => '快递单号-多个用换行隔开',
  65. 'default' => '',
  66. 'desc' => '快递单号',
  67. 'match' => 'is_string',
  68. 'update' => 'textarea',
  69. ),
  70. 'num' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '包裹数量',
  74. 'default' => '',
  75. 'desc' => '包裹数量',
  76. 'match' => 'is_numeric',
  77. 'search' => 'select',
  78. 'list' => true,
  79. ),
  80. 'price' => array
  81. (
  82. 'type' => 'varchar-50',
  83. 'name' => '快递费用',
  84. 'default' => '',
  85. 'desc' => '快递费用',
  86. 'match' => 'option',
  87. 'update' => 'text',
  88. 'list' => true,
  89. ),
  90. 'status' => array
  91. (
  92. 'type' => 'int-11',
  93. 'name' => '状态',
  94. 'default' => '1',
  95. 'desc' => '状态',
  96. 'match' => 'is_numeric',
  97. //'update' => 'select',
  98. 'option' => $status,
  99. 'search' => 'select',
  100. 'list' => true,
  101. 'edit' => true,
  102. ),
  103. 'qu_date' => array
  104. (
  105. 'type' => 'int-11',
  106. 'name' => '取件时间',
  107. 'default' => '',
  108. 'match' => 'is_numeric',
  109. 'desc' => '取件时间',
  110. ),
  111. 'qs_date' => array
  112. (
  113. 'type' => 'int-11',
  114. 'name' => '签收时间',
  115. 'default' => '',
  116. 'match' => 'is_numeric',
  117. 'desc' => '签收时间',
  118. ),
  119. 'state' => array
  120. (
  121. 'type' => 'tinyint-1',
  122. 'name' => '状态',
  123. 'default' => '1',
  124. 'desc' => '请选择状态',
  125. 'match' => 'is_numeric',
  126. ),
  127. 'cdate' => array
  128. (
  129. 'type' => 'int-11',
  130. 'name' => '创建时间',
  131. 'match' => array('is_numeric', time()),
  132. 'desc' => '',
  133. # 只有insert时才生效
  134. //'insert' => true,
  135. 'search' => 'date',
  136. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  137. ),
  138. ),
  139. 'manage' => array
  140. (
  141. ),
  142. 'request' => array
  143. (
  144. ),
  145. );