|
@@ -125,23 +125,23 @@ const setExpressNumber = (req, res, next) => { |
|
@@ -125,23 +125,23 @@ const setExpressNumber = (req, res, next) => { |
125
|
|
125
|
|
126
|
let uid = req.user.uid;
|
126
|
let uid = req.user.uid;
|
127
|
let id = req.body.id;
|
127
|
let id = req.body.id;
|
128
|
- let isChange = req.body.isChange === 'false'? false: true;
|
128
|
+ let isChange = req.body.isChange === 'false' ? false : true;
|
129
|
let expressId = req.body.expressId;
|
129
|
let expressId = req.body.expressId;
|
130
|
let expressNumber = req.body.expressNumber;
|
130
|
let expressNumber = req.body.expressNumber;
|
131
|
let expressCompany = req.body.expressCompany;
|
131
|
let expressCompany = req.body.expressCompany;
|
132
|
|
132
|
|
133
|
|
133
|
|
134
|
- console.log('uid'+uid);
|
|
|
135
|
- console.log('id'+id);
|
|
|
136
|
- console.log('isChange'+isChange);
|
|
|
137
|
- console.log('expressId'+expressId);
|
|
|
138
|
- console.log('expressNumber'+expressNumber);
|
|
|
139
|
- console.log('expressCompany'+expressCompany);
|
134
|
+ console.log('uid' + uid);
|
|
|
135
|
+ console.log('id' + id);
|
|
|
136
|
+ console.log('isChange' + isChange);
|
|
|
137
|
+ console.log('expressId' + expressId);
|
|
|
138
|
+ console.log('expressNumber' + expressNumber);
|
|
|
139
|
+ console.log('expressCompany' + expressCompany);
|
140
|
|
140
|
|
141
|
returnsModel.setExpressNumber(id, expressId, expressNumber, uid, expressCompany, isChange).then(result => {
|
141
|
returnsModel.setExpressNumber(id, expressId, expressNumber, uid, expressCompany, isChange).then(result => {
|
142
|
|
142
|
|
143
|
- if(res.code && res.code == 201){
|
|
|
144
|
- res.json({message:'请求失败'});
|
143
|
+ if (res.code && res.code == 201) {
|
|
|
144
|
+ res.json({message: '请求失败'});
|
145
|
}
|
145
|
}
|
146
|
|
146
|
|
147
|
if (id || expressId || expressNumber || uid || expressCompany || isChange) {
|
147
|
if (id || expressId || expressNumber || uid || expressCompany || isChange) {
|