operation-dataadminSupplierAuditor-controller.js 2.11 KB
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;