|
@@ -74,7 +74,7 @@
|
74
|
74
|
>
|
75
|
75
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
76
|
76
|
<el-table-column prop="date" label="机号" width="80" align="center">
|
77
|
|
- <template slot-scope="scope">{{scope.row.bed_id}}</template>
|
|
77
|
+ <template slot-scope="scope">{{scope.row.bed}}</template>
|
78
|
78
|
</el-table-column>
|
79
|
79
|
<el-table-column prop="name" label="取样日期" width="100" align="center">
|
80
|
80
|
<template slot-scope="scope">{{getTime(scope.row.speling_date)}}</template>
|
|
@@ -140,7 +140,7 @@
|
140
|
140
|
>
|
141
|
141
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
142
|
142
|
<el-table-column prop="date" label="机号" width="80" align="center">
|
143
|
|
- <template slot-scope="scope">{{scope.row.bed_id}}</template>
|
|
143
|
+ <template slot-scope="scope">{{scope.row.bed}}</template>
|
144
|
144
|
</el-table-column>
|
145
|
145
|
<el-table-column prop="name" label="取样日期" width="100" align="center">
|
146
|
146
|
<template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
|
|
@@ -206,7 +206,7 @@
|
206
|
206
|
>
|
207
|
207
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
208
|
208
|
<el-table-column prop="date" label="机号" width="80" align="center">
|
209
|
|
- <template slot-scope="scope">{{scope.row.bed_id}}</template>
|
|
209
|
+ <template slot-scope="scope">{{scope.row.bed}}</template>
|
210
|
210
|
</el-table-column>
|
211
|
211
|
<el-table-column prop="name" label="取样日期" width="80" align="center">
|
212
|
212
|
<template slot-scope="scope">{{getTime(scope.row.sampling_date)}}</template>
|
|
@@ -386,7 +386,7 @@
|
386
|
386
|
</el-dialog>
|
387
|
387
|
|
388
|
388
|
<!-- 编辑内霉素检测 -->
|
389
|
|
- <el-dialog title="内霉素检测" :visible.sync="dialogVisibleTwo" width="50%" center>
|
|
389
|
+ <el-dialog title="内霉素检测" :visible.sync="dialogVisibleTwo" width="60%" center>
|
390
|
390
|
<el-form :model="diaForm" ref="diaForm" rules="diaRules">
|
391
|
391
|
<el-row>
|
392
|
392
|
<el-col :span="8">
|
|
@@ -640,20 +640,20 @@ import {
|
640
|
640
|
UpdateIon,
|
641
|
641
|
DeleteIon,
|
642
|
642
|
queryTable
|
643
|
|
-} from "@/api/manage";
|
644
|
|
-import { uParseTime } from "@/utils/tools";
|
|
643
|
+} from '@/api/manage'
|
|
644
|
+import { uParseTime } from '@/utils/tools'
|
645
|
645
|
export default {
|
646
|
|
- name: "QualityForm",
|
|
646
|
+ name: 'QualityForm',
|
647
|
647
|
data() {
|
648
|
648
|
return {
|
649
|
649
|
isIndeterminate: false,
|
650
|
650
|
checkAllStatus: false,
|
651
|
651
|
beds: [],
|
652
|
652
|
forms: {
|
653
|
|
- bed: "",
|
|
653
|
+ bed: '',
|
654
|
654
|
sename: 1,
|
655
|
|
- start_time: "",
|
656
|
|
- end_time: ""
|
|
655
|
+ start_time: '',
|
|
656
|
+ end_time: ''
|
657
|
657
|
},
|
658
|
658
|
tableData: [],
|
659
|
659
|
table: [],
|
|
@@ -663,9 +663,9 @@ export default {
|
663
|
663
|
showTwo: false,
|
664
|
664
|
bedNumber: [],
|
665
|
665
|
tableTypes: [
|
666
|
|
- { id: 1, name: "细菌培养" },
|
667
|
|
- { id: 2, name: "内霉素检测" },
|
668
|
|
- { id: 3, name: "透析液离子浓度检测" }
|
|
666
|
+ { id: 1, name: '细菌培养' },
|
|
667
|
+ { id: 2, name: '内霉素检测' },
|
|
668
|
+ { id: 3, name: '透析液离子浓度检测' }
|
669
|
669
|
],
|
670
|
670
|
dialogVisible: false,
|
671
|
671
|
dialogVisibleTwo: false,
|
|
@@ -673,350 +673,350 @@ export default {
|
673
|
673
|
disable: true,
|
674
|
674
|
diableTwo: true,
|
675
|
675
|
form: {
|
676
|
|
- id: "",
|
677
|
|
- date: "",
|
678
|
|
- specimen: "",
|
679
|
|
- concentrate_noa: "",
|
680
|
|
- concentrate_nob: "",
|
681
|
|
- sampling_locationa: "",
|
682
|
|
- detection_unit: "",
|
683
|
|
- sampler: "",
|
684
|
|
- reporting_date: "",
|
685
|
|
- detection_result: ""
|
|
676
|
+ id: '',
|
|
677
|
+ date: '',
|
|
678
|
+ specimen: '',
|
|
679
|
+ concentrate_noa: '',
|
|
680
|
+ concentrate_nob: '',
|
|
681
|
+ sampling_locationa: '',
|
|
682
|
+ detection_unit: '',
|
|
683
|
+ sampler: '',
|
|
684
|
+ reporting_date: '',
|
|
685
|
+ detection_result: ''
|
686
|
686
|
},
|
687
|
687
|
diaForm: {
|
688
|
|
- id: "",
|
689
|
|
- sampling_date: "",
|
690
|
|
- specimenb: "",
|
691
|
|
- concentrate_noc: "",
|
692
|
|
- concentrateb_nod: "",
|
693
|
|
- sampling_locationb: "",
|
694
|
|
- detection_unit: "",
|
695
|
|
- samplerb: "",
|
696
|
|
- reporting_dateb: "",
|
697
|
|
- detection_resultb: ""
|
|
688
|
+ id: '',
|
|
689
|
+ sampling_date: '',
|
|
690
|
+ specimenb: '',
|
|
691
|
+ concentrate_noc: '',
|
|
692
|
+ concentrateb_nod: '',
|
|
693
|
+ sampling_locationb: '',
|
|
694
|
+ detection_unit: '',
|
|
695
|
+ samplerb: '',
|
|
696
|
+ reporting_dateb: '',
|
|
697
|
+ detection_resultb: ''
|
698
|
698
|
},
|
699
|
699
|
sampling: [],
|
700
|
700
|
samplingSpecimen: [
|
701
|
|
- { id: 0, name: "请选择" },
|
702
|
|
- { id: 1, name: "透析液" },
|
703
|
|
- { id: 2, name: "A浓缩液" },
|
704
|
|
- { id: 3, name: "B浓缩液" },
|
705
|
|
- { id: 4, name: "置换液" },
|
706
|
|
- { id: 5, name: "透析用水" }
|
|
701
|
+ { id: 0, name: '请选择' },
|
|
702
|
+ { id: 1, name: '透析液' },
|
|
703
|
+ { id: 2, name: 'A浓缩液' },
|
|
704
|
+ { id: 3, name: 'B浓缩液' },
|
|
705
|
+ { id: 4, name: '置换液' },
|
|
706
|
+ { id: 5, name: '透析用水' }
|
707
|
707
|
],
|
708
|
708
|
samplingLocation: [
|
709
|
|
- { id: 0, name: "请选择" },
|
710
|
|
- { id: 1, name: "透析液入口" },
|
711
|
|
- { id: 2, name: "透析液取样口" },
|
712
|
|
- { id: 3, name: "置换液出口" },
|
713
|
|
- { id: 4, name: "透析机反渗水入口" }
|
|
709
|
+ { id: 0, name: '请选择' },
|
|
710
|
+ { id: 1, name: '透析液入口' },
|
|
711
|
+ { id: 2, name: '透析液取样口' },
|
|
712
|
+ { id: 3, name: '置换液出口' },
|
|
713
|
+ { id: 4, name: '透析机反渗水入口' }
|
714
|
714
|
],
|
715
|
715
|
rules: {
|
716
|
|
- detection_unit: [{ required: true, message: "请填写检测单位" }],
|
717
|
|
- sampler: [{ required: true, message: "请填写取样者" }]
|
|
716
|
+ detection_unit: [{ required: true, message: '请填写检测单位' }],
|
|
717
|
+ sampler: [{ required: true, message: '请填写取样者' }]
|
718
|
718
|
},
|
719
|
719
|
diaRules: {
|
720
|
|
- detection_unit: [{ required: true, message: "请填写检测单位" }],
|
721
|
|
- samplerb: [{ required: true, message: "请填写取样者" }]
|
|
720
|
+ detection_unit: [{ required: true, message: '请填写检测单位' }],
|
|
721
|
+ samplerb: [{ required: true, message: '请填写取样者' }]
|
722
|
722
|
},
|
723
|
723
|
ionrule: {
|
724
|
|
- detection_unit: [{ required: true, message: "请填写检测单位" }],
|
725
|
|
- samplerc: [{ required: true, message: "请填写取样者" }]
|
|
724
|
+ detection_unit: [{ required: true, message: '请填写检测单位' }],
|
|
725
|
+ samplerc: [{ required: true, message: '请填写取样者' }]
|
726
|
726
|
},
|
727
|
727
|
selectCulture: [],
|
728
|
728
|
ionForm: {
|
729
|
|
- dateb: "",
|
730
|
|
- samplerc: "",
|
731
|
|
- detection_unit: "",
|
732
|
|
- concentrate_nof: "",
|
733
|
|
- concentrate_nog: "",
|
734
|
|
- date_reportc: "",
|
735
|
|
- actual_na: "",
|
736
|
|
- actual_pna: "",
|
737
|
|
- actual_k: "",
|
738
|
|
- actual_ca: "",
|
739
|
|
- actual_ci: "",
|
740
|
|
- actual_hco: "",
|
741
|
|
- actual_mg: "",
|
742
|
|
- actual_ph: ""
|
|
729
|
+ dateb: '',
|
|
730
|
+ samplerc: '',
|
|
731
|
+ detection_unit: '',
|
|
732
|
+ concentrate_nof: '',
|
|
733
|
+ concentrate_nog: '',
|
|
734
|
+ date_reportc: '',
|
|
735
|
+ actual_na: '',
|
|
736
|
+ actual_pna: '',
|
|
737
|
+ actual_k: '',
|
|
738
|
+ actual_ca: '',
|
|
739
|
+ actual_ci: '',
|
|
740
|
+ actual_hco: '',
|
|
741
|
+ actual_mg: '',
|
|
742
|
+ actual_ph: ''
|
743
|
743
|
}
|
744
|
|
- };
|
|
744
|
+ }
|
745
|
745
|
},
|
746
|
746
|
methods: {
|
747
|
747
|
changeCheck() {
|
748
|
|
- this.$refs.multipleTable.clearSelection();
|
|
748
|
+ this.$refs.multipleTable.clearSelection()
|
749
|
749
|
if (this.checkAllStatus) {
|
750
|
|
- this.$refs.multipleTable.toggleAllSelection();
|
|
750
|
+ this.$refs.multipleTable.toggleAllSelection()
|
751
|
751
|
}
|
752
|
752
|
|
753
|
|
- this.$refs.multipleTableOne.clearSelection();
|
|
753
|
+ this.$refs.multipleTableOne.clearSelection()
|
754
|
754
|
if (this.checkAllStatus) {
|
755
|
|
- this.$refs.multipleTableOne.toggleAllSelection();
|
|
755
|
+ this.$refs.multipleTableOne.toggleAllSelection()
|
756
|
756
|
}
|
757
|
757
|
|
758
|
|
- this.$refs.multipleTableTwo.clearSelection();
|
|
758
|
+ this.$refs.multipleTableTwo.clearSelection()
|
759
|
759
|
if (this.checkAllStatus) {
|
760
|
|
- this.$refs.multipleTableTwo.toggleAllSelection();
|
|
760
|
+ this.$refs.multipleTableTwo.toggleAllSelection()
|
761
|
761
|
}
|
762
|
762
|
},
|
763
|
763
|
handleSelectionChange(val) {
|
764
|
|
- this.selectCulture = val;
|
|
764
|
+ this.selectCulture = val
|
765
|
765
|
},
|
766
|
766
|
handleSelectionChangeOne(val) {
|
767
|
|
- this.selectCulture = val;
|
|
767
|
+ this.selectCulture = val
|
768
|
768
|
},
|
769
|
769
|
handleSelectionChangeTwo(val) {
|
770
|
|
- this.selectCulture = val;
|
|
770
|
+ this.selectCulture = val
|
771
|
771
|
},
|
772
|
772
|
getAllSubregion() {
|
773
|
773
|
getAllSubregion().then(response => {
|
774
|
|
- var zones = response.data.data.zones;
|
775
|
|
- var numbers = response.data.data.numbers;
|
776
|
|
- var number = [{ id: 0, number: "全部" }];
|
|
774
|
+ var zones = response.data.data.zones
|
|
775
|
+ var numbers = response.data.data.numbers
|
|
776
|
+ var number = [{ id: 0, number: '全部' }]
|
777
|
777
|
for (let index = 0; index < numbers.length; index++) {
|
778
|
|
- const item = numbers[index];
|
779
|
|
- number.push({ id: item.id, number: item.number });
|
|
778
|
+ const item = numbers[index]
|
|
779
|
+ number.push({ id: item.id, number: item.number })
|
780
|
780
|
}
|
781
|
|
- this.bedNumber = number;
|
782
|
|
- });
|
|
781
|
+ this.bedNumber = number
|
|
782
|
+ })
|
783
|
783
|
},
|
784
|
784
|
getAllQulityInfo() {
|
785
|
785
|
getAllQulityInfo().then(response => {
|
786
|
786
|
if (response.data.state === 1) {
|
787
|
|
- var cultures = response.data.data.cultures;
|
788
|
|
- console.log("cultures", cultures);
|
|
787
|
+ var cultures = response.data.data.cultures
|
|
788
|
+ console.log('cultures', cultures)
|
789
|
789
|
|
790
|
790
|
for (let index = 0; index < cultures.length; index++) {
|
791
|
791
|
if (cultures[index].specimen === 0) {
|
792
|
|
- cultures[index].specimen = "";
|
|
792
|
+ cultures[index].specimen = ''
|
793
|
793
|
}
|
794
|
794
|
if (cultures[index].specimen === 1) {
|
795
|
|
- cultures[index].specimen = "透析液";
|
|
795
|
+ cultures[index].specimen = '透析液'
|
796
|
796
|
}
|
797
|
797
|
if (cultures[index].specimen === 2) {
|
798
|
|
- cultures[index].specimen = "A浓缩液";
|
|
798
|
+ cultures[index].specimen = 'A浓缩液'
|
799
|
799
|
}
|
800
|
800
|
if (cultures[index].specimen === 3) {
|
801
|
|
- cultures[index].specimen = "B浓缩液";
|
|
801
|
+ cultures[index].specimen = 'B浓缩液'
|
802
|
802
|
}
|
803
|
803
|
if (cultures[index].specimen === 4) {
|
804
|
|
- cultures[index].specimen = "置换液";
|
|
804
|
+ cultures[index].specimen = '置换液'
|
805
|
805
|
}
|
806
|
806
|
if (cultures[index].specimen === 5) {
|
807
|
|
- cultures[index].specimen = "透析用水";
|
|
807
|
+ cultures[index].specimen = '透析用水'
|
808
|
808
|
}
|
809
|
809
|
|
810
|
810
|
if (cultures[index].sampling_locationa === 0) {
|
811
|
|
- cultures[index].sampling_locationa = "";
|
|
811
|
+ cultures[index].sampling_locationa = ''
|
812
|
812
|
}
|
813
|
813
|
|
814
|
814
|
if (cultures[index].sampling_locationa === 1) {
|
815
|
|
- cultures[index].sampling_locationa = "透析液入口";
|
|
815
|
+ cultures[index].sampling_locationa = '透析液入口'
|
816
|
816
|
}
|
817
|
817
|
if (cultures[index].sampling_locationa === 2) {
|
818
|
|
- cultures[index].sampling_locationa = "透析液取样口";
|
|
818
|
+ cultures[index].sampling_locationa = '透析液取样口'
|
819
|
819
|
}
|
820
|
820
|
if (cultures[index].sampling_locationa === 3) {
|
821
|
|
- cultures[index].sampling_locationa = "置换液出口";
|
|
821
|
+ cultures[index].sampling_locationa = '置换液出口'
|
822
|
822
|
}
|
823
|
823
|
if (cultures[index].sampling_locationa === 4) {
|
824
|
|
- cultures[index].sampling_locationa = "透析机反渗水入口";
|
|
824
|
+ cultures[index].sampling_locationa = '透析机反渗水入口'
|
825
|
825
|
}
|
826
|
826
|
}
|
827
|
|
- this.tableData = cultures;
|
828
|
|
- var dialyste = response.data.data.dialysate;
|
829
|
|
- console.log("dialyste", dialyste);
|
|
827
|
+ this.tableData = cultures
|
|
828
|
+ var dialyste = response.data.data.dialysate
|
|
829
|
+ console.log('dialyste', dialyste)
|
830
|
830
|
for (let index = 0; index < dialyste.length; index++) {
|
831
|
831
|
if (dialyste[index].specimenb === 0) {
|
832
|
|
- dialyste[index].specimenb = "";
|
|
832
|
+ dialyste[index].specimenb = ''
|
833
|
833
|
}
|
834
|
834
|
if (dialyste[index].specimenb === 1) {
|
835
|
|
- dialyste[index].specimenb = "透析液";
|
|
835
|
+ dialyste[index].specimenb = '透析液'
|
836
|
836
|
}
|
837
|
837
|
if (dialyste[index].specimenb === 2) {
|
838
|
|
- dialyste[index].specimenb = "A浓缩液";
|
|
838
|
+ dialyste[index].specimenb = 'A浓缩液'
|
839
|
839
|
}
|
840
|
840
|
if (dialyste[index].specimenb === 3) {
|
841
|
|
- dialyste[index].specimenb = "B浓缩液";
|
|
841
|
+ dialyste[index].specimenb = 'B浓缩液'
|
842
|
842
|
}
|
843
|
843
|
if (dialyste[index].specimenb === 4) {
|
844
|
|
- dialyste[index].specimenb = "置换液";
|
|
844
|
+ dialyste[index].specimenb = '置换液'
|
845
|
845
|
}
|
846
|
846
|
if (dialyste[index].specimenb === 5) {
|
847
|
|
- dialyste[index].specimenb = "透析用水";
|
|
847
|
+ dialyste[index].specimenb = '透析用水'
|
848
|
848
|
}
|
849
|
849
|
|
850
|
850
|
if (dialyste[index].sampling_locationb === 0) {
|
851
|
|
- dialyste[index].sampling_locationb = "";
|
|
851
|
+ dialyste[index].sampling_locationb = ''
|
852
|
852
|
}
|
853
|
853
|
|
854
|
854
|
if (dialyste[index].sampling_locationb === 1) {
|
855
|
|
- dialyste[index].sampling_locationb = "透析液入口";
|
|
855
|
+ dialyste[index].sampling_locationb = '透析液入口'
|
856
|
856
|
}
|
857
|
857
|
if (dialyste[index].sampling_locationb === 2) {
|
858
|
|
- dialyste[index].sampling_locationb = "透析液取样口";
|
|
858
|
+ dialyste[index].sampling_locationb = '透析液取样口'
|
859
|
859
|
}
|
860
|
860
|
if (dialyste[index].sampling_locationb === 3) {
|
861
|
|
- dialyste[index].sampling_locationb = "置换液出口";
|
|
861
|
+ dialyste[index].sampling_locationb = '置换液出口'
|
862
|
862
|
}
|
863
|
863
|
if (dialyste[index].sampling_locationb === 4) {
|
864
|
|
- dialyste[index].sampling_locationb = "透析机反渗水入口";
|
|
864
|
+ dialyste[index].sampling_locationb = '透析机反渗水入口'
|
865
|
865
|
}
|
866
|
866
|
}
|
867
|
|
- this.table = dialyste;
|
868
|
|
- var ions = response.data.data.ions;
|
869
|
|
- console.log("ions", ions);
|
870
|
|
- this.tableDatas = ions;
|
|
867
|
+ this.table = dialyste
|
|
868
|
+ var ions = response.data.data.ions
|
|
869
|
+ console.log('ions', ions)
|
|
870
|
+ this.tableDatas = ions
|
871
|
871
|
}
|
872
|
|
- });
|
|
872
|
+ })
|
873
|
873
|
},
|
874
|
874
|
changeSpecimen(val) {
|
875
|
875
|
if (val === 0) {
|
876
|
|
- this.disable = false;
|
877
|
|
- this.diableTwo = false;
|
|
876
|
+ this.disable = false
|
|
877
|
+ this.diableTwo = false
|
878
|
878
|
}
|
879
|
879
|
if (val === 1) {
|
880
|
|
- this.diableTwo = false;
|
881
|
|
- this.disable = false;
|
|
880
|
+ this.diableTwo = false
|
|
881
|
+ this.disable = false
|
882
|
882
|
}
|
883
|
883
|
if (val === 2) {
|
884
|
|
- this.diableTwo = true;
|
885
|
|
- this.disable = false;
|
|
884
|
+ this.diableTwo = true
|
|
885
|
+ this.disable = false
|
886
|
886
|
}
|
887
|
887
|
if (val === 3) {
|
888
|
|
- this.disable = true;
|
889
|
|
- this.diableTwo = false;
|
|
888
|
+ this.disable = true
|
|
889
|
+ this.diableTwo = false
|
890
|
890
|
}
|
891
|
891
|
if (val === 4) {
|
892
|
|
- this.disable = false;
|
893
|
|
- this.diableTwo = false;
|
|
892
|
+ this.disable = false
|
|
893
|
+ this.diableTwo = false
|
894
|
894
|
}
|
895
|
895
|
if (val === 5) {
|
896
|
|
- this.disable = false;
|
897
|
|
- this.diableTwo = false;
|
|
896
|
+ this.disable = false
|
|
897
|
+ this.diableTwo = false
|
898
|
898
|
}
|
899
|
899
|
},
|
900
|
900
|
changeSpeciment(val) {
|
901
|
901
|
if (val === 0) {
|
902
|
|
- this.disable = false;
|
903
|
|
- this.diableTwo = false;
|
|
902
|
+ this.disable = false
|
|
903
|
+ this.diableTwo = false
|
904
|
904
|
}
|
905
|
905
|
if (val === 1) {
|
906
|
|
- this.disable = false;
|
907
|
|
- this.diableTwo = false;
|
|
906
|
+ this.disable = false
|
|
907
|
+ this.diableTwo = false
|
908
|
908
|
}
|
909
|
909
|
if (val === 2) {
|
910
|
|
- this.diableTwo = true;
|
911
|
|
- this.disable = false;
|
|
910
|
+ this.diableTwo = true
|
|
911
|
+ this.disable = false
|
912
|
912
|
}
|
913
|
913
|
if (val === 3) {
|
914
|
|
- this.disable = true;
|
915
|
|
- this.diableTwo = false;
|
|
914
|
+ this.disable = true
|
|
915
|
+ this.diableTwo = false
|
916
|
916
|
}
|
917
|
917
|
if (val === 4) {
|
918
|
|
- this.disable = false;
|
919
|
|
- this.diableTwo = false;
|
|
918
|
+ this.disable = false
|
|
919
|
+ this.diableTwo = false
|
920
|
920
|
}
|
921
|
921
|
if (val === 5) {
|
922
|
|
- this.disable = false;
|
923
|
|
- this.diableTwo = false;
|
|
922
|
+ this.disable = false
|
|
923
|
+ this.diableTwo = false
|
924
|
924
|
}
|
925
|
925
|
},
|
926
|
926
|
changeTable(val) {
|
927
|
927
|
if (val === 1) {
|
928
|
|
- this.showOne = false;
|
929
|
|
- this.showTwo = false;
|
930
|
|
- this.show = true;
|
|
928
|
+ this.showOne = false
|
|
929
|
+ this.showTwo = false
|
|
930
|
+ this.show = true
|
931
|
931
|
}
|
932
|
932
|
if (val === 2) {
|
933
|
|
- this.showOne = true;
|
934
|
|
- this.show = false;
|
935
|
|
- this.showTwo = false;
|
|
933
|
+ this.showOne = true
|
|
934
|
+ this.show = false
|
|
935
|
+ this.showTwo = false
|
936
|
936
|
}
|
937
|
937
|
if (val === 3) {
|
938
|
|
- this.showTwo = true;
|
939
|
|
- this.show = false;
|
940
|
|
- this.showOne = false;
|
|
938
|
+ this.showTwo = true
|
|
939
|
+ this.show = false
|
|
940
|
+ this.showOne = false
|
941
|
941
|
}
|
942
|
942
|
},
|
943
|
943
|
getTime(time) {
|
944
|
|
- return uParseTime(time, "{y}-{m}-{d}");
|
|
944
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
945
|
945
|
},
|
946
|
946
|
getAllOrganization() {
|
947
|
947
|
getAllOrganization().then(response => {
|
948
|
948
|
if (response.data.state === 1) {
|
949
|
|
- var approle = response.data.data.approle;
|
950
|
|
- this.sampling = approle;
|
|
949
|
+ var approle = response.data.data.approle
|
|
950
|
+ this.sampling = approle
|
951
|
951
|
}
|
952
|
|
- });
|
|
952
|
+ })
|
953
|
953
|
},
|
954
|
954
|
EditCulture(id, userid) {
|
955
|
|
- this.dialogVisible = true;
|
|
955
|
+ this.dialogVisible = true
|
956
|
956
|
|
957
|
|
- if (this.form.specimen === "") {
|
958
|
|
- this.form.specimen = 0;
|
|
957
|
+ if (this.form.specimen === '') {
|
|
958
|
+ this.form.specimen = 0
|
959
|
959
|
}
|
960
|
|
- var specimens = this.form.specimen;
|
961
|
|
- var specimen = parseInt(specimens);
|
962
|
|
- this.form.specimen = specimen;
|
|
960
|
+ var specimens = this.form.specimen
|
|
961
|
+ var specimen = parseInt(specimens)
|
|
962
|
+ this.form.specimen = specimen
|
963
|
963
|
|
964
|
|
- if (this.form.locationa === "") {
|
965
|
|
- this.form.specimen = 0;
|
|
964
|
+ if (this.form.locationa === '') {
|
|
965
|
+ this.form.specimen = 0
|
966
|
966
|
}
|
967
|
|
- var locationa = this.form.sampling_locationa;
|
968
|
|
- var location = parseInt(locationa);
|
969
|
|
- this.form.locationa = location;
|
|
967
|
+ var locationa = this.form.sampling_locationa
|
|
968
|
+ var location = parseInt(locationa)
|
|
969
|
+ this.form.locationa = location
|
970
|
970
|
EditCulture(id, userid).then(response => {
|
971
|
971
|
if (response.data.state === 1) {
|
972
|
|
- var culture = response.data.data.culture;
|
973
|
|
- console.log("禁用", culture);
|
974
|
|
- var role = response.data.data.role;
|
975
|
|
- console.log("role", role);
|
976
|
|
- this.form.id = culture.id;
|
977
|
|
- this.form.date = uParseTime(culture.speling_date, "{y}-{m}-{d}");
|
978
|
|
- this.form.specimen = culture.specimen;
|
|
972
|
+ var culture = response.data.data.culture
|
|
973
|
+ console.log('禁用', culture)
|
|
974
|
+ var role = response.data.data.role
|
|
975
|
+ console.log('role', role)
|
|
976
|
+ this.form.id = culture.id
|
|
977
|
+ this.form.date = uParseTime(culture.speling_date, '{y}-{m}-{d}')
|
|
978
|
+ this.form.specimen = culture.specimen
|
979
|
979
|
|
980
|
980
|
if (this.form.specimen === 0) {
|
981
|
|
- this.disable = false;
|
982
|
|
- this.diableTwo = false;
|
|
981
|
+ this.disable = false
|
|
982
|
+ this.diableTwo = false
|
983
|
983
|
}
|
984
|
984
|
|
985
|
985
|
if (this.form.specimen === 1) {
|
986
|
|
- this.disable = false;
|
987
|
|
- this.diableTwo = false;
|
|
986
|
+ this.disable = false
|
|
987
|
+ this.diableTwo = false
|
988
|
988
|
}
|
989
|
989
|
|
990
|
990
|
if (this.form.specimen === 2) {
|
991
|
|
- this.disable = false;
|
992
|
|
- this.diableTwo = true;
|
|
991
|
+ this.disable = false
|
|
992
|
+ this.diableTwo = true
|
993
|
993
|
}
|
994
|
994
|
if (this.form.specimen === 3) {
|
995
|
|
- this.diableTwo = false;
|
996
|
|
- this.disable = true;
|
|
995
|
+ this.diableTwo = false
|
|
996
|
+ this.disable = true
|
997
|
997
|
}
|
998
|
998
|
|
999
|
999
|
if (this.form.specimen === 4) {
|
1000
|
|
- this.disable = false;
|
1001
|
|
- this.diableTwo = false;
|
|
1000
|
+ this.disable = false
|
|
1001
|
+ this.diableTwo = false
|
1002
|
1002
|
}
|
1003
|
1003
|
if (this.form.specimen === 5) {
|
1004
|
|
- this.disable = false;
|
1005
|
|
- this.diableTwo = false;
|
|
1004
|
+ this.disable = false
|
|
1005
|
+ this.diableTwo = false
|
1006
|
1006
|
}
|
1007
|
1007
|
|
1008
|
|
- this.form.concentrate_noa = culture.concentrate_noa;
|
1009
|
|
- this.form.concentrate_nob = culture.concentrate_nob;
|
1010
|
|
- this.form.sampling_locationa = culture.sampling_locationa;
|
1011
|
|
- this.form.detection_unit = culture.detection_unit;
|
1012
|
|
- this.form.sampler = culture.sampler;
|
|
1008
|
+ this.form.concentrate_noa = culture.concentrate_noa
|
|
1009
|
+ this.form.concentrate_nob = culture.concentrate_nob
|
|
1010
|
+ this.form.sampling_locationa = culture.sampling_locationa
|
|
1011
|
+ this.form.detection_unit = culture.detection_unit
|
|
1012
|
+ this.form.sampler = culture.sampler
|
1013
|
1013
|
this.form.reporting_date = uParseTime(
|
1014
|
1014
|
culture.reporting_date,
|
1015
|
|
- "{y}-{m}-{d}"
|
1016
|
|
- );
|
1017
|
|
- this.form.detection_result = culture.detection_result;
|
|
1015
|
+ '{y}-{m}-{d}'
|
|
1016
|
+ )
|
|
1017
|
+ this.form.detection_result = culture.detection_result
|
1018
|
1018
|
}
|
1019
|
|
- });
|
|
1019
|
+ })
|
1020
|
1020
|
},
|
1021
|
1021
|
|
1022
|
1022
|
UpdateCulture(formName) {
|
|
@@ -1024,230 +1024,230 @@ export default {
|
1024
|
1024
|
if (valid) {
|
1025
|
1025
|
UpdateCulture(this.form).then(response => {
|
1026
|
1026
|
if (response.data.state === 1) {
|
1027
|
|
- var culture = response.data.data.culture;
|
1028
|
|
- this.$message.success("修改成功");
|
1029
|
|
- this.dialogVisible = false;
|
1030
|
|
- this.getAllQulityInfo();
|
|
1027
|
+ var culture = response.data.data.culture
|
|
1028
|
+ this.$message.success('修改成功')
|
|
1029
|
+ this.dialogVisible = false
|
|
1030
|
+ this.getAllQulityInfo()
|
1031
|
1031
|
}
|
1032
|
|
- });
|
|
1032
|
+ })
|
1033
|
1033
|
}
|
1034
|
|
- });
|
|
1034
|
+ })
|
1035
|
1035
|
},
|
1036
|
1036
|
BatchDelete() {
|
1037
|
1037
|
if (this.selectCulture.length == 0) {
|
1038
|
|
- this.$message.error("请选择要删除的信息");
|
1039
|
|
- return false;
|
|
1038
|
+ this.$message.error('请选择要删除的信息')
|
|
1039
|
+ return false
|
1040
|
1040
|
}
|
1041
|
1041
|
this.$confirm(
|
1042
|
|
- "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
|
1043
|
|
- "删除提示",
|
|
1042
|
+ '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
|
|
1043
|
+ '删除提示',
|
1044
|
1044
|
{
|
1045
|
1045
|
dangerouslyUseHTMLString: true,
|
1046
|
|
- confirmButtonText: "确定",
|
1047
|
|
- cancelButtonText: "取消",
|
1048
|
|
- type: "warning"
|
|
1046
|
+ confirmButtonText: '确定',
|
|
1047
|
+ cancelButtonText: '取消',
|
|
1048
|
+ type: 'warning'
|
1049
|
1049
|
}
|
1050
|
1050
|
).then(() => {
|
1051
|
|
- var ids = [];
|
1052
|
|
- var idMap = {};
|
|
1051
|
+ var ids = []
|
|
1052
|
+ var idMap = {}
|
1053
|
1053
|
for (const index in this.selectCulture) {
|
1054
|
|
- ids.push(this.selectCulture[index].id);
|
1055
|
|
- idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
|
|
1054
|
+ ids.push(this.selectCulture[index].id)
|
|
1055
|
+ idMap[this.selectCulture[index].id] = this.selectCulture[index].id
|
1056
|
1056
|
}
|
1057
|
1057
|
DeleteCultrue({ ids: ids }).then(response => {
|
1058
|
1058
|
if (response.data.state === 1) {
|
1059
|
|
- var msg = response.data.data.msg;
|
1060
|
|
- var planDataLength = this.tableData.length;
|
|
1059
|
+ var msg = response.data.data.msg
|
|
1060
|
+ var planDataLength = this.tableData.length
|
1061
|
1061
|
for (let index = planDataLength - 1; index >= 0; index--) {
|
1062
|
1062
|
if (this.tableData[index].id in idMap) {
|
1063
|
|
- this.tableData.splice(index, 1);
|
|
1063
|
+ this.tableData.splice(index, 1)
|
1064
|
1064
|
}
|
1065
|
1065
|
}
|
1066
|
|
- this.$message.success("删除成功");
|
|
1066
|
+ this.$message.success('删除成功')
|
1067
|
1067
|
}
|
1068
|
|
- });
|
1069
|
|
- });
|
|
1068
|
+ })
|
|
1069
|
+ })
|
1070
|
1070
|
},
|
1071
|
1071
|
EditDialyState(id) {
|
1072
|
|
- this.dialogVisibleTwo = true;
|
|
1072
|
+ this.dialogVisibleTwo = true
|
1073
|
1073
|
EditDialyState(id).then(response => {
|
1074
|
1074
|
if (response.data.state === 1) {
|
1075
|
|
- var dialysate = response.data.data.dialysate;
|
1076
|
|
- console.log("dialysate", dialysate);
|
1077
|
|
- this.diaForm.id = dialysate.id;
|
|
1075
|
+ var dialysate = response.data.data.dialysate
|
|
1076
|
+ console.log('dialysate', dialysate)
|
|
1077
|
+ this.diaForm.id = dialysate.id
|
1078
|
1078
|
this.diaForm.sampling_date = uParseTime(
|
1079
|
1079
|
dialysate.sampling_date,
|
1080
|
|
- "{y}-{m}-{d}"
|
1081
|
|
- );
|
1082
|
|
- this.diaForm.specimenb = dialysate.specimenb;
|
|
1080
|
+ '{y}-{m}-{d}'
|
|
1081
|
+ )
|
|
1082
|
+ this.diaForm.specimenb = dialysate.specimenb
|
1083
|
1083
|
if (this.diaForm.specimenb === 0) {
|
1084
|
|
- this.disable = false;
|
1085
|
|
- this.diableTwo = false;
|
|
1084
|
+ this.disable = false
|
|
1085
|
+ this.diableTwo = false
|
1086
|
1086
|
}
|
1087
|
1087
|
|
1088
|
1088
|
if (this.diaForm.specimenb === 1) {
|
1089
|
|
- this.disable = false;
|
1090
|
|
- this.diableTwo = false;
|
|
1089
|
+ this.disable = false
|
|
1090
|
+ this.diableTwo = false
|
1091
|
1091
|
}
|
1092
|
1092
|
|
1093
|
1093
|
if (this.diaForm.specimenb === 2) {
|
1094
|
|
- this.disable = false;
|
1095
|
|
- this.diableTwo = true;
|
|
1094
|
+ this.disable = false
|
|
1095
|
+ this.diableTwo = true
|
1096
|
1096
|
}
|
1097
|
1097
|
if (this.diaForm.specimenb === 3) {
|
1098
|
|
- this.diableTwo = false;
|
1099
|
|
- this.disable = true;
|
|
1098
|
+ this.diableTwo = false
|
|
1099
|
+ this.disable = true
|
1100
|
1100
|
}
|
1101
|
1101
|
|
1102
|
1102
|
if (this.diaForm.specimenb === 4) {
|
1103
|
|
- this.disable = false;
|
1104
|
|
- this.diableTwo = false;
|
|
1103
|
+ this.disable = false
|
|
1104
|
+ this.diableTwo = false
|
1105
|
1105
|
}
|
1106
|
1106
|
if (this.diaForm.specimenb === 5) {
|
1107
|
|
- this.disable = false;
|
1108
|
|
- this.diableTwo = false;
|
|
1107
|
+ this.disable = false
|
|
1108
|
+ this.diableTwo = false
|
1109
|
1109
|
}
|
1110
|
|
- this.diaForm.concentrate_noc = dialysate.concentrate_noc;
|
1111
|
|
- this.diaForm.concentrateb_nod = dialysate.concentrateb_nod;
|
1112
|
|
- this.diaForm.sampling_locationb = dialysate.sampling_locationb;
|
1113
|
|
- this.diaForm.detection_unit = dialysate.detection_unit;
|
1114
|
|
- this.diaForm.samplerb = dialysate.samplerb;
|
|
1110
|
+ this.diaForm.concentrate_noc = dialysate.concentrate_noc
|
|
1111
|
+ this.diaForm.concentrateb_nod = dialysate.concentrateb_nod
|
|
1112
|
+ this.diaForm.sampling_locationb = dialysate.sampling_locationb
|
|
1113
|
+ this.diaForm.detection_unit = dialysate.detection_unit
|
|
1114
|
+ this.diaForm.samplerb = dialysate.samplerb
|
1115
|
1115
|
this.diaForm.reporting_dateb = uParseTime(
|
1116
|
1116
|
dialysate.reporting_dateb,
|
1117
|
|
- "{y}-{m}-{d}"
|
1118
|
|
- );
|
1119
|
|
- this.diaForm.detection_resultb = dialysate.detection_resultb;
|
|
1117
|
+ '{y}-{m}-{d}'
|
|
1118
|
+ )
|
|
1119
|
+ this.diaForm.detection_resultb = dialysate.detection_resultb
|
1120
|
1120
|
}
|
1121
|
|
- });
|
|
1121
|
+ })
|
1122
|
1122
|
},
|
1123
|
1123
|
UpdateDialyState(formName) {
|
1124
|
1124
|
this.$refs[formName].validate(valid => {
|
1125
|
1125
|
if (valid) {
|
1126
|
1126
|
UpdateDialyState(this.diaForm).then(response => {
|
1127
|
1127
|
if (response.data.state === 1) {
|
1128
|
|
- var dialyste = response.data.data.dialysate;
|
1129
|
|
- console.log("dialyste", dialyste);
|
1130
|
|
- this.dialogVisibleTwo = false;
|
1131
|
|
- this.$message.success("修改成功");
|
1132
|
|
- this.getAllQulityInfo();
|
|
1128
|
+ var dialyste = response.data.data.dialysate
|
|
1129
|
+ console.log('dialyste', dialyste)
|
|
1130
|
+ this.dialogVisibleTwo = false
|
|
1131
|
+ this.$message.success('修改成功')
|
|
1132
|
+ this.getAllQulityInfo()
|
1133
|
1133
|
}
|
1134
|
|
- });
|
|
1134
|
+ })
|
1135
|
1135
|
}
|
1136
|
|
- });
|
|
1136
|
+ })
|
1137
|
1137
|
},
|
1138
|
1138
|
BatchDeleteOne() {
|
1139
|
1139
|
if (this.selectCulture.length == 0) {
|
1140
|
|
- this.$message.error("请选择要删除的信息");
|
1141
|
|
- return false;
|
|
1140
|
+ this.$message.error('请选择要删除的信息')
|
|
1141
|
+ return false
|
1142
|
1142
|
}
|
1143
|
1143
|
this.$confirm(
|
1144
|
|
- "确认要删除所选记录吗? <br>删除后,该信息将无法恢复",
|
1145
|
|
- "删除提示",
|
|
1144
|
+ '确认要删除所选记录吗? <br>删除后,该信息将无法恢复',
|
|
1145
|
+ '删除提示',
|
1146
|
1146
|
{
|
1147
|
1147
|
dangerouslyUseHTMLString: true,
|
1148
|
|
- confirmButtonText: "确定",
|
1149
|
|
- cancelButtonText: "取消",
|
1150
|
|
- type: "warning"
|
|
1148
|
+ confirmButtonText: '确定',
|
|
1149
|
+ cancelButtonText: '取消',
|
|
1150
|
+ type: 'warning'
|
1151
|
1151
|
}
|
1152
|
1152
|
).then(() => {
|
1153
|
|
- var ids = [];
|
1154
|
|
- var idMap = {};
|
|
1153
|
+ var ids = []
|
|
1154
|
+ var idMap = {}
|
1155
|
1155
|
for (const index in this.selectCulture) {
|
1156
|
|
- ids.push(this.selectCulture[index].id);
|
1157
|
|
- idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
|
|
1156
|
+ ids.push(this.selectCulture[index].id)
|
|
1157
|
+ idMap[this.selectCulture[index].id] = this.selectCulture[index].id
|
1158
|
1158
|
}
|
1159
|
1159
|
DeleteDialystate({ ids: ids }).then(response => {
|
1160
|
1160
|
if (response.data.state === 1) {
|
1161
|
|
- var msg = response.data.data.msg;
|
1162
|
|
- var planDataLength = this.table.length;
|
|
1161
|
+ var msg = response.data.data.msg
|
|
1162
|
+ var planDataLength = this.table.length
|
1163
|
1163
|
for (let index = planDataLength - 1; index >= 0; index--) {
|
1164
|
1164
|
if (this.table[index].id in idMap) {
|
1165
|
|
- this.table.splice(index, 1);
|
|
1165
|
+ this.table.splice(index, 1)
|
1166
|
1166
|
}
|
1167
|
1167
|
}
|
1168
|
|
- this.$message.success("删除成功");
|
|
1168
|
+ this.$message.success('删除成功')
|
1169
|
1169
|
}
|
1170
|
|
- });
|
1171
|
|
- });
|
|
1170
|
+ })
|
|
1171
|
+ })
|
1172
|
1172
|
},
|
1173
|
1173
|
EditIon(id) {
|
1174
|
|
- this.dialogVisibleThree = true;
|
|
1174
|
+ this.dialogVisibleThree = true
|
1175
|
1175
|
EditIon(id).then(response => {
|
1176
|
1176
|
if (response.data.state === 1) {
|
1177
|
|
- var ion = response.data.data.ion;
|
1178
|
|
- console.log("ion", ion);
|
1179
|
|
- this.ionForm.dateb = uParseTime(ion.sampling_date, "{y}-{m}-{d}");
|
1180
|
|
- this.ionForm.samplerc = ion.samplerc;
|
1181
|
|
- this.ionForm.detection_unit = ion.detection_unit;
|
1182
|
|
- this.ionForm.samplerc = ion.samplerc;
|
1183
|
|
- this.ionForm.concentrate_nof = ion.concentrate_nof;
|
1184
|
|
- this.ionForm.concentrate_nog = ion.concentrate_nog;
|
|
1177
|
+ var ion = response.data.data.ion
|
|
1178
|
+ console.log('ion', ion)
|
|
1179
|
+ this.ionForm.dateb = uParseTime(ion.sampling_date, '{y}-{m}-{d}')
|
|
1180
|
+ this.ionForm.samplerc = ion.samplerc
|
|
1181
|
+ this.ionForm.detection_unit = ion.detection_unit
|
|
1182
|
+ this.ionForm.samplerc = ion.samplerc
|
|
1183
|
+ this.ionForm.concentrate_nof = ion.concentrate_nof
|
|
1184
|
+ this.ionForm.concentrate_nog = ion.concentrate_nog
|
1185
|
1185
|
this.ionForm.date_reportc = uParseTime(
|
1186
|
1186
|
ion.date_reportc,
|
1187
|
|
- "{y}-{m}-{d}"
|
1188
|
|
- );
|
1189
|
|
- this.ionForm.id = ion.id;
|
1190
|
|
- this.ionForm.actual_na = ion.actual_na;
|
1191
|
|
- this.ionForm.actual_pna = ion.actual_pna;
|
1192
|
|
- this.ionForm.actual_k = ion.actual_k;
|
1193
|
|
- this.ionForm.actual_ca = ion.actual_ca;
|
1194
|
|
- this.ionForm.actual_ci = ion.actual_ci;
|
1195
|
|
- this.ionForm.actual_hco = ion.actual_hco;
|
1196
|
|
- this.ionForm.actual_mg = ion.actual_mg;
|
1197
|
|
- this.ionForm.actual_ph = ion.actual_ph;
|
1198
|
|
- this.ionForm.remakes = ion.remakes;
|
|
1187
|
+ '{y}-{m}-{d}'
|
|
1188
|
+ )
|
|
1189
|
+ this.ionForm.id = ion.id
|
|
1190
|
+ this.ionForm.actual_na = ion.actual_na
|
|
1191
|
+ this.ionForm.actual_pna = ion.actual_pna
|
|
1192
|
+ this.ionForm.actual_k = ion.actual_k
|
|
1193
|
+ this.ionForm.actual_ca = ion.actual_ca
|
|
1194
|
+ this.ionForm.actual_ci = ion.actual_ci
|
|
1195
|
+ this.ionForm.actual_hco = ion.actual_hco
|
|
1196
|
+ this.ionForm.actual_mg = ion.actual_mg
|
|
1197
|
+ this.ionForm.actual_ph = ion.actual_ph
|
|
1198
|
+ this.ionForm.remakes = ion.remakes
|
1199
|
1199
|
}
|
1200
|
|
- });
|
|
1200
|
+ })
|
1201
|
1201
|
},
|
1202
|
1202
|
UpdateIon(formName) {
|
1203
|
1203
|
this.$refs[formName].validate(valid => {
|
1204
|
1204
|
if (valid) {
|
1205
|
1205
|
UpdateIon(this.ionForm).then(response => {
|
1206
|
1206
|
if (response.data.state === 1) {
|
1207
|
|
- var ion = response.data.data.ion;
|
1208
|
|
- console.log("ion", ion);
|
1209
|
|
- this.dialogVisibleThree = false;
|
1210
|
|
- this.$message.success("修改成功");
|
1211
|
|
- this.getAllQulityInfo();
|
|
1207
|
+ var ion = response.data.data.ion
|
|
1208
|
+ console.log('ion', ion)
|
|
1209
|
+ this.dialogVisibleThree = false
|
|
1210
|
+ this.$message.success('修改成功')
|
|
1211
|
+ this.getAllQulityInfo()
|
1212
|
1212
|
}
|
1213
|
|
- });
|
|
1213
|
+ })
|
1214
|
1214
|
}
|
1215
|
|
- });
|
|
1215
|
+ })
|
1216
|
1216
|
},
|
1217
|
1217
|
BatchDeleteTwo() {
|
1218
|
1218
|
if (this.selectCulture.length == 0) {
|
1219
|
|
- this.$message.error("请选择要删除的信息");
|
1220
|
|
- return false;
|
|
1219
|
+ this.$message.error('请选择要删除的信息')
|
|
1220
|
+ return false
|
1221
|
1221
|
}
|
1222
|
1222
|
this.$confirm(
|
1223
|
|
- "确认要删除所选的吗? <br>删除后,信息将无法恢复",
|
1224
|
|
- "删除提示",
|
|
1223
|
+ '确认要删除所选的吗? <br>删除后,信息将无法恢复',
|
|
1224
|
+ '删除提示',
|
1225
|
1225
|
{
|
1226
|
1226
|
dangerouslyUseHTMLString: true,
|
1227
|
|
- confirmButtonText: "确定",
|
1228
|
|
- cancelButtonText: "取消",
|
1229
|
|
- type: "warning"
|
|
1227
|
+ confirmButtonText: '确定',
|
|
1228
|
+ cancelButtonText: '取消',
|
|
1229
|
+ type: 'warning'
|
1230
|
1230
|
}
|
1231
|
1231
|
).then(() => {
|
1232
|
|
- var ids = [];
|
1233
|
|
- var idMap = {};
|
|
1232
|
+ var ids = []
|
|
1233
|
+ var idMap = {}
|
1234
|
1234
|
for (const index in this.selectCulture) {
|
1235
|
|
- ids.push(this.selectCulture[index].id);
|
1236
|
|
- idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
|
|
1235
|
+ ids.push(this.selectCulture[index].id)
|
|
1236
|
+ idMap[this.selectCulture[index].id] = this.selectCulture[index].id
|
1237
|
1237
|
}
|
1238
|
1238
|
DeleteIon({ ids: ids }).then(response => {
|
1239
|
1239
|
if (response.data.state === 1) {
|
1240
|
|
- var msg = response.data.data.msg;
|
1241
|
|
- var planDataLength = this.tableDatas.length;
|
|
1240
|
+ var msg = response.data.data.msg
|
|
1241
|
+ var planDataLength = this.tableDatas.length
|
1242
|
1242
|
for (let index = planDataLength - 1; index >= 0; index--) {
|
1243
|
1243
|
if (this.tableDatas[index].id in idMap) {
|
1244
|
|
- this.tableDatas.splice(index, 1);
|
|
1244
|
+ this.tableDatas.splice(index, 1)
|
1245
|
1245
|
}
|
1246
|
1246
|
}
|
1247
|
|
- this.$message.success("删除成功");
|
|
1247
|
+ this.$message.success('删除成功')
|
1248
|
1248
|
}
|
1249
|
|
- });
|
1250
|
|
- });
|
|
1249
|
+ })
|
|
1250
|
+ })
|
1251
|
1251
|
},
|
1252
|
1252
|
queryTable() {
|
1253
|
1253
|
queryTable(
|
|
@@ -1256,22 +1256,22 @@ export default {
|
1256
|
1256
|
this.forms.end_time
|
1257
|
1257
|
).then(response => {
|
1258
|
1258
|
if (response.data.state === 1) {
|
1259
|
|
- var cultures = response.data.data.cultures;
|
1260
|
|
- this.tableData = cultures;
|
1261
|
|
- var dialysate = response.data.data.dialysate;
|
1262
|
|
- this.table = dialysate;
|
1263
|
|
- var ions = response.data.data.ions;
|
1264
|
|
- this.tableDatas = ions;
|
|
1259
|
+ var cultures = response.data.data.cultures
|
|
1260
|
+ this.tableData = cultures
|
|
1261
|
+ var dialysate = response.data.data.dialysate
|
|
1262
|
+ this.table = dialysate
|
|
1263
|
+ var ions = response.data.data.ions
|
|
1264
|
+ this.tableDatas = ions
|
1265
|
1265
|
}
|
1266
|
|
- });
|
|
1266
|
+ })
|
1267
|
1267
|
}
|
1268
|
1268
|
},
|
1269
|
1269
|
created() {
|
1270
|
|
- this.getAllSubregion();
|
1271
|
|
- this.getAllQulityInfo();
|
1272
|
|
- this.getAllOrganization();
|
|
1270
|
+ this.getAllSubregion()
|
|
1271
|
+ this.getAllQulityInfo()
|
|
1272
|
+ this.getAllOrganization()
|
1273
|
1273
|
}
|
1274
|
|
-};
|
|
1274
|
+}
|
1275
|
1275
|
</script>
|
1276
|
1276
|
|
1277
|
1277
|
<style scoped>
|