|
|
|
|
@ -54,6 +54,12 @@
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderDeviceSpec')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.factoryEntryDate')" prop="factoryEntryDate">
|
|
|
|
|
<el-date-picker v-model="formData.factoryEntryDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderFactoryEntryDate')" class="!w-full" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col v-if="isScheduledEnabled" :span="12">
|
|
|
|
|
<el-form-item
|
|
|
|
|
:label="t('EquipmentManagement.EquipmentLedger.ratedCapacity')"
|
|
|
|
|
@ -76,18 +82,22 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.productionDate')" prop="productionDate">
|
|
|
|
|
<!-- <el-form-item :label="t('EquipmentManagement.EquipmentLedger.productionDate')" prop="productionDate">
|
|
|
|
|
<el-date-picker v-model="formData.productionDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderProductionDate')" class="!w-full" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>-->
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.outgoingTime')" prop="outgoingTime">
|
|
|
|
|
<el-date-picker v-model="formData.outgoingTime" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderOutgoingTime')" class="!w-full" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.factoryEntryDate')" prop="factoryEntryDate">
|
|
|
|
|
<el-date-picker v-model="formData.factoryEntryDate" type="date" value-format="YYYY-MM-DD"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderFactoryEntryDate')" class="!w-full" />
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.deviceBrand')" prop="deviceBrand">
|
|
|
|
|
<el-input v-model="formData.deviceBrand"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderDeviceBrand')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
@ -108,15 +118,23 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.sn')" prop="sn">
|
|
|
|
|
<el-input v-model="formData.sn"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderSn')" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.criticalComponent')" prop="componentIds">
|
|
|
|
|
<el-input :model-value="criticalComponentDisplay" readonly clearable class="device-ledger-selection-input"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentLedger.placeholderComponentIds')"
|
|
|
|
|
@clear="clearCriticalComponent" @click="openCriticalComponentDialog" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentLedger.sparePart')" prop="beijianIds">
|
|
|
|
|
<el-input :model-value="beijianDisplay" readonly clearable class="device-ledger-selection-input"
|
|
|
|
|
@ -218,71 +236,48 @@
|
|
|
|
|
<el-button type="primary" :loading="formLoading" :disabled="fileUploading" @click="submitForm">{{ t('common.save') }}</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<el-dialog v-model="criticalComponentDialogVisible" :title="t('EquipmentManagement.EquipmentLedger.gjTitle')" width="1200px" class="device-ledger-transfer-dialog"
|
|
|
|
|
append-to-body>
|
|
|
|
|
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" min-label-width="68px"
|
|
|
|
|
style="margin-bottom: 10px">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.code')" prop="code">
|
|
|
|
|
<el-input v-model="queryParams.code" :placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderCode')"
|
|
|
|
|
clearable @keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.name')" prop="name">
|
|
|
|
|
<el-input v-model="queryParams.name" :placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderName')"
|
|
|
|
|
clearable @keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.description')" prop="description">
|
|
|
|
|
<el-input v-model="queryParams.description"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderDescription')" clearable
|
|
|
|
|
@keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button @click="handleQuery">
|
|
|
|
|
<Icon icon="ep:search" class="mr-5px" />
|
|
|
|
|
{{ t('common.query') }}
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button @click="resetQuery">
|
|
|
|
|
<Icon icon="ep:refresh" class="mr-5px" />
|
|
|
|
|
{{ t('common.reset') }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<ContentWrap>
|
|
|
|
|
<el-table ref="multipleTableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" class="no-select-all"
|
|
|
|
|
@selection-change="handleSelectionChange" @select="handleSelect" @select-all="handleSelectAll" row-key="id">
|
|
|
|
|
<el-table-column type="selection" width="55" :reserve-selection="true" />
|
|
|
|
|
<el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.code')" align="center" prop="code"
|
|
|
|
|
min-width="140" sortable />
|
|
|
|
|
<el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.name')" align="center" prop="name"
|
|
|
|
|
min-width="140" sortable />
|
|
|
|
|
<el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.description')" align="center"
|
|
|
|
|
prop="description" min-width="180" />
|
|
|
|
|
<!-- <el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.count')" align="center" prop="count" min-width="180">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-input-number
|
|
|
|
|
v-model="scope.row.count"
|
|
|
|
|
:min="0"
|
|
|
|
|
:precision="0"
|
|
|
|
|
controls-position="right"
|
|
|
|
|
class="!w-full"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>-->
|
|
|
|
|
<el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.remark')" align="center" prop="remark"
|
|
|
|
|
min-width="180" />
|
|
|
|
|
<el-table-column :label="t('EquipmentManagement.EquipmentKeyItems.createTime')" align="center" prop="createTime"
|
|
|
|
|
:formatter="dateFormatter" width="180" sortable />
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<Pagination :total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize"
|
|
|
|
|
@pagination="getList" />
|
|
|
|
|
|
|
|
|
|
</ContentWrap>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<el-button @click="criticalComponentDialogVisible = false">{{ t('common.cancel') }}</el-button>
|
|
|
|
|
<el-button type="primary" @click="confirmCriticalComponentDialog">{{ t('common.ok') }}</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 关键件弹出框 -->
|
|
|
|
|
<TableSelectDialog
|
|
|
|
|
ref="criticalComponentSelectDialogRef"
|
|
|
|
|
:title="t('EquipmentManagement.EquipmentLedger.gjTitle')"
|
|
|
|
|
:columns="criticalComponentColumns"
|
|
|
|
|
:fetch-api="fetchCriticalComponentPage"
|
|
|
|
|
:query-params="queryParams"
|
|
|
|
|
:default-selected-keys="ids"
|
|
|
|
|
row-key="id"
|
|
|
|
|
@confirm="handleCriticalComponentSelectConfirm"
|
|
|
|
|
>
|
|
|
|
|
<template #header>
|
|
|
|
|
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" min-label-width="68px"
|
|
|
|
|
style="margin-bottom: 10px">
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.code')" prop="code">
|
|
|
|
|
<el-input v-model="queryParams.code" :placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderCode')"
|
|
|
|
|
clearable @keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.name')" prop="name">
|
|
|
|
|
<el-input v-model="queryParams.name" :placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderName')"
|
|
|
|
|
clearable @keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item :label="t('EquipmentManagement.EquipmentKeyItems.description')" prop="description">
|
|
|
|
|
<el-input v-model="queryParams.description"
|
|
|
|
|
:placeholder="t('EquipmentManagement.EquipmentKeyItems.placeholderDescription')" clearable
|
|
|
|
|
@keyup.enter="handleQuery" class="!w-240px" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button @click="handleQuery">
|
|
|
|
|
<Icon icon="ep:search" class="mr-5px" />
|
|
|
|
|
{{ t('common.query') }}
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button @click="resetQuery">
|
|
|
|
|
<Icon icon="ep:refresh" class="mr-5px" />
|
|
|
|
|
{{ t('common.reset') }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
</template>
|
|
|
|
|
</TableSelectDialog>
|
|
|
|
|
<!-- 备件弹出框 -->
|
|
|
|
|
<el-dialog v-model="beijianDialogVisible" :title="t('EquipmentManagement.EquipmentLedger.bjTitle')" width="860px" class="device-ledger-transfer-dialog"
|
|
|
|
|
append-to-body>
|
|
|
|
|
<!-- <div class="device-ledger-transfer">
|
|
|
|
|
@ -381,7 +376,7 @@ const actionBarStyle = reactive({
|
|
|
|
|
width: '100%'
|
|
|
|
|
})
|
|
|
|
|
let actionBarObserver: ResizeObserver | undefined
|
|
|
|
|
|
|
|
|
|
const criticalComponentSelectDialogRef = ref(false)
|
|
|
|
|
const updateActionBarRect = () => {
|
|
|
|
|
const rect = detailPageRef.value?.getBoundingClientRect()
|
|
|
|
|
if (!rect) return
|
|
|
|
|
@ -623,14 +618,19 @@ const bjToggleSelection = () => {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const selectedDeviceRows = ref<any[]>([])
|
|
|
|
|
const ids = ref<number[]>([])
|
|
|
|
|
const bjIds = ref<number[]>([])
|
|
|
|
|
const openCriticalComponentDialog = () => {
|
|
|
|
|
criticalComponentDraft.value = [...(formData.value.componentIds ?? [])]
|
|
|
|
|
/* criticalComponentDraft.value = [...(formData.value.componentIds ?? [])]
|
|
|
|
|
criticalComponentDialogVisible.value = true
|
|
|
|
|
ids.value = [...(formData.value.componentIds ?? [])]
|
|
|
|
|
setDefaultSelections()
|
|
|
|
|
setDefaultSelections()*/
|
|
|
|
|
|
|
|
|
|
const rows = selectedDeviceRows.value.map((item) => ({ ...item, id: Number(item.id) }))
|
|
|
|
|
criticalComponentSelectDialogRef.value?.open(rows)
|
|
|
|
|
let initIds= formData.value.machineId!=undefined?formData.value.machineId.toString().split(","):[]
|
|
|
|
|
ids.value=initIds.map((id) => Number(id))
|
|
|
|
|
}
|
|
|
|
|
const openBeijianDialog = () => {
|
|
|
|
|
beijianDraft.value = [...(formData.value.beijianIds ?? [])]
|
|
|
|
|
@ -709,6 +709,8 @@ const initFormData = () => ({
|
|
|
|
|
deviceManagerIds: [] as number[],
|
|
|
|
|
productionDate: undefined,
|
|
|
|
|
factoryEntryDate: undefined,
|
|
|
|
|
sn: undefined,
|
|
|
|
|
outgoingTime: undefined,
|
|
|
|
|
remark: undefined,
|
|
|
|
|
componentIds: [] as number[],
|
|
|
|
|
beijianIds: [] as number[],
|
|
|
|
|
@ -765,7 +767,15 @@ const beijianOptions = ref<SelectionOption[]>([])
|
|
|
|
|
const savedCriticalComponentOptions = ref<SelectionOption[]>([])
|
|
|
|
|
const savedBeijianOptions = ref<SelectionOption[]>([])
|
|
|
|
|
const editableCriticalComponentRows = ref<any[]>([])
|
|
|
|
|
|
|
|
|
|
const getCriticalComponentId = (item: any): number | undefined =>
|
|
|
|
|
normalizeNumberish(
|
|
|
|
|
item?.componentId ??
|
|
|
|
|
item?.criticalComponentId ??
|
|
|
|
|
item?.criticalId ??
|
|
|
|
|
item?.criticalComponent?.id ??
|
|
|
|
|
item?.component?.id ??
|
|
|
|
|
item?.id
|
|
|
|
|
)
|
|
|
|
|
const buildCriticalComponentOptions = (items: any[] = []): SelectionOption[] =>
|
|
|
|
|
(items ?? [])
|
|
|
|
|
.map((item: any) => {
|
|
|
|
|
@ -888,6 +898,8 @@ const buildPrintData = () => {
|
|
|
|
|
deviceSpec: formData.value.deviceSpec,
|
|
|
|
|
deviceBrand: formData.value.deviceBrand,
|
|
|
|
|
deviceModel: formData.value.deviceModel,
|
|
|
|
|
sn: formData.value.sn,
|
|
|
|
|
outgoingTime: formData.value.outgoingTime,
|
|
|
|
|
deviceLocation: formData.value.deviceLocation,
|
|
|
|
|
remark: formData.value.remark,
|
|
|
|
|
qrcodeUrl: formData.value.qrcodeUrl
|
|
|
|
|
@ -941,6 +953,7 @@ const bindFormData = (detail: DeviceLedgerVO) => {
|
|
|
|
|
deviceLine: normalizeNumberish((detail as any)?.deviceLine),
|
|
|
|
|
deviceManagerIds: parseIdsValue((detail as any)?.deviceManager),
|
|
|
|
|
productionDate: normalizeYmd((detail as any)?.productionDate),
|
|
|
|
|
outgoingTime: normalizeYmd((formData.value as any).outgoingTime),
|
|
|
|
|
factoryEntryDate: normalizeYmd((detail as any)?.factoryEntryDate),
|
|
|
|
|
componentIds: parseIdsValue((detail as any)?.componentId),
|
|
|
|
|
beijianIds: parseIdsValue((detail as any)?.beijianId),
|
|
|
|
|
@ -975,6 +988,7 @@ const buildSubmitData = () => {
|
|
|
|
|
deviceType: normalizeNumberish(formData.value.deviceType),
|
|
|
|
|
deviceLine: normalizeNumberish((formData.value as any).deviceLine),
|
|
|
|
|
productionDate: normalizeYmd(formData.value.productionDate),
|
|
|
|
|
outgoingTime: normalizeYmd((formData.value as any).outgoingTime),
|
|
|
|
|
factoryEntryDate: normalizeYmd(formData.value.factoryEntryDate),
|
|
|
|
|
deviceManager: formData.value.deviceManagerIds?.length ? formData.value.deviceManagerIds.join(',') : undefined,
|
|
|
|
|
componentId: formData.value.componentIds?.length ? formData.value.componentIds.join(',') : undefined,
|
|
|
|
|
@ -1091,6 +1105,7 @@ async function initForm() {
|
|
|
|
|
deviceLine: normalizeNumberish((detail as any)?.deviceLine),
|
|
|
|
|
deviceManagerIds: parseIdsValue((detail as any)?.deviceManager),
|
|
|
|
|
productionDate: normalizeYmd((detail as any)?.productionDate),
|
|
|
|
|
outgoingTime: normalizeYmd((detail as any)?.outgoingTime),
|
|
|
|
|
factoryEntryDate: normalizeYmd((detail as any)?.factoryEntryDate),
|
|
|
|
|
componentIds: parseIdsValue((detail as any)?.componentId),
|
|
|
|
|
beijianIds: parseIdsValue((detail as any)?.beijianId),
|
|
|
|
|
@ -1114,6 +1129,80 @@ async function getDetailList() {
|
|
|
|
|
detailLoading.value = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const criticalComponentColumns = computed(() => [
|
|
|
|
|
{ label: t('EquipmentManagement.EquipmentKeyItems.code'), prop: 'code', minWidth: 140 },
|
|
|
|
|
{ label: t('EquipmentManagement.EquipmentKeyItems.name'), prop: 'name', minWidth: 140 },
|
|
|
|
|
{ label: t('EquipmentManagement.EquipmentKeyItems.description'), prop: 'description', minWidth: 180 },
|
|
|
|
|
{ label: t('EquipmentManagement.EquipmentKeyItems.remark'), prop: 'remark', minWidth: 180 },
|
|
|
|
|
{ label: t('EquipmentManagement.EquipmentKeyItems.createTime'), prop: 'createTime', width: 180 }
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
const fetchCriticalComponentPage = async (params: Record<string, any>) => {
|
|
|
|
|
return await CriticalComponentApi.getCriticalComponentPage(params)
|
|
|
|
|
}
|
|
|
|
|
const handleCriticalComponentSelectConfirm = ({ ids: selectedIds, rows }: { ids: Array<number | string>; rows: any[] }) => {
|
|
|
|
|
/* selectedRows.value = rows
|
|
|
|
|
savedCriticalComponentOptions.value = mergeSelectionOptions(savedCriticalComponentOptions.value, buildCriticalComponentOptions(rows))
|
|
|
|
|
const selected = filterValidSelectedIds(
|
|
|
|
|
[...(formData.value.componentIds ?? []), ...selectedIds],
|
|
|
|
|
mergeSelectionOptions(savedCriticalComponentOptions.value, criticalComponentOptions.value)
|
|
|
|
|
)
|
|
|
|
|
formData.value.componentIds = selected
|
|
|
|
|
appendSelectedCriticalComponentRows(selected)*/
|
|
|
|
|
formData.value.devices = payload.rows
|
|
|
|
|
.map((item) => {
|
|
|
|
|
const id = Number(item.id)
|
|
|
|
|
if (!Number.isFinite(id)) return undefined
|
|
|
|
|
return {
|
|
|
|
|
id,
|
|
|
|
|
name: item.deviceName || item.name || item.code || `设备ID:${id}`
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.filter((item): item is { id: number; name: string } => Boolean(item))
|
|
|
|
|
selectedDeviceRows.value = payload.rows
|
|
|
|
|
formData.value.machineId = payload.ids.join(',')
|
|
|
|
|
ids.value = payload.ids.map((id) => Number(id))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const buildCriticalComponentRowById = (id: number) => {
|
|
|
|
|
const row = selectedRows.value.find((item: any) => normalizeNumberish(item.id) === id)
|
|
|
|
|
if (row) {
|
|
|
|
|
return {
|
|
|
|
|
...row,
|
|
|
|
|
id,
|
|
|
|
|
count: normalizeNumberish(row?.count) ?? 0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const option = mergeSelectionOptions(savedCriticalComponentOptions.value, criticalComponentOptions.value).find((item) => item.value === id)
|
|
|
|
|
const label = option?.label ?? String(id)
|
|
|
|
|
const [code, ...nameParts] = label.split('-')
|
|
|
|
|
return {
|
|
|
|
|
id,
|
|
|
|
|
code: nameParts.length ? code : '',
|
|
|
|
|
name: nameParts.length ? nameParts.join('-') : label,
|
|
|
|
|
count: 0,
|
|
|
|
|
description: '',
|
|
|
|
|
remark: '',
|
|
|
|
|
createTime: undefined
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const appendSelectedCriticalComponentRows = (selectedIds: number[]) => {
|
|
|
|
|
const existingIds = new Set(
|
|
|
|
|
editableCriticalComponentRows.value
|
|
|
|
|
.map((row: any) => getCriticalComponentId(row))
|
|
|
|
|
.filter((id): id is number => id !== undefined)
|
|
|
|
|
)
|
|
|
|
|
const rowsToAppend = selectedIds
|
|
|
|
|
.filter((id) => !existingIds.has(id))
|
|
|
|
|
.map((id) => buildCriticalComponentRowById(id))
|
|
|
|
|
if (rowsToAppend.length) {
|
|
|
|
|
editableCriticalComponentRows.value = [...editableCriticalComponentRows.value, ...rowsToAppend]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
|
await ensureOptionsLoaded()
|
|
|
|
|
initForm()
|
|
|
|
|
|