operation-dictionary-controller.js
2.64 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
var express = require('express');
var router = express.Router();
var client = require('../../client');
var api = require('../api').url;
//包装单位显示
router.get('/listMfsupplygoodsunit', function(req, res, next) {
client.get(api.operation_dictionary_dictionarypackList, { parameters: req.query }, function (data) { res.send(data); }, req.session);
});
//包装单位保存
router.post('/saveMfsupplygoodsunit', function(req, res, next) {
client.post(api.operation_dictionary_save, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// //基本资料显示
// router.get('/dictionaryList', function(req, res, next) {
// client.get(api.operation_dictionary_dictionaryList, { parameters: req.query }, function (data) { res.send(data); }, req.session);
// });
// //基本资料显示
// router.get('/dictionaryListAll', function(req, res, next) {
// client.get(api.operation_dictionary_dictionaryListAll, { parameters: req.query }, function (data) { res.send(data); }, req.session);
// });
// //基本资料保存
// router.post('/saves', function(req, res, next) {
// client.post(api.operation_dictionary_saves, { data: req.body }, function (data) { res.send(data); }, req.session);
// });
//证照显示
router.get('/listIndexlicense', function(req, res, next) {
client.get(api.operation_dictionary_listIndexlicense, { parameters: req.query }, function (data) { res.send(data); }, req.session);
});
//证照保存
router.post('/saveIndexlicense', function(req, res, next) {
client.post(api.operation_dictionary_savecard, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 删除医疗机构
router.post('/deleteIndexlicense/:code', function(req, res, next) {
client.post(api.operation_deleteIndexlicense, { path: { code: req.params.code } }, function (data) { res.send(data); }, req.session);
})
router.post('/updateIndexlicense', function(req, res, next) {
client.post(api.operation_dictionary_updateIndexlicense, { data: req.body }, function (data) { res.send(data); }, req.session);
});
// 对账单明细
router.post('/getManagemeds', function(req, res, next) {
client.post(api.operator_report_getManagemeds, { data: req.body }, function (data) { res.send(data); }, req.session);
});
router.post('/findReconciliationflow', function(req, res, next) {
client.post(api.operator_report_findReconciliationflow, { data: req.body }, function (data) { res.send(data); }, req.session);
});
router.post('/exportReconciliationflow', function(req, res, next) {
client.post(api.operator_report_exportReconciliationflow, { data: req.body }, function (data) { res.send(data); }, req.session);
});
module.exports = router;