supplier-controller.js
10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
var express = require('express');
var router = express.Router();
var Mock = require('mockjs');
var client = require('../../client');
var api = require('../api').url;
//star 11-23
//operator_medSupRelation_getHosList
router.post('/operator_medSupRelation_getHosList',function(req,res,next){
client.post(api.operator_medSupRelation_getHosList, {data:req.body }, function (data) {
res.send(data); }, req.session);
})
router.post('/operator_medsuprelation_getmedsuplist',function(req,res,next){
client.post(api.operator_medSupRelation_getMedSupList, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
// 医院 配送商查询
router.post('/selectMedDisList',function(req,res,next){
client.post(api.operator_medDisRelation_selectMedDisList, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
// 医院 配送商查询 配对
router.post('/pair',function(req,res,next){
client.post(api.operator_medDisRelation_pair, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
router.post('/operator_medSupRelation_getSupListByName',function(req,res,next){
client.post(api.operator_medSupRelation_getSupListByName, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
router.post('/operator_medSupRelation_supMatch',function(req,res,next){
client.post(api.operator_medSupRelation_supMatch, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
router.post('/operator_medSupRelation_supCancelMatch',function(req,res,next){
client.post(api.operator_medSupRelation_supCancelMatch, {data:req.body }, function (data) {
res.send(data);
}, req.session);
})
router.get('/public_act_getAll',function(req,res,next){
client.post(api.public_act_getAll, {data:req.query }, function (data) {
res.send(data);
}, req.session);
})
// 1供应商清单 医院 zxx
router.post('/supplygetHSList', function(req, res, next) {
client.post(api.operator_supply_getHSList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 2供应商清单 供应商详情 zxx
router.post('/supplyGoodsDetail', function(req, res, next) {
client.post(api.operator_supply_supplyGoodsDetail, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 3供应商清单 医院商品 zxx
router.get('/supplyRelationDetail/:id/:medguid', function(req, res, next) {
client.get(api.operator_supply_supplyRelationDetail, { path: { id: req.params.id,medguid: req.params.medguid}}, function (data) { res.send(data); }, req.session);
});
// 4供应商清单 商品详情 zxx
router.get('/goodsDetail/:id', function(req, res, next) {
client.get(api.operator_supply_GoodsDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//1 商品清单-zxx
router.post('/getHList', function(req, res, next) {
client.post(api.operator_medSupply_getHList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//2 商品清单-商品详细 zxx
router.get('/supplyProductDetail/:id/:medguid', function(req, res, next) {
client.get(api.operator_supply_productDetail, { path: { id: req.params.id,medguid: req.params.medguid}}, function (data) { res.send(data); }, req.session);
});
router.post('/supplyProductSave', function(req, res, next) {
client.post(api.hospital_supply_supplyProductSave, {data : req.body}, function (data) { res.send(data); }, req.session);
});
router.get('/supplyProductDisconnected/:id', function(req, res, next) {
client.get(api.hospital_supply_supplyProductDisconnected, { path: { id: req.params.id }}, function (data) { res.send(data); }, req.session);
});
router.get('/supplyProductInvalid/:id', function(req, res, next) {
client.get(api.hospital_supply_supplyProductInvalid, { path: { id: req.params.id }}, function (data) { res.send(data); }, req.session);
});
router.post('/deleteMedGoods', function(req, res, next) {
client.post(api.hospital_supply_deleteMedGoods, {data : req.body}, function (data) { res.send(data); }, req.session);
});
router.post('/variationHistory', function(req, res, next) {
client.post(api.hospital_supply_variationHistory, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//-------供应商商品详情
//供应商商品清单-专属物价资料
router.get('/priceDetail/:id', function(req, res, next) {
client.get(api.operator_supply_priceDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//供应商商品清单-产品说明书
router.get('/handBookDetail/:id', function(req, res, next) {
client.get(api.operator_supply_handBookDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//供应商商品清单-供应关系详细
router.get('/custDetail/:mid/:sid', function(req, res, next) {
client.get(api.operator_supply_custDetail, { path: { mid: req.params.mid, sid: req.params.sid}}, function (data) { res.send(data); }, req.session);
});
//供应商商品清单-医疗机构专属医疗器械注册证资料
router.get('/specpicDetail/:id', function(req, res, next) {
client.get(api.operator_supply_specpicDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//供应商商品清单-医疗机构专属经销授权书
router.get('/authDetail/:id', function(req, res, next) {
client.get(api.operator_supply_authDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//供应商商品清单-专属生产厂商
router.get('/factoryDetail/:id', function(req, res, next) {
client.get(api.operator_supply_factoryDetail, { path: { id: req.params.id}}, function (data) { res.send(data); }, req.session);
});
//终止供应关系
router.get('/stopRelationDetail', function(req, res, next) {
client.get(api.hospitalChangeSupplyRelation_stopRelationDetail+req.query.guid, {parameters: req.query}, function (data) { res.send(data); }, req.session);
});
// 供应商查询
router.post('/getMfsupplierList', function(req, res, next) {
client.post(api.operator_manageaccount_getMfsupplierList, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量指定供应关系
router.post('/insertMfsupplyrelation', function(req, res, next) {
client.post(api.operator_manageaccount_insertMfsupplyrelation, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量指定供应关系
router.post('/getMfmedList', function(req, res, next) {
client.post(api.operator_manageaccount_getMfmedList, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量生成供应关系 医院
router.post('/getManagemeds', function(req, res, next) {
client.post(api.operator_createRelation_getManagemeds, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量生成供应关系 清空
router.post('/abandon', function(req, res, next) {
client.post(api.operator_createRelation_abandon, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量生成供应关系 批量生成供应关系
router.post('/createRelation', function(req, res, next) {
client.post(api.operator_createRelation_createRelation, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//批量生成供应关系 查询
router.post('/init', function(req, res, next) {
client.post(api.operator_createRelation_init, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//发布需求信息查询 医院下拉列表的接口
router.post('/getMedList', function(req, res, next) {
client.post(api.operator_demandpublish_getMedList, {data : req.body}, function (data) { res.send(data); }, req.session);
});
//发布需求信息查询
router.post('/getDemandPublishList', function(req, res, next) {
client.post(api.operator_demandpublish_getDemandPublishList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//发布状态数量统计
router.post('/getFlagCount', function(req, res, next) {
client.post(api.operator_demandpublish_getFlagCount, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//需求状态数量统计
router.post('/getStateCount', function(req, res, next) {
client.post(api.operator_demandpublish_getStateCount, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//发布需求信息查询 手风琴
router.post('/getDetails', function(req, res, next) {
client.post(api.operator_demandpublish_getDetails, { data: req.body }, function (data) { res.send(data); }, req.session);
});
router.post('/getAreaList', function(req, res, next) {
client.post(api.supplier_demandpublish_getAreaList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 自动注册用户增长趋势
router.post('/getAutoRegistList', function(req, res, next) {
client.post(api.operator_report_getAutoRegistList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 自动注册用户增长趋势 列表
router.post('/getRegistSupplierList', function(req, res, next) {
client.post(api.operator_report_getRegistSupplierList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 自动注册用户增长趋势 数字统计
router.post('/getRegistSum', function(req, res, next) {
client.post(api.operator_report_getRegistSum, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 获取需求信息 进页面查询上一次导入但是未发布的数据
router.post('/getmfdemandpublist', function(req, res, next) {
client.post(api.operator_mfdemandpublish_getmfdemandpublist, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 获取需求信息 删除
router.post('/delMfdemandpublish', function(req, res, next) {
client.post(api.operator_mfdemandpublish_delMfdemandpublish, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 获取需求信息 上传图片
router.post('/addPictcontent', function(req, res, next) {
client.post(api.operator_mfdemandpublish_addPictcontent, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 获取需求信息 发布
router.post('/commitmfdemandpublist', function(req, res, next) {
client.post(api.operator_mfdemandpublish_commitmfdemandpublist, { data: req.body }, function (data) { res.send(data); }, req.session);
});
module.exports=router;