refactor: 精简拦截/已打包通知文案,适配前端语音播报
- 订单拦截/已打包推送 msg 改为短文案('订单拦截'/'订单已打包') - 完整状态信息保留在日志中
This commit is contained in:
parent
638fb55608
commit
72bd5d21e9
@ -220,7 +220,7 @@ class Gzt extends Service {
|
||||
await this._packWmsOrder(gzt, order, sid);
|
||||
} else if (order.FLAG != 0 || order.ISLOCK == 1) {
|
||||
ctx.logger.info(`[scan] 订单-已拦截/取消,拒绝打包 | barcode=${barcode} | FLAG=${order.FLAG} | ISLOCK=${order.ISLOCK}`);
|
||||
this._push(sid, 'msg', '订单已拦截/取消,禁止打包');
|
||||
this._push(sid, 'msg', '订单拦截');
|
||||
} else if (order.PLSENDFLAG === 0) {
|
||||
ctx.logger.info(`[scan] 订单-未复核,拒绝打包 | barcode=${barcode} | PLSENDFLAG=${order.PLSENDFLAG}`);
|
||||
this._push(sid, 'msg', '订单未复核');
|
||||
@ -291,12 +291,12 @@ class Gzt extends Service {
|
||||
const check = this.ctx.service.newWms.checkOrderStatus(order);
|
||||
if (check.intercepted) {
|
||||
ctx.logger.info(`[scan] 外部WMS订单已拦截/取消,拒绝打包 | POSTNUM=${order.POSTNUM} | status=${order.status} | intercept_flag=${order.intercept_flag}`);
|
||||
this._push(sid, 'msg', '订单已拦截/取消,禁止打包');
|
||||
this._push(sid, 'msg', '订单拦截');
|
||||
return;
|
||||
}
|
||||
if (check.packed) {
|
||||
ctx.logger.info(`[scan] 外部WMS订单已打包,跳过回传 | POSTNUM=${order.POSTNUM} | pack_flag=${order.pack_flag} | pack_status=${order.pack_status}`);
|
||||
this._push(sid, 'msg', '订单已打包,请勿重复打包');
|
||||
this._push(sid, 'msg', '订单已打包');
|
||||
return;
|
||||
}
|
||||
// 设置工作台ID,使用 gzt 表的 other_id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user