feat(wms): 添加导出功能并增加导出时间参数
在coil基础面板中增加exportTimeBy参数用于导出时间控制 在退火性能页面添加导出按钮及导出功能
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
<el-button icon="el-icon-download" size="mini" @click="exportData">导出</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -121,6 +122,11 @@ export default {
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
exportData() {
|
||||
this.download('/wms/materialCoil/exportAnneal', {
|
||||
coilIds: this.detailList.map(item => item.coilId).join(','),
|
||||
}, `annealPerformance_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1189,6 +1189,7 @@ export default {
|
||||
if (this.showWaybill) {
|
||||
const { shipmentTime, ...query } = {
|
||||
...this.queryParams,
|
||||
exportTimeBy: true,
|
||||
selectType: this.querys.materialType === '原料' ? 'raw_material' : 'product',
|
||||
startTime: this.queryParams.shipmentTime?.[0],
|
||||
endTime: this.queryParams.shipmentTime?.[1],
|
||||
|
||||
Reference in New Issue
Block a user