|
@@ -232,14 +232,11 @@ class OrderService extends CrudService {
|
|
|
// 检查是否全到达了
|
|
|
const all_arrive = splitList.every(e => e.status === '-1');
|
|
|
if (all_arrive) return '所有货物全部到达';
|
|
|
- // 检查是否有未发货
|
|
|
- const has_not_send = splitList.some(e => e.status === '0');
|
|
|
// 检查是否有发货的
|
|
|
const is_send = splitList.some(e => e.status === '1');
|
|
|
// 检查是否有到达的
|
|
|
const is_arrive = splitList.some(e => e.status === '-1');
|
|
|
const word = [];
|
|
|
- if (has_not_send) word.push('有未发出的货物');
|
|
|
if (is_send)word.push('部分货物已发出');
|
|
|
if (is_arrive)word.push('部分货物已到达');
|
|
|
if (word.length > 0) return word.join(';');
|