|
|
@ -1,10 +1,10 @@ |
|
|
|
import { BasicColumn } from '/@/components/Table'; |
|
|
|
import { BasicColumn } from '/@/components/Table'; |
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
import { FormSchema } from '/@/components/Table'; |
|
|
|
import {h} from "vue"; |
|
|
|
import {h} from 'vue'; |
|
|
|
import {Tag} from "ant-design-vue"; |
|
|
|
import {Tag} from 'ant-design-vue'; |
|
|
|
import { list as hospitalList } from "/@/api/platform/system/controller/hospital"; |
|
|
|
import { list as hospitalList } from '/@/api/platform/system/controller/hospital'; |
|
|
|
import {list as institutionList, list as institutalList} from "/@/api/platform/system/controller/institution"; |
|
|
|
import {list as institutionList, list as institutalList} from '/@/api/platform/system/controller/institution'; |
|
|
|
import { list as officeList } from "/@/api/platform/system/controller/office"; |
|
|
|
import { list as officeList } from '/@/api/platform/system/controller/office'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const columns: BasicColumn[] = [ |
|
|
|
export const columns: BasicColumn[] = [ |
|
|
@ -71,20 +71,17 @@ export const columns: BasicColumn[] = [ |
|
|
|
text = '未知'; |
|
|
|
text = '未知'; |
|
|
|
color = 'gray'; |
|
|
|
color = 'gray'; |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return h(Tag, { color: color }, () => text); |
|
|
|
return h(Tag, { color: color }, () => text); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
// {
|
|
|
|
title: '组织名称', |
|
|
|
// title: '科室名称',
|
|
|
|
dataIndex: 'organName', |
|
|
|
// dataIndex: 'officeName',
|
|
|
|
width: 120, |
|
|
|
// width: 120,
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '科室名称', |
|
|
|
|
|
|
|
dataIndex: 'officeName', |
|
|
|
|
|
|
|
width: 120, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '状态', |
|
|
|
title: '状态', |
|
|
|
dataIndex: 'status', |
|
|
|
dataIndex: 'status', |
|
|
@ -189,8 +186,8 @@ export const doctorFormSchema: FormSchema[] = [ |
|
|
|
component: 'Select', |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
componentProps: { |
|
|
|
options: [ |
|
|
|
options: [ |
|
|
|
{ label: '医院', value: 1 }, |
|
|
|
{ label: '医院', value: '1' }, |
|
|
|
{ label: '医检', value: 2 } |
|
|
|
{ label: '医检', value: '2' } |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
@ -202,16 +199,22 @@ export const doctorFormSchema: FormSchema[] = [ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
renderComponentContent: renderCallbackParams => { |
|
|
|
renderComponentContent: renderCallbackParams => { |
|
|
|
const organType = renderCallbackParams.model.organType; |
|
|
|
const organType = renderCallbackParams.model.organType; |
|
|
|
const dataApi = organType==1 ? hospitalList : institutionList; |
|
|
|
const dataApi = organType=='1' ? hospitalList : institutionList; |
|
|
|
|
|
|
|
|
|
|
|
renderCallbackParams.schema.componentProps = { |
|
|
|
renderCallbackParams.schema.componentProps = { |
|
|
|
resultField: 'list', |
|
|
|
resultField: 'list', |
|
|
|
labelField: 'name', |
|
|
|
labelField: 'name', |
|
|
|
valueField: 'id', |
|
|
|
valueField: 'id', |
|
|
|
api: dataApi |
|
|
|
api: dataApi |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// field: 'officeId',
|
|
|
|
|
|
|
|
// label: '所属科室',
|
|
|
|
|
|
|
|
// component: 'ApiSelect',
|
|
|
|
|
|
|
|
// required: true,
|
|
|
|
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
{ |
|
|
|
field: 'status', |
|
|
|
field: 'status', |
|
|
|
label: '状态', |
|
|
|
label: '状态', |
|
|
|