stock.js 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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: '/stock/query',
  16. component: () => import('@/xt_pages/stock/stockQuery'),
  17. name: 'stockQuery',
  18. meta: { title: 'stockQuery', noCache: true }
  19. },
  20. {
  21. path: '/stock/in',
  22. component: () => import('@/xt_pages/stock/stockInOrder'),
  23. name: 'stockInOrder',
  24. meta: { title: 'stockInOrder', noCache: true }
  25. },
  26. // {
  27. // path: '/stock/return',
  28. // component: () => import('@/xt_pages/stock/salesReturnOrder'),
  29. // name: 'salesReturnOrder',
  30. // meta: { title: 'salesReturnOrder', noCache: true }
  31. // },
  32. {
  33. path: '/stock/out',
  34. component: () => import('@/xt_pages/stock/stockOutOrder'),
  35. name: 'stockOutOrder',
  36. meta: { title: 'stockOutOrder', noCache: true }
  37. },
  38. {
  39. path: '/stock/cancel',
  40. component: () => import('@/xt_pages/stock/cancelStockOrder'),
  41. name: 'cancelStockOrder',
  42. meta: { title: 'cancelStockOrder', noCache: true }
  43. },
  44. {
  45. path: '/stock/stockModifyPrice',
  46. component: () => import('@/xt_pages/stock/stockModifyPrice'),
  47. name: 'stockModifyPrice',
  48. meta: { title: 'stockModifyPrice', noCache: true }
  49. },
  50. {
  51. path: '/stock/stockModifyPricePrint',
  52. component: () => import('@/xt_pages/stock/stockModifyPricePrint'),
  53. name: 'stockModifyPricePrint',
  54. hidden: true,
  55. is_menu: false,
  56. meta: { title: 'stockModifyPricePrint', noCache: true }
  57. },
  58. {
  59. path: '/stock/stockDamaged',
  60. component: () => import('@/xt_pages/stock/stockDamaged'),
  61. name: 'stockDamaged',
  62. meta: { title: 'stockDamaged', noCache: true }
  63. },
  64. {
  65. path: '/stock/stockWarning',
  66. component: () => import('@/xt_pages/stock/stockWarning'),
  67. name: 'stockWarning',
  68. meta: { title: 'stockWarning', noCache: true }
  69. },
  70. // {
  71. // path: "/stock/",
  72. // component: Layout,
  73. // redirect: "noredirect",
  74. // name: "warehouseReceipt",
  75. // meta: {
  76. // isChild: true,
  77. // title: "warehouseReceipt"
  78. // },
  79. // children: [
  80. // ]
  81. // },
  82. // {
  83. // path: "stock/",
  84. // component: Layout,
  85. // redirect: "noredirect",
  86. // name: "warehouseReceiptOther",
  87. // meta: {
  88. // isChild: true,
  89. // title: "warehouseReceiptOther"
  90. // },
  91. // children: [
  92. // {
  93. // path: "/stock/in/other",
  94. // component: () => import("@/xt_pages/stock/otherStockInOrder"),
  95. // name: "otherStockInOrder",
  96. // meta: { title: "otherStockInOrder", noCache: true }
  97. // },
  98. // {
  99. // path: "/stock/return/other",
  100. // component: () => import("@/xt_pages/stock/otherSalesReturnOrder"),
  101. // name: "otherSalesReturnOrder",
  102. // meta: { title: "otherSalesReturnOrder", noCache: true }
  103. // },
  104. // {
  105. // path: "/stock/out/other",
  106. // component: () => import("@/xt_pages/stock/otherStockOutOrder"),
  107. // name: "otherStockOutOrder",
  108. // meta: { title: "otherStockOutOrder", noCache: true }
  109. // },
  110. // {
  111. // path: "/stock/cancel/other",
  112. // component: () => import("@/xt_pages/stock/otherCancelStockOrder"),
  113. // name: "otherCancelStockOrder",
  114. // meta: { title: "otherCancelStockOrder", noCache: true }
  115. // }
  116. // ]
  117. // },
  118. {
  119. path: '/stock/detail',
  120. component: () => import('@/xt_pages/stock/stockDetailIndex'),
  121. name: 'stockDetail',
  122. meta: { title: 'stockDetail', noCache: true }
  123. },
  124. {
  125. path: '/stock/in/add',
  126. component: () => import('@/xt_pages/stock/stockInOrderAdd'),
  127. name: 'stockInOrderAdd',
  128. hidden: true,
  129. is_menu: false,
  130. meta: { title: 'stockInOrderAdd', noCache: true }
  131. },
  132. {
  133. path: '/stock/in/detail',
  134. component: () => import('@/xt_pages/stock/stockInDetail'),
  135. name: 'stockInDetail',
  136. hidden: true,
  137. is_menu: false,
  138. meta: { title: 'stockInDetail', noCache: true }
  139. },
  140. {
  141. path: '/stock/return/detail',
  142. component: () => import('@/xt_pages/stock/salesReturnDetail'),
  143. name: 'salesReturnDetail',
  144. hidden: true,
  145. is_menu: false,
  146. meta: { title: 'salesReturnDetail', noCache: true }
  147. },
  148. {
  149. path: '/stock/return/add',
  150. component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
  151. name: 'salesReturnOrderAdd',
  152. hidden: true,
  153. is_menu: false,
  154. meta: { title: 'salesReturnOrderAdd', noCache: true }
  155. },
  156. {
  157. path: '/stock/out/add',
  158. component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
  159. name: 'stockOutOrderAdd',
  160. hidden: true,
  161. is_menu: false,
  162. meta: { title: 'stockOutOrderAdd', noCache: true }
  163. },
  164. {
  165. path: '/stock/out/detail',
  166. component: () => import('@/xt_pages/stock/stockOutDetail'),
  167. name: 'stockOutDetail',
  168. hidden: true,
  169. is_menu: false,
  170. meta: { title: 'stockOutDetail', noCache: true }
  171. },
  172. {
  173. path: '/stock/cancel/add',
  174. component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
  175. name: 'cancelStockOrderAdd',
  176. hidden: true,
  177. is_menu: false,
  178. meta: { title: 'cancelStockOrderAdd', noCache: true }
  179. },
  180. {
  181. path: '/stock/cancel/detail',
  182. component: () => import('@/xt_pages/stock/cancelStockDetail'),
  183. name: 'cancelStockDetail',
  184. hidden: true,
  185. is_menu: false,
  186. meta: { title: 'cancelStockDetail', noCache: true }
  187. },
  188. {
  189. path: '/stock/config',
  190. component: () => import('@/xt_pages/stock/index'),
  191. name: 'config',
  192. meta: { title: 'config', noCache: true }
  193. },
  194. {
  195. path: '/stock/print',
  196. component: () => import('@/xt_pages/stock/detail/print'),
  197. hidden: true,
  198. is_menu: false,
  199. name: 'stock_print',
  200. meta: {
  201. title: '库存打印',
  202. noCache: true
  203. }
  204. },
  205. {
  206. path: '/stock/user/detail',
  207. component: () => import('@/xt_pages/stock/stockUserDetail'),
  208. name: 'user_detail',
  209. hidden: true,
  210. is_menu: false,
  211. meta: { title: 'user_detail', noCache: true }
  212. },
  213. {
  214. path: '/stock/drugprint',
  215. component: () => import('@/xt_pages/stock/drugs/drugPrint'),
  216. hidden: true,
  217. is_menu: false,
  218. name: 'stock_print',
  219. meta: {
  220. title: '库存打印',
  221. noCache: true
  222. }
  223. },
  224. {
  225. path: '/stock/drugcancelprint',
  226. component: () => import('@/xt_pages/stock/drugs/drugCancelOurderPrint'),
  227. hidden: true,
  228. is_menu: false,
  229. name: 'stock_print',
  230. meta: {
  231. title: '库存打印',
  232. noCache: true
  233. }
  234. },
  235. {
  236. path: '/stock/drugoutorderprint',
  237. component: () => import('@/xt_pages/stock/drugs/drugOutOrderPrint'),
  238. hidden: true,
  239. is_menu: false,
  240. name: 'stock_print',
  241. meta: {
  242. title: '出库打印',
  243. noCache: true
  244. }
  245. },
  246. {
  247. path: '/stock/drugcanceldetaiprint',
  248. component: () => import('@/xt_pages/stock/drugs/drugCancelDetailPrint'),
  249. hidden: true,
  250. is_menu: false,
  251. name: 'stock_print',
  252. meta: {
  253. title: '出库打印',
  254. noCache: true
  255. }
  256. },
  257. {
  258. path: '/stock/drugStockInOrderDetailPrint',
  259. component: () => import('@/xt_pages/stock/drugs/drugStockInOrderDetailPrint'),
  260. hidden: true,
  261. is_menu: false,
  262. name: 'drugInOrderDetailPrint',
  263. meta: {
  264. title: '药品入库单打印',
  265. noCache: true
  266. }
  267. },
  268. {
  269. path: '/stock/drugStockOutOrderDetailPrint',
  270. component: () => import('@/xt_pages/stock/drugs/drugStockOutOrderDetailPrint'),
  271. hidden: true,
  272. is_menu: false,
  273. name: 'drugOutOrderDetailPrint',
  274. meta: {
  275. title: '药品入库单打印',
  276. noCache: true
  277. }
  278. },
  279. {
  280. path: '/stock/drugQueryPrint',
  281. component: () => import('@/xt_pages/stock/drugs/drugQueryPrint'),
  282. hidden: true,
  283. is_menu: false,
  284. name: 'drugQueryPrint',
  285. meta: {
  286. title: '药品入库单打印',
  287. noCache: true
  288. }
  289. },
  290. {
  291. path: '/stock/cancel/cancelstockorderedit',
  292. component: () => import('@/xt_pages/stock/cancelStockOrderEdit'),
  293. hidden: true,
  294. is_menu: false,
  295. name: 'drugQueryPrint',
  296. meta: {
  297. title: '耗材退库打印',
  298. noCache: true
  299. }
  300. }
  301. ]
  302. }