♻️ 删除待回单确认标签色死分支并订正注释
This commit is contained in:
@@ -483,7 +483,7 @@ export const config = {
|
|||||||
row.requireAccept === true ||
|
row.requireAccept === true ||
|
||||||
row.requireAccept === 1 ||
|
row.requireAccept === 1 ||
|
||||||
requiresDriverAcceptConfirmation(row);
|
requiresDriverAcceptConfirmation(row);
|
||||||
// 待回单确认由末位打卡产生,司机必然已接单,先于下面的接单校正返回
|
// 待回单确认由末位打卡产生,司机必然已接单
|
||||||
if (status === 'pending_return_confirm') return '待回单确认';
|
if (status === 'pending_return_confirm') return '待回单确认';
|
||||||
// 需司机接单且尚未接单 → 待执行(含库中仍为 running 的历史数据展示校正)
|
// 需司机接单且尚未接单 → 待执行(含库中仍为 running 的历史数据展示校正)
|
||||||
if (needAccept && !hasDriverAcceptRecord(row) && !terminalStatuses.includes(status)) {
|
if (needAccept && !hasDriverAcceptRecord(row) && !terminalStatuses.includes(status)) {
|
||||||
|
|||||||
@@ -4379,8 +4379,8 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
// 打卡记录编辑入口与运单编辑同权限:能改运单的人才能订正它的打卡流水。
|
// 打卡记录编辑入口与运单编辑同权限:能改运单的人才能订正它的打卡流水。
|
||||||
// 待回单确认的运单司机已无待打卡节点,本入口只做补录/编辑(提交固定 punched=true),
|
// 时间轴的「编辑打卡 / 补卡」链接是本页唯一写入入口,提交固定 punched=true。
|
||||||
// 补录与状态含义矛盾;取消打卡不在本页,关掉入口不影响退回进行中。
|
// 取消打卡不在本页;待回单确认的运单不显示该链接。
|
||||||
canEditWaybillPunchRecord() {
|
canEditWaybillPunchRecord() {
|
||||||
return (
|
return (
|
||||||
this.hasPermission(`${this.config.permission}_edit`) &&
|
this.hasPermission(`${this.config.permission}_edit`) &&
|
||||||
@@ -5126,7 +5126,7 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const status = this.statusValue(row);
|
const status = this.statusValue(row);
|
||||||
// 待回单确认的管理端强制出口:确认回单之外也能直接完成
|
// 待回单确认也可直接完成,不经确认回单
|
||||||
return status === 'processing' || status === 'running' || status === 'pending_return_confirm';
|
return status === 'processing' || status === 'running' || status === 'pending_return_confirm';
|
||||||
},
|
},
|
||||||
canConfirmReturn(row) {
|
canConfirmReturn(row) {
|
||||||
@@ -6568,9 +6568,6 @@ export default {
|
|||||||
if (status === 'completed') {
|
if (status === 'completed') {
|
||||||
return 'primary';
|
return 'primary';
|
||||||
}
|
}
|
||||||
if (['pending_return_confirm'].includes(status)) {
|
|
||||||
return 'warning';
|
|
||||||
}
|
|
||||||
return 'warning';
|
return 'warning';
|
||||||
},
|
},
|
||||||
normalizeRow(row, saveAsDraft = false) {
|
normalizeRow(row, saveAsDraft = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user