servicer_store.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. $status = array
  3. (
  4. 1 => '启用',
  5. 2 => '禁用',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'servicer_store',
  11. # 显示给用户看的名称
  12. 'lang' => '配送商仓库',
  13. # 是否显示在后台菜单
  14. 'order' => 10,
  15. 'menu' => false,
  16. 'status' => $status,
  17. # 数据结构
  18. 'struct' => array
  19. (
  20. 'id' => array
  21. (
  22. 'type' => 'int-11',
  23. 'name' => 'ID',
  24. 'default' => '',
  25. 'desc' => '',
  26. 'match' => 'is_numeric',
  27. 'list' => true,
  28. 'order' => 'asc',
  29. ),
  30. 'servicer_id' => array
  31. (
  32. 'type' => 'int-11',
  33. 'name' => '配送商ID',
  34. 'default' => '-1',
  35. 'desc' => '配送商ID',
  36. 'match' => 'is_numeric',
  37. 'update' => 'hidden',
  38. 'value' => Dever::input('search_option_servicer_id'),
  39. ),
  40. 'name' => array
  41. (
  42. 'type' => 'varchar-150',
  43. 'name' => '仓库名称',
  44. 'default' => '',
  45. 'desc' => '仓库名称',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'search' => 'fulltext',
  49. 'list' => true,
  50. 'edit' => true,
  51. ),
  52. 'code' => array
  53. (
  54. 'type' => 'varchar-150',
  55. 'name' => '仓库编码',
  56. 'default' => '',
  57. 'desc' => '仓库编码',
  58. 'match' => 'is_string',
  59. 'update' => 'text',
  60. 'search' => 'fulltext',
  61. 'list' => true,
  62. ),
  63. 'reorder' => array
  64. (
  65. 'type' => 'int-11',
  66. 'name' => '排序(数值越大越靠前)',
  67. 'default' => '1',
  68. 'desc' => '请输入排序',
  69. 'match' => 'option',
  70. 'update' => 'text',
  71. 'search' => 'order',
  72. 'list_name' => '排序',
  73. 'list' => true,
  74. 'order' => 'desc',
  75. 'edit' => true,
  76. ),
  77. 'status' => array
  78. (
  79. 'type' => 'tinyint-1',
  80. 'name' => '是否启用',
  81. 'default' => '1',
  82. 'desc' => '是否启用',
  83. 'match' => 'is_numeric',
  84. 'update' => 'radio',
  85. 'option' => $status,
  86. 'list' => true,
  87. 'edit' => true,
  88. ),
  89. 'state' => array
  90. (
  91. 'type' => 'tinyint-1',
  92. 'name' => '状态',
  93. 'default' => '1',
  94. 'desc' => '请选择状态',
  95. 'match' => 'is_numeric',
  96. ),
  97. 'cdate' => array
  98. (
  99. 'type' => 'int-11',
  100. 'name' => '录入时间',
  101. 'match' => array('is_numeric', time()),
  102. 'desc' => '',
  103. # 只有insert时才生效
  104. 'insert' => true,
  105. //'search' => 'date',
  106. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  107. ),
  108. ),
  109. 'manage' => array
  110. (
  111. 'delete' => false,
  112. ),
  113. 'request' => array
  114. (
  115. )
  116. );