diff --git a/src/views/archivesManage/components/lineCharts.vue b/src/views/archivesManage/components/lineCharts.vue deleted file mode 100644 index ca098b6..0000000 --- a/src/views/archivesManage/components/lineCharts.vue +++ /dev/null @@ -1,53 +0,0 @@ - - diff --git a/src/views/archivesManage/components/lineTableModal.vue b/src/views/archivesManage/components/lineTableModal.vue deleted file mode 100644 index cff2da5..0000000 --- a/src/views/archivesManage/components/lineTableModal.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/src/views/archivesManage/components/listMap.vue b/src/views/archivesManage/components/listMap.vue deleted file mode 100644 index 345ab42..0000000 --- a/src/views/archivesManage/components/listMap.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/cancel/cancel.vue b/src/views/archivesManage/employee/archiveFlow/cancel/cancel.vue deleted file mode 100644 index a72c974..0000000 --- a/src/views/archivesManage/employee/archiveFlow/cancel/cancel.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/inside/components/insideModal.vue b/src/views/archivesManage/employee/archiveFlow/inside/components/insideModal.vue deleted file mode 100644 index 2d055aa..0000000 --- a/src/views/archivesManage/employee/archiveFlow/inside/components/insideModal.vue +++ /dev/null @@ -1,338 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/inside/indside.vue b/src/views/archivesManage/employee/archiveFlow/inside/indside.vue deleted file mode 100644 index 4f4b65c..0000000 --- a/src/views/archivesManage/employee/archiveFlow/inside/indside.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/inside/inside.api.ts b/src/views/archivesManage/employee/archiveFlow/inside/inside.api.ts deleted file mode 100644 index f718160..0000000 --- a/src/views/archivesManage/employee/archiveFlow/inside/inside.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-system/archives/userDepartChange/interior/page', - change = '/health-system/archives/userDepartChange/interior/change', - stat = '/health-system/archives/userDepartChange/interior/stat', - getById = '/health-system/user/info/getById', -} - -export const listApi = (params) => defHttp.get({ url: Api.list, params }); -export const statApi = (params) => defHttp.get({ url: Api.stat, params }); -export const changeApi = (params) => defHttp.post({ url: Api.change, params }); -export const getByIdApi = (params) => defHttp.get({ url: Api.getById, params }); diff --git a/src/views/archivesManage/employee/archiveFlow/inside/inside.data.ts b/src/views/archivesManage/employee/archiveFlow/inside/inside.data.ts deleted file mode 100644 index fcf831d..0000000 --- a/src/views/archivesManage/employee/archiveFlow/inside/inside.data.ts +++ /dev/null @@ -1,176 +0,0 @@ -// @ts-ignore -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew, getThirdDepartsNew, orgSearchInfo } from '/@/utils/orgSearchInfo'; -import { message } from 'ant-design-vue'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'oldSecondDepart', - }, - { - title: '原部门', - dataIndex: 'oldThirdDepart', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 110, - }, - { - title: '姓名', - dataIndex: 'realName', - width: 90, - }, - { - title: '性别', - dataIndex: 'sex', - width: 70, - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - }, - { - title: '年龄', - dataIndex: 'age', - width: 70, - }, - { - title: '流动时间', - dataIndex: 'createTime', - width: 100, - }, - { - title: '转往部门', - dataIndex: 'newThirdDepart', - }, - { - title: '操作人员', - dataIndex: 'applyUserName', - width: 90, - }, - { - title: '信息修改', - dataIndex: 'infoEdit', - width: 120, - }, -]; - -export const searchSchema: FormSchema[] = [ - // { - // label: '单位', - // field: 'orgCode1', - // component: 'ApiSelect', - // componentProps: ({ formModel }) => { - // return { - // api: allSecondaryDepartsNew, - // resultField: 'result', - // labelField: 'departName', - // valueField: 'orgCode', - // placeholder: '请选择单位', - // showSearch: true, - // showDefaultValue: false, - // filterOption: (input: string, option: any): boolean => { - // const str: string = input.trim().toLowerCase(); - // return option.label.toLowerCase().indexOf(str) >= 0; - // }, - // onChange: () => { - // formModel['orgCode2'] = ''; - // }, - // onDeselect: () => { - // formModel['orgCode1'] = ''; - // formModel['orgCode2'] = ''; - // formModel['orgCode'] = ''; - // }, - // getPopupContainer: () => document.body, - // }; - // }, - // }, - // { - // label: '原部门', - // field: 'oldOrgCode', - // component: 'ApiSelect', - // componentProps: ({ formModel }) => { - // return { - // api: getThirdDepartsNew, - // resultField: 'list', - // labelField: 'departName', - // valueField: 'orgCode', - // placeholder: '请选择部门', - // showSearch: true, - // showDefaultValue: false, - // getPopupContainer: () => document.body, - // params: { - // idOrCode: formModel['orgCode1'] || 'xasd', - // }, - // onFocus: () => { - // if (!formModel['orgCode1']) { - // return message.warn('请先选择单位!'); - // } - // }, - // filterOption: (input: string, option: any): boolean => { - // const str: string = input.trim().toLowerCase(); - // return option.label.toLowerCase().indexOf(str) >= 0; - // }, - // }; - // }, - // }, - ...orgSearchInfo({ orgField: 'orgCode1', deptName: '原部门', deptFiled: 'orgCode2', orgCode: 'oldOrgCode' }), - { - label: '转往部门', - field: 'newOrgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择部门', - showSearch: true, - showDefaultValue: false, - getPopupContainer: () => document.body, - params: { - idOrCode: formModel['orgCode1'] || 'xasd', - }, - onFocus: () => { - if (!formModel['orgCode1']) { - return message.warn('请先选择原单位!'); - } - }, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'name', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'sex2' }), - }, - { - label: '流动时间', - field: 'timeInfo', - component: 'RangeDate', - componentProps: () => { - return { - format: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - }; - }, - }, -]; diff --git a/src/views/archivesManage/employee/archiveFlow/org/components/orgModal.vue b/src/views/archivesManage/employee/archiveFlow/org/components/orgModal.vue deleted file mode 100644 index 35b9d90..0000000 --- a/src/views/archivesManage/employee/archiveFlow/org/components/orgModal.vue +++ /dev/null @@ -1,559 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/org/components/userInfo.vue b/src/views/archivesManage/employee/archiveFlow/org/components/userInfo.vue deleted file mode 100644 index 3182d76..0000000 --- a/src/views/archivesManage/employee/archiveFlow/org/components/userInfo.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/org/org.api.ts b/src/views/archivesManage/employee/archiveFlow/org/org.api.ts deleted file mode 100644 index 1249c73..0000000 --- a/src/views/archivesManage/employee/archiveFlow/org/org.api.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { useMessage } from '/@/hooks/web/useMessage'; -const { createConfirm } = useMessage(); -enum Api { - list = '/health-system/archives/userDepartChange/without/accept/page', - list2 = '/health-system/archives/userDepartChange/without/rollOut/page', - accept = '/health-system/archives/userDepartChange/without/accept', - rollOut = '/health-system/archives/userDepartChange/without/rollOut', - stat = '/health-system/archives/userDepartChange/without/accept/stat', - stat2 = '/health-system/archives/userDepartChange/without/rollOut/numStat', - numStat = '/health-system/archives/userDepartChange/without/accept/numStat', - getById = '/health-system/user/info/getById', - export1 = '/health-system/archives/userDepartChange/without/accept/export', - export2 = '/health-system/archives/userDepartChange/without/rollOut/export', - cancel = '/health-system/archives/userDepartChange/without/cancel', -} - -export const listApi = (params) => defHttp.get({ url: Api.list, params }); -export const list2Api = (params) => defHttp.get({ url: Api.list2, params }); -export const statApi = (params) => defHttp.get({ url: Api.stat, params }); -export const stat2Api = (params) => defHttp.get({ url: Api.stat2, params }); -export const numStatApi = (params) => defHttp.get({ url: Api.numStat, params }); -export const getByIdApi = (params) => defHttp.get({ url: Api.getById, params }); -export const acceptApi = (params) => defHttp.post({ url: Api.accept, params }); -export const rollOutApi = (params) => defHttp.post({ url: Api.rollOut, params }); -export const export1Api = (params) => defHttp.get({ url: Api.export1, params }); -export const export2Api = (params) => defHttp.get({ url: Api.export2, params }); -export const cancelApi = (params, handleSuccess) => { - createConfirm({ - iconType: 'info', - title: '提示', - content: '确定取消转出?', - okText: '确认', - cancelText: '取消', - onOk: async () => { - try { - await defHttp.post({ url: Api.cancel + '?id=' + params?.id, params }); - handleSuccess(); - } catch (e) { - console.log(e); - } - }, - }); -}; diff --git a/src/views/archivesManage/employee/archiveFlow/org/org.data.ts b/src/views/archivesManage/employee/archiveFlow/org/org.data.ts deleted file mode 100644 index 2acfae0..0000000 --- a/src/views/archivesManage/employee/archiveFlow/org/org.data.ts +++ /dev/null @@ -1,370 +0,0 @@ -// @ts-ignore -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew, getThirdDepartsNew } from '/@/utils/orgSearchInfo'; -import { message } from 'ant-design-vue'; -import { render } from '/@/utils/common/renderUtils'; -import { getName } from '/@/views/interveneNew/compoents/utils'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -const column: BasicColumn[] = [ - { - title: '原单位', - dataIndex: 'oldSecondDepart', - }, - { - title: '原部门', - dataIndex: 'oldThirdDepart', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 110, - }, - { - title: '姓名', - dataIndex: 'realName', - width: 90, - }, - { - title: '性别', - dataIndex: 'sex', - width: 70, - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - }, - { - title: '年龄', - dataIndex: 'age', - width: 70, - }, -]; - -export const columns1: BasicColumn[] = [ - ...column, - { - title: '请求转入单位', - dataIndex: 'newSecondDepart', - width: 100, - }, - { - title: '请求时间', - dataIndex: 'createTime', - }, - { - title: '操作人员', - dataIndex: 'opUserName', - width: 90, - }, - { - title: '接收状态', - dataIndex: 'applyStatus', - width: 120, - customRender: ({ text }) => { - return getName(text, list); - }, - }, -]; -export const columns2: BasicColumn[] = [ - ...column, - { - title: '流动时间', - children: [ - { - title: '请求转入单位', - dataIndex: 'newSecondDepart', - }, - { - title: '请求时间', - dataIndex: 'createTime', - }, - { - title: '操作人员', - dataIndex: 'opUserName', - }, - ], - }, - { - title: '转往部门', - children: [ - { - title: '接收状态', - dataIndex: '', - customRender: () => { - return '拒绝转入'; - }, - }, - { - title: '拒绝理由', - dataIndex: 'applyReason', - }, - { - title: '接收时间', - dataIndex: 'applyTime', - }, - { - title: '操作人员', - dataIndex: 'applyUserName', - }, - ], - }, -]; -export const columns3: BasicColumn[] = [ - ...column, - { - title: '请求信息', - children: [ - { - title: '请求转入单位', - dataIndex: 'newSecondDepart', - }, - { - title: '请求时间', - dataIndex: 'createTime', - }, - { - title: '操作人员', - dataIndex: 'opUserName', - }, - ], - }, - { - title: '接收信息', - children: [ - { - title: '接收状态', - dataIndex: '', - customRender: () => { - return '同意转入'; - }, - }, - { - title: '接收单位', - dataIndex: 'newSecondDepart', - }, - { - title: '接收部门', - dataIndex: 'newThirdDepart', - }, - { - title: '接收时间', - dataIndex: 'applyTime', - }, - { - title: '操作人员', - dataIndex: 'applyUserName', - }, - ], - }, -]; - -export const searchSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode1', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: allSecondaryDepartsNew, - resultField: 'result', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择单位', - showSearch: true, - showDefaultValue: false, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onChange: () => { - formModel['orgCode2'] = ''; - }, - onDeselect: () => { - formModel['orgCode1'] = ''; - formModel['orgCode2'] = ''; - formModel['orgCode'] = ''; - }, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '原部门', - field: 'orgCode2', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择部门', - showSearch: true, - showDefaultValue: false, - getPopupContainer: () => document.body, - params: { - idOrCode: formModel['orgCode1'] || 'xasd', - }, - onFocus: () => { - if (!formModel['orgCode1']) { - return message.warn('请先选择单位!'); - } - }, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - label: '转往部门', - field: 'orgCode3', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择部门', - showSearch: true, - showDefaultValue: false, - getPopupContainer: () => document.body, - params: { - idOrCode: formModel['orgCode1'] || 'xasd', - }, - onFocus: () => { - if (!formModel['orgCode1']) { - return message.warn('请先选择单位!'); - } - }, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'name', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'sex2' }), - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, -]; - -export const searchSchemaModal: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item.orgCode; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item.orgCode; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '年龄', - field: 'nl', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageFindType = data.selectValue; - formModel.ageStat = data.inputValue1; - if (data.selectValue == '2') { - formModel.ageEnd = data.inputValue2; - } - }, - optionsType: '2', - }; - }, - }, - { - label: '', - field: 'ageFindType', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageStat', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageEnd', - component: 'Input', - show: false, - }, -]; - -const list = [ - { value: '0', label: '待处理' }, - { value: '2', label: '拒绝转入' }, - { value: '1', label: '同意转入' }, -]; diff --git a/src/views/archivesManage/employee/archiveFlow/org/org.vue b/src/views/archivesManage/employee/archiveFlow/org/org.vue deleted file mode 100644 index 705680b..0000000 --- a/src/views/archivesManage/employee/archiveFlow/org/org.vue +++ /dev/null @@ -1,334 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/safekeeping/components/safekeepingModal.vue b/src/views/archivesManage/employee/archiveFlow/safekeeping/components/safekeepingModal.vue deleted file mode 100644 index e7a8c34..0000000 --- a/src/views/archivesManage/employee/archiveFlow/safekeeping/components/safekeepingModal.vue +++ /dev/null @@ -1,285 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.api.ts b/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.api.ts deleted file mode 100644 index 1dcbe8d..0000000 --- a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.api.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-system/sys/userFrozen/page', - userList = '/health-system/user/info/page', - add = '/health-system/sys/userFrozen/add', - stat = '/health-system/sys/userFrozen/stat', - export = '/health-system/sys/userFrozen/export', -} - -export const listApi = (params) => defHttp.get({ url: Api.list, params }); -export const userListApi = (params) => defHttp.get({ url: Api.userList, params }); -export const statApi = (params) => defHttp.get({ url: Api.stat, params }); -export const addApi = (params) => defHttp.post({ url: Api.add, params }); -export const exportApi = (params) => defHttp.post({ url: Api.export, params }); diff --git a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.data.ts b/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.data.ts deleted file mode 100644 index 1f10f45..0000000 --- a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.data.ts +++ /dev/null @@ -1,270 +0,0 @@ -// @ts-ignore -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew, getThirdDepartsNew } from '/@/utils/orgSearchInfo'; -import { message } from 'ant-design-vue'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 110, - }, - { - title: '姓名', - dataIndex: 'realName', - width: 90, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 70, - }, - { - title: '年龄', - dataIndex: 'age', - width: 70, - }, -]; - -export const searchSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode1', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: allSecondaryDepartsNew, - resultField: 'result', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择单位', - showSearch: true, - showDefaultValue: false, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onChange: () => { - formModel['orgCode2'] = ''; - }, - onDeselect: () => { - formModel['orgCode1'] = ''; - formModel['orgCode2'] = ''; - formModel['orgCode'] = ''; - }, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '部门', - field: 'orgCode2', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择部门', - showSearch: true, - showDefaultValue: false, - getPopupContainer: () => document.body, - params: { - idOrCode: formModel['orgCode1'] || 'xasd', - }, - onFocus: () => { - if (!formModel['orgCode1']) { - return message.warn('请先选择单位!'); - } - }, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'sex2' }), - }, - { - label: '年龄', - field: 'nl', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageFindType = data.selectValue; - formModel.ageStat = data.inputValue1; - if (data.selectValue == '2') { - formModel.ageEnd = data.inputValue2; - } - }, - optionsType: '2', - }; - }, - }, - { - label: '', - field: 'ageFindType', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; - -export const employeeSearchSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item.orgCode; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item.orgCode; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '年龄', - field: 'nl', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageFindType = data.selectValue; - formModel.ageStat = data.inputValue1; - if (data.selectValue == '2') { - formModel.ageEnd = data.inputValue2; - } - }, - optionsType: '2', - }; - }, - }, - { - label: '', - field: 'ageFindType', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageStat', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageEnd', - component: 'Input', - show: false, - }, -]; - -export const employeeColumns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 110, - }, - { - title: '姓名', - dataIndex: 'realname', - width: 90, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 70, - }, - { - title: '年龄', - dataIndex: 'age', - width: 70, - }, -]; diff --git a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.vue b/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.vue deleted file mode 100644 index e0cbca0..0000000 --- a/src/views/archivesManage/employee/archiveFlow/safekeeping/safekeeping.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/basicInfo/basicInfo.data.ts b/src/views/archivesManage/employee/basicInfo/basicInfo.data.ts deleted file mode 100644 index 8835df1..0000000 --- a/src/views/archivesManage/employee/basicInfo/basicInfo.data.ts +++ /dev/null @@ -1,559 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { orgSearchInfo } from '/@/utils/orgSearchInfo'; -import { checkPassword } from '/@/hooks/checkPassword/checkPassword'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 100, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 100, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 70, - align: 'center', - }, - { - title: '民族', - dataIndex: 'empNation_dictText', - width: 90, - align: 'center', - }, - { - title: '出生日期', - dataIndex: 'birthday', - width: 100, - align: 'center', - }, - { - title: '入职时间', - dataIndex: 'empWorktime', - width: 100, - align: 'center', - }, - { - title: '用工形式', - dataIndex: 'empType_dictText', - width: 100, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empJob_dictText', - width: 100, - align: 'center', - }, - { - title: '岗位层级', - dataIndex: 'jobLevel_dictText', - width: 100, - align: 'center', - }, - { - title: '职称', - dataIndex: 'postNew_dictText', - width: 100, - align: 'center', - }, - // { - // title: '员工类别', - // dataIndex: 'empType_dictText', - // width: 100, - // align: 'center', - // }, - { - title: '学历 ', - dataIndex: 'empEducation_dictText', - width: 100, - align: 'center', - }, - { - title: '婚姻状况', - dataIndex: 'empMarriage_dictText', - width: 100, - align: 'center', - }, - { - title: '手机号', - dataIndex: 'phone', - width: 120, - align: 'center', - }, - { - title: '邮箱', - dataIndex: 'email', - width: 100, - align: 'center', - }, - { - title: '工作地点', - dataIndex: 'workSpace', - width: 300, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '健康状况', - dataIndex: 'userGroup_dictText', - width: 120, - align: 'center', - }, - { - title: '图片', - dataIndex: 'avatar', - width: 100, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - ...orgSearchInfo({ orgField: 'orgCode1', orgName: '单位', deptFiled: 'orgCodeThree', deptName: '部门', orgCode: 'orgCode' }), - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'sex2', - }), - }, - { - label: '民族', - field: 'empNation', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'nation', - showSearch: true, - }), - }, - { - label: '出生日期', - field: 'rangeDate', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '入职时间', - field: 'applyTime', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'position_new', - showSearch: true, - }), - }, - { - label: '岗位层级', - field: 'jobLevel', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'job_level', - showSearch: true, - }), - }, - { - label: '职称', - field: 'postNew', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'post_new', - showSearch: true, - }), - }, - // { - // label: '员工类别', - // field: 'empType', - // component: 'JDictSelectTag', - // componentProps: () => ({ - // dictCode: 'emp_type', - // }), - // }, - { - label: '学历', - field: 'empEducation', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'emp_education', - showSearch: true, - }), - }, - { - label: '婚姻状况', - field: 'empMarriage', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'mr_state', - }), - }, - { - label: '手机号', - field: 'phone', - component: 'Input', - }, - { - label: '邮箱', - field: 'email', - component: 'Input', - }, - { - label: '工作地点', - field: 'workPlace', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCardFind', - component: 'Input', - }, - { - label: '健康状况', - field: 'userGroup', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - }), - }, -]; - -export const formSchema: FormSchema[] = [ - { - label: 'id', - field: 'id', - component: 'Input', - show: false, - }, - { - label: 'username', - field: 'username', - component: 'Input', - show: false, - }, - { - label: 'orgCode', - field: 'orgCode', - component: 'Input', - show: false, - }, - - { - label: '单位', - field: 'secondDepart', - component: 'Input', - componentProps: () => { - return { - disabled: true, - }; - }, - }, - { - label: '部门', - field: 'thirdDepart', - component: 'Input', - componentProps: () => { - return { - disabled: true, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写中石油人事系统统一规定的员工编号', - }; - }, - - required: true, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写员工真实姓名,两个字的名字中间不能空隔', - }; - }, - required: true, - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'sex2', - placeholder: '请选择性别', - }), - }, - { - label: '民族', - field: 'empNation', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'nation', - placeholder: '请选择民族', - showSearch: true, - }), - }, - { - label: '出生日期', - field: 'birthday', - component: 'DatePicker', - required: true, - componentProps: () => { - return { - showTime: false, - value: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - placeholder: '请选输出生时间', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, - { - label: '入职时间', - field: 'empWorktime', - component: 'DatePicker', - required: true, - componentProps: () => { - return { - showTime: false, - value: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - placeholder: '请选输参加工作时间', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'position_new', - placeholder: '请选择职位级别,纯专业技术和操作员工的级别为“员工”', - }), - }, - { - label: '岗位层级', - field: 'jobLevel', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'job_level', - placeholder: '请选择岗位层级', - }), - }, - { - label: '职称', - field: 'postNew', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'post_new', - placeholder: '请选择职称,操作员工无职称', - }), - }, - { - label: '员工类别', - field: 'empType', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'contract', - placeholder: '请选择员工类别,以长庆油田人事系统规定为准', - }), - }, - { - label: '学历', - field: 'empEducation', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'emp_education', - placeholder: '请选择学历,指人事系统承认的员工现学历', - }), - }, - { - label: '婚姻状况', - field: 'empMarriage', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'mr_state', - placeholder: '请选择婚否', - }), - }, - { - label: '手机号', - field: 'phone', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写手机号码,必须是11位数字', - }; - }, - rules: [ - // { required: true, message: '请输入联系电话', trigger: 'blur' }, - { - required: true, - pattern: /^1[3456789]\d{9}$/, - message: '手机号码格式有误', - }, - ], - }, - { - label: '邮箱', - required: true, - field: 'email', - component: 'Input', - rules: [{ required: true, pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, message: '邮箱格式有误' }], - }, - { - label: '工作地点', - field: 'workSpace', - required: true, - component: 'Input', - }, - { - label: '身份证号', - field: 'idCardFind', - required: true, - dynamicRules: ({ model }) => { - return [ - { - required: true, - pattern: /^(\d{6})(19|20)(\d{2})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(\d{3})([\dXx])$|^\d{6}\*{8}\d{4}$/, - - validator: (_) => { - const genderDigit = parseInt(model.idCardFind ? model.idCardFind.charAt(16) : ''); - if (genderDigit % 2 !== model.sex % 2) { - return Promise.resolve(); - } else { - return Promise.reject('性别与身份证信息不匹配'); - } - }, - trigger: 'blur', - }, - ]; - }, - rules: [ - { - required: true, - pattern: /^(\d{6})(19|20)(\d{2})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(\d{3})([\dXx])$|^\d{6}\*{8}\d{4}$/, - message: '身份证格式错误', - }, - ], - component: 'Input', - }, - { - label: '健康状况', - field: 'userGroup', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - }), - }, -]; - -export const formSchemaAvater: FormSchema[] = [ - { - label: '', - field: 'avatar', - component: 'JImageUpload', - componentProps: () => { - return { - maxCount: 1, - }; - }, - rules: [{ required: true, message: '请上传头像信息' }], - }, -]; -export const FieldHolder = [ - '', - '', - '请填写中石油人事系统统一规定的员工编号', - '请填写员工真实姓名,两个字的名字中间不能空隔', - '请选择性别', - '请选择民族', - '请选输出生时间', - '请选输参加工作时间', - '请选择职位级别,纯专业技术和操作员工的级别为“员工”', - '请选择岗位层级', - '请选择职称,操作员工无职称', - '请选择员工类别,以长庆油田人事系统规定为准', - '请选择学历,指人事系统承认的员工现学历', - '请选择婚否', - '请填写手机号码,必须是11位数字', - '请输入邮箱', - '请输入工作地点', - '请输入身份证号', - '请选择健康状况', -]; diff --git a/src/views/archivesManage/employee/basicInfo/basicInfo.vue b/src/views/archivesManage/employee/basicInfo/basicInfo.vue deleted file mode 100644 index 2420948..0000000 --- a/src/views/archivesManage/employee/basicInfo/basicInfo.vue +++ /dev/null @@ -1,144 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/basicInfo/components/userEditModal.vue b/src/views/archivesManage/employee/basicInfo/components/userEditModal.vue deleted file mode 100644 index 5c40ca3..0000000 --- a/src/views/archivesManage/employee/basicInfo/components/userEditModal.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/fileModal.vue b/src/views/archivesManage/employee/fileMaintenance/components/fileModal.vue deleted file mode 100644 index 1ea3754..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/fileModal.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab1.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab1.vue deleted file mode 100644 index f2b98b0..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab1.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab10.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab10.vue deleted file mode 100644 index 7006a05..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab10.vue +++ /dev/null @@ -1,43 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab10/tab10Detail.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab10/tab10Detail.vue deleted file mode 100644 index 8da75ea..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab10/tab10Detail.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab10/table1.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab10/table1.vue deleted file mode 100644 index 234939b..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab10/table1.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab10/table2.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab10/table2.vue deleted file mode 100644 index 7e8470f..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab10/table2.vue +++ /dev/null @@ -1,42 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab12.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab12.vue deleted file mode 100644 index 779fda4..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab12.vue +++ /dev/null @@ -1,79 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab12/tab12Detail.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab12/tab12Detail.vue deleted file mode 100644 index 48df457..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab12/tab12Detail.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab15.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab15.vue deleted file mode 100644 index 45094ae..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab15.vue +++ /dev/null @@ -1,105 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab15/tab15Detail.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab15/tab15Detail.vue deleted file mode 100644 index e8d4d1b..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab15/tab15Detail.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab16.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab16.vue deleted file mode 100644 index 2cee753..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab16.vue +++ /dev/null @@ -1,77 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab16/tab16Add.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab16/tab16Add.vue deleted file mode 100644 index 8cd0f7b..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab16/tab16Add.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab2.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab2.vue deleted file mode 100644 index 22f7610..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab2.vue +++ /dev/null @@ -1,714 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab3.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab3.vue deleted file mode 100644 index 94c5d89..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab3.vue +++ /dev/null @@ -1,368 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3Modal.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3Modal.vue deleted file mode 100644 index 149f377..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3Modal.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3know.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3know.vue deleted file mode 100644 index 77e423c..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3know.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3trend.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3trend.vue deleted file mode 100644 index 4a543c6..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab3/tab3trend.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab3/trend.data.ts b/src/views/archivesManage/employee/fileMaintenance/components/tab3/trend.data.ts deleted file mode 100644 index 23b475c..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab3/trend.data.ts +++ /dev/null @@ -1,27 +0,0 @@ -export const getOptions = (xData: any[] = [], yData: any[] = []) => ({ - tooltip: { - trigger: 'axis', - }, - xAxis: { - type: 'category', - data: xData, - }, - label: { - show: true, - position: top, - }, - yAxis: { - type: 'value', - }, - series: getSeries(yData), -}); - -function getSeries(data) { - return data.map((item) => { - return { - type: 'line', - data: item, - smooth: true, - }; - }); -} diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab4.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab4.vue deleted file mode 100644 index 9ec348e..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab4.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab4/examinationReport.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab4/examinationReport.vue deleted file mode 100644 index f437c06..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab4/examinationReport.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab4/historInfo.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab4/historInfo.vue deleted file mode 100644 index f504c18..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab4/historInfo.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab4/tab4List.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab4/tab4List.vue deleted file mode 100644 index 4923a08..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab4/tab4List.vue +++ /dev/null @@ -1,173 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab5.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab5.vue deleted file mode 100644 index a109faa..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab5.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab5/tab5Detail.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab5/tab5Detail.vue deleted file mode 100644 index 40f8a7e..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab5/tab5Detail.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab6.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab6.vue deleted file mode 100644 index 513a8d1..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab6.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab8.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab8.vue deleted file mode 100644 index 941fc4f..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab8.vue +++ /dev/null @@ -1,199 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab9.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab9.vue deleted file mode 100644 index fd8e38f..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab9.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/views/archivesManage/employee/fileMaintenance/components/tab9/tab9Detail.vue b/src/views/archivesManage/employee/fileMaintenance/components/tab9/tab9Detail.vue deleted file mode 100644 index 95fca8f..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/components/tab9/tab9Detail.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - diff --git a/src/views/archivesManage/employee/fileMaintenance/maintenance.api.ts b/src/views/archivesManage/employee/fileMaintenance/maintenance.api.ts deleted file mode 100644 index 2b54cd1..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/maintenance.api.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { useMessage } from '/@/hooks/web/useMessage'; -const { createConfirm } = useMessage(); -enum Api { - tab8Sds = '/health-watch/archives/exercise/sdc/page', - tab8Work = '/health-watch/archives/exercise/workout/page', - tab12List = '/health-archives/archives/assess/risk', - tab15List = '/health-archives/archives/assess/mind', - psychoList = '/health-intervene/psychology/psychologyDiagnosisReport/list', - // tab4接口 - selectMedicalUniItemClassList = '/health-archives/archives/hmsEvaluation/selectMedicalUniItemClassList', - selectMedicalUniItemByClassId = '/health-archives/archives/hmsEvaluation/selectMedicalUniItemByClassId', - status = '/health-archives/archives/hmsEvaluation/analysisReport/status', - // tab5接口 - allPage = '/health-archives/archives/self/illness/all-page', - page = '/health-archives/archives/self/illness/page', - save = '/health-archives/archives/self/illness/save', - update = '/health-archives/archives/self/illness/update', - deleteBatch = '/health-archives/archives/self/illness/deleteBatch', - //tab3 - tab3BodyType = '/health-watch/archives/bodyType/select', - tab3BodyTypeAdd = '/health-watch/archives/bodyType/add', - tab3BodyTypeAnalysisList = '/health-watch/archives/bodyType/analysis/list', - tab3BodyTypeAnalysisLine = '/health-watch/archives/bodyType/analysis/line', - tab3Model = '/health-archives/api/archives/loreCheckSubject/selectLoreCheckSubjectByModelId', - tab3Physique = '/health-system/archives/employee/physique/user', - tab3PhysiqueAdd = '/health-system/archives/employee/physique/add', - tab3PhysiqueCommonTrend = '/health-system/archives/employee/physique/common-trend', - tab3PhysiqueCommonPage = '/health-system/archives/employee/physique/common-page', - tab3PhysiqueBloodTrend = '/health-system/archives/employee/physique/blood-trend', - tab3PhysiqueBloodPage = '/health-system/archives/employee/physique/blood-page', - // tab6 - tab6Page = '/health-archives/archives/familyIllness/page', - tab6Edit = '/health-archives/archives/familyIllness/edit', - // tab10 - tab10List1 = '/health-watch/archives/sleep/watch/page', - tab10List2 = '/health-intervene/archives/sleep/psychology/page', - tab16List = '/health-archives/archives/vaccine/page', - tab16Add = '/health-archives/archives/vaccine/save', - tab16Edit = '/health-archives/archives/vaccine/update', - tab16Delete = '/health-archives/archives/vaccine/deleteBatch', - tab9List = '/health-archives/archives/smoking/survey/page', -} - -export const tab8SdsApi = (params) => defHttp.get({ url: Api.tab8Sds, params }); -export const tab8WorkApi = (params) => defHttp.get({ url: Api.tab8Work, params }); - -export const tab10List1Api = (params) => defHttp.get({ url: Api.tab10List1, params }); -export const tab10List2Api = (params) => defHttp.get({ url: Api.tab10List2, params }); -export const tab12ListApi = (params) => defHttp.get({ url: Api.tab12List, params }); -export const tab15ListApi = (params) => defHttp.get({ url: Api.tab15List, params }); - -export const tab3ModelApi = (params) => defHttp.get({ url: Api.tab3Model, params }); -export const tab3BodyTypeApi = (params) => defHttp.get({ url: Api.tab3BodyType, params }); -export const tab3BodyTypeAddApi = (params) => defHttp.post({ url: Api.tab3BodyTypeAdd, params }, { joinParamsToUrl: true }); -export const tab3BodyTypeAnalysisListApi = (params) => defHttp.post({ url: Api.tab3BodyTypeAnalysisList, params }, { joinParamsToUrl: true }); -export const tab3BodyTypeAnalysisLineApi = (params) => defHttp.post({ url: Api.tab3BodyTypeAnalysisLine, params }, { joinParamsToUrl: true }); - -export const tab3PhysiqueApi = (params) => defHttp.get({ url: Api.tab3Physique, params }); - -export const tab3PhysiqueAddApi = (params) => defHttp.post({ url: Api.tab3PhysiqueAdd, params }, { joinParamsToUrl: true }); -export const tab3PhysiqueCommonTrendApi = (params) => defHttp.get({ url: Api.tab3PhysiqueCommonTrend, params }, { joinParamsToUrl: true }); -export const tab3PhysiqueCommonPageApi = (params) => defHttp.get({ url: Api.tab3PhysiqueCommonPage, params }, { joinParamsToUrl: true }); -export const tab3PhysiqueBloodTrendApi = (params) => defHttp.get({ url: Api.tab3PhysiqueBloodTrend, params }, { joinParamsToUrl: true }); -export const tab3PhysiqueBloodPageApi = (params) => defHttp.get({ url: Api.tab3PhysiqueBloodPage, params }, { joinParamsToUrl: true }); - -export const psychoList = (params) => defHttp.get({ url: Api.psychoList, params }); - -// tab4 -export const selectMedicalUniItemClassListApi = (params: any) => defHttp.get({ url: Api.selectMedicalUniItemClassList, params }); -export const selectMedicalUniItemByClassIdApi = (params: any) => defHttp.get({ url: Api.selectMedicalUniItemByClassId, params }); -export const statusApi = (params: any) => defHttp.get({ url: Api.status, params }); - -// tab5 -export const allPageApi = (params: any) => defHttp.get({ url: Api.allPage, params }); -export const pageApi = (params: any) => defHttp.get({ url: Api.page, params }); -export const saveApi = (params: any) => defHttp.post({ url: Api.save, params }); -export const updateApi = (params: any) => defHttp.put({ url: Api.update, params }); -export const deleteBatchApi = (params: any, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认删除', - content: '是否删除选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp.delete({ url: Api.deleteBatch, params }, { joinParamsToUrl: true }).then(() => { - handleSuccess(); - }); - }, - }); -}; - -// tab6 -export const tab6PageApi = (params: any) => defHttp.get({ url: Api.tab6Page, params }); -export const tab6EditApi = (params: any) => defHttp.put({ url: Api.tab6Edit, params }); - -export const tab16ListApi = (params) => defHttp.get({ url: Api.tab16List, params }); - -export const tab16AddApi = (params) => defHttp.post({ url: Api.tab16Add, params }); - -export const tab16EditApi = (params) => defHttp.put({ url: Api.tab16Edit, params }); - -export const tab16DeleteApi = (params, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认删除', - content: '是否删除选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp.delete({ url: Api.tab16Delete, params }, { joinParamsToUrl: true }).then(() => { - handleSuccess(); - }); - }, - }); -}; - -export const tab9ListApi = (params) => defHttp.get({ url: Api.tab9List, params }); diff --git a/src/views/archivesManage/employee/fileMaintenance/maintenance.data.ts b/src/views/archivesManage/employee/fileMaintenance/maintenance.data.ts deleted file mode 100644 index 22654db..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/maintenance.data.ts +++ /dev/null @@ -1,1727 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { orgSearchInfo } from '/@/utils/orgSearchInfo'; -import { checkPassword } from '/@/hooks/checkPassword/checkPassword'; -import { h } from 'vue'; -import { getName } from '/@/views/interveneNew/compoents/utils'; -import dayjs from 'dayjs'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 100, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 100, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 100, - align: 'center', - }, - { - title: '民族', - dataIndex: 'empNation_dictText', - width: 100, - align: 'center', - }, - { - title: '出生日期', - dataIndex: 'birthday', - width: 100, - align: 'center', - }, - { - title: '入职时间', - dataIndex: 'empWorktime', - width: 100, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empJob_dictText', - width: 100, - align: 'center', - }, - { - title: '岗位层级', - dataIndex: 'jobLevel_dictText', - width: 100, - align: 'center', - }, - { - title: '职称', - dataIndex: 'postNew_dictText', - width: 100, - align: 'center', - }, - // { - // title: '员工类别', - // dataIndex: 'empType_dictText', - // width: 100, - // align: 'center', - // }, - { - title: '学历 ', - dataIndex: 'empEducation_dictText', - width: 100, - align: 'center', - }, - { - title: '婚姻状况', - dataIndex: 'empMarriage_dictText', - width: 100, - align: 'center', - }, - { - title: '手机号', - dataIndex: 'phone', - width: 120, - align: 'center', - }, - { - title: '邮箱', - dataIndex: 'email', - width: 100, - align: 'center', - }, - { - title: '工作地点', - dataIndex: 'workSpace', - width: 300, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '健康状况', - dataIndex: 'userGroup_dictText', - width: 120, - align: 'center', - }, - { - title: '图片', - dataIndex: 'avatar', - width: 100, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - ...orgSearchInfo({ orgField: 'orgCode1', orgName: '单位', deptFiled: 'orgCodeThree', deptName: '部门', orgCode: 'orgCode' }), - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'sex2', - }), - }, - { - label: '民族', - field: 'empNation', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'nation', - showSearch: true, - }), - }, - { - label: '出生日期', - field: 'rangeDate', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '入职时间', - field: 'applyTime', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'position_new', - showSearch: true, - }), - }, - { - label: '岗位层级', - field: 'jobLevel', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'job_level', - showSearch: true, - }), - }, - { - label: '职称', - field: 'postNew', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'post_new', - showSearch: true, - }), - }, - // { - // label: '员工类别', - // field: 'empType', - // component: 'JDictSelectTag', - // componentProps: () => ({ - // dictCode: 'emp_type', - // }), - // }, - { - label: '学历', - field: 'empEducation', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'emp_education', - showSearch: true, - }), - }, - { - label: '婚姻状况', - field: 'empMarriage', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'mr_state', - }), - }, - { - label: '手机号', - field: 'phone', - component: 'Input', - }, - { - label: '邮箱', - field: 'email', - component: 'Input', - }, - { - label: '工作地点', - field: 'workPlace', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCardFind', - component: 'Input', - }, - { - label: '健康状况', - field: 'userGroup', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - }), - }, -]; - -export const formSchema: FormSchema[] = [ - { - label: 'id', - field: 'id', - component: 'Input', - show: false, - }, - { - label: 'username', - field: 'username', - component: 'Input', - show: false, - }, - { - label: 'orgCode', - field: 'orgCode', - component: 'Input', - show: false, - }, - - { - label: '单位', - field: 'secondDepart', - component: 'Input', - componentProps: () => { - return { - disabled: true, - }; - }, - }, - { - label: '部门', - field: 'thirdDepart', - component: 'Input', - componentProps: () => { - return { - disabled: true, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写中石油人事系统统一规定的员工编号', - }; - }, - - required: true, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写员工真实姓名,两个字的名字中间不能空隔', - }; - }, - required: true, - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'sex2', - placeholder: '请选择性别', - }), - }, - { - label: '民族', - field: 'empNation', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'nation', - placeholder: '请选择民族', - showSearch: true, - }), - }, - { - label: '出生日期', - field: 'birthday', - component: 'DatePicker', - required: true, - componentProps: () => { - return { - showTime: false, - value: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - placeholder: '请选输出生时间', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, - { - label: '入职时间', - field: 'empWorktime', - component: 'DatePicker', - required: true, - componentProps: () => { - return { - showTime: false, - value: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - placeholder: '请选输参加工作时间', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'position_new', - placeholder: '请选择职位级别,纯专业技术和操作员工的级别为“员工”', - }), - }, - { - label: '岗位层级', - field: 'jobLevel', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ - dictCode: 'job_level', - placeholder: '请选择岗位层级', - }), - }, - { - label: '职称', - field: 'postNew', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'post_new', - placeholder: '请选择职称,操作员工无职称', - }), - }, - { - label: '员工类别', - field: 'empType', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'contract', - placeholder: '请选择员工类别,以长庆油田人事系统规定为准', - }), - }, - { - label: '学历', - field: 'empEducation', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'emp_education', - placeholder: '请选择学历,指人事系统承认的员工现学历', - }), - }, - { - label: '婚姻状况', - field: 'empMarriage', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'mr_state', - placeholder: '请选择婚否', - }), - }, - { - label: '手机号', - field: 'phone', - component: 'Input', - componentProps: () => { - return { - placeholder: '请填写手机号码,必须是11位数字', - }; - }, - rules: [ - // { required: true, message: '请输入联系电话', trigger: 'blur' }, - { - required: true, - pattern: /^1[3456789]\d{9}$/, - message: '手机号码格式有误', - }, - ], - }, - { - label: '邮箱', - required: true, - field: 'email', - component: 'Input', - rules: [{ required: true, pattern: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, message: '邮箱格式有误' }], - }, - { - label: '工作地点', - field: 'workSpace', - required: true, - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - required: true, - dynamicRules: ({ model }) => { - return [ - { - required: true, - pattern: /^(\d{6})(19|20)(\d{2})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(\d{3})([\dXx])$|^\d{6}\*{8}\d{4}$/, - - validator: (_) => { - const genderDigit = parseInt(model.idCard.charAt(16)); - if (genderDigit % 2 !== model.sex % 2) { - return Promise.resolve(); - } else { - return Promise.reject('性别与身份证信息不匹配'); - } - }, - trigger: 'blur', - }, - ]; - }, - rules: [ - { - required: true, - pattern: /^(\d{6})(19|20)(\d{2})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(\d{3})([\dXx])$|^\d{6}\*{8}\d{4}$/, - message: '身份证格式错误', - }, - ], - component: 'Input', - }, - { - label: '健康状况', - field: 'userGroup', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - }), - }, -]; - -export const formSchemaAvater: FormSchema[] = [ - { - label: '', - field: 'avatar', - component: 'JImageUpload', - componentProps: () => { - return { - maxCount: 1, - }; - }, - rules: [{ required: true, message: '请上传头像信息' }], - }, -]; -export const FieldHolder = [ - '', - '', - '请填写中石油人事系统统一规定的员工编号', - '请填写员工真实姓名,两个字的名字中间不能空隔', - '请选择性别', - '请选择民族', - '请选输出生时间', - '请选输参加工作时间', - '请选择职位级别,纯专业技术和操作员工的级别为“员工”', - '请选择岗位层级', - '请选择职称,操作员工无职称', - '请选择员工类别,以长庆油田人事系统规定为准', - '请选择学历,指人事系统承认的员工现学历', - '请选择婚否', - '请填写手机号码,必须是11位数字', - '请输入邮箱', - '请输入工作地点', - '请输入身份证号', - '请选择健康状况', -]; - -export const tabPane = [ - '基本信息', - '健康现状', - '基本体格', - '健康检查', - '个人病史', - '家庭病史', - '膳食情况', - '运动情况', - '吸烟饮酒', - '睡眠情况', - '居住环境', - '健康评估', - '健康干预', - '工作方式', - '心理压力', - '疫苗接种', - '过敏历史', - '中医体质', -]; - -export const tab2schemas: FormSchema[] = [ - { - label: '', - field: 'first', - component: 'Input', - slot: 'first', - }, - { - label: '', - field: 'id', - component: 'Input', - show: false, - }, - { - label: '', - field: 'userId', - component: 'Input', - show: false, - }, - // { - // label: '单位', - // field: 'secondDepart', - // component: 'Input', - // componentProps: () => ({ disabled: true }), - // }, - // { - // label: '部门', - // field: 'depart', - // component: 'Input', - // componentProps: () => ({ disabled: true }), - // }, - // { - // label: '姓名', - // field: 'realName', - // component: 'Input', - // componentProps: () => ({ disabled: true }), - // }, - // { - // label: '身份证号', - // field: 'idCard', - // component: 'Input', - // componentProps: () => ({ disabled: true }), - // }, - { - label: '健康分类', - field: 'userGroup', - component: 'JDictSelectTag', - required: true, - componentProps: () => ({ dictCode: 'user_group' }), - }, - { - label: '', - field: 'second', - component: 'Input', - slot: 'second', - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '住院状态', - field: 'status', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'group_user_status' }), - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '所在医院', - field: 'hospital', - component: 'Input', - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '住院时间', - field: 'hospitalTime', - component: 'DatePicker', - componentProps: () => ({ format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', style: { width: '100%' } }), - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '住院次数', - field: 'hospitalNum', - component: 'InputNumber', - componentProps: () => ({ dictCode: 'user_group', style: { width: '100%' } }), - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '联系人', - field: 'contact', - component: 'Input', - componentProps: () => ({ dictCode: 'user_group' }), - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '联系电话', - field: 'contactMobile', - component: 'Input', - componentProps: () => ({ dictCode: 'user_group' }), - rules: [ - // { required: true, message: '请输入联系电话', trigger: 'blur' }, - { pattern: /^1[3456789]\d{9}$/, message: '手机号码格式有误' }, - ], - ifShow: ({ values }) => ['a', 'b'].includes(values.userGroup), - }, - { - label: '', - field: 'third', - component: 'Input', - slot: 'third', - ifShow: ({ values }) => ['a', 'b', 'c', 'd'].includes(values.userGroup), - }, - { - label: 'A类(大病信息)', - field: 'idCard', - component: 'Input', - slot: 'A', - ifShow: ({ values }) => values.userGroup == 'a', - }, - { - label: 'B类(慢病信息)', - field: 'idCard', - component: 'Input', - slot: 'B', - ifShow: ({ values }) => values.userGroup == 'b', - }, - { - label: 'C类重点指标异常', - field: 'idCard', - component: 'Input', - slot: 'C', - ifShow: ({ values }) => values.userGroup == 'c', - }, - { - label: 'D类(健康风险评估)', - field: 'idCard', - component: 'Input', - slot: 'D', - ifShow: ({ values }) => values.userGroup == 'd', - }, -]; - -export const tab3Arr = [ - { - name: '身高', - unit: 'cm', - label: 'sg0001', - addBtn: true, - type: '1', - }, - { - name: '体重', - unit: 'kg', - addBtn: true, - label: '28306490414597021', - type: '2', - }, - { - name: 'BMI', - unit: '', - addBtn: false, - label: 'bmi0002', - type: '3', - }, - { - name: '腰围', - unit: 'cm', - addBtn: true, - label: '28306490414597019', - type: '4', - }, - { - name: '臀围', - unit: 'cm', - label: 'tw0003', - addBtn: true, - type: '5', - }, - { - name: '臀腰比', - unit: '', - addBtn: false, - label: 'ytb0004', - type: '6', - }, - { - name: '血压', - unit: 'mmHg', - label: '28441759235178556', - addBtn: true, - }, - { - name: '心率', - unit: '次/分钟', - addBtn: true, - label: '28306490414597017', - type: '1', - }, - { - name: '血型', - unit: '型', - addBtn: true, - label: 'xx0005', - }, - { - name: '体温', - unit: '℃', - addBtn: true, - label: 'tw0006', - type: '5', - }, -]; - -export const tab3ForSchema: FormSchema[] = [ - { - label: '身高', - field: 'sg0001', - component: 'Input', - componentProps: () => { - return { - suffix: 'cm', - }; - }, - }, - { - label: '体重', - field: '28306490414597021', - component: 'Input', - componentProps: () => { - return { - suffix: 'kg', - }; - }, - }, - { - label: '腰围', - field: '28306490414597019', - component: 'Input', - componentProps: () => { - return { - suffix: 'cm', - }; - }, - }, - { - label: '臀围', - field: 'tw0003', - component: 'Input', - componentProps: () => { - return { - suffix: 'cm', - }; - }, - }, - { - label: '血压', - field: '28441759235178556', - component: 'Input', - componentProps: () => { - return { - suffix: 'mmHg', - }; - }, - slot: 'xx', - }, - { - label: '心率', - field: '28306490414597017', - component: 'Input', - componentProps: () => { - return { - suffix: '次/分钟', - }; - }, - }, - { - label: '血型', - field: 'xx0005', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'blood_type', - suffix: '型', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '体温', - field: 'tw0006', - component: 'Input', - componentProps: () => { - return { - suffix: '℃', - }; - }, - }, -]; - -export const bloodType = [ - { - label: 'A型', - value: '1', - }, - { - label: 'B型', - value: '2', - }, - { - label: 'O型', - value: '3', - }, - { - label: 'AB型', - value: '4', - }, - { - label: 'RH型', - value: '5', - }, - { - label: '其他', - value: '6', - }, -]; - -export const tab3TrendColumn1: BasicColumn[] = [ - { - title: '更新日期', - dataIndex: 'createDate', - align: 'center', - width: 120, - customRender: ({ text }) => { - return dayjs(text).format('YYYY-MM-DD'); - }, - }, - { - title: '数值', - dataIndex: 'dataValue', - align: 'center', - width: 120, - }, - { - title: '来源', - dataIndex: 'dataSource_dictText', - align: 'center', - width: 120, - }, -]; -export const tab3TrendColumn2: BasicColumn[] = [ - { - title: '更新日期', - dataIndex: 'createTime', - align: 'center', - width: 120, - customRender: ({ text }) => { - return dayjs(text).format('YYYY-MM-DD'); - }, - }, - { - title: '数值', - dataIndex: 'value', - align: 'center', - width: 120, - }, - { - title: '来源', - dataIndex: 'dataSource_dictText', - align: 'center', - width: 120, - }, -]; -export function tab8Column(type) { - const column: BasicColumn[] = [ - { - title: '日期', - dataIndex: 'dataDate', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '步数', - dataIndex: 'stepValue', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '锻炼类型', - dataIndex: 'endTimeStamp', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '距离(米)', - dataIndex: 'distanceValue', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '距离(米)', - dataIndex: 'distance', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '消耗(千卡)', - dataIndex: 'calorieValue', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '消耗热量(千卡)', - dataIndex: 'calorie', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '锻炼开始时间', - dataIndex: 'startTimeStamp', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '锻炼结束时间', - dataIndex: 'endTimeStamp', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '来源', - dataIndex: 'source', - align: 'center', - width: 120, - // ifShow: type == '0', - }, - ]; - return column; -} -export const tab9Column: BasicColumn[] = [ - { - title: '调查日期', - dataIndex: 'createTime', - align: 'center', - width: 120, - }, - { - title: '吸烟状况', - dataIndex: 'smokingStatus', - align: 'center', - width: 120, - customRender: ({ text }) => { - switch (text) { - case 0: - return '吸烟'; - case 1: - return '已戒烟'; - case 2: - return '从不吸烟'; - } - }, - }, - { - title: '每日根数', - dataIndex: 'roots', - align: 'center', - width: 120, - }, - { - title: '问卷内容', - dataIndex: 'detail', - align: 'center', - width: 120, - }, -]; -export const tab9Column1: BasicColumn[] = [ - { - title: '调查日期', - dataIndex: 'createTime', - align: 'center', - width: 120, - }, - { - title: '饮酒状况', - dataIndex: 'drinkStatus', - align: 'center', - width: 120, - customRender: ({ text }) => { - switch (text) { - case 0: - return '喝酒'; - case 1: - return '已戒酒'; - case 2: - return '从不喝酒'; - } - }, - }, - { - title: '饮酒种类', - dataIndex: 'alcoholType', - align: 'center', - width: 120, - customRender: ({ record }) => { - const labels = []; - beerType.forEach((item) => { - const value = record[item.value]; - if (value && value.drinkUnit !== undefined && value.frequency !== undefined) { - labels.push(item.label); - } - }); - - return h( - 'div', - {}, - labels.map((item) => { - return h('div', {}, item); - }) - ); - }, - }, - { - title: '饮酒频次', - dataIndex: 'alcoholFrequency', - align: 'center', - width: 120, - customRender: ({ record }) => { - const drinkUnits = []; - beerType.forEach((item) => { - const value = record[item.value]; - if (value && value.drinkUnit !== undefined && value.frequency !== undefined) { - drinkUnits.push(value.drinkUnit); - } - }); - - return h( - 'div', - {}, - drinkUnits.map((item) => { - return h('div', {}, item + '次/周'); - }) - ); - }, - }, - { - title: '饮酒量', - dataIndex: 'alcoholAmount', - align: 'center', - width: 120, - customRender: ({ record }) => { - const frequencies = []; - beerType.forEach((item) => { - const value = record[item.value]; - if (value && value.drinkUnit !== undefined && value.frequency !== undefined) { - frequencies.push(value.frequency); - } - }); - - return h( - 'div', - {}, - frequencies.map((item) => { - return h('div', {}, item + '两/次'); - }) - ); - }, - }, - { - title: '问卷内容', - dataIndex: 'detail', - align: 'center', - width: 120, - }, -]; -export const beerType = [ - { - label: '红酒', - value: 'wine', - }, - { - label: '黄酒', - value: 'yellowWine', - }, - { - label: '啤酒', - value: 'beer', - }, - { - label: '白酒', - value: 'liquors', - }, - { - label: '其他', - value: 'otherWine', - }, -]; - -export const tab10Column1: BasicColumn[] = [ - { - title: '睡眠类型', - dataIndex: 'sleepType_dictText', - align: 'center', - width: 120, - }, - { - title: '睡眠时长(分钟)', - dataIndex: 'times', - align: 'center', - width: 120, - }, - { - title: '睡眠开始时间', - dataIndex: 'startTime', - align: 'center', - width: 120, - }, - { - title: '睡眠结束时间', - dataIndex: 'endTime', - align: 'center', - width: 120, - }, - { - title: '来源', - dataIndex: 'from', - align: 'center', - width: 120, - }, -]; - -export const tab10Column2: BasicColumn[] = [ - { - title: '调查日期', - dataIndex: 'dataDate', - align: 'center', - width: 120, - }, - { - title: '睡眠质量', - dataIndex: 'sleepQuality', - align: 'center', - width: 120, - }, - { - title: '每日睡眠时长(小时)', - dataIndex: 'sleepTime', - align: 'center', - width: 120, - }, - { - title: '服用药物情况', - dataIndex: 'drugSituation', - align: 'center', - width: 120, - }, - { - title: '问卷内容', - dataIndex: 'detail', - align: 'center', - width: 120, - }, -]; -export const tab12Column: BasicColumn[] = [ - { - title: '评估时间', - dataIndex: 'createTime', - align: 'center', - width: 120, - }, - { - title: '体重指数', - dataIndex: 'bmi', - align: 'center', - width: 120, - }, - { - title: '缺血性心血管病', - dataIndex: 'ischemicCardiovascular_dictText', - align: 'center', - width: 120, - }, - { - title: '糖尿病', - dataIndex: 'diabetes_dictText', - align: 'center', - width: 120, - }, - { - title: '肺癌', - dataIndex: 'lungCancer_dictText', - align: 'center', - width: 120, - }, - { - title: '高血压', - dataIndex: 'hypertension_dictText', - align: 'center', - width: 120, - }, - { - title: '代谢综合征', - dataIndex: 'metabolicSyndrome_dictText', - align: 'center', - width: 120, - }, - { - title: '下载报告', - dataIndex: 'report', - align: 'center', - width: 120, - }, - { - title: '问卷详情', - dataIndex: 'detail', - align: 'center', - width: 120, - }, -]; - -export function tab15Column(type) { - const column: BasicColumn[] = [ - { - title: '评估时间', - dataIndex: 'createTime', - align: 'center', - width: 120, - }, - { - title: '健康评分', - dataIndex: 'grade', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '评估类型', - dataIndex: 'type', - align: 'center', - width: 120, - ifShow: type == '1', - customRender: ({ text }) => { - if (text == '1') return '焦虑'; - if (text == '2') return '抑郁'; - }, - }, - { - title: '评分等级', - dataIndex: 'phyGradeLevel_dictText', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '评分等级', - dataIndex: 'scoreDesc', - align: 'center', - ifShow: type == '1', - customRender: ({ record, text }) => { - if (record.type == '1') { - if (text == 1) { - return '正常水平'; - } else if (text == 2) { - return '轻度焦虑'; - } else if (text == 3) { - return '中度焦虑'; - } else if (text == 4) { - return '中重度焦虑'; - } else if (text == 5) { - return '重度焦虑'; - } - } - if (record.type == '2') { - if (text == 1) { - return '无抑郁'; - } else if (text == 2) { - return '轻度抑郁'; - } else if (text == 3) { - return '中度抑郁'; - } else if (text == 4) { - return '中重度抑郁'; - } else if (text == 5) { - return '重度抑郁'; - } - } - }, - width: 120, - }, - { - title: '得分', - dataIndex: 'score', - align: 'center', - width: 120, - ifShow: type == '1', - }, - { - title: '下载报告', - dataIndex: 'report', - align: 'center', - width: 120, - ifShow: type == '0', - }, - { - title: '问卷详情', - dataIndex: 'detail', - align: 'center', - width: 120, - ifShow: type == '0', - }, - ]; - return column; -} - -export const tab16Column: BasicColumn[] = [ - { - title: '接种日期', - dataIndex: 'vaccineDate', - align: 'center', - width: 120, - }, - { - title: '接种名称', - dataIndex: 'vaccineType_dictText', - align: 'center', - width: 120, - }, - { - title: '接种机构', - dataIndex: 'organization', - align: 'center', - width: 120, - }, - { - title: '是否产生抗体', - dataIndex: 'antibody', - align: 'center', - customRender: ({ text }) => { - if (text == '0') return '否'; - if (text == '1') return '是'; - }, - width: 120, - }, - { - title: '备注', - dataIndex: 'notes', - align: 'center', - width: 120, - }, -]; - -export const tab16Schemas: FormSchema[] = [ - { - label: '接种日期', - field: 'vaccineDate', - component: 'DatePicker', - componentProps: () => ({ format: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD', style: { width: '100%' } }), - required: true, - }, - { - label: '接种名称', - field: 'vaccineType', - required: true, - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'vaccine_type', - }), - }, - { - label: '接种机构', - field: 'organization', - required: true, - component: 'Input', - }, - { - label: '是否产生抗体', - field: 'antibody', - required: true, - component: 'Select', - componentProps: () => ({ - options: [ - { label: '否', value: '0' }, - { label: '是', value: '1' }, - ], - }), - }, - { - label: '备注', - field: 'notes', - component: 'InputTextArea', - componentProps: () => ({ - rows: 4, - }), - }, -]; - -export const tab4ReportColumns: BasicColumn[] = [ - { - title: '体检年度', - dataIndex: 'medicalYear', - }, - { - title: '体检日期', - dataIndex: 'peQueueDate', - }, - { - title: '体检医院', - dataIndex: 'hospitalName', - }, - { - title: '审核时间', - dataIndex: 'auditDate', - }, - { - title: '报告上传时间', - dataIndex: 'createDate', - }, - { - title: '报告查看', - dataIndex: 'look', - }, - { - title: '报告下载', - dataIndex: 'downLoad', - }, -]; - -const formType = [ - { label: '门诊档案', value: '0' }, - { label: '住院档案', value: '1' }, - { label: '健康检查(五类人群)', value: '2' }, -]; -export const tab5ReportColumns1: BasicColumn[] = [ - { - title: '诊断日期', - dataIndex: 'diagnosisDate', - }, - { - title: '疾病名称', - dataIndex: 'illness', - }, - { - title: '就诊医院', - dataIndex: 'hospital', - }, - { - title: '诊断来源', - dataIndex: 'type', - customRender: ({ text }) => { - return getName(text, formType); - }, - }, -]; -export const tab5ReportColumns2: BasicColumn[] = [ - { - title: '诊断日期', - dataIndex: 'diagnosisDate', - }, - { - title: '疾病名称', - dataIndex: 'illness', - }, - { - title: '就诊医院', - dataIndex: 'hospital', - }, - { - title: '就诊医生', - dataIndex: 'doctor', - }, - { - title: '健康问题', - dataIndex: 'diagnosis', - }, - { - title: '医生建议', - dataIndex: 'doctorAdvice', - }, -]; -export const tab5ReportColumns3: BasicColumn[] = [ - { - title: '入院日期', - dataIndex: 'diagnosisDate', - }, - { - title: '疾病名称', - dataIndex: 'illness', - }, - { - title: '住院医院', - dataIndex: 'hospital', - }, - { - title: '出院日期', - dataIndex: 'recoveredDate', - }, - { - title: '出院诊断', - dataIndex: 'diagnosis', - }, - { - title: '出院医嘱', - dataIndex: 'doctorAdvice', - }, -]; -export const tab5FormSchema1: FormSchema[] = [ - { - field: 'id', - label: '', - component: 'Input', - show: false, - }, - { - field: 'diagnosisDate', - label: '诊断日期', - component: 'DatePicker', - componentProps: () => { - return { - format: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - }; - }, - required: true, - ifShow: ({ values }) => values.type === '0', - }, - { - field: 'hospital', - label: '就诊医院', - component: 'Input', - required: true, - ifShow: ({ values }) => values.type === '0', - }, - { - field: 'doctor', - label: '就诊医生', - component: 'Input', - required: true, - ifShow: ({ values }) => values.type === '0', - }, - { - field: 'diagnosisDate', - label: '入院日期', - component: 'DatePicker', - componentProps: () => { - return { - format: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - }; - }, - required: true, - ifShow: ({ values }) => values.type !== '0', - }, - { - field: 'hospital', - label: '住院医院', - component: 'Input', - required: true, - ifShow: ({ values }) => values.type !== '0', - }, - { - field: 'recoveredDate', - label: '出院日期', - component: 'DatePicker', - componentProps: () => { - return { - format: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - }; - }, - required: true, - ifShow: ({ values }) => values.type !== '0', - }, - { - field: 'type', - label: '', - component: 'Input', - defaultValue: '1', - show: false, - }, -]; -export const tab5FormSchema2: FormSchema[] = [ - { - field: 'diagnosis', - label: '健康问题', - component: 'InputTextArea', - componentProps: () => { - return { - rows: 5, - }; - }, - required: true, - ifShow: ({ values }) => values.type === '0', - }, - { - field: 'doctorAdvice', - label: '医生建议', - component: 'InputTextArea', - componentProps: () => { - return { - rows: 5, - }; - }, - required: true, - ifShow: ({ values }) => values.type === '0', - }, - { - field: 'diagnosis', - label: '出院诊断', - component: 'InputTextArea', - componentProps: () => { - return { - rows: 5, - }; - }, - required: true, - ifShow: ({ values }) => values.type !== '0', - }, - { - field: 'doctorAdvice', - label: '出院医嘱', - component: 'InputTextArea', - componentProps: () => { - return { - rows: 5, - }; - }, - required: true, - ifShow: ({ values }) => values.type !== '0', - }, - { - field: 'illness', - label: '诊断疾病', - component: 'Input', - componentProps: () => { - return {}; - }, - required: true, - }, - { - field: 'type', - label: '', - component: 'Input', - defaultValue: '1', - show: false, - }, -]; diff --git a/src/views/archivesManage/employee/fileMaintenance/maintenance.vue b/src/views/archivesManage/employee/fileMaintenance/maintenance.vue deleted file mode 100644 index cc3ebe8..0000000 --- a/src/views/archivesManage/employee/fileMaintenance/maintenance.vue +++ /dev/null @@ -1,145 +0,0 @@ - - diff --git a/src/views/archivesManage/institution/belonging/fivePeople/components/detailDrawer.vue b/src/views/archivesManage/institution/belonging/fivePeople/components/detailDrawer.vue deleted file mode 100644 index 5d052e8..0000000 --- a/src/views/archivesManage/institution/belonging/fivePeople/components/detailDrawer.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.api.ts b/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.api.ts deleted file mode 100644 index 5e48c84..0000000 --- a/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.api.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfo = '/health-system/user/info/page', - userStat = '/health-system/archives/user/stat/group', - detailA = '/health-archives/archives/groupUserA/list', - detailB = '/health-archives/archives/groupUserB/list', - detailC = '/health-archives/archives/groupUserC/list', - detailD = '/health-archives/archives/groupUserD/list', - groupUserExtByUserId = '/archives/groupUserExt/groupUserExtByUserId', -} - -export const userInfoApi = (params) => defHttp.get({ url: Api.userInfo, params }); -export const userStatApi = (params) => defHttp.get({ url: Api.userStat, params }); - -export const detailAApi = (params) => defHttp.get({ url: Api.detailA, params }, { joinParamsToUrl: true }); -export const detailBApi = (params) => defHttp.get({ url: Api.detailB, params }, { joinParamsToUrl: true }); -export const detailCApi = (params) => defHttp.get({ url: Api.detailC, params }, { joinParamsToUrl: true }); -export const detailDApi = (params) => defHttp.get({ url: Api.detailD, params }, { joinParamsToUrl: true }); -export const groupUserExtByUserIdApi = (params) => defHttp.get({ url: Api.groupUserExtByUserId, params }, { joinParamsToUrl: true }); diff --git a/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.data.ts b/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.data.ts deleted file mode 100644 index b352192..0000000 --- a/src/views/archivesManage/institution/belonging/fivePeople/fivePeople.data.ts +++ /dev/null @@ -1,330 +0,0 @@ -import { BasicColumn, formSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 80, - align: 'center', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '健康分类', - dataIndex: 'userGroup_dictText', - width: 80, - align: 'center', - }, - { - title: '职位', - dataIndex: 'postNew_dictText', - width: 80, - align: 'center', - }, - { - title: '岗位层级', - dataIndex: 'jobLevel_dictText', - width: 120, - align: 'center', - }, - { - title: '政治面貌', - dataIndex: 'empPolitical_dictText', - width: 100, - align: 'center', - }, - { - title: '民族', - dataIndex: 'empNation_dictText', - width: 80, - align: 'center', - }, - { - title: '婚姻状况', - dataIndex: 'empMarriage_dictText', - width: 80, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '更新时间', - dataIndex: 'userGroupUpdateTime', - width: 150, - align: 'center', - }, - { - title: '详情', - dataIndex: 'detail', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: formSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageFindType = data.selectValue; - formModel.ageStat = data.inputValue1; - if (data.selectValue == '2') { - formModel.ageEnd = data.inputValue2; - } - }, - optionsType: '2', - }; - }, - }, - { - label: '', - field: 'ageFindType', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageStat', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageEnd', - component: 'Input', - show: false, - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - { - label: '健康现状', - field: 'userGroup', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - getPopupContainer: () => document.body, - }), - }, -]; - -export const BasicInfo = [ - { - label: '单位', - field: 'secondDepart', - }, - { - label: '部门', - field: 'thirdDepart', - }, - { - label: '姓名', - field: 'realname', - }, - { - label: '身份证号', - field: 'idCard', - }, - { - label: '健康分类', - field: 'userGroup_dictText', - }, -]; - -export const inHospitalInfo = [ - { - label: '住院状态', - field: 'status_dictText', - }, - { - label: '所在医院', - field: 'hospital', - }, - { - label: '住院时间', - field: 'hospitalTime', - }, - { - label: '住院次数', - field: 'hospitalNum', - }, - { - label: '联系人', - field: 'contact', - }, - { - label: '联系电话', - field: 'contactMobile', - }, -]; - -export const classInfoColumnA = [ - { - title: '大病名称', - field: 'name_dictText', - }, - { - title: '确诊年份', - field: 'time', - }, - { - title: '确诊医院', - field: 'hospital', - }, - { - title: '大病状态', - field: 'status_dictText', - }, - { - title: '治疗情况', - field: 'cure', - }, -]; -export const classInfoColumnB = [ - { - title: '慢病名称', - field: 'name_dictText', - }, - { - title: '确诊年份', - field: 'time', - }, - { - title: '确诊医院', - field: 'hospital', - }, - { - title: '治疗情况', - field: 'cure', - }, -]; -export const classInfoColumnC = [ - { - title: '指标名称', - field: 'name', - }, - { - title: '指标值', - field: 'value', - }, - { - title: '参考范围', - field: 'scope', - }, - { - title: '确诊年份', - field: 'time', - }, - { - title: '确诊医院', - field: 'hospital', - }, -]; -export const classInfoColumnD = [ - { - title: '疾病名称', - field: 'name', - }, - { - title: '风险等级', - field: 'levelDesc', - }, - { - title: '评估年份', - field: 'time', - }, -]; diff --git a/src/views/archivesManage/institution/belonging/fivePeople/fivePeopleList.vue b/src/views/archivesManage/institution/belonging/fivePeople/fivePeopleList.vue deleted file mode 100644 index 1903fa8..0000000 --- a/src/views/archivesManage/institution/belonging/fivePeople/fivePeopleList.vue +++ /dev/null @@ -1,73 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/depart/components/tableList.vue b/src/views/archivesManage/institution/institutionInfomation/depart/components/tableList.vue deleted file mode 100644 index bd9f34a..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/depart/components/tableList.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/depart/depart.api.ts b/src/views/archivesManage/institution/institutionInfomation/depart/depart.api.ts deleted file mode 100644 index 442766c..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/depart/depart.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-system/archives/depart/page', - map = '/health-system/archives/depart/map', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const mapApi = (params: any) => defHttp.get({ url: Api.map, params }); diff --git a/src/views/archivesManage/institution/institutionInfomation/depart/depart.data.ts b/src/views/archivesManage/institution/institutionInfomation/depart/depart.data.ts deleted file mode 100644 index 4af1924..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/depart/depart.data.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const getColumn = (type = '0') => { - return [ - { - title: '单位名称', - dataIndex: 'name', - width: 200, - fixed: 'left', - }, - { - title: '详细地址', - dataIndex: 'address', - align: 'left', - }, - { - title: '电话', - dataIndex: '', - width: 150, - ifShow: type === '0', - }, - { - title: '下级机构数量', - dataIndex: 'childNum', - width: 120, - ifShow: type === '0', - }, - { - title: '员工数量', - dataIndex: 'userNum', - width: 120, - }, - ] as BasicColumn[]; -}; - -export const getSearchFormSchema = (type = '0') => { - console.log(type); - return [ - { - label: '单位', - field: 'parentCode', - component: 'Input', - componentProps: () => { - return { - getPopupContainer: () => document.body, - }; - }, - slot: 'parentCodeSlot', - }, - ] as FormSchema[]; -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/depart/departList.vue b/src/views/archivesManage/institution/institutionInfomation/depart/departList.vue deleted file mode 100644 index 0ca80db..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/depart/departList.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.api.ts b/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.api.ts deleted file mode 100644 index 56bc157..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - page = '/health-emergency/archives/page', - yearsStatistic = '/health-emergency/archives/years-statistic', - geo = '/health-emergency/archives/geo', -} - -export const pageApi = (params) => defHttp.get({ url: Api.page, params }); -export const geoApi = (params) => defHttp.get({ url: Api.geo, params }); - -export const yearsStatisticApi = (params) => defHttp.get({ url: Api.yearsStatistic, params }); diff --git a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.data.ts b/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.data.ts deleted file mode 100644 index 4efa7c5..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.data.ts +++ /dev/null @@ -1,114 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import dayjs from 'dayjs'; -import moment from 'moment/moment'; - -export const getColumns = (date: any) => { - const columns: BasicColumn[] = [ - { - title: '医院名称', - dataIndex: 'name', - align: 'center', - width: 120, - }, - { - title: '医院等级', - dataIndex: 'level_dictText', - align: 'center', - width: 120, - }, - { - title: '详细地址', - dataIndex: 'address', - align: 'left', - width: 200, - }, - { - title: '在院派驻人员数量', - dataIndex: 'address', - align: 'center', - width: 120, - customRender: () => { - return '-'; - }, - }, - { - title: `今年服务人次(${dayjs(date).format('YYYY')})`, - dataIndex: 'thisYearSum', - align: 'center', - width: 120, - }, - { - title: '累计服务人次', - dataIndex: 'allSum', - align: 'center', - width: 120, - }, - { - title: '历年服务人次变化', - dataIndex: 'notThisYear', - align: 'center', - width: 120, - }, - ]; - return columns; -}; - -export const searchFormSchema: FormSchema[] = [ - { - label: '医院名称', - field: 'resourceName', - component: 'Input', - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '医院等级', - field: 'level', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'hospital_level' }), - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - // { - // label: '专家人数', - // field: '', - // component: 'Input', - // show: ({ values }) => { - // return values.showType !== '1'; - // }, - // }, - { - label: '查询年份', - field: 'year', - component: 'DatePicker', - show: ({ values }) => { - return values.showType !== '1'; - }, - componentProps: { - showTime: false, - valueFormat: 'YYYY', - picker: 'year', - allowClear: false, - getPopupContainer: () => document.body, - }, - defaultValue: moment(new Date()).format('YYYY'), - }, - { - label: '', - field: 'showType', - component: 'Input', - defaultValue: '0', - show: false, - }, - { - label: '医院名称', - field: 'resourceName', - component: 'Input', - slot: 'resourceName', - show: ({ values }) => { - return values.showType === '1'; - }, - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.vue b/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.vue deleted file mode 100644 index 8a7335c..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/emergencyHospital/emergencyHospital.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/expertHospital/component/specialModal.vue b/src/views/archivesManage/institution/institutionInfomation/expertHospital/component/specialModal.vue deleted file mode 100644 index 08de0dd..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/expertHospital/component/specialModal.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.api.ts b/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.api.ts deleted file mode 100644 index fd9e971..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.api.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalList = '/health-consultation/archives/hospital/page', - archivesYearStat = '/health-consultation/archives/hospital/years-statistic', - specialistPage = '/health-consultation/archives/specialist/page', - specialistYearStat = '/health-consultation/archives/specialist/years-statistic', - geo = '/health-consultation/archives/hospital/geo', -} - -export const hospitalListApi = (params) => defHttp.get({ url: Api.hospitalList, params }); -export const geoApi = (params) => defHttp.get({ url: Api.geo, params }); - -export const archivesYearStatApi = (params) => defHttp.get({ url: Api.archivesYearStat, params }); - -export const specialistPageApi = (params) => defHttp.get({ url: Api.specialistPage, params }); -export const specialistYearStatApi = (params) => defHttp.get({ url: Api.specialistYearStat, params }); diff --git a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.data.ts b/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.data.ts deleted file mode 100644 index 9ad143e..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.data.ts +++ /dev/null @@ -1,164 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import dayjs from 'dayjs'; -import moment from 'moment/moment'; - -export const getColumns = (date: any) => { - const columns: BasicColumn[] = [ - { - title: '医院名称', - dataIndex: 'resourceName', - align: 'center', - width: 120, - }, - { - title: '医院等级', - dataIndex: 'level_dictText', - align: 'center', - width: 120, - }, - { - title: '详细地址', - dataIndex: 'address', - align: 'center', - width: 200, - }, - { - title: '专家人数', - dataIndex: 'specialistSum', - align: 'center', - width: 120, - }, - { - title: `今年服务人次(${dayjs(date).format('YYYY')})`, - dataIndex: 'thisYearSessionSum', - align: 'center', - width: 120, - }, - { - title: '累计服务人次', - dataIndex: 'allSessionSum', - align: 'center', - width: 120, - }, - { - title: '历年服务人次变化', - dataIndex: 'notThisYear', - align: 'center', - width: 120, - }, - ]; - return columns; -}; - -export const searchFormSchema: FormSchema[] = [ - { - label: '医院名称', - field: 'resourceName', - component: 'Input', - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '医院等级', - field: 'orgCode', - component: 'Input', - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - // { - // label: '专家人数', - // field: 'specialistSum', - // component: 'Input', - // show: ({ values }) => { - // return values.showType !== '1'; - // }, - // }, - { - label: '查询年份', - field: 'year', - component: 'DatePicker', - show: ({ values }) => { - return values.showType !== '1'; - }, - componentProps: { - showTime: false, - valueFormat: 'YYYY', - picker: 'year', - allowClear: false, - getPopupContainer: () => document.body, - }, - defaultValue: moment(new Date()).format('YYYY'), - }, - { - label: '', - field: 'showType', - component: 'Input', - defaultValue: '0', - show: false, - }, - { - label: '医院名称', - field: 'resourceName', - component: 'Input', - slot: 'resourceName', - show: ({ values }) => { - return values.showType === '1'; - }, - }, -]; - -export const specialColumns = (date: any) => { - const columns: BasicColumn[] = [ - { - title: '姓名', - dataIndex: 'doctorName', - align: 'center', - width: 120, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - align: 'center', - width: 120, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 120, - }, - { - title: '科室', - dataIndex: 'departmentName', - align: 'center', - width: 100, - }, - { - title: '职称', - dataIndex: 'doctorTitle_dictText', - align: 'center', - width: 100, - }, - { - title: `今年服务人次(${dayjs(date).format('YYYY')})`, - dataIndex: 'thisYearSessionSum', - align: 'center', - width: 120, - }, - { - title: '累计服务人次', - dataIndex: 'allSessionSum', - align: 'center', - width: 100, - }, - { - title: '历年服务人次变化', - dataIndex: 'noThisYear', - align: 'center', - width: 120, - }, - ]; - return columns; -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.vue b/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.vue deleted file mode 100644 index 25163ca..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/expertHospital/expertHospital.vue +++ /dev/null @@ -1,235 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.api.ts b/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.api.ts deleted file mode 100644 index c0250f5..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - archivesPage = '/medical-center/archives/page', - archivesYearStat = '/medical-center/archives/years-statistic', - archivesGeo = '/medical-center/archives/geo', -} - -export const archivesPageApi = (params) => defHttp.get({ url: Api.archivesPage, params }); -export const archivesYearStatApi = (params) => defHttp.get({ url: Api.archivesYearStat, params }); - -export const archivesGeoApi = (params) => defHttp.get({ url: Api.archivesGeo, params }); diff --git a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.data.ts b/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.data.ts deleted file mode 100644 index 1facc49..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.data.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import dayjs from 'dayjs'; -import moment from 'moment/moment'; - -export const getColumns = (date: any) => { - const columns: BasicColumn[] = [ - { - title: '医疗点名称', - dataIndex: 'name', - align: 'center', - width: 120, - }, - { - title: '所属单位', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '详细地址', - dataIndex: 'address', - align: 'center', - width: 200, - }, - { - title: '医护人员数量', - dataIndex: 'medicalStaffNum', - align: 'center', - width: 120, - }, - { - title: '救护车数量', - dataIndex: 'ambulanceNum', - align: 'center', - width: 120, - }, - { - title: `当年诊疗人次(${dayjs(date).format('YYYY')})`, - dataIndex: 'thisYearDiagnosisSum', - align: 'center', - width: 120, - }, - { - title: '累计诊疗人次', - dataIndex: 'allDiagnosisSum', - align: 'center', - width: 120, - }, - { - title: '历年诊疗人次变化', - dataIndex: 'notThisYear', - align: 'center', - width: 120, - }, - ]; - return columns; -}; - -export const searchFormSchema: FormSchema[] = [ - { - label: '', - field: 'showType', - component: 'Input', - defaultValue: '0', - show: false, - }, - { - label: '医疗点名称', - field: 'medicalResourceName', - component: 'Input', - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '查询年份', - field: 'year', - component: 'DatePicker', - componentProps: { - showTime: false, - valueFormat: 'YYYY', - picker: 'year', - allowClear: false, - getPopupContainer: () => document.body, - }, - defaultValue: moment(new Date()).format('YYYY'), - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '医疗点名称', - field: 'medicalName', - component: 'Input', - slot: 'medicalNameSlot', - show: ({ values }) => { - return values.showType === '1'; - }, - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.vue b/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.vue deleted file mode 100644 index 9335602..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/frontlineMedical/frontlineMedical.vue +++ /dev/null @@ -1,222 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.data.ts b/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.data.ts deleted file mode 100644 index b97e7dd..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.data.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import dayjs from 'dayjs'; - -export const getColumns = (date: any) => { - const columns: BasicColumn[] = [ - { - title: '序号', - dataIndex: 'id', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '医院名称', - dataIndex: 'name', - width: 120, - }, - { - title: '医院地址', - dataIndex: 'address', - width: 160, - }, - { - title: `今年体检人数(${dayjs(date).format('YYYY')})`, - dataIndex: 'address', - width: 120, - }, - { - title: '累计体检人数', - dataIndex: 'address', - width: 120, - }, - { - title: '历年承检人数变化', - dataIndex: 'yearAll', - width: 120, - }, - ]; - return columns; -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.vue b/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.vue deleted file mode 100644 index ada39a3..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/medicalHospital/medicalHospital.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.api.ts deleted file mode 100644 index 132550b..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.api.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - recordTreeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', - restaurantList = '/foodNourishmentReport/getRestaurantList', - views = '/foodNourishmentReport/getEquipmentReportListDetailView/v3', -} - -// 所有部门 -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.recordTreeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -// 所有食堂 -export const getRestaurantList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.restaurantList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -export const getViews = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.views, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.data.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.data.ts deleted file mode 100644 index 6ae68e0..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.data.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '设备名称', - align: 'center', - dataIndex: 'equipmentName', - }, - { - title: '设备编号', - align: 'center', - dataIndex: 'deviceNumber', - }, - { - title: '设备状态', - align: 'center', - dataIndex: 'deviceStatus', - customRender: ({ text }) => { - const txt = text === '1' ? `正常` : ` 离线 `; - return h('div', { - innerHTML: txt, - }); - }, - }, - { - title: '使用时间', - align: 'center', - dataIndex: 'days', - }, - { - title: '餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '使用时间段', - align: 'center', - dataIndex: 'useTime', - }, - { - title: '使用时长(分钟)', - align: 'center', - dataIndex: 'useMin', - }, - { - title: '使用人次', - align: 'center', - dataIndex: 'useManTime', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备名称', - field: '1', - component: 'Input', - }, - { - label: '设备编号', - field: '2', - component: 'Input', - }, - { - label: '设备状态', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '离线', value: '1' }, - { label: '正常', value: '2' }, - ], - }; - }, - }, - { - label: '餐次', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '早餐', value: '早餐' }, - { label: '午餐', value: '午餐' }, - { label: '晚餐', value: '晚餐' }, - { label: '加餐', value: '加餐' }, - ], - }; - }, - }, - { - label: '总使用时长(分钟)', - field: 'useMinAndUseMinType', - component: 'InputGroup', - slot: 'useMinAndUseMinType', - }, - { - label: '总使用人次', - field: 'useManTimeAndUseManTimeType', - component: 'InputGroup', - slot: 'useManTimeAndUseManTimeType', - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.vue deleted file mode 100644 index e9c17bb..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/gui/gui.vue +++ /dev/null @@ -1,580 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.api.ts deleted file mode 100644 index 17d3ebf..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getBaseRestaurantAddressInfo', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.vue deleted file mode 100644 index 89c03c9..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/map/mapPage.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.api.ts deleted file mode 100644 index cd00b5c..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - info = '/foodNourishmentReport/oneCanteenInfo', -} - -/** - * 列表接口 - * @param params - */ -export const getInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.info, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.vue deleted file mode 100644 index 3a78ea5..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapDrawer/mapDrawer.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.api.ts deleted file mode 100644 index abd8661..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - canteenDepartNameList = '/foodNourishmentReport/getCanteenDepartNameList', -} - -/** - * 部门 - * @param params - */ -export const getCanteenDepartNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.canteenDepartNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.data.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.data.ts deleted file mode 100644 index e7b9f69..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.data.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getCanteenDepartNameList } from './mapSearch.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - required: true, - field: 'departId', - component: 'ApiSelect', - componentProps: { - api: getCanteenDepartNameList, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - labelField: 'departName', - valueField: 'departId', - getPopupContainer: () => document.body, - }, - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.vue deleted file mode 100644 index cb70c8d..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/mapSearch/mapSearch.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.api.ts deleted file mode 100644 index 1f296ae..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.api.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/userCanteenDepart', - total = '/foodNourishmentReport/totalCanteenNum', - canteenOneDepartList = '/foodNourishmentReport/userCanteenOneDepartList', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const totalCanteenNum = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.total, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const userCanteenOneDepartList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.canteenOneDepartList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.data.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.data.ts deleted file mode 100644 index 5f5ccba..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.data.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, - { - title: '单位', - align: 'left', - width: 300, - dataIndex: 'departName', - }, - { - title: '', - align: 'center', - dataIndex: 'canteenNum', - }, -]; - -//列表数据 -export const columns_: BasicColumn[] = [ - { - title: '食堂名称', - align: 'center', - dataIndex: 'restName', - }, - { - title: '管理部门', - align: 'center', - dataIndex: 'departName', - }, - { - title: '营养监控设备台数', - align: 'center', - dataIndex: 'deviceNum', - }, - { - title: '设备运行状态(异常/正常)', - align: 'center', - dataIndex: 'deviceStatus', - }, - { - title: '开展营养监控人数', - align: 'center', - dataIndex: 'eatPersonNum', - }, - { - title: '食堂就餐人数', - align: 'center', - dataIndex: 'personNum', - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.vue deleted file mode 100644 index 0774741..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/table/tablePage.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.api.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.api.ts deleted file mode 100644 index abd8661..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - canteenDepartNameList = '/foodNourishmentReport/getCanteenDepartNameList', -} - -/** - * 部门 - * @param params - */ -export const getCanteenDepartNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.canteenDepartNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.data.ts b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.data.ts deleted file mode 100644 index aab14d9..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.data.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getCanteenDepartNameList } from './tableSearch.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - required: true, - field: 'departId', - component: 'ApiSelect', - componentProps: { - api: getCanteenDepartNameList, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - labelField: 'departName', - valueField: 'departId', - getPopupContainer: () => document.body, - }, - }, - { - label: '食堂数量', - field: 'canteenNumAndCanteenNumType', - component: 'InputGroup', - slot: 'canteenNumAndCanteenNumType', - }, -]; diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.vue deleted file mode 100644 index 6deec6e..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/components/tableSearch/tableSearch.vue +++ /dev/null @@ -1,123 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/staffCanteen.vue b/src/views/archivesManage/institution/institutionInfomation/staffCanteen/staffCanteen.vue deleted file mode 100644 index 916f8be..0000000 --- a/src/views/archivesManage/institution/institutionInfomation/staffCanteen/staffCanteen.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/timeService/components/environmentModal.vue b/src/views/archivesManage/institution/timeService/components/environmentModal.vue deleted file mode 100644 index 1997281..0000000 --- a/src/views/archivesManage/institution/timeService/components/environmentModal.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/components/serviceMap.vue b/src/views/archivesManage/institution/timeService/components/serviceMap.vue deleted file mode 100644 index 322bf82..0000000 --- a/src/views/archivesManage/institution/timeService/components/serviceMap.vue +++ /dev/null @@ -1,235 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/consult/components/consultModal.vue b/src/views/archivesManage/institution/timeService/consult/components/consultModal.vue deleted file mode 100644 index 6235308..0000000 --- a/src/views/archivesManage/institution/timeService/consult/components/consultModal.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/consult/consult.api.ts b/src/views/archivesManage/institution/timeService/consult/consult.api.ts deleted file mode 100644 index 238d98d..0000000 --- a/src/views/archivesManage/institution/timeService/consult/consult.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-consultation/archives/hospital/geo', - statistics = '/health-consultation/archives/consultation/statistics', - userPage = '/health-consultation/archives/consultation/user-page', - yearPage = '/health-consultation/archives/specialist/page', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const statisticsApi = (params: any) => defHttp.get({ url: Api.statistics, params }); -export const userPageApi = (params: any) => defHttp.get({ url: Api.userPage, params }); -export const yearPageApi = (params: any) => defHttp.get({ url: Api.yearPage, params }); diff --git a/src/views/archivesManage/institution/timeService/consult/consult.data.ts b/src/views/archivesManage/institution/timeService/consult/consult.data.ts deleted file mode 100644 index 359fe02..0000000 --- a/src/views/archivesManage/institution/timeService/consult/consult.data.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import dayjs from 'dayjs'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns1: BasicColumn[] = [ - { - title: '姓名', - dataIndex: 'doctorName', - }, - { - title: '性别', - dataIndex: 'sex', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - }, - { - title: '年龄', - dataIndex: 'age', - }, - { - title: '科室', - dataIndex: 'departmentName', - }, - { - title: '职称', - dataIndex: 'doctorJob_dictText', - }, - { - title: `当年服务人次(${dayjs().format('YYYY')})`, - dataIndex: 'thisYearSessionSum', - }, - { - title: '累计服务人次', - dataIndex: 'allSessionSum', - }, -]; -export const columns2: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDeptName', - }, - { - title: '部门', - dataIndex: 'thirdDeptName', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 100, - }, - { - title: '工号', - dataIndex: 'workNo', - width: 100, - }, - { - title: '性别', - dataIndex: 'sex', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - }, - { - title: '最近咨询时间', - dataIndex: 'lastSessionDate', - }, - { - title: '累计咨询次数', - dataIndex: 'sessionCount', - }, -]; diff --git a/src/views/archivesManage/institution/timeService/consult/consult.vue b/src/views/archivesManage/institution/timeService/consult/consult.vue deleted file mode 100644 index 053d8ca..0000000 --- a/src/views/archivesManage/institution/timeService/consult/consult.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/emergency/components/emergencyModal.vue b/src/views/archivesManage/institution/timeService/emergency/components/emergencyModal.vue deleted file mode 100644 index 330c93f..0000000 --- a/src/views/archivesManage/institution/timeService/emergency/components/emergencyModal.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/emergency/emergency.api.ts b/src/views/archivesManage/institution/timeService/emergency/emergency.api.ts deleted file mode 100644 index fd6d791..0000000 --- a/src/views/archivesManage/institution/timeService/emergency/emergency.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-emergency/archives/emergency/centers', - listInfo = '/health-emergency/emergency/order/list', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const listInfoApi = (params: any) => defHttp.get({ url: Api.listInfo, params }); diff --git a/src/views/archivesManage/institution/timeService/emergency/emergency.data.ts b/src/views/archivesManage/institution/timeService/emergency/emergency.data.ts deleted file mode 100644 index 580056d..0000000 --- a/src/views/archivesManage/institution/timeService/emergency/emergency.data.ts +++ /dev/null @@ -1,170 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns: BasicColumn[] = [ - { - title: '被救助人', - align: 'center', - dataIndex: 'salvageUserName', - fixed: 'left', - }, - { - title: '单位', - align: 'center', - dataIndex: 'salvageUserSecondDepart', - }, - { - title: '部门', - align: 'center', - dataIndex: 'salvageUserDepart', - }, - { - title: '所属应急中心', - dataIndex: 'centerName', - }, - { - title: '求助方式', - align: 'center', - dataIndex: 'initiatorType', - customRender: ({ text }) => { - return text == '0' ? '120' : text == '1' ? '应急就医' : ''; - }, - }, - { - title: '求助时间', - align: 'center', - dataIndex: 'createTime', - }, - { - title: '员工位置', - align: 'center', - dataIndex: 'initiatorLongitude', - customRender: ({ record }) => { - // @ts-ignore - const { initiatorLongitude, initiatorLatitude } = record; - if (!initiatorLongitude || !initiatorLatitude) { - return ''; - } - return `${initiatorLongitude.toFixed(4)},${initiatorLatitude.toFixed(4)}`; - }, - }, - { - title: '专业人员', - align: 'center', - dataIndex: 'majorUserName', - }, - { - title: '操作人员', - align: 'center', - dataIndex: 'operationUserName', - }, - { - title: '驻场人员', - align: 'center', - dataIndex: 'stationUserName', - }, - { - title: '工单状态', - align: 'center', - dataIndex: 'orderStatus', - customRender: ({ text }) => render.renderDict(text, 'emergency_order_status'), - }, - // { - // title: '派单状态', - // align: 'center', - // dataIndex: 'isDispatch', - // customRender: ({ text }) => render.renderDict(text, 'emergency_order_send_status').children, - // }, - // { - // title: '操作人员电话', - // align:"center", - // dataIndex: 'operationUserMobile' - // }, - - // { - // title: '专业人员电话', - // align:"center", - // dataIndex: 'majorUserMobile' - // }, - // { - // title: '驻场人员', - // align: 'center', - // dataIndex: 'stationUserName', - // }, - // { - // title: '驻场人员部门', - // align:"center", - // dataIndex: 'stationUserDepart' - // }, - // { - // title: '驻场人员派单业务', - // align:"center", - // dataIndex: 'stationBusiness' - // }, - // { - // title: '操作人员响应时间', - // align:"center", - // dataIndex: 'operationResponseTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text) - // }, - // }, - // { - // title: '操作人员派单时间', - // align:"center", - // dataIndex: 'operationSendOrderTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text) - // }, - // }, - // { - // title: '专业人员响应时间', - // align:"center", - // dataIndex: 'majorResponseTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text) - // }, - // }, - // { - // title: '驻场人员响应时间', - // align:"center", - // dataIndex: 'stationResponseTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text) - // }, - // }, - // { - // title: '驻场人员拒单时间', - // align:"center", - // dataIndex: 'stationRejectionTime', - // customRender:({text}) =>{ - // return !text?"":(text.length>10?text.substr(0,10):text) - // }, - // }, - // { - // title: '专业人员救助意见', - // align:"center", - // dataIndex: 'majorSalvageOpinion' - // }, - // { - // title: '派单医院', - // align:"center", - // dataIndex: 'sendOrderHospital' - // }, - // { - // title: '应急单状态', - // align:"center", - // dataIndex: 'orderStatus', - // customRender: ({ text }) => { - // return render.renderDict(text, 'emergency_order_status'); - // }, - // }, - // { - // title: '是否派单', - // align:"center", - // dataIndex: 'isDispatch', - // customRender: ({ text }) => { - // return text == false ? '否' : text == true ? '是' : ''; - // }, - // }, -]; diff --git a/src/views/archivesManage/institution/timeService/emergency/emergency.vue b/src/views/archivesManage/institution/timeService/emergency/emergency.vue deleted file mode 100644 index 9ff812b..0000000 --- a/src/views/archivesManage/institution/timeService/emergency/emergency.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/environment/components/environmentAbnormalModal.vue b/src/views/archivesManage/institution/timeService/environment/components/environmentAbnormalModal.vue deleted file mode 100644 index b3c186a..0000000 --- a/src/views/archivesManage/institution/timeService/environment/components/environmentAbnormalModal.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/environment/environment.api.ts b/src/views/archivesManage/institution/timeService/environment/environment.api.ts deleted file mode 100644 index 347647d..0000000 --- a/src/views/archivesManage/institution/timeService/environment/environment.api.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-intervene/archive/environment/map-list', - statistics = '/health-intervene/archive/environment/statistics', - abnormal = '/health-intervene/archive/environment/abnormal/page', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const statisticsApi = (params: any) => defHttp.get({ url: Api.statistics, params }); -export const abnormalApi = (params: any) => defHttp.get({ url: Api.abnormal, params }); diff --git a/src/views/archivesManage/institution/timeService/environment/environment.data.ts b/src/views/archivesManage/institution/timeService/environment/environment.data.ts deleted file mode 100644 index 6b959d8..0000000 --- a/src/views/archivesManage/institution/timeService/environment/environment.data.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -export const columns: BasicColumn[] = [ - { - title: '设备所属单位', - dataIndex: 'orgName', - }, - { - title: '设备名称', - dataIndex: 'meterName', - }, - { - title: '设备编码', - dataIndex: 'meterCode', - }, - { - title: '设备地址', - dataIndex: 'meterAddress', - }, - { - title: '最后一次回传数据时间', - dataIndex: 'lastMonitorDate', - customRender: ({ text }) => { - return text || '-'; - }, - }, -]; diff --git a/src/views/archivesManage/institution/timeService/environment/environment.vue b/src/views/archivesManage/institution/timeService/environment/environment.vue deleted file mode 100644 index 07ae365..0000000 --- a/src/views/archivesManage/institution/timeService/environment/environment.vue +++ /dev/null @@ -1,604 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/knowledge/knowledge.api.ts b/src/views/archivesManage/institution/timeService/knowledge/knowledge.api.ts deleted file mode 100644 index 909c4be..0000000 --- a/src/views/archivesManage/institution/timeService/knowledge/knowledge.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - knowledgePage = '/health-intervene/archive/knowledge/browse-top', - knowledgeStat = '/health-intervene/archive/knowledge/statistics', -} - -export const knowledgePageApi = (params) => defHttp.get({ url: Api.knowledgePage, params }); -export const knowledgeStatApi = (params) => defHttp.get({ url: Api.knowledgeStat, params }); diff --git a/src/views/archivesManage/institution/timeService/knowledge/knowledge.data.ts b/src/views/archivesManage/institution/timeService/knowledge/knowledge.data.ts deleted file mode 100644 index b1b190b..0000000 --- a/src/views/archivesManage/institution/timeService/knowledge/knowledge.data.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const columns: BasicColumn[] = [ - { - title: '资源名称', - dataIndex: 'title', - width: 120, - align: 'center', - }, - { - title: '内容简介', - dataIndex: 'content', - width: 200, - align: 'center', - }, - { - title: '所属类别', - dataIndex: 'type_dictText', - width: 80, - align: 'center', - }, - { - title: '主讲人姓名', - dataIndex: 'keynoteSpeaker', - width: 120, - align: 'center', - }, - { - title: '主讲人所在机构', - dataIndex: 'speakerDept', - width: 120, - align: 'center', - }, - { - title: '职务职称', - dataIndex: 'duty', - width: 120, - align: 'center', - }, - { - title: '浏览人次', - dataIndex: 'browseCount', - width: 120, - align: 'center', - sorter: { - compare: (a, b) => a.browseCount - b.browseCount, - }, - }, -]; diff --git a/src/views/archivesManage/institution/timeService/knowledge/knowledge.vue b/src/views/archivesManage/institution/timeService/knowledge/knowledge.vue deleted file mode 100644 index 4b116d3..0000000 --- a/src/views/archivesManage/institution/timeService/knowledge/knowledge.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/medical/components/medicalModal.vue b/src/views/archivesManage/institution/timeService/medical/components/medicalModal.vue deleted file mode 100644 index 06f6640..0000000 --- a/src/views/archivesManage/institution/timeService/medical/components/medicalModal.vue +++ /dev/null @@ -1,194 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/medical/medical.api.ts b/src/views/archivesManage/institution/timeService/medical/medical.api.ts deleted file mode 100644 index a030343..0000000 --- a/src/views/archivesManage/institution/timeService/medical/medical.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/medical-center/archives/medical-center/centers', - statistics = '/health-consultation/archives/consultation/statistics', - userPage = '/medical-center/medicalCenter/followUpRecord/list', - yearPage = '/medical-center/medicalCenter/dailyDiagnosis/list', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const statisticsApi = (params: any) => defHttp.get({ url: Api.statistics, params }); -export const userPageApi = (params: any) => defHttp.get({ url: Api.userPage, params }); -export const yearPageApi = (params: any) => defHttp.get({ url: Api.yearPage, params }); diff --git a/src/views/archivesManage/institution/timeService/medical/medical.data.ts b/src/views/archivesManage/institution/timeService/medical/medical.data.ts deleted file mode 100644 index 8328934..0000000 --- a/src/views/archivesManage/institution/timeService/medical/medical.data.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import dayjs from 'dayjs'; -import { render } from '/@/utils/common/renderUtils'; -import { getNotHaveName } from '/@/views/interveneNew/compoents/utils'; - -export const columns1: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'userOrgName', - }, - { - title: '部门', - dataIndex: 'userDepartName', - }, - { - title: '姓名', - dataIndex: 'userName', - width: 90, - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - }, - { - title: '性别', - dataIndex: 'sex', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - width: 60, - }, - { - title: '年龄', - dataIndex: 'age', - width: 60, - }, - { - title: '手机号码', - dataIndex: 'phone', - width: 120, - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 160, - }, - { - title: '就诊医疗点', - dataIndex: 'medicalCenterName', - }, - { - title: '就诊疾病', - dataIndex: 'diagnosisDisease', - }, - { - title: '就诊医生', - dataIndex: 'doctorName', - width: 80, - }, - { - title: '就诊时间', - dataIndex: 'diagnosisDate', - }, - { - title: '就诊内容', - dataIndex: 'nr1', - width: 80, - }, -]; -export const columns2: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'orgName', - }, - { - title: '部门', - dataIndex: 'userDepartName', - }, - { - title: '姓名', - dataIndex: 'userName', - width: 90, - }, - { - title: '员工编号', - dataIndex: 'userNo', - width: 120, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - }, - { - title: '手机号码', - dataIndex: 'telPhone', - width: 120, - }, - { - title: '身份证号', - dataIndex: 'idNo', - width: 160, - }, - { - title: '随访医疗点', - dataIndex: 'medicalName', - }, - { - title: '症状', - dataIndex: 'symptom', - }, - { - title: '随访形式', - dataIndex: 'followUp', - customRender: ({ text }) => { - return getNotHaveName(text, followType); - }, - width: 80, - }, - { - title: '随访医生', - dataIndex: 'doctorName', - width: 80, - }, - { - title: '随访时间', - dataIndex: 'followDate', - }, - { - title: '随访内容', - dataIndex: 'nr2', - width: 80, - }, -]; -const followType = [ - { - label: '门诊', - value: '1', - }, - { - label: '巡诊', - value: '4', - }, - { - label: '家庭', - value: '2', - }, - { - label: '电话', - value: '3', - }, -]; diff --git a/src/views/archivesManage/institution/timeService/medical/medical.vue b/src/views/archivesManage/institution/timeService/medical/medical.vue deleted file mode 100644 index 517a59e..0000000 --- a/src/views/archivesManage/institution/timeService/medical/medical.vue +++ /dev/null @@ -1,230 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.api.ts b/src/views/archivesManage/institution/timeService/nutrition/components/info/info.api.ts deleted file mode 100644 index 9dfa7a4..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - userFoodEnergyInfo = '/foodNourishmentReport/getUserFoodEnergyInfo', -} - -/** - * 列表接口 - * @param params - */ -export const getUserFoodEnergyInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.userFoodEnergyInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.data.ts b/src/views/archivesManage/institution/timeService/nutrition/components/info/info.data.ts deleted file mode 100644 index 72cc2c6..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.data.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '餐品名称', - align: 'center', - dataIndex: 'foodName', - }, - { - title: '取用量(克)', - align: 'center', - dataIndex: 'eatWeight', - }, - { - title: '热量(kcal)', - align: 'center', - dataIndex: 'energy', - }, -]; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.vue b/src/views/archivesManage/institution/timeService/nutrition/components/info/info.vue deleted file mode 100644 index 948fabb..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/info/info.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.api.ts b/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.api.ts deleted file mode 100644 index 21ad18c..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.api.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/canteenInfoDevice', - canteenDepartNameList = '/foodNourishmentReport/getCanteenDepartNameList', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 部门 - * @param params - */ -export const getCanteenDepartNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.canteenDepartNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.vue b/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.vue deleted file mode 100644 index 4b30160..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/map/mapPage.vue +++ /dev/null @@ -1,345 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.api.ts b/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.api.ts deleted file mode 100644 index 3a7d0cc..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - canteenInfo = '/foodNourishmentReport/userEatInfoByCanteenId', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.canteenInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.data.ts b/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.data.ts deleted file mode 100644 index 1da1d02..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.data.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, - { - title: '单位', - align: 'left', - width: 200, - dataIndex: 'secondDepartName', - }, - { - title: '部门', - align: 'center', - width: 200, - dataIndex: 'thirdDepartName', - }, - { - title: '姓名', - align: 'center', - dataIndex: 'realname', - }, - { - title: '工号', - align: 'center', - dataIndex: 'workNo', - }, - { - title: '性别', - align: 'center', - dataIndex: 'sex', - }, - { - title: '年龄', - align: 'center', - dataIndex: 'age', - }, - { - title: '身高(cm)', - align: 'center', - dataIndex: 'height', - }, - { - title: '体重(kg)', - align: 'center', - dataIndex: 'weight', - }, - { - title: 'BMI', - align: 'center', - dataIndex: 'bmi', - }, - { - title: '体力劳动', - align: 'center', - dataIndex: 'workStrength', - }, - { - title: '餐次总数量', - align: 'center', - dataIndex: 'dinnerTypeNum', - }, - { - title: '平均摄入数量(kcal)', - align: 'center', - dataIndex: 'energy', - }, -]; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.vue b/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.vue deleted file mode 100644 index 4579a12..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/mapData/mapData.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.api.ts b/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.api.ts deleted file mode 100644 index 12587cb..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.api.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - userFoodEnergyInfo = '/foodNourishmentReport/getUserInfoAndEatNum', - exportList = '/foodNourishmentReport/getUserInfoAndEatNum2/export', -} - -/** - * 列表接口 - * @param params - */ -export const getUserFoodEnergyInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.userFoodEnergyInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.data.ts b/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.data.ts deleted file mode 100644 index 637d08e..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.data.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '用餐时间', - align: 'center', - dataIndex: 'statisticsDay', - }, - { - title: '用餐餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '摄入餐品数', - align: 'center', - dataIndex: 'foodNum', - }, - { - title: '摄入热量(kcal)', - align: 'center', - dataIndex: 'energy', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '用餐时间', - field: 'days', - component: 'RangeDate', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, -]; diff --git a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.vue b/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.vue deleted file mode 100644 index 083bcfc..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/components/meal/meal.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/timeService/nutrition/nutrition.vue b/src/views/archivesManage/institution/timeService/nutrition/nutrition.vue deleted file mode 100644 index e314380..0000000 --- a/src/views/archivesManage/institution/timeService/nutrition/nutrition.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/src/views/archivesManage/institution/timeService/wear/components/userInfoModal.vue b/src/views/archivesManage/institution/timeService/wear/components/userInfoModal.vue deleted file mode 100644 index 36ebe91..0000000 --- a/src/views/archivesManage/institution/timeService/wear/components/userInfoModal.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/wear/components/wearModal.vue b/src/views/archivesManage/institution/timeService/wear/components/wearModal.vue deleted file mode 100644 index 359b525..0000000 --- a/src/views/archivesManage/institution/timeService/wear/components/wearModal.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - diff --git a/src/views/archivesManage/institution/timeService/wear/wear.api.ts b/src/views/archivesManage/institution/timeService/wear/wear.api.ts deleted file mode 100644 index f20ff3c..0000000 --- a/src/views/archivesManage/institution/timeService/wear/wear.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-watch/archives/watch/device/page', - deviceList = '/health-watch/watch/watchDevice/list', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }, { isTransformResponse: false }); -export const deviceListApi = (params: any) => defHttp.get({ url: Api.deviceList, params }); diff --git a/src/views/archivesManage/institution/timeService/wear/wear.data.ts b/src/views/archivesManage/institution/timeService/wear/wear.data.ts deleted file mode 100644 index 7429382..0000000 --- a/src/views/archivesManage/institution/timeService/wear/wear.data.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -export const columns: BasicColumn[] = [ - { - title: '工具编码', - dataIndex: 'watchNo', - }, - { - title: '归属单位', - dataIndex: 'departmentName', - }, - { - title: '入库日期', - dataIndex: 'createDate', - width: 110, - }, - { - title: '绑定状态', - dataIndex: 'watchStatus', - customRender: ({ text }) => { - switch (text) { - case '0': - return '未绑定'; - case '1': - return '已绑定'; - default: - return; - } - }, - width: 100, - }, - { - title: '绑定员工', - dataIndex: 'bindRealName', - customRender: ({ text }) => { - return text || '-'; - }, - width: 100, - }, - { - title: '员工编号', - dataIndex: 'workNo', - customRender: ({ text }) => { - return text || '-'; - }, - width: 120, - }, - { - title: '员工所属部门', - dataIndex: 'userThreeOrgName', - customRender: ({ text }) => { - return text || '-'; - }, - }, - { - title: '绑定日期', - dataIndex: 'bindDate', - customRender: ({ text }) => { - return text || '-'; - }, - width: 110, - }, - { - title: '监测数据', - dataIndex: 'dataInfo', - width: 120, - }, -]; diff --git a/src/views/archivesManage/institution/timeService/wear/wear.vue b/src/views/archivesManage/institution/timeService/wear/wear.vue deleted file mode 100644 index cb05337..0000000 --- a/src/views/archivesManage/institution/timeService/wear/wear.vue +++ /dev/null @@ -1,219 +0,0 @@ - - - diff --git a/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.api.ts b/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index ae1fb49..0000000 --- a/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-archives/data/assess/qs/tableStructure', -} - -export const tableStructureApi = () => defHttp.get({ url: Api.tableStructure }); diff --git a/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.vue b/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.vue deleted file mode 100644 index c4d364f..0000000 --- a/src/views/information/assessmentData/comprehensive/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/src/views/information/assessmentData/comprehensive/database/database.api.ts b/src/views/information/assessmentData/comprehensive/database/database.api.ts deleted file mode 100644 index 9f4516c..0000000 --- a/src/views/information/assessmentData/comprehensive/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-archives/data/assess/qs/list', -} - -export const listApi = (params) => defHttp.get({ url: Api.list, params }, { isReturnNativeResponse: false }); diff --git a/src/views/information/assessmentData/comprehensive/database/database.data.ts b/src/views/information/assessmentData/comprehensive/database/database.data.ts deleted file mode 100644 index e989761..0000000 --- a/src/views/information/assessmentData/comprehensive/database/database.data.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns: BasicColumn[] = [ - { - title: '题目名称', - dataIndex: 'questionName', - }, - { - title: '题目类型', - dataIndex: 'quesType', - customRender: ({ text }) => { - return render.renderDict(text, 'information_question_type'); - }, - width: 80, - }, - { - title: '选项1', - dataIndex: 'title1', - width: 180, - }, - { - title: '选项2', - dataIndex: 'title2', - width: 180, - }, - { - title: '选项3', - dataIndex: 'title3', - width: 180, - }, - { - title: '选项4', - dataIndex: 'title4', - width: 180, - }, - { - title: '更多选项', - dataIndex: 'otherChoose', - width: 80, - }, -]; - -export const searchSchema: FormSchema[] = [ - { - label: '题目名称', - field: 'name', - component: 'Input', - }, - { - label: '题目类型', - field: 'qsType', - component: 'JDictSelectTag', - componentProps: () => ({ dictCode: 'information_question_type' }), - }, -]; diff --git a/src/views/information/assessmentData/comprehensive/database/database.vue b/src/views/information/assessmentData/comprehensive/database/database.vue deleted file mode 100644 index ebacad9..0000000 --- a/src/views/information/assessmentData/comprehensive/database/database.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - diff --git a/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.api.ts b/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 7a0856b..0000000 --- a/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dict = '/health-archives/data/assess/qs/dict', -} - -export const dictApi = (params) => defHttp.get({ url: Api.dict, params }); diff --git a/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.vue b/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.vue deleted file mode 100644 index 3c8e147..0000000 --- a/src/views/information/assessmentData/comprehensive/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,135 +0,0 @@ - - diff --git a/src/views/information/assessmentData/result/components/resultPie.vue b/src/views/information/assessmentData/result/components/resultPie.vue deleted file mode 100644 index 116d925..0000000 --- a/src/views/information/assessmentData/result/components/resultPie.vue +++ /dev/null @@ -1,260 +0,0 @@ - - - diff --git a/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.api.ts b/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.api.ts deleted file mode 100644 index b7bfd61..0000000 --- a/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - mind = '/health-archives/data/assess/synthesis/analyze/mind', - risk = '/health-archives/data/assess/synthesis/analyze/risk', -} - -export const mindApi = (params: any) => defHttp.post({ url: Api.mind, params }); -export const riskApi = (params: any) => defHttp.post({ url: Api.risk, params }); diff --git a/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index 1e8deed..0000000 --- a/src/views/information/assessmentData/result/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - diff --git a/src/views/information/assessmentData/result/dataDictionary/dataDictionary.api.ts b/src/views/information/assessmentData/result/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index d0855bd..0000000 --- a/src/views/information/assessmentData/result/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - mind = '/health-archives/data/assess/mind/dict', - risk = '/health-archives/data/assess/risk/dict', -} - -export const mindApi = (params) => defHttp.get({ url: Api.mind, params }); -export const riskApi = (params) => defHttp.get({ url: Api.risk, params }); diff --git a/src/views/information/assessmentData/result/dataDictionary/dataDictionary.vue b/src/views/information/assessmentData/result/dataDictionary/dataDictionary.vue deleted file mode 100644 index c65dd35..0000000 --- a/src/views/information/assessmentData/result/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,202 +0,0 @@ - - diff --git a/src/views/information/assessmentData/result/database/database.api.ts b/src/views/information/assessmentData/result/database/database.api.ts deleted file mode 100644 index f58c887..0000000 --- a/src/views/information/assessmentData/result/database/database.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - statisticsPage = '/archives/hmsEvaluationStatistics/statisticsPage', - list = '/archives/hmsEvaluationPhyStat/statisticsPage', -} - -export const statisticsPageApi = (params) => defHttp.get({ url: Api.statisticsPage, params }); -export const listApi = (params) => defHttp.get({ url: Api.list, params }); diff --git a/src/views/information/assessmentData/result/database/database.data.ts b/src/views/information/assessmentData/result/database/database.data.ts deleted file mode 100644 index 911f51b..0000000 --- a/src/views/information/assessmentData/result/database/database.data.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { orgSearchInfo, orgSearchInfoByCode } from '/@/utils/orgSearchInfo'; - -export const columns: BasicColumn[] = [ - { - title: '姓名', - dataIndex: 'userName', - width: 90, - }, - { - title: '单位', - dataIndex: 'secondDepartName', - }, - { - title: '部门', - dataIndex: 'thirdDepartName', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 70, - }, - { - title: '年龄', - dataIndex: 'age', - width: 70, - }, - { - title: '评估日期', - dataIndex: 'createTime', - width: 150, - }, - { - title: '体重指数', - dataIndex: 'bmi', - width: 110, - }, - { - title: '缺血性心血管病', - dataIndex: 'ischemicCardiovascular_dictText', - width: 130, - }, - { - title: '糖尿病', - dataIndex: 'diabetes_dictText', - width: 100, - }, - { - title: '肺癌', - dataIndex: 'lungCancer_dictText', - width: 90, - }, - { - title: '高血压', - dataIndex: 'hypertension_dictText', - width: 90, - }, - { - title: '代谢综合征', - dataIndex: 'metabolicSyndrome_dictText', - width: 110, - }, -]; - -export const columns1: BasicColumn[] = [ - { - title: '姓名', - dataIndex: 'userName', - width: 100, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - }, - { - title: '单位', - dataIndex: 'secondDepartName', - }, - { - title: '部门', - dataIndex: 'thirdDepartName', - }, - { - title: '评估次数', - dataIndex: 'num', - width: 80, - }, - { - title: '评估日期', - dataIndex: 'createTime', - }, - { - title: '健康评分', - dataIndex: 'grade', - }, - { - title: '评分等级', - dataIndex: 'phyGradeLevel_dictText', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - field: 'date', - label: '评估日期', - component: 'RangeDate', - componentProps: () => { - return { - valueFormat: 'YYYY-MM-DD', - style: { - width: '100%', - }, - }; - }, - }, - ...orgSearchInfo({ orgField: 'orgCode1', orgName: '单位', deptFiled: 'departmentCode', deptName: '部门', orgCode: 'orgCode' }), -]; - -export const searchFormSchema1: FormSchema[] = [ - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - field: 'date', - label: '评估日期', - component: 'RangeDate', - componentProps: () => { - return { - valueFormat: 'YYYY-MM-DD', - style: { - width: '100%', - }, - }; - }, - }, - ...orgSearchInfo({ orgField: 'orgCode1', orgName: '单位', deptFiled: 'departmentCode', deptName: '部门', orgCode: 'orgCode' }), -]; diff --git a/src/views/information/assessmentData/result/database/database.vue b/src/views/information/assessmentData/result/database/database.vue deleted file mode 100644 index 0e867e1..0000000 --- a/src/views/information/assessmentData/result/database/database.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/src/views/information/assessmentData/result/libraryStructure/libraryStructure.api.ts b/src/views/information/assessmentData/result/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index db2a5d1..0000000 --- a/src/views/information/assessmentData/result/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - risk = '/health-archives/data/assess/risk/tableStructure', - mind = '/health-archives/data/assess/mind/tableStructure', -} - -export const riskApi = () => defHttp.get({ url: Api.risk }); -export const mindApi = () => defHttp.get({ url: Api.mind }); diff --git a/src/views/information/assessmentData/result/libraryStructure/libraryStructure.vue b/src/views/information/assessmentData/result/libraryStructure/libraryStructure.vue deleted file mode 100644 index 5cf27e2..0000000 --- a/src/views/information/assessmentData/result/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,19 +0,0 @@ - - diff --git a/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index b42fd45..0000000 --- a/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - mind = '/health-archives/data/assess/alone/analyze/mind', - risk = '/health-archives/data/assess/alone/analyze/risk', -} - -export const mindApi = (params) => defHttp.post({ url: Api.mind, params }, {}); - -export const riskApi = (params) => defHttp.post({ url: Api.risk, params }, {}); diff --git a/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index b924055..0000000 --- a/src/views/information/assessmentData/result/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,266 +0,0 @@ - - - diff --git a/src/views/information/components/barChart.vue b/src/views/information/components/barChart.vue deleted file mode 100644 index 0f9e16f..0000000 --- a/src/views/information/components/barChart.vue +++ /dev/null @@ -1,277 +0,0 @@ - - diff --git a/src/views/information/components/informationBasicTable.vue b/src/views/information/components/informationBasicTable.vue deleted file mode 100644 index 9baf13e..0000000 --- a/src/views/information/components/informationBasicTable.vue +++ /dev/null @@ -1,112 +0,0 @@ - - diff --git a/src/views/information/components/informationData.vue b/src/views/information/components/informationData.vue deleted file mode 100644 index d353575..0000000 --- a/src/views/information/components/informationData.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - diff --git a/src/views/information/components/informationLibrary.vue b/src/views/information/components/informationLibrary.vue deleted file mode 100644 index ce7a96f..0000000 --- a/src/views/information/components/informationLibrary.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - diff --git a/src/views/information/components/pieChart.vue b/src/views/information/components/pieChart.vue deleted file mode 100644 index cae5bdc..0000000 --- a/src/views/information/components/pieChart.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - diff --git a/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.api.ts b/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 5027e4a..0000000 --- a/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - consultationDict = '/health-consultation/data/consultation/dict', -} - -export const consultationDictApi = () => defHttp.get({ url: Api.consultationDict }); diff --git a/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.vue b/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.vue deleted file mode 100644 index 1e9c38f..0000000 --- a/src/views/information/consultingData/consultingData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,159 +0,0 @@ - - diff --git a/src/views/information/consultingData/consultingData/database/components/historyChat.vue b/src/views/information/consultingData/consultingData/database/components/historyChat.vue deleted file mode 100644 index c7b02e1..0000000 --- a/src/views/information/consultingData/consultingData/database/components/historyChat.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - diff --git a/src/views/information/consultingData/consultingData/database/database.api.ts b/src/views/information/consultingData/consultingData/database/database.api.ts deleted file mode 100644 index 54c59d6..0000000 --- a/src/views/information/consultingData/consultingData/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - consultationPage = '/health-consultation/data/consultation/page', -} - -export const consultationPageApi = (params) => defHttp.get({ url: Api.consultationPage, params }); diff --git a/src/views/information/consultingData/consultingData/database/database.data.ts b/src/views/information/consultingData/consultingData/database/database.data.ts deleted file mode 100644 index 694f2bd..0000000 --- a/src/views/information/consultingData/consultingData/database/database.data.ts +++ /dev/null @@ -1,413 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { render } from '/@/utils/common/renderUtils'; -import { isQH } from '/@/utils/getEnv'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { selectResourceList } from '/@/views/consult/doctor/message/conDoctor.api'; -import { BODY_CONTAINER } from '/@/utils/domUtils'; - -const column: BasicColumn[] = [ - { - title: '员工姓名', - dataIndex: 'fromName', - width: 120, - align: 'center', - }, - { - title: '员工单位', - dataIndex: 'employeeOrgName', - width: 120, - align: 'center', - }, - { - title: '员工部门', - dataIndex: 'employeeDeptName', - width: 120, - align: 'center', - }, - { - title: '咨询方式', - dataIndex: 'contentType', - width: 80, - align: 'center', - customRender: ({ text }) => { - const conType = render.renderDict(text, 'con_type'); - switch (text) { - case '1': - return render.renderTag(conType, 'green'); - case '2': - return render.renderTag(conType, 'blue'); - default: - return ''; - } - }, - }, - { - title: '咨询类型', - align: 'center', - dataIndex: 'sessionType', - width: 120, - customRender: ({ record }) => { - switch (record.sessionType) { - case '1': - return render.renderTag('咨询专家', 'green'); - case '2': - return render.renderTag(isQH() ? '咨询全科医生' : '咨询小助手', 'blue'); - default: - return ''; - } - }, - }, - { - title: '专家姓名', - align: 'center', - width: 80, - dataIndex: 'toName', - }, - { - title: '医院', - align: 'center', - width: 180, - dataIndex: 'resourceName', - }, - { - title: '科室', - align: 'center', - width: 150, - dataIndex: 'departmentName', - }, - { - title: '专家职称', - align: 'center', - width: 120, - dataIndex: 'doctorJob_dictText', - }, - { - title: '专家职务', - align: 'center', - width: 120, - dataIndex: 'doctorTitle_dictText', - }, - { - title: '专家类型', - align: 'center', - width: 120, - dataIndex: 'doctorType', - customRender: ({ text }) => { - return render.renderDict(text, 'z_doct_typ'); - }, - }, - { - title: isQH() ? '全科医生名称' : '小助手姓名', - align: 'center', - width: 120, - customRender: ({ record }) => { - switch (record.sessionType) { - case '1': - return record.thirdName; - case '2': - return record.toName; - default: - return ''; - } - }, - defaultHidden: !isQH(), - }, - { - title: '员工发送状态', - align: 'center', - dataIndex: 'userTfReply', - fixed: 'right', - width: 120, - customRender: ({ record }) => { - if (record.contentType !== '1') { - return ''; - } - switch (record.userTfReply) { - case '0': - return render.renderTag('未发送', 'red'); - case '1': - return render.renderTag('已发送', 'green'); - default: - return ''; - } - }, - }, - { - title: '专家回复状态', - align: 'center', - dataIndex: 'tfReply', - fixed: 'right', - width: 120, - customRender: ({ record }) => { - if (record.contentType !== '1') { - return ''; - } - switch (record.tfReply) { - case 0: - if (record.userTfReply === '0') { - return ''; - } - return render.renderTag('未回复', 'red'); - case 1: - return render.renderTag('已回复', 'green'); - default: - return ''; - } - }, - }, - { - title: '专家首次回复时间', - align: 'center', - dataIndex: 'doctorFirstReplyTime', - fixed: 'right', - width: 180, - sorter: true, - showSorterTooltip: true, - sortDirections: ['descend', 'ascend', null], - }, - { - title: '咨询状态', - align: 'center', - width: 120, - dataIndex: 'contentStatus_dictText', - }, - { - title: '咨询发起时间', - align: 'center', - dataIndex: 'createTime', - width: 180, - sorter: true, - showSorterTooltip: true, - defaultSortOrder: 'descend', - sortDirections: ['descend', 'ascend', null], - fixed: 'right', - }, - { - title: '聊天记录', - dataIndex: 'chatDetail', - width: 100, - align: 'center', - fixed: 'right', - }, -]; - -const column2: BasicColumn[] = [ - { - title: '专家姓名', - align: 'center', - dataIndex: 'fromName', - }, - { - title: '医院', - align: 'center', - dataIndex: 'resourceName', - }, - { - title: '科室', - align: 'center', - dataIndex: 'departmentName', - }, - { - title: '专家职称', - align: 'center', - dataIndex: 'doctorJob_dictText', - }, - { - title: '专家职务', - align: 'center', - dataIndex: 'doctorTitle_dictText', - }, - { - title: '专家类型', - align: 'center', - dataIndex: 'doctorType_dictText', - }, - { - title: '小助手姓名', - align: 'center', - customRender: ({ record }) => { - return record.toName; - }, - defaultHidden: true, - }, - { - title: '咨询时间', - align: 'center', - width: 180, - dataIndex: 'createTime', - fixed: 'right', - }, - { - title: '咨询状态', - align: 'center', - width: 120, - dataIndex: 'contentStatus', - customRender: ({ text }) => { - return render.renderDict(text, 'o_status'); - }, - }, -]; -export const colmunsArr = [column, column2]; - -export function searchFormSchemaArr(type) { - const search: FormSchema[] = [ - { - label: '员工姓名', - field: 'userName', - component: 'Input', - show: type == 1, - }, - { - label: '所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1' && type == 1; - }, - }, - { - label: '员工发送状态', - field: 'userTfReply', - component: 'Select', - show: type == 1, - componentProps: { - getPopupContainer: () => BODY_CONTAINER, - options: [ - { value: '0', label: '未发送' }, - { value: '1', label: '已发送' }, - ], - }, - }, - { - label: '专家回复状态', - field: 'tfReply', - component: 'Select', - show: type == 1, - componentProps: { - getPopupContainer: () => BODY_CONTAINER, - options: [ - { value: '0', label: '未回复' }, - { value: '1', label: '已回复' }, - ], - }, - }, - { - label: '咨询类型', - field: 'sessionType', - component: 'Select', - show: type == 1, - componentProps: { - getPopupContainer: () => BODY_CONTAINER, - options: [ - { value: '1', label: '咨询专家' }, - { value: '2', label: isQH() ? '咨询全科医生' : '咨询小助手' }, - ], - }, - }, - { - label: '专家姓名', - field: 'doctorName', - component: 'Input', - }, - { - label: '专家医院', - field: 'hospitalId', - component: 'ApiSelect', - componentProps: { - // @ts-ignore - api: selectResourceList, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: false, - showSearch: true, - getPopupContainer: () => BODY_CONTAINER, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }, - }, - { - label: '专家职称', - field: 'doctorJob', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'z_doct_job', - getPopupContainer: () => BODY_CONTAINER, - }, - }, - { - label: '专家类型', - field: 'doctorType', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'z_doct_typ', - getPopupContainer: () => BODY_CONTAINER, - }, - }, - { - label: '咨询状态', - field: 'contentStatus', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'o_status', - getPopupContainer: () => BODY_CONTAINER, - }, - }, - { - label: '咨询时间', - field: 'Date', - component: 'RangePicker', - componentProps: ({ formModel }) => { - return { - valueType: 'Date', - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => BODY_CONTAINER, - onChange: ([start, end]) => { - formModel.startDate = start + ' 00:00:00'; - formModel.endDate = end + ' 23:59:59'; - }, - }; - }, - }, - { - label: '', - field: 'startDate', - component: 'Input', - show: false, - }, - { - label: '', - field: 'endDate', - component: 'Input', - show: false, - }, - ]; - return search; -} diff --git a/src/views/information/consultingData/consultingData/database/database.vue b/src/views/information/consultingData/consultingData/database/database.vue deleted file mode 100644 index 70a5f1d..0000000 --- a/src/views/information/consultingData/consultingData/database/database.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - diff --git a/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.api.ts b/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 872c13b..0000000 --- a/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - consultationStru = '/health-consultation/data/consultation/tableStructure', -} - -export const consultationStruApi = (params) => defHttp.get({ url: Api.consultationStru, params }); diff --git a/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.vue b/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.vue deleted file mode 100644 index 4d0c162..0000000 --- a/src/views/information/consultingData/consultingData/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.api.ts b/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 2bc6555..0000000 --- a/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - specialistDict = '/health-consultation/data/specialist/dict', -} - -export const specialistDictApi = () => defHttp.get({ url: Api.specialistDict }); diff --git a/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.vue b/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.vue deleted file mode 100644 index 0528faf..0000000 --- a/src/views/information/consultingData/expertData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,215 +0,0 @@ - - diff --git a/src/views/information/consultingData/expertData/database/database.api.ts b/src/views/information/consultingData/expertData/database/database.api.ts deleted file mode 100644 index e4be066..0000000 --- a/src/views/information/consultingData/expertData/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - specialistPage = '/health-consultation/data/specialist/page', -} - -export const specialistPageApi = (params) => defHttp.get({ url: Api.specialistPage, params }); diff --git a/src/views/information/consultingData/expertData/database/database.data.ts b/src/views/information/consultingData/expertData/database/database.data.ts deleted file mode 100644 index 17a465f..0000000 --- a/src/views/information/consultingData/expertData/database/database.data.ts +++ /dev/null @@ -1,262 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { selectResourceList } from '/@/views/consult/doctor/message/conDoctor.api'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns: BasicColumn[] = [ - { - title: '用户账号', - dataIndex: 'doctorAccount', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '专家编号', - dataIndex: 'doctorNo', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'doctorName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '头像', - dataIndex: 'avatar', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '手机号', - dataIndex: 'phone', - width: 120, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '邮箱', - dataIndex: 'email', - width: 150, - align: 'center', - }, - { - title: '医院', - dataIndex: 'resourceName', - width: 150, - align: 'center', - }, - { - title: '科室', - dataIndex: 'departmentName', - width: 120, - align: 'center', - }, - { - title: '擅长疾病', - dataIndex: 'goodAt', - width: 120, - align: 'center', - }, - { - title: '职称', - dataIndex: 'doctorJob_dictText', - width: 80, - align: 'center', - }, - { - title: '职务', - dataIndex: 'doctorTitle_dictText', - width: 120, - align: 'center', - }, - { - title: '专家类型', - dataIndex: 'type_dictText', - width: 120, - align: 'center', - }, - { - title: '专家状态', - dataIndex: 'doctorStatus_dictText', - width: 80, - align: 'center', - }, - { - title: '咨询状态', - dataIndex: 'isAccept_dictText', - width: 80, - align: 'center', - }, - // { - // title: '收费类型', - // dataIndex: 'userAccount', - // width: 80, - // align: 'center', - // }, - { - title: '学历', - dataIndex: 'eq', - width: 80, - align: 'center', - }, - { - title: '出生日期', - dataIndex: 'birthday', - width: 120, - align: 'center', - }, - { - title: '毕业院校', - dataIndex: 'school', - width: 150, - align: 'center', - }, - { - title: '毕业时间', - dataIndex: 'outTime', - width: 120, - align: 'center', - }, - { - title: '民族', - dataIndex: 'nationality', - width: 80, - align: 'center', - }, - { - title: '籍贯', - dataIndex: 'nativePlace', - width: 150, - align: 'center', - }, - { - title: '联系地址', - dataIndex: 'contactAddress', - width: 220, - align: 'center', - }, - { - title: '简介', - dataIndex: 'introduction', - width: 80, - align: 'center', - }, - { - title: '参加工作时间', - dataIndex: 'joinWork', - width: 120, - align: 'center', - }, - { - title: '擅长', - dataIndex: 'goodAt', - width: 80, - align: 'center', - }, - { - title: '执业经历', - dataIndex: 'experience', - width: 80, - align: 'center', - }, - { - title: '获奖或论文', - dataIndex: 'award', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'doctorAccount', - label: '用户账号', - component: 'Input', - }, - { - field: 'doctorName', - label: '姓名', - component: 'Input', - }, - { - label: '医院', - field: 'resourceId', - component: 'ApiSelect', - componentProps: { - // @ts-ignore - api: selectResourceList, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: false, - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }, - }, - { - field: 'departmentName', - label: '科室', - component: 'Input', - }, - { - label: '职称', - field: 'doctorJob', - component: 'JDictSelectTag', - componentProps: { - //@ts-ignore - dictCode: 'z_doct_job', - getPopupContainer: () => document.body, - }, - }, - { - label: '专家状态', - field: 'doctorStatus', - component: 'JDictSelectTag', - componentProps: { - //@ts-ignore - dictCode: 'doc_status', - getPopupContainer: () => document.body, - }, - }, - { - label: '收费类型', - field: 'type', - component: 'JDictSelectTag', - componentProps: { - //@ts-ignore - dictCode: 'z_doct_typ', - getPopupContainer: () => document.body, - }, - }, - { - label: '咨询状态', - field: 'isAccept', - component: 'JDictSelectTag', - componentProps: { - //@ts-ignore - dictCode: 'doc_accept_flag', - getPopupContainer: () => document.body, - }, - }, -]; diff --git a/src/views/information/consultingData/expertData/database/database.vue b/src/views/information/consultingData/expertData/database/database.vue deleted file mode 100644 index 63aafc6..0000000 --- a/src/views/information/consultingData/expertData/database/database.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - diff --git a/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.api.ts b/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 442d698..0000000 --- a/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - specialistStru = '/health-consultation/data/specialist/tableStructure', -} - -export const specialistStruApi = (params) => defHttp.get({ url: Api.specialistStru, params }); diff --git a/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.vue b/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.vue deleted file mode 100644 index 1fb917d..0000000 --- a/src/views/information/consultingData/expertData/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/deviceData/angiography/dataDictionary/dataDicitionary.api.ts b/src/views/information/deviceData/angiography/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index 74bc374..0000000 --- a/src/views/information/deviceData/angiography/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - angiographyDict = '/health-intervene/data/angiography/dict', -} - -export const angiographyDictApi = (params) => defHttp.get({ url: Api.angiographyDict, params }); diff --git a/src/views/information/deviceData/angiography/dataDictionary/dataDictionary.vue b/src/views/information/deviceData/angiography/dataDictionary/dataDictionary.vue deleted file mode 100644 index 74bc098..0000000 --- a/src/views/information/deviceData/angiography/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,137 +0,0 @@ - - diff --git a/src/views/information/deviceData/angiography/database/database.api.ts b/src/views/information/deviceData/angiography/database/database.api.ts deleted file mode 100644 index 455893a..0000000 --- a/src/views/information/deviceData/angiography/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - angiographyPage = '/health-intervene/data/angiography/page', - angiographyExport = '/health-intervene/data/angiography/exportXls', - angiographyStat = '/health-intervene/data/angiography/statistics', -} - -export const angiographyPageApi = (params) => defHttp.get({ url: Api.angiographyPage, params }); - -export const angiographyExportApi = Api.angiographyExport; - -export const angiographyStatApi = (params: any) => defHttp.get({ url: Api.angiographyStat, params }); diff --git a/src/views/information/deviceData/angiography/database/database.data.ts b/src/views/information/deviceData/angiography/database/database.data.ts deleted file mode 100644 index 6470152..0000000 --- a/src/views/information/deviceData/angiography/database/database.data.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '设备名称', - dataIndex: 'equipmentName', - width: 120, - align: 'center', - }, - { - title: '设备品牌', - dataIndex: 'equipmentBrand', - width: 120, - align: 'center', - }, - { - title: '设备编号', - dataIndex: 'equipmentNumber', - width: 80, - align: 'center', - }, - { - title: '用途', - dataIndex: 'equipmentPurpose', - width: 80, - align: 'center', - }, - { - title: '管理部门', - dataIndex: 'managementDepartment', - width: 100, - align: 'center', - }, - { - title: '管理人电话', - dataIndex: 'managementPhone', - width: 100, - align: 'center', - }, - { - title: '厂家电话', - dataIndex: 'manufacturerPhone', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '设备名称', - field: 'equipmentName', - component: 'Input', - }, - { - label: '设备品牌', - field: 'equipmentBrand', - component: 'Input', - }, - { - label: '设备编号', - field: 'equipmentNumber', - component: 'Input', - }, -]; diff --git a/src/views/information/deviceData/angiography/database/database.vue b/src/views/information/deviceData/angiography/database/database.vue deleted file mode 100644 index 6d77b25..0000000 --- a/src/views/information/deviceData/angiography/database/database.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.api.ts b/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 3100946..0000000 --- a/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - angiographyStructure = '/health-intervene/data/angiography/tableStructure', -} - -export const angiographyStructureApi = (params) => defHttp.get({ url: Api.angiographyStructure, params }); diff --git a/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.vue b/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.vue deleted file mode 100644 index 4883e4a..0000000 --- a/src/views/information/deviceData/angiography/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/deviceData/bloodSugar/dataDictionary/dataDicitionary.api.ts b/src/views/information/deviceData/bloodSugar/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index cda2ac5..0000000 --- a/src/views/information/deviceData/bloodSugar/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - terminalDict = '/health-intervene/data/diabetes/terminal/dict', -} - -export const terminalDictApi = (params) => defHttp.get({ url: Api.terminalDict, params }); diff --git a/src/views/information/deviceData/bloodSugar/dataDictionary/dataDictionary.vue b/src/views/information/deviceData/bloodSugar/dataDictionary/dataDictionary.vue deleted file mode 100644 index f853ca7..0000000 --- a/src/views/information/deviceData/bloodSugar/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,147 +0,0 @@ - - diff --git a/src/views/information/deviceData/bloodSugar/database/database.api.ts b/src/views/information/deviceData/bloodSugar/database/database.api.ts deleted file mode 100644 index 22dfd22..0000000 --- a/src/views/information/deviceData/bloodSugar/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - terminalPage = '/health-intervene/data/diabetes/terminal/page', - terminalExport = '/health-intervene/data/diabetes/terminal/exportXls', - terminalStat = '/health-intervene/data/diabetes/terminal/statistics', -} - -export const terminalPageApi = (params) => defHttp.get({ url: Api.terminalPage, params }); - -export const terminalExportApi = Api.terminalExport; - -export const terminalStatApi = (params: any) => defHttp.get({ url: Api.terminalStat, params }); diff --git a/src/views/information/deviceData/bloodSugar/database/database.data.ts b/src/views/information/deviceData/bloodSugar/database/database.data.ts deleted file mode 100644 index e4c97b5..0000000 --- a/src/views/information/deviceData/bloodSugar/database/database.data.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '绑定员工', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '终端编号(SN码)', - dataIndex: 'snNo', - width: 120, - align: 'center', - }, - { - title: '终端品牌', - dataIndex: 'brandName', - width: 80, - align: 'center', - }, - { - title: '使用状态', - dataIndex: 'useState_dictText', - width: 80, - align: 'center', - }, - { - title: '员工所属单位', - dataIndex: 'userDepartName', - width: 100, - align: 'center', - }, - { - title: '员工所属部门', - dataIndex: 'userOrgName', - width: 100, - align: 'center', - }, - { - title: '绑定日期', - dataIndex: 'bindDate', - width: 150, - align: 'center', - }, - { - title: '员工电话', - dataIndex: 'userPhone', - width: 120, - align: 'center', - }, - { - title: '管理部门', - dataIndex: 'managerDepartment', - width: 150, - align: 'center', - }, - { - title: '管理人', - dataIndex: 'managerUser', - width: 80, - align: 'center', - }, - { - title: '管理人电话', - dataIndex: 'managerPhone', - width: 120, - align: 'center', - }, - { - title: '厂家电话', - dataIndex: 'factoryPhone', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '终端编号(SN码)', - field: 'resourceId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: medicalCenterList, - params: { - departCode: formModel.orgCode || 'abc', - }, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onFocus: () => { - if (!formModel.orgCode) { - return message.warning('请先选择单位'); - } - }, - }; - }, - }, - { - label: '终端品牌', - field: 'rescueCapabilityType', - component: 'Select', - componentProps: () => ({ - options: [ - { - label: '转运型', - value: 1, - }, - { - label: '急救型', - value: 0, - }, - ], - getPopupContainer: () => document.body, - }), - }, - { - label: '使用状态', - field: 'model', - component: 'Input', - }, - { - field: 'licensePlateNumber', - label: '绑定员工', - component: 'Input', - }, -]; diff --git a/src/views/information/deviceData/bloodSugar/database/database.vue b/src/views/information/deviceData/bloodSugar/database/database.vue deleted file mode 100644 index 8bb7534..0000000 --- a/src/views/information/deviceData/bloodSugar/database/database.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.api.ts b/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 1bd01c6..0000000 --- a/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - terminalStructure = '/health-intervene/data/diabetes/terminal/tableStructure', -} - -export const terminalStructureApi = (params) => defHttp.get({ url: Api.terminalStructure, params }); diff --git a/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.vue b/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.vue deleted file mode 100644 index ced4d85..0000000 --- a/src/views/information/deviceData/bloodSugar/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/diseaseData/abnormal/dataDictionary/dataDictionary.vue b/src/views/information/diseaseData/abnormal/dataDictionary/dataDictionary.vue deleted file mode 100644 index 7bda629..0000000 --- a/src/views/information/diseaseData/abnormal/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,169 +0,0 @@ - - diff --git a/src/views/information/diseaseData/abnormal/database/database.vue b/src/views/information/diseaseData/abnormal/database/database.vue deleted file mode 100644 index 5823570..0000000 --- a/src/views/information/diseaseData/abnormal/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/diseaseData/abnormal/libraryStructure/libraryStructure.vue b/src/views/information/diseaseData/abnormal/libraryStructure/libraryStructure.vue deleted file mode 100644 index f8ca1c3..0000000 --- a/src/views/information/diseaseData/abnormal/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/diseaseData/abnormal/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/diseaseData/abnormal/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 7bc0435..0000000 --- a/src/views/information/diseaseData/abnormal/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/diseaseData/chronicDisease/dataDictionary/dataDictionary.vue b/src/views/information/diseaseData/chronicDisease/dataDictionary/dataDictionary.vue deleted file mode 100644 index d48c015..0000000 --- a/src/views/information/diseaseData/chronicDisease/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,169 +0,0 @@ - - diff --git a/src/views/information/diseaseData/chronicDisease/database/database.vue b/src/views/information/diseaseData/chronicDisease/database/database.vue deleted file mode 100644 index 7da4fcb..0000000 --- a/src/views/information/diseaseData/chronicDisease/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/diseaseData/chronicDisease/libraryStructure/libraryStructure.vue b/src/views/information/diseaseData/chronicDisease/libraryStructure/libraryStructure.vue deleted file mode 100644 index cfeb573..0000000 --- a/src/views/information/diseaseData/chronicDisease/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/diseaseData/chronicDisease/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/diseaseData/chronicDisease/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index a68901c..0000000 --- a/src/views/information/diseaseData/chronicDisease/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/diseaseData/health/dataDictionary/dataDictionary.vue b/src/views/information/diseaseData/health/dataDictionary/dataDictionary.vue deleted file mode 100644 index 94e53ac..0000000 --- a/src/views/information/diseaseData/health/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,169 +0,0 @@ - - diff --git a/src/views/information/diseaseData/health/database/database.vue b/src/views/information/diseaseData/health/database/database.vue deleted file mode 100644 index 77dc822..0000000 --- a/src/views/information/diseaseData/health/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/diseaseData/health/libraryStructure/libraryStructure.vue b/src/views/information/diseaseData/health/libraryStructure/libraryStructure.vue deleted file mode 100644 index 23e84f8..0000000 --- a/src/views/information/diseaseData/health/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/diseaseData/health/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/diseaseData/health/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index f696f8b..0000000 --- a/src/views/information/diseaseData/health/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/diseaseData/risk/dataDictionary/dataDictionary.vue b/src/views/information/diseaseData/risk/dataDictionary/dataDictionary.vue deleted file mode 100644 index 2279f45..0000000 --- a/src/views/information/diseaseData/risk/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,169 +0,0 @@ - - diff --git a/src/views/information/diseaseData/risk/database/database.vue b/src/views/information/diseaseData/risk/database/database.vue deleted file mode 100644 index 38b3324..0000000 --- a/src/views/information/diseaseData/risk/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/diseaseData/risk/libraryStructure/libraryStructure.vue b/src/views/information/diseaseData/risk/libraryStructure/libraryStructure.vue deleted file mode 100644 index 99f7528..0000000 --- a/src/views/information/diseaseData/risk/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/diseaseData/risk/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/diseaseData/risk/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 9f4f760..0000000 --- a/src/views/information/diseaseData/risk/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDicitionary.api.ts b/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index b5e7271..0000000 --- a/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfoDict = '/health-system/user/info/dict', -} - -export const userInfoDictApi = (params) => defHttp.get({ url: Api.userInfoDict, params }); diff --git a/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDictionary.vue b/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDictionary.vue deleted file mode 100644 index 9bf9a9e..0000000 --- a/src/views/information/diseaseData/seriousIllness/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,168 +0,0 @@ - - diff --git a/src/views/information/diseaseData/seriousIllness/database/database.api.ts b/src/views/information/diseaseData/seriousIllness/database/database.api.ts deleted file mode 100644 index eb831d5..0000000 --- a/src/views/information/diseaseData/seriousIllness/database/database.api.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfo = '/health-system/user/info/page', - userInfoExport = '/health-system/user/info/export', - userInfoStat = '/health-system/user/info/stat', -} - -export const userInfoApi = (params) => defHttp.get({ url: Api.userInfo, params }); -export const userInfoExportApi = Api.userInfoExport; -export const userInfoStatApi = (params: any) => defHttp.get({ url: Api.userInfoStat, params }); diff --git a/src/views/information/diseaseData/seriousIllness/database/database.data.ts b/src/views/information/diseaseData/seriousIllness/database/database.data.ts deleted file mode 100644 index 15cf844..0000000 --- a/src/views/information/diseaseData/seriousIllness/database/database.data.ts +++ /dev/null @@ -1,207 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { useUserStore } from '/@/store/modules/user'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empNativeplace', - width: 80, - align: 'center', - }, - { - title: '岗位层级', - dataIndex: 'birthday', - width: 120, - align: 'center', - }, - { - title: '政治面貌', - dataIndex: 'empPolitical_dictText', - width: 80, - align: 'center', - }, - { - title: '民族', - dataIndex: 'empNation_dictText', - width: 120, - align: 'center', - }, - { - title: '婚姻状况', - dataIndex: 'empMarriage_dictText', - width: 80, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '更新时间', - dataIndex: 'userGroupUpdateTime', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - // { - // label: '单位部门', - // field: 'orgCode', - // component: 'ApiSelect', - // componentProps: ({ formModel }) => { - // return { - // api: getThirdDepartsNew, - // resultField: 'list', - // labelField: 'departName', - // params: { - // idOrCode: user?.userInfo?.orgCode?.substring(0, 6) || '12313', - // }, - // onChange: (e) => { - // formModel.orgCode = e; - // }, - // getPopupContainer: () => document.body, - // valueField: 'orgCode', - // immediate: true, - // }; - // }, - // }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'sex2', - }), - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageFindType = data.selectValue; - formModel.ageStat = data.inputValue1; - if (data.selectValue == '2') { - formModel.ageEnd = data.inputValue2; - } - }, - optionsType: '2', - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, -]; diff --git a/src/views/information/diseaseData/seriousIllness/database/database.vue b/src/views/information/diseaseData/seriousIllness/database/database.vue deleted file mode 100644 index 0dc31f5..0000000 --- a/src/views/information/diseaseData/seriousIllness/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.api.ts b/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 414b192..0000000 --- a/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-system/user/info/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.vue b/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.vue deleted file mode 100644 index f7d3a71..0000000 --- a/src/views/information/diseaseData/seriousIllness/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index 3081b0f..0000000 --- a/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - //部门 - department = '/health-system/user/group/analyze/depart', - aloneSex = '/health-system/user/group/analyze/sex', - aloneAge = '/health-system/user/group/analyze/age', - alonePolitical = '/health-system/user/group/analyze/political', - aloneNation = '/health-system/user/group/analyze/nation', - aloneJobLevel = '/health-system/user/group/analyze/jobLevel', - aloneMarried = '/health-system/user/group/analyze/matrimony', -} - -export const departmentApi = (params) => defHttp.get({ url: Api.department, params }); -export const aloneSexApi = (params) => defHttp.get({ url: Api.aloneSex, params }); -export const aloneAgeApi = (params) => defHttp.get({ url: Api.aloneAge, params }); -export const alonePoliticalApi = (params) => defHttp.get({ url: Api.alonePolitical, params }); -export const aloneNationApi = (params) => defHttp.get({ url: Api.aloneNation, params }); -export const aloneJobLevelApi = (params) => defHttp.get({ url: Api.aloneJobLevel, params }); -export const aloneMarriedApi = (params) => defHttp.get({ url: Api.aloneMarried, params }); diff --git a/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index aab7186..0000000 --- a/src/views/information/diseaseData/seriousIllness/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/emergencyData/aedData/dataDictionary/dataDicitionary.api.ts b/src/views/information/emergencyData/aedData/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index a01fcd9..0000000 --- a/src/views/information/emergencyData/aedData/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - aedDict = '/health-intervene/data/aed/dict', -} - -export const aedDictApi = (params) => defHttp.get({ url: Api.aedDict, params }); diff --git a/src/views/information/emergencyData/aedData/dataDictionary/dataDictionary.vue b/src/views/information/emergencyData/aedData/dataDictionary/dataDictionary.vue deleted file mode 100644 index d4bfd49..0000000 --- a/src/views/information/emergencyData/aedData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,205 +0,0 @@ - - diff --git a/src/views/information/emergencyData/aedData/database/database.api.ts b/src/views/information/emergencyData/aedData/database/database.api.ts deleted file mode 100644 index f6124bf..0000000 --- a/src/views/information/emergencyData/aedData/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - aedPage = '/health-intervene/data/aed/page', - phoneExport = '/health-emergency/data/phone/exportXls', - phoneStat = '/health-emergency/data/phone/statistics', -} - -export const aedPageApi = (params) => defHttp.get({ url: Api.aedPage, params }); - -export const phoneExportApi = Api.phoneExport; - -export const phoneStatApi = (params: any) => defHttp.get({ url: Api.phoneStat, params }); diff --git a/src/views/information/emergencyData/aedData/database/database.data.ts b/src/views/information/emergencyData/aedData/database/database.data.ts deleted file mode 100644 index 628d338..0000000 --- a/src/views/information/emergencyData/aedData/database/database.data.ts +++ /dev/null @@ -1,282 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { getSecondaryDepartmentList, getThirdDepartListByOrgCode } from '/@/views/system/user/user.api'; -import { useMessage } from '/@/hooks/web/useMessage'; -const { createMessage } = useMessage(); -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - dataIndex: 'name', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '设备型号', - dataIndex: 'hostModel', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '所属单位', - dataIndex: 'departName', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '所属部门', - dataIndex: 'orgName', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '设备类型', - dataIndex: 'type_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '入库日期', - dataIndex: 'inStorageDate', - width: 100, - align: 'center', - fixed: 'left', - }, - { - title: '布点信息', - dataIndex: '', - align: 'center', - children: [ - { - title: '布点位置', - dataIndex: 'installAddress', - width: 180, - align: 'center', - }, - { - title: '布点日期', - dataIndex: 'installTime', - width: 120, - align: 'center', - }, - { - title: '覆盖人数', - dataIndex: 'memo', - width: 120, - align: 'center', - }, - { - title: '责任人1', - dataIndex: 'chargeFirst', - width: 120, - align: 'center', - }, - { - title: '责任人1电话', - dataIndex: 'chargeFirstMobile', - width: 120, - align: 'center', - }, - { - title: '责任人2', - dataIndex: 'chargeSecond', - width: 120, - align: 'center', - }, - { - title: '责任人2电话', - dataIndex: 'chargeSecondMobile', - width: 120, - align: 'center', - }, - ], - }, - { - title: '电池电量', - dataIndex: 'electricQuantity', - width: 80, - align: 'center', - }, - { - title: '电池有效期', - dataIndex: 'batteryLife', - width: 120, - align: 'center', - }, - { - title: '电极片\n是否完好', - dataIndex: 'electrodeIsOk', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ record }) => { - return record.electrodeIsOk == '1' ? '完好' : '损坏'; - }, - }, - { - title: '电极片有效期', - dataIndex: 'electrodeSheetValidTime', - width: 150, - align: 'center', - }, - { - title: '操作图片', - dataIndex: 'operateInstruction', - width: 80, - align: 'center', - }, - { - title: '操作视频', - dataIndex: 'operateVideo', - width: 80, - align: 'center', - }, - // { - // title: '免责声明', - // dataIndex: 'disclaimer', - // width: 80, - // align: 'center', - // }, - { - title: '管理部门', - dataIndex: 'controlOrgName', - width: 80, - align: 'center', - }, - { - title: '管理人', - dataIndex: 'manageUserName', - width: 80, - align: 'center', - }, - { - title: '管理人电话', - dataIndex: 'manageUserMobile', - width: 130, - align: 'center', - }, - { - title: '厂家电话', - dataIndex: 'mfrsMobile', - width: 130, - align: 'center', - }, - { - title: '状态', - dataIndex: 'status_dictText', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '设备名称', - field: 'name', - component: 'Input', - }, - { - label: '设备型号', - field: 'hostModel', - component: 'Input', - }, - { - label: '设备类型', - field: 'type', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'intervene_aed_type', - getPopupContainer: () => document.body, - }), - }, - { - label: '所属单位', - field: 'second', - component: 'ApiSelect', - componentProps: () => { - return { - api: getSecondaryDepartmentList, - resultField: 'result', - labelField: 'departName', - valueField: 'orgCode', - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - label: '管理部门', - field: 'manageDepartCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartListByOrgCode, - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - params: { - orgCode: formModel?.second || 'asd(*', - }, - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onFocus: () => { - if (!formModel.second) { - return createMessage.warn('请先选择所属单位!'); - } - }, - }; - }, - }, -]; diff --git a/src/views/information/emergencyData/aedData/database/database.vue b/src/views/information/emergencyData/aedData/database/database.vue deleted file mode 100644 index 3bf6f09..0000000 --- a/src/views/information/emergencyData/aedData/database/database.vue +++ /dev/null @@ -1,78 +0,0 @@ - - diff --git a/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.api.ts b/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index cd30b8f..0000000 --- a/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - aedStructure = '/health-intervene/data/aed/tableStructure', -} - -export const aedStructureApi = (params) => defHttp.get({ url: Api.aedStructure, params }); diff --git a/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.vue b/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.vue deleted file mode 100644 index 61ac01a..0000000 --- a/src/views/information/emergencyData/aedData/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/emergencyData/ambulance/dataDictionary/dataDicitionary.api.ts b/src/views/information/emergencyData/ambulance/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index 3ce5291..0000000 --- a/src/views/information/emergencyData/ambulance/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - ambulanceDict = '/medical-center/data/ambulance/dict', -} - -export const ambulanceDictApi = (params) => defHttp.get({ url: Api.ambulanceDict, params }); diff --git a/src/views/information/emergencyData/ambulance/dataDictionary/dataDictionary.vue b/src/views/information/emergencyData/ambulance/dataDictionary/dataDictionary.vue deleted file mode 100644 index a4340fb..0000000 --- a/src/views/information/emergencyData/ambulance/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,184 +0,0 @@ - - diff --git a/src/views/information/emergencyData/ambulance/database/database.api.ts b/src/views/information/emergencyData/ambulance/database/database.api.ts deleted file mode 100644 index f73d098..0000000 --- a/src/views/information/emergencyData/ambulance/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - ambulancePage = '/medical-center/data/ambulance/page', - ambulanceExport = '/medical-center/data/ambulance/exportXls', - ambulanceStat = '/medical-center/data/ambulance/statistics', -} - -export const ambulancePageApi = (params) => defHttp.get({ url: Api.ambulancePage, params }); - -export const ambulanceExportApi = Api.ambulanceExport; - -export const ambulanceStatApi = (params: any) => defHttp.get({ url: Api.ambulanceStat, params }); diff --git a/src/views/information/emergencyData/ambulance/database/database.data.ts b/src/views/information/emergencyData/ambulance/database/database.data.ts deleted file mode 100644 index e175d55..0000000 --- a/src/views/information/emergencyData/ambulance/database/database.data.ts +++ /dev/null @@ -1,242 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { getEmergencyList } from '/@/views/consult/agentManagement/agentManagement.api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { getTimeStr } from '/@/utils/common/compUtils'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; - -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所属医疗点', - dataIndex: ['medicalResource', 'name'], - width: 120, - align: 'center', - }, - { - title: '所属机构', - dataIndex: 'belongName', - width: 120, - align: 'center', - }, - { - title: '救护类型', - dataIndex: 'rescueCapabilityType', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text == 1 ? '转运型' : '急救型'; - }, - }, - { - title: '车型', - dataIndex: 'model', - width: 80, - align: 'center', - }, - { - title: '车牌号', - dataIndex: 'licensePlateNumber', - width: 120, - align: 'center', - }, - { - title: '服务年份', - dataIndex: 'yearOfService', - width: 80, - align: 'center', - }, - { - title: '覆盖区域', - dataIndex: 'propagateArea', - width: 100, - align: 'center', - }, - { - title: '覆盖人数', - dataIndex: 'propagateNum', - width: 80, - align: 'center', - }, - { - title: '驾驶员姓名', - dataIndex: 'driverName', - width: 120, - align: 'center', - }, - { - title: '驾驶员联系电话', - dataIndex: 'phone', - width: 150, - align: 'center', - }, - { - title: '驾驶证', - dataIndex: 'driversLicensePhoto', - width: 80, - align: 'center', - }, - { - title: '资格证', - dataIndex: 'qualificationLicensePhoto', - width: 80, - align: 'center', - }, - { - title: '是否安装\nGPS', - dataIndex: 'isGps', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text == 1 ? '是' : '否'; - }, - }, - { - title: '是否链接\n公司车辆\n管理系统', - dataIndex: 'isManagementSystem', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text == 1 ? '是' : '否'; - }, - }, - { - title: '救护车\n照片', - dataIndex: 'ambulancePhoto', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '所配急\n救设备', - dataIndex: 'rescueDevice', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - }, - { - title: '救护能力', - dataIndex: 'rescueCapability', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '所属单位', - field: 'orgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getApi(), - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - immediate: true, - showSearch: true, - disabledInitValue: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onChange: () => { - formModel.resourceId = ''; - }, - onDeselect: () => { - formModel.resourceId = ''; - }, - }; - }, - }, - { - label: '所属医疗点', - field: 'resourceId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: medicalCenterList, - params: { - departCode: formModel.orgCode || 'abc', - }, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onFocus: () => { - if (!formModel.orgCode) { - return message.warning('请先选择单位'); - } - }, - }; - }, - }, - { - label: '救护类型', - field: 'rescueCapabilityType', - component: 'Select', - componentProps: () => ({ - options: [ - { - label: '转运型', - value: 1, - }, - { - label: '急救型', - value: 0, - }, - ], - getPopupContainer: () => document.body, - }), - }, - { - label: '车型', - field: 'model', - component: 'Input', - }, - { - field: 'licensePlateNumber', - label: '车牌号', - component: 'Input', - }, -]; diff --git a/src/views/information/emergencyData/ambulance/database/database.vue b/src/views/information/emergencyData/ambulance/database/database.vue deleted file mode 100644 index 67daea3..0000000 --- a/src/views/information/emergencyData/ambulance/database/database.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - diff --git a/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.api.ts b/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index cff5b5f..0000000 --- a/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - ambulanceStructure = '/medical-center/data/ambulance/tableStructure', -} - -export const ambulanceStructureApi = (params) => defHttp.get({ url: Api.ambulanceStructure, params }); diff --git a/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.vue b/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.vue deleted file mode 100644 index e7924a3..0000000 --- a/src/views/information/emergencyData/ambulance/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDicitionary.api.ts b/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index 8476e12..0000000 --- a/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - phoneDict = '/health-emergency/data/phone/dict', -} - -export const phoneDictApi = (params) => defHttp.get({ url: Api.phoneDict, params }); diff --git a/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDictionary.vue b/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDictionary.vue deleted file mode 100644 index afbdde2..0000000 --- a/src/views/information/emergencyData/emergencyCall/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,143 +0,0 @@ - - diff --git a/src/views/information/emergencyData/emergencyCall/database/database.api.ts b/src/views/information/emergencyData/emergencyCall/database/database.api.ts deleted file mode 100644 index f144d7c..0000000 --- a/src/views/information/emergencyData/emergencyCall/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - phonePage = '/health-emergency/data/phone/page', - phoneExport = '/health-emergency/data/phone/exportXls', - phoneStat = '/health-emergency/data/phone/statistics', -} - -export const phonePageApi = (params) => defHttp.get({ url: Api.phonePage, params }); - -export const phoneExportApi = Api.phoneExport; - -export const phoneStatApi = (params: any) => defHttp.get({ url: Api.phoneStat, params }); diff --git a/src/views/information/emergencyData/emergencyCall/database/database.data.ts b/src/views/information/emergencyData/emergencyCall/database/database.data.ts deleted file mode 100644 index ab769da..0000000 --- a/src/views/information/emergencyData/emergencyCall/database/database.data.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { getEmergencyList } from '/@/views/consult/agentManagement/agentManagement.api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { getTimeStr } from '/@/utils/common/compUtils'; - -export const tableColumns: BasicColumn[] = [ - { - title: '单位名称', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门名称', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '呼叫中心', - dataIndex: 'centerName', - width: 150, - align: 'center', - }, - { - title: '坐席工号', - dataIndex: 'seatNo', - width: 100, - align: 'center', - }, - { - title: '电话', - dataIndex: 'phone', - width: 150, - align: 'center', - }, - { - title: '通话时长', - dataIndex: 'callDuration', - width: 120, - align: 'center', - customRender: ({ text }) => { - return getTimeStr(text); - }, - }, - { - title: '通话时间', - dataIndex: 'callTime', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'sex2', - getPopupContainer: () => document.body, - }), - }, - { - field: 'centerId', - label: '呼叫中心', - component: 'ApiSelect', - componentProps: () => { - return { - api: getEmergencyList, - params: { - pageNo: 1, - pageSize: 200, - }, - labelField: 'centerName', - valueField: 'id', - immediate: true, - resultField: 'records', - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input?.trim()?.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - }; - }, - }, - { - field: 'seatId', - label: '坐席工号', - component: 'Input', - }, -]; diff --git a/src/views/information/emergencyData/emergencyCall/database/database.vue b/src/views/information/emergencyData/emergencyCall/database/database.vue deleted file mode 100644 index 3169004..0000000 --- a/src/views/information/emergencyData/emergencyCall/database/database.vue +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.api.ts b/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 2cf3636..0000000 --- a/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-emergency/data/phone/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.vue b/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.vue deleted file mode 100644 index 5a56f96..0000000 --- a/src/views/information/emergencyData/emergencyCall/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDicitionary.api.ts b/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index d09bd07..0000000 --- a/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - watchDict = '/health-watch/data/watch/dict', -} - -export const watchDictApi = (params) => defHttp.get({ url: Api.watchDict, params }); diff --git a/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDictionary.vue b/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDictionary.vue deleted file mode 100644 index f9cd194..0000000 --- a/src/views/information/emergencyData/wearAlarm/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,139 +0,0 @@ - - diff --git a/src/views/information/emergencyData/wearAlarm/database/database.api.ts b/src/views/information/emergencyData/wearAlarm/database/database.api.ts deleted file mode 100644 index cc26249..0000000 --- a/src/views/information/emergencyData/wearAlarm/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - errorPage = '/health-watch/data/watch/error/page', -} - -export const errorPageApi = (params) => defHttp.get({ url: Api.errorPage, params }); diff --git a/src/views/information/emergencyData/wearAlarm/database/database.data.ts b/src/views/information/emergencyData/wearAlarm/database/database.data.ts deleted file mode 100644 index 39569be..0000000 --- a/src/views/information/emergencyData/wearAlarm/database/database.data.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { getEmergencyList } from '/@/views/consult/agentManagement/agentManagement.api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { getTimeStr } from '/@/utils/common/compUtils'; - -export const tableColumns: BasicColumn[] = [ - { - title: '员工姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '工具编码', - dataIndex: 'watchNo', - width: 120, - align: 'center', - }, - { - title: '单位名称', - dataIndex: 'departName', - width: 80, - align: 'center', - }, - { - title: '部门名称', - dataIndex: 'orgName', - width: 150, - align: 'center', - }, - { - title: '事件类型', - dataIndex: 'eventType_dictText', - width: 100, - align: 'center', - }, - { - title: '异常值', - dataIndex: 'dataValue', - width: 150, - align: 'center', - }, - { - title: '手机号码', - dataIndex: 'phone', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 150, - align: 'center', - }, - { - title: '报警时间', - dataIndex: 'warnTime', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工姓名', - field: 'realName', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '工具编码', - field: 'watchNo', - component: 'Input', - }, - { - label: '事件类型', - field: 'eventType', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'watch_event_type', - getPopupContainer: () => document.body, - }), - }, - { - label: '异常值', - field: 'error', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.errValueCondition = data.selectValue; - formModel.errValue = data.inputValue1; - if (data.selectValue == '<>') { - formModel.errValueB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'errValueCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'errValue', - component: 'Input', - show: false, - }, - { - label: '', - field: 'errValueB', - component: 'Input', - show: false, - }, - { - field: 'errorTime', - label: '报警时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/emergencyData/wearAlarm/database/database.vue b/src/views/information/emergencyData/wearAlarm/database/database.vue deleted file mode 100644 index 89cd5a2..0000000 --- a/src/views/information/emergencyData/wearAlarm/database/database.vue +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.api.ts b/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 4adbe0e..0000000 --- a/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-watch/data/watch/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.vue b/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.vue deleted file mode 100644 index e12678f..0000000 --- a/src/views/information/emergencyData/wearAlarm/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.api.ts b/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.api.ts deleted file mode 100644 index a107b1a..0000000 --- a/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - synthesisAge = '/health-system/analysis/user/synthesis/age', - synthesisSex = '/health-system/analysis/user/synthesis/sex', - synthesisDepart = '/health-system/analysis/user/synthesis/depart', - synthesisJobLevel = '/health-system/analysis/user/synthesis/jobLevel', -} - -export const synthesisAgeApi = (params: any) => defHttp.get({ url: Api.synthesisAge, params }); -export const synthesisSexApi = (params: any) => defHttp.get({ url: Api.synthesisSex, params }); -export const synthesisDepartApi = (params: any) => defHttp.get({ url: Api.synthesisDepart, params }); -export const synthesisJobLevelApi = (params: any) => defHttp.get({ url: Api.synthesisJobLevel, params }); diff --git a/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index e84f52f..0000000 --- a/src/views/information/employeeInformation/basicInformation/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDicitionary.api.ts b/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index b5e7271..0000000 --- a/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfoDict = '/health-system/user/info/dict', -} - -export const userInfoDictApi = (params) => defHttp.get({ url: Api.userInfoDict, params }); diff --git a/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDictionary.vue b/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDictionary.vue deleted file mode 100644 index a4d964b..0000000 --- a/src/views/information/employeeInformation/basicInformation/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,171 +0,0 @@ - - diff --git a/src/views/information/employeeInformation/basicInformation/database/database.api.ts b/src/views/information/employeeInformation/basicInformation/database/database.api.ts deleted file mode 100644 index b8f9514..0000000 --- a/src/views/information/employeeInformation/basicInformation/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfo = '/health-system/user/info/page', - userInfoEdit = '/health-system/user/info/edit', - userInfoExport = '/health-system/user/info/export', - userInfoStat = '/health-system/user/info/stat', -} - -export const userInfoApi = (params) => defHttp.get({ url: Api.userInfo, params }); -export const userInfoEditApi = (params) => defHttp.post({ url: Api.userInfoEdit, params }); -export const userInfoExportApi = Api.userInfoExport; -export const userInfoStatApi = (params: any) => defHttp.get({ url: Api.userInfoStat, params }); diff --git a/src/views/information/employeeInformation/basicInformation/database/database.data.ts b/src/views/information/employeeInformation/basicInformation/database/database.data.ts deleted file mode 100644 index 63890dc..0000000 --- a/src/views/information/employeeInformation/basicInformation/database/database.data.ts +++ /dev/null @@ -1,291 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { useUserStore } from '/@/store/modules/user'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 150, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '民族', - dataIndex: 'empNation_dictText', - width: 80, - align: 'center', - }, - { - title: '籍贯', - dataIndex: 'empNativeplace', - width: 80, - align: 'center', - }, - { - title: '出生日期', - dataIndex: 'birthday', - width: 120, - align: 'center', - }, - { - title: '政治面貌', - dataIndex: 'empPolitical_dictText', - width: 80, - align: 'center', - }, - { - title: '参加工作时间', - dataIndex: 'empWorktime', - width: 120, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empJob_dictText', - width: 80, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '岗位层级', - dataIndex: 'jobLevel_dictText', - width: 80, - align: 'center', - }, - { - title: '职称', - dataIndex: 'postNew_dictText', - width: 80, - align: 'center', - }, - { - title: '手机号', - dataIndex: 'phone', - width: 120, - align: 'center', - }, - { - title: '婚姻状况', - dataIndex: 'empMarriage_dictText', - width: 80, - align: 'center', - }, - { - title: '健康状况', - dataIndex: 'userGroup_dictText', - width: 80, - align: 'center', - }, - { - title: '照片', - dataIndex: 'avatar', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'sex2', - }), - }, - { - label: '民族', - field: 'empNation', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'nation', - }), - }, - { - label: '籍贯', - field: 'empNativeplace', - component: 'Input', - - // component: 'JAreaLinkage', - // - // componentProps: () => ({ - // showArea: false, - // getPopupContainer: () => document.body, - // }), - }, - - { - label: '出生日期', - field: 'birthdaysss', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '政治面貌', - field: 'empPolitical', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'emp_political', - }), - }, - { - label: '参加工作', - field: 'empWorktimessss', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'position_new', - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }), - }, - { - label: '身份证号', - field: 'idCardFind', - component: 'Input', - }, - { - label: '岗位层级', - field: 'jobLevel', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'job_level', - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }), - }, - { - label: '职称', - field: 'postNew', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'post_new', - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.trim().toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }), - }, - { - label: '手机号', - field: 'phone', - component: 'Input', - }, - { - label: '婚姻状况', - field: 'empMarriage', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'mr_state', - }), - }, - { - label: '健康现状', - field: 'userGroup', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'user_group_desc', - }), - }, -]; diff --git a/src/views/information/employeeInformation/basicInformation/database/database.vue b/src/views/information/employeeInformation/basicInformation/database/database.vue deleted file mode 100644 index 7e915a5..0000000 --- a/src/views/information/employeeInformation/basicInformation/database/database.vue +++ /dev/null @@ -1,45 +0,0 @@ - - diff --git a/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.api.ts b/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 414b192..0000000 --- a/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-system/user/info/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.vue b/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.vue deleted file mode 100644 index 7c74dbc..0000000 --- a/src/views/information/employeeInformation/basicInformation/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index eea1d24..0000000 --- a/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - //部门 - department = '/health-system/analysis/user/alone/depart', - aloneSex = '/health-system/analysis/user/alone/sex', - aloneAge = '/health-system/analysis/user/alone/age', - alonePolitical = '/health-system/analysis/user/alone/political', - aloneNation = '/health-system/analysis/user/alone/nation', - aloneJobLevel = '/health-system/analysis/user/alone/jobLevel', - aloneMarried = '/health-system/analysis/user/alone/married', - aloneIll = '/health-system/analysis/user/alone/ill', -} - -export const departmentApi = (params) => defHttp.post({ url: Api.department, params }); -export const aloneSexApi = (params) => defHttp.get({ url: Api.aloneSex, params }); -export const aloneAgeApi = (params) => defHttp.get({ url: Api.aloneAge, params }); -export const alonePoliticalApi = (params) => defHttp.get({ url: Api.alonePolitical, params }); -export const aloneNationApi = (params) => defHttp.get({ url: Api.aloneNation, params }); -export const aloneJobLevelApi = (params) => defHttp.get({ url: Api.aloneJobLevel, params }); -export const aloneMarriedApi = (params) => defHttp.get({ url: Api.aloneMarried, params }); -export const aloneIllApi = (params) => defHttp.get({ url: Api.aloneIll, params }); diff --git a/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 80a3956..0000000 --- a/src/views/information/employeeInformation/basicInformation/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/allergen/dataDictionary/dataDictionary.vue b/src/views/information/environmentalMonitoring/allergen/dataDictionary/dataDictionary.vue deleted file mode 100644 index 663f553..0000000 --- a/src/views/information/environmentalMonitoring/allergen/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,156 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/allergen/database/database.api.ts b/src/views/information/environmentalMonitoring/allergen/database/database.api.ts deleted file mode 100644 index c975c27..0000000 --- a/src/views/information/environmentalMonitoring/allergen/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - pollenPage = '/health-intervene/data/meter-data/pollen/page', -} - -export const pollenPageApi = (params) => defHttp.get({ url: Api.pollenPage, params }); diff --git a/src/views/information/environmentalMonitoring/allergen/database/database.data.ts b/src/views/information/environmentalMonitoring/allergen/database/database.data.ts deleted file mode 100644 index 9a58ac8..0000000 --- a/src/views/information/environmentalMonitoring/allergen/database/database.data.ts +++ /dev/null @@ -1,232 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { useUserStore } from '/@/store/modules/user'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - dataIndex: 'meterName', - width: 120, - align: 'center', - }, - { - title: '设备编号', - dataIndex: 'meterCode', - width: 120, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '设备监测场所', - dataIndex: 'meterAddress', - width: 150, - align: 'center', - }, - { - title: '数据更新日期', - dataIndex: 'updateDate', - width: 120, - align: 'center', - }, - { - title: '松属\n(粒/千mm²)', - dataIndex: 'song', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '杨属\n(粒/千mm²)', - dataIndex: 'yang', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '柏科\n(粒/千mm²)', - dataIndex: 'bai', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '柳属\n(粒/千mm²)', - dataIndex: 'liu', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '蒿属\n(粒/千mm²)', - dataIndex: 'hao', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '藜科\n(粒/千mm²)', - dataIndex: 'li', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '苋科\n(粒/千mm²)', - dataIndex: 'xian', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '花粉总数\n(粒/千mm²)', - dataIndex: 'totalPollen', - width: 100, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '过敏等级', - dataIndex: 'score_dictText', - width: 120, - align: 'center', - }, - { - title: '数据记录', - dataIndex: 'dataRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备所属单位', - field: 'orgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - params: { - idOrCode: user?.userInfo?.orgCode?.substring(0, 6) || '12313', - }, - onChange: (e) => { - formModel.orgCode = e; - }, - getPopupContainer: () => document.body, - valueField: 'orgCode', - immediate: true, - }; - }, - }, - // { - // label: '设备所属单位', - // field: 'orgCode', - // component: 'JlazyTreeSelect', - // componentProps: () => { - // return { - // getPopupContainer: () => document.body, - // multiple: false, - // api: queryDepartTreeSync, - // loadApi: queryDepartTreeSync, - // afterApi: (data) => { - // data.forEach((item: any) => { - // item['preTitle'] = item.title; - // item['key'] = item['orgCode']; - // }); - // return data; - // }, - // preItem: (title, item) => { - // item['preTitle'] = title + '/' + item.title; - // item['key'] = item['orgCode']; - // return item; - // }, - // fieldNamesInfo: { - // value: 'orgCode', - // label: 'preTitle', - // key: 'orgCode', - // }, - // }; - // }, - // show: ({ values }) => { - // return values.showType !== '1'; - // }, - // }, - { - field: 'meterCode', - label: '设备编号', - component: 'Input', - }, - { - field: 'meterName', - label: '设备名称', - component: 'Input', - }, - { - field: 'setUpTime1', - label: '数据更新日期', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/environmentalMonitoring/allergen/database/database.vue b/src/views/information/environmentalMonitoring/allergen/database/database.vue deleted file mode 100644 index fe576cb..0000000 --- a/src/views/information/environmentalMonitoring/allergen/database/database.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/allergen/libraryStructure/libraryStructure.vue b/src/views/information/environmentalMonitoring/allergen/libraryStructure/libraryStructure.vue deleted file mode 100644 index 5c1a615..0000000 --- a/src/views/information/environmentalMonitoring/allergen/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/components/chartPage.api.ts b/src/views/information/environmentalMonitoring/components/chartPage.api.ts deleted file mode 100644 index b6602a0..0000000 --- a/src/views/information/environmentalMonitoring/components/chartPage.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dayData = '/health-intervene/data/meter-data/indoor/day,' + - '/health-intervene/data/meter-data/outdoor/day,' + - '/health-intervene/data/meter-data/pollen/day,' + - '/health-intervene/data/meter-data/water/day', // 室内 室外 花粉 水质 -} - -const timeList: Array = [Api.dayData]; - -export const getTimeApi = (params: any, times: number, typeId: number) => defHttp.get({ url: timeList[times].split(',')[typeId], params: params }); diff --git a/src/views/information/environmentalMonitoring/components/chartPage.vue b/src/views/information/environmentalMonitoring/components/chartPage.vue deleted file mode 100644 index e95015c..0000000 --- a/src/views/information/environmentalMonitoring/components/chartPage.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/components/detail.vue b/src/views/information/environmentalMonitoring/components/detail.vue deleted file mode 100644 index 29ac424..0000000 --- a/src/views/information/environmentalMonitoring/components/detail.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.api.ts b/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 2f49f56..0000000 --- a/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - houseDict = '/health-archives/data/house/dict', -} - -export const houseDictApi = (params) => defHttp.get({ url: Api.houseDict, params }); diff --git a/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.vue b/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.vue deleted file mode 100644 index 9fe746f..0000000 --- a/src/views/information/environmentalMonitoring/device/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,132 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/device/database/database.api.ts b/src/views/information/environmentalMonitoring/device/database/database.api.ts deleted file mode 100644 index 4f562df..0000000 --- a/src/views/information/environmentalMonitoring/device/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - infoList = '/health-intervene/meter_info/list', -} - -export const infoListApi = (params) => defHttp.get({ url: Api.infoList, params }); diff --git a/src/views/information/environmentalMonitoring/device/database/database.data.ts b/src/views/information/environmentalMonitoring/device/database/database.data.ts deleted file mode 100644 index 83c88a9..0000000 --- a/src/views/information/environmentalMonitoring/device/database/database.data.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { categoryListApi } from '/@/views/interveneNew/environment/components/device/deviceList.api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import dayjs from 'dayjs'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { useUserStore } from '/@/store/modules/user'; -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - align: 'center', - dataIndex: 'meterName', - }, - { - title: 'DTU编号', - align: 'center', - dataIndex: 'dtuCode', - }, - { - title: '设备编号', - align: 'center', - dataIndex: 'meterCode', - }, - { - title: '设备分类', - align: 'center', - dataIndex: 'categoryName', - }, - { - title: '设备所属单位', - align: 'center', - dataIndex: 'unitName', - }, - { - title: '设备监测场所', - align: 'center', - dataIndex: 'meterAddress', - }, - { - title: '布点日期', - align: 'center', - dataIndex: 'createDate', - customRender: ({ text }) => { - return text && dayjs(text * 1000).format('YYYY/MM/DD'); - }, - }, - { - title: '监测时长(天)', - align: 'center', - dataIndex: 'monitorTime', - }, -]; - -export function getSearchSchema(typeId: number) { - const searchFormSchema: FormSchema[] = [ - { - label: '设备名称', - field: 'meterName', - component: 'Input', - }, - { - label: '设备编号', - field: 'meterCode', - component: 'Input', - }, - { - label: '所属单位', - field: 'orgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - params: { - idOrCode: user?.userInfo?.orgCode?.substring(0, 6) || '12313', - }, - onChange: (e) => { - formModel.orgCode = e; - }, - getPopupContainer: () => document.body, - valueField: 'orgCode', - immediate: true, - }; - }, - }, - // { - // label: '所属单位', - // field: 'orgCode', - // component: 'JlazyTreeSelect', - // componentProps: () => { - // return { - // getPopupContainer: () => document.body, - // multiple: false, - // api: queryDepartTreeSync, - // loadApi: queryDepartTreeSync, - // afterApi: (data) => { - // data.forEach((item: any) => { - // item['preTitle'] = item.title; - // item['key'] = item['orgCode']; - // }); - // return data; - // }, - // preItem: (title, item) => { - // item['preTitle'] = title + '/' + item.title; - // item['key'] = item['orgCode']; - // return item; - // }, - // fieldNamesInfo: { - // value: 'orgCode', - // label: 'preTitle', - // key: 'orgCode', - // }, - // }; - // }, - // show: ({ values }) => { - // return values.showType !== '1'; - // }, - // }, - { - label: '设备监测场所', - field: 'meterAddress', - component: 'Input', - }, - { - label: '设备分类', - field: 'categoryId', - component: 'ApiSelect', - componentProps: () => { - return { - api: categoryListApi, - resultField: 'list', - labelField: 'category', - valueField: 'id', - getPopupContainer: () => document.body, - params: { - type: typeId || 0, - }, - immediate: false, - }; - }, - }, - ]; - return searchFormSchema; -} diff --git a/src/views/information/environmentalMonitoring/device/database/database.vue b/src/views/information/environmentalMonitoring/device/database/database.vue deleted file mode 100644 index 033b843..0000000 --- a/src/views/information/environmentalMonitoring/device/database/database.vue +++ /dev/null @@ -1,55 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/device/libraryStructure/libraryStructure.vue b/src/views/information/environmentalMonitoring/device/libraryStructure/libraryStructure.vue deleted file mode 100644 index f8f5f02..0000000 --- a/src/views/information/environmentalMonitoring/device/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/indoor/dataDictionary/dataDictionary.vue b/src/views/information/environmentalMonitoring/indoor/dataDictionary/dataDictionary.vue deleted file mode 100644 index c3f1145..0000000 --- a/src/views/information/environmentalMonitoring/indoor/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,147 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/indoor/database/database.api.ts b/src/views/information/environmentalMonitoring/indoor/database/database.api.ts deleted file mode 100644 index 2251012..0000000 --- a/src/views/information/environmentalMonitoring/indoor/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - indoorPage = '/health-intervene/data/meter-data/indoor/page', -} - -export const indoorPageApi = (params) => defHttp.get({ url: Api.indoorPage, params }); diff --git a/src/views/information/environmentalMonitoring/indoor/database/database.data.ts b/src/views/information/environmentalMonitoring/indoor/database/database.data.ts deleted file mode 100644 index 5be0fad..0000000 --- a/src/views/information/environmentalMonitoring/indoor/database/database.data.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - dataIndex: 'meterName', - width: 120, - align: 'center', - }, - { - title: '设备编号', - dataIndex: 'meterCode', - width: 120, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '设备监测场所', - dataIndex: 'meterAddress', - width: 100, - align: 'center', - }, - { - title: '数据更新日期', - dataIndex: 'updateDate', - width: 150, - align: 'center', - }, - { - title: '温度\n(℃)', - dataIndex: 'temperature', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '湿度\n(%)', - dataIndex: 'humidity', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'CO2\n(PPM)', - dataIndex: 'carbonDioxide', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '甲醛\n(mg/m³)', - dataIndex: 'hcho', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'PM2.5\n(μg/m³)', - dataIndex: 'pm25', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'PM10\n(μg/m³)', - dataIndex: 'pm10', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '空气质量指数', - dataIndex: 'score_dictText', - width: 120, - align: 'center', - }, - { - title: '数据记录', - dataIndex: 'dataRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - field: 'meterCode', - label: '设备编号', - component: 'Input', - }, - { - field: 'meterName', - label: '设备名称', - component: 'Input', - }, - { - field: 'setUpTime1', - label: '数据更新日期', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/environmentalMonitoring/indoor/database/database.vue b/src/views/information/environmentalMonitoring/indoor/database/database.vue deleted file mode 100644 index 9394d49..0000000 --- a/src/views/information/environmentalMonitoring/indoor/database/database.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/indoor/libraryStructure/libraryStructure.vue b/src/views/information/environmentalMonitoring/indoor/libraryStructure/libraryStructure.vue deleted file mode 100644 index 596ddbe..0000000 --- a/src/views/information/environmentalMonitoring/indoor/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/outdoor/dataDictionary/dataDictionary.vue b/src/views/information/environmentalMonitoring/outdoor/dataDictionary/dataDictionary.vue deleted file mode 100644 index 16f36c3..0000000 --- a/src/views/information/environmentalMonitoring/outdoor/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,156 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/outdoor/database/database.api.ts b/src/views/information/environmentalMonitoring/outdoor/database/database.api.ts deleted file mode 100644 index 184ae28..0000000 --- a/src/views/information/environmentalMonitoring/outdoor/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - outdoorPage = '/health-intervene/data/meter-data/outdoor/page', -} - -export const outdoorPageApi = (params) => defHttp.get({ url: Api.outdoorPage, params }); diff --git a/src/views/information/environmentalMonitoring/outdoor/database/database.data.ts b/src/views/information/environmentalMonitoring/outdoor/database/database.data.ts deleted file mode 100644 index b2dadb8..0000000 --- a/src/views/information/environmentalMonitoring/outdoor/database/database.data.ts +++ /dev/null @@ -1,203 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew } from '/@/utils/orgSearchInfo'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - dataIndex: 'meterName', - width: 120, - align: 'center', - }, - { - title: '设备编号', - dataIndex: 'meterCode', - width: 120, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '设备监测场所', - dataIndex: 'meterAddress', - width: 100, - align: 'center', - }, - { - title: '数据更新日期', - dataIndex: 'updateDate', - width: 150, - align: 'center', - }, - { - title: '温度\n(℃)', - dataIndex: 'temperature', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '湿度\n(%)', - dataIndex: 'humidity', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '太阳辐射\n(W/m²)', - dataIndex: 'rsRa', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'PM2.5\n(μg/m³)', - dataIndex: 'pm25', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'PM平均值\n(μg/m³)', - dataIndex: 'pm10', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '光照\n(lm/m²)', - dataIndex: 'illuminance', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '风速\n(m/s)', - dataIndex: 'windSpeed', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '风向', - dataIndex: 'windDirection', - width: 80, - align: 'center', - }, - { - title: '空气质量指数', - dataIndex: 'score_dictText', - width: 120, - align: 'center', - }, - { - title: '数据记录', - dataIndex: 'dataRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - field: 'meterCode', - label: '设备编号', - component: 'Input', - }, - { - field: 'meterName', - label: '设备名称', - component: 'Input', - }, - { - field: 'setUpTime1', - label: '数据更新日期', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/environmentalMonitoring/outdoor/database/database.vue b/src/views/information/environmentalMonitoring/outdoor/database/database.vue deleted file mode 100644 index c56389f..0000000 --- a/src/views/information/environmentalMonitoring/outdoor/database/database.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/outdoor/libraryStructure/libraryStructure.vue b/src/views/information/environmentalMonitoring/outdoor/libraryStructure/libraryStructure.vue deleted file mode 100644 index e4d1a3d..0000000 --- a/src/views/information/environmentalMonitoring/outdoor/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.api.ts b/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 4882cc8..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - meterDict = '/health-intervene/data/meter-data/dict', -} - -export const meterDictApi = (params) => defHttp.get({ url: Api.meterDict, params }); diff --git a/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.vue b/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.vue deleted file mode 100644 index afb8dc6..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,147 +0,0 @@ - - diff --git a/src/views/information/environmentalMonitoring/waterQuality/database/database.api.ts b/src/views/information/environmentalMonitoring/waterQuality/database/database.api.ts deleted file mode 100644 index 85d3920..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - waterPage = '/health-intervene/data/meter-data/water/page', -} - -export const waterPageApi = (params) => defHttp.get({ url: Api.waterPage, params }); diff --git a/src/views/information/environmentalMonitoring/waterQuality/database/database.data.ts b/src/views/information/environmentalMonitoring/waterQuality/database/database.data.ts deleted file mode 100644 index d7662de..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/database/database.data.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew } from '/@/utils/orgSearchInfo'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '设备名称', - dataIndex: 'meterName', - width: 120, - align: 'center', - }, - { - title: '设备编号', - dataIndex: 'meterCode', - width: 150, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '设备监测场所', - dataIndex: 'meterAddress', - width: 150, - align: 'center', - }, - { - title: '数据更新日期', - dataIndex: 'updateDate', - width: 150, - align: 'center', - }, - { - title: '温度\n(℃)', - dataIndex: 'temperature', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '电导率\n(US/cm)', - dataIndex: 'conductivity', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '电阻率\n(Ω-m)', - dataIndex: 'resistivity', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'TDS\n(mg/L)', - dataIndex: 'tds', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'PH', - dataIndex: 'ph', - width: 80, - align: 'center', - }, - { - title: '盐度\n(mg/L)', - dataIndex: 'salinity', - width: 80, - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '水质等级', - dataIndex: 'score_dictText', - width: 120, - align: 'center', - }, - { - title: '数据记录', - dataIndex: 'dataRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - field: 'meterCode', - label: '设备编号', - component: 'Input', - }, - { - field: 'meterName', - label: '设备名称', - component: 'Input', - }, - { - field: 'setUpTime1', - label: '数据更新日期', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/environmentalMonitoring/waterQuality/database/database.vue b/src/views/information/environmentalMonitoring/waterQuality/database/database.vue deleted file mode 100644 index f935490..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/database/database.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - diff --git a/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.api.ts b/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 25a957c..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - meterDataStru = '/health-intervene/data/meter-data/tableStructure', -} - -export const meterDataStruApi = (params) => defHttp.get({ url: Api.meterDataStru, params }); diff --git a/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.vue b/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.vue deleted file mode 100644 index 92abe5c..0000000 --- a/src/views/information/environmentalMonitoring/waterQuality/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/knowledge/expert/dataDictionary/dataDictionary.vue b/src/views/information/knowledge/expert/dataDictionary/dataDictionary.vue deleted file mode 100644 index 011701a..0000000 --- a/src/views/information/knowledge/expert/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,143 +0,0 @@ - - diff --git a/src/views/information/knowledge/expert/database/database.api.ts b/src/views/information/knowledge/expert/database/database.api.ts deleted file mode 100644 index 3063827..0000000 --- a/src/views/information/knowledge/expert/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - specialist = '/health-intervene/data/knowledge/specialist', - terminalExport = '/health-intervene/data/diabetes/terminal/exportXls', - terminalStat = '/health-intervene/data/diabetes/terminal/statistics', -} - -export const specialistApi = (params) => defHttp.get({ url: Api.specialist, params }); - -export const terminalExportApi = Api.terminalExport; - -export const terminalStatApi = (params: any) => defHttp.get({ url: Api.terminalStat, params }); diff --git a/src/views/information/knowledge/expert/database/database.data.ts b/src/views/information/knowledge/expert/database/database.data.ts deleted file mode 100644 index fe3a890..0000000 --- a/src/views/information/knowledge/expert/database/database.data.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '专家照片', - dataIndex: 'pic', - width: 80, - align: 'center', - }, - { - title: '专家姓名', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'gender', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '身份证', - dataIndex: 'idCard', - width: 150, - align: 'center', - }, - { - title: '签约单位', - dataIndex: 'contractUnit', - width: 80, - align: 'center', - }, - { - title: '所属医院(机构)', - dataIndex: 'hospitalName', - width: 100, - align: 'center', - }, - { - title: '科别', - dataIndex: 'deptName', - width: 100, - align: 'center', - }, - { - title: '职务职称', - dataIndex: 'jobTitle', - width: 100, - align: 'center', - }, - { - title: '签约日期', - dataIndex: 'createTime', - width: 100, - align: 'center', - }, - { - title: '状态', - dataIndex: 'status_dictText', - width: 100, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '专家姓名', - field: 'name', - component: 'Input', - }, - { - label: '性别', - field: 'gender', - component: 'Select', - componentProps: () => ({ - options: [ - { label: '男', value: '男' }, - { label: '女', value: '女' }, - ], - getPopupContainer: () => document.body, - }), - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '身份证', - field: 'idCard', - component: 'Input', - }, - { - label: '所属医院', - field: 'hospitalName', - component: 'Input', - }, - { - label: '科别', - field: 'deptName', - component: 'Input', - }, -]; diff --git a/src/views/information/knowledge/expert/database/database.vue b/src/views/information/knowledge/expert/database/database.vue deleted file mode 100644 index 00678f1..0000000 --- a/src/views/information/knowledge/expert/database/database.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/views/information/knowledge/expert/libraryStructure/libraryStructure.vue b/src/views/information/knowledge/expert/libraryStructure/libraryStructure.vue deleted file mode 100644 index bd90dd0..0000000 --- a/src/views/information/knowledge/expert/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/knowledge/jobHealth/dataDictionary/dataDictionary.vue b/src/views/information/knowledge/jobHealth/dataDictionary/dataDictionary.vue deleted file mode 100644 index 28724cc..0000000 --- a/src/views/information/knowledge/jobHealth/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,151 +0,0 @@ - - diff --git a/src/views/information/knowledge/jobHealth/database/database.api.ts b/src/views/information/knowledge/jobHealth/database/database.api.ts deleted file mode 100644 index 1660fb7..0000000 --- a/src/views/information/knowledge/jobHealth/database/database.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/sys/position/list', - terminalExport = '/health-intervene/data/diabetes/terminal/exportXls', - terminalStat = '/health-intervene/data/diabetes/terminal/statistics', -} -export const listApi = (params: any) => defHttp.get({ url: Api.list, params: params }); - -export const terminalExportApi = Api.terminalExport; - -export const terminalStatApi = (params: any) => defHttp.get({ url: Api.terminalStat, params }); diff --git a/src/views/information/knowledge/jobHealth/database/database.data.ts b/src/views/information/knowledge/jobHealth/database/database.data.ts deleted file mode 100644 index bfac1f2..0000000 --- a/src/views/information/knowledge/jobHealth/database/database.data.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '岗位名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '单位类别', - dataIndex: 'orgType_dictText', - width: 120, - align: 'center', - }, - { - title: '岗位类别', - dataIndex: 'postType_dictText', - width: 80, - align: 'center', - }, - { - title: '岗位简介', - dataIndex: 'remark', - width: 80, - align: 'center', - }, - { - title: '岗位知识', - dataIndex: 'knowledge', - children: [ - { - title: '健康标准', - dataIndex: 'healthStandard', - align: 'center', - }, - { - title: '健康标示', - dataIndex: 'healthTips', - align: 'center', - }, - { - title: '知识图谱', - dataIndex: 'knowledgeGraph', - align: 'center', - }, - { - title: '危险因素', - dataIndex: 'riskFactor', - align: 'center', - }, - { - title: '注意事项', - dataIndex: 'note', - - align: 'center', - }, - { - title: '健康红线', - dataIndex: 'redLine', - align: 'center', - }, - { - title: '禁忌证', - dataIndex: 'taboo', - align: 'center', - }, - ], - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '岗位名称', - field: 'name', - component: 'Input', - }, - { - label: '岗位类别', - field: 'postType', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'post_type', - getPopupContainer: () => document.body, - }, - }, -]; diff --git a/src/views/information/knowledge/jobHealth/database/database.vue b/src/views/information/knowledge/jobHealth/database/database.vue deleted file mode 100644 index 4c56270..0000000 --- a/src/views/information/knowledge/jobHealth/database/database.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - diff --git a/src/views/information/knowledge/jobHealth/libraryStructure/libraryStructure.vue b/src/views/information/knowledge/jobHealth/libraryStructure/libraryStructure.vue deleted file mode 100644 index 76ff598..0000000 --- a/src/views/information/knowledge/jobHealth/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.api.ts b/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 16ecbac..0000000 --- a/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - signalDict = '/health-intervene/data/caner/signal/dict', -} - -export const signalDictApi = (params: any) => defHttp.get({ url: Api.signalDict, params }); diff --git a/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.vue b/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.vue deleted file mode 100644 index a22dc24..0000000 --- a/src/views/information/knowledge/signalPrediction/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,124 +0,0 @@ - - diff --git a/src/views/information/knowledge/signalPrediction/database/database.api.ts b/src/views/information/knowledge/signalPrediction/database/database.api.ts deleted file mode 100644 index 7948a03..0000000 --- a/src/views/information/knowledge/signalPrediction/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-intervene/cancer/signal/list', - terminalExport = '/health-intervene/data/diabetes/terminal/exportXls', - terminalStat = '/health-intervene/data/diabetes/terminal/statistics', -} -// 获取列表 type:0 获取表象信号 -export const listApi = (params: any) => defHttp.post({ url: Api.list, params: { ...params, type: 0 } }); - -export const terminalExportApi = Api.terminalExport; - -export const terminalStatApi = (params: any) => defHttp.get({ url: Api.terminalStat, params }); diff --git a/src/views/information/knowledge/signalPrediction/database/database.data.ts b/src/views/information/knowledge/signalPrediction/database/database.data.ts deleted file mode 100644 index 8ae2b83..0000000 --- a/src/views/information/knowledge/signalPrediction/database/database.data.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getAbnormalColumnsText, getNormalColumnsText } from '/@/views/interveneNew/cancer/signalPrediction/signalHooks'; - -export const tableColumns: BasicColumn[] = [ - { - title: '信号名称', - align: 'center', - dataIndex: 'behaviour', - width: 120, - }, - { - title: '判断单位', - align: 'center', - dataIndex: 'unit', - width: 120, - }, - { - title: '判断标准', - align: 'center', - dataIndex: 'standard', - width: 120, - }, - { - title: '判断意义', - align: 'center', - dataIndex: 'meaning', - width: 120, - }, - { - title: '正常', - align: 'center', - dataIndex: 'normalValue', - width: 120, - customRender: ({ record }: any) => { - return getNormalColumnsText(record); - }, - }, - { - title: '异常', - dataIndex: 'abnormalValue', - width: 120, - customRender: ({ record }: any) => { - return getAbnormalColumnsText(record); - }, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'behaviour', - label: '信号名称', - component: 'Input', - }, -]; diff --git a/src/views/information/knowledge/signalPrediction/database/database.vue b/src/views/information/knowledge/signalPrediction/database/database.vue deleted file mode 100644 index 0db5af0..0000000 --- a/src/views/information/knowledge/signalPrediction/database/database.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.api.ts b/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index e5e5a2f..0000000 --- a/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-intervene/data/caner/signal/tableStructure', -} - -export const tableStructureApi = (params: any) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.vue b/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.vue deleted file mode 100644 index 4ed45ff..0000000 --- a/src/views/information/knowledge/signalPrediction/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/knowledge/topic/dataDictionary/dataDictionary.api.ts b/src/views/information/knowledge/topic/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index fc68566..0000000 --- a/src/views/information/knowledge/topic/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - questionDict = '/health-intervene/data/answer/question/dict', -} - -export const questionDictApi = (params) => defHttp.get({ url: Api.questionDict, params }); diff --git a/src/views/information/knowledge/topic/dataDictionary/dataDictionary.vue b/src/views/information/knowledge/topic/dataDictionary/dataDictionary.vue deleted file mode 100644 index a2d7725..0000000 --- a/src/views/information/knowledge/topic/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,155 +0,0 @@ - - diff --git a/src/views/information/knowledge/topic/database/database.api.ts b/src/views/information/knowledge/topic/database/database.api.ts deleted file mode 100644 index 7693f55..0000000 --- a/src/views/information/knowledge/topic/database/database.api.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-intervene/question/list', -} -export const listApi = (params: any) => defHttp.get({ url: Api.list, params: params }); diff --git a/src/views/information/knowledge/topic/database/database.data.ts b/src/views/information/knowledge/topic/database/database.data.ts deleted file mode 100644 index 676c78d..0000000 --- a/src/views/information/knowledge/topic/database/database.data.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { render } from '/@/utils/common/renderUtils'; -import { indexList } from '/@/views/interveneNew/konwledgeManage/examination/topic/topicList.data'; - -export function getTableColumns(type: string, max: number) { - const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'questionNo', - }, - { - title: '题目名称', - dataIndex: 'questionDesc', - }, - { - title: '题目类型', - dataIndex: 'type', - customRender: ({ text }) => { - return text ? render.renderDict(text, 'question_options_type') : ''; - }, - }, - ...getChooseNumber(max), - { - title: '正确选项', - dataIndex: 'realAnswer', - ifShow: !['2'].includes(type), - }, - { - title: '抽提概率', - dataIndex: 'pct', - }, - { - title: '关联体检项目', - dataIndex: 'project', - }, - { - title: '关联体检知识题库', - dataIndex: 'question', - ifShow: type == '1', - }, - { - title: '关联危险因素', - dataIndex: 'factor', - ifShow: type == '0', - }, - { - title: '关联员工', - dataIndex: 'col1', - // ifShow: ['2', '3'].includes(type), - ifShow: false, - }, - { - title: '关联体检结果', - dataIndex: 'col2', - // ifShow: ['2', '3'].includes(type), - ifShow: false, - }, - ]; - return columns; -} -function getChooseNumber(max: number) { - const result: BasicColumn[] = []; - if (max === 0) return result; - for (let i = 0; i < indexList.length; i++) { - result.push({ - title: `${indexList[i]}选项`, - dataIndex: ['options', i, 'optionValue'], - }); - if (i + 1 === max) break; - } - return result; -} -export function getSearchSchema() { - const searchSchema: FormSchema[] = [ - { - label: '题目名称', - field: 'questionDesc', - component: 'Input', - }, - { - label: '题目类型', - field: 'type', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'question_options_type', - getPopupContainer: () => document.body, - }; - }, - }, - ]; - - return searchSchema; -} diff --git a/src/views/information/knowledge/topic/database/database.vue b/src/views/information/knowledge/topic/database/database.vue deleted file mode 100644 index d7977b8..0000000 --- a/src/views/information/knowledge/topic/database/database.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - diff --git a/src/views/information/knowledge/topic/libraryStructure/libraryStructure.api.ts b/src/views/information/knowledge/topic/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 136618e..0000000 --- a/src/views/information/knowledge/topic/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - questionStru = '/health-intervene/data/answer/question/tableStructure', -} - -export const questionStruApi = (params) => defHttp.get({ url: Api.questionStru, params }); diff --git a/src/views/information/knowledge/topic/libraryStructure/libraryStructure.vue b/src/views/information/knowledge/topic/libraryStructure/libraryStructure.vue deleted file mode 100644 index 2ac46ea..0000000 --- a/src/views/information/knowledge/topic/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.api.ts b/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 28069fb..0000000 --- a/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - knowledgeDict = '/health-intervene/data/knowledge/dict', -} - -export const knowledgeDictApi = (params) => defHttp.get({ url: Api.knowledgeDict, params }); diff --git a/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.vue b/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.vue deleted file mode 100644 index c781fc7..0000000 --- a/src/views/information/knowledge/videoKnowledge/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,135 +0,0 @@ - - diff --git a/src/views/information/knowledge/videoKnowledge/database/database.api.ts b/src/views/information/knowledge/videoKnowledge/database/database.api.ts deleted file mode 100644 index cd2d400..0000000 --- a/src/views/information/knowledge/videoKnowledge/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - videoPage = '/health-intervene/data/knowledge/video', - terminalExport = '/health-intervene/data/diabetes/terminal/exportXls', - terminalStat = '/health-intervene/data/diabetes/terminal/statistics', -} - -export const videoPageApi = (params) => defHttp.get({ url: Api.videoPage, params }); - -export const terminalExportApi = Api.terminalExport; - -export const terminalStatApi = (params: any) => defHttp.get({ url: Api.terminalStat, params }); diff --git a/src/views/information/knowledge/videoKnowledge/database/database.data.ts b/src/views/information/knowledge/videoKnowledge/database/database.data.ts deleted file mode 100644 index 30b0d24..0000000 --- a/src/views/information/knowledge/videoKnowledge/database/database.data.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '资源名称', - dataIndex: 'title', - width: 120, - align: 'center', - }, - { - title: '所属类别', - dataIndex: 'flag_dictText', - width: 120, - align: 'center', - }, - { - title: '内容简介', - dataIndex: 'content', - width: 200, - align: 'center', - }, - { - title: '主讲人姓名', - dataIndex: 'keynoteSpeaker', - width: 120, - align: 'center', - }, - { - title: '主讲人所在机构', - dataIndex: 'speakerDept', - width: 80, - align: 'center', - }, - { - title: '职务职称', - dataIndex: 'duty', - width: 80, - align: 'center', - }, - { - title: '制作机构', - dataIndex: 'productionDept', - width: 100, - align: 'center', - }, - { - title: '制作人', - dataIndex: 'producer', - width: 100, - align: 'center', - }, - { - title: '制作日期', - dataIndex: 'productDate', - width: 100, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '资源名称', - field: 'title', - component: 'Input', - }, - { - label: '所属类别', - field: 'flag', - component: 'Select', - componentProps: () => ({ - options: [ - { label: '科普专家', value: 1 }, - { label: '科普资源', value: 2 }, - { label: '岗位健康', value: 3 }, - { label: '医疗教育', value: 4 }, - { label: '健康技能', value: 5 }, - { label: '营养视频', value: 6 }, - { label: '食材动画', value: 7 }, - ], - getPopupContainer: () => document.body, - }), - }, - { - label: '主讲人姓名', - field: 'keynoteSpeaker', - component: 'Input', - }, - { - label: '主讲人所在机构', - field: 'speakerDept', - component: 'Input', - }, -]; diff --git a/src/views/information/knowledge/videoKnowledge/database/database.vue b/src/views/information/knowledge/videoKnowledge/database/database.vue deleted file mode 100644 index 5299762..0000000 --- a/src/views/information/knowledge/videoKnowledge/database/database.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.api.ts b/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index adc4cd9..0000000 --- a/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - knowledgeStru = '/health-intervene/data/knowledge/tableStructure', -} - -export const knowledgeStruApi = (params) => defHttp.get({ url: Api.knowledgeStru, params }); diff --git a/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.vue b/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.vue deleted file mode 100644 index 16dc6a5..0000000 --- a/src/views/information/knowledge/videoKnowledge/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,12 +0,0 @@ - - diff --git a/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.api.ts b/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 015a5c5..0000000 --- a/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - diagnosisDict = '/health-emergency/data/diagnosis/dict', -} - -export const diagnosisDictApi = (params) => defHttp.get({ url: Api.diagnosisDict, params }); diff --git a/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.vue b/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.vue deleted file mode 100644 index 36fc8e2..0000000 --- a/src/views/information/medicalData/emergencyCenter/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,187 +0,0 @@ - - diff --git a/src/views/information/medicalData/emergencyCenter/database/components/desctibeModal.vue b/src/views/information/medicalData/emergencyCenter/database/components/desctibeModal.vue deleted file mode 100644 index 8c83276..0000000 --- a/src/views/information/medicalData/emergencyCenter/database/components/desctibeModal.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/src/views/information/medicalData/emergencyCenter/database/database.api.ts b/src/views/information/medicalData/emergencyCenter/database/database.api.ts deleted file mode 100644 index 0b2822c..0000000 --- a/src/views/information/medicalData/emergencyCenter/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - diagnosisPage = '/health-emergency/data/diagnosis/page', - exportXls = '/health-emergency/data/diagnosis/exportXls', - diagnosisStat = '/health-emergency/data/diagnosis/statistics', -} - -export const diagnosisPageApi = (params) => defHttp.get({ url: Api.diagnosisPage, params }); - -export const exportXlsApi = Api.exportXls; - -export const diagnosisStatApi = (params) => defHttp.get({ url: Api.diagnosisStat, params }); diff --git a/src/views/information/medicalData/emergencyCenter/database/database.data.ts b/src/views/information/medicalData/emergencyCenter/database/database.data.ts deleted file mode 100644 index 32763f8..0000000 --- a/src/views/information/medicalData/emergencyCenter/database/database.data.ts +++ /dev/null @@ -1,250 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew, orgSearchInfo } from '/@/utils/orgSearchInfo'; -import { getZHospitalApi } from '/@/views/emergency/EmergencySeriousDisease/EmergencySeriousDisease.api'; -import { getNewHospitalApi } from '/@/views/system/user/user.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '手机号码', - dataIndex: 'telPhone', - width: 120, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idNo', - width: 200, - align: 'center', - }, - { - title: '预约医院', - dataIndex: 'hospitalName', - width: 180, - align: 'center', - }, - { - title: '就诊卡号', - dataIndex: 'medicalCardNo', - width: 120, - align: 'center', - }, - { - title: '挂号类别', - dataIndex: 'registerCategory_dictText', - width: 100, - align: 'center', - }, - { - title: '预约时间', - dataIndex: 'reservationTime', - width: 150, - align: 'center', - }, - { - title: '期望预约时间', - dataIndex: 'desireTime', - width: 120, - align: 'center', - }, - { - title: '预约科室', - dataIndex: 'reservationOffice', - width: 120, - align: 'center', - }, - { - title: '预约医生', - dataIndex: 'reservationDoctor', - width: 120, - align: 'center', - }, - { - title: '病情描述', - dataIndex: 'diseaseDescribe', - width: 120, - align: 'center', - }, - { - title: '状态', - dataIndex: 'state_dictText', - width: 120, - align: 'center', - }, - { - title: '驻场人员', - dataIndex: 'stationUserName', - width: 120, - align: 'center', - }, - { - title: '派单时间', - dataIndex: 'sendOrderTime', - width: 150, - align: 'center', - }, - { - title: '操作人员', - dataIndex: 'operatorName', - width: 120, - align: 'center', - }, - { - title: '驳回时间', - dataIndex: 'rejectionTime', - width: 150, - align: 'center', - }, - { - title: '驳回原因', - dataIndex: 'rejectionReason', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - ...orgSearchInfo({ orgField: 'orgCode1', orgName: '单位', deptFiled: 'orgCodeThree', deptName: '部门', orgCode: 'orgCode' }), - - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - field: 'nianl', - label: '年龄', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val: string) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - ifShow: false, - }, - { - label: '', - field: 'age', - component: 'Input', - ifShow: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - ifShow: false, - }, - { - field: 'idCard', - label: '身份证号', - component: 'Input', - }, - { - label: '医院', - field: 'hospitalId', - component: 'ApiSelect', - componentProps: () => { - return { - api: getNewHospitalApi, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - }; - }, - }, - { - label: '挂号类别', - field: 'registerCategory', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'category', - }; - }, - }, - { - field: 'reservationDoctor', - label: '预约医生', - component: 'Input', - }, - { - field: 'appointmentTime', - label: '预约时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/medicalData/emergencyCenter/database/database.vue b/src/views/information/medicalData/emergencyCenter/database/database.vue deleted file mode 100644 index f5a4985..0000000 --- a/src/views/information/medicalData/emergencyCenter/database/database.vue +++ /dev/null @@ -1,37 +0,0 @@ - - diff --git a/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.api.ts b/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index bf1fe18..0000000 --- a/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - diagnosisStru = '/health-emergency/data/diagnosis/tableStructure', -} - -export const diagnosisStruApi = () => defHttp.get({ url: Api.diagnosisStru }); diff --git a/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.vue b/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.vue deleted file mode 100644 index afe8d07..0000000 --- a/src/views/information/medicalData/emergencyCenter/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.api.ts b/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 5900f62..0000000 --- a/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - doctorDict = '/medical-center/data/doctor/dict', -} - -export const doctorDictApi = (params) => defHttp.get({ url: Api.doctorDict, params }); diff --git a/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.vue b/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.vue deleted file mode 100644 index 5725396..0000000 --- a/src/views/information/medicalData/frontlineDoctors/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,167 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineDoctors/database/database.api.ts b/src/views/information/medicalData/frontlineDoctors/database/database.api.ts deleted file mode 100644 index e14cfd9..0000000 --- a/src/views/information/medicalData/frontlineDoctors/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - doctorPage = '/medical-center/data/doctor/page', - doctorExport = '/medical-center/data/doctor/export', - doctorStat = '/medical-center/data/doctor/statistic', -} - -export const doctorPageApi = (params) => defHttp.get({ url: Api.doctorPage, params }); - -export const doctorExportApi = Api.doctorExport; - -export const doctorStatApi = (params) => defHttp.get({ url: Api.doctorStat, params }); diff --git a/src/views/information/medicalData/frontlineDoctors/database/database.data.ts b/src/views/information/medicalData/frontlineDoctors/database/database.data.ts deleted file mode 100644 index 88a29b9..0000000 --- a/src/views/information/medicalData/frontlineDoctors/database/database.data.ts +++ /dev/null @@ -1,205 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew } from '/@/utils/orgSearchInfo'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; - -export const tableColumns: BasicColumn[] = [ - { - title: '所属医疗点', - dataIndex: 'resourceName', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 120, - align: 'center', - }, - { - title: '岗位', - dataIndex: 'post_dictText', - width: 80, - align: 'center', - }, - { - title: '照片', - dataIndex: 'avatar', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '联系电话', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '职称', - dataIndex: 'job_dictText', - width: 120, - align: 'center', - }, - { - title: '驻点时间', - dataIndex: 'joinTime', - width: 120, - align: 'center', - }, - { - title: '毕业院校', - dataIndex: 'graduationSchool', - width: 120, - align: 'center', - }, - { - title: '学历', - dataIndex: 'education_dictText', - width: 120, - align: 'center', - }, - - { - title: '毕业时间', - dataIndex: 'graduationTime', - width: 120, - align: 'center', - }, - { - title: '工作时间', - dataIndex: 'workTime', - width: 120, - align: 'center', - }, - { - title: '简介', - dataIndex: 'staffDesc', - width: 120, - align: 'center', - }, - { - title: '开启状态', - dataIndex: 'status_dictText', - width: 120, - align: 'center', - }, -]; -import { useUserStore } from '/@/store/modules/user'; -const userInfo = useUserStore(); -export const searchFormSchema: FormSchema[] = [ - { - label: '所属医疗点', - field: 'resourceId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: medicalCenterList, - params: { - departCode: userInfo.getUserInfo.orgCode, - }, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - onFocus: () => { - if (!formModel.orgCode) { - return message.warning('请先选择单位名称'); - } - }, - }; - }, - }, - { - field: 'realname', - label: '姓名', - component: 'Input', - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '身份证号', - field: 'cardNo', - component: 'Input', - }, - { - label: '职称', - field: 'job', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'z_doct_lev', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/medicalData/frontlineDoctors/database/database.vue b/src/views/information/medicalData/frontlineDoctors/database/database.vue deleted file mode 100644 index 6f93635..0000000 --- a/src/views/information/medicalData/frontlineDoctors/database/database.vue +++ /dev/null @@ -1,42 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.api.ts b/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index f7c8efa..0000000 --- a/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - doctorStru = '/medical-center/data/doctor/tableStructure', -} - -export const doctorStruApi = () => defHttp.get({ url: Api.doctorStru }); diff --git a/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.vue b/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.vue deleted file mode 100644 index 6588d6b..0000000 --- a/src/views/information/medicalData/frontlineDoctors/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.api.ts b/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 000722b..0000000 --- a/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataDict = '/medical-center/data/resource/dict', -} - -export const dataDictApi = () => defHttp.get({ url: Api.dataDict }); diff --git a/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.vue b/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.vue deleted file mode 100644 index 18bc33a..0000000 --- a/src/views/information/medicalData/frontlineMedical/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,143 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineMedical/database/database.api.ts b/src/views/information/medicalData/frontlineMedical/database/database.api.ts deleted file mode 100644 index b5ff3cd..0000000 --- a/src/views/information/medicalData/frontlineMedical/database/database.api.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -//medical-center - -enum Api { - dataPage = '/medical-center/data/resource/page', - dataStat = '/medical-center/data/resource/statistic', - exportXsl = '/medical-center/data/resource/export', -} - -export const dataPageApi = (params) => defHttp.get({ url: Api.dataPage, params }); -export const dataStatApi = (params) => defHttp.get({ url: Api.dataStat, params }); - -export const exportXslApi = Api.exportXsl; diff --git a/src/views/information/medicalData/frontlineMedical/database/database.data.ts b/src/views/information/medicalData/frontlineMedical/database/database.data.ts deleted file mode 100644 index 1b03c6c..0000000 --- a/src/views/information/medicalData/frontlineMedical/database/database.data.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; -import { getNewHospitalApi } from '/@/views/system/user/user.api'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { selectResourceList } from '/@/views/consult/doctor/message/conDoctor.api'; -import { message } from 'ant-design-vue'; -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '医疗点名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '照片', - dataIndex: 'img', - width: 80, - align: 'center', - }, - { - title: '医疗点地址', - dataIndex: 'address', - width: 200, - align: 'center', - }, - { - title: '简介', - dataIndex: 'resourceDesc', - width: 150, - align: 'center', - }, - { - title: '合作医院', - dataIndex: 'hospitalName', - width: 120, - align: 'center', - }, - { - title: '联系电话', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '负责人', - dataIndex: 'adminUser', - width: 120, - align: 'center', - }, - { - title: '设立时间', - dataIndex: 'setUpTime', - width: 120, - align: 'center', - }, - { - title: '辐射单位', - dataIndex: 'radiationDepartList', - width: 150, - align: 'center', - }, - { - title: '开启状态', - dataIndex: 'status_dictText', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'departCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getApi(), - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - immediate: true, - showSearch: true, - disabledInitValue: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - onChange: () => { - formModel.medicalId = ''; - }, - onDeselect: () => { - formModel.medicalId = ''; - }, - }; - }, - }, - { - label: '所属医疗点', - field: 'name', - component: 'Input', - }, - { - label: '合作医院', - field: 'hospitalId', - component: 'ApiSelect', - componentProps: () => { - return { - api: selectResourceList, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - showSearch: true, - }; - }, - }, - { - field: 'buildTime', - label: '设立时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/medicalData/frontlineMedical/database/database.vue b/src/views/information/medicalData/frontlineMedical/database/database.vue deleted file mode 100644 index 915fe98..0000000 --- a/src/views/information/medicalData/frontlineMedical/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.api.ts b/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index ae2311d..0000000 --- a/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataStru = '/medical-center/data/resource/tableStructure', -} - -export const dataStruApi = () => defHttp.get({ url: Api.dataStru }); diff --git a/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.vue b/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.vue deleted file mode 100644 index cac441a..0000000 --- a/src/views/information/medicalData/frontlineMedical/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.api.ts b/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 8286683..0000000 --- a/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - diagnosisDict = '/medical-center/data/medicalDiagnosis/dict', -} - -export const diagnosisDictApi = (params) => defHttp.get({ url: Api.diagnosisDict, params }); diff --git a/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.vue b/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.vue deleted file mode 100644 index 86b03bb..0000000 --- a/src/views/information/medicalData/medicalPoint/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,155 +0,0 @@ - - diff --git a/src/views/information/medicalData/medicalPoint/database/database.api.ts b/src/views/information/medicalData/medicalPoint/database/database.api.ts deleted file mode 100644 index d20ee63..0000000 --- a/src/views/information/medicalData/medicalPoint/database/database.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - medicalDiagnosisPage = '/medical-center/data/medicalDiagnosis/page', - exportXls = '/medical-center/data/medicalDiagnosis/exportXls', - medicalDiagnosisStat = '/medical-center/data/medicalDiagnosis/statistics', -} - -export const medicalDiagnosisPageApi = (params) => defHttp.get({ url: Api.medicalDiagnosisPage, params }); -export const medicalDiagnosisStatApi = (params) => defHttp.get({ url: Api.medicalDiagnosisStat, params }); - -export const exportXlsApi = Api.exportXls; diff --git a/src/views/information/medicalData/medicalPoint/database/database.data.ts b/src/views/information/medicalData/medicalPoint/database/database.data.ts deleted file mode 100644 index 9ddd043..0000000 --- a/src/views/information/medicalData/medicalPoint/database/database.data.ts +++ /dev/null @@ -1,258 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/treatmentWrong/treatmentWrong.api'; -import { useUserStore } from '/@/store/modules/user'; -import { resourceStaff } from '/@/views/interveneNew/medicalPoints/employeeTreatment/employeeTreatment.api'; -import { message } from 'ant-design-vue'; - -export const tableColumns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 100, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '手机号码', - dataIndex: 'telPhone', - width: 120, - align: 'center', - }, - { - title: '身份证号', - dataIndex: 'idNo', - width: 200, - align: 'center', - }, - { - title: '就诊医疗点', - dataIndex: 'medicalCenterName', - width: 120, - align: 'center', - }, - { - title: '就诊疾病', - dataIndex: 'diagnosisDisease', - width: 120, - align: 'center', - }, - { - title: '就诊医生', - dataIndex: 'doctorName', - width: 120, - align: 'center', - }, - { - title: '就诊时间', - dataIndex: 'diagnosisDate', - width: 120, - align: 'center', - }, - { - title: '就诊内容', - dataIndex: 'equipmentNum', - width: 80, - align: 'center', - }, -]; -const userStore = useUserStore(); -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - field: 'idCard', - label: '身份证号', - component: 'Input', - }, - { - label: '就诊医疗点', - field: 'medicalCenterId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - const userInfo = useUserStore().userInfo; - return { - api: medicalCenterList, - params: { - staffId: userInfo?.id || '123', - }, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - showSearch: true, - disabledInitValue: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase().trim(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onChange: () => { - formModel['doctorId'] = ''; - }, - getPopupContainer: () => document.body, - style: { - width: '50%', - }, - }; - }, - }, - { - label: '就诊医生', - field: 'doctorId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: resourceStaff, - params: { - resourceId: formModel?.medicalCenterId || 'abab123', - }, - resultField: 'list', - labelField: 'realname', - valueField: 'id', - immediate: true, - showSearch: true, - onFocus: () => { - if (!formModel?.medicalCenterId) { - return message.warn('请先选择就诊医疗点'); - } - }, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - style: { - width: '50%', - }, - }; - }, - }, - { - field: 'setUpTime1', - label: '就诊时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/medicalData/medicalPoint/database/database.vue b/src/views/information/medicalData/medicalPoint/database/database.vue deleted file mode 100644 index 09f2074..0000000 --- a/src/views/information/medicalData/medicalPoint/database/database.vue +++ /dev/null @@ -1,47 +0,0 @@ - - diff --git a/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.api.ts b/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index c851fb4..0000000 --- a/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - diagnosisStru = '/medical-center/data/medicalDiagnosis/tableStructure', -} - -export const diagnosisStruApi = () => defHttp.get({ url: Api.diagnosisStru }); diff --git a/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.vue b/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.vue deleted file mode 100644 index ead45c4..0000000 --- a/src/views/information/medicalData/medicalPoint/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.api.ts b/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index db5a1dd..0000000 --- a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/restaurantStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.data.ts b/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index 0504149..0000000 --- a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, -]; diff --git a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.vue b/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.vue deleted file mode 100644 index f031190..0000000 --- a/src/views/information/nutritionalData/canteenData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/canteenData/database/components/info/info.api.ts b/src/views/information/nutritionalData/canteenData/database/components/info/info.api.ts deleted file mode 100644 index 6607e1a..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/info/info.api.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', - baseRestaurantInfo = '/foodNourishmentReport/getBaseRestaurantInfo', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const getBaseRestaurantInfo = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.baseRestaurantInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/canteenData/database/components/info/info.data.ts b/src/views/information/nutritionalData/canteenData/database/components/info/info.data.ts deleted file mode 100644 index 1049b8b..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/info/info.data.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { getTreeDepartSecondAndThree } from './info.api'; -import { useUserStore } from '/@/store/modules/user'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '单位', - align: 'center', - dataIndex: 'departName', - }, - { - title: '部门', - align: 'center', - dataIndex: 'thirdDepartName', - }, - { - title: '姓名', - align: 'center', - dataIndex: 'realName', - }, - { - title: '性别', - align: 'center', - dataIndex: 'sex', - }, - { - title: '员工编号', // 原来为工号 - align: 'center', - dataIndex: 'workNo', - }, - { - title: '手机号码', - align: 'center', - dataIndex: 'phone', - }, - { - title: '用餐次数', - align: 'center', - dataIndex: 'eatNum', - }, - { - title: '最近用餐日期', - align: 'center', - dataIndex: 'statisticsDay', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '男', value: '1' }, - { label: '女', value: '2' }, - ], - }; - }, - }, - { - label: '年龄', - field: 'ageTypeAndAge', - component: 'InputGroup', - slot: 'ageTypeAndAge', - }, - { - label: '用餐次数', - field: 'eatNumTypeAndEatNum', - component: 'InputGroup', - slot: 'eatNumTypeAndEatNum', - }, -]; diff --git a/src/views/information/nutritionalData/canteenData/database/components/info/info.vue b/src/views/information/nutritionalData/canteenData/database/components/info/info.vue deleted file mode 100644 index b71ffde..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/info/info.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/canteenData/database/components/search/search.api.ts b/src/views/information/nutritionalData/canteenData/database/components/search/search.api.ts deleted file mode 100644 index 19ef371..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/search/search.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/canteenData/database/components/search/search.data.ts b/src/views/information/nutritionalData/canteenData/database/components/search/search.data.ts deleted file mode 100644 index c604d6d..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/search/search.data.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getTreeDepartSecondAndThree } from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '食堂名称', - field: 'restName', - component: 'Input', - }, - { - label: '负责人', - field: 'restContecter', - component: 'Input', - }, - { - label: '负责人电话', - field: 'restPhone', - component: 'Input', - }, - { - label: '健康管理员', - field: 'healthAdminName', - component: 'Input', - }, - { - label: '健康管理员电话', - field: 'healthPhone', - component: 'Input', - }, - { - label: '就餐人数', - field: 'typeAndTotalNum', - component: 'InputGroup', - slot: 'typeAndTotalNum', - }, -]; diff --git a/src/views/information/nutritionalData/canteenData/database/components/search/search.vue b/src/views/information/nutritionalData/canteenData/database/components/search/search.vue deleted file mode 100644 index ef68904..0000000 --- a/src/views/information/nutritionalData/canteenData/database/components/search/search.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - diff --git a/src/views/information/nutritionalData/canteenData/database/database.api.ts b/src/views/information/nutritionalData/canteenData/database/database.api.ts deleted file mode 100644 index a7153a6..0000000 --- a/src/views/information/nutritionalData/canteenData/database/database.api.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getAllBaseRestaurantList', - exportList = '/foodNourishmentReport/getAllBaseRestaurantList/export', - statisticsRowList = '/foodNourishmentReport/canteenInfoStatisticsRow', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/canteenData/database/database.data.ts b/src/views/information/nutritionalData/canteenData/database/database.data.ts deleted file mode 100644 index fc2448d..0000000 --- a/src/views/information/nutritionalData/canteenData/database/database.data.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'departName', - }, - { - title: '管理部门', - align: 'center', - dataIndex: 'thirdDepartName', - }, - { - title: '食堂名称', - align: 'center', - dataIndex: 'restName', - }, - { - title: '地理坐标', - align: 'center', - dataIndex: 'address', - }, - { - title: '负责人', - align: 'center', - dataIndex: 'restContecter', - }, - { - title: '联系电话', - align: 'center', - dataIndex: 'restPhone', - }, - { - title: '健康管理员', - align: 'center', - dataIndex: 'healthAdminName', - }, - { - title: '健康管理员电话', - align: 'center', - dataIndex: 'healthPhone', - }, - { - title: '现有餐品数量', - align: 'center', - dataIndex: 'foodNum', - }, - { - title: '就餐人数', - align: 'center', - dataIndex: 'totalNum', - }, -]; diff --git a/src/views/information/nutritionalData/canteenData/database/database.vue b/src/views/information/nutritionalData/canteenData/database/database.vue deleted file mode 100644 index cd196ba..0000000 --- a/src/views/information/nutritionalData/canteenData/database/database.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.api.ts b/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index fd1f624..0000000 --- a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/restaurantStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.data.ts b/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index c605678..0000000 --- a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '表头', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.vue b/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.vue deleted file mode 100644 index 2811e13..0000000 --- a/src/views/information/nutritionalData/canteenData/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.api.ts b/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.api.ts deleted file mode 100644 index 39bbcc5..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.api.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -/** - * 组件接口 - * @param params - */ -export const requestUrl = async (url, params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: url, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.data.ts b/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.vue b/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.vue deleted file mode 100644 index 16f1a74..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/components/chart/chart.vue +++ /dev/null @@ -1,300 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index 52372a5..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.api.ts b/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 59782a6..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/eatNumDataStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.data.ts b/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index 0504149..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.vue b/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.vue deleted file mode 100644 index 26cabc7..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.api.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.api.ts deleted file mode 100644 index 9dfa7a4..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - userFoodEnergyInfo = '/foodNourishmentReport/getUserFoodEnergyInfo', -} - -/** - * 列表接口 - * @param params - */ -export const getUserFoodEnergyInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.userFoodEnergyInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.data.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.data.ts deleted file mode 100644 index 72cc2c6..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.data.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '餐品名称', - align: 'center', - dataIndex: 'foodName', - }, - { - title: '取用量(克)', - align: 'center', - dataIndex: 'eatWeight', - }, - { - title: '热量(kcal)', - align: 'center', - dataIndex: 'energy', - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.vue b/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.vue deleted file mode 100644 index 948fabb..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/info/info.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.api.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.api.ts deleted file mode 100644 index 12587cb..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.api.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - userFoodEnergyInfo = '/foodNourishmentReport/getUserInfoAndEatNum', - exportList = '/foodNourishmentReport/getUserInfoAndEatNum2/export', -} - -/** - * 列表接口 - * @param params - */ -export const getUserFoodEnergyInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.userFoodEnergyInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.data.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.data.ts deleted file mode 100644 index 637d08e..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.data.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '用餐时间', - align: 'center', - dataIndex: 'statisticsDay', - }, - { - title: '用餐餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '摄入餐品数', - align: 'center', - dataIndex: 'foodNum', - }, - { - title: '摄入热量(kcal)', - align: 'center', - dataIndex: 'energy', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '用餐时间', - field: 'days', - component: 'RangeDate', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.vue b/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.vue deleted file mode 100644 index 083bcfc..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/meal/meal.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.api.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.api.ts deleted file mode 100644 index 19ef371..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.data.ts b/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.data.ts deleted file mode 100644 index ff40ce7..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.data.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getTreeDepartSecondAndThree } from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '男', value: '1' }, - { label: '女', value: '2' }, - ], - }; - }, - }, - { - label: '年龄', - field: 'ageAndAgeType', - component: 'InputGroup', - slot: 'ageAndAgeType', - }, - { - label: '身高', - field: 'heightAndHeightType', - component: 'InputGroup', - slot: 'heightAndHeightType', - }, - { - label: '体重', - field: 'weightAndWeightType', - component: 'InputGroup', - slot: 'weightAndWeightType', - }, - { - label: '劳动强度', - field: 'workStrength', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '重度劳动', value: '1' }, - { label: '中度劳动', value: '2' }, - { label: '轻度劳动', value: '3' }, - { label: '卧床', value: '4' }, - ], - }; - }, - }, - { - label: '餐次总数量', - field: 'foodNumAndFoodNumType', - component: 'InputGroup', - slot: 'foodNumAndFoodNumType', - }, - { - label: '平均摄入热量', - field: 'energyAndEnergyType', - component: 'InputGroup', - slot: 'energyAndEnergyType', - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.vue b/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.vue deleted file mode 100644 index b428624..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/components/search/search.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/database/database.api.ts b/src/views/information/nutritionalData/dietaryIntake/database/database.api.ts deleted file mode 100644 index 5d4295a..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/database.api.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getUserMealRecordsNew', - // getWeightAndHeight = '/sys/healthUserEmployeeEx/heightWeight', - exportList = '/foodNourishmentReport/getUserInfoAndEatNum/export', - statisticsRowList = '/foodNourishmentReport/mealRecordsStatisticsRow', -} - -// export const getWeightAndHeightApi = (params: any) => defHttp.post({ url: Api.getWeightAndHeight, params }); - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/database.data.ts b/src/views/information/nutritionalData/dietaryIntake/database/database.data.ts deleted file mode 100644 index 641acc3..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/database.data.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'secondDepartName', - }, - { - title: '部门', - align: 'center', - dataIndex: 'thirdDepartName', - }, - { - title: '姓名', - align: 'center', - width: 100, - dataIndex: 'realname', - }, - { - title: '工号', - align: 'center', - width: 120, - dataIndex: 'workNo', - }, - { - title: '性别', - align: 'center', - width: 80, - dataIndex: 'sex', - }, - { - title: '年龄', - align: 'center', - width: 80, - dataIndex: 'age', - }, - { - title: '身高(cm)', - align: 'center', - width: 100, - dataIndex: 'height', - }, - { - title: '体重(kg)', - align: 'center', - width: 100, - dataIndex: 'weight', - }, - { - title: 'BMI', - align: 'center', - width: 80, - dataIndex: 'bmi', - customRender: ({ record }): any => { - let t; - const { height, weight } = (record as any) || { height: null, weight: null }; - if (height && weight) { - t = (Number(weight) / ((Number(height) / 100) * (Number(height) / 100))).toFixed(1); - } - return t; - }, - }, - { - title: '体力劳动', - align: 'center', - width: 120, - dataIndex: 'workStrength', - }, - { - title: '餐次总数量', - align: 'center', - width: 120, - dataIndex: 'dinnerTypeNum', - }, - { - title: '平均摄入热量(kcal)', - align: 'center', - width: 160, - dataIndex: 'energy', - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/database/database.vue b/src/views/information/nutritionalData/dietaryIntake/database/database.vue deleted file mode 100644 index 5918baf..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/database/database.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.api.ts b/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index 0cc80ab..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/eatNumDataStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.data.ts b/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index c605678..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '表头', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.vue b/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.vue deleted file mode 100644 index f9d4775..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.api.ts b/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.api.ts deleted file mode 100644 index 39bbcc5..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.api.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -/** - * 组件接口 - * @param params - */ -export const requestUrl = async (url, params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: url, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.data.ts b/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.vue b/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.vue deleted file mode 100644 index 442016e..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/components/chart/chart.vue +++ /dev/null @@ -1,353 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.api.ts b/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.api.ts deleted file mode 100644 index debd2e6..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.api.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - jobList = '/foodNourishmentReport/jobList', - departNameList = '/foodNourishmentReport/getDepartNameList', -} - -/** - * 岗位层级数据 - * @param params - */ -export const jobList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.jobList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const departNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.departNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.vue b/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.vue deleted file mode 100644 index b120e63..0000000 --- a/src/views/information/nutritionalData/dietaryIntake/oneWayAnalysis/oneWayAnalysis.vue +++ /dev/null @@ -1,213 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index f1b1e4a..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/equipmentStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index 0504149..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.vue b/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.vue deleted file mode 100644 index c1dd631..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.api.ts deleted file mode 100644 index 132550b..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.api.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - recordTreeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', - restaurantList = '/foodNourishmentReport/getRestaurantList', - views = '/foodNourishmentReport/getEquipmentReportListDetailView/v3', -} - -// 所有部门 -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.recordTreeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -// 所有食堂 -export const getRestaurantList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.restaurantList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -export const getViews = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.views, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.data.ts deleted file mode 100644 index 6ae68e0..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.data.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '设备名称', - align: 'center', - dataIndex: 'equipmentName', - }, - { - title: '设备编号', - align: 'center', - dataIndex: 'deviceNumber', - }, - { - title: '设备状态', - align: 'center', - dataIndex: 'deviceStatus', - customRender: ({ text }) => { - const txt = text === '1' ? `正常` : ` 离线 `; - return h('div', { - innerHTML: txt, - }); - }, - }, - { - title: '使用时间', - align: 'center', - dataIndex: 'days', - }, - { - title: '餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '使用时间段', - align: 'center', - dataIndex: 'useTime', - }, - { - title: '使用时长(分钟)', - align: 'center', - dataIndex: 'useMin', - }, - { - title: '使用人次', - align: 'center', - dataIndex: 'useManTime', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '设备名称', - field: '1', - component: 'Input', - }, - { - label: '设备编号', - field: '2', - component: 'Input', - }, - { - label: '设备状态', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '离线', value: '1' }, - { label: '正常', value: '2' }, - ], - }; - }, - }, - { - label: '餐次', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '早餐', value: '早餐' }, - { label: '午餐', value: '午餐' }, - { label: '晚餐', value: '晚餐' }, - { label: '加餐', value: '加餐' }, - ], - }; - }, - }, - { - label: '总使用时长(分钟)', - field: 'useMinAndUseMinType', - component: 'InputGroup', - slot: 'useMinAndUseMinType', - }, - { - label: '总使用人次', - field: 'useManTimeAndUseManTimeType', - component: 'InputGroup', - slot: 'useManTimeAndUseManTimeType', - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.vue b/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.vue deleted file mode 100644 index 14abf2f..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui.vue +++ /dev/null @@ -1,588 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui_modal.vue b/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui_modal.vue deleted file mode 100644 index 954eafb..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/gui/gui_modal.vue +++ /dev/null @@ -1,561 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.api.ts deleted file mode 100644 index e66111b..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.api.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - getEquipmentType = '/foodNourishmentReport/getEquipmentType', - getEquipmentCodeList = '/foodNourishmentReport/getEquipmentCodeList', - userInfoAndNourishmentInfo = '/foodNourishmentReport/getEquipmentDetailUseList', -} - -/** - * 设备名称列表 - * @param params - */ -export const equipmentType = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.getEquipmentType, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 设备编号 - * @param params - */ -export const equipmentCodeList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.getEquipmentCodeList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const getUserInfoAndNourishmentInfo = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.userInfoAndNourishmentInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.data.ts deleted file mode 100644 index 951f75b..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.data.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({ index }) => { - return index + 1; - }, - }, - { - title: '使用时间段', - align: 'center', - dataIndex: 'useTime', - }, - { - title: '餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '使用时间', - align: 'center', - dataIndex: 'days', - }, - { - title: '使用时长(分钟)', - align: 'center', - dataIndex: 'useMin', - }, - { - title: '使用人次', - align: 'center', - dataIndex: 'useManTime', - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.vue b/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.vue deleted file mode 100644 index f518de5..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/record/record.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.api.ts deleted file mode 100644 index 2041df9..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.api.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', - getRestaurantList = '/foodNourishmentReport/getRestaurantList', - getEquipmentType = '/foodNourishmentReport/getEquipmentType', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 食堂 - * @param params - */ -export const restaurantList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.getRestaurantList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 设备名称列表 - * @param params - */ -export const equipmentType = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.getEquipmentType, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.data.ts deleted file mode 100644 index de241f1..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.data.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { restaurantList, getTreeDepartSecondAndThree, equipmentType } from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: ({ formModel }) => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - onChange: () => { - formModel.canteenId = ''; - }, - }; - }, - }, - { - label: '食堂名称', - field: 'canteenId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: restaurantList, - loadApi: restaurantList, - params: { - departId: formModel.departId, - }, - loadApiParams: { - departId: formModel.departId, - }, - labelField: 'restName', - valueField: 'id', - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '设备类别 ', - field: 'equipmentCode', - component: 'ApiSelect', - componentProps: () => { - return { - api: equipmentType, - labelField: 'name', - valueField: 'equipmentCode', - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '设备编号', - field: 'deviceNumber', - component: 'Input', - }, - { - label: '设备状态', - field: 'deviceStatus', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '正常', value: '1' }, - { label: '离线', value: '0' }, - ], - }; - }, - }, - { - label: '餐次', - field: 'dinnerType', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '早餐', value: '早餐' }, - { label: '午餐', value: '午餐' }, - { label: '晚餐', value: '晚餐' }, - { label: '加餐', value: '加餐' }, - ], - }; - }, - }, - { - label: '最近使用时间', - field: 'days', - component: 'InputGroup', - slot: 'days', - }, - { - label: '总使用时长(分钟)', - field: 'useMinAndUseMinType', - component: 'InputGroup', - slot: 'useMinAndUseMinType', - }, - { - label: '总使用人次', - field: 'useManTimeAndUseManTimeType', - component: 'InputGroup', - slot: 'useManTimeAndUseManTimeType', - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.vue b/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.vue deleted file mode 100644 index f870b04..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/components/search/search.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/database.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/database.api.ts deleted file mode 100644 index 572d71d..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/database.api.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getEquipmentReportListDetail', - exportList = '/foodNourishmentReport/getEquipmentReportListDetail/export', - statisticsRowList = '/foodNourishmentReport/equipmentReportStatisticsRow', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/database.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/database/database.data.ts deleted file mode 100644 index ee2cf2d..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/database.data.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import { h } from 'vue'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).deviceId ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'departName', - }, - { - title: '食堂名称', - align: 'center', - dataIndex: 'restName', - }, - { - title: '设备类别', - align: 'center', - dataIndex: 'equipmentName', - }, - { - title: '设备编号', - align: 'center', - dataIndex: 'deviceNumber', - }, - { - title: '设备状态', - align: 'center', - dataIndex: 'deviceStatus', - customRender: ({ text }) => { - let txt = '' + text + ''; - if (text === '1') { - txt = '正常'; - } - if (text === '0') { - txt = '离线 '; - } - return h('div', { - innerHTML: txt, - }); - }, - }, - { - title: '最近使用时间', - align: 'center', - dataIndex: 'days', - }, - { - title: '餐次', - align: 'center', - dataIndex: 'dinnerType', - }, - { - title: '使用时间段', - align: 'center', - dataIndex: 'useTime', - }, - { - title: '总使用时长(分钟)', - align: 'center', - dataIndex: 'useMin', - }, - { - title: '总使用人次', - align: 'center', - dataIndex: 'useManTime', - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/database/database.vue b/src/views/information/nutritionalData/equipmentConfiguration/database/database.vue deleted file mode 100644 index e0144c4..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/database/database.vue +++ /dev/null @@ -1,247 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.api.ts b/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index 89199b0..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/equipmentStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.data.ts b/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index c605678..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '表头', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.vue b/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.vue deleted file mode 100644 index daa25bd..0000000 --- a/src/views/information/nutritionalData/equipmentConfiguration/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.api.ts b/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index d10fec9..0000000 --- a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/foodInfoStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.data.ts b/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index 0504149..0000000 --- a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, -]; diff --git a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.vue b/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.vue deleted file mode 100644 index 69202e7..0000000 --- a/src/views/information/nutritionalData/foodData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/foodData/database/components/info/info.api.ts b/src/views/information/nutritionalData/foodData/database/components/info/info.api.ts deleted file mode 100644 index 5ec2451..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/info/info.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - oneFoodInfo = '/foodNourishmentReport/getOneFoodInfo', -} - -/** - * 详情接口 - * @param params - */ -export const getOneFoodInfo = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.oneFoodInfo, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/foodData/database/components/info/info.data.ts b/src/views/information/nutritionalData/foodData/database/components/info/info.data.ts deleted file mode 100644 index f690faa..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/info/info.data.ts +++ /dev/null @@ -1,64 +0,0 @@ -import {BasicColumn} from '/@/components/Table'; - -//列表数据 -export const columns1: BasicColumn[] = [ - { - title: '序号', - align: 'center', - width: 80, - customRender: ({index}) => { - return index + 1; - }, - }, - { - title: '食材名称', - align: 'center', - dataIndex: 'goodsName', - }, - { - title: '主辅料类型', - align: 'center', - dataIndex: 'materialTypeValue', - }, - { - title: '食材用量(g)', - align: 'center', - dataIndex: 'useWeight', - }, - { - title: '占比', - align: 'center', - dataIndex: 'percentage', - }, -]; - -//列表数据 -export const columns2: BasicColumn[] = [{ - title: '热量(100g)/kcal', - align: 'center', - dataIndex: 'energyKcal' -}, { - title: '碳水(100g)/g', - align: 'center', - dataIndex: 'cho' -}, { - title: '脂肪(100g)/g', - align: 'center', - dataIndex: 'fat' -}, { - title: '蛋白质(100g)/g', - align: 'center', - dataIndex: 'protein' -}, { - title: '盐(100g)/g', - align: 'center', - dataIndex: 'salt' -}, { - title: '油(100g)/g', - align: 'center', - dataIndex: 'oil' -}, { - title: '糖(100g)/g', - align: 'center', - dataIndex: 'sugar' -}]; diff --git a/src/views/information/nutritionalData/foodData/database/components/info/info.vue b/src/views/information/nutritionalData/foodData/database/components/info/info.vue deleted file mode 100644 index 02cf5c6..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/info/info.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/foodData/database/components/search/search.api.ts b/src/views/information/nutritionalData/foodData/database/components/search/search.api.ts deleted file mode 100644 index a35253a..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/search/search.api.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', - getRestaurantList = '/foodNourishmentReport/getRestaurantList', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 食堂 - * @param params - */ -export const restaurantList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.getRestaurantList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/foodData/database/components/search/search.data.ts b/src/views/information/nutritionalData/foodData/database/components/search/search.data.ts deleted file mode 100644 index efd7eae..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/search/search.data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import {getTreeDepartSecondAndThree, restaurantList} from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '食堂名称', - field: 'canteenId', - component: 'ApiSelect', - componentProps: () => { - return { - api: restaurantList, - labelField: 'restName', - valueField: 'id', - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '食堂编号', - field: 'restNo', - component: 'Input', - }, - { - label: '餐品名称', - field: 'foodName', - component: 'Input', - }, - { - label: '餐品荤素', - field: 'meatVege', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '荤菜', value: '荤' }, - { label: '素菜', value: '素' }, - { label: '其他', value: '其他' }, - ], - }; - }, - }, - { - label: '餐品凉热', - field: 'hotCold', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '凉菜', value: '凉' }, - { label: '热菜', value: '热' }, - { label: '其他', value: '其他' }, - ], - }; - }, - }, - { - label: '食材数量', - field: 'goodsNumTypeAndGoodsNum', - component: 'InputGroup', - slot: 'goodsNumTypeAndGoodsNum', - }, -]; diff --git a/src/views/information/nutritionalData/foodData/database/components/search/search.vue b/src/views/information/nutritionalData/foodData/database/components/search/search.vue deleted file mode 100644 index fc3978e..0000000 --- a/src/views/information/nutritionalData/foodData/database/components/search/search.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/foodData/database/database.api.ts b/src/views/information/nutritionalData/foodData/database/database.api.ts deleted file mode 100644 index 586473f..0000000 --- a/src/views/information/nutritionalData/foodData/database/database.api.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getFoodInitialEveryCanteenAndDinnerList', - exportList = '/foodNourishmentReport/getFoodInitialEveryCanteenAndDinnerList/export', - statisticsRowList = '/foodNourishmentReport/foodRecipeStatisticsRow', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/foodData/database/database.data.ts b/src/views/information/nutritionalData/foodData/database/database.data.ts deleted file mode 100644 index 8f6d50e..0000000 --- a/src/views/information/nutritionalData/foodData/database/database.data.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).foodId ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'departName', - }, - { - title: '食堂名称', - align: 'center', - dataIndex: 'restName', - }, - { - title: '食堂编号', - align: 'center', - dataIndex: 'restNo', - }, - { - title: '餐品名称', - align: 'center', - dataIndex: 'foodName', - }, - { - title: '荤素', - align: 'center', - dataIndex: 'meatVege', - }, - { - title: '凉热', - align: 'center', - dataIndex: 'hotCold', - }, - { - title: '食材数量', - align: 'center', - dataIndex: 'goodsNum', - }, -]; diff --git a/src/views/information/nutritionalData/foodData/database/database.vue b/src/views/information/nutritionalData/foodData/database/database.vue deleted file mode 100644 index 3f1a1a4..0000000 --- a/src/views/information/nutritionalData/foodData/database/database.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.api.ts b/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index 5cd6d76..0000000 --- a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/foodInfoStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.data.ts b/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index c605678..0000000 --- a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '表头', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.vue b/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.vue deleted file mode 100644 index baf21d5..0000000 --- a/src/views/information/nutritionalData/foodData/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.api.ts b/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.api.ts deleted file mode 100644 index 39bbcc5..0000000 --- a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.api.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -/** - * 组件接口 - * @param params - */ -export const requestUrl = async (url, params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: url, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.data.ts b/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.vue b/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.vue deleted file mode 100644 index 6d7fdc7..0000000 --- a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/components/chart/chart.vue +++ /dev/null @@ -1,382 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.api.ts b/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.api.ts deleted file mode 100644 index d99681f..0000000 --- a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - departNameList = '/foodNourishmentReport/getDepartNameList', -} - -/** - * 列表接口 - * @param params - */ -export const departNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.departNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index c60fc5a..0000000 --- a/src/views/information/nutritionalData/nutritionalData/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.api.ts b/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 5f30dba..0000000 --- a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/nourishmentStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.data.ts b/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index 0504149..0000000 --- a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - return index + 1; - }, - }, -]; diff --git a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.vue b/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.vue deleted file mode 100644 index 8e7d349..0000000 --- a/src/views/information/nutritionalData/nutritionalData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.api.ts b/src/views/information/nutritionalData/nutritionalData/database/components/search/search.api.ts deleted file mode 100644 index 19ef371..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.data.ts b/src/views/information/nutritionalData/nutritionalData/database/components/search/search.data.ts deleted file mode 100644 index 346a861..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.data.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getTreeDepartSecondAndThree } from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '男', value: '1' }, - { label: '女', value: '2' }, - ], - }; - }, - }, - { - label: '年龄', - field: 'ageAndAgeType', - component: 'InputGroup', - slot: 'ageAndAgeType', - }, - { - label: '身高(cm)', - field: 'heightAndHeightType', - component: 'InputGroup', - slot: 'heightAndHeightType', - }, - { - label: '体重(kg)', - field: 'weightAndWeightType', - component: 'InputGroup', - slot: 'weightAndWeightType', - }, - { - label: '劳动强度', - field: 'workStrength', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '重度劳动', value: '1' }, - { label: '中度劳动', value: '2' }, - { label: '轻度劳动', value: '3' }, - { label: '卧床', value: '4' }, - ], - }; - }, - }, - { - label: '用餐餐次', - field: 'dinnerType', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '早餐', value: '早餐' }, - { label: '午餐', value: '午餐' }, - { label: '晚餐', value: '晚餐' }, - { label: '加餐', value: '加餐' }, - ], - }; - }, - }, - { - label: '摄入食品数', - field: 'foodNumAndFoodNumType', - component: 'InputGroup', - slot: 'foodNumAndFoodNumType', - }, - { - label: '摄入热量(kcal)', - field: 'energyAndEnergyType', - component: 'InputGroup', - slot: 'energyAndEnergyType', - }, - { - label: 'bmi', - field: 'bmiAndBmiType', - component: 'InputGroup', - slot: 'bmiAndBmiType', - }, -]; diff --git a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.vue b/src/views/information/nutritionalData/nutritionalData/database/components/search/search.vue deleted file mode 100644 index dcd7c61..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/components/search/search.vue +++ /dev/null @@ -1,273 +0,0 @@ - - - diff --git a/src/views/information/nutritionalData/nutritionalData/database/database.api.ts b/src/views/information/nutritionalData/nutritionalData/database/database.api.ts deleted file mode 100644 index c7b9aee..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/database.api.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getUserInfoAndNourishment', - // getWeightAndHeight = '/sys/healthUserEmployeeEx/heightWeight', - exportList = '/foodNourishmentReport/getUserInfoAndNourishment/export', - statisticsRowList = '/foodNourishmentReport/mealRecordsStatisticsRow1', -} - -// export const getWeightAndHeightApi = (params: any) => defHttp.post({ url: Api.getWeightAndHeight, params }); - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/database/database.data.ts b/src/views/information/nutritionalData/nutritionalData/database/database.data.ts deleted file mode 100644 index f001c57..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/database.data.ts +++ /dev/null @@ -1,333 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; -import { h } from 'vue'; -import { Tooltip } from 'ant-design-vue'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'secondDepartName', - }, - { - title: '部门', - align: 'center', - dataIndex: 'thirdDepartName', - }, - { - title: '姓名', - align: 'center', - width: 100, - dataIndex: 'realname', - }, - { - title: '工号', - align: 'center', - width: 100, - dataIndex: 'workNo', - }, - { - title: '性别', - align: 'center', - width: 80, - dataIndex: 'sex', - }, - { - title: '年龄', - align: 'center', - width: 60, - dataIndex: 'age', - }, - { - title: '身高(cm)', - align: 'center', - width: 80, - dataIndex: 'height', - }, - { - title: '体重(kg)', - align: 'center', - width: 80, - dataIndex: 'weight', - }, - { - title: 'BMI', - align: 'center', - width: 80, - dataIndex: 'bmi', - }, - { - title: '劳动强度', - align: 'center', - width: 90, - dataIndex: 'workStrength', - }, - { - title: '用餐时间', - align: 'center', - width: 100, - dataIndex: 'statisticsDay', - }, - { - title: '用餐餐次', - align: 'center', - width: 90, - dataIndex: 'dinnerType', - }, - { - title: '摄入餐品数', - align: 'center', - width: 100, - dataIndex: 'foodNum', - }, - { - title: '摄入热量(kcal)', - align: 'center', - width: 110, - dataIndex: 'energy', - }, - - { - title: '蛋白质(克)', - align: 'center', - width: 90, - dataIndex: 'protein', - customRender: ({ record }): any => { - return getStatusDom(record, '蛋白质', 'protein'); - }, - }, - { - title: '脂肪(克)', - align: 'center', - width: 80, - dataIndex: 'fat', - customRender: ({ record }): any => { - return getStatusDom(record, '脂肪', 'fat'); - }, - }, - { - title: '碳水化物(克)', - align: 'center', - width: 100, - dataIndex: 'cho', - customRender: ({ record }): any => { - return getStatusDom(record, '碳水化物', 'cho'); - }, - }, - { - title: '膳食纤维(克)', - align: 'center', - width: 110, - dataIndex: 'dietFiber', - customRender: ({ record }): any => { - return getStatusDom(record, '膳食纤维', 'dietFiber'); - }, - }, - { - title: '维生素A(微克)', - align: 'center', - width: 110, - dataIndex: 'vitA', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素A', 'vitA'); - }, - }, - { - title: '维生素B1(毫克)', - align: 'center', - width: 120, - dataIndex: 'thiamin', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素B1', 'thiamin'); - }, - }, - { - title: '维生素B2(毫克)', - align: 'center', - width: 120, - dataIndex: 'riboflavin', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素B2', 'riboflavin'); - }, - }, - { - title: '维生素B6(毫克)', - align: 'center', - width: 120, - dataIndex: 'vitB6', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素B6', 'vitB6'); - }, - }, - { - title: '维生素B12(微克)', - align: 'center', - width: 130, - dataIndex: 'vitB12', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素B12', 'vitB12'); - }, - }, - { - title: '叶酸(微克)', - align: 'center', - width: 90, - dataIndex: 'folate', - customRender: ({ record }): any => { - return getStatusDom(record, '叶酸', 'folate'); - }, - }, - { - title: '烟酸(毫克)', - align: 'center', - width: 90, - dataIndex: 'naicin', - customRender: ({ record }): any => { - return getStatusDom(record, '烟酸', 'naicin'); - }, - }, - { - title: '维生素C(毫克)', - align: 'center', - width: 110, - dataIndex: 'vitC', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素C', 'vitC'); - }, - }, - { - title: '维生素E(毫克)', - align: 'center', - width: 110, - dataIndex: 'vitE', - customRender: ({ record }): any => { - return getStatusDom(record, '维生素E', 'vitE'); - }, - }, - { - title: '钙(毫克)', - align: 'center', - width: 70, - dataIndex: 'ca', - customRender: ({ record }): any => { - return getStatusDom(record, '钙', 'ca'); - }, - }, - { - title: '钾(毫克)', - align: 'center', - width: 70, - dataIndex: 'elementK', - customRender: ({ record }): any => { - return getStatusDom(record, '钾', 'elementK'); - }, - }, - { - title: '钠(毫克)', - align: 'center', - width: 70, - dataIndex: 'na', - customRender: ({ record }): any => { - return getStatusDom(record, '钠', 'na'); - }, - }, - { - title: '镁(毫克)', - align: 'center', - width: 70, - dataIndex: 'mg', - customRender: ({ record }): any => { - return getStatusDom(record, '镁', 'mg'); - }, - }, - { - title: '铁(毫克)', - align: 'center', - width: 70, - dataIndex: 'fe', - customRender: ({ record }): any => { - return getStatusDom(record, '铁', 'fe'); - }, - }, - { - title: '锌(毫克)', - align: 'center', - width: 70, - dataIndex: 'zn', - customRender: ({ record }): any => { - return getStatusDom(record, '锌', 'zn'); - }, - }, - { - title: '硒(微克)', - align: 'center', - width: 70, - dataIndex: 'se', - customRender: ({ record }): any => { - return getStatusDom(record, '硒', 'se'); - }, - }, - { - title: '铜(毫克)', - align: 'center', - width: 70, - dataIndex: 'cu', - customRender: ({ record }): any => { - return getStatusDom(record, '铜', 'cu'); - }, - }, - { - title: '锰(毫克)', - align: 'center', - width: 70, - dataIndex: 'mn', - customRender: ({ record }): any => { - return getStatusDom(record, '锰', 'mn'); - }, - }, - { - title: '碘(微克)', - align: 'center', - width: 70, - dataIndex: 'elementI', - customRender: ({ record }): any => { - return getStatusDom(record, '碘', 'elementI'); - }, - }, -]; - -const getStatusDom = (record: any, text:string, textKey: string) => { - let hDom; - const statusKey = textKey + 'Status'; - const recommendKey = textKey + 'Recommend'; - const proteinStatus = record[statusKey]; - if (Number(proteinStatus) > 2) { - hDom = h( - Tooltip, - { - title: text + '推荐量:' + record[recommendKey], - placement: 'top', - }, - { - default: () => - h('div', { - innerHTML: '' + record[textKey] + '', - }), - } - ); - } else { - hDom = h('div', { - innerHTML: '' + record[textKey] + '', - }); - } - return hDom; -}; diff --git a/src/views/information/nutritionalData/nutritionalData/database/database.vue b/src/views/information/nutritionalData/nutritionalData/database/database.vue deleted file mode 100644 index b1c473b..0000000 --- a/src/views/information/nutritionalData/nutritionalData/database/database.vue +++ /dev/null @@ -1,236 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.api.ts b/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index d0b3fbd..0000000 --- a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/nourishmentDataStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.data.ts b/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index c605678..0000000 --- a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '表头', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.vue b/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.vue deleted file mode 100644 index 3eb90df..0000000 --- a/src/views/information/nutritionalData/nutritionalData/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.api.ts b/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.api.ts deleted file mode 100644 index 39bbcc5..0000000 --- a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.api.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -/** - * 组件接口 - * @param params - */ -export const requestUrl = async (url, params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: url, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.data.ts b/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.vue b/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.vue deleted file mode 100644 index a83e7aa..0000000 --- a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/components/chart/chart.vue +++ /dev/null @@ -1,353 +0,0 @@ - - - - - diff --git a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.api.ts b/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.api.ts deleted file mode 100644 index debd2e6..0000000 --- a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.api.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - jobList = '/foodNourishmentReport/jobList', - departNameList = '/foodNourishmentReport/getDepartNameList', -} - -/** - * 岗位层级数据 - * @param params - */ -export const jobList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.jobList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 列表接口 - * @param params - */ -export const departNameList = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.departNameList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.vue b/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.vue deleted file mode 100644 index 02fa8bd..0000000 --- a/src/views/information/nutritionalData/nutritionalData/oneWayAnalysis/oneWayAnalysis.vue +++ /dev/null @@ -1,216 +0,0 @@ - - - - - diff --git a/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.data.ts b/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index c15e828..0000000 --- a/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalDict = '/health-emergency/data/hospital/dict', -} - -export const hospitalDictApi = (params) => defHttp.get({ url: Api.hospitalDict, params }); diff --git a/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.vue deleted file mode 100644 index a495e7d..0000000 --- a/src/views/information/organInformation/emergencyHospital/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,131 +0,0 @@ - - diff --git a/src/views/information/organInformation/emergencyHospital/database/database.api.ts b/src/views/information/organInformation/emergencyHospital/database/database.api.ts deleted file mode 100644 index b4d51e4..0000000 --- a/src/views/information/organInformation/emergencyHospital/database/database.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataPage = '/health-emergency/data/hospital/page', - dataStat = '/health-emergency/data/hospital/statistics', - exportXls = '/health-emergency/data/hospital/exportXls', -} - -export const dataPageApi = (params) => defHttp.get({ url: Api.dataPage, params }); -export const dataStatApi = (params) => defHttp.get({ url: Api.dataStat, params }); - -export const exportXlsApi = Api.exportXls; diff --git a/src/views/information/organInformation/emergencyHospital/database/database.data.ts b/src/views/information/organInformation/emergencyHospital/database/database.data.ts deleted file mode 100644 index bb506fe..0000000 --- a/src/views/information/organInformation/emergencyHospital/database/database.data.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '医院名称', - dataIndex: 'name', - width: 120, - }, - { - title: '照片', - dataIndex: 'img', - width: 80, - }, - { - title: '医院类别', - dataIndex: 'type', - width: 120, - customRender: ({ text }) => { - // return record.type_dictText; - if (text == '1') { - return '油田医院'; - } - if (text == '2') { - return '合作医院'; - } - }, - }, - { - title: '详细地址', - dataIndex: 'address', - width: 200, - }, - { - title: '医院级别', - dataIndex: 'level_dictText', - width: 120, - }, - { - title: '联系电话', - dataIndex: 'mobile', - width: 120, - }, - { - title: '简介/介绍', - dataIndex: 'resourceDesc', - width: 200, - }, - { - title: '网址', - dataIndex: 'url', - width: 120, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'resourceName', - label: '医院名称', - component: 'Input', - }, - { - field: 'type', - label: '医院类别', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '油田医院', value: '1' }, - { label: '合作医院', value: '2' }, - ], - getPopupContainer: () => document.body, - }; - }, - }, - { - field: 'level', - label: '医院级别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'hospital_level', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/organInformation/emergencyHospital/database/database.vue b/src/views/information/organInformation/emergencyHospital/database/database.vue deleted file mode 100644 index 7362728..0000000 --- a/src/views/information/organInformation/emergencyHospital/database/database.vue +++ /dev/null @@ -1,45 +0,0 @@ - - diff --git a/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.data.ts b/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.data.ts deleted file mode 100644 index 00cb7f3..0000000 --- a/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.data.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalStru = '/health-emergency/data/hospital/tableStructure', -} - -export const hospitalStruApi = () => defHttp.get({ url: Api.hospitalStru }); diff --git a/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.vue b/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.vue deleted file mode 100644 index 2c06a87..0000000 --- a/src/views/information/organInformation/emergencyHospital/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/organInformation/environmentalMonitoring/database/database.api.ts b/src/views/information/organInformation/environmentalMonitoring/database/database.api.ts deleted file mode 100644 index 48200eb..0000000 --- a/src/views/information/organInformation/environmentalMonitoring/database/database.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataPage = '/health-intervene/data/page', - dataStat = '/health-intervene/data/statistic', - dataExport = '/health-intervene/data/export', -} - -export const dataPageApi = (params) => defHttp.get({ url: Api.dataPage, params }); -export const dataStatApi = () => defHttp.get({ url: Api.dataStat }); - -export const dataExportApi = Api.dataExport; diff --git a/src/views/information/organInformation/environmentalMonitoring/database/database.data.ts b/src/views/information/organInformation/environmentalMonitoring/database/database.data.ts deleted file mode 100644 index 4e51ec0..0000000 --- a/src/views/information/organInformation/environmentalMonitoring/database/database.data.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew } from '/@/utils/orgSearchInfo'; - -export const tableColumns: BasicColumn[] = [ - { - title: '单位名称', - dataIndex: 'orgName', - width: 120, - }, - { - title: '室内环境监测设备数量', - dataIndex: 'indoorMeterInfoSum', - width: 80, - }, - - { - title: '室外环境监测设备数量', - dataIndex: 'outdoorMeterInfoSum', - width: 200, - }, - { - title: '水质监测设备数量', - dataIndex: 'waterQualityMeterInfoSum', - width: 120, - }, - { - title: '花粉检测设备数量', - dataIndex: 'pollenMeterInfoSum', - width: 120, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'orgCode', - label: '所属单位', - component: 'ApiSelect', - componentProps: () => { - return { - api: allSecondaryDepartsNew, - resultField: 'result', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择单位', - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, -]; diff --git a/src/views/information/organInformation/environmentalMonitoring/database/database.vue b/src/views/information/organInformation/environmentalMonitoring/database/database.vue deleted file mode 100644 index c0ec2f0..0000000 --- a/src/views/information/organInformation/environmentalMonitoring/database/database.vue +++ /dev/null @@ -1,47 +0,0 @@ - - diff --git a/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.api.ts b/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index b83d2e6..0000000 --- a/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalDict = '/health-consultation/data/hospital/dict', -} - -export const hospitalDictApi = () => defHttp.get({ url: Api.hospitalDict }); diff --git a/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.vue deleted file mode 100644 index 81b72ea..0000000 --- a/src/views/information/organInformation/expertHospital/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,148 +0,0 @@ - - diff --git a/src/views/information/organInformation/expertHospital/database/database.api.ts b/src/views/information/organInformation/expertHospital/database/database.api.ts deleted file mode 100644 index 3fb63a3..0000000 --- a/src/views/information/organInformation/expertHospital/database/database.api.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalPage = '/health-consultation/data/hospital/page', - hospitalDepartment = '/health-consultation/data/hospital/department', - hospitalStat = '/health-consultation/data/hospital/statistics', - exportXls = '/health-consultation/data/hospital/exportXls', -} - -export const hospitalPageApi = (params) => defHttp.get({ url: Api.hospitalPage, params }); - -export const hospitalDepartmentApi = (params) => defHttp.get({ url: Api.hospitalDepartment, params }, { successMessageMode: 'none' }); -export const hospitalStatApi = (params) => defHttp.get({ url: Api.hospitalStat, params }, { successMessageMode: 'none' }); - -export const exportXlsApi = Api.exportXls; diff --git a/src/views/information/organInformation/expertHospital/database/database.data.ts b/src/views/information/organInformation/expertHospital/database/database.data.ts deleted file mode 100644 index 3483666..0000000 --- a/src/views/information/organInformation/expertHospital/database/database.data.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '医院名称', - dataIndex: 'resourceName', - width: 180, - align: 'center', - }, - { - title: '照片', - dataIndex: 'img', - width: 100, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 200, - align: 'center', - }, - { - title: '医院级别', - dataIndex: 'level_dictText', - width: 100, - align: 'center', - }, - { - title: '医院简介', - dataIndex: 'synopsis', - width: 200, - align: 'center', - }, - { - title: '医院介绍', - dataIndex: 'resourceDetail', - width: 80, - align: 'center', - }, - { - title: '医院科室', - dataIndex: 'department', - width: 80, - align: 'center', - }, - { - title: '是否置顶', - dataIndex: 'tfTop', - width: 80, - align: 'center', - customRender: ({ text }) => { - return text ? '是' : '否'; - }, - }, - { - title: '排序', - dataIndex: 'sort', - width: 80, - align: 'center', - }, - { - title: '状态', - dataIndex: 'status', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'resourceName', - label: '医院名称', - component: 'Input', - }, - { - field: 'level', - label: '医院级别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'hospital_level', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/organInformation/expertHospital/database/database.vue b/src/views/information/organInformation/expertHospital/database/database.vue deleted file mode 100644 index 89fb9fc..0000000 --- a/src/views/information/organInformation/expertHospital/database/database.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - diff --git a/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.api.ts b/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 9db05b2..0000000 --- a/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - hospitalStru = '/health-consultation/data/hospital/tableStructure', -} - -export const hospitalStruApi = () => defHttp.get({ url: Api.hospitalStru }); diff --git a/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.vue b/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.vue deleted file mode 100644 index cfa59e6..0000000 --- a/src/views/information/organInformation/expertHospital/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,18 +0,0 @@ - - diff --git a/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.api.ts b/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 000722b..0000000 --- a/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataDict = '/medical-center/data/resource/dict', -} - -export const dataDictApi = () => defHttp.get({ url: Api.dataDict }); diff --git a/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.vue deleted file mode 100644 index d38aae8..0000000 --- a/src/views/information/organInformation/frontlineMedical/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,143 +0,0 @@ - - diff --git a/src/views/information/organInformation/frontlineMedical/database/database.api.ts b/src/views/information/organInformation/frontlineMedical/database/database.api.ts deleted file mode 100644 index b5ff3cd..0000000 --- a/src/views/information/organInformation/frontlineMedical/database/database.api.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -//medical-center - -enum Api { - dataPage = '/medical-center/data/resource/page', - dataStat = '/medical-center/data/resource/statistic', - exportXsl = '/medical-center/data/resource/export', -} - -export const dataPageApi = (params) => defHttp.get({ url: Api.dataPage, params }); -export const dataStatApi = (params) => defHttp.get({ url: Api.dataStat, params }); - -export const exportXslApi = Api.exportXsl; diff --git a/src/views/information/organInformation/frontlineMedical/database/database.data.ts b/src/views/information/organInformation/frontlineMedical/database/database.data.ts deleted file mode 100644 index fbc8b2d..0000000 --- a/src/views/information/organInformation/frontlineMedical/database/database.data.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; -import { getNewHospitalApi } from '/@/views/system/user/user.api'; -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '医疗点名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '照片', - dataIndex: 'img', - width: 80, - align: 'center', - }, - { - title: '医疗点地址', - dataIndex: 'address', - width: 200, - align: 'center', - }, - { - title: '简介', - dataIndex: 'resourceDesc', - width: 150, - align: 'center', - }, - { - title: '合作医院', - dataIndex: 'hospitalName', - width: 120, - align: 'center', - }, - { - title: '联系电话', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '负责人', - dataIndex: 'adminUser', - width: 120, - align: 'center', - }, - { - title: '设立时间', - dataIndex: 'setUpTime', - width: 120, - align: 'center', - }, - { - title: '辐射单位', - dataIndex: 'radiationDepartList', - width: 150, - align: 'center', - }, - { - title: '开启状态', - dataIndex: 'status_dictText', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'departCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getApi(), - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - immediate: true, - showSearch: true, - disabledInitValue: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - onChange: () => { - formModel.medicalId = ''; - }, - onDeselect: () => { - formModel.medicalId = ''; - }, - }; - }, - }, - { - label: '所属医疗点', - field: 'name', - component: 'Input', - }, - { - label: '医院', - field: 'hospitalId', - component: 'ApiSelect', - componentProps: () => { - return { - api: getNewHospitalApi, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - getPopupContainer: () => document.body, - showSearch: true, - }; - }, - }, - { - field: 'buildTime', - label: '设立时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/organInformation/frontlineMedical/database/database.vue b/src/views/information/organInformation/frontlineMedical/database/database.vue deleted file mode 100644 index 4c50d29..0000000 --- a/src/views/information/organInformation/frontlineMedical/database/database.vue +++ /dev/null @@ -1,48 +0,0 @@ - - diff --git a/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.api.ts b/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index ae2311d..0000000 --- a/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dataStru = '/medical-center/data/resource/tableStructure', -} - -export const dataStruApi = () => defHttp.get({ url: Api.dataStru }); diff --git a/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.vue b/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.vue deleted file mode 100644 index 6dbd460..0000000 --- a/src/views/information/organInformation/frontlineMedical/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.api.ts b/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 2f49f56..0000000 --- a/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - houseDict = '/health-archives/data/house/dict', -} - -export const houseDictApi = (params) => defHttp.get({ url: Api.houseDict, params }); diff --git a/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.vue deleted file mode 100644 index fe1e9e1..0000000 --- a/src/views/information/organInformation/healthyCabin/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,135 +0,0 @@ - - diff --git a/src/views/information/organInformation/healthyCabin/database/database.api.ts b/src/views/information/organInformation/healthyCabin/database/database.api.ts deleted file mode 100644 index 673f383..0000000 --- a/src/views/information/organInformation/healthyCabin/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - housePage = '/health-archives/data/house/page', -} - -export const housePageApi = (params) => defHttp.get({ url: Api.housePage, params }); diff --git a/src/views/information/organInformation/healthyCabin/database/database.data.ts b/src/views/information/organInformation/healthyCabin/database/database.data.ts deleted file mode 100644 index 16af25b..0000000 --- a/src/views/information/organInformation/healthyCabin/database/database.data.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allSecondaryDepartsNew } from '/@/utils/orgSearchInfo'; - -export const tableColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - }, - { - title: '小屋名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '负责人', - dataIndex: 'managerUserName', - width: 100, - align: 'center', - }, - { - title: '负责人办公室电话', - dataIndex: 'managerUserOfficeMobile', - width: 150, - align: 'center', - }, - { - title: '负责人手机', - dataIndex: 'managerUserMobile', - width: 120, - align: 'center', - }, - { - title: '设立时间', - dataIndex: 'setUpTime', - width: 120, - align: 'center', - }, - { - title: '配备金额(元)', - dataIndex: 'money', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text / 100; - }, - }, - { - title: '配备设备数量', - dataIndex: 'equipmentNum', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'orgCode', - label: '所属单位', - component: 'ApiSelect', - componentProps: () => { - return { - api: allSecondaryDepartsNew, - resultField: 'result', - labelField: 'departName', - valueField: 'orgCode', - placeholder: '请选择单位', - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - }; - }, - }, - { - field: 'name', - label: '小屋名称', - component: 'Input', - }, - { - field: 'setUpTime1', - label: '设立时间', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, -]; diff --git a/src/views/information/organInformation/healthyCabin/database/database.vue b/src/views/information/organInformation/healthyCabin/database/database.vue deleted file mode 100644 index 58165a2..0000000 --- a/src/views/information/organInformation/healthyCabin/database/database.vue +++ /dev/null @@ -1,42 +0,0 @@ - - diff --git a/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.api.ts b/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 859079f..0000000 --- a/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - houseStru = '/health-archives/data/house/tableStructure', -} - -export const houseStruApi = () => defHttp.get({ url: Api.houseStru }); diff --git a/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.vue b/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.vue deleted file mode 100644 index e70701a..0000000 --- a/src/views/information/organInformation/healthyCabin/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.api.ts b/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index db5a1dd..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/restaurantStructureDictList', -} - -/** - * 列表头接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.data.ts b/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.data.ts deleted file mode 100644 index b13bef0..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.data.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '字典序号', - align: 'center', - dataIndex: 'zIndex', - width: 120, - customRender: () => { - return ''; - }, - }, - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index }): any => { - // return index + 1; - return ''; - }, - }, -]; diff --git a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.vue deleted file mode 100644 index 8c20fce..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.api.ts b/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.api.ts deleted file mode 100644 index 19ef371..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - treeDepartSecondAndThree = '/sys/sysDepart/recordTreeDepartSecondAndThree', -} - -/** - * 部门 - * @param params - */ -export const getTreeDepartSecondAndThree = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.treeDepartSecondAndThree, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.data.ts b/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.data.ts deleted file mode 100644 index c604d6d..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.data.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { FormSchema } from '/@/components/Table'; -import { getTreeDepartSecondAndThree } from './search.api'; -import { useUserStore } from '/@/store/modules/user'; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'departId', - component: 'ApiTreeSelect', - componentProps: () => { - return { - api: getTreeDepartSecondAndThree, - params: { - orgCode: useUserStore()?.getUserInfo.orgCode, - }, - dropdownMatchSelectWidth: false, - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '食堂名称', - field: 'restName', - component: 'Input', - }, - { - label: '负责人', - field: 'restContecter', - component: 'Input', - }, - { - label: '负责人电话', - field: 'restPhone', - component: 'Input', - }, - { - label: '健康管理员', - field: 'healthAdminName', - component: 'Input', - }, - { - label: '健康管理员电话', - field: 'healthPhone', - component: 'Input', - }, - { - label: '就餐人数', - field: 'typeAndTotalNum', - component: 'InputGroup', - slot: 'typeAndTotalNum', - }, -]; diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.vue b/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.vue deleted file mode 100644 index db84a92..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/components/search/search.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/database.api.ts b/src/views/information/organInformation/nutritiousDietCentre/database/database.api.ts deleted file mode 100644 index a7153a6..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/database.api.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/getAllBaseRestaurantList', - exportList = '/foodNourishmentReport/getAllBaseRestaurantList/export', - statisticsRowList = '/foodNourishmentReport/canteenInfoStatisticsRow', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; - -/** - * 导出接口 - * @param params - */ -export const exportList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.exportList, - params, - headers: { - 'X-Access-Token': token, - }, - responseType: 'blob', - }, - { - apiUrl: stServerUrl, - withToken: false, - isTransformResponse: false, - } - ); -}; - -/** - * 统计接口 - * @param params - */ -export const statisticsRowList = async (params) => { - const token = await getStToken({}); - return defHttp.post( - { - url: Api.statisticsRowList, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/database.data.ts b/src/views/information/organInformation/nutritiousDietCentre/database/database.data.ts deleted file mode 100644 index cdb2082..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/database.data.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '所属单位', - align: 'center', - dataIndex: 'departName', - }, - { - title: '管理部门', - align: 'center', - dataIndex: 'thirdDepartName', - }, - { - title: '食堂名称', - align: 'center', - dataIndex: 'restName', - }, - { - title: '地理坐标', - align: 'center', - dataIndex: 'address', - }, - { - title: '负责人', - align: 'center', - dataIndex: 'restContecter', - }, - { - title: '联系电话', - align: 'center', - dataIndex: 'restPhone', - }, - { - title: '健康管理员', - align: 'center', - dataIndex: 'healthAdminName', - }, - { - title: '健康管理员电话', - align: 'center', - dataIndex: 'healthPhone', - }, -]; diff --git a/src/views/information/organInformation/nutritiousDietCentre/database/database.vue b/src/views/information/organInformation/nutritiousDietCentre/database/database.vue deleted file mode 100644 index dcf3105..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/database/database.vue +++ /dev/null @@ -1,188 +0,0 @@ - - - - - diff --git a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.api.ts b/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.api.ts deleted file mode 100644 index fd1f624..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { stServerUrl } from '/@/utils/http/stRequestToken/serverUrl'; -import { getStToken } from '/@/utils/http/stRequestToken'; - -export enum Api { - list = '/foodNourishmentReport/restaurantStructurePage', -} - -/** - * 列表接口 - * @param params - */ -export const list = async (params) => { - const token = await getStToken({}); - return defHttp.get( - { - url: Api.list, - params, - headers: { - 'X-Access-Token': token, - }, - }, - { - apiUrl: stServerUrl, - withToken: false, - } - ); -}; diff --git a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.data.ts b/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.data.ts deleted file mode 100644 index 0db2aa1..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.data.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '序号', - align: 'center', - dataIndex: 'index', - width: 80, - customRender: ({ index, record }): any => { - return (record as any).id ? index + 1 : ''; - }, - }, - { - title: '字段名', - align: 'center', - dataIndex: 'fieldName', - }, - { - title: '字段类型', - align: 'center', - dataIndex: 'fieldType', - }, - { - title: '长度', - align: 'center', - dataIndex: 'fieldLong', - }, - { - title: '备注', - align: 'center', - dataIndex: 'headerName', - }, -]; diff --git a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.vue b/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.vue deleted file mode 100644 index 334cf64..0000000 --- a/src/views/information/organInformation/nutritiousDietCentre/databaseStructure/databaseStructure.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.api.ts b/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 238bcb2..0000000 --- a/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - departDict = '/health-system/data/depart/dict', -} - -export const departDictApi = () => defHttp.get({ url: Api.departDict }); diff --git a/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.vue b/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.vue deleted file mode 100644 index 056d406..0000000 --- a/src/views/information/organInformation/oilfieldUnit/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,147 +0,0 @@ - - diff --git a/src/views/information/organInformation/oilfieldUnit/database/components/database.vue b/src/views/information/organInformation/oilfieldUnit/database/components/database.vue deleted file mode 100644 index ffce054..0000000 --- a/src/views/information/organInformation/oilfieldUnit/database/components/database.vue +++ /dev/null @@ -1,57 +0,0 @@ - - diff --git a/src/views/information/organInformation/oilfieldUnit/database/database.api.ts b/src/views/information/organInformation/oilfieldUnit/database/database.api.ts deleted file mode 100644 index 985376f..0000000 --- a/src/views/information/organInformation/oilfieldUnit/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - page = '/health-system/data/depart/page', -} - -export const pageApi = (params) => defHttp.get({ url: Api.page, params }); diff --git a/src/views/information/organInformation/oilfieldUnit/database/database.data.ts b/src/views/information/organInformation/oilfieldUnit/database/database.data.ts deleted file mode 100644 index 3be8ef9..0000000 --- a/src/views/information/organInformation/oilfieldUnit/database/database.data.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { BasicColumn } from '/@/components/Table'; - -export const tableColumns: BasicColumn[] = [ - { - title: '单位名称', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 120, - align: 'center', - }, - { - title: '电话', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '传真', - dataIndex: 'fax', - width: 100, - align: 'center', - }, - { - title: '健康管理员姓名', - dataIndex: 'healthManageUserName', - width: 150, - align: 'center', - }, - { - title: '健康管理员电话', - dataIndex: 'healthManageUserMobile', - width: 120, - align: 'center', - }, - { - title: '健康管理员地址', - dataIndex: 'healthManageUserAddress', - width: 120, - align: 'center', - }, - { - title: '职业体检管理员姓名', - dataIndex: 'medialManageUserName', - width: 120, - align: 'center', - }, - { - title: '职业体检管理员电话', - dataIndex: 'medialManageUserMobile', - width: 120, - align: 'center', - }, - { - title: '职业体检管理员地址', - dataIndex: 'medialManageUserAddress', - width: 120, - align: 'center', - }, - { - title: '健康监测管理员姓名', - dataIndex: 'monitorManageUserName', - width: 120, - align: 'center', - }, - { - title: '健康监测管理员电话', - dataIndex: 'monitorManageUserMobile', - width: 120, - align: 'center', - }, -]; diff --git a/src/views/information/organInformation/oilfieldUnit/database/database.vue b/src/views/information/organInformation/oilfieldUnit/database/database.vue deleted file mode 100644 index 10f0e6a..0000000 --- a/src/views/information/organInformation/oilfieldUnit/database/database.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - diff --git a/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.api.ts b/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 895f65c..0000000 --- a/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - departStru = '/health-system/data/depart/tableStructure', -} - -export const departStruApi = () => defHttp.get({ url: Api.departStru }); diff --git a/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.vue b/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.vue deleted file mode 100644 index 35a5963..0000000 --- a/src/views/information/organInformation/oilfieldUnit/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/components/barChart.vue b/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/components/barChart.vue deleted file mode 100644 index c71803b..0000000 --- a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/components/barChart.vue +++ /dev/null @@ -1,322 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.api.ts b/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.api.ts deleted file mode 100644 index ec0b402..0000000 --- a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - getClassStat = '/health-medical-gi/data/giUserResult/getClassStat', -} - -export const getClassStat = (params: any) => defHttp.get({ url: Api.getClassStat, params }); diff --git a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index fac749b..0000000 --- a/src/views/information/physicalData/gastrointestinal/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDicitionary.api.ts b/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index 6d242e7..0000000 --- a/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userResultDict = '/health-medical-gi/data/giUserResult/dict', -} - -export const userResultDictApi = (params) => defHttp.get({ url: Api.userResultDict, params }); diff --git a/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDictionary.vue b/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDictionary.vue deleted file mode 100644 index 6a91677..0000000 --- a/src/views/information/physicalData/gastrointestinal/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,148 +0,0 @@ - - diff --git a/src/views/information/physicalData/gastrointestinal/database/components/scope.vue b/src/views/information/physicalData/gastrointestinal/database/components/scope.vue deleted file mode 100644 index 2a97ecc..0000000 --- a/src/views/information/physicalData/gastrointestinal/database/components/scope.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/database/database.api.ts b/src/views/information/physicalData/gastrointestinal/database/database.api.ts deleted file mode 100644 index 325a612..0000000 --- a/src/views/information/physicalData/gastrointestinal/database/database.api.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - // giUserResult = '/health-medical-gi/data/giUserResult/page', - giUserResult = '/health-medical-gi/data/giUserResult/pageNew', - getMedicalYearList = '/health-medical-gi/data/giUserResult/getMedicalYearList', - getUserResultByIdNoAndMedicalYear = '/health-medical-gi/data/giUserResult/getUserResultByIdNoAndMedicalYear?', -} - -export const giUserResultApi = (params) => defHttp.get({ url: Api.giUserResult, params }); -export const getMedicalYearListApi = (params) => defHttp.get({ url: Api.getMedicalYearList, params }); -export const getUserResultByIdNoAndMedicalYearApi = (params) => defHttp.get({ url: Api.getUserResultByIdNoAndMedicalYear, params }); diff --git a/src/views/information/physicalData/gastrointestinal/database/database.data.ts b/src/views/information/physicalData/gastrointestinal/database/database.data.ts deleted file mode 100644 index 10aa9a4..0000000 --- a/src/views/information/physicalData/gastrointestinal/database/database.data.ts +++ /dev/null @@ -1,226 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'unitName', - width: 80, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empJob_dictText', - width: 80, - align: 'center', - }, - { - title: '用工形式', - dataIndex: 'empType_dictText', - width: 80, - align: 'center', - }, - { - title: '入职时间', - dataIndex: 'workTime', - width: 80, - align: 'center', - }, - { - title: '体检医院', - dataIndex: 'hospitalName', - width: 80, - align: 'center', - }, - { - title: '体检年份', - dataIndex: 'medicalYear', - width: 80, - align: 'center', - }, - { - title: '胃肠镜报告', - dataIndex: 'gastroscopeAcolonoscopy', - width: 80, - align: 'center', - }, - // { - // title: '胃镜报告', - // dataIndex: 'gastroscope', - // width: 80, - // align: 'center', - // }, - // { - // title: '肠镜报告', - // dataIndex: 'colonoscopy', - // width: 80, - // align: 'center', - // }, - { - title: '活检报告', - dataIndex: 'biopsy', - width: 80, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '编号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - optionsType: '3', - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'position_new', - getPopupContainer: () => document.body, - }), - }, - { - label: '工作类别', - field: 'empType', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'contract', - getPopupContainer: () => document.body, - }), - }, - { - label: '入职时间', - field: 'workTime', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - // { - // label: '体检形式', - // field: '', - // component: 'Input', - // }, - { - label: '体检医院', - field: 'hospitalName', - component: 'Input', - }, -]; diff --git a/src/views/information/physicalData/gastrointestinal/database/database.vue b/src/views/information/physicalData/gastrointestinal/database/database.vue deleted file mode 100644 index a75dc43..0000000 --- a/src/views/information/physicalData/gastrointestinal/database/database.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.api.ts b/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index e734797..0000000 --- a/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-medical-gi/data/giUserResult/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.vue b/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.vue deleted file mode 100644 index 2d10b4b..0000000 --- a/src/views/information/physicalData/gastrointestinal/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,11 +0,0 @@ - - diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/allYearAnalusis.vue b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/allYearAnalusis.vue deleted file mode 100644 index 7194125..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/allYearAnalusis.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/analusis.vue b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/analusis.vue deleted file mode 100644 index 4022156..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/analusis.vue +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/barChart.vue b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/barChart.vue deleted file mode 100644 index 215abc7..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/barChart.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/pieChart.vue b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/pieChart.vue deleted file mode 100644 index 1431a7e..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/components/pieChart.vue +++ /dev/null @@ -1,313 +0,0 @@ - - - diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index abc3612..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - //部门 - department = '/health-medical-gi/data/giUserResult/getSingleStat', - historyStat = '/health-medical-gi/data/giUserResult/getHisStat', - aloneAge = '/health-system/analysis/user/alone/age', - alonePolitical = '/health-system/analysis/user/alone/political', - aloneNation = '/health-system/analysis/user/alone/nation', - aloneJobLevel = '/health-system/analysis/user/alone/jobLevel', - aloneMarried = '/health-system/analysis/user/alone/married', - aloneIll = '/health-system/analysis/user/alone/ill', - //体检项 - getUniItemInfoList = '/health-medical-gi/data/giUserResult/getItemSelectList', -} - -export const departmentApi = (params) => defHttp.get({ url: Api.department, params }); -export const getUniItemInfoListApi = (params) => defHttp.get({ url: Api.getUniItemInfoList, params }); -export const historyStatApi = (params) => defHttp.get({ url: Api.historyStat, params }); -export const aloneAgeApi = (params) => defHttp.get({ url: Api.aloneAge, params }); -export const alonePoliticalApi = (params) => defHttp.get({ url: Api.alonePolitical, params }); -export const aloneNationApi = (params) => defHttp.get({ url: Api.aloneNation, params }); -export const aloneJobLevelApi = (params) => defHttp.get({ url: Api.aloneJobLevel, params }); -export const aloneMarriedApi = (params) => defHttp.get({ url: Api.aloneMarried, params }); -export const aloneIllApi = (params) => defHttp.get({ url: Api.aloneIll, params }); diff --git a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 4c5711a..0000000 --- a/src/views/information/physicalData/gastrointestinal/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/components/barChart.vue b/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/components/barChart.vue deleted file mode 100644 index 28e2ab1..0000000 --- a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/components/barChart.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.api.ts b/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.api.ts deleted file mode 100644 index 252b837..0000000 --- a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.api.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - synthesisAge = '/health-system/analysis/user/synthesis/age', - synthesisSex = '/health-system/analysis/user/synthesis/sex', - synthesisDepart = '/health-system/analysis/user/synthesis/depart', - synthesisJobLevel = '/health-system/analysis/user/synthesis/jobLevel', - getClassStat = '/health-medical/data/userResult/getClassStat', -} - -export const synthesisAgeApi = (params: any) => defHttp.get({ url: Api.synthesisAge, params }); -export const synthesisSexApi = (params: any) => defHttp.get({ url: Api.synthesisSex, params }); -export const synthesisDepartApi = (params: any) => defHttp.get({ url: Api.synthesisDepart, params }); -export const synthesisJobLevelApi = (params: any) => defHttp.get({ url: Api.synthesisJobLevel, params }); - -export const getClassStat = (params: any) => defHttp.get({ url: Api.getClassStat, params }); diff --git a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.vue b/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.vue deleted file mode 100644 index eeedc77..0000000 --- a/src/views/information/physicalData/routinePhysical/comprehensiveAnalysis/comprehensiveAnalysis.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/dataDictionary/dataDicitionary.api.ts b/src/views/information/physicalData/routinePhysical/dataDictionary/dataDicitionary.api.ts deleted file mode 100644 index e5dc58e..0000000 --- a/src/views/information/physicalData/routinePhysical/dataDictionary/dataDicitionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userInfoDict = '/health-medical/data/userResult/dict', -} - -export const userInfoDictApi = (params) => defHttp.get({ url: Api.userInfoDict, params }); diff --git a/src/views/information/physicalData/routinePhysical/dataDictionary/dataDictionary.vue b/src/views/information/physicalData/routinePhysical/dataDictionary/dataDictionary.vue deleted file mode 100644 index a07bbfc..0000000 --- a/src/views/information/physicalData/routinePhysical/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,162 +0,0 @@ - - diff --git a/src/views/information/physicalData/routinePhysical/database/database.api.ts b/src/views/information/physicalData/routinePhysical/database/database.api.ts deleted file mode 100644 index 9020375..0000000 --- a/src/views/information/physicalData/routinePhysical/database/database.api.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - userResultPage = '/health-medical/data/userResult/page', - userInfoEdit = '/health-system/user/info/edit', - userInfoExport = '/health-system/user/info/export', - userInfoStat = '/health-system/user/info/stat', -} -export const userResultPageApi = (params) => defHttp.get({ url: Api.userResultPage, params }); - -export const userInfoEditApi = (params) => defHttp.post({ url: Api.userInfoEdit, params }); -export const userInfoExportApi = Api.userInfoExport; -export const userInfoStatApi = (params: any) => defHttp.get({ url: Api.userInfoStat, params }); diff --git a/src/views/information/physicalData/routinePhysical/database/database.data.ts b/src/views/information/physicalData/routinePhysical/database/database.data.ts deleted file mode 100644 index aece301..0000000 --- a/src/views/information/physicalData/routinePhysical/database/database.data.ts +++ /dev/null @@ -1,429 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { useUserStore } from '/@/store/modules/user'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'unitName', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '职位', - dataIndex: 'empJob_dictText', - width: 80, - align: 'center', - }, - { - title: '工作类别', - dataIndex: 'empType_dictText', - width: 80, - align: 'center', - }, - { - title: '入职时间', - dataIndex: 'workTime', - width: 120, - align: 'center', - }, - { - title: '体检医院', - dataIndex: 'hospitalName', - width: 120, - align: 'center', - }, - { - title: '体检年份', - dataIndex: 'medicalYear', - width: 80, - align: 'center', - }, - { - title: '外科', - dataIndex: '', - align: 'center', - children: [ - { - title: '血压', - dataIndex: '', - align: 'center', - width: 100, - customRender: ({ record }) => { - const a = record.itemInfoList?.filter((item) => { - return ['1-2', '1-1'].includes(item?.showCode); - }); - const b = - a && - a.map((item) => { - return item?.peResult; - }); - return b && b.length ? b.join('-') : '-'; - }, - }, - { - title: 'BMI', - dataIndex: '', - align: 'center', - width: 80, - customRender: ({ record }) => { - const a = record.itemInfoList?.filter((item) => { - return ['1-3'].includes(item?.showCode); - }); - const b = - a && - a.map((item) => { - return item?.peResult; - }); - return b && b.length ? b.join('-') : '-'; - }, - }, - ], - }, - { - title: '化学检查', - dataIndex: '', - align: 'center', - children: [ - { - title: '总胆固醇', - dataIndex: 'cholesterol', - align: 'center', - width: 80, - }, - { - title: '甘油三脂', - dataIndex: 'triglyceride', - align: 'center', - width: 80, - }, - { - title: '低密度脂蛋白', - dataIndex: 'lipoprotein', - align: 'center', - width: 120, - }, - { - title: '尿酸', - dataIndex: 'uricAcid', - align: 'center', - width: 80, - }, - { - title: '空腹血糖', - dataIndex: 'bloodSugar', - align: 'center', - width: 80, - }, - { - title: '尿蛋白质', - dataIndex: 'urineProtein', - align: 'center', - width: 80, - }, - ], - }, - { - title: '物理检查', - dataIndex: '', - align: 'center', - children: [ - { - title: '颈部B超', - dataIndex: 'neck', - align: 'center', - width: 80, - }, - { - title: '心脏B超', - dataIndex: 'heart', - align: 'center', - width: 80, - }, - { - title: '甲状腺B超', - dataIndex: 'thyroid', - align: 'center', - width: 80, - }, - { - title: '腹部B超', - dataIndex: 'abdomen', - align: 'center', - width: 80, - }, - { - title: '前列腺B超', - dataIndex: 'prostate', - align: 'center', - ifShow: false, - width: 80, - }, - { - title: '膀胱B超', - dataIndex: 'bladder', - align: 'center', - width: 80, - ifShow: false, - }, - { - title: '子宫B超', - dataIndex: 'uterus', - align: 'center', - width: 80, - ifShow: false, - }, - { - title: '胸部CT', - dataIndex: 'chest', - align: 'center', - width: 80, - }, - ], - }, - { - title: '心电常规', - dataIndex: '', - align: 'center', - children: [ - { - title: '心电图', - dataIndex: 'electrocardiogram', - align: 'center', - width: 80, - }, - ], - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - show: ({ values }) => { - return values.showType !== '1'; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realname', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - optionsType: '3', - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '职位', - field: 'empJob', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'position_new', - getPopupContainer: () => document.body, - }), - }, - { - label: '工作类别', - field: 'empType', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'contract', - getPopupContainer: () => document.body, - }), - }, - { - label: '入职时间', - field: 'workTime', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - // { - // label: '体检形式', - // field: '', - // component: 'Input', - // }, - // { - // label: '体检医院', - // field: 'hospitalId', - // component: 'Input', - // }, -]; - -export const slotArr = [ - { - name: 'cholesterol', - code: '2-1', - }, - { - name: 'triglyceride', - code: '2-2', - }, - { - name: 'lipoprotein', - code: '2-3', - }, - { - name: 'uricAcid', - code: '2-4', - }, - { - name: 'bloodSugar', - code: '2-5', - }, - { - name: 'urineProtein', - code: '2-6', - }, - { - name: 'neck', - code: '3-1', - }, - { - name: 'heart', - code: '3-2', - }, - { - name: 'thyroid', - code: '3-3', - }, - { - name: 'abdomen', - code: '3-4', - }, - { - name: 'prostate', - code: '3-5', - }, - { - name: 'bladder', - code: '3-6', - }, - { - name: 'uterus', - code: '3-7', - }, - { - name: 'chest', - code: '3-8', - }, - { - name: 'electrocardiogram', - code: '4-1', - }, -]; diff --git a/src/views/information/physicalData/routinePhysical/database/database.vue b/src/views/information/physicalData/routinePhysical/database/database.vue deleted file mode 100644 index e6ad8f8..0000000 --- a/src/views/information/physicalData/routinePhysical/database/database.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/libraryStructure/components/physicalLibrary.vue b/src/views/information/physicalData/routinePhysical/libraryStructure/components/physicalLibrary.vue deleted file mode 100644 index 3cf4a68..0000000 --- a/src/views/information/physicalData/routinePhysical/libraryStructure/components/physicalLibrary.vue +++ /dev/null @@ -1,221 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.api.ts b/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 601bdd5..0000000 --- a/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - tableStructure = '/health-medical/data/userResult/tableStructure', -} - -export const tableStructureApi = (params) => defHttp.get({ url: Api.tableStructure, params }); diff --git a/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.vue b/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.vue deleted file mode 100644 index b3fa3aa..0000000 --- a/src/views/information/physicalData/routinePhysical/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/allYearAnalusis.vue b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/allYearAnalusis.vue deleted file mode 100644 index bc1cc00..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/allYearAnalusis.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/analusis.vue b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/analusis.vue deleted file mode 100644 index ea901b4..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/analusis.vue +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/barChart.vue b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/barChart.vue deleted file mode 100644 index 840f280..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/barChart.vue +++ /dev/null @@ -1,316 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/pieChart.vue b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/pieChart.vue deleted file mode 100644 index f380a66..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/components/pieChart.vue +++ /dev/null @@ -1,311 +0,0 @@ - - - diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index ed7f463..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - //部门 - department = '/health-medical/data/userResult/getSingleStat', - historyStat = '/health-medical/data/userResult/getHisStat', - aloneAge = '/health-system/analysis/user/alone/age', - alonePolitical = '/health-system/analysis/user/alone/political', - aloneNation = '/health-system/analysis/user/alone/nation', - aloneJobLevel = '/health-system/analysis/user/alone/jobLevel', - aloneMarried = '/health-system/analysis/user/alone/married', - aloneIll = '/health-system/analysis/user/alone/ill', - //体检项 - getUniItemInfoList = '/health-medical/data/userResult/getUniItemInfoList', -} - -export const departmentApi = (params) => defHttp.get({ url: Api.department, params }); -export const getUniItemInfoListApi = (params) => defHttp.get({ url: Api.getUniItemInfoList, params }); -export const historyStatApi = (params) => defHttp.get({ url: Api.historyStat, params }); -export const aloneAgeApi = (params) => defHttp.get({ url: Api.aloneAge, params }); -export const alonePoliticalApi = (params) => defHttp.get({ url: Api.alonePolitical, params }); -export const aloneNationApi = (params) => defHttp.get({ url: Api.aloneNation, params }); -export const aloneJobLevelApi = (params) => defHttp.get({ url: Api.aloneJobLevel, params }); -export const aloneMarriedApi = (params) => defHttp.get({ url: Api.aloneMarried, params }); -export const aloneIllApi = (params) => defHttp.get({ url: Api.aloneIll, params }); diff --git a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 6a61404..0000000 --- a/src/views/information/physicalData/routinePhysical/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,160 +0,0 @@ - - - diff --git a/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.api.ts b/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index e1eeb36..0000000 --- a/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - basalDict = '/health-intervene/data/basalMetabolism/dict', -} - -export const basalDictApi = (params) => defHttp.get({ url: Api.basalDict, params }); diff --git a/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.vue b/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.vue deleted file mode 100644 index a3e4121..0000000 --- a/src/views/information/sportData/metabolism/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,141 +0,0 @@ - - diff --git a/src/views/information/sportData/metabolism/database/database.api.ts b/src/views/information/sportData/metabolism/database/database.api.ts deleted file mode 100644 index df3a187..0000000 --- a/src/views/information/sportData/metabolism/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - basalPage = '/health-intervene/data/basalMetabolism/page', -} - -export const basalPageApi = (params) => defHttp.get({ url: Api.basalPage, params }); diff --git a/src/views/information/sportData/metabolism/database/database.data.ts b/src/views/information/sportData/metabolism/database/database.data.ts deleted file mode 100644 index f933bea..0000000 --- a/src/views/information/sportData/metabolism/database/database.data.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '身高(cm)', - dataIndex: 'height', - width: 120, - align: 'center', - }, - { - title: '体重(kg)', - dataIndex: 'weight', - width: 120, - align: 'center', - }, - { - title: 'BMI', - dataIndex: 'bmi', - width: 120, - align: 'center', - }, - { - title: '基础代谢(千卡)', - dataIndex: 'basalMetabolism', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; diff --git a/src/views/information/sportData/metabolism/database/database.vue b/src/views/information/sportData/metabolism/database/database.vue deleted file mode 100644 index 1da7469..0000000 --- a/src/views/information/sportData/metabolism/database/database.vue +++ /dev/null @@ -1,21 +0,0 @@ - - diff --git a/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.api.ts b/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index e9ba5a8..0000000 --- a/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - basalStructure = '/health-intervene/data/basalMetabolism/tableStructure', -} - -export const basalStructureApi = (params) => defHttp.get({ url: Api.basalStructure, params }); diff --git a/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.vue b/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.vue deleted file mode 100644 index afabeff..0000000 --- a/src/views/information/sportData/metabolism/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/sportData/wechat/dataDictionary/dataDictionary.api.ts b/src/views/information/sportData/wechat/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index fbab669..0000000 --- a/src/views/information/sportData/wechat/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - chatDict = '/health-intervene/data/exerciseWechat/dict', -} - -export const chatDictApi = (params) => defHttp.get({ url: Api.chatDict, params }); diff --git a/src/views/information/sportData/wechat/dataDictionary/dataDictionary.vue b/src/views/information/sportData/wechat/dataDictionary/dataDictionary.vue deleted file mode 100644 index 421583a..0000000 --- a/src/views/information/sportData/wechat/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,140 +0,0 @@ - - diff --git a/src/views/information/sportData/wechat/database/components/detail.vue b/src/views/information/sportData/wechat/database/components/detail.vue deleted file mode 100644 index a12464a..0000000 --- a/src/views/information/sportData/wechat/database/components/detail.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - diff --git a/src/views/information/sportData/wechat/database/database.api.ts b/src/views/information/sportData/wechat/database/database.api.ts deleted file mode 100644 index 764467c..0000000 --- a/src/views/information/sportData/wechat/database/database.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - chatPage = '/health-intervene/data/exerciseWechat/page', - chatDetail = '/health-intervene/data/exerciseWechat/detail', -} - -export const chatPageApi = (params) => defHttp.get({ url: Api.chatPage, params }); - -export const chatDetailApi = (params) => defHttp.get({ url: Api.chatDetail, params }); diff --git a/src/views/information/sportData/wechat/database/database.data.ts b/src/views/information/sportData/wechat/database/database.data.ts deleted file mode 100644 index b72a8be..0000000 --- a/src/views/information/sportData/wechat/database/database.data.ts +++ /dev/null @@ -1,198 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 120, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '最新运动数据', - align: 'center', - children: [ - { - title: '日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '步数', - dataIndex: 'stepValue', - width: 120, - align: 'center', - }, - { - title: '距离(米)', - dataIndex: 'distanceValue', - width: 120, - align: 'center', - }, - { - title: '消耗(千卡)', - dataIndex: 'calorieValue', - width: 120, - align: 'center', - }, - ], - }, - { - title: '运动记录', - dataIndex: 'sportDetail', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; - -export const detailColumn: BasicColumn[] = [ - { - title: '日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '步数', - dataIndex: 'stepValue', - width: 120, - align: 'center', - }, - { - title: '距离(米)', - dataIndex: 'distanceValue', - width: 120, - align: 'center', - }, - { - title: '消耗(千卡)', - dataIndex: 'calorieValue', - width: 120, - align: 'center', - }, -]; diff --git a/src/views/information/sportData/wechat/database/database.vue b/src/views/information/sportData/wechat/database/database.vue deleted file mode 100644 index 2c6b661..0000000 --- a/src/views/information/sportData/wechat/database/database.vue +++ /dev/null @@ -1,36 +0,0 @@ - - diff --git a/src/views/information/sportData/wechat/libraryStructure/libraryStructure.api.ts b/src/views/information/sportData/wechat/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index b497797..0000000 --- a/src/views/information/sportData/wechat/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - chatStructure = '/health-intervene/data/exerciseWechat/tableStructure', -} - -export const chatStructureApi = (params) => defHttp.get({ url: Api.chatStructure, params }); diff --git a/src/views/information/sportData/wechat/libraryStructure/libraryStructure.vue b/src/views/information/sportData/wechat/libraryStructure/libraryStructure.vue deleted file mode 100644 index b1a3f47..0000000 --- a/src/views/information/sportData/wechat/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/teamData/aedData/dataDictionary/dataDictionary.vue b/src/views/information/teamData/aedData/dataDictionary/dataDictionary.vue deleted file mode 100644 index dcff427..0000000 --- a/src/views/information/teamData/aedData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,205 +0,0 @@ - - diff --git a/src/views/information/teamData/aedData/database/database.data.ts b/src/views/information/teamData/aedData/database/database.data.ts deleted file mode 100644 index 6a12689..0000000 --- a/src/views/information/teamData/aedData/database/database.data.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '负责人姓名', - dataIndex: 'chargeFirst', - width: 80, - align: 'center', - }, - { - title: '负责人电话', - dataIndex: 'chargeFirstMobile', - width: 150, - align: 'center', - }, - { - title: '设备名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '设备型号', - dataIndex: 'hostModel', - width: 120, - align: 'center', - }, - { - title: '设备类型', - dataIndex: 'type_dictText', - width: 80, - align: 'center', - }, - { - title: '布放位置', - dataIndex: 'installAddress', - width: 200, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'departName', - width: 150, - align: 'center', - }, - { - title: '设备所属部门', - dataIndex: 'orgName', - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '负责人姓名', - field: 'chargeFirst', - component: 'Input', - }, - { - label: '负责人电话', - field: 'chargeFirstMobile', - component: 'Input', - }, - { - label: '设备名称', - field: 'name', - component: 'Input', - }, - { - field: 'hostModel', - label: '设备型号', - component: 'Input', - }, - { - label: '设备类型', - field: 'type', - component: 'JDictSelectTag', - componentProps: () => ({ - dictCode: 'intervene_aed_type', - getPopupContainer: () => document.body, - }), - }, - - { - label: '设备所属单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, -]; diff --git a/src/views/information/teamData/aedData/database/database.vue b/src/views/information/teamData/aedData/database/database.vue deleted file mode 100644 index 407bbef..0000000 --- a/src/views/information/teamData/aedData/database/database.vue +++ /dev/null @@ -1,76 +0,0 @@ - - diff --git a/src/views/information/teamData/aedData/libraryStructure/libraryStructure.vue b/src/views/information/teamData/aedData/libraryStructure/libraryStructure.vue deleted file mode 100644 index 617a9fc..0000000 --- a/src/views/information/teamData/aedData/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.api.ts b/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 9238a8e..0000000 --- a/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -enum Api { - emergencyDict = '/health-emergency/data/emergency/dict', -} - -export const emergencyDictApi = (params: any) => defHttp.get({ url: Api.emergencyDict, params }); diff --git a/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.vue b/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.vue deleted file mode 100644 index ed6df05..0000000 --- a/src/views/information/teamData/centerDoctor/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,136 +0,0 @@ - - diff --git a/src/views/information/teamData/centerDoctor/database/database.api.ts b/src/views/information/teamData/centerDoctor/database/database.api.ts deleted file mode 100644 index 5d161de..0000000 --- a/src/views/information/teamData/centerDoctor/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-emergency/emergency/profession/user/list', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); diff --git a/src/views/information/teamData/centerDoctor/database/database.data.ts b/src/views/information/teamData/centerDoctor/database/database.data.ts deleted file mode 100644 index 52c9ec7..0000000 --- a/src/views/information/teamData/centerDoctor/database/database.data.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allCenterApi } from '/@/views/emergency/scheduling/scheduling.api'; - -export function tableColumns(type: string) { - const column: BasicColumn[] = [ - { - title: '用户账号', - dataIndex: 'username', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realname', - width: 120, - align: 'center', - }, - { - title: '头像', - dataIndex: 'avatar', - width: 80, - align: 'center', - }, - { - title: '所属应急中心', - dataIndex: 'centerName', - width: 120, - align: 'center', - }, - { - title: '职称', - dataIndex: 'post_dictText', - width: 80, - align: 'center', - }, - { - title: '毕业院校', - dataIndex: 'school', - width: 80, - align: 'center', - }, - { - title: '学历', - dataIndex: 'edu_dictText', - width: 100, - align: 'center', - }, - { - title: '擅长症状', - dataIndex: 'goodAt', - width: 100, - align: 'center', - ifShow: type === '1', - }, - ]; - return column; -} - -export const searchFormSchema: FormSchema[] = [ - { - label: '姓名', - field: 'name', - component: 'Input', - }, - { - label: '所属应急中心', - field: 'centerId', - component: 'ApiSelect', - componentProps: { - //@ts-ignore - api: allCenterApi, - labelField: 'centerName', - valueField: 'id', - immediate: true, - resultField: 'records', - showSearch: true, - filterOption: (input: string, option: any): boolean => { - const str: string = input?.trim()?.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - getPopupContainer: () => document.body, - }, - }, -]; diff --git a/src/views/information/teamData/centerDoctor/database/database.vue b/src/views/information/teamData/centerDoctor/database/database.vue deleted file mode 100644 index 0797150..0000000 --- a/src/views/information/teamData/centerDoctor/database/database.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.api.ts b/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index 2acfd83..0000000 --- a/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -enum Api { - emergencyStru = '/health-emergency/data/emergency/tableStructure', -} - -export const emergencyStruApi = (params: any) => defHttp.get({ url: Api.emergencyStru, params }); diff --git a/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.vue b/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.vue deleted file mode 100644 index 34832fb..0000000 --- a/src/views/information/teamData/centerDoctor/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/src/views/information/teamData/driver/dataDictionary/dataDictionary.api.ts b/src/views/information/teamData/driver/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 0289f2a..0000000 --- a/src/views/information/teamData/driver/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - driverDict = '/medical-center/data/ambulance/driver/dict', -} - -export const driverDictApi = (params: any) => defHttp.get({ url: Api.driverDict, params }); diff --git a/src/views/information/teamData/driver/dataDictionary/dataDictionary.vue b/src/views/information/teamData/driver/dataDictionary/dataDictionary.vue deleted file mode 100644 index cccf055..0000000 --- a/src/views/information/teamData/driver/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,127 +0,0 @@ - - diff --git a/src/views/information/teamData/driver/database/database.api.ts b/src/views/information/teamData/driver/database/database.api.ts deleted file mode 100644 index 2319eff..0000000 --- a/src/views/information/teamData/driver/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - driverPage = '/medical-center/data/ambulance/driver/page', -} - -export const driverPageApi = (params: any) => defHttp.get({ url: Api.driverPage, params }); diff --git a/src/views/information/teamData/driver/database/database.data.ts b/src/views/information/teamData/driver/database/database.data.ts deleted file mode 100644 index eb8befe..0000000 --- a/src/views/information/teamData/driver/database/database.data.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { getApi } from '/@/utils/medicalUtils'; -import { medicalCenterList } from '/@/views/interveneNew/medicalPoints/managedCare/managedCare.api'; -import { message } from 'ant-design-vue'; - -export const tableColumns: BasicColumn[] = [ - { - title: '司机姓名', - dataIndex: 'driverName', - align: 'center', - width: 120, - }, - { - title: '司机电话', - dataIndex: 'phone', - align: 'center', - width: 120, - }, - { - title: '司机驾驶证', - dataIndex: 'driversLicensePhoto', - align: 'center', - width: 120, - }, - { - title: '司机资格证', - dataIndex: 'qualificationLicensePhoto', - width: 120, - align: 'center', - }, - { - title: '救护车车型', - dataIndex: 'model', - width: 120, - align: 'center', - }, - { - title: '救护车车牌号', - dataIndex: 'licensePlateNumber', - width: 120, - align: 'center', - }, - { - title: '救护车所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '救护车所属医疗点', - dataIndex: 'resourceName', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '司机姓名', - field: 'driverName', - component: 'Input', - }, - { - label: '司机电话', - field: 'phone', - component: 'Input', - }, - { - label: '救护车车型', - field: 'model', - component: 'Input', - }, - { - label: '救护车车牌号', - field: 'licensePlateNumber', - component: 'Input', - }, - { - label: '所属单位', - field: 'orgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getApi(), - resultField: 'list', - labelField: 'departName', - valueField: 'orgCode', - immediate: true, - showSearch: true, - disabledInitValue: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onChange: () => { - formModel.resourceId = ''; - }, - onDeselect: () => { - formModel.resourceId = ''; - }, - }; - }, - }, - { - label: '所属医疗点', - field: 'resourceId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: medicalCenterList, - params: { - departCode: formModel.orgCode || 'abc', - }, - resultField: 'list', - labelField: 'name', - valueField: 'id', - immediate: true, - showSearch: true, - getPopupContainer: () => document.body, - filterOption: (input: string, option: any): boolean => { - const str: string = input.toLowerCase(); - return option.label.toLowerCase().indexOf(str) >= 0; - }, - onFocus: () => { - if (!formModel.orgCode) { - return message.warning('请先选择单位'); - } - }, - }; - }, - }, -]; diff --git a/src/views/information/teamData/driver/database/database.vue b/src/views/information/teamData/driver/database/database.vue deleted file mode 100644 index 3dc8260..0000000 --- a/src/views/information/teamData/driver/database/database.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - diff --git a/src/views/information/teamData/driver/libraryStructure/libraryStructure.api.ts b/src/views/information/teamData/driver/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index de9b87b..0000000 --- a/src/views/information/teamData/driver/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - driverStru = '/medical-center/data/ambulance/driver/tableStructure', -} - -export const driverStruApi = () => defHttp.get({ url: Api.driverStru }); diff --git a/src/views/information/teamData/driver/libraryStructure/libraryStructure.vue b/src/views/information/teamData/driver/libraryStructure/libraryStructure.vue deleted file mode 100644 index c382bf0..0000000 --- a/src/views/information/teamData/driver/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/teamData/emergency/dataDictionary/dataDictionary.api.ts b/src/views/information/teamData/emergency/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index 46c6caa..0000000 --- a/src/views/information/teamData/emergency/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - kitDict = '/health-intervene/data/emergency-kit/dict', -} - -export const kitDictApi = (params: any) => defHttp.get({ url: Api.kitDict, params }); diff --git a/src/views/information/teamData/emergency/dataDictionary/dataDictionary.vue b/src/views/information/teamData/emergency/dataDictionary/dataDictionary.vue deleted file mode 100644 index cdfb343..0000000 --- a/src/views/information/teamData/emergency/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,123 +0,0 @@ - - diff --git a/src/views/information/teamData/emergency/database/database.api.ts b/src/views/information/teamData/emergency/database/database.api.ts deleted file mode 100644 index ce670b2..0000000 --- a/src/views/information/teamData/emergency/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - kitPage = '/health-intervene/data/emergency-kit/page', -} - -export const kitPageApi = (params: any) => defHttp.get({ url: Api.kitPage, params }); diff --git a/src/views/information/teamData/emergency/database/database.data.ts b/src/views/information/teamData/emergency/database/database.data.ts deleted file mode 100644 index 6ad612a..0000000 --- a/src/views/information/teamData/emergency/database/database.data.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '负责人姓名', - dataIndex: 'installManager', - align: 'center', - width: 120, - }, - { - title: '负责人电话', - dataIndex: 'installManagerPhone', - align: 'center', - width: 120, - }, - { - title: '急救包名称', - dataIndex: 'kitName', - align: 'center', - width: 120, - }, - { - title: '设备编号', - dataIndex: 'kitNo', - width: 120, - align: 'center', - }, - { - title: '布放位置', - dataIndex: 'address', - width: 200, - align: 'center', - }, - { - title: '设备所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '负责人姓名', - field: 'installManager', - component: 'Input', - }, - { - label: '负责人电话', - field: 'installManagerPhone', - component: 'Input', - }, - { - label: '设备名称', - field: 'kitName', - component: 'Input', - }, - { - label: '设备编号', - field: 'kitNo', - component: 'Input', - }, - { - label: '设备所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, -]; diff --git a/src/views/information/teamData/emergency/database/database.vue b/src/views/information/teamData/emergency/database/database.vue deleted file mode 100644 index 8e474be..0000000 --- a/src/views/information/teamData/emergency/database/database.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/src/views/information/teamData/emergency/libraryStructure/libraryStructure.api.ts b/src/views/information/teamData/emergency/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index a60c438..0000000 --- a/src/views/information/teamData/emergency/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - kitStru = '/health-intervene/data/emergency-kit/tableStructure', -} - -export const kitStruApi = () => defHttp.get({ url: Api.kitStru }); diff --git a/src/views/information/teamData/emergency/libraryStructure/libraryStructure.vue b/src/views/information/teamData/emergency/libraryStructure/libraryStructure.vue deleted file mode 100644 index bd83e7f..0000000 --- a/src/views/information/teamData/emergency/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/teamData/healthAdmin/dataDictionary/dataDictionary.vue b/src/views/information/teamData/healthAdmin/dataDictionary/dataDictionary.vue deleted file mode 100644 index 49b1279..0000000 --- a/src/views/information/teamData/healthAdmin/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,147 +0,0 @@ - - diff --git a/src/views/information/teamData/healthAdmin/database/database.api.ts b/src/views/information/teamData/healthAdmin/database/database.api.ts deleted file mode 100644 index 388ffb1..0000000 --- a/src/views/information/teamData/healthAdmin/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-system/data/depart/healthManage', -} - -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); diff --git a/src/views/information/teamData/healthAdmin/database/database.data.ts b/src/views/information/teamData/healthAdmin/database/database.data.ts deleted file mode 100644 index 373264f..0000000 --- a/src/views/information/teamData/healthAdmin/database/database.data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { allCenterApi } from '/@/views/emergency/scheduling/scheduling.api'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const tableColumns: BasicColumn[] = [ - { - title: '健康管理员姓名', - dataIndex: 'healthManageUserName', - align: 'center', - width: 120, - }, - { - title: '健康管理员电话', - dataIndex: 'healthManageUserMobile', - align: 'center', - width: 120, - }, - { - title: '健康管理员地址', - dataIndex: 'healthManageUserAddress', - align: 'center', - width: 120, - }, - { - title: '所属单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'thirdDepartName', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '所属单位', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '健康管理员姓名', - field: 'healthManageUserName', - component: 'Input', - }, - { - label: '健康管理员电话', - field: 'healthManageUserMobile', - component: 'Input', - }, -]; diff --git a/src/views/information/teamData/healthAdmin/database/database.vue b/src/views/information/teamData/healthAdmin/database/database.vue deleted file mode 100644 index 0032381..0000000 --- a/src/views/information/teamData/healthAdmin/database/database.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/src/views/information/teamData/healthAdmin/libraryStructure/libraryStructure.vue b/src/views/information/teamData/healthAdmin/libraryStructure/libraryStructure.vue deleted file mode 100644 index 6a17fdb..0000000 --- a/src/views/information/teamData/healthAdmin/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,9 +0,0 @@ - - diff --git a/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.api.ts b/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.api.ts deleted file mode 100644 index d09bd07..0000000 --- a/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - watchDict = '/health-watch/data/watch/dict', -} - -export const watchDictApi = (params) => defHttp.get({ url: Api.watchDict, params }); diff --git a/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.vue b/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.vue deleted file mode 100644 index 7cc6443..0000000 --- a/src/views/information/wearData/bloodOxygen/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,139 +0,0 @@ - - diff --git a/src/views/information/wearData/bloodOxygen/database/components/detailModal.vue b/src/views/information/wearData/bloodOxygen/database/components/detailModal.vue deleted file mode 100644 index b417cb1..0000000 --- a/src/views/information/wearData/bloodOxygen/database/components/detailModal.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/src/views/information/wearData/bloodOxygen/database/database.api.ts b/src/views/information/wearData/bloodOxygen/database/database.api.ts deleted file mode 100644 index 3235507..0000000 --- a/src/views/information/wearData/bloodOxygen/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - bloodOxygen = '/health-watch/data/watch/bloodOxygen/page', -} - -export const bloodOxygenApi = (params) => defHttp.get({ url: Api.bloodOxygen, params }); diff --git a/src/views/information/wearData/bloodOxygen/database/database.data.ts b/src/views/information/wearData/bloodOxygen/database/database.data.ts deleted file mode 100644 index fcf8f86..0000000 --- a/src/views/information/wearData/bloodOxygen/database/database.data.ts +++ /dev/null @@ -1,239 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import dayjs from 'dayjs'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -const columns1: BasicColumn[] = [ - ...columns, - { - title: '最新血氧数据(%)', - dataIndex: '', - align: 'center', - children: [ - { - title: '更新日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '最高血氧', - dataIndex: 'max', - width: 120, - align: 'center', - }, - { - title: '最低血氧', - dataIndex: 'min', - width: 120, - align: 'center', - }, - { - title: '平均血氧', - dataIndex: 'avg', - width: 120, - align: 'center', - }, - ], - }, - { - title: '血氧记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -const columns2: BasicColumn[] = [ - ...columns, - { - title: '异常值', - dataIndex: 'dataValue', - width: 80, - align: 'center', - }, - { - title: '异常时间', - dataIndex: 'warnTime', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 120, - align: 'center', - }, - { - title: '位置信息', - dataIndex: 'position', - width: 120, - align: 'center', - }, -]; -export const tableColumns = [columns1, columns2]; -export function searchFormSchema(type) { - return [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '异常值', - field: 'error', - component: 'Input', - show: type == 1, - }, - { - label: '异常时间', - field: 'errorTime', - component: 'RangePicker', - show: type == 1, - componentProps: ({ formModel }) => { - return { - 'onUpdate:value': (value) => { - if (value) { - formModel.startTime = dayjs(value[0]).format('YYYY-MM-DD'); - formModel.endTime = dayjs(value[1]).format('YYYY-MM-DD'); - } else { - formModel.startTime = null; - formModel.endTime = null; - } - }, - }; - }, - }, - { - label: '开始时间', - field: 'startTime', - component: 'Input', - show: false, - }, - { - label: '结束时间', - field: 'endTime', - component: 'Input', - show: false, - }, - ]; -} diff --git a/src/views/information/wearData/bloodOxygen/database/database.vue b/src/views/information/wearData/bloodOxygen/database/database.vue deleted file mode 100644 index c800067..0000000 --- a/src/views/information/wearData/bloodOxygen/database/database.vue +++ /dev/null @@ -1,66 +0,0 @@ - - diff --git a/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.api.ts b/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.api.ts deleted file mode 100644 index ee18755..0000000 --- a/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - watchStru = '/health-watch/data/watch/tableStructure', -} - -export const watchStruApi = (params) => defHttp.get({ url: Api.watchStru, params }); diff --git a/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.vue b/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.vue deleted file mode 100644 index e4b7495..0000000 --- a/src/views/information/wearData/bloodOxygen/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/bloodOxygen/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/bloodOxygen/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index f3aee3e..0000000 --- a/src/views/information/wearData/bloodOxygen/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/information/wearData/bodyTemperature/dataDictionary/dataDictionary.vue b/src/views/information/wearData/bodyTemperature/dataDictionary/dataDictionary.vue deleted file mode 100644 index ef894fe..0000000 --- a/src/views/information/wearData/bodyTemperature/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,151 +0,0 @@ - - diff --git a/src/views/information/wearData/bodyTemperature/database/components/detailModal.vue b/src/views/information/wearData/bodyTemperature/database/components/detailModal.vue deleted file mode 100644 index 9066f82..0000000 --- a/src/views/information/wearData/bodyTemperature/database/components/detailModal.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/src/views/information/wearData/bodyTemperature/database/database.api.ts b/src/views/information/wearData/bodyTemperature/database/database.api.ts deleted file mode 100644 index 0ad7549..0000000 --- a/src/views/information/wearData/bodyTemperature/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - temp = '/health-watch/data/watch/temp/page', -} - -export const tempApi = (params) => defHttp.get({ url: Api.temp, params }); diff --git a/src/views/information/wearData/bodyTemperature/database/database.data.ts b/src/views/information/wearData/bodyTemperature/database/database.data.ts deleted file mode 100644 index 1d67ea1..0000000 --- a/src/views/information/wearData/bodyTemperature/database/database.data.ts +++ /dev/null @@ -1,239 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import dayjs from 'dayjs'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -const columns1: BasicColumn[] = [ - ...columns, - { - title: '最新体温数据(℃)', - dataIndex: '', - align: 'center', - children: [ - { - title: '更新日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '最高温度', - dataIndex: 'max', - width: 120, - align: 'center', - }, - { - title: '最低温度', - dataIndex: 'min', - width: 120, - align: 'center', - }, - { - title: '平均温度', - dataIndex: 'avg', - width: 120, - align: 'center', - }, - ], - }, - { - title: '体温记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -const columns2: BasicColumn[] = [ - ...columns, - { - title: '异常值', - dataIndex: 'dataValue', - width: 80, - align: 'center', - }, - { - title: '异常时间', - dataIndex: 'warnTime', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 120, - align: 'center', - }, - { - title: '位置信息', - dataIndex: 'position', - width: 120, - align: 'center', - }, -]; -export const tableColumns = [columns1, columns2]; -export function searchFormSchema(type) { - return [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '异常值', - field: 'error', - component: 'Input', - show: type == 1, - }, - { - label: '异常时间', - field: 'errorTime', - component: 'RangePicker', - show: type == 1, - componentProps: ({ formModel }) => { - return { - 'onUpdate:value': (value) => { - if (value) { - formModel.startTime = dayjs(value[0]).format('YYYY-MM-DD'); - formModel.endTime = dayjs(value[1]).format('YYYY-MM-DD'); - } else { - formModel.startTime = null; - formModel.endTime = null; - } - }, - }; - }, - }, - { - label: '开始时间', - field: 'startTime', - component: 'Input', - show: false, - }, - { - label: '结束时间', - field: 'endTime', - component: 'Input', - show: false, - }, - ]; -} diff --git a/src/views/information/wearData/bodyTemperature/database/database.vue b/src/views/information/wearData/bodyTemperature/database/database.vue deleted file mode 100644 index b432e16..0000000 --- a/src/views/information/wearData/bodyTemperature/database/database.vue +++ /dev/null @@ -1,66 +0,0 @@ - - diff --git a/src/views/information/wearData/bodyTemperature/libraryStructure/libraryStructure.vue b/src/views/information/wearData/bodyTemperature/libraryStructure/libraryStructure.vue deleted file mode 100644 index 84fb947..0000000 --- a/src/views/information/wearData/bodyTemperature/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/bodyTemperature/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/bodyTemperature/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 5a5f0c1..0000000 --- a/src/views/information/wearData/bodyTemperature/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/information/wearData/components/pieCharts.vue b/src/views/information/wearData/components/pieCharts.vue deleted file mode 100644 index ac5dbe6..0000000 --- a/src/views/information/wearData/components/pieCharts.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - diff --git a/src/views/information/wearData/equipment/dataDictionary/dataDictionary.vue b/src/views/information/wearData/equipment/dataDictionary/dataDictionary.vue deleted file mode 100644 index a02cf79..0000000 --- a/src/views/information/wearData/equipment/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,171 +0,0 @@ - - diff --git a/src/views/information/wearData/equipment/database/components/addressModal.vue b/src/views/information/wearData/equipment/database/components/addressModal.vue deleted file mode 100644 index 8c517a6..0000000 --- a/src/views/information/wearData/equipment/database/components/addressModal.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - diff --git a/src/views/information/wearData/equipment/database/database.api.ts b/src/views/information/wearData/equipment/database/database.api.ts deleted file mode 100644 index f25cb68..0000000 --- a/src/views/information/wearData/equipment/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - device = '/health-watch/data/watch/device/page', -} - -export const deviceApi = (params) => defHttp.get({ url: Api.device, params }); diff --git a/src/views/information/wearData/equipment/database/database.data.ts b/src/views/information/wearData/equipment/database/database.data.ts deleted file mode 100644 index 5b602cf..0000000 --- a/src/views/information/wearData/equipment/database/database.data.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { h } from 'vue'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { useUserStore } from '/@/store/modules/user'; -const user = useUserStore(); -export const tableColumns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '绑定员工', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - - { - title: '员工所属部门', - dataIndex: 'orgName', - width: 80, - align: 'center', - }, - { - title: '绑定日期', - dataIndex: 'bindDate', - width: 80, - align: 'center', - }, - { - title: '工具编码', - dataIndex: 'watchNo', - width: 120, - align: 'center', - }, - { - title: '归属单位', - dataIndex: 'deviceDepartName', - width: 80, - align: 'center', - }, - { - title: '入库日期', - dataIndex: 'createDate', - width: 120, - align: 'center', - }, - { - title: '绑定状态', - dataIndex: 'watchStatus', - width: 120, - align: 'center', - customRender: ({ record }) => { - return record.watchStatus == '0' ? h('div', { style: { color: 'red' } }, '未绑定') : h('div', { style: { color: 'green' } }, '已绑定'); - }, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'watchNo', - label: '设备编码', - component: 'Input', - }, - { - field: 'realName', - label: '绑定用户', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - params: { - idOrCode: user?.userInfo?.orgCode?.substring(0, 6) || '12313', - }, - onChange: (e) => { - formModel.orgCode = e; - }, - getPopupContainer: () => document.body, - valueField: 'orgCode', - immediate: true, - }; - }, - }, - // { - // label: '归属单位', - // field: 'orgCode', - // component: 'JlazyTreeSelect', - // componentProps: () => { - // return { - // multiple: false, - // getPopupContainer: () => document.body, - // api: queryDepartTreeSync, - // loadApi: queryDepartTreeSync, - // afterApi: (data) => { - // data.forEach((item: any) => { - // item['preTitle'] = item.title; - // item['key'] = item['orgCode']; - // }); - // return data; - // }, - // preItem: (title, item) => { - // item['preTitle'] = title + '/' + item.title; - // item['key'] = item['orgCode']; - // return item; - // }, - // fieldNamesInfo: { - // value: 'orgCode', - // label: 'preTitle', - // key: 'orgCode', - // }, - // }; - // }, - // }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '绑定状态', - field: 'bindStatus', - component: 'Select', - componentProps: () => { - return { - getPopupContainer: () => document.body, - options: [ - { - label: '未绑定', - value: '0', - }, - { - label: '已绑定', - value: '1', - }, - ], - }; - }, - }, -]; diff --git a/src/views/information/wearData/equipment/database/database.vue b/src/views/information/wearData/equipment/database/database.vue deleted file mode 100644 index f8e68a1..0000000 --- a/src/views/information/wearData/equipment/database/database.vue +++ /dev/null @@ -1,34 +0,0 @@ - - diff --git a/src/views/information/wearData/equipment/libraryStructure/libraryStructure.vue b/src/views/information/wearData/equipment/libraryStructure/libraryStructure.vue deleted file mode 100644 index 1f170a0..0000000 --- a/src/views/information/wearData/equipment/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/equipment/oneWayAnalusis/components/pieCharts.vue b/src/views/information/wearData/equipment/oneWayAnalusis/components/pieCharts.vue deleted file mode 100644 index 2c7dc8b..0000000 --- a/src/views/information/wearData/equipment/oneWayAnalusis/components/pieCharts.vue +++ /dev/null @@ -1,234 +0,0 @@ - - - diff --git a/src/views/information/wearData/equipment/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/equipment/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 4f1ad4c..0000000 --- a/src/views/information/wearData/equipment/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/src/views/information/wearData/fall/dataDictionary/dataDictionary.vue b/src/views/information/wearData/fall/dataDictionary/dataDictionary.vue deleted file mode 100644 index 00dc168..0000000 --- a/src/views/information/wearData/fall/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,191 +0,0 @@ - - diff --git a/src/views/information/wearData/fall/database/components/addressModal.vue b/src/views/information/wearData/fall/database/components/addressModal.vue deleted file mode 100644 index 4722a3b..0000000 --- a/src/views/information/wearData/fall/database/components/addressModal.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - diff --git a/src/views/information/wearData/fall/database/database.api.ts b/src/views/information/wearData/fall/database/database.api.ts deleted file mode 100644 index f0ea57a..0000000 --- a/src/views/information/wearData/fall/database/database.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - fall = '/health-watch/data/watch/fall/page', - list = '/health-watch/watch/watchMonitorData/listCustom', -} - -export const fallApi = (params) => defHttp.get({ url: Api.fall, params }); - -export const list = (params) => defHttp.get({ url: Api.list, params }); diff --git a/src/views/information/wearData/fall/database/database.data.ts b/src/views/information/wearData/fall/database/database.data.ts deleted file mode 100644 index 85578cd..0000000 --- a/src/views/information/wearData/fall/database/database.data.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -export const tableColumns: BasicColumn[] = [ - ...columns, - { - title: '预警时间', - dataIndex: 'dataDate', - align: 'center', - width: 120, - }, - { - title: '详细地址', - dataIndex: 'address', - width: 220, - align: 'center', - }, - { - title: '位置信息', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; diff --git a/src/views/information/wearData/fall/database/database.vue b/src/views/information/wearData/fall/database/database.vue deleted file mode 100644 index 6bee99a..0000000 --- a/src/views/information/wearData/fall/database/database.vue +++ /dev/null @@ -1,38 +0,0 @@ - - diff --git a/src/views/information/wearData/fall/libraryStructure/libraryStructure.vue b/src/views/information/wearData/fall/libraryStructure/libraryStructure.vue deleted file mode 100644 index eac6a31..0000000 --- a/src/views/information/wearData/fall/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/fall/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/fall/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 237b915..0000000 --- a/src/views/information/wearData/fall/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/information/wearData/heartData/dataDictionary/dataDictionary.vue b/src/views/information/wearData/heartData/dataDictionary/dataDictionary.vue deleted file mode 100644 index a73b379..0000000 --- a/src/views/information/wearData/heartData/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,148 +0,0 @@ - - diff --git a/src/views/information/wearData/heartData/database/components/detailModal.vue b/src/views/information/wearData/heartData/database/components/detailModal.vue deleted file mode 100644 index 4e54b6e..0000000 --- a/src/views/information/wearData/heartData/database/components/detailModal.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - diff --git a/src/views/information/wearData/heartData/database/database.api.ts b/src/views/information/wearData/heartData/database/database.api.ts deleted file mode 100644 index 0bd7ac4..0000000 --- a/src/views/information/wearData/heartData/database/database.api.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - heartRate = '/health-watch/data/watch/heartRate/page', - errorPage = '/health-watch/data/watch/error/page', -} - -export const heartRateApi = (params) => defHttp.get({ url: Api.heartRate, params }); -export const errorPageApi = (params) => defHttp.get({ url: Api.errorPage, params }); diff --git a/src/views/information/wearData/heartData/database/database.data.ts b/src/views/information/wearData/heartData/database/database.data.ts deleted file mode 100644 index 2608005..0000000 --- a/src/views/information/wearData/heartData/database/database.data.ts +++ /dev/null @@ -1,239 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import dayjs from 'dayjs'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -const columns1: BasicColumn[] = [ - ...columns, - { - title: '最新心率数据(次/分钟)', - dataIndex: '', - align: 'center', - children: [ - { - title: '更新日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '最高心率', - dataIndex: 'max', - width: 120, - align: 'center', - }, - { - title: '最低心率', - dataIndex: 'min', - width: 120, - align: 'center', - }, - { - title: '平均心率', - dataIndex: 'avg', - width: 120, - align: 'center', - }, - ], - }, - { - title: '心率记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -const columns2: BasicColumn[] = [ - ...columns, - { - title: '异常值', - dataIndex: 'dataValue', - width: 80, - align: 'center', - }, - { - title: '异常时间', - dataIndex: 'warnTime', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 120, - align: 'center', - }, - { - title: '位置信息', - dataIndex: 'position', - width: 120, - align: 'center', - }, -]; -export const tableColumns = [columns1, columns2]; -export function searchFormSchema(type) { - return [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '异常值', - field: 'error', - component: 'Input', - show: type == 1, - }, - { - label: '异常时间', - field: 'errorTime', - component: 'RangePicker', - show: type == 1, - componentProps: ({ formModel }) => { - return { - 'onUpdate:value': (value) => { - if (value) { - formModel.startTime = dayjs(value[0]).format('YYYY-MM-DD'); - formModel.endTime = dayjs(value[1]).format('YYYY-MM-DD'); - } else { - formModel.startTime = null; - formModel.endTime = null; - } - }, - }; - }, - }, - { - label: '开始时间', - field: 'startTime', - component: 'Input', - show: false, - }, - { - label: '结束时间', - field: 'endTime', - component: 'Input', - show: false, - }, - ]; -} diff --git a/src/views/information/wearData/heartData/database/database.vue b/src/views/information/wearData/heartData/database/database.vue deleted file mode 100644 index 7bdc197..0000000 --- a/src/views/information/wearData/heartData/database/database.vue +++ /dev/null @@ -1,64 +0,0 @@ - - diff --git a/src/views/information/wearData/heartData/libraryStructure/libraryStructure.vue b/src/views/information/wearData/heartData/libraryStructure/libraryStructure.vue deleted file mode 100644 index a381468..0000000 --- a/src/views/information/wearData/heartData/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.api.ts b/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.api.ts deleted file mode 100644 index 812ca62..0000000 --- a/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.api.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - aloneDepart = '/health-watch/data/watch/alone/depart', - aloneSex = '/health-watch/data/watch/alone/sex', - aloneNation = '/health-watch/data/watch/alone/nation', - aloneAge = '/health-watch/data/watch/alone/age', - alonePolitical = '/health-watch/data/watch/alone/political', - aloneJobLevel = '/health-watch/data/watch/alone/jobLevel', - aloneMarried = '/health-watch/data/watch/alone/married', - aloneIll = '/health-watch/data/watch/alone/ill', -} - -export const aloneDepartApi = (params) => defHttp.post({ url: Api.aloneDepart, params }); -export const aloneSexApi = (params) => defHttp.post({ url: Api.aloneSex, params }); -export const aloneNationApi = (params) => defHttp.post({ url: Api.aloneNation, params }); -export const aloneAgeApi = (params) => defHttp.post({ url: Api.aloneAge, params }); -export const alonePoliticalApi = (params) => defHttp.post({ url: Api.alonePolitical, params }); -export const aloneJobLevelApi = (params) => defHttp.post({ url: Api.aloneJobLevel, params }); -export const aloneMarriedApi = (params) => defHttp.post({ url: Api.aloneMarried, params }); -export const aloneIllApi = (params) => defHttp.post({ url: Api.aloneIll, params }); diff --git a/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index cc813aa..0000000 --- a/src/views/information/wearData/heartData/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/information/wearData/motion/dataDictionary/dataDictionary.vue b/src/views/information/wearData/motion/dataDictionary/dataDictionary.vue deleted file mode 100644 index 1555299..0000000 --- a/src/views/information/wearData/motion/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,151 +0,0 @@ - - diff --git a/src/views/information/wearData/motion/database/components/detailModal.vue b/src/views/information/wearData/motion/database/components/detailModal.vue deleted file mode 100644 index 280e003..0000000 --- a/src/views/information/wearData/motion/database/components/detailModal.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - diff --git a/src/views/information/wearData/motion/database/database.api.ts b/src/views/information/wearData/motion/database/database.api.ts deleted file mode 100644 index 9c401bf..0000000 --- a/src/views/information/wearData/motion/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - exercise = '/health-watch/data/watch/exercise/page', -} - -export const exerciseApi = (params) => defHttp.get({ url: Api.exercise, params }); diff --git a/src/views/information/wearData/motion/database/database.data.ts b/src/views/information/wearData/motion/database/database.data.ts deleted file mode 100644 index cc5d5a2..0000000 --- a/src/views/information/wearData/motion/database/database.data.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -const columns1: BasicColumn[] = [ - ...columns, - { - title: '最新运动数据', - dataIndex: '', - align: 'center', - children: [ - { - title: '运动时间', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '锻炼类型', - dataIndex: 'workoutType_dictText', - width: 120, - align: 'center', - }, - { - title: '距离(米)', - dataIndex: 'distance', - width: 120, - align: 'center', - }, - { - title: '消耗(千卡)', - dataIndex: 'calorie', - width: 120, - align: 'center', - }, - { - title: '耗时(分)', - dataIndex: 'totalTime', - width: 120, - align: 'center', - customRender: ({ record }) => { - return (record.totalTime * 1) / 1000; - }, - }, - ], - }, - { - title: '运动记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -export const tableColumns = columns1; -export const searchFormSchema: FormSchema[] = [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; diff --git a/src/views/information/wearData/motion/database/database.vue b/src/views/information/wearData/motion/database/database.vue deleted file mode 100644 index ccdfdba..0000000 --- a/src/views/information/wearData/motion/database/database.vue +++ /dev/null @@ -1,34 +0,0 @@ - - diff --git a/src/views/information/wearData/motion/libraryStructure/libraryStructure.vue b/src/views/information/wearData/motion/libraryStructure/libraryStructure.vue deleted file mode 100644 index c923106..0000000 --- a/src/views/information/wearData/motion/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/pressure/dataDictionary/dataDictionary.vue b/src/views/information/wearData/pressure/dataDictionary/dataDictionary.vue deleted file mode 100644 index 77b096d..0000000 --- a/src/views/information/wearData/pressure/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,139 +0,0 @@ - - diff --git a/src/views/information/wearData/pressure/database/components/detailModal.vue b/src/views/information/wearData/pressure/database/components/detailModal.vue deleted file mode 100644 index 5680f0a..0000000 --- a/src/views/information/wearData/pressure/database/components/detailModal.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - diff --git a/src/views/information/wearData/pressure/database/database.api.ts b/src/views/information/wearData/pressure/database/database.api.ts deleted file mode 100644 index e09bcba..0000000 --- a/src/views/information/wearData/pressure/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - stress = '/health-watch/data/watch/stress/page', -} - -export const stressApi = (params) => defHttp.get({ url: Api.stress, params }); diff --git a/src/views/information/wearData/pressure/database/database.data.ts b/src/views/information/wearData/pressure/database/database.data.ts deleted file mode 100644 index 6e03c40..0000000 --- a/src/views/information/wearData/pressure/database/database.data.ts +++ /dev/null @@ -1,240 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { BODY_CONTAINER } from '/@/utils/domUtils'; -import dayjs from 'dayjs'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -const columns1: BasicColumn[] = [ - ...columns, - { - title: '最新压力数据', - dataIndex: '', - align: 'center', - children: [ - { - title: '更新日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '最高压力', - dataIndex: 'max', - width: 120, - align: 'center', - }, - { - title: '最低压力', - dataIndex: 'min', - width: 120, - align: 'center', - }, - { - title: '平均压力', - dataIndex: 'avg', - width: 120, - align: 'center', - }, - ], - }, - { - title: '压力记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -const columns2: BasicColumn[] = [ - ...columns, - { - title: '异常值', - dataIndex: 'dataValue', - width: 80, - align: 'center', - }, - { - title: '异常时间', - dataIndex: 'warnTime', - width: 120, - align: 'center', - }, - { - title: '详细地址', - dataIndex: 'address', - width: 120, - align: 'center', - }, - { - title: '位置信息', - dataIndex: 'position', - width: 120, - align: 'center', - }, -]; -export const tableColumns = [columns1, columns2]; -export function searchFormSchema(type) { - return [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '异常值', - field: 'error', - component: 'Input', - show: type == 1, - }, - { - label: '异常时间', - field: 'errorTime', - component: 'RangePicker', - show: type == 1, - componentProps: ({ formModel }) => { - return { - 'onUpdate:value': (value) => { - if (value) { - formModel.startTime = dayjs(value[0]).format('YYYY-MM-DD'); - formModel.endTime = dayjs(value[1]).format('YYYY-MM-DD'); - } else { - formModel.startTime = null; - formModel.endTime = null; - } - }, - }; - }, - }, - { - label: '开始时间', - field: 'startTime', - component: 'Input', - show: false, - }, - { - label: '结束时间', - field: 'endTime', - component: 'Input', - show: false, - }, - ]; -} diff --git a/src/views/information/wearData/pressure/database/database.vue b/src/views/information/wearData/pressure/database/database.vue deleted file mode 100644 index 7d75642..0000000 --- a/src/views/information/wearData/pressure/database/database.vue +++ /dev/null @@ -1,65 +0,0 @@ - - diff --git a/src/views/information/wearData/pressure/libraryStructure/libraryStructure.vue b/src/views/information/wearData/pressure/libraryStructure/libraryStructure.vue deleted file mode 100644 index c6f4471..0000000 --- a/src/views/information/wearData/pressure/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/information/wearData/pressure/oneWayAnalusis/oneWayAnalusis.vue b/src/views/information/wearData/pressure/oneWayAnalusis/oneWayAnalusis.vue deleted file mode 100644 index 11c237c..0000000 --- a/src/views/information/wearData/pressure/oneWayAnalusis/oneWayAnalusis.vue +++ /dev/null @@ -1,172 +0,0 @@ - - - diff --git a/src/views/information/wearData/sleep/dataDictionary/dataDictionary.vue b/src/views/information/wearData/sleep/dataDictionary/dataDictionary.vue deleted file mode 100644 index 9a18558..0000000 --- a/src/views/information/wearData/sleep/dataDictionary/dataDictionary.vue +++ /dev/null @@ -1,200 +0,0 @@ - - diff --git a/src/views/information/wearData/sleep/database/components/detailModal.vue b/src/views/information/wearData/sleep/database/components/detailModal.vue deleted file mode 100644 index 2e46cfe..0000000 --- a/src/views/information/wearData/sleep/database/components/detailModal.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - diff --git a/src/views/information/wearData/sleep/database/database.api.ts b/src/views/information/wearData/sleep/database/database.api.ts deleted file mode 100644 index d292706..0000000 --- a/src/views/information/wearData/sleep/database/database.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - sleep = '/health-watch/data/watch/sleep/page', -} - -export const sleepApi = (params) => defHttp.get({ url: Api.sleep, params }); diff --git a/src/views/information/wearData/sleep/database/database.data.ts b/src/views/information/wearData/sleep/database/database.data.ts deleted file mode 100644 index bdc4934..0000000 --- a/src/views/information/wearData/sleep/database/database.data.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -const columns: BasicColumn[] = [ - { - title: '员工编号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '单位', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, -]; -export const tableColumns: BasicColumn[] = [ - ...columns, - { - title: '最新睡眠数据', - dataIndex: '', - align: 'center', - children: [ - { - title: '更新日期', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '睡眠时长', - dataIndex: 'deepLightTimes', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (text) { - return getTime(text); - } else { - return '0分钟'; - } - }, - }, - { - title: '深睡时长', - dataIndex: 'deepSleepTimes', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (text) { - return getTime(text); - } else { - return '0分钟'; - } - }, - }, - { - title: '浅睡时长', - dataIndex: 'lightSleepTimes', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (text) { - return getTime(text); - } else { - return '0分钟'; - } - }, - }, - ], - }, - { - title: '睡眠记录', - dataIndex: 'heartRateRecord', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - field: 'workNo', - label: '员工编号', - component: 'Input', - }, - { - field: 'realName', - label: '姓名', - component: 'Input', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - getPopupContainer: () => document.body, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - field: 'sex', - label: '性别', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '年龄', - field: 'nianling', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - getPopupContainer: () => document.body, - onChange: (val) => { - const data = JSON.parse(val); - formModel.ageCondition = data.selectValue; - formModel.age = data.inputValue1; - if (data.selectValue == '<>') { - formModel.ageB = data.inputValue2; - } - }, - }; - }, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, -]; - -function getTime(time) { - if (time < 60) { - return `${time} 分钟`; - } - return `${(time - (time % 60)) / 60} 小时 ${time % 60} 分钟`; -} diff --git a/src/views/information/wearData/sleep/database/database.vue b/src/views/information/wearData/sleep/database/database.vue deleted file mode 100644 index a50614f..0000000 --- a/src/views/information/wearData/sleep/database/database.vue +++ /dev/null @@ -1,34 +0,0 @@ - - diff --git a/src/views/information/wearData/sleep/libraryStructure/libraryStructure.vue b/src/views/information/wearData/sleep/libraryStructure/libraryStructure.vue deleted file mode 100644 index aa0b829..0000000 --- a/src/views/information/wearData/sleep/libraryStructure/libraryStructure.vue +++ /dev/null @@ -1,13 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/components/allCheckModal.vue b/src/views/intervene24/meals/weight/components/allCheckModal.vue deleted file mode 100644 index e29a783..0000000 --- a/src/views/intervene24/meals/weight/components/allCheckModal.vue +++ /dev/null @@ -1,70 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/components/checkInModal.vue b/src/views/intervene24/meals/weight/components/checkInModal.vue deleted file mode 100644 index c4be314..0000000 --- a/src/views/intervene24/meals/weight/components/checkInModal.vue +++ /dev/null @@ -1,54 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/components/checkOutModal.vue b/src/views/intervene24/meals/weight/components/checkOutModal.vue deleted file mode 100644 index 2d171af..0000000 --- a/src/views/intervene24/meals/weight/components/checkOutModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/components/checkRecord.api.ts b/src/views/intervene24/meals/weight/components/checkRecord.api.ts deleted file mode 100644 index f8a297c..0000000 --- a/src/views/intervene24/meals/weight/components/checkRecord.api.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - todayStatistic = '/health-intervene/weightPlanInfo/todayStatistic', - mealSignPage = '/health-intervene/weightPlanInfo/mealSignPage', - playSignPage = '/health-intervene/weightPlanInfo/playSignPage', - weightSignPage = '/health-intervene/weightPlanInfo/weightSignPage', - notSigningUser = '/health-intervene/weightPlanInfo/notSigningUser', - singStatisticPage = '/health-intervene/weightPlanInfo/singStatisticPage', - //未打卡导出 - noSignExport = '/health-intervene/weightPlanInfo/notSigningUser/export', - //运动打卡导出 - playSignExport = '/health-intervene/weightPlanInfo/playSignPage/export', - //体重打卡导出 - weightSignExport = '/health-intervene/weightPlanInfo/weightSignPage/export', - //膳食打卡导出 - mealSignExport = '/health-intervene/weightPlanInfo/mealSignPage/export', - //累计打卡导出 - singStatExport = '/health-intervene/weightPlanInfo/singStatisticPage/export', -} - -export const todayStatisticApi = (params) => defHttp.get({ url: Api.todayStatistic, params }); -export const mealSignPageApi = (params) => defHttp.get({ url: Api.mealSignPage, params }); -export const playSignPageApi = (params) => defHttp.get({ url: Api.playSignPage, params }); -export const weightSignPageApi = (params) => defHttp.get({ url: Api.weightSignPage, params }); -export const notSigningUserApi = (params) => defHttp.get({ url: Api.notSigningUser, params }); -export const singStatisticPageApi = (params) => defHttp.get({ url: Api.singStatisticPage, params }); - -export const noSignExportApi = Api.noSignExport; -export const playSignExportApi = Api.playSignExport; -export const weightSignExportApi = Api.weightSignExport; -export const mealSignExportApi = Api.mealSignExport; -export const singStatExportApi = Api.singStatExport; diff --git a/src/views/intervene24/meals/weight/components/checkRecord.vue b/src/views/intervene24/meals/weight/components/checkRecord.vue deleted file mode 100644 index ffe4362..0000000 --- a/src/views/intervene24/meals/weight/components/checkRecord.vue +++ /dev/null @@ -1,299 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/components/getPlanInfoByList.data.ts b/src/views/intervene24/meals/weight/components/getPlanInfoByList.data.ts deleted file mode 100644 index 5b2b7f8..0000000 --- a/src/views/intervene24/meals/weight/components/getPlanInfoByList.data.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; -import { getThirdDepartsNew } from '/@/utils/system/api'; -import { useUserStore } from '/@/store/modules/user'; -const user = useUserStore(); - -export const columns: BasicColumn[] = [ - { - title: '计划名称', - dataIndex: 'interveneName', - align: 'center', - width: 200, - }, - { - title: '组织单位', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '起止时间', - dataIndex: 'startTime', - align: 'center', - width: 200, - customRender: ({ record }) => { - return record?.startTime && record?.endTime ? record.startTime + '~' + record.endTime : '-'; - }, - }, - { - title: '报名截止时间', - dataIndex: 'applyEndTime', - align: 'center', - width: 100, - }, - { - title: '活动状态', - dataIndex: 'state', - align: 'center', - width: 80, - customRender: ({ record }) => { - if (record.state == 0) { - return h('span', { style: { color: '#a1a1a1' } }, '待开始'); - } else if (record.state == 1) { - return h('span', { style: { color: '#fe8802' } }, '报名中'); - } else if (record.state == 2) { - return '报名结束待开始'; - } else if (record.state == 3) { - return h('span', { style: { color: '#12c925' } }, '进行中'); - } else if (record.state == 4) { - return '已结束'; - } - return '-'; - }, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '计划名称', - field: 'interveneName', - component: 'Input', - }, - { - label: '组织单位', - field: 'organizerDeptId', - component: 'ApiSelect', - componentProps: ({ formModel }) => { - return { - api: getThirdDepartsNew, - resultField: 'list', - labelField: 'departName', - params: { - idOrCode: user?.userInfo?.orgCode?.substring(0, 6) || '12313', - }, - onChange: (e) => { - formModel.orgCode = e; - }, - getPopupContainer: () => document.body, - valueField: 'orgCode', - immediate: true, - }; - }, - }, - { - label: '起止时间', - field: 'rangeDate', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '报名截止时间', - field: 'applyTime', - component: 'RangePicker', - componentProps: () => { - return { - showTime: false, - valueFormat: 'YYYY-MM-DD', - getPopupContainer: () => document.body, - }; - }, - }, - { - label: '活动状态', - field: 'state', - component: 'Select', - colProps: { span: 6 }, - componentProps: () => ({ - getPopupContainer: () => document.body, - options: [ - { label: '报名中', value: '1' }, - { label: '进行中', value: '3' }, - ], - }), - }, - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, -]; diff --git a/src/views/intervene24/meals/weight/components/getPlanInfoByList.vue b/src/views/intervene24/meals/weight/components/getPlanInfoByList.vue deleted file mode 100644 index 9da5ba2..0000000 --- a/src/views/intervene24/meals/weight/components/getPlanInfoByList.vue +++ /dev/null @@ -1,114 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/component/eatModal.vue b/src/views/intervene24/meals/weight/eventDeteil/daily/component/eatModal.vue deleted file mode 100644 index 08c0659..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/component/eatModal.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/component/motionModal.vue b/src/views/intervene24/meals/weight/eventDeteil/daily/component/motionModal.vue deleted file mode 100644 index 0854be3..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/component/motionModal.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/component/weightModal.vue b/src/views/intervene24/meals/weight/eventDeteil/daily/component/weightModal.vue deleted file mode 100644 index a7bcfb1..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/component/weightModal.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.api.ts b/src/views/intervene24/meals/weight/eventDeteil/daily/daily.api.ts deleted file mode 100644 index 9181ccd..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.api.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - dailyPage = '/health-intervene/weightPlanInfo/dailyDetailsPage', - //吃打卡 - eatRecord = '/health-intervene/weightPlanInfo/eatRecord', - //体重打卡 - weightRecord = '/health-system/api/userData/weightRecord', - //动打卡 - playDataDetail = '/health-intervene/app/healthMealsWeightManage/playDataDetail', - dailyExport = '/health-intervene/weightPlanInfo/dailyDetailsExport', - // 单位排行榜 - deptRank = '/health-intervene/weightPlanInfo/deptRank', - // 单位导出 - deptExport = '/health-intervene/weightPlanInfo/deptRank/export', -} - -export const dailyPageApi = (params) => defHttp.get({ url: Api.dailyPage, params }); -export const eatRecordApi = (params) => defHttp.get({ url: Api.eatRecord, params }); -export const weightRecordApi = (params) => defHttp.get({ url: Api.weightRecord, params }); -export const playDataDetailApi = (params) => defHttp.get({ url: Api.playDataDetail, params }); - -export const dailyExportApi = (params) => defHttp.get({ url: Api.dailyExport, params }); - -//单位排行榜 -export const deptRankApi = (params) => defHttp.get({ url: Api.deptRank, params }); -//单位导出 -export const deptExportApi = Api.deptExport; diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.data.ts b/src/views/intervene24/meals/weight/eventDeteil/daily/daily.data.ts deleted file mode 100644 index e7f938e..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.data.ts +++ /dev/null @@ -1,1087 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { h } from 'vue'; -import { getDictItems } from '/@/api/common/api'; -import { getDictItemsByCode } from '/@/utils/dict'; -import { render } from '/@/utils/common/renderUtils'; -import { ref } from 'vue/dist/vue'; - -export const columns: BasicColumn[] = [ - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '身份证号', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '初始体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightOld', - width: 80, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmiOld', - width: 80, - align: 'center', - }, - { - title: '初始体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatOld', - width: 80, - align: 'center', - }, - { - title: '初始腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistOld', - width: 80, - align: 'center', - }, - { - title: '目标体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - width: 80, - align: 'center', - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - width: 80, - align: 'center', - }, - { - title: '目标体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetFat', - width: 80, - align: 'center', - }, - { - title: '目标腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWaist', - width: 80, - align: 'center', - }, - { - title: '现体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightNow', - width: 80, - align: 'center', - }, - { - title: '现BMI', - dataIndex: 'bmiNow', - width: 80, - align: 'center', - }, - { - title: '现体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatNow', - width: 80, - align: 'center', - }, - { - title: '现腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistNow', - width: 80, - align: 'center', - }, - { - title: '体重变化', - dataIndex: 'weightChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.weightNow || 0) - (record.weightOld || 0)).toFixed(2)); - }, - }, - { - title: 'BMI变化', - dataIndex: 'BMIChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.bmiNow || 0) - (record.bmiOld || 0)).toFixed(2)); - }, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - width: 80, - align: 'center', - customRender: ({ record }) => {}, - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - width: 80, - align: 'center', - customRender: ({ record }) => {}, - }, - { - title: '日期', - dataIndex: 'date', - width: 120, - align: 'center', - }, - { - title: '饮食记录', - dataIndex: 'eatRecord', - width: 80, - align: 'center', - customRender: ({ record }) => { - if (record.eatRecord) { - return h('span', { style: { color: '#5087ec' } }, '是'); - } else { - return h('span', '否'); - } - }, - }, - { - title: '运动记录', - dataIndex: 'exerciseRecord', - width: 80, - align: 'center', - customRender: ({ record }) => { - if (record.exerciseRecord) { - return h('span', { style: { color: '#5087ec' } }, '是'); - } else { - return h('span', '否'); - } - }, - }, - { - title: '体重记录', - dataIndex: 'weightRecord', - width: 80, - align: 'center', - customRender: ({ record }) => { - if (record.weightRecord) { - return h('span', { style: { color: '#5087ec' } }, '是'); - } else { - return h('span', '否'); - } - }, - }, - // { - // title: '累计行动详情', - // dataIndex: 'allDetail', - // width: 120, - // align: 'center', - // }, -]; -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'userName', - component: 'Input', - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - // { - // label: '联系方式', - // field: 'mobile', - // component: 'Input', - // }, - { - label: '饮食记录', - field: 'eatRecord', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '是', value: 1 }, - { label: '否', value: 0 }, - ], - }; - }, - }, - { - label: '运动记录', - field: 'exerciseRecord', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '是', value: 1 }, - { label: '否', value: 0 }, - ], - }; - }, - }, - { - label: '体重记录', - field: 'weightRecord', - component: 'Select', - componentProps: () => { - return { - options: [ - { label: '是', value: 1 }, - { label: '否', value: 0 }, - ], - }; - }, - }, -]; - -export const searchFormSchema111: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'userName', - component: 'Input', - }, - // { - // label: '性别', - // field: 'sex', - // component: 'JDictSelectTag', - // componentProps: () => { - // return { - // dictCode: 'sex2', - // }; - // }, - // }, - // { - // label: '年龄', - // field: 'ages', - // component: 'JCascadeInput', - // componentProps: ({ formModel }) => { - // return { - // onChange: (params) => { - // const json = params ? JSON.parse(params) : {}; - // formModel.ageCondition = json?.selectValue; - // formModel.age = json?.inputValue1; - // formModel.ageB = json?.inputValue2; - // }, - // }; - // }, - // }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - // { - // label: '联系方式', - // field: 'mobile', - // component: 'Input', - // }, - // { - // label: '饮食记录', - // field: 'eatRecord', - // component: 'Select', - // componentProps: () => { - // return { - // options: [ - // { label: '是', value: 1 }, - // { label: '否', value: 0 }, - // ], - // }; - // }, - // }, - // { - // label: '运动记录', - // field: 'exerciseRecord', - // component: 'Select', - // componentProps: () => { - // return { - // options: [ - // { label: '是', value: 1 }, - // { label: '否', value: 0 }, - // ], - // }; - // }, - // }, - // { - // label: '体重记录', - // field: 'weightRecord', - // component: 'Select', - // componentProps: () => { - // return { - // options: [ - // { label: '是', value: 1 }, - // { label: '否', value: 0 }, - // ], - // }; - // }, - // }, -]; - -export function checkInColumns(type) { - const columns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所在部门', - dataIndex: 'thisDeptName', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '员工工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'phone', - width: 80, - align: 'center', - }, - { - title: '身高', - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '体重', - dataIndex: 'weight', - width: 80, - align: 'center', - }, - { - title: 'BMI', - dataIndex: 'bmi', - width: 80, - align: 'center', - }, - // { - // title: '累计行动天数', - // dataIndex: 'singDaySum', - // width: 80, - // align: 'center', - // }, - { - title: '行动餐次', - dataIndex: 'dinnerType', - width: 80, - align: 'center', - ifShow: type == '0', - }, - { - title: '总能量摄入(kcal)', - dataIndex: 'totalEnergy', - width: 120, - align: 'center', - ifShow: type == '0', - }, - { - title: '总能量消耗(kcal)', - dataIndex: 'totalEnergy', - width: 120, - align: 'center', - customRender: ({ record }) => { - return record.totalEnergy ? record.totalEnergy.toFixed(1) : 0; - }, - ifShow: type == '1', - }, - { - title: '体脂率(%)', - dataIndex: 'fatRate', - width: 80, - align: 'center', - ifShow: type == '2', - }, - { - title: '腰围(cm)', - dataIndex: 'waist', - width: 80, - align: 'center', - ifShow: type == '2', - }, - { - title: '最后记录时间', - dataIndex: 'latestSignTime', - width: 150, - align: 'center', - ifShow: type == '2', - }, - { - title: '数据来源', - dataIndex: 'dataSource', - width: 120, - align: 'center', - ifShow: type == '2', - customRender: ({ text }) => { - return render.renderDict(text, 'data_source_dict', false); - }, - }, - { - title: '数据来源', - dataIndex: 'dataSource', - width: 80, - align: 'center', - ifShow: type != '2', - }, - ]; - return columns; -} - -export const checkOutColumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所在部门', - dataIndex: 'thisDeptName', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '员工工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'phone', - width: 80, - align: 'center', - }, - { - title: '身高', - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '体重', - dataIndex: 'weight', - width: 80, - align: 'center', - }, - { - title: 'BMI', - dataIndex: 'bmi', - width: 80, - align: 'center', - }, -]; -export const allCheckcolumns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'orgName', - width: 120, - align: 'center', - }, - { - title: '所属部门', - dataIndex: 'departName', - width: 120, - align: 'center', - }, - { - title: '所在部门', - dataIndex: 'thisDeptName', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '员工工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'phone', - width: 100, - align: 'center', - }, - { - title: '身高', - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '体重', - dataIndex: 'weight', - width: 80, - align: 'center', - }, - { - title: 'BMI', - dataIndex: 'bmi', - width: 80, - align: 'center', - }, - { - title: '累计记录天数', - dataIndex: 'singDaySum', - width: 80, - align: 'center', - }, -]; - -export const eatColumns: BasicColumn[] = [ - { - title: '餐次', - dataIndex: 'dinnerType', - width: 80, - align: 'center', - }, - { - title: '摄入时间', - dataIndex: 'eatDay', - width: 120, - align: 'center', - }, - { - title: '总摄入(KCAL)', - dataIndex: 'energy', - width: 120, - align: 'center', - }, - { - title: '数据来源', - dataIndex: 'dataType', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (text == '1') { - return '智记'; - } else if (text == '2') { - return '自记'; - } else { - return '自记+智记'; - } - }, - }, -]; - -export const motionColumns: BasicColumn[] = [ - { - title: '运动类型', - dataIndex: 'name', - width: 80, - align: 'center', - }, - { - title: '运动时间', - dataIndex: 'time', - width: 120, - align: 'center', - }, - { - title: '运动数据', - dataIndex: 'duration', - width: 100, - align: 'center', - customRender: ({ record, text }) => { - if (record.name == '步行') { - return text + '步'; - } else { - return text + '分钟'; - } - }, - }, - { - title: '消耗(KCAL)', - dataIndex: 'data', - width: 80, - align: 'center', - // customRender: ({ text }) => { - // return text + 'g'; - // }, - }, - { - title: '数据来源', - dataIndex: 'source_dictText', - width: 80, - align: 'center', - }, -]; - -export const weightColumns: BasicColumn[] = [ - { - title: '记录时间', - dataIndex: 'dataDate', - width: 120, - align: 'center', - }, - { - title: '体重(kg)', - dataIndex: 'weightValue', - width: 80, - align: 'center', - }, - { - title: 'BMI', - dataIndex: 'bmiValue', - width: 80, - align: 'center', - }, - { - title: '腰围(cm)', - dataIndex: 'waist', - width: 80, - align: 'center', - }, - { - title: '体脂率(%)', - dataIndex: 'fatRatio', - width: 80, - align: 'center', - }, - { - title: '数据来源', - dataIndex: 'dataSource_dictText', - width: 80, - align: 'center', - }, -]; - -export const leftTabList = [ - { - title: '记录时间', - label: 'date', - unit: '', - }, - { - title: '单位', - label: 'secondDepart', - unit: '', - }, - { - title: '部门', - label: 'thirdDepart', - unit: '', - }, - { - title: '姓名', - label: 'realName', - unit: '', - }, - { - title: '工号', - label: 'workNo', - unit: '', - }, - { - title: '性别', - label: 'sex_dictText', - unit: '', - }, - { - title: '年龄', - label: 'age', - unit: '', - }, - { - title: '身高', - label: 'height', - unit: 'cm', - }, - { - title: '初始体重', - label: 'weightOld', - unit: 'kg', - }, - { - title: '初始BMI', - label: 'bmiOld', - unit: '', - }, - { - title: '初始体脂', - label: '', - unit: '%', - }, - { - title: '初始腰围', - label: '', - unit: 'cm', - }, - { - title: '目标体重', - label: 'targetWeight', - unit: 'kg', - }, - { - title: '目标BMI', - label: 'targetBmi', - unit: '', - }, - { - title: '目标体脂', - label: '', - unit: '%', - }, - { - title: '目标腰围', - label: '', - unit: 'cm', - }, - { - title: '现体重', - label: 'weightNow', - unit: 'kg', - }, - { - title: '现BMI', - label: 'bmiNow', - unit: '', - }, - { - title: '现体脂', - label: '', - unit: '%', - }, - { - title: '现腰围', - label: '', - unit: 'cm', - }, - { - title: '体重变化', - label: 'weightChange', - unit: 'kg', - }, - { - title: 'BMI变化', - label: 'BMIChange', - unit: '', - }, -]; diff --git a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.vue b/src/views/intervene24/meals/weight/eventDeteil/daily/daily.vue deleted file mode 100644 index 8591d26..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/daily/daily.vue +++ /dev/null @@ -1,302 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/detailed/component/weightModal.vue b/src/views/intervene24/meals/weight/eventDeteil/detailed/component/weightModal.vue deleted file mode 100644 index 4703c1b..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/detailed/component/weightModal.vue +++ /dev/null @@ -1,60 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.api.ts b/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.api.ts deleted file mode 100644 index 85861d8..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.api.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - weightReport = '/health-intervene/weightPlanInfo/weightReport', -} - -export const weightReportApi = (params) => defHttp.get({ url: Api.weightReport, params }); diff --git a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.data.ts b/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.data.ts deleted file mode 100644 index 5ee96e5..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.data.ts +++ /dev/null @@ -1,457 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const columns: BasicColumn[] = [ - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '身份证 ', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '日期', - dataIndex: 'date', - width: 120, - align: 'center', - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '初始体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightOld', - width: 80, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmiOld', - width: 80, - align: 'center', - }, - { - title: '初始体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatOld', - width: 80, - align: 'center', - }, - { - title: '初始腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistOld', - width: 80, - align: 'center', - }, - { - title: '目标体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - width: 80, - align: 'center', - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - width: 80, - align: 'center', - }, - { - title: '目标体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetFat', - width: 80, - align: 'center', - }, - { - title: '目标腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWaist', - width: 80, - align: 'center', - }, - { - title: '现体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightNow', - width: 80, - align: 'center', - }, - { - title: '现BMI', - dataIndex: 'bmiNow', - width: 80, - align: 'center', - }, - { - title: '现体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatNow', - width: 80, - align: 'center', - }, - { - title: '现腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistNow', - width: 80, - align: 'center', - }, - { - title: '体重变化', - dataIndex: 'weightChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.weightNow || 0) - (record.weightOld || 0)).toFixed(2)); - }, - }, - { - title: 'BMI变化', - dataIndex: 'BMIChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.bmiNow || 0) - (record.bmiOld || 0)).toFixed(2)); - }, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - width: 80, - align: 'center', - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - width: 80, - align: 'center', - }, - { - title: '饮食详情', - dataIndex: '', - width: 120, - align: 'center', - children: [ - { - title: '早餐摄入', - dataIndex: 'breakfast', - width: 80, - align: 'center', - }, - { - title: '午餐摄入', - dataIndex: 'lunch', - width: 80, - align: 'center', - }, - { - title: '晚餐摄入', - dataIndex: 'dinner', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 80, - align: 'center', - }, - ], - }, - { - title: '运动', - dataIndex: '', - width: 120, - align: 'center', - children: [ - { - title: '今日消耗', - dataIndex: 'expendToday', - width: 80, - align: 'center', - }, - ], - }, - { - title: '体重', - dataIndex: '', - width: 120, - align: 'center', - children: [ - { - title: '最新体重', - dataIndex: 'weightNow', - width: 80, - align: 'center', - }, - ], - }, - { - title: '体重报告', - dataIndex: 'report', - width: 120, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'userName', - component: 'Input', - }, - // { - // label: '性别', - // field: 'sex', - // component: 'JDictSelectTag', - // componentProps: () => { - // return { - // dictCode: 'sex2', - // }; - // }, - // }, - // { - // label: '年龄', - // field: 'ages', - // component: 'JCascadeInput', - // componentProps: ({ formModel }) => { - // return { - // onChange: (params) => { - // const json = params ? JSON.parse(params) : {}; - // formModel.ageCondition = json?.selectValue; - // formModel.age = json?.inputValue1; - // formModel.ageB = json?.inputValue2; - // }, - // }; - // }, - // }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - // { - // label: '联系方式', - // field: 'mobile', - // component: 'Input', - // }, -]; - -export const weightColumn: BasicColumn[] = [ - { - title: '日期', - dataIndex: 'date', - width: 120, - align: 'center', - }, - { - title: '体重(kg)', - dataIndex: 'weight', - width: 80, - align: 'center', - }, - { - title: '摄入(kcal)', - dataIndex: 'mealsEnergy', - width: 80, - align: 'center', - }, - { - title: '消耗(kcal)', - dataIndex: 'playEnergy', - width: 80, - align: 'center', - }, -]; diff --git a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.vue b/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.vue deleted file mode 100644 index b6bc1b1..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/detailed/detailed.vue +++ /dev/null @@ -1,265 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.api.ts b/src/views/intervene24/meals/weight/eventDeteil/overview/overview.api.ts deleted file mode 100644 index b7e2f10..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - overView = '/health-intervene/weightPlanInfo/planDetailPage', - planDetailExport = '/health-intervene/weightPlanInfo/planDetailExport', -} - -export const overViewApi = (params) => defHttp.get({ url: Api.overView, params }); - -export const planDetailExportApi = (params) => defHttp.get({ url: Api.planDetailExport, params }); diff --git a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.data.ts b/src/views/intervene24/meals/weight/eventDeteil/overview/overview.data.ts deleted file mode 100644 index bfc8a51..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.data.ts +++ /dev/null @@ -1,830 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { render } from '/@/utils/common/renderUtils'; - -export const columns: BasicColumn[] = [ - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '身份证 ', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '初始体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightOld', - width: 80, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmiOld', - width: 80, - align: 'center', - }, - { - title: '初始体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatOld', - width: 80, - align: 'center', - }, - { - title: '初始腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistOld', - width: 80, - align: 'center', - }, - { - title: '目标体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - width: 80, - align: 'center', - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - width: 80, - align: 'center', - }, - { - title: '目标体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetFat', - width: 80, - align: 'center', - }, - { - title: '目标腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWaist', - width: 80, - align: 'center', - }, - { - title: '现体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightNow', - width: 80, - align: 'center', - }, - { - title: '现BMI', - dataIndex: 'bmiNow', - width: 80, - align: 'center', - }, - { - title: '现体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatRateNew', - width: 80, - align: 'center', - }, - { - title: '现腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistNew', - width: 80, - align: 'center', - }, - { - title: '体重变化', - dataIndex: 'weightChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.weightNow || 0) - (record.weightOld || 0)).toFixed(2)); - }, - }, - { - title: 'BMI变化', - dataIndex: 'BMIChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.bmiNow || 0) - (record.bmiOld || 0)).toFixed(2)); - // return record.bmiNow - record.bmiOld; - }, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - width: 80, - align: 'center', - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - width: 80, - align: 'center', - }, - { - title: '饮食详情', - dataIndex: '', - width: 120, - align: 'center', - children: [ - { - title: '缺天', - dataIndex: 'lackDayDiet', - width: 80, - align: 'center', - }, - { - title: '缺餐', - dataIndex: 'lackDiet', - width: 80, - align: 'center', - }, - { - title: '日均热量\n(KCAL)', - dataIndex: 'kcalDayDiet', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 80, - align: 'center', - }, - { - title: '累计热量\n(KCAL)', - dataIndex: 'kcalTotalDiet', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 80, - align: 'center', - }, - // { - // title: '减分', - // dataIndex: 'loseScoreDiet', - // width: 80, - // align: 'center', - // }, - ], - }, - { - title: '运动详情', - dataIndex: '', - width: 120, - align: 'center', - children: [ - { - title: '缺天', - dataIndex: 'lackDayExercise', - width: 80, - align: 'center', - }, - { - title: '日均步数', - dataIndex: 'stepDay', - width: 80, - align: 'center', - }, - { - title: '日均消耗\n(KCAL)', - dataIndex: 'kcalDayExercise', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 80, - align: 'center', - }, - { - title: '累计消耗\n(KCAL)', - dataIndex: 'kcalTotalExercise', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 80, - align: 'center', - }, - // { - // title: '减分', - // dataIndex: 'loseScoreExercise', - // width: 80, - // align: 'center', - // }, - ], - }, - { - title: '赛况明细', - dataIndex: 'details', - width: 120, - align: 'center', - }, -]; -export const columnsDetail: BasicColumn[] = [ - { - title: '干预名称', - dataIndex: 'interveneName', - align: 'center', - width: 200, - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - align: 'center', - width: 80, - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex', - align: 'center', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 80, - }, - { - title: '工号', - dataIndex: 'workNo', - align: 'center', - width: 120, - }, - { - title: '所属单位', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '所属部门', - dataIndex: 'orgName', - align: 'center', - width: 120, - }, - { - title: '所在部门', - dataIndex: 'atDepartName', - align: 'center', - width: 120, - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - align: 'center', - width: 70, - }, - { - title: '初始\n体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weight', - align: 'center', - width: 70, - }, - { - title: '现体\n重(k\ng)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentWeight', - align: 'center', - width: 70, - }, - { - title: '目标\n体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - align: 'center', - width: 70, - }, - { - title: '已减\n体重', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'haveLostWeight', - align: 'center', - width: 70, - }, - { - title: '初始\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmi', - align: 'center', - width: 70, - }, - { - title: '现\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentBmi', - align: 'center', - width: 70, - }, - { - title: '目标\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetBmi', - align: 'center', - width: 70, - }, - { - title: 'BMI\n下降', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmiDown', - align: 'center', - width: 70, - }, - { - title: '初始\n体脂\n(%)', - dataIndex: 'fatOld', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '现体脂\n(%)', - dataIndex: 'fatNow', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '目标\n体脂\n(%)', - dataIndex: 'targetFat', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '体脂\n下降', - dataIndex: 'fatUpdate', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '初始\n腰围\n(cm)', - dataIndex: 'waistOld', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '现腰围\n(cm)', - dataIndex: 'waistNow', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '目标\n腰围\n(cm)', - dataIndex: 'targetWaist', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '腰围\n下降', - dataIndex: 'waistUpdate', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 70, - }, - { - title: '时间', - dataIndex: 'monitorDate', - align: 'center', - width: 100, - }, - { - title: `营养监控端摄入`, - align: 'center', - children: [ - { - title: '早餐', - dataIndex: 'breakfastCalorie', - align: 'center', - width: 70, - }, - { - title: '午餐', - dataIndex: 'lunchCalorie', - align: 'center', - width: 70, - }, - { - title: '晚餐', - dataIndex: 'dinnerCalorie', - align: 'center', - width: 70, - }, - ], - }, - { - title: '运动监控端消耗', - align: 'center', - children: [ - { - title: '基础消耗', - dataIndex: 'basicExpendCalorie', - align: 'center', - width: 100, - }, - { - title: '当天步数', - dataIndex: 'currentDaySteps', - align: 'center', - width: 100, - }, - { - title: '其他消耗', - dataIndex: 'otherExpendCalorie', - align: 'center', - width: 100, - }, - { - title: '当天消耗', - dataIndex: 'currentTotalExpend', - align: 'center', - width: 100, - }, - ], - }, - { - title: '摄入\n消耗\n差', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'calorieExpendNum', - align: 'center', - width: 70, - }, - { - title: '最新减\n重排名', - dataIndex: 'loseWeightRank', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 100, - }, -]; -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'userName', - component: 'Input', - }, - // { - // label: '性别', - // field: 'sex', - // component: 'JDictSelectTag', - // componentProps: () => { - // return { - // dictCode: 'sex2', - // }; - // }, - // }, - // { - // label: '年龄', - // field: 'ages', - // component: 'JCascadeInput', - // componentProps: ({ formModel }) => { - // return { - // onChange: (params) => { - // const json = params ? JSON.parse(params) : {}; - // formModel.ageCondition = json?.selectValue; - // formModel.age = json?.inputValue1; - // formModel.ageB = json?.inputValue2; - // }, - // }; - // }, - // }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - // { - // label: '联系方式', - // field: 'mobile', - // component: 'Input', - // }, -]; diff --git a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.vue b/src/views/intervene24/meals/weight/eventDeteil/overview/overview.vue deleted file mode 100644 index cb5abdc..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/overview/overview.vue +++ /dev/null @@ -1,456 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.api.ts b/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.api.ts deleted file mode 100644 index 251d3e8..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - planStatPage = '/health-intervene/weightPlanInfo/planStatPage', - planStatExport = '/health-intervene/weightPlanInfo/planStatExport', -} - -export const planStatPageApi = (params) => defHttp.get({ url: Api.planStatPage, params }); - -export const planStatExportApi = (params) => defHttp.get({ url: Api.planStatExport, params }); diff --git a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.data.ts b/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.data.ts deleted file mode 100644 index b74f0c8..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.data.ts +++ /dev/null @@ -1,241 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '参与人数', - dataIndex: 'attendUserCount', - width: 120, - align: 'center', - }, - { - title: '未参与人数', - dataIndex: 'noAttendUserCount', - width: 120, - align: 'center', - }, - { - title: '人均初始体重\n(kg)', - dataIndex: 'weightOld', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - width: 120, - align: 'center', - }, - { - title: '人均初始BMI', - dataIndex: 'bmiOld', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - }, - { - title: '人均现体重\n(kg)', - dataIndex: 'weightNow', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - width: 120, - align: 'center', - }, - { - title: '人均现BMI', - dataIndex: 'bmiNow', - width: 120, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - align: 'center', - }, - { - title: '人均减重量\n(kg)', - dataIndex: 'loseWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - width: 120, - align: 'center', - }, - { - title: '活动累计减重量\n(kg)', - dataIndex: 'loseWeightTotal', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (text == 0) return 0; - return text ? text.toFixed(2) : ''; - }, - width: 120, - align: 'center', - }, - { - title: '人均减重率', - dataIndex: 'loseWeightRatio', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text ? text.toFixed(2) + '%' : ''; - }, - }, - { - title: '人均BMI下降', - dataIndex: 'loseBmi', - width: 120, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - align: 'center', - }, - { - title: '人均每日摄入热量\n(千卡)', - dataIndex: 'kcalDay', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (text == 0) return 0; - return text ? text.toFixed(2) : ''; - }, - width: 150, - align: 'center', - }, - { - title: '累计摄入热量\n(千卡)', - dataIndex: 'kcalTotal', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (text == 0) return 0; - return text ? text.toFixed(2) : ''; - }, - width: 120, - align: 'center', - }, - { - title: '人均每日运动消耗热量\n(千卡)', - dataIndex: 'kcalExerciseDay', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - width: 180, - align: 'center', - }, - { - title: '累计运动消耗热量\n(千卡)', - dataIndex: 'kcalExerciseTotal', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - return text ? text.toFixed(2) : ''; - }, - width: 150, - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, -]; diff --git a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.vue b/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.vue deleted file mode 100644 index 5982255..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/statistics/statistics.vue +++ /dev/null @@ -1,229 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.data.ts b/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.data.ts deleted file mode 100644 index 9e54a8f..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.data.ts +++ /dev/null @@ -1,554 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export function columns(type) { - const col: BasicColumn[] = [ - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - ifShow: type, - }, - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '工号', - dataIndex: 'workNo', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '身份证 ', - dataIndex: 'idCard', - width: 180, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '初始体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightOld', - width: 80, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmiOld', - width: 80, - align: 'center', - }, - { - title: '初始体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatOld', - width: 80, - align: 'center', - }, - { - title: '初始腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistOld', - width: 80, - align: 'center', - }, - { - title: '目标体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - width: 80, - align: 'center', - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - width: 80, - align: 'center', - }, - { - title: '目标体脂\n(%)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetFat', - width: 80, - align: 'center', - }, - { - title: '目标腰围\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWaist', - width: 80, - align: 'center', - }, - { - title: `${type ? ' 现' : '最终'}体重\n(kg)`, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightNow', - width: 80, - align: 'center', - }, - { - title: `${type ? ' 现' : '最终'}BMI`, - dataIndex: 'bmiNow', - width: 80, - align: 'center', - }, - { - title: `${type ? ' 现' : '最终'}体脂\n(%)`, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'fatNow', - width: 80, - align: 'center', - }, - { - title: `${type ? ' 现' : '最终'}腰围\n(cm)`, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'waistNow', - width: 80, - align: 'center', - }, - { - title: '体重变化', - dataIndex: 'weightChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.weightNow || 0) - (record.weightOld || 0)).toFixed(2)); - }, - }, - { - title: 'BMI变化', - dataIndex: 'BMIChange', - width: 80, - align: 'center', - customRender: ({ record }) => { - return parseFloat(parseFloat((record.bmiNow || 0) - (record.bmiOld || 0)).toFixed(2)); - }, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - width: 80, - align: 'center', - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - width: 80, - align: 'center', - }, - { - title: '减重量排名', - dataIndex: 'loseWeightRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '减重率排名', - dataIndex: 'loseWeightRatioRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '综合分排名', - dataIndex: 'scoredRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '行动分排名', - dataIndex: 'actScoreRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '综合得分', - dataIndex: 'score', - width: 80, - align: 'center', - }, - { - title: '行动得分', - dataIndex: 'actScore', - width: 80, - align: 'center', - }, - // { - // title: '活动评分排名', - // dataIndex: 'scoredRank', - // width: 120, - // sorter: true, - // align: 'center', - // }, - // { - // title: '活动得分', - // dataIndex: 'score', - // width: 80, - // align: 'center', - // }, - ]; - return col; -} - -export const deptColumns: BasicColumn[] = [ - { - title: '干预计划', - dataIndex: 'planName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '单位(部门)', - dataIndex: 'orgName', - width: 200, - align: 'center', - fixed: 'left', - }, - { - title: '参与人数', - dataIndex: 'joinSum', - width: 120, - align: 'center', - }, - { - title: '人均减重量\n(kg)', - dataIndex: 'haveLostWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 150, - align: 'center', - }, - { - title: '人均减重率', - dataIndex: 'weightRate', - width: 150, - align: 'center', - }, - { - title: '人均综合得分', - dataIndex: 'weightLossScore', - width: 150, - align: 'center', - }, - { - title: '人均行动得分', - dataIndex: 'actScore', - width: 150, - align: 'center', - }, - { - title: '减重量排名', - dataIndex: 'haveLostWeightRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '减重率排名', - dataIndex: 'weightRateRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '综合分排名', - dataIndex: 'weightLossScoreRank', - width: 120, - sorter: true, - align: 'center', - }, - { - title: '行动分排名', - dataIndex: 'actScoreRank', - width: 120, - sorter: true, - align: 'center', - }, -]; -export const searchFormSchema: FormSchema[] = [ - { - label: '单位', - field: 'orgCode', - component: 'Input', - show: false, - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: ({ formModel }) => { - return { - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - multiple: false, - showFather: false, - scopeId: 'orgCode', - selectedKeys: [{ orgCode: formModel.orgCode }], - expandedKeys: [{ orgCode: formModel.orgCode }], - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - getPopupContainer: () => document.body, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'userName', - component: 'Input', - }, - // { - // label: '性别', - // field: 'sex', - // component: 'JDictSelectTag', - // componentProps: () => { - // return { - // dictCode: 'sex2', - // }; - // }, - // }, - // { - // label: '年龄', - // field: 'ages', - // component: 'JCascadeInput', - // componentProps: ({ formModel }) => { - // return { - // onChange: (params) => { - // const json = params ? JSON.parse(params) : {}; - // formModel.ageCondition = json?.selectValue; - // formModel.age = json?.inputValue1; - // formModel.ageB = json?.inputValue2; - // }, - // }; - // }, - // }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '身份证号', - field: 'idCard', - component: 'Input', - }, - // { - // label: '联系方式', - // field: 'mobile', - // component: 'Input', - // }, - { - label: '减重排名', - field: 'loseWeightRankSort', - component: 'Input', - show: false, - componentProps: () => { - return { - type: 'number', - min: 1, - }; - }, - }, - { - label: '减重率排名', - field: 'loseWeightRatioRankSort', - component: 'Input', - show: false, - componentProps: () => { - return { - type: 'number', - min: 1, - }; - }, - }, - { - label: '行动分排名', - field: 'actScoreRankSort', - component: 'Input', - show: false, - componentProps: () => { - return { - type: 'number', - min: 1, - }; - }, - }, - { - label: '评分排名', - field: 'scoredRankSort', - component: 'Input', - show: false, - componentProps: () => { - return { - type: 'number', - min: 1, - }; - }, - }, - // { - // label: '评分得分', - // field: 'score', - // component: 'Input', - // componentProps: () => { - // return { - // type: 'number', - // min: 1, - // }; - // }, - // }, -]; diff --git a/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.vue b/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.vue deleted file mode 100644 index 773c4e5..0000000 --- a/src/views/intervene24/meals/weight/eventDeteil/weightLoss/weightLoss.vue +++ /dev/null @@ -1,320 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/history/components/peopleModal.vue b/src/views/intervene24/meals/weight/history/components/peopleModal.vue deleted file mode 100644 index 9a3f122..0000000 --- a/src/views/intervene24/meals/weight/history/components/peopleModal.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/history/history.api.ts b/src/views/intervene24/meals/weight/history/history.api.ts deleted file mode 100644 index 4c82c05..0000000 --- a/src/views/intervene24/meals/weight/history/history.api.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-intervene/healthMealsWeightPlan/list', - listNew = '/health-intervene/healthMealsWeightPlan/historyList', - applyUserByPlanId = '/health-intervene/healthMealsWeightPlan/applyUserByPlanId', - historyExportXls = '/health-intervene/healthMealsWeightPlan/historyList/export', - historyStatistics = '/health-intervene/healthMealsWeightPlan/historyStatistics', - getPlanRule = '/health-intervene/healthMealsWeightPlan/getPlanRule', - historyViewList = '/health-intervene/healthMealsWeightPlan/historyViewList', - //总览导出 - historyViewExport = '/health-intervene/healthMealsWeightPlan/historyViewList/export', -} - -export const getPlanRuleApi = (params: any) => defHttp.get({ url: Api.getPlanRule, params }); -export const listApi = (params: any) => defHttp.get({ url: Api.list, params }); -export const listNewApi = (params: any) => defHttp.get({ url: Api.listNew, params }); -export const applyUserByPlanIdApi = (params: any) => defHttp.post({ url: Api.applyUserByPlanId, params }); -export const historyStatisticsApi = (params: any) => defHttp.post({ url: Api.historyStatistics, params }); - -export const historyExportXlsApi = (params: any) => defHttp.get({ url: Api.historyExportXls, params }); -export const historyViewExportApi = (params: any) => defHttp.get({ url: Api.historyViewExport, params }); - -export const historyViewListApi = (params: any) => defHttp.get({ url: Api.historyViewList, params }); diff --git a/src/views/intervene24/meals/weight/history/history.data.ts b/src/views/intervene24/meals/weight/history/history.data.ts deleted file mode 100644 index 3b7dc64..0000000 --- a/src/views/intervene24/meals/weight/history/history.data.ts +++ /dev/null @@ -1,507 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -export const columns: BasicColumn[] = [ - { - title: '干预名称', - dataIndex: 'interveneName', - align: 'center', - width: 200, - }, - { - title: '干预起止时间', - dataIndex: 'timeScope', - align: 'center', - width: 200, - }, - { - title: '人员范围', - dataIndex: 'people', - align: 'center', - width: 100, - }, - { - title: '应参加人数', - dataIndex: 'applyNum', - align: 'center', - width: 100, - }, - { - title: '实际参加人数', - dataIndex: 'joinNum', - align: 'center', - width: 100, - }, - { - title: '完成体重目标人数', - dataIndex: 'weightTargetNum', - align: 'center', - width: 130, - }, - { - title: '完成体脂目标人数', - dataIndex: 'fatTargetNum', - align: 'center', - width: 130, - }, - { - title: '完成腰围目标人数', - dataIndex: 'waistTargetNum', - align: 'center', - width: 130, - }, - { - title: '人均体重\n(kg)', - dataIndex: 'weightLossAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 100, - }, - { - title: '人均减重率\n(%)', - dataIndex: 'weightLossRateAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 100, - }, - { - title: '人均BMI降低', - dataIndex: 'bmiDownAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 100, - }, - { - title: '人均体脂降低\n(%)', - dataIndex: 'fatDownAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '人均腰围减少\n(cm)', - dataIndex: 'waistDownAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '人均每日摄入热量\n(kacl)', - dataIndex: 'eatAvg', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 130, - }, - { - title: '人均每日消耗热量\n(kcal)', - dataIndex: 'playAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 130, - }, - { - title: '人均每日热量缺口', - dataIndex: 'gapAvg', - align: 'center', - width: 130, - }, - { - title: '人均综合得分', - dataIndex: 'compScoreAvg', - align: 'center', - width: 120, - }, - { - title: '人均行动得分', - dataIndex: 'actScoreAvg', - align: 'center', - width: 120, - }, - { - title: '组织部门', - dataIndex: 'orgName', - align: 'center', - width: 100, - }, - { - title: '负责人', - dataIndex: 'managerName', - align: 'center', - width: 80, - }, -]; -export const peopleColumns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'departName', - align: 'center', - width: 200, - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'orgName', - align: 'center', - width: 200, - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 90, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - align: 'center', - width: 90, - }, - { - title: '身高', - dataIndex: 'height', - align: 'center', - width: 90, - }, - { - title: '体重', - dataIndex: 'weight', - align: 'center', - width: 90, - }, - { - title: 'BMI', - dataIndex: 'bmi', - align: 'center', - width: 90, - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '干预名称', - field: 'interveneName', - component: 'Input', - }, - { - label: '干预起止时间', - field: 'applyTime', - component: 'RangeDate', - componentProps: () => { - return { - getPopupContainer: () => document.body, - style: { - width: '100%', - }, - }; - }, - }, - // { - // label: '干预目标', - // field: 'bmiDowns', - // component: 'JCascadeInput', - // componentProps: ({ formModel }) => { - // return { - // prefix1: 'BMI下降', - // onChange: (params) => { - // const json = params ? JSON.parse(params) : {}; - // formModel.bmiDownCondition = json.selectValue; - // formModel.bmiTarget = json.inputValue1; - // formModel.bmiDownB = json.inputValue2; - // }, - // }; - // }, - // }, - // { - // label: '', - // field: 'bmiTarget', - // component: 'Input', - // show: false, - // }, - // { - // label: '', - // field: 'bmiDownCondition', - // component: 'Input', - // show: false, - // }, - // { - // label: '', - // field: 'bmiDownB', - // component: 'Input', - // show: false, - // }, - { - label: '人均减重(kg)', - field: 'weightLoss', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.haveLostWeightCondition = json.selectValue; - formModel.haveLostWeight = json.inputValue1; - formModel.haveLostWeightB = json.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'haveLostWeight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'haveLostWeightB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'haveLostWeightCondition', - component: 'Input', - show: false, - }, - // { - // label: '奖励人数', - // field: '', - // component: 'Input', - // }, - // { - // label: '组织部门', - // field: '', - // component: 'Input', - // }, - // { - // label: '负责人', - // field: '', - // component: 'Input', - // }, -]; -export const peopleSearchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '年龄', - field: 'ages', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.ageCondition = json?.selectValue; - formModel.age = json?.inputValue1; - formModel.ageB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '身高', - field: 'heights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.heightCondition = json?.selectValue; - formModel.height = json?.inputValue1; - formModel.heightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'height', - component: 'Input', - show: false, - }, - { - label: '', - field: 'heightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'heightB', - component: 'Input', - show: false, - }, - { - label: '体重', - field: 'weights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.weightCondition = json?.selectValue; - formModel.weight = json?.inputValue1; - formModel.weightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'weight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightB', - component: 'Input', - show: false, - }, - { - label: 'BMI', - field: 'bmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.bmiCondition = json?.selectValue; - formModel.bmi = json?.inputValue1; - formModel.bmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'bmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiB', - component: 'Input', - show: false, - }, -]; diff --git a/src/views/intervene24/meals/weight/history/historyList.vue b/src/views/intervene24/meals/weight/history/historyList.vue deleted file mode 100644 index d4525fc..0000000 --- a/src/views/intervene24/meals/weight/history/historyList.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - diff --git a/src/views/intervene24/meals/weight/historyDetail/component/tabPage1.vue b/src/views/intervene24/meals/weight/historyDetail/component/tabPage1.vue deleted file mode 100644 index 92ed82b..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/component/tabPage1.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/historyDetail/component/tabPage2.vue b/src/views/intervene24/meals/weight/historyDetail/component/tabPage2.vue deleted file mode 100644 index 77ed573..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/component/tabPage2.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/historyDetail/component/tabPage3.vue b/src/views/intervene24/meals/weight/historyDetail/component/tabPage3.vue deleted file mode 100644 index 7f184d9..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/component/tabPage3.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/historyDetail/component/tabPage4.vue b/src/views/intervene24/meals/weight/historyDetail/component/tabPage4.vue deleted file mode 100644 index b1ba626..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/component/tabPage4.vue +++ /dev/null @@ -1,58 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/historyDetail/histoeyDetail.data.ts b/src/views/intervene24/meals/weight/historyDetail/histoeyDetail.data.ts deleted file mode 100644 index ff13f3e..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/histoeyDetail.data.ts +++ /dev/null @@ -1,355 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const column4: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'orgName', - align: 'center', - width: 120, - }, - { - title: '部门', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '姓名', - dataIndex: 'realName', - align: 'center', - width: 100, - }, - { - title: '性别', - dataIndex: 'sex_dictText', - align: 'center', - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 80, - }, - { - title: '工号', - dataIndex: 'workNo', - align: 'center', - width: 80, - }, - { - title: '联系方式', - dataIndex: 'phone', - align: 'center', - width: 150, - }, - { - title: '身高\n(cm)', - dataIndex: 'height', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 80, - }, - { - title: '初始体重\n(kg)', - dataIndex: 'weight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '初始BMI', - dataIndex: 'bmi', - align: 'center', - width: 120, - }, - { - title: '初始体脂\n(%)', - dataIndex: 'fat', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '初始腰围\n(cm)', - dataIndex: 'waist', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标体重\n(kg)', - dataIndex: 'targetWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - align: 'center', - width: 120, - }, - { - title: '目标体脂\n(%)', - dataIndex: 'targetFat', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标腰围\n(cm)', - dataIndex: 'targetWaist', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '最终体重\n(kg)', - dataIndex: 'currentWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '最终BMI', - dataIndex: 'currentBmi', - align: 'center', - width: 120, - }, - { - title: '最终体脂\n(%)', - dataIndex: 'currentFat', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '最终腰围\n(cm)', - dataIndex: 'currentWaist', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '体重变化', - dataIndex: 'weightChange', - align: 'center', - width: 120, - }, - { - title: 'BMI变化', - dataIndex: 'bmiChange', - align: 'center', - width: 120, - }, - { - title: '体脂变化', - dataIndex: 'fatChange', - align: 'center', - width: 120, - }, - { - title: '腰围变化', - dataIndex: 'waistChange', - align: 'center', - width: 120, - }, - { - title: '吃记录天数', - dataIndex: 'eatSignCount', - align: 'center', - width: 120, - }, - { - title: '动记录天数', - dataIndex: 'playSignCount', - align: 'center', - width: 120, - }, - { - title: '体重记录天数', - dataIndex: 'weightSignCount', - align: 'center', - width: 120, - }, - { - title: '平均每日摄入\n热量(kcal)', - dataIndex: 'calorieAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '平均每日消耗\n热量(kcal)', - dataIndex: 'exerciseAvgCalories', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '平均每日热量\n缺口', - dataIndex: 'gapAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '减重量排名', - dataIndex: 'loseWeightRank', - align: 'center', - width: 120, - }, - { - title: '减重率排名', - dataIndex: 'weightRateRank', - align: 'center', - width: 120, - }, - { - title: '综合分排名', - dataIndex: 'weightLossScoreRank', - align: 'center', - width: 120, - }, - { - title: '行动分排名', - dataIndex: 'actScoreRank', - align: 'center', - width: 120, - }, - { - title: '综合得分', - dataIndex: 'weightLossScore', - align: 'center', - width: 120, - }, - { - title: '行动得分', - dataIndex: 'actScore', - align: 'center', - width: 120, - }, -]; - -export const schemas: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '员工姓名', - field: 'realName', - component: 'Input', - }, - { - label: '员工工号', - field: 'workNo', - component: 'Input', - }, -]; diff --git a/src/views/intervene24/meals/weight/historyDetail/historyDetail.vue b/src/views/intervene24/meals/weight/historyDetail/historyDetail.vue deleted file mode 100644 index a3888ca..0000000 --- a/src/views/intervene24/meals/weight/historyDetail/historyDetail.vue +++ /dev/null @@ -1,253 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/outsManage/components/outsModal.vue b/src/views/intervene24/meals/weight/outsManage/components/outsModal.vue deleted file mode 100644 index f8e62da..0000000 --- a/src/views/intervene24/meals/weight/outsManage/components/outsModal.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/outsManage/outs.api.ts b/src/views/intervene24/meals/weight/outsManage/outs.api.ts deleted file mode 100644 index 7197d9c..0000000 --- a/src/views/intervene24/meals/weight/outsManage/outs.api.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - list = '/health-intervene/healthMealsWeightMatchDetail/list', - detailList = '/health-intervene/healthMealsWeightMatchDetail/detailList', - exportXls = '/health-intervene/healthMealsWeightMatchDetail/exportXls', - exportDetailXls = '/health-intervene/healthMealsWeightMatchDetail/exportDetailXls', - getLackDayData = '/health-intervene/healthMealsWeightMatchDetail/getLackDayData', // 缺天 - getLackEatData = '/health-intervene/healthMealsWeightMatchDetail/getLackEatData', // 缺餐 - getWalkData = '/health-intervene/healthMealsWeightMatchDetail/getWalkData', // 步数 - getLackScoreData = '/health-intervene/healthMealsWeightMatchDetail/getLackScoreData', // 减分 - statistics = '/health-intervene/healthMealsWeightMatchDetail/statistics', // 赛况统计 - detailStatistics = '/health-intervene/healthMealsWeightMatchDetail/detailStatistics', // 赛况统计明细 -} - -export const listApi = (params: any) => defHttp.post({ url: Api.list, params }); -export const detailListApi = (params: any) => defHttp.post({ url: Api.detailList, params }); -export const getLackDayDataApi = (params: any) => defHttp.get({ url: Api.getLackDayData, params }); -export const getLackEatDataApi = (params: any) => defHttp.get({ url: Api.getLackEatData, params }); -export const getWalkDataApi = (params: any) => defHttp.get({ url: Api.getWalkData, params }); -export const getLackScoreDataApi = (params: any) => defHttp.get({ url: Api.getLackScoreData, params }); -export const statisticsApi = (params: any) => defHttp.post({ url: Api.statistics, params }); -export const detailStatisticsApi = (params: any) => defHttp.post({ url: Api.detailStatistics, params }); -export const exportXlsApi = Api.exportXls; -export const exportDetailXlsApi = Api.exportDetailXls; diff --git a/src/views/intervene24/meals/weight/outsManage/outs.data.ts b/src/views/intervene24/meals/weight/outsManage/outs.data.ts deleted file mode 100644 index 34eb086..0000000 --- a/src/views/intervene24/meals/weight/outsManage/outs.data.ts +++ /dev/null @@ -1,2253 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import dayjs from 'dayjs'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { render } from '/@/utils/common/renderUtils'; - -export const getColumns = (startTime, endTime) => { - const date: number = dayjs(dayjs(endTime)).diff(dayjs(startTime), 'day') + 1; - return [ - { - title: '干预名称', - dataIndex: 'interveneName', - align: 'center', - width: 200, - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - align: 'center', - width: 80, - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - align: 'center', - width: 120, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 80, - }, - { - title: '工号', - dataIndex: 'workNo', - align: 'center', - width: 120, - }, - { - title: '所属单位', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '所属部门', - dataIndex: 'orgName', - align: 'center', - width: 120, - }, - { - title: '所在部门', - dataIndex: 'atDepartName', - align: 'center', - width: 120, - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - align: 'center', - width: 70, - }, - { - title: '初始体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weight', - align: 'center', - width: 100, - }, - { - title: '初始BMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmi', - align: 'center', - width: 100, - }, - { - title: '初始体脂\n(%)', - dataIndex: 'fatOld', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '初始腰围\n(cm)', - dataIndex: 'waistOld', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '目标体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - align: 'center', - width: 100, - }, - { - title: '目标\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetBmi', - align: 'center', - width: 70, - }, - { - title: '目标体脂\n(%)', - dataIndex: 'targetFat', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '目标腰围\n(cm)', - dataIndex: 'targetWaist', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '现体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentWeight', - align: 'center', - width: 100, - }, - - { - title: '现BMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentBmi', - align: 'center', - width: 100, - }, - { - title: '现体脂\n(%)', - dataIndex: 'fatNow', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '现腰围\n(cm)', - dataIndex: 'waistNow', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: '体重变化', - dataIndex: 'weightUpload', - align: 'center', - width: 100, - }, - { - title: 'BMI变化', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmiUpload', - align: 'center', - width: 100, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - - { - title: '腰围变化', - dataIndex: 'waistUpdate', - align: 'center', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - width: 100, - }, - { - title: `营养监控端(应${date}天${date * 3}餐)`, - align: 'center', - children: [ - { - title: '缺天', - dataIndex: 'mealsDay', - align: 'center', - width: 70, - }, - { - title: '缺餐', - dataIndex: 'mealsEat', - align: 'center', - width: 70, - }, - { - title: '日均热\n量(KCAL)', - dataIndex: 'calorieAvg', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 70, - }, - { - title: '总热量\n(KCAL)', - dataIndex: 'calorieTotal', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 70, - }, - // { - // title: '减分', - // dataIndex: 'mealsIntegral', - // align: 'center', - // width: 70, - // }, - ], - }, - { - title: '运动监控端', - align: 'center', - children: [ - { - title: '缺天', - dataIndex: 'exerciseDay', - align: 'center', - width: 70, - }, - { - title: '日均步数', - dataIndex: 'exerciseAvgWalk', - align: 'center', - width: 100, - }, - { - title: '日均消耗\n(KCAL)', - dataIndex: 'exerciseAvgCalories', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 80, - }, - { - title: '总消耗\n(KCAL)', - dataIndex: 'exerciseTotalCalories', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 70, - }, - // { - // title: '减分', - // dataIndex: 'exerciseIntegral', - // align: 'center', - // width: 70, - // }, - ], - }, - - { - title: '减重\n量排\n名', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'loseWeightRank', - align: 'center', - width: 70, - }, - { - title: '减重\n率排\n名', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weightRateRank', - align: 'center', - width: 70, - }, - { - title: '科学\n减重\n排名', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'a', - align: 'center', - customRender: () => { - return '-'; - }, - width: 70, - }, - { - title: '系统自动评价', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'b', - align: 'center', - customRender: () => { - return '-'; - }, - width: 70, - }, - { - title: '赛况明细', - dataIndex: 'detail', - align: 'center', - width: 100, - }, - ] as BasicColumn[]; -}; -export const searchFormSchema: FormSchema[] = [ - { - label: '', - field: 'a', - component: 'Input', - slot: 'a', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '年龄', - field: 'ages', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.ageCondition = json?.selectValue; - formModel.age = json?.inputValue1; - formModel.ageB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '身高(cm)', - field: 'heights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.heightCondition = json?.selectValue; - formModel.height = json?.inputValue1; - formModel.heightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'heightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'height', - component: 'Input', - show: false, - }, - { - label: '', - field: 'heightB', - component: 'Input', - show: false, - }, - { - label: '原体重(kg)', - field: 'weights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.weightCondition = json?.selectValue; - formModel.weight = json?.inputValue1; - formModel.weightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'weightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightB', - component: 'Input', - show: false, - }, - { - label: '现体重(kg)', - field: 'currentWeights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentWeightCondition = json?.selectValue; - formModel.currentWeight = json?.inputValue1; - formModel.currentWeightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentWeightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentWeight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentWeightB', - component: 'Input', - show: false, - }, - { - label: '体重已减(kg)', - field: 'haveLostWeights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.haveLostWeightCondition = json?.selectValue; - formModel.haveLostWeight = json?.inputValue1; - formModel.haveLostWeightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'haveLostWeightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'haveLostWeight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'haveLostWeightB', - component: 'Input', - show: false, - }, - { - label: '原BMI', - field: 'bmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.bmiCondition = json?.selectValue; - formModel.bmi = json?.inputValue1; - formModel.bmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'bmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiB', - component: 'Input', - show: false, - }, - { - label: '现BMI', - field: 'currentBmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentBmiCondition = json?.selectValue; - formModel.currentBmi = json?.inputValue1; - formModel.currentBmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentBmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentBmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentBmiB', - component: 'Input', - show: false, - }, - { - label: 'BMI下降', - field: 'bmiDowns', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.bmiDownCondition = json?.selectValue; - formModel.bmiDown = json?.inputValue1; - formModel.bmiDownB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'bmiDownCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiDown', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiDownB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'b', - component: 'Input', - slot: 'b', - }, - { - label: '减重量排名', - field: 'loseWeightRanks', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.weightLossRankCondition = json?.selectValue; - formModel.loseWeightRank = json?.inputValue1; - formModel.weightLossRankB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'weightLossRankCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'loseWeightRank', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightLossRankB', - component: 'Input', - show: false, - }, - { - label: '减重率排名', - field: 'weightRateRanks', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.weightLossRateRankCondition = json?.selectValue; - formModel.weightRateRank = json?.inputValue1; - formModel.weightLossRateRankB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'weightLossRateRankCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightRateRank', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightLossRateRankB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'c', - component: 'Input', - slot: 'c', - }, - { - label: '缺天', - field: 'mealsDays', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.mealsDayCondition = json?.selectValue; - formModel.mealsDay = json?.inputValue1; - formModel.mealsDayB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'mealsDayCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsDay', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsDayB', - component: 'Input', - show: false, - }, - { - label: '缺餐', - field: 'mealsEats', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.mealsEatCondition = json?.selectValue; - formModel.mealsEat = json?.inputValue1; - formModel.mealsEatB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'mealsEatCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsEat', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsEatB', - component: 'Input', - show: false, - }, - { - label: '日均热量(KCAL)', - field: 'calorieAvgs', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.calorieAvgCondition = json?.selectValue; - formModel.calorieAvg = json?.inputValue1; - formModel.calorieAvgB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'calorieAvgCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieAvg', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieAvgB', - component: 'Input', - show: false, - }, - { - label: '总热量(KCAL)', - field: 'calorieTotals', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.calorieTotalCondition = json?.selectValue; - formModel.calorieTotal = json?.inputValue1; - formModel.calorieTotalB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'calorieTotalCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieTotal', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieTotalB', - component: 'Input', - show: false, - }, - { - label: '减分', - field: 'mealsIntegrals', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.mealsIntegralCondition = json?.selectValue; - formModel.mealsIntegral = json?.inputValue1; - formModel.mealsIntegralB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'mealsIntegralCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsIntegral', - component: 'Input', - show: false, - }, - { - label: '', - field: 'mealsIntegralB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'd', - component: 'Input', - slot: 'd', - }, - { - label: '缺天', - field: 'exerciseDays', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.exerciseDayCondition = json?.selectValue; - formModel.exerciseDay = json?.inputValue1; - formModel.exerciseDayB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'exerciseDayCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseDay', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseDayB', - component: 'Input', - show: false, - }, - { - label: '日均步数', - field: 'exerciseAvgWalks', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.exerciseAvgWalkCondition = json?.selectValue; - formModel.exerciseAvgWalk = json?.inputValue1; - formModel.exerciseAvgWalkB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'exerciseAvgWalkCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseAvgWalk', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseAvgWalkB', - component: 'Input', - show: false, - }, - { - label: '日均消耗(KCAL)', - field: 'exerciseAvgCaloriess', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.exerciseAvgCaloriesCondition = json?.selectValue; - formModel.exerciseAvgCalories = json?.inputValue1; - formModel.exerciseAvgCaloriesB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'exerciseAvgCaloriesCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseAvgCalories', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseAvgCaloriesB', - component: 'Input', - show: false, - }, - { - label: '总消耗(KCAL)', - field: 'exerciseTotalCaloriess', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.exerciseTotalCaloriesCondition = json?.selectValue; - formModel.exerciseTotalCalories = json?.inputValue1; - formModel.exerciseTotalCaloriesB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'exerciseTotalCaloriesCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseTotalCalories', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseTotalCaloriesB', - component: 'Input', - show: false, - }, - { - label: '减分', - field: 'exerciseIntegrals', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.exerciseIntegralCondition = json?.selectValue; - formModel.exerciseIntegral = json?.inputValue1; - formModel.exerciseIntegralB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'exerciseIntegralCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseIntegral', - component: 'Input', - show: false, - }, - { - label: '', - field: 'exerciseIntegralB', - component: 'Input', - show: false, - }, -]; - -export const detailSearchFormSchema: FormSchema[] = [ - { - label: '', - field: 'a', - component: 'Input', - slot: 'a', - }, - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, - { - label: '性别', - field: 'sex', - component: 'JDictSelectTag', - componentProps: () => { - return { - dictCode: 'sex2', - }; - }, - }, - { - label: '年龄', - field: 'ages', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.ageCondition = json?.selectValue; - formModel.age = json?.inputValue1; - formModel.ageB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'age', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'ageB', - component: 'Input', - show: false, - }, - { - label: '身高(cm)', - field: 'heights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.heightCondition = json?.selectValue; - formModel.height = json?.inputValue1; - formModel.heightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'heightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'height', - component: 'Input', - show: false, - }, - { - label: '', - field: 'heightB', - component: 'Input', - show: false, - }, - { - label: '原体重(kg)', - field: 'weights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.weightCondition = json?.selectValue; - formModel.weight = json?.inputValue1; - formModel.weightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'weightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'weightB', - component: 'Input', - show: false, - }, - { - label: '现体重(kg)', - field: 'currentWeights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentWeightCondition = json?.selectValue; - formModel.currentWeight = json?.inputValue1; - formModel.currentWeightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentWeightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentWeight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentWeightB', - component: 'Input', - show: false, - }, - { - label: '目标体重(kg)', - field: 'targetWeights', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.targetWeightCondition = json?.selectValue; - formModel.targetWeight = json?.inputValue1; - formModel.targetWeightB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'targetWeightCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'targetWeight', - component: 'Input', - show: false, - }, - { - label: '', - field: 'targetWeightB', - component: 'Input', - show: false, - }, - { - label: '原BMI', - field: 'bmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.bmiCondition = json?.selectValue; - formModel.bmi = json?.inputValue1; - formModel.bmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'bmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiB', - component: 'Input', - show: false, - }, - { - label: '现BMI', - field: 'currentBmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentBmiCondition = json?.selectValue; - formModel.currentBmi = json?.inputValue1; - formModel.currentBmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentBmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentBmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentBmiB', - component: 'Input', - show: false, - }, - { - label: '目标BMI', - field: 'targetBmis', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.targetBmiCondition = json?.selectValue; - formModel.targetBmi = json?.inputValue1; - formModel.targetBmiB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'targetBmiCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'targetBmi', - component: 'Input', - show: false, - }, - { - label: '', - field: 'targetBmiB', - component: 'Input', - show: false, - }, - { - label: 'BMI下降', - field: 'bmiDowns', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.bmiDownCondition = json?.selectValue; - formModel.bmiDown = json?.inputValue1; - formModel.bmiDownB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'bmiDownCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiDown', - component: 'Input', - show: false, - }, - { - label: '', - field: 'bmiDownB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'c', - component: 'Input', - slot: 'c', - }, - { - label: '早餐', - field: 'breakfastCalories', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.breakfastCalorieCondition = json?.selectValue; - formModel.breakfastCalorie = json?.inputValue1; - formModel.breakfastCalorieB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'breakfastCalorieCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'breakfastCalorie', - component: 'Input', - show: false, - }, - { - label: '', - field: 'breakfastCalorieB', - component: 'Input', - show: false, - }, - { - label: '午餐', - field: 'lunchCalories', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.lunchCalorieCondition = json?.selectValue; - formModel.lunchCalorie = json?.inputValue1; - formModel.lunchCalorieB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'lunchCalorieCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'lunchCalorie', - component: 'Input', - show: false, - }, - { - label: '', - field: 'lunchCalorieB', - component: 'Input', - show: false, - }, - { - label: '晚餐', - field: 'dinnerCalories', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.dinnerCalorieCondition = json?.selectValue; - formModel.dinnerCalorie = json?.inputValue1; - formModel.dinnerCalorieB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'dinnerCalorieCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'dinnerCalorie', - component: 'Input', - show: false, - }, - { - label: '', - field: 'dinnerCalorieB', - component: 'Input', - show: false, - }, - { - label: '', - field: 'd', - component: 'Input', - slot: 'd', - }, - { - label: '基础消耗', - field: 'basicExpendCalories', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.basicExpendCalorieCondition = json?.selectValue; - formModel.basicExpendCalorie = json?.inputValue1; - formModel.basicExpendCalorieB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'basicExpendCalorieCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'basicExpendCalorie', - component: 'Input', - show: false, - }, - { - label: '', - field: 'basicExpendCalorieB', - component: 'Input', - show: false, - }, - { - label: '当天步数', - field: 'currentDayStepss', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentDayStepsCondition = json?.selectValue; - formModel.currentDaySteps = json?.inputValue1; - formModel.currentDayStepsB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentDayStepsCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentDaySteps', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentDayStepsB', - component: 'Input', - show: false, - }, - { - label: '其他消耗', - field: 'otherExpendCalories', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.otherExpendCalorieCondition = json?.selectValue; - formModel.otherExpendCalorie = json?.inputValue1; - formModel.otherExpendCalorieB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'otherExpendCalorieCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'otherExpendCalorie', - component: 'Input', - show: false, - }, - { - label: '', - field: 'otherExpendCalorieB', - component: 'Input', - show: false, - }, - { - label: '当天消耗', - field: 'currentTotalExpends', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.currentTotalExpendCondition = json?.selectValue; - formModel.currentTotalExpend = json?.inputValue1; - formModel.currentTotalExpendB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'currentTotalExpendCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentTotalExpend', - component: 'Input', - show: false, - }, - { - label: '', - field: 'currentTotalExpendB', - component: 'Input', - show: false, - }, - { - label: '摄入消耗', - field: 'calorieExpendNums', - component: 'JCascadeInput', - componentProps: ({ formModel }) => { - return { - onChange: (params) => { - const json = params ? JSON.parse(params) : {}; - formModel.calorieExpendNumCondition = json?.selectValue; - formModel.calorieExpendNum = json?.inputValue1; - formModel.calorieExpendNumB = json?.inputValue2; - }, - }; - }, - }, - { - label: '', - field: 'calorieExpendNumCondition', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieExpendNum', - component: 'Input', - show: false, - }, - { - label: '', - field: 'calorieExpendNumB', - component: 'Input', - show: false, - }, -]; - -export const columnsDetail: BasicColumn[] = [ - { - title: '干预名称', - dataIndex: 'interveneName', - align: 'center', - width: 200, - fixed: 'left', - }, - { - title: '姓名', - dataIndex: 'realName', - align: 'center', - width: 80, - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex', - align: 'center', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 80, - }, - { - title: '工号', - dataIndex: 'workNo', - align: 'center', - width: 120, - }, - { - title: '所属单位', - dataIndex: 'departName', - align: 'center', - width: 120, - }, - { - title: '所属部门', - dataIndex: 'orgName', - align: 'center', - width: 120, - }, - { - title: '所在部门', - dataIndex: 'atDepartName', - align: 'center', - width: 120, - }, - { - title: '身高\n(cm)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'height', - align: 'center', - width: 70, - }, - { - title: '初始体重\n(kg)', - dataIndex: 'weight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '初始BMI', - dataIndex: 'bmi', - align: 'center', - width: 120, - }, - { - title: '初始体脂\n(%)', - dataIndex: 'fatOld', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '初始腰围\n(cm)', - dataIndex: 'waistOld', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标体重\n(kg)', - dataIndex: 'targetWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标BMI', - dataIndex: 'targetBmi', - align: 'center', - width: 120, - }, - { - title: '目标体脂\n(%)', - dataIndex: 'targetFat', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '目标腰围\n(cm)', - dataIndex: 'targetWaist', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '现体重\n(kg)', - dataIndex: 'currentWeight', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '现BMI', - dataIndex: 'currentBmi', - align: 'center', - width: 120, - }, - { - title: '现体脂\n(%)', - dataIndex: 'fatNow', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '现腰围\n(cm)', - dataIndex: 'waistNow', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 120, - }, - { - title: '体重变化', - dataIndex: 'weightUpload', - align: 'center', - width: 120, - }, - { - title: 'BMI变化', - dataIndex: 'bmiUpload', - align: 'center', - width: 120, - }, - { - title: '体脂变化', - dataIndex: 'fatUpdate', - align: 'center', - width: 120, - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - align: 'center', - width: 120, - }, - { - title: '原体\n重(k\ng)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'weight', - align: 'center', - width: 70, - }, - { - title: '现体\n重(k\ng)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentWeight', - align: 'center', - width: 70, - }, - { - title: '目标\n体重\n(kg)', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetWeight', - align: 'center', - width: 70, - }, - { - title: '已减\n体重', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'haveLostWeight', - align: 'center', - width: 70, - }, - { - title: '原\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmi', - align: 'center', - width: 70, - }, - { - title: '现\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'currentBmi', - align: 'center', - width: 70, - }, - { - title: '目标\nBMI', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'targetBmi', - align: 'center', - width: 70, - }, - { - title: 'BMI\n下降', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'bmiDown', - align: 'center', - width: 70, - }, - { - title: '时间', - dataIndex: 'monitorDate', - align: 'center', - width: 100, - }, - { - title: `营养监控端摄入`, - align: 'center', - children: [ - { - title: '早餐', - dataIndex: 'breakfastCalorie', - align: 'center', - width: 70, - }, - { - title: '午餐', - dataIndex: 'lunchCalorie', - align: 'center', - width: 70, - }, - { - title: '晚餐', - dataIndex: 'dinnerCalorie', - align: 'center', - width: 70, - }, - ], - }, - { - title: '运动监控端消耗', - align: 'center', - children: [ - { - title: '基础消耗', - dataIndex: 'basicExpendCalorie', - align: 'center', - width: 100, - }, - { - title: '当天步数', - dataIndex: 'currentDaySteps', - align: 'center', - width: 100, - }, - { - title: '其他消耗', - dataIndex: 'otherExpendCalorie', - align: 'center', - width: 100, - }, - { - title: '当天消耗', - dataIndex: 'currentTotalExpend', - align: 'center', - width: 100, - }, - ], - }, - { - title: '摄入\n消耗\n差', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - dataIndex: 'calorieExpendNum', - align: 'center', - width: 70, - }, - { - title: '最新减\n重排名', - dataIndex: 'loseWeightRank', - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - width: 100, - }, -]; - -export const getModalColumns = (type) => { - return [ - { - title: (type == 3 ? '减分' : '') + '日期', - dataIndex: 'monitorDate', - align: 'center', - }, - { - title: '餐次', - dataIndex: 'value', - align: 'center', - ifShow: ['1'].includes(type), - }, - { - title: '步数', - dataIndex: 'currentDaySteps', - align: 'center', - ifShow: ['2'].includes(type), - }, - { - title: '减分原因', - dataIndex: 'reason', - align: 'center', - ifShow: ['3'].includes(type), - }, - ] as BasicColumn[]; -}; diff --git a/src/views/intervene24/meals/weight/outsManage/outsList.vue b/src/views/intervene24/meals/weight/outsManage/outsList.vue deleted file mode 100644 index 3e2a9c3..0000000 --- a/src/views/intervene24/meals/weight/outsManage/outsList.vue +++ /dev/null @@ -1,597 +0,0 @@ - - - - diff --git a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/component/noTargetDetail.vue b/src/views/intervene24/meals/weight/personalGoal/noTargetSet/component/noTargetDetail.vue deleted file mode 100644 index cc34e03..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/component/noTargetDetail.vue +++ /dev/null @@ -1,198 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.api.ts b/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.api.ts deleted file mode 100644 index 823ee51..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - noSelfManagerUsers = '/health-system/sys/healthUserEmployeeEx/noSelfManagerUsers', - noSelfManagerUsersExport = '/health-system/sys/healthUserEmployeeEx/noSelfManagerUsersExport', -} - -export const noSelfManagerUsersApi = (params: any) => defHttp.get({ url: Api.noSelfManagerUsers, params }); - -export const noSelfManagerUsersExportApi = (params: any) => defHttp.get({ url: Api.noSelfManagerUsersExport, params }); diff --git a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.data.ts b/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.data.ts deleted file mode 100644 index 2c383ef..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.data.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - width: 80, - align: 'center', - }, - { - title: '工号', - dataIndex: 'workNo', - width: 120, - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '身高(cm)', - dataIndex: 'height', - width: 80, - align: 'center', - }, - { - title: '初始体重(kg)', - dataIndex: 'weight', - width: 80, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmi', - width: 80, - align: 'center', - }, - { - title: '初始体脂(%)', - dataIndex: 'fatRate', - width: 80, - align: 'center', - }, - { - title: '初始腰围(cm)', - dataIndex: 'waist', - width: 80, - align: 'center', - }, - { - title: '详细数据', - dataIndex: 'detail', - width: 120, - align: 'center', - fixed: 'right', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, -]; diff --git a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.vue b/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.vue deleted file mode 100644 index aef0910..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/noTargetSet/noTargetSet.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - diff --git a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/components/targetDetail.vue b/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/components/targetDetail.vue deleted file mode 100644 index 2545726..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/components/targetDetail.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.api.ts b/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.api.ts deleted file mode 100644 index 6991436..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.api.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - personagePage = '/health-intervene/app/healthMealsWeightSelfTarget/personagePage', - personageExport = '/health-intervene/app/healthMealsWeightSelfTarget/personageExport', - targetsSelete = '/health-intervene/app/healthMealsWeightSelfTarget/targets', - targetInfo = '/health-intervene/app/healthMealsWeightSelfTarget/targetInfo', - selfRecord = '/health-intervene/app/healthMealsWeightSelfTarget/selfRecord', - selfRecordExport = '/health-intervene/app/healthMealsWeightSelfTarget/selfRecordExport', -} - -export const personagePageApi = (params) => defHttp.get({ url: Api.personagePage, params }); - -export const personageExportApi = Api.personageExport; - -export const targetsSeleteApi = (params) => defHttp.get({ url: Api.targetsSelete, params }); -export const targetInfoApi = (params) => defHttp.get({ url: Api.targetInfo, params }); - -export const selfRecordApi = (params) => defHttp.get({ url: Api.selfRecord, params }); -export const selfRecordExportApi = (params) => defHttp.get({ url: Api.selfRecordExport, params }); diff --git a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.data.ts b/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.data.ts deleted file mode 100644 index b0f59e9..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.data.ts +++ /dev/null @@ -1,484 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { render } from '/@/utils/common/renderUtils'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -export const columns: BasicColumn[] = [ - { - title: '单位', - dataIndex: 'secondDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '部门', - dataIndex: 'thirdDepart', - width: 120, - align: 'center', - fixed: 'left', - }, - { - title: '所在部门', - dataIndex: 'depart', - width: 120, - align: 'center', - }, - { - title: '员工姓名', - dataIndex: 'realName', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '年龄', - dataIndex: 'age', - width: 80, - align: 'center', - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex', - width: 80, - align: 'center', - fixed: 'left', - customRender: ({ text }) => { - return render.renderDict(text, 'sex2'); - }, - }, - { - title: '工号', - dataIndex: 'workNo', - width: 120, - fixed: 'left', - align: 'center', - }, - { - title: '联系方式', - dataIndex: 'mobile', - width: 120, - align: 'center', - }, - { - title: '身高\n(cm)', - dataIndex: 'height', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '初始体重\n(kg)', - dataIndex: 'weightOld', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '初始BMI', - dataIndex: 'bmiOld', - width: 80, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '初始体脂\n(%)', - dataIndex: 'fatRateOld', - width: 80, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - }, - { - title: '初始腰围\n(cm)', - dataIndex: 'waistOld', - width: 80, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - }, - { - title: '目标体重\n(kg)', - dataIndex: 'weightTarget', - width: 80, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - align: 'center', - }, - { - title: '目标BMI', - dataIndex: 'bmiTarget', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '目标体脂\n(%)', - dataIndex: 'fatRateTarget', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '目标腰围\n(cm)', - dataIndex: 'waistTarget', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '现体重\n(kg)', - dataIndex: 'weightNow', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '现BMI', - dataIndex: 'bmiNow', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '现体脂\n(%)', - dataIndex: 'fatRateNow', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '现腰围\n(cm)', - dataIndex: 'waistNow', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - align: 'center', - }, - { - title: '体重变化', - dataIndex: 'weightUpdate', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: 'BMI变化', - dataIndex: 'bmiUpdate', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '腰围变化', - dataIndex: 'waistUpdate', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '体脂变化', - dataIndex: 'fatRateUpdate', - width: 80, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '目标起止日期', - dataIndex: 'startStopTimeStr', - width: 200, - align: 'center', - }, - { - title: '目标天数', - dataIndex: 'targetDays', - width: 120, - align: 'center', - }, - { - title: '详细数据', - dataIndex: 'detail', - width: 120, - align: 'center', - fixed: 'right', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '姓名', - field: 'realName', - component: 'Input', - }, - { - label: '工号', - field: 'workNo', - component: 'Input', - }, -]; - -export const detailColumns: BasicColumn[] = [ - { - title: '日期', - dataIndex: 'date', - width: 120, - align: 'center', - }, - { - title: '饮食记录', - dataIndex: 'diet', - width: 120, - align: 'center', - children: [ - { - title: '记录状态', - dataIndex: 'eatClockIn', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text == '1' ? '已记录' : '未记录'; - }, - }, - { - title: '总摄入(kcal)', - dataIndex: 'eatTotal', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - ], - }, - { - title: '运动记录', - dataIndex: 'sport', - width: 120, - align: 'center', - children: [ - { - title: '记录状态', - dataIndex: 'exerciseClockIn', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text == '1' ? '已记录' : '未记录'; - }, - }, - { - title: '总消耗(kcal)', - dataIndex: 'exerciseTotal', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - ], - }, - { - title: '体重记录', - dataIndex: 'weight', - width: 120, - align: 'center', - children: [ - { - title: '记录状态', - dataIndex: 'weightClockIn', - width: 120, - align: 'center', - customRender: ({ text }) => { - return text == '1' ? '已记录' : '未记录'; - }, - }, - { - title: '体重(kg)', - dataIndex: 'weight', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: 'BMI', - dataIndex: 'bmi', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '体脂率(%)', - dataIndex: 'fatRate', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - { - title: '腰围(cm)', - dataIndex: 'waist', - width: 120, - align: 'center', - customRender: ({ text }) => { - if (!text) return '--'; - return text; - }, - }, - ], - }, -]; diff --git a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.vue b/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.vue deleted file mode 100644 index 912a38e..0000000 --- a/src/views/intervene24/meals/weight/personalGoal/targetBeenSet/targetBeenSet.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/addDrawer.vue b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/addDrawer.vue deleted file mode 100644 index 762a517..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/addDrawer.vue +++ /dev/null @@ -1,64 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindModal.vue b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindModal.vue deleted file mode 100644 index 81c0b89..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindModal.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindUserModal.vue b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindUserModal.vue deleted file mode 100644 index a0acd1f..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/bindUserModal.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/uploadModal.vue b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/uploadModal.vue deleted file mode 100644 index b2eb7d8..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/components/uploadModal.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.api.ts b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.api.ts deleted file mode 100644 index f980976..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.api.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -import { useMessage } from '/@/hooks/web/useMessage'; -const { createConfirm } = useMessage(); -enum Api { - list = '/health-system/scalePersonal/list', - add = '/health-system/scalePersonal/add', - edit = '/health-system/scalePersonal/edit', - deleteBatch = '/health-system/scalePersonal/deleteBatch', - bindUser = '/health-system/scalePersonal/bindUser', - unbindUser = '/health-system/scalePersonal/unbindUser', - inboundImportExcel = '/health-system/scalePersonal/inboundImportExcel', - bindImportExcel = '/health-system/scalePersonal/bindImportExcel', -} - -export const listApi = (params) => defHttp.get({ url: Api.list, params }); - -export const addApi = (params) => defHttp.post({ url: Api.add, params }); -export const editApi = (params) => defHttp.post({ url: Api.edit, params }); - -export const batchDelete = (params, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认删除', - content: '是否删除选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp - .post( - { - url: Api.deleteBatch, - data: params, - }, - { joinParamsToUrl: true } - ) - .then(() => { - handleSuccess(); - }); - }, - }); -}; - -export const bindUserApi = (params) => defHttp.post({ url: Api.bindUser, params }); - -// export const unbindUserApi = (params) => defHttp.post({ url: Api.unbindUser, params }); -export const unbindUserApi = (params, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认解绑', - content: '是否解绑选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp - .post( - { - url: Api.unbindUser, - data: params, - }, - { joinParamsToUrl: true } - ) - .then(() => { - handleSuccess(); - }); - }, - }); -}; - -export const inboundImportExcelApi = Api.inboundImportExcel; -export const bindImportExcelApi = Api.bindImportExcel; diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.data.ts b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.data.ts deleted file mode 100644 index 60aeb0f..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.data.ts +++ /dev/null @@ -1,336 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { h } from 'vue'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; -import { message } from 'ant-design-vue'; - -export const columns: BasicColumn[] = [ - { - title: '所属单位', - dataIndex: 'secondDepart', - width: 100, - align: 'center', - }, - { - title: '设备名称', - dataIndex: 'name', - width: 120, - align: 'center', - }, - { - title: '设备型号', - dataIndex: 'model', - width: 80, - align: 'center', - }, - { - title: '设备编码', - dataIndex: 'code', - width: 150, - align: 'center', - }, - { - title: '绑定状态', - dataIndex: 'bindStatus', - width: 100, - align: 'center', - customRender: ({ text }) => { - if (text == 1) { - return h('div', { style: { backgroundColor: '#d5f5df', color: '#0fc749' } }, '已绑定'); - } - }, - }, - { - title: '绑定员工', - dataIndex: 'realName', - width: 100, - align: 'center', - }, - { - title: '员工编号', - dataIndex: 'workNo', - width: 100, - align: 'center', - }, - { - title: '员工所在部门', - dataIndex: 'userThirdDepart', - width: 100, - align: 'center', - }, - { - title: '绑定日期', - dataIndex: 'bindDate', - width: 150, - align: 'center', - }, - { - title: '入库日期', - dataIndex: 'storeDate', - width: 150, - align: 'center', - }, - { - title: '厂家信息', - dataIndex: 'millName', - width: 100, - align: 'center', - }, - { - title: '厂家电话', - dataIndex: 'millMobile', - width: 150, - align: 'center', - }, - { - title: '操作', - dataIndex: 'action', - width: 160, - fixed: 'right', - align: 'center', - }, -]; - -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '设备名称', - field: 'name', - component: 'Input', - }, - { - label: '设备型号', - field: 'model', - component: 'Input', - }, - { - label: '设备编码', - field: 'code', - component: 'Input', - }, - // { - // label: '入库日期', - // field: 'equipmentInDate', - // component: 'RangePicker', - // componentProps: () => { - // return { - // showTime: false, - // valueFormat: 'YYYY-MM-DD', - // getPopupContainer: () => document.body, - // }; - // }, - // }, - { - label: '绑定员工', - field: 'realName', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '绑定状态', - field: 'bindStatus', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'bind_status', - getPopupContainer: () => document.body, - }, - }, -]; - -export const formSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'orgCode', - component: 'JlazyTreeSelect', - required: true, - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '设备名称', - field: 'name', - component: 'Input', - required: true, - }, - { - label: '设备型号', - field: 'model', - component: 'Input', - required: true, - }, - { - label: '设备编码', - field: 'code', - component: 'Input', - required: true, - }, - // { - // label: 'SN编码', - // field: 'snCode', - // component: 'Input', - // required: true, - // }, - // { - // label: '绑定用户', - // field: 'bindUserId', - // component: 'Input', - // required: true, - // slot: 'bindUser', - // }, - // { - // label: '绑定日期', - // field: 'bindDate', - // component: 'DatePicker', - // componentProps: () => { - // return { - // valueFormat: 'YYYY-MM-DD', - // format: 'YYYY-MM-DD', - // style: { - // width: '100%', - // }, - // }; - // }, - // required: true, - // }, - { - label: '入库日期', - field: 'storeDate', - component: 'DatePicker', - componentProps: () => { - return { - valueFormat: 'YYYY-MM-DD', - format: 'YYYY-MM-DD', - style: { - width: '100%', - }, - }; - }, - required: true, - }, - { - label: '厂家信息', - field: 'millName', - component: 'Input', - required: true, - }, - { - label: '厂家电话', - field: 'millMobile', - component: 'Input', - required: true, - }, - { - label: '设备状态', - field: 'status', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'scale_height_status', - }, - required: true, - }, -]; - -export const bindFormSchema: FormSchema[] = [ - { - label: '工具编码', - field: 'code', - required: true, - component: 'Input', - componentProps: () => { - return { - disabled: true, - }; - }, - }, - { - label: '绑定用户id', - field: 'bindUserId', - component: 'Input', - show: false, - }, - { - label: '绑定用户', - field: 'bindRealName', - slot: 'bindUser', - component: 'Input', - required: true, - }, - { - label: 'id', - field: 'id', - component: 'Input', - show: false, - }, - // { - // label: '绑定日期', - // field: 'bindDate', - // component: 'DatePicker', - // componentProps: ({ formModel }) => { - // return { - // valueFormat: 'YYYY-MM-DD', - // getPopupContainer: () => document.body, - // onFocus: () => { - // if (!formModel?.bindRealName) { - // return message.warn('请先绑定用户!'); - // } - // }, - // }; - // }, - // required: true, - // }, -]; diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.vue b/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.vue deleted file mode 100644 index 051a3e6..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentManagement/equipmentManagement.vue +++ /dev/null @@ -1,134 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/detailModal.vue b/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/detailModal.vue deleted file mode 100644 index 5fc9a91..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/detailModal.vue +++ /dev/null @@ -1,246 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/lineCharts.vue b/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/lineCharts.vue deleted file mode 100644 index 8f282c0..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/components/lineCharts.vue +++ /dev/null @@ -1,68 +0,0 @@ - - diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.api.ts b/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.api.ts deleted file mode 100644 index ebfb9f4..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.api.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; - -enum Api { - page = '/health-system/remote/data/two/page', - record = '/health-system/remote/data/two/record', -} - -export const pageApi = (params) => defHttp.get({ url: Api.page, params }); - -export const recordApi = (params) => defHttp.get({ url: Api.record, params }); diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.data.ts b/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.data.ts deleted file mode 100644 index ec4b905..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.data.ts +++ /dev/null @@ -1,422 +0,0 @@ -import { BasicColumn, FormSchema } from '/@/components/Table'; -import { queryDepartTreeSync } from '/@/views/system/depart/depart.api'; - -export const columns: BasicColumn[] = [ - { - title: '设备所属单位', - dataIndex: 'scaleSecondDepart', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '设备名称', - dataIndex: 'scaleName', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '设备编码', - dataIndex: 'scaleCode', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '绑定员工', - dataIndex: 'realName', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '员工编号', - dataIndex: 'workNo', - align: 'center', - width: 100, - fixed: 'left', - }, - { - title: '性别', - dataIndex: 'sex_dictText', - align: 'center', - width: 80, - }, - { - title: '年龄', - dataIndex: 'age', - align: 'center', - width: 80, - }, - { - title: '员工所属部门', - dataIndex: 'userThirdDepart', - align: 'center', - width: 120, - }, - { - title: '最新测量时间', - dataIndex: 'examTime', - align: 'center', - width: 100, - }, - { - title: '监测数据', - dataIndex: 'name', - align: 'center', - children: [ - { - title: '身高\n(cm)', - dataIndex: 'height', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '体重\n(kg)', - dataIndex: 'weight', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: 'BMI', - dataIndex: 'bmi', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '基础代谢\n(kcal)', - dataIndex: 'basalMetabolism', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '体脂肪量\n(kg)', - dataIndex: 'fatValue', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '体脂肪率\n(%)', - dataIndex: 'fatRate', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '体水分量\n(L)', - dataIndex: 'waterValue', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '体水分率\n(%)', - dataIndex: 'waterRate', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '蛋白质量\n(kg)', - dataIndex: 'proteinValue', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - { - title: '蛋白质率\n(%)', - dataIndex: 'proteinRate', - align: 'center', - width: 80, - customHeaderCell: () => { - return { - style: { - whiteSpace: 'pre-wrap', - }, - }; - }, - }, - ], - }, - { - title: '更多信息', - dataIndex: 'moreInfo', - align: 'center', - width: 100, - }, - { - title: '操作', - dataIndex: 'action', - align: 'center', - width: 100, - fixed: 'right', - }, -]; -export const searchFormSchema: FormSchema[] = [ - { - label: '单位部门', - field: 'scaleOrgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, - { - label: '设备名称', - field: 'scaleName', - component: 'Input', - }, - { - label: '设备编码', - field: 'scaleCode', - component: 'Input', - }, - { - label: '绑定员工', - field: 'realName', - component: 'Input', - }, - { - label: '员工编号', - field: 'workNo', - component: 'Input', - }, - { - label: '员工所在部门', - field: 'userOrgCode', - component: 'JlazyTreeSelect', - componentProps: () => { - return { - getPopupContainer: () => document.body, - multiple: false, - api: queryDepartTreeSync, - loadApi: queryDepartTreeSync, - afterApi: (data) => { - data.forEach((item: any) => { - item['preTitle'] = item.title; - item['key'] = item['orgCode']; - }); - return data; - }, - preItem: (title, item) => { - item['preTitle'] = title + '/' + item.title; - item['key'] = item['orgCode']; - return item; - }, - fieldNamesInfo: { - value: 'orgCode', - label: 'preTitle', - key: 'orgCode', - }, - }; - }, - }, -]; - -export const modalLeft = [ - { - title: '身高', - value: 'height', - unit: 'cm', - }, - { - title: '体重(kg)', - value: 'weight', - unit: 'kg', - }, - { - title: 'BMI', - value: 'bmi', - unit: '', - }, - { - title: '基础代谢(Kcal)', - value: 'basalMetabolism', - unit: 'Kcal', - }, - { - title: '体脂肪量(kg)', - value: 'fatValue', - unit: 'kg', - }, - { - title: '体脂肪率(%)', - value: 'fatRate', - unit: '%', - }, - { - title: '体水分量(L)', - value: 'waterValue', - unit: 'L', - }, - { - title: '体水分率(%)', - value: 'waterRate', - unit: '%', - }, - { - title: '蛋白质量(kg)', - value: 'proteinValue', - unit: 'kg', - }, - { - title: '蛋白质率(%)', - value: 'proteinRate', - unit: '%', - }, - { - title: '体骨骼量(kg)', - value: 'skeletonSaltValue', - unit: 'kg', - }, - { - title: '体肌肉量(kg)', - value: 'muscleValue', - unit: 'kg', - }, - { - title: '提肌肉率(%)', - value: 'muscleRate', - unit: '%', - }, - { - title: '细胞外液量(L)', - value: 'cellOutLiquidValue', - unit: 'L', - }, - { - title: '细胞外液率(%)', - value: 'cellOutLiquidRate', - unit: '%', - }, - { - title: '细胞内液量(L)', - value: 'cellInsideLiquidValue', - unit: 'L', - }, - { - title: '细胞内液率(%)', - value: 'cellInsideLiquidRate', - unit: '%', - }, - { - title: '皮下脂肪量(kg)', - value: 'subcutaneouslyFatValue', - unit: 'kg', - }, - { - title: '皮下脂肪率(%)', - value: 'subcutaneouslyFatRate', - unit: '%', - }, - { - title: '除脂肪量(kg)', - value: 'removeFatValue', - unit: 'kg', - }, - { - title: '矿物质量(kg)', - value: 'mineralsValue', - unit: 'kg', - }, -]; - -export const weightColumn: BasicColumn[] = [ - { - title: '序号', - dataIndex: 'index', - align: 'center', - }, - { - title: '更新时间', - dataIndex: 'date', - align: 'center', - }, - { - title: '体重(kg)', - dataIndex: 'weight', - align: 'center', - }, -]; diff --git a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.vue b/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.vue deleted file mode 100644 index 789797b..0000000 --- a/src/views/intervene24/meals/weight/personalScale/equipmentMonitoring/equipmentMonitoring.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/signUpManage/component/exerciseModal.vue b/src/views/intervene24/meals/weight/signUpManage/component/exerciseModal.vue deleted file mode 100644 index 5705e50..0000000 --- a/src/views/intervene24/meals/weight/signUpManage/component/exerciseModal.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/signUpManage/component/foodModal.vue b/src/views/intervene24/meals/weight/signUpManage/component/foodModal.vue deleted file mode 100644 index c5bff71..0000000 --- a/src/views/intervene24/meals/weight/signUpManage/component/foodModal.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/src/views/intervene24/meals/weight/signUpManage/component/pdfModal.vue b/src/views/intervene24/meals/weight/signUpManage/component/pdfModal.vue deleted file mode 100644 index d97430a..0000000 --- a/src/views/intervene24/meals/weight/signUpManage/component/pdfModal.vue +++ /dev/null @@ -1,16 +0,0 @@ -