fix(wayBill): 修改打印失败处理逻辑并显示错误提示
feat(CoilSelector): 添加镀层质量列并优化钢卷选择逻辑 1. 在wayBill组件中,当打印失败时不再尝试下载PDF,而是直接显示错误提示 2. 在CoilSelector组件中添加镀层质量列 3. 优化钢卷选择逻辑,增加对未判级钢卷的限制条件
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user