...
|
...
|
@@ -34,13 +34,12 @@ const refund = { |
|
|
}).catch(next);
|
|
|
},
|
|
|
logistics(req, res, next) {
|
|
|
const applyid = req.query.applyid;
|
|
|
|
|
|
refundModel.getExpressCompany().then(result => {
|
|
|
res.render('logistics', {
|
|
|
module: 'me',
|
|
|
page: 'logistics',
|
|
|
applyid: applyid,
|
|
|
applyid: req.query.applyid,
|
|
|
type: req.query.type,
|
|
|
company_list: result ? JSON.stringify(result.data) : ''
|
|
|
});
|
|
|
}).catch(next);
|
...
|
...
|
@@ -48,11 +47,13 @@ const refund = { |
|
|
saveLogistics(req, res, next) {
|
|
|
const uid = req.user.uid;
|
|
|
const applyid = req.body.applyid;
|
|
|
const expressCompany = req.body.expressCompany;
|
|
|
const expressId = req.body.expressId;
|
|
|
const expressNumber = req.body.expressNumber;
|
|
|
|
|
|
refundModel.setexpress(applyid, uid, expressCompany, expressId, expressNumber).then(data => {
|
|
|
refundModel.setexpress(applyid, uid, {
|
|
|
type: req.body.type,
|
|
|
expressCompany: req.body.expressCompany,
|
|
|
expressNumber: req.body.expressNumber,
|
|
|
expressId: req.body.expressId
|
|
|
}).then(data => {
|
|
|
return res.json(data);
|
|
|
}).catch(next);
|
|
|
},
|
...
|
...
|
|