fix: 外部WMS已打包判断不再依据 status='finished'

- 移除 checkOrderStatus 中 status='finished' 作为已打包的条件
- 已打包仅以打包状态判断:pack_flag=1 / pack_status='packed' / 'fin'
- 避免出库完成但未打包(pack_status=none)的订单被误判拦截
This commit is contained in:
liufumingren 2026-08-31 00:50:32 +08:00
parent a1b934ea09
commit 03b42b4874

View File

@ -184,10 +184,9 @@ class NewWms extends Service {
const pack_status = (order && order.pack_status) || '';
return {
intercepted: status === 'cancel' || intercept_flag === 1,
// packed: 已打包/已完成,均视为无需重复回传
// pack_status 取值:packed / fin(fin=打包完成)
// status 取值:finished(订单整体已完成,含出库)
packed: pack_flag === 1 || pack_status === 'packed' || pack_status === 'fin' || status === 'finished',
// packed: 仅以打包状态判断(pack_status 取值:packed / fin=打包完成)
// 注意:status='finished' 不代表已打包(如 pack_status=none 的出库完成单),不作为已打包依据
packed: pack_flag === 1 || pack_status === 'packed' || pack_status === 'fin',
};
}
}