diff --git a/src/views/business/subpackage/record/edit.vue b/src/views/business/subpackage/record/edit.vue index be7703f..c73714b 100644 --- a/src/views/business/subpackage/record/edit.vue +++ b/src/views/business/subpackage/record/edit.vue @@ -8,9 +8,38 @@ import { detail } from '@/api/business/subpackage/record' import { fetchApproval, submitApproval } from '@/api/approval' import showPhoto from '@/views/system/tool/showPhoto.vue' +import type { IMenu } from '@/components/buttonBox/buttonBox' +import ButtonBox from '@/components/buttonBox/buttonBox.vue' const $route = useRoute() const $router = useRouter() const query = $route.query +const menu = ref([ + { + name: '基本信息', + id: '0', + }, + { + name: '分包方人员', + id: '1', + }, + { + name: '业务能力', + id: '2', + }, + { + name: '项目记录', + id: '3', + }, + { + name: '合同记录', + id: '4', + }, + { + name: '检定证书', + id: '5', + }, +]) // 详情按钮组合 +const active = ref('') const detailForm = ref({ addressArea: '', // 公司地址-区编码 addressAreaName: '', // 公司地址-区 @@ -112,10 +141,18 @@ const upload = () => { fileRef.value.click() } + +// 切换tab状态 +const changeCurrentButton = (val: string) => { + console.log(val) + active.value = val +} + onMounted(() => { if (query.title !== '新建') { getDetail() } + active.value = '0' }) @@ -142,44 +179,14 @@ > - + - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + - + - + - + - + - + - + - + - + + + + + + + + + + + @@ -267,17 +304,17 @@ - + - + @@ -292,6 +329,7 @@ + + - + - + @@ -342,6 +381,7 @@ +