feat : 组织机构管理公司详情

This commit is contained in:
2024-07-15 00:02:58 +08:00
parent 04bbedf025
commit 5342a4d891
4 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
<template>
<baseTitle title="公司详情"></baseTitle>
<fv-Form :schema="schema" @getInstance="(e)=>form = e"></fv-Form>
</template>
<script setup>
import {getCompanyDetail} from "@/api/subsidiary";
const props=defineProps({
value:{
type:String,
default:''
}
})
const form = ref()
const schema = reactive([
{
label: '公司名称:',
prop: 'companyName',
},
{
label: '公司编码:',
prop: 'companyCode'
},
{
label: '创建时间:',
prop: 'createTime'
}
])
const emit = defineEmits(['update:value'])
const _value = computed({
get() {
return props.value;
},
set(value) {
emit('update:value', value)
}
})
const getInfo = async () => {
const { data } = await getCompanyDetail(_value.value)
form.value.setValues(data)
}
getInfo()
</script>
<style scoped>
</style>

View File

@@ -1,5 +1,5 @@
<template>
<baseTitle title="基础信息"></baseTitle>
<baseTitle title="部门详情"></baseTitle>
<fv-Form :schema="schema" @getInstance="(e)=>form = e"></fv-Form>
<UserPicker ref="usrPickershipIds" @ok="editshipIds"></UserPicker>
<UserPicker ref="usrPickerHeadIds" @ok="editheadIds"></UserPicker>