rev : 子卷包装关系修改增加权限、成品库存增加库存状态筛选、出库管理加按照订单木箱规格导出excel

This commit is contained in:
2023-06-02 18:11:41 +08:00
parent e046519a80
commit f76b6c3e0e
9 changed files with 274 additions and 28 deletions

View File

@@ -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
})
}
}
}