hospitalLicence-controller.js
3.45 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
var express = require('express');
var router = express.Router();
var client = require('../client');
var api = require('./api').url;
router.get('/', function(req, res, next) {
client.get(api.hospital_licence_search, { parameters: req.query }, function (data) { res.send(data); }, req.session);
});
router.get('/:id', function(req, res, next) {
client.get(api.hospital_licence_get, { path: { id: req.params.id } }, function (data) { res.send(data); }, req.session);
});
router.post('/save', function(req, res, next) {
client.post(api.hospital_licence_save, { data: req.body }, function (data) { res.send(data); }, req.session);
});
router.post('/delete', function(req, res, next) {
client.post(api.hospital_licence_delete, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 商品查询
router.post('/getMfSuppliergoods', function(req, res, next) {
client.post(api.hospital_enquiry_getMfSuppliergoods, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 获取所有区域
router.post('/getMfSupplierProvince', function(req, res, next) {
client.post(api.hospital_enquiry_getMfSupplierProvince, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理查询 状态
router.post('/getTrmedenquiryDealstate', function(req, res, next) {
client.post(api.hospital_enquiry_getTrmedenquiryDealstate, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 获取有关联的区域
router.post('/getMfSupplierProvinceRelation', function(req, res, next) {
client.post(api.hospital_enquiry_getMfSupplierProvinceRelation, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 单条询价
router.post('/addTrmedenquiry', function(req, res, next) {
client.post(api.hospital_enquiry_addTrmedenquiry, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 供应商查询
router.post('/getMfSuppliers', function(req, res, next) {
client.post(api.hospital_enquiry_getMfSuppliers, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管理 商品查询
router.post('/getMfmedgoods', function(req, res, next) {
client.post(api.hospital_enquiry_getMfmedgoods, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价管 发送
router.post('/addTrmedenquiryList', function(req, res, next) {
client.post(api.hospital_enquiry_addTrmedenquiryList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价记录查询
router.post('/getTrmedenquiryList', function(req, res, next) {
client.post(api.hospital_enquiry_getTrmedenquiryList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价记录 回复查询
router.post('/getTrmedenquiryrevertList', function(req, res, next) {
client.post(api.hospital_enquiry_getTrmedenquiryrevertList, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 询价记录 回复消息
router.post('/addTrmedenquiryrevert', function(req, res, next) {
client.post(api.hospital_enquiry_addTrmedenquiryrevert, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 消息记录 终止
router.post('/updDealState', function(req, res, next) {
client.post(api.hospital_enquiry_updDealState, { data: req.body }, function (data) { res.send(data); }, req.session);
});
module.exports = router;