修改订单复核页面
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,
|
||||
isPrinted: this.detailInfo?.isPrinted
|
||||
};
|
||||
this.handlePrintOrder(item);
|
||||
// isReprint: 手动补打面单,在「不打印」模式下仍允许
|
||||
this.handlePrintOrder(item, { isReprint: true });
|
||||
},
|
||||
async autoPrintOrder(item) {
|
||||
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) {
|
||||
uni.showToast({ title: '打印数据无效', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
|
||||
// 不打印模式:禁止触发打印
|
||||
if (this.effectivePrintMode === 'noPrint') {
|
||||
// 不打印模式:仅允许手动「面单补打」,其余自动/列表打印仍禁止
|
||||
if (this.effectivePrintMode === 'noPrint' && !options?.isReprint) {
|
||||
uni.showToast({ title: '当前为不打印模式,无法打印', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user