api-medicineAbinet.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. import request from "@/utils/request";
  2. import {BASE} from "@/api/apiGateway"
  3. let service = {
  4. //备药单相关接口 start
  5. replenishList: function(params) {
  6. return request({
  7. url: `${BASE}/baseUp/docFullInfo`,
  8. method: "get",
  9. params
  10. });
  11. },
  12. replenishFindById: function(params) {
  13. return request({
  14. url: `${BASE}/baseUp/getUpDetailListById`,
  15. method: "get",
  16. params
  17. });
  18. },
  19. replenishCreate: function(data) {
  20. return request({
  21. url: `${BASE}/baseUp/create`,
  22. method: "post",
  23. data
  24. });
  25. },
  26. replenishUpdate: function(data) {
  27. return request({
  28. url: `${BASE}/baseUp/update`,
  29. method: "post",
  30. data
  31. });
  32. },
  33. replenishDelete: function(data) {
  34. return request({
  35. url: `${BASE}/baseUp/delete`,
  36. method: "post",
  37. data
  38. });
  39. },
  40. baseUpGetRecordByPage: function(params) {
  41. return request({
  42. url: `${BASE}/baseUp/getRecordByPage`,
  43. method: "get",
  44. params
  45. });
  46. },
  47. // 生成备药单
  48. baseUpCreateUp: function(data) {
  49. return request({
  50. url: `${BASE}/baseUp/createUp`,
  51. method: "post",
  52. data
  53. });
  54. },
  55. getUpDetailById: function(params) {
  56. return request({
  57. url: `${BASE}/baseUp/getUpDetailById`,
  58. method: "get",
  59. params
  60. });
  61. },
  62. // .获取补货记录明细 recordId
  63. getRecordDetailListById: function(params) {
  64. return request({
  65. url: `${BASE}/baseUp/getRecordDetailListById`,
  66. method: "get",
  67. params
  68. });
  69. },
  70. //备药单相关接口 end
  71. //出库单相关接口 start
  72. outboundOrderList: function(params) {
  73. return request({
  74. url: `${BASE}/baseOut/docFullInfo`,
  75. method: "get",
  76. params
  77. });
  78. },
  79. outboundOrderCreate: function(data) {
  80. return request({
  81. url: `${BASE}/baseOut/create`,
  82. method: "post",
  83. data
  84. });
  85. },
  86. outboundOrderUpdate: function(data) {
  87. return request({
  88. url: `${BASE}/baseOut/update`,
  89. method: "post",
  90. data
  91. });
  92. },
  93. outboundOrderDelete: function(data) {
  94. return request({
  95. url: `${BASE}/baseOut/delete`,
  96. method: "post",
  97. data
  98. });
  99. },
  100. // 修改出货单领取状态
  101. changeReceiveState: function(data) {
  102. return request({
  103. url: `${BASE}/baseOut/changeReceiveState`,
  104. method: "post",
  105. data
  106. });
  107. },
  108. changeMoreReceiveState: function(data) {
  109. return request({
  110. url: `${BASE}/baseOut/changeMoreReceiveState`,
  111. method: "post",
  112. data
  113. });
  114. },
  115. // 生成出库单
  116. baseOutCreateUp: function(data) {
  117. return request({
  118. url: `${BASE}/baseOut/createUp`,
  119. method: "post",
  120. data
  121. });
  122. },
  123. // 出库单明细
  124. getOutDetailById: function(params) {
  125. return request({
  126. url: `${BASE}/baseOut/getOutDetailById`,
  127. method: "get",
  128. params
  129. });
  130. },
  131. //出库单相关接口 end
  132. //药品信息 start
  133. drugList: function(params) {
  134. return request({
  135. url: `${BASE}/baseDrug/docFullInfo`,
  136. method: "get",
  137. params
  138. });
  139. },
  140. getDrugListByDevice: function(params) {
  141. return request({
  142. url: `${BASE}/baseDrug/getDrugListByDevice`,
  143. method: "get",
  144. params
  145. });
  146. },
  147. getDrugDetailListById: function(params) {
  148. return request({
  149. url: `${BASE}/baseDrug/getDrugDetailListById`,
  150. method: "get",
  151. params
  152. });
  153. },
  154. //药品信息 end
  155. //设备相关接口 start
  156. deviceList: function(params) {
  157. return request({
  158. url: `${BASE}/baseDevice/docFullInfo`,
  159. method: "get",
  160. params
  161. });
  162. },
  163. deviceCreate: function(data) {
  164. return request({
  165. url: `${BASE}/baseDevice/create`,
  166. method: "post",
  167. data
  168. });
  169. },
  170. deviceUpdate: function(data) {
  171. return request({
  172. url: `${BASE}/baseDevice/update`,
  173. method: "post",
  174. data
  175. });
  176. },
  177. deviceDelete: function(data) {
  178. return request({
  179. url: `${BASE}/baseDevice/delete`,
  180. method: "post",
  181. data
  182. });
  183. },
  184. // 获取缺药列表
  185. getOutOfStockDeviceList: function(params) {
  186. return request({
  187. url: `${BASE}/baseDevice/getOutOfStockDeviceList`,
  188. method: "get",
  189. params
  190. });
  191. },
  192. // 获取缺药信息
  193. getDetialOutOfStock: function(data) {
  194. return request({
  195. url: `${BASE}/baseDevice/getDetialOutOfStock`,
  196. method: "post",
  197. data
  198. });
  199. },
  200. //通过设备id 查询 所绑定的补货员信息列表 deviceId
  201. getUserListByDeviceId: function(params) {
  202. return request({
  203. url: `${BASE}/baseDevice/getUserListByDeviceId`,
  204. method: "get",
  205. params
  206. });
  207. },
  208. //获取设备信息
  209. findDeviceById: function(params) {
  210. return request({
  211. url: `${BASE}/baseDevice/findById`,
  212. method: "get",
  213. params
  214. });
  215. },
  216. findDeviceByIdNoLogin: function(params) {
  217. return request({
  218. url: `${BASE}/open/noLogin/findById`,
  219. method: "get",
  220. params
  221. });
  222. },
  223. getDevicesByMoreContent: function(params) {
  224. return request({
  225. url: `${BASE}/baseDevice/getDevicesByMoreContent`,
  226. method: "get",
  227. params
  228. });
  229. },
  230. // 更新设备投放地址
  231. updateAddressInfo: function(data) {
  232. return request({
  233. url: `${BASE}/baseDevice/updateAddressInfo`,
  234. method: "post",
  235. data
  236. });
  237. },
  238. // 更新设备社区
  239. updateCommunity: function(data) {
  240. return request({
  241. url: `${BASE}/baseDevice/updateCommunity`,
  242. method: "post",
  243. data
  244. });
  245. },
  246. //解绑设备 deviceIds
  247. unbindDevice: function(data) {
  248. return request({
  249. url: `${BASE}/baseDevice/unbindDevice`,
  250. method: "post",
  251. data
  252. });
  253. },
  254. updateSaleStatus: function(data) {
  255. return request({
  256. url: `${BASE}/baseDevice/updateSaleStatus`,
  257. method: "post",
  258. data
  259. });
  260. },
  261. // 新增投放地址
  262. createAddress: function(data) {
  263. return request({
  264. url: `${BASE}/baseDevice/createAddress`,
  265. method: "post",
  266. data
  267. });
  268. },
  269. // 删除投放地址
  270. deleteAddress: function(data) {
  271. return request({
  272. url: `${BASE}/baseDevice/deleteAddress`,
  273. method: "post",
  274. data
  275. });
  276. },
  277. // 获取投放地址列表
  278. getDevicesDeliveryList: function(params) {
  279. return request({
  280. url: `${BASE}/baseDevice/getDevicesDeliveryList`,
  281. method: "get",
  282. params
  283. });
  284. },
  285. // 处方明细接口
  286. getOrderDetailById: function(params) {
  287. return request({
  288. url: `${BASE}/baseOrder/getOrderDetailById`,
  289. method: "get",
  290. params
  291. });
  292. },
  293. //获取设备统计
  294. countall: function(params) {
  295. return request({
  296. url: `${BASE}/baseDevice/countall`,
  297. method: "get",
  298. params
  299. });
  300. },
  301. warrayGetExceed: function(params) {
  302. return request({
  303. url: `${BASE}/baseWarray/getExceed`,
  304. method: "get",
  305. params
  306. });
  307. },
  308. warrayGetFlow: function(params) {
  309. return request({
  310. url: `${BASE}/baseWarray/getFlow`,
  311. method: "get",
  312. params
  313. });
  314. },
  315. warrayGetNetwork: function(params) {
  316. return request({
  317. url: `${BASE}/baseWarray/getNetwork`,
  318. method: "get",
  319. params
  320. });
  321. },
  322. warrayGetFault: function(params) {
  323. return request({
  324. url: `${BASE}/baseWarray/getFault`,
  325. method: "get",
  326. params
  327. });
  328. },
  329. warrayGetOffline: function(params) {
  330. return request({
  331. url: `${BASE}/baseWarray/getOffline`,
  332. method: "get",
  333. params
  334. });
  335. },
  336. warrayGetHumidity: function(params) {
  337. return request({
  338. url: `${BASE}/baseWarray/getHumidity`,
  339. method: "get",
  340. params
  341. });
  342. },
  343. warrayGetTemperature: function(params) {
  344. return request({
  345. url: `${BASE}/baseWarray/getTemperature`,
  346. method: "get",
  347. params
  348. });
  349. },
  350. //设备相关接口 end
  351. //订单相关接口 start
  352. orderList: function(params) {
  353. return request({
  354. url: `${BASE}/baseOrder/docFullInfo`,
  355. method: "get",
  356. params
  357. });
  358. },
  359. getOrderDetailListById: function(params) {
  360. return request({
  361. url: `${BASE}/baseOrder/getOrderDetailListById`,
  362. method: "get",
  363. params
  364. });
  365. },
  366. //设备相关接口 end
  367. //补货员列表
  368. replenishErList: function(params) {
  369. return request({
  370. url: `${BASE}/baseUser/docFullInfo`,
  371. method: "get",
  372. params
  373. });
  374. },
  375. // 分配设备(员工) userIds deviceIds isAll
  376. allotDevice: function(params) {
  377. return request({
  378. url: `${BASE}/baseUser/allotDevice`,
  379. method: "get",
  380. params
  381. });
  382. },
  383. // 检查订单并且返回药品库存信息
  384. checkOrderAndReturn: function(params) {
  385. return request({
  386. url: `${BASE}/open/noLogin/checkOrderAndReturn`,
  387. method: "get",
  388. params
  389. });
  390. },
  391. // 获取设备广告
  392. devinfoAdvList: function(params) {
  393. return request({
  394. url: `${BASE}/open/noLogin/devinfo`,
  395. method: "get",
  396. params
  397. });
  398. },
  399. // 根据用户id,查询设备在线统计
  400. countAllDevice: function(params) {
  401. return request({
  402. url: `${BASE}/baseDevice/getFirstPageInfo`,
  403. method: "get",
  404. params
  405. });
  406. },
  407. // 根据用户id,天数,查询设备取药次数
  408. getmedicine: function(params) {
  409. return request({
  410. url: `${BASE}/baseDevice/getShippingTypeByUserId`,
  411. method: "get",
  412. params
  413. });
  414. },
  415. // 根据用户id,天数,查询设备电子处方单次数
  416. getprescriptions: function(params) {
  417. return request({
  418. url: `${BASE}/baseDevice/getPrescriptionStaticsByUserId`,
  419. method: "get",
  420. params
  421. });
  422. },
  423. // 根据用户id,天数,查询销售额
  424. getechartsData: function(params) {
  425. return request({
  426. url: `${BASE}/baseDevice/getDevicePriceStatisticsByUserId`,
  427. method: "get",
  428. params
  429. });
  430. },
  431. // 根据设备id查询设备轨道数据
  432. findMediicinecabinetInventoryByDeviceId: function(params) {
  433. return request({
  434. url: `${BASE}/baseDevice/findMediicinecabinetInventoryByDeviceId`,
  435. method: "get",
  436. params
  437. });
  438. },
  439. // 更换药品,或者设定药品
  440. updateMediicinecabineInventory: function(data) {
  441. return request({
  442. url: `${BASE}/baseDevice/updateMediicinecabineInventory`,
  443. method: "post",
  444. data
  445. });
  446. },
  447. // 根据货道id获取单个货道详情
  448. selectMediicinecabineInventoryById: function(params) {
  449. return request({
  450. url: `${BASE}/baseDevice/selectMediicinecabineInventoryById`,
  451. method: "get",
  452. params
  453. });
  454. },
  455. // 矫正库存\\ 更新容量 \\下架药品
  456. updateMediicinecabineInventoryInfoById: function(data) {
  457. return request({
  458. url: `${BASE}/baseDevice/updateMediicinecabineInventoryInfoById`,
  459. method: "post",
  460. data
  461. });
  462. },
  463. // 通过userId, 获取缺药列表
  464. getOutOfStockDeviceListByUserId: function(params) {
  465. return request({
  466. url: `${BASE}/baseDevice/getOutOfStockDeviceListByUserId`,
  467. method: "get",
  468. params
  469. });
  470. },
  471. // 通过userId 获取设备列表
  472. getDeviceListWithUserId: function(params) {
  473. return request({
  474. url: `${BASE}/baseDevice/getDeviceListWithUserId`,
  475. method: "get",
  476. params
  477. });
  478. },
  479. openAndCloseCargo: function(data) {
  480. return request({
  481. url: `${BASE}/baseDevice/openAndCloseCargo`,
  482. method: "post",
  483. data
  484. });
  485. },
  486. checkOrderAndReturnOrderList: function(params, cancel) {
  487. return request({
  488. url: `${BASE}/open/noLogin/checkOrderAndReturnOrderList`,
  489. method: "get",
  490. params,
  491. cancelToken: cancel&&cancel.token
  492. });
  493. },
  494. // 更新出货状态
  495. updateOrderOutStatus: function(data) {
  496. return request({
  497. url: `${BASE}/open/noLogin/updateOrderOutStatus`,
  498. method: "post",
  499. data
  500. });
  501. },
  502. mergeAndSplitCargo: function(data) {
  503. return request({
  504. url: `${BASE}/baseDevice/mergeAndSplitCargo`,
  505. method: "post",
  506. data
  507. });
  508. },
  509. //设备温度湿度设置和控制
  510. updateTAndH: function(data) {
  511. return request({
  512. url: `${BASE}/baseDevice/updateTAndH`,
  513. method: "post",
  514. data
  515. });
  516. },
  517. //更新设备名称
  518. updateDevEquName: function(data) {
  519. return request({
  520. url: `${BASE}/baseDevice/updateDevEquName`,
  521. method: "post",
  522. data
  523. });
  524. },
  525. // 获取设备携带不同类型的日志的二级树,补货日志、换货日志、上货日志
  526. // getDeviceInventoryRecordListWithUserId: function(params) {
  527. // return request({
  528. // url: `${BASE}/baseDevice/getDeviceInventoryRecordListWithUserId`,
  529. // method: "get",
  530. // params
  531. // });
  532. // },
  533. findOrgList(params){
  534. return request({
  535. url: `${BASE}/equipment/findOrgList`,
  536. method: 'get',
  537. params
  538. })
  539. },
  540. baseTownList: function(data) {
  541. return request({
  542. url: `${BASE}/baseTown/list`,
  543. method: "get",
  544. params: data
  545. });
  546. },
  547. //获取所有设备最后一次补货记录
  548. getDeviceInventoryRecordListWithUserId: function(data) {
  549. return request({
  550. url: `${BASE}/baseDevice/getDeviceInventoryRecordListWithUserId`,
  551. method: "get",
  552. params: data
  553. });
  554. },
  555. //获取单个设备的补货记录
  556. getDeviceInventoryRecordListByDeviceId: function(data) {
  557. return request({
  558. url: `${BASE}/baseDevice/getDeviceInventoryRecordListByDeviceId`,
  559. method: "get",
  560. params: data
  561. });
  562. },
  563. // 通过设备id获取该设备的缺药信息
  564. getOutOfStockInfoByDeviceWithPage: function(data) {
  565. return request({
  566. url: `${BASE}/baseDevice/getOutOfStockInfoByDeviceWithPage`,
  567. method: "get",
  568. params: data
  569. });
  570. },
  571. // 以药品为维度的药品库存统计
  572. getDrugInventoryCount: function(params) {
  573. return request({
  574. url: `${BASE}/baseDevice/getDrugInventoryCount`,
  575. method: "get",
  576. params
  577. });
  578. },
  579. //根据用户和设备获取出货单详情
  580. getOutDetailByUserIdAndDeviceId: function(params) {
  581. return request({
  582. url: `${BASE}/baseOut/getOutDetailByUserIdAndDeviceId`,
  583. method: "get",
  584. params
  585. });
  586. },
  587. // 批量补货
  588. batchAddInventory: function(data) {
  589. return request({
  590. url: `${BASE}/baseDevice/batchAddInventory`,
  591. method: "post",
  592. data
  593. });
  594. },
  595. //设备出货日志
  596. getDeviceOrderInfoPage: function(params) {
  597. return request({
  598. url: `${BASE}/baseDevice/getDeviceOrderInfoPage`,
  599. method: "get",
  600. params
  601. });
  602. },
  603. queryUpListByDeviceIdAndStatus: function(params) {
  604. return request({
  605. url: `${BASE}/baseUp/queryUpListByDeviceIdAndStatus`,
  606. method: "get",
  607. params
  608. });
  609. },
  610. queryUpListByStatus: function(params) {
  611. return request({
  612. url: `${BASE}/baseUp/queryUpListByStatus`,
  613. method: "get",
  614. params
  615. });
  616. },
  617. updateStockUpStatus: function(data) {
  618. return request({
  619. url: `${BASE}/baseUp/updateStockUpStatus`,
  620. method: "post",
  621. data
  622. });
  623. },
  624. getSettlementInfoFirst: function(data) {
  625. return request({
  626. url: `${BASE}/baseOrder/open/getSettlementInfoFirst`,
  627. method: "get",
  628. params: data,
  629. });
  630. },
  631. getSettlementInfo: function(data) {
  632. return request({
  633. url: `${BASE}/baseOrder/open/getSettlementInfo`,
  634. method: "post",
  635. data
  636. });
  637. },
  638. getSettlementInfoList: function(data, cancel) {
  639. return request({
  640. url: `${BASE}/baseOrder/open/getSettlementInfoList`,
  641. method: "get",
  642. params: data,
  643. cancelToken: cancel&&cancel.token
  644. });
  645. },
  646. getSettlementInfoSecode: function(data) {
  647. return request({
  648. url: `${BASE}/baseOrder/open/getSettlementInfoSecode`,
  649. method: "post",
  650. data
  651. });
  652. },
  653. saveCheckHttpLog: function(data) {
  654. return request({
  655. url: `${BASE}/open/noLogin/saveCheckHttpLog`,
  656. method: "post",
  657. data
  658. });
  659. },
  660. hlwyyRecharge: function(params) {
  661. return request({
  662. url: `${BASE}/baseOrder/open/hlwyyRecharge`,
  663. method: "get",
  664. params
  665. });
  666. },
  667. executeSickSettleMultiNew: function(params) {
  668. return request({
  669. url: `${BASE}/baseOrder/open/executeSickSettleMultiNew`,
  670. method: "get",
  671. params
  672. });
  673. },
  674. hlwyyRechargePatient: function(params) {
  675. return request({
  676. url: `${BASE}/baseOrder/open/patient/hlwyyRecharge`,
  677. method: "get",
  678. params
  679. });
  680. },
  681. setDeviceAttribute: function(params) {
  682. return request({
  683. url: `${BASE}/baseDevice/open/setDeviceAttribute`,
  684. method: "get",
  685. params
  686. });
  687. },
  688. getYjjBalance: function(params) {
  689. return request({
  690. url: `${BASE}/baseOrder/open/getYjjBalance`,
  691. method: "get",
  692. params
  693. });
  694. },
  695. getYjjChargeList: function(params) {
  696. return request({
  697. url: `${BASE}/baseOrder/open/getYjjChargeList`,
  698. method: "get",
  699. params
  700. });
  701. },
  702. readCardInfo: function(params) {
  703. return request({
  704. url: `${BASE}/baseOrder/open/readCardInfo`,
  705. method: "get",
  706. params
  707. });
  708. },
  709. selectSettlementList: function(params) {
  710. return request({
  711. url: `${BASE}/baseOrder/open/selectSettlementList`,
  712. method: "get",
  713. params
  714. });
  715. },
  716. };
  717. export default service;