|
|
@ -35,6 +35,7 @@ |
|
|
|
:schema="allSchemas.detailSchema" |
|
|
|
:columns="2" |
|
|
|
width="200px" |
|
|
|
|
|
|
|
/> |
|
|
|
</ContentWrap> |
|
|
|
<div class="flex"> |
|
|
@ -381,24 +382,24 @@ const isShowDrawer = ref(false) |
|
|
|
const detailLoading = ref(false) |
|
|
|
const tabsList = ref(JSON.parse(JSON.stringify(props.tabs ? props.tabs : ''))) |
|
|
|
|
|
|
|
if (props.isBasic == true) { |
|
|
|
if (tabsList.value && tabsList.value.length > 0) { |
|
|
|
tabsList.value.unshift({ |
|
|
|
label: '详情', |
|
|
|
prop: 'Detail' |
|
|
|
}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (tabsList.value && tabsList.value.length > 0) { |
|
|
|
} else { |
|
|
|
tabsList.value = [ |
|
|
|
{ |
|
|
|
label: '明细', |
|
|
|
prop: 'Detail' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
// if (props.isBasic == true || props.isBasicMes == true) { |
|
|
|
// if (tabsList.value && tabsList.value.length > 0) { |
|
|
|
// tabsList.value.unshift({ |
|
|
|
// label: '详情', |
|
|
|
// prop: 'Detail' |
|
|
|
// }) |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
// if (tabsList.value && tabsList.value.length > 0) { |
|
|
|
// } else { |
|
|
|
// tabsList.value = [ |
|
|
|
// { |
|
|
|
// label: '明细', |
|
|
|
// prop: 'Detail' |
|
|
|
// } |
|
|
|
// ] |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
const otherList = [...props.annexTable,{ |
|
|
|
label:props.annexAliasLabel, |
|
|
@ -413,10 +414,11 @@ const otherList = [...props.annexTable,{ |
|
|
|
tabsList.value = [...tabsList?.value,...otherList] |
|
|
|
|
|
|
|
if (!tabsList.value || tabsList.value && tabsList.value.length == otherList.length) { |
|
|
|
if (props.isBasic == false && props.isBasicMes == false) { |
|
|
|
tabsList.value.unshift({ |
|
|
|
label: '明细', |
|
|
|
prop: 'Detail' |
|
|
|
}) |
|
|
|
})} |
|
|
|
} |
|
|
|
tabsList.value.unshift({ |
|
|
|
label: '主数据', |
|
|
|