buy_ps.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待处理',
  5. 2 => '配送中',
  6. 3 => '已配送',
  7. 4 => '未配送',
  8. );
  9. $service = function()
  10. {
  11. $info = Dever::db('role/servicer')->select();
  12. return $info;
  13. };
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'buy_ps',
  18. # 显示给用户看的名称
  19. 'lang' => '订单配送表',
  20. 'menu' => false,
  21. 'status' => $status,
  22. 'end' => array
  23. (
  24. 'insert' => 'order/lib/buy.ps',
  25. 'update' => 'order/lib/buy.ps',
  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' => array
  52. (
  53. 'type' => 'text-1000',
  54. 'name' => '快递信息',
  55. 'default' => '',
  56. 'desc' => '配送发货',
  57. 'match' => 'is_string',
  58. 'update' => array
  59. (
  60. array
  61. (
  62. 'col' => 'service_id',
  63. 'name' => '配送服务商',
  64. 'default' => '-1',
  65. 'desc' => '配送服务商',
  66. 'match' => 'is_numeric',
  67. 'update' => 'select',
  68. 'option' => $service,
  69. ),
  70. array
  71. (
  72. 'col' => 'order_num',
  73. 'type' => 'varchar-500',
  74. 'name' => '快递单号-填写一个单号即可',
  75. 'default' => '',
  76. 'desc' => '快递单号',
  77. 'match' => 'is_string',
  78. 'update' => 'text',
  79. ),
  80. ),
  81. ),
  82. 'status' => array
  83. (
  84. 'type' => 'int-11',
  85. 'name' => '状态',
  86. 'default' => '1',
  87. 'desc' => '状态',
  88. 'match' => 'is_numeric',
  89. //'update' => 'select',
  90. 'option' => $status,
  91. 'search' => 'select',
  92. 'list' => true,
  93. 'edit' => true,
  94. ),
  95. 'qu_date' => array
  96. (
  97. 'type' => 'int-11',
  98. 'name' => '取件时间',
  99. 'default' => '',
  100. 'match' => 'is_numeric',
  101. 'desc' => '取件时间',
  102. ),
  103. 'qs_date' => array
  104. (
  105. 'type' => 'int-11',
  106. 'name' => '签收时间',
  107. 'default' => '',
  108. 'match' => 'is_numeric',
  109. 'desc' => '签收时间',
  110. ),
  111. 'state' => array
  112. (
  113. 'type' => 'tinyint-1',
  114. 'name' => '状态',
  115. 'default' => '1',
  116. 'desc' => '请选择状态',
  117. 'match' => 'is_numeric',
  118. ),
  119. 'cdate' => array
  120. (
  121. 'type' => 'int-11',
  122. 'name' => '创建时间',
  123. 'match' => array('is_numeric', time()),
  124. 'desc' => '',
  125. # 只有insert时才生效
  126. 'insert' => true,
  127. 'search' => 'date',
  128. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  129. ),
  130. ),
  131. 'manage' => array
  132. (
  133. ),
  134. 'request' => array
  135. (
  136. ),
  137. );