...
|
...
|
@@ -10,6 +10,7 @@ const library = '../../../library'; |
|
|
const utils = '../../../utils';
|
|
|
const API = require(`${library}/api`).API;
|
|
|
const api = new API();
|
|
|
const list = require('./list');
|
|
|
const saleApi = require('./sale-api');
|
|
|
const outletsProcess = require('./outlets-handler');
|
|
|
const outletsApi = require('./outlets-api');
|
...
|
...
|
@@ -130,7 +131,7 @@ exports.getOutletsChannelData = (params) => { |
|
|
* @return {[type]}
|
|
|
*/
|
|
|
exports.getOutletsSpecialData = (params) => {
|
|
|
return Promise.all([
|
|
|
return api.all([
|
|
|
headerModel.requestHeaderData('outlets'),
|
|
|
outletsApi.getOutletsActivityOrigin({
|
|
|
id: params.id
|
...
|
...
|
@@ -143,6 +144,17 @@ exports.getOutletsSpecialData = (params) => { |
|
|
delete specialData.pageErr;
|
|
|
Object.assign(specialData,
|
|
|
outletsProcess.handleOutletsSpecilData(result[1].data[0]));
|
|
|
|
|
|
return api.all([
|
|
|
list.getSaleOthersData({
|
|
|
productPool: result[1].data[0].productPoolId,
|
|
|
saleType: 4
|
|
|
})
|
|
|
]).then(data => {
|
|
|
specialData.specialHead.count = data[0].totalCount;
|
|
|
Object.assign(specialData, data[0]);
|
|
|
return specialData;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return specialData;
|
...
|
...
|
|