123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786 |
- import request from "@/utils/request";
- import {BASE} from "@/api/apiGateway"
- let service = {
- //备药单相关接口 start
- replenishList: function(params) {
- return request({
- url: `${BASE}/baseUp/docFullInfo`,
- method: "get",
- params
- });
- },
- replenishFindById: function(params) {
- return request({
- url: `${BASE}/baseUp/getUpDetailListById`,
- method: "get",
- params
- });
- },
- replenishCreate: function(data) {
- return request({
- url: `${BASE}/baseUp/create`,
- method: "post",
- data
- });
- },
- replenishUpdate: function(data) {
- return request({
- url: `${BASE}/baseUp/update`,
- method: "post",
- data
- });
- },
- replenishDelete: function(data) {
- return request({
- url: `${BASE}/baseUp/delete`,
- method: "post",
- data
- });
- },
- baseUpGetRecordByPage: function(params) {
- return request({
- url: `${BASE}/baseUp/getRecordByPage`,
- method: "get",
- params
- });
- },
- // 生成备药单
- baseUpCreateUp: function(data) {
- return request({
- url: `${BASE}/baseUp/createUp`,
- method: "post",
- data
- });
- },
- getUpDetailById: function(params) {
- return request({
- url: `${BASE}/baseUp/getUpDetailById`,
- method: "get",
- params
- });
- },
- // .获取补货记录明细 recordId
- getRecordDetailListById: function(params) {
- return request({
- url: `${BASE}/baseUp/getRecordDetailListById`,
- method: "get",
- params
- });
- },
- //备药单相关接口 end
- //出库单相关接口 start
- outboundOrderList: function(params) {
- return request({
- url: `${BASE}/baseOut/docFullInfo`,
- method: "get",
- params
- });
- },
- outboundOrderCreate: function(data) {
- return request({
- url: `${BASE}/baseOut/create`,
- method: "post",
- data
- });
- },
- outboundOrderUpdate: function(data) {
- return request({
- url: `${BASE}/baseOut/update`,
- method: "post",
- data
- });
- },
- outboundOrderDelete: function(data) {
- return request({
- url: `${BASE}/baseOut/delete`,
- method: "post",
- data
- });
- },
- // 修改出货单领取状态
- changeReceiveState: function(data) {
- return request({
- url: `${BASE}/baseOut/changeReceiveState`,
- method: "post",
- data
- });
- },
- changeMoreReceiveState: function(data) {
- return request({
- url: `${BASE}/baseOut/changeMoreReceiveState`,
- method: "post",
- data
- });
- },
- // 生成出库单
- baseOutCreateUp: function(data) {
- return request({
- url: `${BASE}/baseOut/createUp`,
- method: "post",
- data
- });
- },
- // 出库单明细
- getOutDetailById: function(params) {
- return request({
- url: `${BASE}/baseOut/getOutDetailById`,
- method: "get",
- params
- });
- },
- //出库单相关接口 end
-
-
- //药品信息 start
- drugList: function(params) {
- return request({
- url: `${BASE}/baseDrug/docFullInfo`,
- method: "get",
- params
- });
- },
- getDrugListByDevice: function(params) {
- return request({
- url: `${BASE}/baseDrug/getDrugListByDevice`,
- method: "get",
- params
- });
- },
- getDrugDetailListById: function(params) {
- return request({
- url: `${BASE}/baseDrug/getDrugDetailListById`,
- method: "get",
- params
- });
- },
- //药品信息 end
- //设备相关接口 start
- deviceList: function(params) {
- return request({
- url: `${BASE}/baseDevice/docFullInfo`,
- method: "get",
- params
- });
- },
- deviceCreate: function(data) {
- return request({
- url: `${BASE}/baseDevice/create`,
- method: "post",
- data
- });
- },
- deviceUpdate: function(data) {
- return request({
- url: `${BASE}/baseDevice/update`,
- method: "post",
- data
- });
- },
- deviceDelete: function(data) {
- return request({
- url: `${BASE}/baseDevice/delete`,
- method: "post",
- data
- });
- },
- // 获取缺药列表
- getOutOfStockDeviceList: function(params) {
- return request({
- url: `${BASE}/baseDevice/getOutOfStockDeviceList`,
- method: "get",
- params
- });
- },
- // 获取缺药信息
- getDetialOutOfStock: function(data) {
- return request({
- url: `${BASE}/baseDevice/getDetialOutOfStock`,
- method: "post",
- data
- });
- },
- //通过设备id 查询 所绑定的补货员信息列表 deviceId
- getUserListByDeviceId: function(params) {
- return request({
- url: `${BASE}/baseDevice/getUserListByDeviceId`,
- method: "get",
- params
- });
- },
- //获取设备信息
- findDeviceById: function(params) {
- return request({
- url: `${BASE}/baseDevice/findById`,
- method: "get",
- params
- });
- },
- findDeviceByIdNoLogin: function(params) {
- return request({
- url: `${BASE}/open/noLogin/findById`,
- method: "get",
- params
- });
- },
- getDevicesByMoreContent: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDevicesByMoreContent`,
- method: "get",
- params
- });
- },
- // 更新设备投放地址
- updateAddressInfo: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateAddressInfo`,
- method: "post",
- data
- });
- },
- // 更新设备社区
- updateCommunity: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateCommunity`,
- method: "post",
- data
- });
- },
- //解绑设备 deviceIds
- unbindDevice: function(data) {
- return request({
- url: `${BASE}/baseDevice/unbindDevice`,
- method: "post",
- data
- });
- },
- updateSaleStatus: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateSaleStatus`,
- method: "post",
- data
- });
- },
- // 新增投放地址
- createAddress: function(data) {
- return request({
- url: `${BASE}/baseDevice/createAddress`,
- method: "post",
- data
- });
- },
- // 删除投放地址
- deleteAddress: function(data) {
- return request({
- url: `${BASE}/baseDevice/deleteAddress`,
- method: "post",
- data
- });
- },
- // 获取投放地址列表
- getDevicesDeliveryList: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDevicesDeliveryList`,
- method: "get",
- params
- });
- },
- // 处方明细接口
- getOrderDetailById: function(params) {
- return request({
- url: `${BASE}/baseOrder/getOrderDetailById`,
- method: "get",
- params
- });
- },
- //获取设备统计
- countall: function(params) {
- return request({
- url: `${BASE}/baseDevice/countall`,
- method: "get",
- params
- });
- },
-
-
- warrayGetExceed: function(params) {
- return request({
- url: `${BASE}/baseWarray/getExceed`,
- method: "get",
- params
- });
- },
- warrayGetFlow: function(params) {
- return request({
- url: `${BASE}/baseWarray/getFlow`,
- method: "get",
- params
- });
- },
- warrayGetNetwork: function(params) {
- return request({
- url: `${BASE}/baseWarray/getNetwork`,
- method: "get",
- params
- });
- },
- warrayGetFault: function(params) {
- return request({
- url: `${BASE}/baseWarray/getFault`,
- method: "get",
- params
- });
- },
- warrayGetOffline: function(params) {
- return request({
- url: `${BASE}/baseWarray/getOffline`,
- method: "get",
- params
- });
- },
- warrayGetHumidity: function(params) {
- return request({
- url: `${BASE}/baseWarray/getHumidity`,
- method: "get",
- params
- });
- },
- warrayGetTemperature: function(params) {
- return request({
- url: `${BASE}/baseWarray/getTemperature`,
- method: "get",
- params
- });
- },
- //设备相关接口 end
- //订单相关接口 start
- orderList: function(params) {
- return request({
- url: `${BASE}/baseOrder/docFullInfo`,
- method: "get",
- params
- });
- },
- getOrderDetailListById: function(params) {
- return request({
- url: `${BASE}/baseOrder/getOrderDetailListById`,
- method: "get",
- params
- });
- },
- //设备相关接口 end
- //补货员列表
- replenishErList: function(params) {
- return request({
- url: `${BASE}/baseUser/docFullInfo`,
- method: "get",
- params
- });
- },
- // 分配设备(员工) userIds deviceIds isAll
- allotDevice: function(params) {
- return request({
- url: `${BASE}/baseUser/allotDevice`,
- method: "get",
- params
- });
- },
- // 检查订单并且返回药品库存信息
- checkOrderAndReturn: function(params) {
- return request({
- url: `${BASE}/open/noLogin/checkOrderAndReturn`,
- method: "get",
- params
- });
- },
- // 获取设备广告
- devinfoAdvList: function(params) {
- return request({
- url: `${BASE}/open/noLogin/devinfo`,
- method: "get",
- params
- });
- },
- // 根据用户id,查询设备在线统计
- countAllDevice: function(params) {
- return request({
- url: `${BASE}/baseDevice/getFirstPageInfo`,
- method: "get",
- params
- });
- },
- // 根据用户id,天数,查询设备取药次数
- getmedicine: function(params) {
- return request({
- url: `${BASE}/baseDevice/getShippingTypeByUserId`,
- method: "get",
- params
- });
- },
- // 根据用户id,天数,查询设备电子处方单次数
- getprescriptions: function(params) {
- return request({
- url: `${BASE}/baseDevice/getPrescriptionStaticsByUserId`,
- method: "get",
- params
- });
- },
- // 根据用户id,天数,查询销售额
- getechartsData: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDevicePriceStatisticsByUserId`,
- method: "get",
- params
- });
- },
- // 根据设备id查询设备轨道数据
- findMediicinecabinetInventoryByDeviceId: function(params) {
- return request({
- url: `${BASE}/baseDevice/findMediicinecabinetInventoryByDeviceId`,
- method: "get",
- params
- });
- },
- // 更换药品,或者设定药品
- updateMediicinecabineInventory: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateMediicinecabineInventory`,
- method: "post",
- data
- });
- },
- // 根据货道id获取单个货道详情
- selectMediicinecabineInventoryById: function(params) {
- return request({
- url: `${BASE}/baseDevice/selectMediicinecabineInventoryById`,
- method: "get",
- params
- });
- },
- // 矫正库存\\ 更新容量 \\下架药品
- updateMediicinecabineInventoryInfoById: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateMediicinecabineInventoryInfoById`,
- method: "post",
- data
- });
- },
- // 通过userId, 获取缺药列表
- getOutOfStockDeviceListByUserId: function(params) {
- return request({
- url: `${BASE}/baseDevice/getOutOfStockDeviceListByUserId`,
- method: "get",
- params
- });
- },
- // 通过userId 获取设备列表
- getDeviceListWithUserId: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDeviceListWithUserId`,
- method: "get",
- params
- });
- },
- openAndCloseCargo: function(data) {
- return request({
- url: `${BASE}/baseDevice/openAndCloseCargo`,
- method: "post",
- data
- });
- },
- checkOrderAndReturnOrderList: function(params, cancel) {
- return request({
- url: `${BASE}/open/noLogin/checkOrderAndReturnOrderList`,
- method: "get",
- params,
- cancelToken: cancel&&cancel.token
- });
- },
- // 更新出货状态
- updateOrderOutStatus: function(data) {
- return request({
- url: `${BASE}/open/noLogin/updateOrderOutStatus`,
- method: "post",
- data
- });
- },
- mergeAndSplitCargo: function(data) {
- return request({
- url: `${BASE}/baseDevice/mergeAndSplitCargo`,
- method: "post",
- data
- });
- },
-
- //设备温度湿度设置和控制
- updateTAndH: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateTAndH`,
- method: "post",
- data
- });
- },
- //更新设备名称
- updateDevEquName: function(data) {
- return request({
- url: `${BASE}/baseDevice/updateDevEquName`,
- method: "post",
- data
- });
- },
- // 获取设备携带不同类型的日志的二级树,补货日志、换货日志、上货日志
- // getDeviceInventoryRecordListWithUserId: function(params) {
- // return request({
- // url: `${BASE}/baseDevice/getDeviceInventoryRecordListWithUserId`,
- // method: "get",
- // params
- // });
- // },
- findOrgList(params){
- return request({
- url: `${BASE}/equipment/findOrgList`,
- method: 'get',
- params
- })
- },
- baseTownList: function(data) {
- return request({
- url: `${BASE}/baseTown/list`,
- method: "get",
- params: data
- });
- },
- //获取所有设备最后一次补货记录
- getDeviceInventoryRecordListWithUserId: function(data) {
- return request({
- url: `${BASE}/baseDevice/getDeviceInventoryRecordListWithUserId`,
- method: "get",
- params: data
- });
- },
- //获取单个设备的补货记录
- getDeviceInventoryRecordListByDeviceId: function(data) {
- return request({
- url: `${BASE}/baseDevice/getDeviceInventoryRecordListByDeviceId`,
- method: "get",
- params: data
- });
- },
- // 通过设备id获取该设备的缺药信息
- getOutOfStockInfoByDeviceWithPage: function(data) {
- return request({
- url: `${BASE}/baseDevice/getOutOfStockInfoByDeviceWithPage`,
- method: "get",
- params: data
- });
- },
- // 以药品为维度的药品库存统计
- getDrugInventoryCount: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDrugInventoryCount`,
- method: "get",
- params
- });
- },
- //根据用户和设备获取出货单详情
- getOutDetailByUserIdAndDeviceId: function(params) {
- return request({
- url: `${BASE}/baseOut/getOutDetailByUserIdAndDeviceId`,
- method: "get",
- params
- });
- },
- // 批量补货
- batchAddInventory: function(data) {
- return request({
- url: `${BASE}/baseDevice/batchAddInventory`,
- method: "post",
- data
- });
- },
-
- //设备出货日志
- getDeviceOrderInfoPage: function(params) {
- return request({
- url: `${BASE}/baseDevice/getDeviceOrderInfoPage`,
- method: "get",
- params
- });
- },
- queryUpListByDeviceIdAndStatus: function(params) {
- return request({
- url: `${BASE}/baseUp/queryUpListByDeviceIdAndStatus`,
- method: "get",
- params
- });
- },
- queryUpListByStatus: function(params) {
- return request({
- url: `${BASE}/baseUp/queryUpListByStatus`,
- method: "get",
- params
- });
- },
- updateStockUpStatus: function(data) {
- return request({
- url: `${BASE}/baseUp/updateStockUpStatus`,
- method: "post",
- data
- });
- },
-
- getSettlementInfoFirst: function(data) {
- return request({
- url: `${BASE}/baseOrder/open/getSettlementInfoFirst`,
- method: "get",
- params: data,
- });
- },
- getSettlementInfo: function(data) {
- return request({
- url: `${BASE}/baseOrder/open/getSettlementInfo`,
- method: "post",
- data
- });
- },
- getSettlementInfoList: function(data, cancel) {
- return request({
- url: `${BASE}/baseOrder/open/getSettlementInfoList`,
- method: "get",
- params: data,
- cancelToken: cancel&&cancel.token
- });
- },
- getSettlementInfoSecode: function(data) {
- return request({
- url: `${BASE}/baseOrder/open/getSettlementInfoSecode`,
- method: "post",
- data
- });
- },
- saveCheckHttpLog: function(data) {
- return request({
- url: `${BASE}/open/noLogin/saveCheckHttpLog`,
- method: "post",
- data
- });
- },
- hlwyyRecharge: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/hlwyyRecharge`,
- method: "get",
- params
- });
- },
- executeSickSettleMultiNew: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/executeSickSettleMultiNew`,
- method: "get",
- params
- });
- },
- hlwyyRechargePatient: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/patient/hlwyyRecharge`,
- method: "get",
- params
- });
- },
-
- setDeviceAttribute: function(params) {
- return request({
- url: `${BASE}/baseDevice/open/setDeviceAttribute`,
- method: "get",
- params
- });
- },
- getYjjBalance: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/getYjjBalance`,
- method: "get",
- params
- });
- },
- getYjjChargeList: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/getYjjChargeList`,
- method: "get",
- params
- });
- },
- readCardInfo: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/readCardInfo`,
- method: "get",
- params
- });
- },
- selectSettlementList: function(params) {
- return request({
- url: `${BASE}/baseOrder/open/selectSettlementList`,
- method: "get",
- params
- });
- },
-
- };
- export default service;
|