Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
<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-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
<el-button icon="el-icon-download" size="mini" @click="exportData">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@@ -121,6 +122,11 @@ export default {
|
|||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
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) {
|
if (this.showWaybill) {
|
||||||
const { shipmentTime, ...query } = {
|
const { shipmentTime, ...query } = {
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
|
exportTimeBy: true,
|
||||||
selectType: this.querys.materialType === '原料' ? 'raw_material' : 'product',
|
selectType: this.querys.materialType === '原料' ? 'raw_material' : 'product',
|
||||||
startTime: this.queryParams.shipmentTime?.[0],
|
startTime: this.queryParams.shipmentTime?.[0],
|
||||||
endTime: this.queryParams.shipmentTime?.[1],
|
endTime: this.queryParams.shipmentTime?.[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user