董国庆
2026-06-18 48aa98dad18833cd05c3218bf7395e3556a35d31
改派勾选车辆不运行再次勾选
2个文件已修改
11 ■■■■■ 已修改文件
src/views/testDemo/testPlanManagement/components/AssignVehicleModal.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/testDemo/testPlanManagement/detail.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/testDemo/testPlanManagement/components/AssignVehicleModal.vue
@@ -19,6 +19,7 @@
  visible: boolean
  planId?: number | string
  orderId?: number | string | null
  currentVehicleId?: number | string | null
  actionType?: 'assign' | 'reassign'
}>()
@@ -199,7 +200,12 @@
}
const columns = computed<DataTableColumns<VehicleRow>>(() => [
  { type: 'selection', width: 60, align: 'center' },
  {
    type: 'selection',
    width: 60,
    align: 'center',
    disabled: (row) => !isAssignAction.value && props.currentVehicleId != null && String(row.id) === String(props.currentVehicleId)
  },
  {
    title: '序号',
    key: 'index',
src/views/testDemo/testPlanManagement/detail.vue
@@ -90,6 +90,7 @@
const isAssignVehicleModalVisible = ref(false)
const isManageTestVehicleModalVisible = ref(false)
const currentAssignOrderId = ref<number | string | null>(null)
const currentAssignVehicleId = ref<number | string | null>(null)
const currentAssignActionType = ref<'assign' | 'reassign'>('assign')
const pointOptions = ref<Array<{ label: string, value: string }>>([])
@@ -612,6 +613,7 @@
  if (action === '分派车辆' || action === '改派') {
    currentAssignOrderId.value = row.orderId
    currentAssignVehicleId.value = row.vehicleId ?? null
    currentAssignActionType.value = action === '改派' ? 'reassign' : 'assign'
    isAssignVehicleModalVisible.value = true
    return
@@ -898,6 +900,7 @@
      v-model:visible="isAssignVehicleModalVisible"
      :plan-id="currentPlanId"
      :order-id="currentAssignOrderId"
      :current-vehicle-id="currentAssignVehicleId"
      :action-type="currentAssignActionType"
      @success="handleAssignVehicleSuccess"
    />