...
|
...
|
@@ -23,7 +23,7 @@ |
|
|
</FilterItem>
|
|
|
<FilterItem>
|
|
|
<Button type="primary" @click="filterSearch">筛选</Button>
|
|
|
<Button type="primary">导出</Button>
|
|
|
<Button type="primary" @click="exportList">导出</Button>
|
|
|
<Button @click="clearFilter">清空条件</Button>
|
|
|
</FilterItem>
|
|
|
</LayoutFilter>
|
...
|
...
|
@@ -166,6 +166,39 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
},
|
|
|
exportList() {
|
|
|
const keysMap = {
|
|
|
bOutTime: 'bOutTime',
|
|
|
eOutTime: 'eOutTime',
|
|
|
productSkn: 'sknCode',
|
|
|
productSku: 'skuCode',
|
|
|
factoryCode: 'prodBarCode',
|
|
|
bCreateTime: 'bCreateTime',
|
|
|
eCreateTime: 'eCreateTime',
|
|
|
returnedSupplierId: 'reqNum'
|
|
|
};
|
|
|
const fields = this.filters;
|
|
|
|
|
|
let temp = [];
|
|
|
let params = {};
|
|
|
|
|
|
_.each(keysMap, (val, key) => {
|
|
|
params[key] = fields[val].model;
|
|
|
});
|
|
|
|
|
|
params = _.pickBy(params, (v) => {
|
|
|
return (v + '').length;
|
|
|
});
|
|
|
|
|
|
_.each(params, (val, key) => {
|
|
|
temp.push(`${key}=${val}`);
|
|
|
});
|
|
|
|
|
|
window.open(`/Api/erp/allotExportList?${temp.join('&')}`, '_blank');
|
|
|
},
|
|
|
exportOne(id) {
|
|
|
window.open(`/Api/erp/exportProductReturnList?returnedSupplierId=${id}`, '_blank');
|
|
|
}
|
|
|
},
|
|
|
components: {}
|
...
|
...
|
|