修改订单复核页面
This commit is contained in:
parent
876e13c495
commit
522cca5259
@ -3483,7 +3483,8 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
|||||||
totalOrders: this.detailInfo?.totalOrders,
|
totalOrders: this.detailInfo?.totalOrders,
|
||||||
isPrinted: this.detailInfo?.isPrinted
|
isPrinted: this.detailInfo?.isPrinted
|
||||||
};
|
};
|
||||||
this.handlePrintOrder(item);
|
// isReprint: 手动补打面单,在「不打印」模式下仍允许
|
||||||
|
this.handlePrintOrder(item, { isReprint: true });
|
||||||
},
|
},
|
||||||
async autoPrintOrder(item) {
|
async autoPrintOrder(item) {
|
||||||
if (!item || !this.printStationId) return;
|
if (!item || !this.printStationId) return;
|
||||||
@ -3544,14 +3545,14 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue';
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async handlePrintOrder(item) {
|
async handlePrintOrder(item, options = {}) {
|
||||||
if (!item) {
|
if (!item) {
|
||||||
uni.showToast({ title: '打印数据无效', icon: 'none' });
|
uni.showToast({ title: '打印数据无效', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 不打印模式:禁止触发打印
|
// 不打印模式:仅允许手动「面单补打」,其余自动/列表打印仍禁止
|
||||||
if (this.effectivePrintMode === 'noPrint') {
|
if (this.effectivePrintMode === 'noPrint' && !options?.isReprint) {
|
||||||
uni.showToast({ title: '当前为不打印模式,无法打印', icon: 'none' });
|
uni.showToast({ title: '当前为不打印模式,无法打印', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user