rev : 子卷包装关系修改增加权限、成品库存增加库存状态筛选、出库管理加按照订单木箱规格导出excel
This commit is contained in:
@@ -216,6 +216,16 @@
|
||||
>
|
||||
质量报告回传
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-check"
|
||||
size="mini"
|
||||
@click="downdtl"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</crudOperation>
|
||||
<!--表格渲染-->
|
||||
<el-table
|
||||
@@ -511,6 +521,28 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
downdtl() {
|
||||
/* const data = {
|
||||
'bill_code': this.crud.query.bill_code,
|
||||
'buss_type': this.crud.query.buss_type,
|
||||
'io_type': this.crud.query.io_type,
|
||||
'is_upload': this.crud.query.is_upload,
|
||||
'pcsn': this.crud.query.pcsn,
|
||||
'material_code': this.crud.query.material_code,
|
||||
}*/
|
||||
if (this.crud.query.createTime !== undefined) {
|
||||
this.query.begin_time = this.crud.query.createTime[0]
|
||||
this.query.end_time = this.crud.query.createTime[1]
|
||||
}
|
||||
crud.downloadLoading = true
|
||||
download('/api/checkoutbill/download', this.crud.query).then(result => {
|
||||
debugger
|
||||
downloadFile(result, '发货', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user