|
@ -12,7 +12,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<el-tabs v-model="editableTabsValue" class="demo-tabs" @edit="handleTabsEdit" type="border-card" |
|
|
<el-tabs v-model="editableTabsValue" class="demo-tabs" @edit="handleTabsEdit" type="border-card" |
|
|
tab-position="left" :stretch="false"> |
|
|
tab-position="left" :stretch="false"> |
|
|
<el-tab-pane v-for="item in data.subList" :key="item.name" :label="item.processDescribe" :name="item.name"> |
|
|
<el-tab-pane v-for="item in data.subList" :key="item.name" :label="item.processDescribe" :name="item.name" v-next-focus> |
|
|
<div class="small-title">检验工序</div> |
|
|
<div class="small-title">检验工序</div> |
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formProcessRef"> |
|
|
<el-form :model="item" label-width="auto" :rules="rules" ref="formProcessRef"> |
|
|
<el-row :gutter="20"> |
|
|
<el-row :gutter="20"> |
|
@ -415,7 +415,7 @@ |
|
|
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) |
|
|
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id) |
|
|
data.value.packageList = await InspectionJobPackageApi.getInspectionJobPackageList(row.id) |
|
|
data.value.packageList = await InspectionJobPackageApi.getInspectionJobPackageList(row.id) |
|
|
list.forEach((item, index) => { |
|
|
list.forEach((item, index) => { |
|
|
editableTabsValue.value = index + 1 |
|
|
// editableTabsValue.value = index + 1 |
|
|
item.name = index + 1 |
|
|
item.name = index + 1 |
|
|
item.inspectionJobCharacteristicsUpdateReqVO = item.inspectionJobCharacteristicsRespVO |
|
|
item.inspectionJobCharacteristicsUpdateReqVO = item.inspectionJobCharacteristicsRespVO |
|
|
|
|
|
|
|
@ -523,7 +523,7 @@ |
|
|
defineExpose({ open, dialogVisible, formLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
defineExpose({ open, dialogVisible, formLoading }) // 提供 open 方法,用于打开弹窗 |
|
|
import type { TabPaneName } from 'element-plus' |
|
|
import type { TabPaneName } from 'element-plus' |
|
|
|
|
|
|
|
|
const editableTabsValue = ref('1') |
|
|
const editableTabsValue = ref(1) |
|
|
// const editableTabs = ref([]) |
|
|
// const editableTabs = ref([]) |
|
|
const handleTabsEdit = (targetName : TabPaneName | undefined, action : 'remove' | 'add') => { |
|
|
const handleTabsEdit = (targetName : TabPaneName | undefined, action : 'remove' | 'add') => { |
|
|
if (action === 'add') { |
|
|
if (action === 'add') { |
|
|