|
|
@@ -0,0 +1,577 @@
|
|
|
+import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
+import { sysUserList } from '/@/api/sys/sysUserApi';
|
|
|
+
|
|
|
+import { useUserStore } from '@/store/modules/user';
|
|
|
+const useUser = useUserStore();
|
|
|
+export const columns: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '检查日期',
|
|
|
+ dataIndex: 'examinerTime',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '检查人',
|
|
|
+ dataIndex: 'examinerName',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '进水压力',
|
|
|
+ dataIndex: 'intakePressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '控制器状态',
|
|
|
+ dataIndex: 'controllerState',
|
|
|
+ align: 'center',
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ title: '砂滤罐压差',
|
|
|
+ dataIndex: 'sandLeachDifferentialPressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '砂滤罐反冲洗',
|
|
|
+ dataIndex: 'sandLeachBackFlush',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '硬度',
|
|
|
+ dataIndex: 'hardness',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '树脂罐压差',
|
|
|
+ dataIndex: 'resinDifferentialPressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '树脂再生情况',
|
|
|
+ dataIndex: 'resinRegeneration',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '残余氯',
|
|
|
+ dataIndex: 'residualChlorine',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '活性炭罐压差',
|
|
|
+ dataIndex: 'activeCarbonDifferentialPressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '活性炭罐反冲洗',
|
|
|
+ dataIndex: 'activeCarbonBackFlush',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '更换滤器',
|
|
|
+ dataIndex: 'filterReplacement',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '水机进水压力',
|
|
|
+ dataIndex: 'waterInletPressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '1级膜进水压力',
|
|
|
+ dataIndex: 'membraneInletPressure1',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '1级膜排水压力',
|
|
|
+ dataIndex: 'membraneDrainagePressure1',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '1级膜产水压力',
|
|
|
+ dataIndex: 'membraneContributingWaterPressure1',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '2级膜进水压力',
|
|
|
+ dataIndex: 'membraneInletPressure2',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '2级膜排水压力',
|
|
|
+ dataIndex: 'membraneDrainagePressure2',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '2级膜产水压力',
|
|
|
+ dataIndex: 'membraneContributingWaterPressure2',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '纯水回水压力',
|
|
|
+ dataIndex: 'pureWaterReturnPressure',
|
|
|
+ align: 'center',
|
|
|
+ width: 110,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '进水电导率',
|
|
|
+ dataIndex: 'inletConductivity',
|
|
|
+ align: 'center',
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产水电导率',
|
|
|
+ dataIndex: 'contributingWaterConductivity',
|
|
|
+ align: 'center',
|
|
|
+ width: 90,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '进水量',
|
|
|
+ dataIndex: 'waterInflow',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '产水量',
|
|
|
+ dataIndex: 'waterYield',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '废水量',
|
|
|
+ dataIndex: 'wastewaterQuantity',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '回水量',
|
|
|
+ dataIndex: 'waterReclamation',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '水温',
|
|
|
+ dataIndex: 'waterTemperature',
|
|
|
+ align: 'center',
|
|
|
+ width: 60,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '系统消毒',
|
|
|
+ dataIndex: 'systemDisinfection',
|
|
|
+ align: 'center',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const dataFormSchema: FormSchema[] = [
|
|
|
+ {
|
|
|
+ label: '检查日期',
|
|
|
+ field: 'examinerTime',
|
|
|
+ required: true,
|
|
|
+ component: 'DatePicker',
|
|
|
+ componentProps: {
|
|
|
+ format: 'YYYY-MM-DD',
|
|
|
+ placeholder: '请选择检查日期',
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
+ valueFormat: 'YYYY-MM-DD',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '检查人',
|
|
|
+ field: 'examinerId',
|
|
|
+ required: true,
|
|
|
+ component: 'ApiSelect',
|
|
|
+ componentProps: ({ formModel }) => {
|
|
|
+ return {
|
|
|
+ api: sysUserList,
|
|
|
+ params: {
|
|
|
+ name: formModel.patientBasicName,
|
|
|
+ pageSize: 999,
|
|
|
+ },
|
|
|
+ labelField: 'nickname',
|
|
|
+ valueField: 'id',
|
|
|
+ resultField: 'data',
|
|
|
+ placeholder: '请输入患者姓名',
|
|
|
+ getPopupContainer: () => document.body,
|
|
|
+ showSearch: true,
|
|
|
+ filterOption: false,
|
|
|
+ onSearch: e => {
|
|
|
+ formModel.patientBasicName = e;
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ defaultValue: useUser.getUserInfo.userId,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '进水压力',
|
|
|
+ field: 'intakePressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '控制器状态',
|
|
|
+ field: 'controllerState',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '砂滤罐压差',
|
|
|
+ field: 'sandLeachDifferentialPressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '砂滤罐反向冲洗',
|
|
|
+ field: 'sandLeachBackFlush',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '硬度',
|
|
|
+ field: 'hardness',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '树脂罐压差',
|
|
|
+ field: 'resinDifferentialPressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '树脂再生情况',
|
|
|
+ field: 'resinRegeneration',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '残余氯',
|
|
|
+ field: 'residualChlorine',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '活性炭罐压差',
|
|
|
+ field: 'activeCarbonDifferentialPressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '活性炭罐反向冲洗',
|
|
|
+ field: 'activeCarbonBackFlush',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '更换滤器',
|
|
|
+ field: 'filterReplacement',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '是', value: 1 },
|
|
|
+ { label: '否', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '水机进水压力',
|
|
|
+ field: 'waterInletPressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '1级膜进水压力',
|
|
|
+ field: 'membraneInletPressure1',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '1级膜排水压力',
|
|
|
+ field: 'membraneDrainagePressure1',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '1级膜产水压力',
|
|
|
+ field: 'membraneContributingWaterPressure1',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '2级膜进水压力',
|
|
|
+ field: 'membraneInletPressure2',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '2级膜排水压力',
|
|
|
+ field: 'membraneDrainagePressure2',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '2级膜产水压力',
|
|
|
+ field: 'membraneContributingWaterPressure2',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '纯水回水压力',
|
|
|
+ field: 'pureWaterReturnPressure',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '进水电导率',
|
|
|
+ field: 'inletConductivity',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '产水电导率',
|
|
|
+ field: 'contributingWaterConductivity',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '进水量',
|
|
|
+ field: 'waterInflow',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '产水量',
|
|
|
+ field: 'waterYield',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '废水量',
|
|
|
+ field: 'wastewaterQuantity',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '回水量',
|
|
|
+ field: 'waterReclamation',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '水温(℃)',
|
|
|
+ field: 'waterTemperature',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '合格', value: 1 },
|
|
|
+ { label: '不合格', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '系统消毒',
|
|
|
+ field: 'systemDisinfection',
|
|
|
+ component: 'RadioGroup',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '是', value: 1 },
|
|
|
+ { label: '否', value: 0 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ defaultValue: 1,
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+export const dataFiled = [
|
|
|
+ 'intakePressure',
|
|
|
+ 'controllerState',
|
|
|
+ 'sandLeachDifferentialPressure',
|
|
|
+ 'sandLeachBackFlush',
|
|
|
+ 'hardness',
|
|
|
+ 'resinDifferentialPressure',
|
|
|
+ 'resinRegeneration',
|
|
|
+ 'residualChlorine',
|
|
|
+ 'activeCarbonDifferentialPressure',
|
|
|
+ 'activeCarbonBackFlush',
|
|
|
+ 'filterReplacement',
|
|
|
+ 'waterInletPressure',
|
|
|
+ 'membraneInletPressure1',
|
|
|
+ 'membraneDrainagePressure1',
|
|
|
+ 'membraneContributingWaterPressure1',
|
|
|
+ 'membraneInletPressure2',
|
|
|
+ 'membraneDrainagePressure2',
|
|
|
+ 'membraneContributingWaterPressure2',
|
|
|
+ 'pureWaterReturnPressure',
|
|
|
+ 'inletConductivity',
|
|
|
+ 'contributingWaterConductivity',
|
|
|
+ 'waterInflow',
|
|
|
+ 'waterYield',
|
|
|
+ 'wastewaterQuantity',
|
|
|
+ 'waterReclamation',
|
|
|
+ 'waterTemperature',
|
|
|
+ 'systemDisinfection',
|
|
|
+];
|