fix(wayBill): 修改打印失败处理逻辑并显示错误提示

feat(CoilSelector): 添加镀层质量列并优化钢卷选择逻辑

1. 在wayBill组件中,当打印失败时不再尝试下载PDF,而是直接显示错误提示
2. 在CoilSelector组件中添加镀层质量列
3. 优化钢卷选择逻辑,增加对未判级钢卷的限制条件
This commit is contained in:
2026-04-24 14:31:20 +08:00
parent a1b2a3b6bb
commit 7803c38c27
3 changed files with 35 additions and 17 deletions

View File

@@ -478,12 +478,13 @@ export default {
const win = window.open(url, '_blank');
if (!win) {
const a = document.createElement('a');
a.href = url;
a.download = `发货单_${this.waybill.waybillName || this.waybill.waybillNo || new Date().getTime()}.pdf`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
this.$message.error('打印失败,请检查浏览器设置');
// const a = document.createElement('a');
// a.href = url;
// a.download = `发货单_${this.waybill.waybillName || this.waybill.waybillNo || new Date().getTime()}.pdf`;
// document.body.appendChild(a);
// a.click();
// document.body.removeChild(a);
}
},
async exportExcelByXLSX() {

View File

@@ -478,12 +478,13 @@ export default {
const win = window.open(url, '_blank');
if (!win) {
const a = document.createElement('a');
a.href = url;
a.download = `发货单_${this.waybill.waybillName || this.waybill.waybillNo || new Date().getTime()}.pdf`;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
this.$message.error('打印失败,请检查浏览器设置');
// const a = document.createElement('a');
// a.href = url;
// a.download = `发货单_${this.waybill.waybillName || this.waybill.waybillNo || new Date().getTime()}.pdf`;
// document.body.appendChild(a);
// a.click();
// document.body.removeChild(a);
}
},
async exportExcelByXLSX() {