|
|
|
@ -19,8 +19,14 @@ import Write from './components/Write.vue'
|
|
|
|
|
import { Dialog } from '@/components/Dialog'
|
|
|
|
|
import { getWidth } from '@/utils';
|
|
|
|
|
import Detail from './components/Detail.vue'
|
|
|
|
|
import { useValidator } from '@/hooks/web/useValidator'
|
|
|
|
|
import { getOrganTree } from '@/api/common'
|
|
|
|
|
import { getLoginOrganCodeByUserInfo } from '@/utils/auth'
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
const { required } = useValidator();
|
|
|
|
|
// 获取当前用户机构号
|
|
|
|
|
const loginOrganCode = getLoginOrganCodeByUserInfo();
|
|
|
|
|
|
|
|
|
|
const ids = ref<string[]>([])
|
|
|
|
|
|
|
|
|
@ -92,16 +98,46 @@ const tableColumns = reactive<TableColumn[]>([
|
|
|
|
|
|
|
|
|
|
const searchSchema = reactive<FormSchema[]>([
|
|
|
|
|
{
|
|
|
|
|
field: 'createTime',
|
|
|
|
|
label: '生成时间',
|
|
|
|
|
componentProps: {type: 'daterange'},
|
|
|
|
|
component: 'DatePicker'
|
|
|
|
|
field: 'organCode',
|
|
|
|
|
label: '机构',
|
|
|
|
|
colProps: { span: 100 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkStrictly: true,
|
|
|
|
|
nodeKey: 'key',
|
|
|
|
|
props: { children: 'childrens', label: 'value' },
|
|
|
|
|
filterable: true,
|
|
|
|
|
multiple: true,
|
|
|
|
|
collapseTags: true,
|
|
|
|
|
showCheckbox: true,
|
|
|
|
|
style: { minWidth: '200px' },
|
|
|
|
|
//style: 'width: 100%',
|
|
|
|
|
checkOnClickNode: true,
|
|
|
|
|
},
|
|
|
|
|
component: 'TreeSelect',
|
|
|
|
|
optionApi: async () => {
|
|
|
|
|
const res = await getOrganTree({
|
|
|
|
|
treeid: '1',
|
|
|
|
|
systemCode: 'portal',
|
|
|
|
|
loginOrganCode,
|
|
|
|
|
});
|
|
|
|
|
return res.body.result;
|
|
|
|
|
},
|
|
|
|
|
value: loginOrganCode,
|
|
|
|
|
formItemProps: {
|
|
|
|
|
rules: [required()],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tName',
|
|
|
|
|
label: '报告名称',
|
|
|
|
|
componentProps: {},
|
|
|
|
|
component: 'Input'
|
|
|
|
|
field: 'dataDate',
|
|
|
|
|
label: '日期',
|
|
|
|
|
componentProps: {
|
|
|
|
|
type: 'date',
|
|
|
|
|
valueFormat: 'YYYYMMDD',
|
|
|
|
|
},
|
|
|
|
|
component: 'DatePicker',
|
|
|
|
|
formItemProps: {
|
|
|
|
|
rules: [required()],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'tCategory',
|
|
|
|
@ -110,11 +146,12 @@ const searchSchema = reactive<FormSchema[]>([
|
|
|
|
|
component: 'Select'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'organCode',
|
|
|
|
|
label: '所属机构',
|
|
|
|
|
field: 'tName',
|
|
|
|
|
label: '报告名称',
|
|
|
|
|
componentProps: {},
|
|
|
|
|
component: 'Select'
|
|
|
|
|
component: 'Input'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
const searchParams = ref({})
|
|
|
|
|