fix: 外部WMS订单已打包判断补充 finished/fin,items 格式化新增字段
- checkOrderStatus 已打包判断增加 pack_status='fin' 与 status='finished' 避免已完成订单被重复回传打包 - _formatOrder items 增加 packing_requirements(下标4)、image_url(下标5)
This commit is contained in:
parent
b2fed22caa
commit
a1b934ea09
@ -140,6 +140,8 @@ class NewWms extends Service {
|
||||
String(item.plan_qty || 1),
|
||||
item.item_name || '',
|
||||
barcodes,
|
||||
item.packing_requirements || '',
|
||||
item.image_url || [],
|
||||
];
|
||||
});
|
||||
return {
|
||||
@ -182,7 +184,10 @@ class NewWms extends Service {
|
||||
const pack_status = (order && order.pack_status) || '';
|
||||
return {
|
||||
intercepted: status === 'cancel' || intercept_flag === 1,
|
||||
packed: pack_flag === 1 || pack_status === 'packed',
|
||||
// packed: 已打包/已完成,均视为无需重复回传
|
||||
// pack_status 取值:packed / fin(fin=打包完成)
|
||||
// status 取值:finished(订单整体已完成,含出库)
|
||||
packed: pack_flag === 1 || pack_status === 'packed' || pack_status === 'fin' || status === 'finished',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user