relation-controller.js
6.35 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
var express = require('express');
var router = express.Router();
var client = require('../../client');
var api = require('../api').url;
router.post('/getMedList', function(req, res, next) {
client.post(api.hospital_content_getMedList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//获取医院信息列表
router.get('/hospital', function(req, res, next) {
client.get(api.supplier_relation_hospital_list,{ parameters: req.query },function (data) {
res.send(data);
}, req.session);
});
//获取配送商信息列表
router.get('/distribution', function(req, res, next) {
client.get(api.supplier_relation_distribution_list,{ parameters: req.query },function (data) {
res.send(data);
}, req.session);
});
//获取商品信息列表
router.post('/goods', function(req, res, next) {
client.post(api.supplier_relation_goods_list,{ data: req.body },function (data) {
res.send(data);
}, req.session);
});
//获取包装单位信息列表
router.get('/unit/:goodsguid', function(req, res, next) {
client.get(api.supplier_relation_unit_list,{ path: {goodsguid: req.params.goodsguid} },function (data) {
res.send(data);
}, req.session);
});
// 保存包装单位
router.post('/saveUnit', function(req, res, next) {
client.post(api.supplier_relation_unit_save, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 删除包装单位
router.get('/deleteUnit/:guid', function(req, res, next) {
client.get(api.supplier_relation_unit_delete, { path: { guid: req.params.guid } }, function (data) { res.send(data); }, req.session);
});
//保存供应关系
router.post('/saveRelation', function(req, res, next) {
client.post(api.supplier_relation_save, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//查询供应关系
router.get('/listRelation', function(req, res, next) {
client.get(api.supplier_relation_list,{ parameters: req.query },function (data) {
res.send(data);
},req.session);
});
//查询供应关系明细
router.get('/getRelation/:guid', function(req, res, next) {
client.get(api.supplier_relation_get, { path: { guid: req.params.guid } }, function (data) { res.send(data); }, req.session);
});
// 删除供应关系
router.get('/deleteRelation/:guid', function(req, res, next) {
client.get(api.supplier_relation_delete, { path: { guid: req.params.guid } }, function (data) { res.send(data); }, req.session);
});
// 提交供应关系
router.post('/submitRelation', function(req, res, next) {
client.post(api.supplier_relation_submit,{ data: req.body }, function (data) { res.send(data); }, req.session);
});
//查询客户清单
router.get('/listSupplierList', function(req, res, next) {
client.get(api.supplier_relation_qdlist,{ parameters: req.query },function (data) {
res.send(data);
},req.session);
});
//查询变更审核记录
router.get('/listVariation', function(req, res, next) {
client.get(api.supplier_variation_list,{ parameters: req.query },function (data) {
res.send(data);
},req.session);
});
//采购目录勾对 加载列表
router.post('/getMedList', function(req, res, next) {
client.post(api.hospital_content_getMedList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 加载商品列表
router.post('/getMedGoods', function(req, res, next) {
client.post(api.hospital_content_getMedGoods, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 显示已对码商品
router.post('/queryMatchedMedGoods', function(req, res, next) {
client.post(api.hospital_content_queryMatchedMedGoods, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 点击医院列表 加载供应商商品列表
router.post('/getDMResult', function(req, res, next) {
client.post(api.hospital_content_getDMResult, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 供应商单位下拉框
router.post('/getGoodsUnits', function(req, res, next) {
client.post(api.hospital_content_getGoodsUnits, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 业务员下拉框
router.post('/getUsers', function(req, res, next) {
client.post(api.hospital_content_getUsers, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 配对
router.post('/clickMatch', function(req, res, next) {
client.post(api.hospital_content_clickMatch, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 显示已对码商品 供应商
router.post('/queryMatchedSupGoods', function(req, res, next) {
client.post(api.hospital_content_queryMatchedSupGoods, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 显示已对码商品 供应商 取消配对
router.post('/cancelMatched', function(req, res, next) {
client.post(api.hospital_content_cancelMatched, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 提交
router.post('/submitMatched', function(req, res, next) {
client.post(api.hospital_content_submitMatched, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录清单
router.post('/getContentList', function(req, res, next) {
client.post(api.hospital_content_getContentList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录清单 人员下拉框
router.post('/getStaffList', function(req, res, next) {
client.post(api.hospital_content_getStaffList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录清单 修改
router.post('/updateUnitAndRatio', function(req, res, next) {
client.post(api.hospital_content_updateUnitAndRatio, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 重新选择
router.post('/abolishMaster', function(req, res, next) {
client.post(api.hospital_content_abolishMaster, { data: req.body }, function (data) { res.send(data); }, req.session);
});
//采购目录勾对 加载医院商品信息
router.post('/addMedGoodsToSupplier', function(req, res, next) {
client.post(api.supplier_content_addMedGoodsToSupplier, { data: req.body }, function (data) { res.send(data); }, req.session);
});
module.exports = router;