|
|
|
@ -3,9 +3,10 @@ import { Form, FormSchema } from '@/components/Form'
|
|
|
|
|
import { useForm } from '@/hooks/web/useForm'
|
|
|
|
|
import { PropType, reactive, watch } from 'vue'
|
|
|
|
|
import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { getIndexSetTreeApi, getIndexType } from '@/api/dataset/RepIndexSet';
|
|
|
|
|
import { getIndexType } from '@/api/dataset/RepIndexSet';
|
|
|
|
|
import { transfDictList } from '@/utils';
|
|
|
|
|
import { getIndexCategoryTreeApi } from '@/api/dataset/IndexCategory';
|
|
|
|
|
import { ITEM_STATUS_LIST } from '../constants';
|
|
|
|
|
|
|
|
|
|
const { required } = useValidator()
|
|
|
|
|
|
|
|
|
@ -40,7 +41,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'code',
|
|
|
|
|
label: '科目编码',
|
|
|
|
|
label: '指标代码',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
@ -66,7 +67,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'itemName',
|
|
|
|
|
label: '科目名称',
|
|
|
|
|
label: '指标名称',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
@ -88,7 +89,10 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
return transfDictList(res.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps:{
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'isOrgCollect',
|
|
|
|
@ -104,8 +108,10 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
label: '状态',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
options:ITEM_STATUS_LIST,
|
|
|
|
|
style:{width:'100%'},
|
|
|
|
|
},
|
|
|
|
|
value:'1'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'conCode',
|
|
|
|
@ -118,7 +124,6 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType1',
|
|
|
|
|
label: '业务类型1',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
@ -126,8 +131,9 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
style: { width:'100%' },
|
|
|
|
|
checkOnClickNode: true,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
@ -139,7 +145,6 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType2',
|
|
|
|
|
label: '业务类型2',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
@ -147,7 +152,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
style: { width:'100%' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
@ -160,7 +165,6 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType3',
|
|
|
|
|
label: '业务类型3',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
@ -168,7 +172,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
style: { width:'100%' },
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
@ -181,7 +185,6 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'itemType4',
|
|
|
|
|
label: '业务类型4',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'id',
|
|
|
|
@ -189,7 +192,7 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
filterable: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
style:{width:'100%'},
|
|
|
|
|
checkOnClickNode: true
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
@ -203,21 +206,22 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
field: 'itemType5',
|
|
|
|
|
label: '业务类型5',
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexType',
|
|
|
|
|
label: '指标类型',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const indexType = await getIndexType({ paramName: 'indexType_param', systemCode: 'ordb' });
|
|
|
|
|
return transfDictList(indexType.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexcalType',
|
|
|
|
@ -227,18 +231,23 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
return transfDictList(indexCalType.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexdataType',
|
|
|
|
|
label: '指标数据类型',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const indexDataType = await getIndexType({ paramName: 'indexDataType_param', systemCode: 'ordb' });
|
|
|
|
|
return transfDictList(indexDataType.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexdataPrecision',
|
|
|
|
@ -248,7 +257,10 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
return transfDictList(indexDataPrecision.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'indexdataUnit',
|
|
|
|
@ -258,7 +270,10 @@ const formSchema = reactive<FormSchema[]>([
|
|
|
|
|
return transfDictList(indexDataUnit.body.result);
|
|
|
|
|
},
|
|
|
|
|
value: '1',
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Select',
|
|
|
|
|
componentProps: {
|
|
|
|
|
style:{width:'100%'}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|