operation-dataadminSupplierAuditor-controller.js
2.11 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
var express = require('express');
var router = express.Router();
var client = require('../../client');
var api = require('../api').url;
//取得供应商人员信息列表
router.get('/listMfsupplierstaff', function(req, res, next) {
client.get(api.operation_approval_listMfsupplierstaff, { parameters: req.query}, function (data) { res.send(data); }, req.session);
});
// 医院 审核 人员信息列表
router.post('/listMfmedstaff', function(req, res, next) {
client.post(api.operation_approval_listMfmedstaff, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// router.get('/listMfmedstaff', function(req, res, next) {
// client.get(api.operation_approval_listMfmedstaff, { parameters: req.query}, function (data) { res.send(data); }, req.session);
// });
// 医院 审核 人员信息明细
router.get('/medregistryapproval/:id', function(req, res, next) {
client.get(api.operation_approval_medregistryapproval, { path: { id: req.params.id } }, function (data) { res.send(data); }, req.session);
});
router.get('/supplierregistryapproval/:id', function(req, res, next) {
client.get(api.operation_supplierregistryapproval, { path: { id: req.params.id } }, function (data) { res.send(data); }, req.session);
});
// 医院 审核 通过
router.post('/adoptMedRegist', function(req, res, next) {
client.post(api.operation_approval_adoptMedRegist, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 医院 审核 通过
router.post('/rejectMedRegist', function(req, res, next) {
client.post(api.operation_approval_rejectMedRegist, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 通过
router.post('/saveSupplierregistryapproval', function(req, res, next) {
client.post(api.operation_approval_saveSupplierregistryapproval, { data: req.body }, function (data) { res.send(data); }, req.session);
});
router.post('/updateSupplierregistryapproval', function(req, res, next) {
client.post(api.operation_approval_updateSupplierregistryapproval, { data: req.body }, function (data) { res.send(data); }, req.session);
});
module.exports = router;