info.php 11 KB

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