feat(gltTicketOrder): 添加配送状态和相关字段支持
- 在订单模型中新增配送状态字段(deliveryStatus)、派送完成图片(sendEndImg)、收货确认时间和收货确认类型 - 更新骑手数据显示逻辑,增加配送时间和留档图片展示 - 修正骑手列表选择逻辑,使用userId替代id进行匹配 - 注释掉订单状态列显示以优化界面布局
This commit is contained in:
@@ -50,12 +50,20 @@ export interface GltTicketOrder {
|
|||||||
tenantId?: number;
|
tenantId?: number;
|
||||||
// 创建时间
|
// 创建时间
|
||||||
createTime?: string;
|
createTime?: string;
|
||||||
|
// 配送状态:10待配送、20配送中、30待客户确认、40已完成
|
||||||
|
deliveryStatus?: number;
|
||||||
// 派送时间(后端可能返回该字段用于派单/出库时间)
|
// 派送时间(后端可能返回该字段用于派单/出库时间)
|
||||||
sendTime?: string;
|
sendTime?: string;
|
||||||
// 送达时间
|
// 送达时间
|
||||||
arriveTime?: string;
|
arriveTime?: string;
|
||||||
// 签收时间
|
// 签收时间
|
||||||
signTime?: string;
|
signTime?: string;
|
||||||
|
// 派送完成图片
|
||||||
|
sendEndImg?: string;
|
||||||
|
// 收货确认图片
|
||||||
|
receiveConfirmTime?: string;
|
||||||
|
// 收货确认类型(10手动、20照片、30超时)
|
||||||
|
receiveConfirmType?: number;
|
||||||
// 修改时间
|
// 修改时间
|
||||||
updateTime?: string;
|
updateTime?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,8 @@
|
|||||||
<template v-if="column.key === 'riderName'">
|
<template v-if="column.key === 'riderName'">
|
||||||
<a-space>
|
<a-space>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="text-gray-400 flex justify-between">
|
<div class="text-gray-400">配送时间:{{ record.sendTime || '-'}}</div>
|
||||||
|
<div class="text-gray-400 flex justify-between" style="min-width: 224px">
|
||||||
配送人员:{{ record.riderName || '-' }}
|
配送人员:{{ record.riderName || '-' }}
|
||||||
<a-tag
|
<a-tag
|
||||||
color="blue"
|
color="blue"
|
||||||
@@ -55,6 +56,7 @@
|
|||||||
</a-tag>
|
</a-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-blue-400">联系电话:{{ record.riderPhone || '-' }}</div>
|
<div class="text-blue-400">联系电话:{{ record.riderPhone || '-' }}</div>
|
||||||
|
<div class="text-gray-400">留档图片:{{ record.sendEndImg || '-' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -202,11 +204,11 @@
|
|||||||
return (riderList.value || []).map((r) => {
|
return (riderList.value || []).map((r) => {
|
||||||
const label = `${r.realName || '-'}${r.mobile ? `(${r.mobile})` : ''}`;
|
const label = `${r.realName || '-'}${r.mobile ? `(${r.mobile})` : ''}`;
|
||||||
return {
|
return {
|
||||||
value: r.id,
|
value: r.userId,
|
||||||
label,
|
label,
|
||||||
disabled:
|
disabled:
|
||||||
r.status === 0 ||
|
r.status === 0 ||
|
||||||
(currentRiderId != null && String(r.id ?? '') === String(currentRiderId))
|
(currentRiderId != null && String(r.userId ?? '') === String(currentRiderId))
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -398,13 +400,13 @@
|
|||||||
width: 260,
|
width: 260,
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '状态',
|
// title: '状态',
|
||||||
dataIndex: 'status',
|
// dataIndex: 'status',
|
||||||
key: 'status',
|
// key: 'status',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 120
|
// width: 120
|
||||||
}
|
// }
|
||||||
// {
|
// {
|
||||||
// title: '操作',
|
// title: '操作',
|
||||||
// key: 'action',
|
// key: 'action',
|
||||||
|
|||||||
Reference in New Issue
Block a user