info.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?php
  2. # 获取分类权限
  3. $status = array
  4. (
  5. 1 => '已认证',
  6. 2 => '认证中',
  7. 3 => '认证失败',
  8. );
  9. return array
  10. (
  11. # 表名
  12. 'name' => 'info',
  13. # 显示给用户看的名称
  14. 'lang' => '仓库列表',
  15. # 后台菜单排序
  16. 'order' => 99,
  17. 'end' => array
  18. (
  19. 'insert' => 'store/lib/manage.infoUpdate',
  20. 'update' => 'store/lib/manage.infoUpdate',
  21. ),
  22. # 数据结构
  23. 'struct' => array
  24. (
  25. 'id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => 'ID',
  29. 'default' => '',
  30. 'desc' => '',
  31. 'match' => 'is_numeric',
  32. 'search' => 'order',
  33. 'list' => true,
  34. 'order' => 'desc',
  35. ),
  36. 'hr1' => array
  37. (
  38. 'name' => '仓库基本信息',
  39. 'class' => '',//本项必须填写
  40. 'attr' => '',
  41. ),
  42. 'uid' => array
  43. (
  44. 'type' => 'int-11',
  45. 'name' => '用户名',
  46. 'default' => '0',
  47. 'desc' => '请选择用户',
  48. 'match' => 'is_numeric',
  49. //'update' => 'text',
  50. //'search' => 'select',
  51. 'searchs' => array
  52. (
  53. 'api' => 'passport/user-select',
  54. 'col' => 'username',
  55. 'result' => 'id',
  56. ),
  57. //'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"',
  58. ),
  59. 'name' => array
  60. (
  61. 'type' => 'varchar-32',
  62. 'name' => '仓库名称',
  63. 'default' => '',
  64. 'desc' => '请输入仓库名称',
  65. 'match' => 'is_string',
  66. 'update' => 'text',
  67. 'search' => 'fulltext',
  68. 'list' => true,
  69. ),
  70. 'truename' => array
  71. (
  72. 'type' => 'varchar-100',
  73. 'name' => '联系人姓名',
  74. 'default' => '',
  75. 'desc' => '请输入联系人姓名',
  76. 'match' => 'is_string',
  77. 'update' => 'text',
  78. 'search' => 'fulltext',
  79. 'list' => true,
  80. ),
  81. 'mobile' => array
  82. (
  83. 'type' => 'bigint-11',
  84. 'name' => '联系人电话',
  85. 'default' => '',
  86. 'desc' => '请输入联系人电话',
  87. 'match' => 'is_numeric',
  88. 'update' => 'text',
  89. 'search' => 'fulltext',
  90. 'list' => true,
  91. ),
  92. 'area' => array
  93. (
  94. 'type' => 'varchar-500',
  95. 'name' => '所在城市',
  96. 'default' => '',
  97. 'desc' => '所在城市',
  98. 'match' => 'option',
  99. 'search' => 'linkage',
  100. 'update' => 'linkage',
  101. 'option' => Dever::url('api.get?level_total=2', 'area'),
  102. 'list' => 'Dever::load("area/api.string", "{area}")',
  103. ),
  104. 'province' => array
  105. (
  106. 'type' => 'int-11',
  107. 'name' => '省份',
  108. 'default' => '',
  109. 'desc' => '省份',
  110. 'match' => 'option',
  111. //'update' => 'text',
  112. ),
  113. 'city' => array
  114. (
  115. 'type' => 'int-11',
  116. 'name' => '城市',
  117. 'default' => '',
  118. 'desc' => '城市',
  119. 'match' => 'option',
  120. //'update' => 'text',
  121. ),
  122. 'map' => array
  123. (
  124. 'type' => 'varchar-300',
  125. 'name' => '地理位置',
  126. 'default' => '',
  127. 'desc' => '地理位置',
  128. 'match' => 'is_string',
  129. # 如果是map,必须在config的base.php中设置map信息
  130. 'update' => 'map',
  131. ),
  132. 'lng' => array
  133. (
  134. 'type' => 'varchar-100',
  135. 'name' => '经度',
  136. 'default' => '',
  137. 'desc' => '经度',
  138. 'match' => 'option',
  139. //'update' => 'text',
  140. //'list' => true,
  141. ),
  142. 'lat' => array
  143. (
  144. 'type' => 'varchar-100',
  145. 'name' => '纬度',
  146. 'default' => '',
  147. 'desc' => '纬度',
  148. 'match' => 'option',
  149. //'update' => 'text',
  150. //'list' => true,
  151. ),
  152. 'address' => array
  153. (
  154. 'type' => 'varchar-1000',
  155. 'name' => '仓库地址',
  156. 'default' => '',
  157. 'desc' => '仓库地址',
  158. 'match' => 'option',
  159. 'update' => 'text',
  160. //'list' => true,
  161. ),
  162. 'goods' => array
  163. (
  164. 'type' => 'text-255',
  165. 'name' => '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
  166. 'default' => '',
  167. 'desc' => '生产能力',
  168. 'match' => 'option',
  169. // 多级联动+多选
  170. 'update' => Dever::input('col') ? 'linkage' : false,
  171. 'option' => array(Dever::url('api.get', 'category'), 'cate_id', Dever::url('lib/info.getGoods', 'goods'), '快速设置', Dever::url('project/database/list?project=goods&table=info_sku&page_type=1&other=store&other_id={where_id}&goods_id={id}', 'manage')),
  172. ),
  173. 'hr2' => array
  174. (
  175. 'name' => '仓库认证信息',
  176. 'class' => '',//本项必须填写
  177. 'attr' => '',
  178. ),
  179. 'license' => array
  180. (
  181. 'type' => 'varchar-150',
  182. 'name' => '营业执照',
  183. 'default' => '',
  184. 'desc' => '营业执照',
  185. 'match' => 'option',
  186. 'update' => 'image',
  187. 'key' => '1',
  188. 'place' => '660*660',
  189. ),
  190. 'license_number' => array
  191. (
  192. 'type' => 'varchar-200',
  193. 'name' => '营业执照号码',
  194. 'default' => '',
  195. 'desc' => '营业执照号码',
  196. 'match' => 'option',
  197. 'update' => 'text',
  198. ),
  199. 'company_name' => array
  200. (
  201. 'type' => 'varchar-200',
  202. 'name' => '公司名称',
  203. 'default' => '',
  204. 'desc' => '公司名称',
  205. 'match' => 'option',
  206. 'update' => 'text',
  207. ),
  208. 'idcard_front' => array
  209. (
  210. 'type' => 'varchar-150',
  211. 'name' => '身份证正面',
  212. 'default' => '',
  213. 'desc' => '身份证正面',
  214. 'match' => 'option',
  215. 'update' => 'image',
  216. 'key' => '1',
  217. 'place' => '660*660',
  218. ),
  219. 'idcard_back' => array
  220. (
  221. 'type' => 'varchar-150',
  222. 'name' => '身份证背面',
  223. 'default' => '',
  224. 'desc' => '身份证背面',
  225. 'match' => 'option',
  226. 'update' => 'image',
  227. 'key' => '1',
  228. 'place' => '660*660',
  229. ),
  230. 'kh_license' => array
  231. (
  232. 'type' => 'varchar-150',
  233. 'name' => '开户许可证',
  234. 'default' => '',
  235. 'desc' => '开户许可证',
  236. 'match' => 'option',
  237. 'update' => 'image',
  238. 'key' => '1',
  239. 'place' => '660*660',
  240. ),
  241. 'status' => array
  242. (
  243. 'type' => 'int-11',
  244. 'name' => '认证状态',
  245. 'default' => '1',
  246. 'desc' => '认证状态',
  247. 'match' => 'is_numeric',
  248. 'update' => 'select',
  249. 'option' => $status,
  250. 'search' => 'select',
  251. 'list' => true,
  252. 'edit' => true,
  253. ),
  254. 'reorder' => array
  255. (
  256. 'type' => 'int-11',
  257. 'name' => '排序(数值越大越靠前)',
  258. 'default' => '1',
  259. 'desc' => '请输入排序',
  260. 'match' => 'option',
  261. //'update' => 'text',
  262. 'search' => 'order',
  263. 'list' => true,
  264. 'order' => 'desc',
  265. 'edit' => true,
  266. ),
  267. 'state' => array
  268. (
  269. 'type' => 'tinyint-1',
  270. 'name' => '状态',
  271. 'default' => '1',
  272. 'desc' => '请选择状态',
  273. 'match' => 'is_numeric',
  274. ),
  275. 'cdate' => array
  276. (
  277. 'type' => 'int-11',
  278. 'name' => '录入时间',
  279. 'match' => array('is_numeric', time()),
  280. 'desc' => '',
  281. # 只有insert时才生效
  282. 'insert' => true,
  283. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  284. ),
  285. ),
  286. 'manage' => array
  287. (
  288. 'list_button' => array
  289. (
  290. //'add' => array('设置库存清单', '"info&where_id={id}&col=goods&oper_save_jump=info&oper_table=info&oper_parent=info"'),
  291. 'list3' => array('商品列表', '"goods&search_option_factory_id={id}&oper_table=info"'),
  292. 'list1' => array('账号管理', '"member&search_option_store_id={id}&oper_table=info"'),
  293. //'list2' => array('订货单', '"order&search_option_store_id={id}&oper_table=info"'),
  294. ),
  295. ),
  296. 'request' => array
  297. (
  298. ),
  299. );