✨ 运单列表支持待回单确认状态

This commit is contained in:
2026-10-22 13:32:35 +08:00
parent 6384e80758
commit d67cf55491
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -42,6 +42,7 @@ export const waybillStatusOptions = [
{ label: '草稿', value: 'draft' },
{ label: '待执行', value: 'pending' },
{ label: '进行中', value: 'running' },
{ label: '待回单确认', value: 'pending_return_confirm' },
{ label: '已完成', value: 'completed' },
{ label: '已取消', value: 'cancelled' },
];
@@ -5127,7 +5127,7 @@ export default {
this.hasPermission(`${this.config.permission}_complete`) &&
!this.readonlyScope &&
!row.readonly &&
this.statusValue(row) === 'running'
this.statusValue(row) === 'pending_return_confirm'
);
},
canMaintainMileage(row) {
@@ -6560,6 +6560,9 @@ export default {
if (status === 'completed') {
return 'primary';
}
if (['pending_return_confirm'].includes(status)) {
return 'warning';
}
return 'warning';
},
normalizeRow(row, saveAsDraft = false) {