stock.js 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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/stockDamagePrint',
  66. component: () => import('@/xt_pages/stock/stockDamagePrint'),
  67. name: 'stockModifyPricePrint',
  68. hidden: true,
  69. is_menu: false,
  70. meta: { title: 'stockModifyPricePrint', noCache: true }
  71. },
  72. // {
  73. // path: '/stock/stockWarning',
  74. // component: () => import('@/xt_pages/stock/stockWarning'),
  75. // name: 'stockWarning',
  76. // meta: { title: 'stockWarning', noCache: true }
  77. // },
  78. {
  79. path: '/stock/stockInventory',
  80. component: () => import('@/xt_pages/stock/stockInventory'),
  81. name: 'stockInventory',
  82. meta: { title: 'stockInventory', noCache: true }
  83. },
  84. {
  85. path: '/stock/inventoryPrint',
  86. component: () => import('@/xt_pages/stock/inventoryPrint'),
  87. name: 'inventoryPrint',
  88. hidden: true,
  89. is_menu: false,
  90. meta: { title: 'inventoryPrint', noCache: true }
  91. },
  92. {
  93. path: '/stock/inventoryDetailPrint',
  94. component: () => import('@/xt_pages/stock/inventoryDetailPrint'),
  95. name: 'inventoryPrint',
  96. hidden: true,
  97. is_menu: false,
  98. meta: { title: 'inventoryPrint', noCache: true }
  99. },
  100. // {
  101. // path: "/stock/",
  102. // component: Layout,
  103. // redirect: "noredirect",
  104. // name: "warehouseReceipt",
  105. // meta: {
  106. // isChild: true,
  107. // title: "warehouseReceipt"
  108. // },
  109. // children: [
  110. // ]
  111. // },
  112. // {
  113. // path: "stock/",
  114. // component: Layout,
  115. // redirect: "noredirect",
  116. // name: "warehouseReceiptOther",
  117. // meta: {
  118. // isChild: true,
  119. // title: "warehouseReceiptOther"
  120. // },
  121. // children: [
  122. // {
  123. // path: "/stock/in/other",
  124. // component: () => import("@/xt_pages/stock/otherStockInOrder"),
  125. // name: "otherStockInOrder",
  126. // meta: { title: "otherStockInOrder", noCache: true }
  127. // },
  128. // {
  129. // path: "/stock/return/other",
  130. // component: () => import("@/xt_pages/stock/otherSalesReturnOrder"),
  131. // name: "otherSalesReturnOrder",
  132. // meta: { title: "otherSalesReturnOrder", noCache: true }
  133. // },
  134. // {
  135. // path: "/stock/out/other",
  136. // component: () => import("@/xt_pages/stock/otherStockOutOrder"),
  137. // name: "otherStockOutOrder",
  138. // meta: { title: "otherStockOutOrder", noCache: true }
  139. // },
  140. // {
  141. // path: "/stock/cancel/other",
  142. // component: () => import("@/xt_pages/stock/otherCancelStockOrder"),
  143. // name: "otherCancelStockOrder",
  144. // meta: { title: "otherCancelStockOrder", noCache: true }
  145. // }
  146. // ]
  147. // },
  148. {
  149. path: '/stock/detail',
  150. component: () => import('@/xt_pages/stock/stockDetailIndex'),
  151. name: 'stockDetail',
  152. meta: { title: 'stockDetail', noCache: true }
  153. },
  154. {
  155. path: '/stock/in/add',
  156. component: () => import('@/xt_pages/stock/stockInOrderAdd'),
  157. name: 'stockInOrderAdd',
  158. hidden: true,
  159. is_menu: false,
  160. meta: { title: 'stockInOrderAdd', noCache: true }
  161. },
  162. {
  163. path: '/stock/in/detail',
  164. component: () => import('@/xt_pages/stock/stockInDetail'),
  165. name: 'stockInDetail',
  166. hidden: true,
  167. is_menu: false,
  168. meta: { title: 'stockInDetail', noCache: true }
  169. },
  170. {
  171. path: '/stock/return/detail',
  172. component: () => import('@/xt_pages/stock/salesReturnDetail'),
  173. name: 'salesReturnDetail',
  174. hidden: true,
  175. is_menu: false,
  176. meta: { title: 'salesReturnDetail', noCache: true }
  177. },
  178. {
  179. path: '/stock/return/add',
  180. component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
  181. name: 'salesReturnOrderAdd',
  182. hidden: true,
  183. is_menu: false,
  184. meta: { title: 'salesReturnOrderAdd', noCache: true }
  185. },
  186. {
  187. path: '/stock/out/add',
  188. component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
  189. name: 'stockOutOrderAdd',
  190. hidden: true,
  191. is_menu: false,
  192. meta: { title: 'stockOutOrderAdd', noCache: true }
  193. },
  194. {
  195. path: '/stock/out/detail',
  196. component: () => import('@/xt_pages/stock/stockOutDetail'),
  197. name: 'stockOutDetail',
  198. hidden: true,
  199. is_menu: false,
  200. meta: { title: 'stockOutDetail', noCache: true }
  201. },
  202. {
  203. path: '/stock/cancel/add',
  204. component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
  205. name: 'cancelStockOrderAdd',
  206. hidden: true,
  207. is_menu: false,
  208. meta: { title: 'cancelStockOrderAdd', noCache: true }
  209. },
  210. {
  211. path: '/stock/cancel/detail',
  212. component: () => import('@/xt_pages/stock/cancelStockDetail'),
  213. name: 'cancelStockDetail',
  214. hidden: true,
  215. is_menu: false,
  216. meta: { title: 'cancelStockDetail', noCache: true }
  217. },
  218. {
  219. path: '/stock/config',
  220. component: () => import('@/xt_pages/stock/index'),
  221. name: 'config',
  222. meta: { title: 'config', noCache: true }
  223. },
  224. {
  225. path: '/stock/print',
  226. component: () => import('@/xt_pages/stock/detail/print'),
  227. hidden: true,
  228. is_menu: false,
  229. name: 'stock_print',
  230. meta: {
  231. title: '库存打印',
  232. noCache: true
  233. }
  234. },
  235. {
  236. path: '/stock/user/detail',
  237. component: () => import('@/xt_pages/stock/stockUserDetail'),
  238. name: 'user_detail',
  239. hidden: true,
  240. is_menu: false,
  241. meta: { title: 'user_detail', noCache: true }
  242. },
  243. {
  244. path: '/stock/drugprint',
  245. component: () => import('@/xt_pages/stock/drugs/drugPrint'),
  246. hidden: true,
  247. is_menu: false,
  248. name: 'stock_print',
  249. meta: {
  250. title: '库存打印',
  251. noCache: true
  252. }
  253. },
  254. {
  255. path: '/stock/drugcancelprint',
  256. component: () => import('@/xt_pages/stock/drugs/drugCancelOurderPrint'),
  257. hidden: true,
  258. is_menu: false,
  259. name: 'stock_print',
  260. meta: {
  261. title: '退库打印',
  262. noCache: true
  263. }
  264. },
  265. {
  266. path: '/stock/drugoutorderprint',
  267. component: () => import('@/xt_pages/stock/drugs/drugOutOrderPrint'),
  268. hidden: true,
  269. is_menu: false,
  270. name: 'stock_print',
  271. meta: {
  272. title: '出库打印',
  273. noCache: true
  274. }
  275. },
  276. {
  277. path: '/stock/drugcanceldetaiprint',
  278. component: () => import('@/xt_pages/stock/drugs/drugCancelDetailPrint'),
  279. hidden: true,
  280. is_menu: false,
  281. name: 'stock_print',
  282. meta: {
  283. title: '出库打印',
  284. noCache: true
  285. }
  286. },
  287. {
  288. path: '/stock/drugStockInOrderDetailPrint',
  289. component: () => import('@/xt_pages/stock/drugs/drugStockInOrderDetailPrint'),
  290. hidden: true,
  291. is_menu: false,
  292. name: 'drugInOrderDetailPrint',
  293. meta: {
  294. title: '药品入库单打印',
  295. noCache: true
  296. }
  297. },
  298. {
  299. path: '/stock/drugStockOutOrderDetailPrint',
  300. component: () => import('@/xt_pages/stock/drugs/drugStockOutOrderDetailPrint'),
  301. hidden: true,
  302. is_menu: false,
  303. name: 'drugOutOrderDetailPrint',
  304. meta: {
  305. title: '药品入库单打印',
  306. noCache: true
  307. }
  308. },
  309. {
  310. path: '/stock/drugQueryPrint',
  311. component: () => import('@/xt_pages/stock/drugs/drugQueryPrint'),
  312. hidden: true,
  313. is_menu: false,
  314. name: 'drugQueryPrint',
  315. meta: {
  316. title: '药品入库单打印',
  317. noCache: true
  318. }
  319. },
  320. {
  321. path: '/stock/cancel/cancelstockorderedit',
  322. component: () => import('@/xt_pages/stock/cancelStockOrderEdit'),
  323. hidden: true,
  324. is_menu: false,
  325. name: 'drugQueryPrint',
  326. meta: {
  327. title: '耗材退库打印',
  328. noCache: true
  329. }
  330. },
  331. {
  332. path: '/stock/drugs/cancelstockorderprint',
  333. component: () => import('@/xt_pages/stock/cancelStockOrderPrint'),
  334. hidden: true,
  335. is_menu: false,
  336. name: 'stock_print',
  337. meta: {
  338. title: '退库打印',
  339. noCache: true
  340. }
  341. },
  342. {
  343. path: '/stock/inventoryTransfer/Addtrans',
  344. component: () => import('@/xt_pages/stock/inventoryTransfer/Addtrans'),
  345. hidden: true,
  346. is_menu: false,
  347. name: 'Addtrans',
  348. meta: {
  349. title: '新增调拨',
  350. noCache: true
  351. }
  352. },
  353. {
  354. path: '/stock/inventoryTransfer/transDetails',
  355. component: () => import('@/xt_pages/stock/inventoryTransfer/transDetails'),
  356. hidden: true,
  357. is_menu: false,
  358. name: 'Addtrans',
  359. meta: {
  360. title: '调拨详情',
  361. noCache: true
  362. }
  363. },
  364. {
  365. path: '/stock/inventoryTransfer/transedit',
  366. component: () => import('@/xt_pages/stock/inventoryTransfer/transEdit'),
  367. hidden: true,
  368. is_menu: false,
  369. name: 'transEdit',
  370. meta: {
  371. title: '编辑调拨',
  372. noCache: true
  373. }
  374. }
  375. ]
  376. }