🐛 修复车务非必填-1展示,并完善总单调度与运单表单体验
调度页限制上一段到达后才可调度;司机候选项点击展开;车务多模块-1显示为空;同步配载/总单编辑与导入相关优化。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3009,6 +3009,8 @@ export default {
|
||||
this.cargoRows = (cargoRows.length ? cargoRows : this.buildCargoRows(this.selectedWaybillRows)).map(
|
||||
row => sanitizeCargoRow(row)
|
||||
);
|
||||
// 运单回填时 routeNodes 尚为空会清空发到货地,路线恢复后需再同步
|
||||
this.syncRouteAddressFields();
|
||||
},
|
||||
restoreRouteChangeRecords() {
|
||||
try {
|
||||
@@ -3644,7 +3646,8 @@ export default {
|
||||
try {
|
||||
const query = {
|
||||
...this.buildQueryParams(this.candidateQuery),
|
||||
businessStatus: 'pending',
|
||||
// 待执行(需接单未接)与进行中(无需接单或已接单)均可配载
|
||||
businessStatus: 'pending,running',
|
||||
onlyUnassignedLoading: 1,
|
||||
// 仅查当前账户所属组织及子组织下的运单
|
||||
allDept: 0,
|
||||
@@ -3764,7 +3767,10 @@ export default {
|
||||
this.routeNodes = this.buildRouteNodes(rows);
|
||||
}
|
||||
this.cargoRows = this.buildCargoRows(rows);
|
||||
this.syncRouteAddressFields();
|
||||
// 编辑回填阶段 routeNodes 尚未恢复时跳过,避免清空已有发到货地
|
||||
if (rebuildRoute || this.routeNodes.length) {
|
||||
this.syncRouteAddressFields();
|
||||
}
|
||||
},
|
||||
buildRouteNodes(rows) {
|
||||
const nodeMap = new Map();
|
||||
|
||||
Reference in New Issue
Block a user