sell_ps.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php
  2. $status = array
  3. (
  4. 1 => '待处理',
  5. 2 => '配送中',
  6. 3 => '已配送',
  7. 4 => '未配送',
  8. );
  9. $service = function()
  10. {
  11. $info = Dever::db('scm_role/servicer')->select();
  12. return $info;
  13. };
  14. return array
  15. (
  16. # 表名
  17. 'name' => 'sell_ps',
  18. # 显示给用户看的名称
  19. 'lang' => '订单配送表',
  20. 'menu' => false,
  21. 'status' => $status,
  22. 'end' => array
  23. (
  24. 'insert' => 'scm_order/lib/sell.ps',
  25. 'update' => 'scm_order/lib/sell.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_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-500',
  64. 'name' => '快递单号',
  65. 'default' => '',
  66. 'desc' => '快递单号',
  67. 'match' => 'is_string',
  68. 'update' => 'text',
  69. ),
  70. 'status' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '状态',
  74. 'default' => '1',
  75. 'desc' => '状态',
  76. 'match' => 'is_numeric',
  77. //'update' => 'select',
  78. 'option' => $status,
  79. 'search' => 'select',
  80. 'list' => true,
  81. 'edit' => true,
  82. ),
  83. 'qu_date' => array
  84. (
  85. 'type' => 'int-11',
  86. 'name' => '取件时间',
  87. 'default' => '',
  88. 'match' => 'is_numeric',
  89. 'desc' => '取件时间',
  90. ),
  91. 'qs_date' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '签收时间',
  95. 'default' => '',
  96. 'match' => 'is_numeric',
  97. 'desc' => '签收时间',
  98. ),
  99. 'state' => array
  100. (
  101. 'type' => 'tinyint-1',
  102. 'name' => '状态',
  103. 'default' => '1',
  104. 'desc' => '请选择状态',
  105. 'match' => 'is_numeric',
  106. ),
  107. 'cdate' => array
  108. (
  109. 'type' => 'int-11',
  110. 'name' => '创建时间',
  111. 'match' => array('is_numeric', time()),
  112. 'desc' => '',
  113. # 只有insert时才生效
  114. 'insert' => true,
  115. 'search' => 'date',
  116. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  117. ),
  118. ),
  119. 'manage' => array
  120. (
  121. ),
  122. 'request' => array
  123. (
  124. ),
  125. );