stock.js 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. import Layout from "@/views/layout/Layout";
  2. export default {
  3. path: "/stock",
  4. component: Layout,
  5. redirect: "noredirect",
  6. name: "stockManage",
  7. alwaysShow: true,
  8. meta: {
  9. title: "stockManage",
  10. icon: "stock",
  11. isChild: true
  12. },
  13. children: [
  14. {
  15. path: "/warehouseReceipt/",
  16. component: Layout,
  17. redirect: "/stock/in",
  18. name: "warehouseReceipt",
  19. parentNum: 1,
  20. meta: {
  21. isChild: true,
  22. title: "warehouseReceipt"
  23. }
  24. },
  25. {
  26. path: "/warehouseReceiptOther/",
  27. component: Layout,
  28. redirect: "/stock/in/other",
  29. name: "warehouseReceiptOther",
  30. parentNum: 2,
  31. meta: {
  32. isChild: true,
  33. title: "warehouseReceiptOther"
  34. }
  35. },
  36. {
  37. path: "/stock/in",
  38. component: () => import("@/xt_pages/stock/stockInOrder"),
  39. name: "stockInOrder",
  40. hidden: true,
  41. is_menu: false,
  42. num: 1,
  43. meta: { title: "stockInOrder", noCache: true }
  44. },
  45. {
  46. path: "/stock/return",
  47. component: () => import("@/xt_pages/stock/salesReturnOrder"),
  48. name: "salesReturnOrder",
  49. hidden: true,
  50. is_menu: false,
  51. num: 1,
  52. meta: { title: "salesReturnOrder", noCache: true }
  53. },
  54. {
  55. path: "/stock/out",
  56. component: () => import("@/xt_pages/stock/stockOutOrder"),
  57. name: "stockOutOrder",
  58. hidden: true,
  59. is_menu: false,
  60. num: 1,
  61. meta: { title: "stockOutOrder", noCache: true }
  62. },
  63. {
  64. path: "/stock/cancel",
  65. component: () => import("@/xt_pages/stock/cancelStockOrder"),
  66. name: "cancelStockOrder",
  67. hidden: true,
  68. is_menu: false,
  69. num: 1,
  70. meta: { title: "cancelStockOrder", noCache: true }
  71. },
  72. {
  73. path: "/stock/in/other",
  74. component: () => import("@/xt_pages/stock/otherStockInOrder"),
  75. name: "otherStockInOrder",
  76. hidden: true,
  77. is_menu: false,
  78. num: 2,
  79. meta: { title: "otherStockInOrder", noCache: true }
  80. },
  81. {
  82. path: "/stock/return/other",
  83. component: () => import("@/xt_pages/stock/otherSalesReturnOrder"),
  84. name: "otherSalesReturnOrder",
  85. hidden: true,
  86. is_menu: false,
  87. num: 2,
  88. meta: { title: "otherSalesReturnOrder", noCache: true }
  89. },
  90. {
  91. path: "/stock/out/other",
  92. component: () => import("@/xt_pages/stock/otherStockOutOrder"),
  93. name: "otherStockOutOrder",
  94. hidden: true,
  95. is_menu: false,
  96. num: 2,
  97. meta: { title: "otherStockOutOrder", noCache: true }
  98. },
  99. {
  100. path: "/stock/cancel/other",
  101. component: () => import("@/xt_pages/stock/otherCancelStockOrder"),
  102. name: "otherCancelStockOrder",
  103. hidden: true,
  104. is_menu: false,
  105. num: 2,
  106. meta: { title: "otherCancelStockOrder", noCache: true }
  107. },
  108. // {
  109. // path: "/stock/",
  110. // component: Layout,
  111. // redirect: "noredirect",
  112. // name: "warehouseReceipt",
  113. // meta: {
  114. // isChild: true,
  115. // title: "warehouseReceipt"
  116. // },
  117. // children: [
  118. // ]
  119. // },
  120. // {
  121. // path: "stock/",
  122. // component: Layout,
  123. // redirect: "noredirect",
  124. // name: "warehouseReceiptOther",
  125. // meta: {
  126. // isChild: true,
  127. // title: "warehouseReceiptOther"
  128. // },
  129. // children: [
  130. // {
  131. // path: "/stock/in/other",
  132. // component: () => import("@/xt_pages/stock/otherStockInOrder"),
  133. // name: "otherStockInOrder",
  134. // meta: { title: "otherStockInOrder", noCache: true }
  135. // },
  136. // {
  137. // path: "/stock/return/other",
  138. // component: () => import("@/xt_pages/stock/otherSalesReturnOrder"),
  139. // name: "otherSalesReturnOrder",
  140. // meta: { title: "otherSalesReturnOrder", noCache: true }
  141. // },
  142. // {
  143. // path: "/stock/out/other",
  144. // component: () => import("@/xt_pages/stock/otherStockOutOrder"),
  145. // name: "otherStockOutOrder",
  146. // meta: { title: "otherStockOutOrder", noCache: true }
  147. // },
  148. // {
  149. // path: "/stock/cancel/other",
  150. // component: () => import("@/xt_pages/stock/otherCancelStockOrder"),
  151. // name: "otherCancelStockOrder",
  152. // meta: { title: "otherCancelStockOrder", noCache: true }
  153. // }
  154. // ]
  155. // },
  156. {
  157. path: "/stock/query",
  158. component: () => import("@/xt_pages/stock/stockQuery"),
  159. name: "stockQuery",
  160. meta: { title: "stockQuery", noCache: true }
  161. },
  162. {
  163. path: "/stock/detail",
  164. component: () => import("@/xt_pages/stock/stockDetailIndex"),
  165. name: "stockDetail",
  166. meta: { title: "stockDetail", noCache: true }
  167. },
  168. {
  169. path: "/stock/in/add",
  170. component: () => import("@/xt_pages/stock/stockInOrderAdd"),
  171. name: "stockInOrderAdd",
  172. hidden: true,
  173. is_menu: false,
  174. meta: { title: "stockInOrderAdd", noCache: true }
  175. },
  176. {
  177. path: "/stock/in/detail",
  178. component: () => import("@/xt_pages/stock/stockInDetail"),
  179. name: "stockInDetail",
  180. hidden: true,
  181. is_menu: false,
  182. meta: { title: "stockInDetail", noCache: true }
  183. },
  184. {
  185. path: "/stock/return/detail",
  186. component: () => import("@/xt_pages/stock/salesReturnDetail"),
  187. name: "salesReturnDetail",
  188. hidden: true,
  189. is_menu: false,
  190. meta: { title: "salesReturnDetail", noCache: true }
  191. },
  192. {
  193. path: "/stock/return/add",
  194. component: () => import("@/xt_pages/stock/salesReturnOrderAdd"),
  195. name: "salesReturnOrderAdd",
  196. hidden: true,
  197. is_menu: false,
  198. meta: { title: "salesReturnOrderAdd", noCache: true }
  199. },
  200. {
  201. path: "/stock/out/add",
  202. component: () => import("@/xt_pages/stock/stockOutOrderAdd"),
  203. name: "stockOutOrderAdd",
  204. hidden: true,
  205. is_menu: false,
  206. meta: { title: "stockOutOrderAdd", noCache: true }
  207. },
  208. {
  209. path: "/stock/out/detail",
  210. component: () => import("@/xt_pages/stock/stockOutDetail"),
  211. name: "stockOutDetail",
  212. hidden: true,
  213. is_menu: false,
  214. meta: { title: "stockOutDetail", noCache: true }
  215. },
  216. {
  217. path: "/stock/cancel/add",
  218. component: () => import("@/xt_pages/stock/cancelStockOrderAdd"),
  219. name: "cancelStockOrderAdd",
  220. hidden: true,
  221. is_menu: false,
  222. meta: { title: "cancelStockOrderAdd", noCache: true }
  223. },
  224. {
  225. path: "/stock/cancel/detail",
  226. component: () => import("@/xt_pages/stock/cancelStockDetail"),
  227. name: "cancelStockDetail",
  228. hidden: true,
  229. is_menu: false,
  230. meta: { title: "cancelStockDetail", noCache: true }
  231. },
  232. {
  233. path: "/stock/config",
  234. component: () => import("@/xt_pages/stock/index"),
  235. name: "config",
  236. meta: { title: "config", noCache: true }
  237. },
  238. {
  239. path: "/stock/print",
  240. component: () => import("@/xt_pages/stock/detail/print"),
  241. hidden: true,
  242. is_menu: false,
  243. name: "stock_print",
  244. meta: {
  245. title: "库存打印",
  246. noCache: true
  247. }
  248. },
  249. {
  250. path: "/stock/user/detail",
  251. component: () => import("@/xt_pages/stock/stockUserDetail"),
  252. name: "user_detail",
  253. hidden: true,
  254. is_menu: false,
  255. meta: { title: "user_detail", noCache: true }
  256. }
  257. ]
  258. };