| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577 |
- 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',
- ];
|