backend.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. <?php
  2. $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
  3. $backend = [
  4. // ----------------------- 菜单配置 ----------------------- //
  5. 'config' => [
  6. // 菜单配置
  7. 'menu' => [
  8. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  9. 'icon' => 'fa fa-puzzle-piece',
  10. ],
  11. // 子模块配置
  12. 'modules' => [
  13. // o2o客户端模块
  14. 'client' => [
  15. 'class' => 'addons\Store\client\Module',
  16. ],
  17. 'coupon' => [
  18. 'class' => 'addons\Store\addons\Coupon\backend\Module',
  19. ],
  20. 'clerk' => [
  21. 'class' => 'addons\Store\addons\Clerk\backend\Module',
  22. ],
  23. 'verification' => [
  24. 'class' => 'addons\Store\addons\Verification\backend\Module',
  25. ],
  26. 'store-boss-agent' => [
  27. 'class' => 'addons\Store\addons\StoreBossAgent\backend\Module',
  28. ],
  29. 'platform-store-clerk' => [
  30. 'class' => 'addons\Store\addons\PlatformStoreClerk\backend\Module',
  31. ],
  32. 'huifu-pay' => [
  33. 'class' => 'addons\Store\addons\HuifuPay\backend\Module',
  34. ],
  35. 'secondary-card' => [
  36. 'class' => 'addons\Store\addons\SecondaryCard\backend\Module',
  37. ],
  38. 'store-associated-user' => [
  39. 'class' => 'addons\Store\addons\StoreAssociatedUser\backend\Module',
  40. ],
  41. 'wuzhou-chain' => [
  42. 'class' => 'addons\Store\addons\WuzhouChain\backend\Module',
  43. ],
  44. 'store-steward' => [
  45. 'class' => 'addons\Store\addons\StoreSteward\backend\Module',
  46. ],
  47. 'number-equity' => [
  48. 'class' => 'addons\Store\addons\NumberEquity\backend\Module',
  49. ],
  50. ],
  51. ],
  52. // ----------------------- 快捷入口 ----------------------- //
  53. 'cover' => [],
  54. // ----------------------- 菜单配置 ----------------------- //
  55. 'menu' => [
  56. [
  57. 'title' => '数据概况',
  58. 'route' => 'default/index',
  59. 'icon' => '',
  60. 'params' => [],
  61. 'child' => [],
  62. ],
  63. [
  64. 'title' => '门店装修',
  65. 'route' => 'diy/index',
  66. 'icon' => '',
  67. 'params' => [],
  68. 'child' => [],
  69. ],
  70. [
  71. 'title' => '门店管理',
  72. 'route' => 'store/index',
  73. 'icon' => '',
  74. 'params' => [],
  75. 'child' => [],
  76. ],
  77. [
  78. 'title' => '门店分类',
  79. 'route' => 'store-category/index',
  80. 'icon' => '',
  81. 'params' => [],
  82. 'child' => [],
  83. ],
  84. [
  85. 'title' => '订单管理',
  86. 'route' => 'store-order/index',
  87. 'icon' => '',
  88. 'params' => [],
  89. 'child' => [],
  90. ],
  91. [
  92. 'title' => '收银台订单',
  93. 'route' => 'cash/cashier-log',
  94. 'icon' => '',
  95. 'params' => [],
  96. 'child' => [],
  97. ],
  98. [
  99. 'title' => '售后管理',
  100. 'route' => 'store-order/refund-list',
  101. 'icon' => '',
  102. 'params' => [],
  103. 'child' => [],
  104. ],
  105. [
  106. 'title' => '门店审核',
  107. 'route' => 'store-audit/index',
  108. 'icon' => '',
  109. 'params' => [],
  110. 'child' => [],
  111. ],
  112. [
  113. 'title' => '商品管理',
  114. 'route' => 'store-goods/index',
  115. 'icon' => '',
  116. 'params' => [],
  117. 'child' => [],
  118. ],
  119. [
  120. 'title' => '资产管理',
  121. 'route' => 'store-assets/index',
  122. 'icon' => '',
  123. 'params' => [],
  124. 'child' => [],
  125. ],
  126. [
  127. 'title' => '资产统计',
  128. 'route' => 'store-statistics/index',
  129. 'icon' => '',
  130. 'params' => [],
  131. 'child' => [],
  132. ],
  133. [
  134. 'title' => '提现审核',
  135. 'route' => 'store-cashdraw/index',
  136. 'icon' => '',
  137. 'params' => [],
  138. 'child' => [],
  139. ],
  140. [
  141. 'title' => '订单审核',
  142. 'route' => 'store-commission-check/index',
  143. 'icon' => '',
  144. 'params' => [],
  145. 'child' => [],
  146. ],
  147. [
  148. 'title' => '服务费变动记录',
  149. 'route' => 'store-setting/store-service-ratio-log',
  150. 'icon' => '',
  151. 'params' => [],
  152. 'child' => [],
  153. ],
  154. [
  155. 'title' => '社区管理',
  156. 'name' => 'store-community/index',
  157. 'app_id' => 'backend',
  158. 'is_addon' => 1,
  159. 'addons_name' => 'Store',
  160. 'child' => [
  161. [
  162. 'title' => '社区列表',
  163. 'name' => 'store-community/index',
  164. 'route' => 'store-community/index',
  165. 'app_id' => 'backend',
  166. 'is_addon' => 1,
  167. 'addons_name' => 'Store',
  168. 'child' => [],
  169. ],
  170. [
  171. 'title' => '社区设置',
  172. 'name' => 'store-community/setting',
  173. 'route' => 'store-community/setting',
  174. 'app_id' => 'backend',
  175. 'is_addon' => 1,
  176. 'addons_name' => 'Store',
  177. 'child' => [],
  178. ],
  179. ],
  180. ],
  181. [
  182. 'title' => '门店财务',
  183. 'name' => 'store-finance/index',
  184. 'app_id' => 'backend',
  185. 'is_addon' => 1,
  186. 'addons_name' => 'Store',
  187. 'child' => [
  188. [
  189. 'title' => '门店财务数据',
  190. 'route' => 'store-finance/index',
  191. 'app_id' => 'backend',
  192. 'is_addon' => 1,
  193. 'addons_name' => 'Store',
  194. 'child' => [],
  195. ],
  196. [
  197. 'title' => '门店财务详情',
  198. 'route' => 'store-finance/detail',
  199. 'app_id' => 'backend',
  200. 'is_addon' => 1,
  201. 'addons_name' => 'Store',
  202. 'child' => [],
  203. ],
  204. ],
  205. ],
  206. [
  207. 'title' => '基础设置',
  208. 'route' => 'store-setting/index',
  209. 'icon' => '',
  210. 'params' => [],
  211. 'child' => [],
  212. ],
  213. ],
  214. // ----------------------- 权限配置 ----------------------- //
  215. 'authItem' => [
  216. [
  217. 'title' => 'O2O门店',
  218. 'name' => '',
  219. 'app_id' => 'backend',
  220. 'is_addon' => 1,
  221. 'addons_name' => 'Store',
  222. 'child' => [
  223. [
  224. 'title' => '概况',
  225. 'name' => 'default/index',
  226. 'app_id' => 'backend',
  227. 'is_addon' => 1,
  228. 'addons_name' => 'Store',
  229. 'child' => [],
  230. ],
  231. [
  232. 'title' => '装修',
  233. 'name' => 'diy/index',
  234. 'app_id' => 'backend',
  235. 'is_addon' => 1,
  236. 'addons_name' => 'Store',
  237. 'child' => [],
  238. ],
  239. [
  240. 'title' => '门店管理',
  241. 'name' => 'store/index',
  242. 'app_id' => 'backend',
  243. 'is_addon' => 1,
  244. 'addons_name' => 'Store',
  245. 'child' => [
  246. [
  247. 'title' => '切换门店状态',
  248. 'name' => 'store/switch-status',
  249. 'app_id' => 'backend',
  250. 'is_addon' => 1,
  251. 'addons_name' => 'Store',
  252. ],
  253. [
  254. 'title' => '地区信息列表',
  255. 'name' => 'store/get-regions',
  256. 'app_id' => 'backend',
  257. 'is_addon' => 1,
  258. 'addons_name' => 'Store',
  259. ],
  260. [
  261. 'title' => '获取会员列表',
  262. 'name' => 'store/get-users',
  263. 'app_id' => 'backend',
  264. 'is_addon' => 1,
  265. 'addons_name' => 'Store',
  266. ],
  267. [
  268. 'title' => '门店添加/编辑',
  269. 'name' => 'store/storage',
  270. 'app_id' => 'backend',
  271. 'is_addon' => 1,
  272. 'addons_name' => 'Store',
  273. ],
  274. [
  275. 'title' => '门店详情',
  276. 'name' => 'store/detail',
  277. 'app_id' => 'backend',
  278. 'is_addon' => 1,
  279. 'addons_name' => 'Store',
  280. ],
  281. [
  282. 'title' => '删除',
  283. 'name' => 'store/del',
  284. 'app_id' => 'backend',
  285. 'is_addon' => 1,
  286. 'addons_name' => 'Store',
  287. ],
  288. ],
  289. ],
  290. [
  291. 'title' => '门店分类',
  292. 'name' => 'store-category/index',
  293. 'app_id' => 'backend',
  294. 'is_addon' => 1,
  295. 'addons_name' => 'Store',
  296. 'child' => [
  297. [
  298. 'title' => '门店分类排序编辑',
  299. 'name' => 'store-category/sort-edit',
  300. 'app_id' => 'backend',
  301. 'is_addon' => 1,
  302. 'addons_name' => 'Store',
  303. ],
  304. [
  305. 'title' => '门店分类添加/编辑',
  306. 'name' => 'store-category/storage',
  307. 'app_id' => 'backend',
  308. 'is_addon' => 1,
  309. 'addons_name' => 'Store',
  310. ],
  311. [
  312. 'title' => '删除门店分类',
  313. 'name' => 'store-category/delete',
  314. 'app_id' => 'backend',
  315. 'is_addon' => 1,
  316. 'addons_name' => 'Store',
  317. ],
  318. ],
  319. ],
  320. [
  321. 'title' => '订单管理',
  322. 'name' => 'store-order/index',
  323. 'app_id' => 'backend',
  324. 'is_addon' => 1,
  325. 'addons_name' => 'Store',
  326. 'child' => [
  327. [
  328. 'title' => '订单详情',
  329. 'name' => 'store-order/detail',
  330. 'app_id' => 'backend',
  331. 'is_addon' => 1,
  332. 'addons_name' => 'Store',
  333. ],
  334. [
  335. 'title' => '修改订单价格',
  336. 'name' => 'store-order/change-price',
  337. 'app_id' => 'backend',
  338. 'is_addon' => 1,
  339. 'addons_name' => 'Store',
  340. ],
  341. [
  342. 'title' => '订单支付',
  343. 'name' => 'store-order/pay',
  344. 'app_id' => 'backend',
  345. 'is_addon' => 1,
  346. 'addons_name' => 'Store',
  347. ],
  348. [
  349. 'title' => '关闭订单',
  350. 'name' => 'store-order/close',
  351. 'app_id' => 'backend',
  352. 'is_addon' => 1,
  353. 'addons_name' => 'Store',
  354. ],
  355. [
  356. 'title' => '删除订单',
  357. 'name' => 'store-order/del',
  358. 'app_id' => 'backend',
  359. 'is_addon' => 1,
  360. 'addons_name' => 'Store',
  361. ],
  362. [
  363. 'title' => '修改订单备注',
  364. 'name' => 'store-order/remark',
  365. 'app_id' => 'backend',
  366. 'is_addon' => 1,
  367. 'addons_name' => 'Store',
  368. ],
  369. [
  370. 'title' => '修改订单收货地址',
  371. 'name' => 'store-order/change-address',
  372. 'app_id' => 'backend',
  373. 'is_addon' => 1,
  374. 'addons_name' => 'Store',
  375. ],
  376. [
  377. 'title' => '订单发货',
  378. 'name' => 'store-order/shipping',
  379. 'app_id' => 'backend',
  380. 'is_addon' => 1,
  381. 'addons_name' => 'Store',
  382. ],
  383. [
  384. 'title' => '订单收货',
  385. 'name' => 'store-order/take-delivery',
  386. 'app_id' => 'backend',
  387. 'is_addon' => 1,
  388. 'addons_name' => 'Store',
  389. ],
  390. [
  391. 'title' => '订单操作日志',
  392. 'name' => 'store-order/order-action',
  393. 'app_id' => 'backend',
  394. 'is_addon' => 1,
  395. 'addons_name' => 'Store',
  396. ],
  397. [
  398. 'title' => '订单完成',
  399. 'name' => 'store-order/sales-order',
  400. 'app_id' => 'backend',
  401. 'is_addon' => 1,
  402. 'addons_name' => 'Store',
  403. ],
  404. [
  405. 'title' => '分润明细',
  406. 'name' => 'store-order/commission-and-score-list',
  407. 'app_id' => 'backend',
  408. 'is_addon' => 1,
  409. 'addons_name' => 'Store',
  410. ],
  411. [
  412. 'title' => '售后订单列表',
  413. 'name' => 'store-order/refund-list',
  414. 'app_id' => 'backend',
  415. 'is_addon' => 1,
  416. 'addons_name' => 'Store',
  417. ],
  418. ],
  419. ],
  420. [
  421. 'title' => '收银台订单',
  422. 'name' => 'cash/cashier-log',
  423. 'app_id' => 'backend',
  424. 'is_addon' => 1,
  425. 'addons_name' => 'Store',
  426. 'child' => [
  427. [
  428. 'title' => '分润明细',
  429. 'name' => 'cash/commission-and-score-list',
  430. 'app_id' => 'backend',
  431. 'is_addon' => 1,
  432. 'addons_name' => 'Store',
  433. ],
  434. ],
  435. ],
  436. [
  437. 'title' => '售后管理',
  438. 'name' => 'store-order/refund-list',
  439. 'app_id' => 'backend',
  440. 'is_addon' => 1,
  441. 'addons_name' => 'Store',
  442. 'child' => [
  443. [
  444. 'title' => '售后订单详情',
  445. 'name' => 'store-order/refund-detail',
  446. 'app_id' => 'backend',
  447. 'is_addon' => 1,
  448. 'addons_name' => 'Store',
  449. ],
  450. ],
  451. ],
  452. [
  453. 'title' => '门店审核',
  454. 'name' => 'store-audit/index',
  455. 'app_id' => 'backend',
  456. 'is_addon' => 1,
  457. 'addons_name' => 'Store',
  458. 'child' => [
  459. [
  460. 'title' => '门店审核',
  461. 'name' => 'store-audit/audit',
  462. 'app_id' => 'backend',
  463. 'is_addon' => 1,
  464. 'addons_name' => 'Store',
  465. ],
  466. ],
  467. ],
  468. [
  469. 'title' => '商品管理',
  470. 'name' => 'store-goods/index',
  471. 'app_id' => 'backend',
  472. 'is_addon' => 1,
  473. 'addons_name' => 'Store',
  474. 'child' => [
  475. [
  476. 'title' => '商品编辑',
  477. 'name' => 'store-goods/edit',
  478. 'app_id' => 'backend',
  479. 'is_addon' => 1,
  480. 'addons_name' => 'Store',
  481. ],
  482. [
  483. 'title' => '获取商品模式',
  484. 'name' => 'store-goods/goods-model',
  485. 'app_id' => 'backend',
  486. 'is_addon' => 1,
  487. 'addons_name' => 'Store',
  488. ],
  489. [
  490. 'title' => '商品审核操作',
  491. 'name' => 'store-goods/audit',
  492. 'app_id' => 'backend',
  493. 'is_addon' => 1,
  494. 'addons_name' => 'Store',
  495. ],
  496. [
  497. 'title' => '获取商品分类树形目录',
  498. 'name' => 'store-goods/tree',
  499. 'app_id' => 'backend',
  500. 'is_addon' => 1,
  501. 'addons_name' => 'Store',
  502. ],
  503. [
  504. 'title' => '批量下架商品',
  505. 'name' => 'store-goods/mutiple-off',
  506. 'app_id' => 'backend',
  507. 'is_addon' => 1,
  508. 'addons_name' => 'Store',
  509. ],
  510. ],
  511. ],
  512. [
  513. 'title' => '资产管理',
  514. 'name' => 'store-assets/index',
  515. 'app_id' => 'backend',
  516. 'is_addon' => 1,
  517. 'addons_name' => 'Store',
  518. 'child' => [],
  519. ],
  520. [
  521. 'title' => '提现审核',
  522. 'name' => 'store-cashdraw/index',
  523. 'app_id' => 'backend',
  524. 'is_addon' => 1,
  525. 'addons_name' => 'Store',
  526. 'child' => [
  527. [
  528. 'title' => '门店提现审核操作',
  529. 'name' => 'store-cashdraw/audit',
  530. 'app_id' => 'backend',
  531. 'is_addon' => 1,
  532. 'addons_name' => 'Store',
  533. ],
  534. ],
  535. ],
  536. [
  537. 'title' => '订单审核',
  538. 'name' => 'store-commission-check/index',
  539. 'app_id' => 'backend',
  540. 'is_addon' => 1,
  541. 'addons_name' => 'Store',
  542. 'child' => [
  543. [
  544. 'title' => '审核操作',
  545. 'name' => 'store-commission-check/check',
  546. 'app_id' => 'backend',
  547. 'is_addon' => 1,
  548. 'addons_name' => 'Store',
  549. ],
  550. ],
  551. ],
  552. [
  553. 'title' => '社区管理',
  554. 'name' => 'store-community/index',
  555. 'app_id' => 'backend',
  556. 'is_addon' => 1,
  557. 'addons_name' => 'Store',
  558. 'child' => [
  559. [
  560. 'title' => '社区列表',
  561. 'name' => 'store-community/index',
  562. 'app_id' => 'backend',
  563. 'is_addon' => 1,
  564. 'addons_name' => 'Store',
  565. 'child' => [],
  566. ],
  567. [
  568. 'title' => '社区设置',
  569. 'name' => 'store-community/setting',
  570. 'app_id' => 'backend',
  571. 'is_addon' => 1,
  572. 'addons_name' => 'Store',
  573. 'child' => [],
  574. ],
  575. ],
  576. ],
  577. [
  578. 'title' => '基础设置',
  579. 'name' => 'store-setting/index',
  580. 'app_id' => 'backend',
  581. 'is_addon' => 1,
  582. 'addons_name' => 'Store',
  583. 'child' => [],
  584. ],
  585. ],
  586. ]
  587. ],
  588. ];
  589. return array_merge($common, $backend);