operation-dictionary-controller.js 2.64 KB
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;