stock.js 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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/new/query',
  22. component: () => import('@/xt_pages/stock/stockNewQuery'),
  23. name: 'stockNewQuery',
  24. meta: { title: 'stockNewQuery', noCache: true }
  25. },
  26. {
  27. path: '/stock/in',
  28. component: () => import('@/xt_pages/stock/stockInOrder'),
  29. name: 'stockInOrder',
  30. meta: { title: 'stockInOrder', noCache: true }
  31. },
  32. // {
  33. // path: '/stock/return',
  34. // component: () => import('@/xt_pages/stock/salesReturnOrder'),
  35. // name: 'salesReturnOrder',
  36. // meta: { title: 'salesReturnOrder', noCache: true }
  37. // },
  38. {
  39. path: '/stock/out',
  40. component: () => import('@/xt_pages/stock/stockOutOrder'),
  41. name: 'stockOutOrder',
  42. meta: { title: 'stockOutOrder', noCache: true }
  43. },
  44. {
  45. path: '/stock/cancel',
  46. component: () => import('@/xt_pages/stock/cancelStockOrder'),
  47. name: 'cancelStockOrder',
  48. meta: { title: 'cancelStockOrder', noCache: true }
  49. },
  50. // {
  51. // path: '/stock/stockModifyPrice',
  52. // component: () => import('@/xt_pages/stock/stockModifyPrice'),
  53. // name: 'stockModifyPrice',
  54. // meta: { title: 'stockModifyPrice', noCache: true }
  55. // },
  56. {
  57. path: '/stock/stockModifyPricePrint',
  58. component: () => import('@/xt_pages/stock/stockModifyPricePrint'),
  59. name: 'stockModifyPricePrint',
  60. hidden: true,
  61. is_menu: false,
  62. meta: { title: 'stockModifyPricePrint', noCache: true }
  63. },
  64. // {
  65. // path: '/stock/stockDamaged',
  66. // component: () => import('@/xt_pages/stock/stockDamaged'),
  67. // name: 'stockDamaged',
  68. // meta: { title: 'stockDamaged', noCache: true }
  69. // },
  70. {
  71. path: '/stock/stockDamagePrint',
  72. component: () => import('@/xt_pages/stock/stockDamagePrint'),
  73. name: 'stockModifyPricePrint',
  74. hidden: true,
  75. is_menu: false,
  76. meta: { title: 'stockModifyPricePrint', noCache: true }
  77. },
  78. // {
  79. // path: '/stock/stockWarning',
  80. // component: () => import('@/xt_pages/stock/stockWarning'),
  81. // name: 'stockWarning',
  82. // meta: { title: 'stockWarning', noCache: true }
  83. // },
  84. {
  85. path: '/stock/stockInventory',
  86. component: () => import('@/xt_pages/stock/stockInventory'),
  87. name: 'stockInventory',
  88. meta: { title: 'stockInventory', noCache: true }
  89. },
  90. {
  91. path: '/stock/inventoryPrint',
  92. component: () => import('@/xt_pages/stock/inventoryPrint'),
  93. name: 'inventoryPrint',
  94. hidden: true,
  95. is_menu: false,
  96. meta: { title: 'inventoryPrint', noCache: true }
  97. },
  98. {
  99. path: '/stock/inventoryDetailPrint',
  100. component: () => import('@/xt_pages/stock/inventoryDetailPrint'),
  101. name: 'inventoryPrint',
  102. hidden: true,
  103. is_menu: false,
  104. meta: { title: 'inventoryPrint', noCache: true }
  105. },
  106. {
  107. path: '/stock/print_all',
  108. component: () => import('@/xt_pages/stock/print_all'),
  109. name: 'print_all',
  110. hidden: true,
  111. is_menu: false,
  112. meta: { title: 'print_all', noCache: true }
  113. },
  114. // {
  115. // path: "/stock/",
  116. // component: Layout,
  117. // redirect: "noredirect",
  118. // name: "warehouseReceipt",
  119. // meta: {
  120. // isChild: true,
  121. // title: "warehouseReceipt"
  122. // },
  123. // children: [
  124. // ]
  125. // },
  126. // {
  127. // path: "stock/",
  128. // component: Layout,
  129. // redirect: "noredirect",
  130. // name: "warehouseReceiptOther",
  131. // meta: {
  132. // isChild: true,
  133. // title: "warehouseReceiptOther"
  134. // },
  135. // children: [
  136. // {
  137. // path: "/stock/in/other",
  138. // component: () => import("@/xt_pages/stock/otherStockInOrder"),
  139. // name: "otherStockInOrder",
  140. // meta: { title: "otherStockInOrder", noCache: true }
  141. // },
  142. // {
  143. // path: "/stock/return/other",
  144. // component: () => import("@/xt_pages/stock/otherSalesReturnOrder"),
  145. // name: "otherSalesReturnOrder",
  146. // meta: { title: "otherSalesReturnOrder", noCache: true }
  147. // },
  148. // {
  149. // path: "/stock/out/other",
  150. // component: () => import("@/xt_pages/stock/otherStockOutOrder"),
  151. // name: "otherStockOutOrder",
  152. // meta: { title: "otherStockOutOrder", noCache: true }
  153. // },
  154. // {
  155. // path: "/stock/cancel/other",
  156. // component: () => import("@/xt_pages/stock/otherCancelStockOrder"),
  157. // name: "otherCancelStockOrder",
  158. // meta: { title: "otherCancelStockOrder", noCache: true }
  159. // }
  160. // ]
  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/test',
  240. component: () => import('@/xt_pages/stock/test'),
  241. name: 'test',
  242. meta: { title: 'test', noCache: true }
  243. },
  244. {
  245. path: '/stock/print',
  246. component: () => import('@/xt_pages/stock/detail/print'),
  247. hidden: true,
  248. is_menu: false,
  249. name: 'stock_print',
  250. meta: {
  251. title: '库存打印',
  252. noCache: true
  253. }
  254. },
  255. {
  256. path: '/stock/print/one',
  257. component: () => import('@/xt_pages/stock/detail/printOne'),
  258. hidden: true,
  259. is_menu: false,
  260. name: 'stock_print_one',
  261. meta: {
  262. title: '库存打印',
  263. noCache: true
  264. }
  265. },
  266. {
  267. path: '/stock/print/two',
  268. component: () => import('@/xt_pages/stock/detail/printTwo'),
  269. hidden: true,
  270. is_menu: false,
  271. name: 'stock_print_two',
  272. meta: {
  273. title: '库存打印',
  274. noCache: true
  275. }
  276. },
  277. {
  278. path: '/stock/user/detail',
  279. component: () => import('@/xt_pages/stock/stockUserDetail'),
  280. name: 'user_detail',
  281. hidden: true,
  282. is_menu: false,
  283. meta: { title: 'user_detail', noCache: true }
  284. },
  285. {
  286. path: '/stock/drugprint',
  287. component: () => import('@/xt_pages/stock/drugs/drugPrint'),
  288. hidden: true,
  289. is_menu: false,
  290. name: 'stock_print',
  291. meta: {
  292. title: '库存打印',
  293. noCache: true
  294. }
  295. },
  296. {
  297. path: '/stock/drugcancelprint',
  298. component: () => import('@/xt_pages/stock/drugs/drugCancelOurderPrint'),
  299. hidden: true,
  300. is_menu: false,
  301. name: 'stock_print',
  302. meta: {
  303. title: '退库打印',
  304. noCache: true
  305. }
  306. },
  307. {
  308. path: '/stock/drugoutorderprint',
  309. component: () => import('@/xt_pages/stock/drugs/drugOutOrderPrint'),
  310. hidden: true,
  311. is_menu: false,
  312. name: 'stock_print',
  313. meta: {
  314. title: '出库打印',
  315. noCache: true
  316. }
  317. },
  318. {
  319. path: '/stock/drugcanceldetaiprint',
  320. component: () => import('@/xt_pages/stock/drugs/drugCancelDetailPrint'),
  321. hidden: true,
  322. is_menu: false,
  323. name: 'stock_print',
  324. meta: {
  325. title: '出库打印',
  326. noCache: true
  327. }
  328. },
  329. {
  330. path: '/stock/drugStockInOrderDetailPrint',
  331. component: () => import('@/xt_pages/stock/drugs/drugStockInOrderDetailPrint'),
  332. hidden: true,
  333. is_menu: false,
  334. name: 'drugInOrderDetailPrint',
  335. meta: {
  336. title: '药品入库单打印',
  337. noCache: true
  338. }
  339. },
  340. {
  341. path: '/stock/drugStockOutOrderDetailPrint',
  342. component: () => import('@/xt_pages/stock/drugs/drugStockOutOrderDetailPrint'),
  343. hidden: true,
  344. is_menu: false,
  345. name: 'drugOutOrderDetailPrint',
  346. meta: {
  347. title: '药品入库单打印',
  348. noCache: true
  349. }
  350. },
  351. {
  352. path: '/stock/drugQueryPrint',
  353. component: () => import('@/xt_pages/stock/drugs/drugQueryPrint'),
  354. hidden: true,
  355. is_menu: false,
  356. name: 'drugQueryPrint',
  357. meta: {
  358. title: '药品入库单打印',
  359. noCache: true
  360. }
  361. },
  362. {
  363. path: '/stock/cancel/cancelstockorderedit',
  364. component: () => import('@/xt_pages/stock/cancelStockOrderEdit'),
  365. hidden: true,
  366. is_menu: false,
  367. name: 'drugQueryPrint',
  368. meta: {
  369. title: '耗材退库打印',
  370. noCache: true
  371. }
  372. },
  373. {
  374. path: '/stock/drugs/cancelstockorderprint',
  375. component: () => import('@/xt_pages/stock/cancelStockOrderPrint'),
  376. hidden: true,
  377. is_menu: false,
  378. name: 'stock_print',
  379. meta: {
  380. title: '退库打印',
  381. noCache: true
  382. }
  383. },
  384. {
  385. path: '/stock/inventoryTransfer/Addtrans',
  386. component: () => import('@/xt_pages/stock/inventoryTransfer/Addtrans'),
  387. hidden: true,
  388. is_menu: false,
  389. name: 'Addtrans',
  390. meta: {
  391. title: '新增调拨',
  392. noCache: true
  393. }
  394. },
  395. {
  396. path: '/stock/inventoryTransfer/transDetails',
  397. component: () => import('@/xt_pages/stock/inventoryTransfer/transDetails'),
  398. hidden: true,
  399. is_menu: false,
  400. name: 'Addtrans',
  401. meta: {
  402. title: '调拨详情',
  403. noCache: true
  404. }
  405. },
  406. {
  407. path: '/stock/inventoryTransfer/transedit',
  408. component: () => import('@/xt_pages/stock/inventoryTransfer/transEdit'),
  409. hidden: true,
  410. is_menu: false,
  411. name: 'transEdit',
  412. meta: {
  413. title: '编辑调拨',
  414. noCache: true
  415. }
  416. },
  417. {
  418. path: '/good/new/query/print',
  419. component: () => import('@/xt_pages/stock/query/goodNewQueryPrint'),
  420. name: 'goodNewQueryPrint',
  421. hidden: true,
  422. is_menu: false,
  423. meta: { title: 'goodNewQueryPrint', noCache: true }
  424. },
  425. {
  426. path: '/purchase/stock/query/print',
  427. component: () => import('@/xt_pages/stock/query/purchaseStockQueryPrint'),
  428. name: 'purchaseStockQueryPrint',
  429. hidden: true,
  430. is_menu: false,
  431. meta: { title: 'purchaseStockQueryPrint', noCache: true }
  432. },
  433. {
  434. path: '/purchase/new/stock/query/print',
  435. component: () => import('@/xt_pages/stock/query/purchaseNewStockQueryPrint'),
  436. name: 'purchaseNewStockQueryPrint',
  437. hidden: true,
  438. is_menu: false,
  439. meta: { title: 'purchaseNewStockQueryPrint', noCache: true }
  440. },
  441. {
  442. path: '/expiry/date/query/print',
  443. component: () => import('@/xt_pages/stock/query/expiryDateQueryPrint'),
  444. name: 'expiryDateQueryPrint',
  445. hidden: true,
  446. is_menu: false,
  447. meta: { title: 'expiryDateQueryPrint', noCache: true }
  448. },
  449. {
  450. path: '/patient/query/print',
  451. component: () => import('@/xt_pages/stock/query/patientQueryPrint'),
  452. name: 'patientQuery',
  453. hidden: true,
  454. is_menu: false,
  455. meta: { title: 'patientQuery', noCache: true }
  456. },
  457. {
  458. path: '/drugs/purchase/query/print',
  459. component: () => import('@/xt_pages/stock/drugs/components/purchaseDrugQueryPrint'),
  460. name: 'purchaseDrugQueryPrint',
  461. hidden: true,
  462. is_menu: false,
  463. meta: { title: 'purchaseDrugQueryPrint', noCache: true }
  464. },
  465. {
  466. path: '/drugs/purchase/new/query/print',
  467. component: () => import('@/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint'),
  468. name: 'purchaseDrugNewQueryPrint',
  469. hidden: true,
  470. is_menu: false,
  471. meta: { title: 'purchaseDrugNewQueryPrint', noCache: true }
  472. },
  473. {
  474. path: '/drugs/expiry/date/query/print',
  475. component: () => import('@/xt_pages/stock/drugs/components/expiryDateDrugQueryPrint'),
  476. name: 'expiryDateDrugQueryPrint',
  477. hidden: true,
  478. is_menu: false,
  479. meta: { title: 'expiryDateDrugQueryPrint', noCache: true }
  480. },
  481. {
  482. path: '/drugs/patient/print',
  483. component: () => import('@/xt_pages/stock/drugs/components/drugPatientQueryPrint'),
  484. name: 'drugPatientQueryPrint',
  485. hidden: true,
  486. is_menu: false,
  487. meta: { title: 'drugPatientQueryPrint', noCache: true }
  488. },
  489. {
  490. path: '/drugs/query/print',
  491. component: () => import('@/xt_pages/stock/drugs/components/drugQueryPrint'),
  492. name: 'drugQueryPrint',
  493. hidden: true,
  494. is_menu: false,
  495. meta: { title: 'drugQueryPrint', noCache: true }
  496. }
  497. ]
  498. }