提交
This commit is contained in:
1 parent
0e60b88cba
commit
87f7f6bf38
34 files changed
+18326
-6165
No files matched your search
@@ -205,6 +205,8 @@ const props = withDefaults(
|
||||
enforceSelfVehicleRequired?: boolean
|
||||
/** 承运商车辆:按主车/挂车注入必备槽位(行驶证、营运证) */
|
||||
enforceCarrierVehicleRequired?: boolean
|
||||
/** 人员:切换类型时隐藏非当前类型的必备槽(如 driver 不展示押运员从业资格证) */
|
||||
stripManagedCertNames?: readonly string[]
|
||||
}>(),
|
||||
{
|
||||
title: '证书',
|
||||
@@ -216,7 +218,8 @@ const props = withDefaults(
|
||||
requiredCertNames: () => [],
|
||||
requiredVehiclePart: PL_VEHICLE_CERT_PART_HEAD,
|
||||
enforceSelfVehicleRequired: false,
|
||||
enforceCarrierVehicleRequired: false
|
||||
enforceCarrierVehicleRequired: false,
|
||||
stripManagedCertNames: () => []
|
||||
}
|
||||
)
|
||||
|
||||
@@ -294,7 +297,8 @@ function syncRequiredSlots() {
|
||||
}
|
||||
if (props.requiredCertNames?.length) {
|
||||
certList.value = mergeCertListWithRequiredSlots(certList.value, props.requiredCertNames, {
|
||||
vehiclePart: props.requiredVehiclePart
|
||||
vehiclePart: props.requiredVehiclePart,
|
||||
stripManagedNames: props.stripManagedCertNames
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -319,6 +323,7 @@ watch(
|
||||
props.enforceSelfVehicleRequired,
|
||||
props.enforceCarrierVehicleRequired,
|
||||
props.requiredCertNames,
|
||||
props.stripManagedCertNames,
|
||||
props.trailerNo
|
||||
] as const,
|
||||
() => {
|
||||
|
||||
Reference in new issue
Block a user