Parcourir la source

排序问题处理

XMLWAN il y a 4 ans
Parent
révision
7c5f9c02fe

+ 2 - 0
src/pages/main/dialog/AssessmentDialog.vue Voir le fichier

@@ -1689,6 +1689,7 @@ export default {
1689 1689
     CheckBoxSubMenu
1690 1690
   },
1691 1691
   created() {
1692
+    console.log("透前评估数据来源", this.predialysis);
1692 1693
     this.getPermission();
1693 1694
 
1694 1695
     var date = this.$route.query && this.$route.query.date;
@@ -1709,6 +1710,7 @@ export default {
1709 1710
 
1710 1711
     var obj = this.predialysis;
1711 1712
     var arr = getDataConfig("hemodialysis", "machine_type");
1713
+    console.log("arr", arr);
1712 1714
     for (let i = 0; i < arr.length; i++) {
1713 1715
       if (obj.machine_type == arr[i].name) {
1714 1716
         obj.machine_type = arr[i].id;

+ 15 - 10
src/pages/main/dialog/PrescriptionDialog.vue Voir le fichier

@@ -2663,7 +2663,7 @@ export default {
2663 2663
       return blood_access_name;
2664 2664
     },
2665 2665
     getDialyzerPerfusionApparatus: function(val) {
2666
-      console.log("val--------", val);
2666
+      console.log("val", val);
2667 2667
       let dialyzer_perfusion_apparatus = "";
2668 2668
       let arr = this.dialyzerPerfusionApparatus;
2669 2669
       for (let i = 0; i < arr.length; i++) {
@@ -2737,6 +2737,7 @@ export default {
2737 2737
       this.is_show = false;
2738 2738
     },
2739 2739
     menuComfirmTwo: function(dialysisPrescription) {
2740
+      console.log("dialysisPrescription是射门", dialysisPrescription);
2740 2741
       this.isShowDialog = true;
2741 2742
       this.is_show = false;
2742 2743
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart;
@@ -2770,12 +2771,6 @@ export default {
2770 2771
           }
2771 2772
         })
2772 2773
         .then(res => {
2773
-          console.log(res);
2774
-          console.log(
2775
-            "prescription_prop.creater",
2776
-            this.prescription_prop.creater
2777
-          );
2778
-          console.log("admin.id", this.$store.getters.user.admin.id);
2779 2774
           if (res.data.state == 0) {
2780 2775
             this.hasPermission = false;
2781 2776
           } else if (res.data.state == 1) {
@@ -2814,8 +2809,6 @@ export default {
2814 2809
     }
2815 2810
   },
2816 2811
   created() {
2817
-    console.log("数据来源", this.dialysisPrescription);
2818
-
2819 2812
     this.getPermission();
2820 2813
     this.template_id = this.$store.getters.user.template_info.template_id;
2821 2814
 
@@ -2857,7 +2850,6 @@ export default {
2857 2850
         }
2858 2851
       });
2859 2852
     });
2860
-    console.log("arrFour", arrFour);
2861 2853
     this.anticoagulantsConfit = arrFour;
2862 2854
 
2863 2855
     this.bodyFluidOptions = this.$store.getters.body_fluid;
@@ -2989,6 +2981,19 @@ export default {
2989 2981
       "hemodialysis",
2990 2982
       "dialyzer_perfusion_apparatus"
2991 2983
     );
2984
+
2985
+    for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2986
+      if (
2987
+        this.dialysisPrescription.dialyzer_perfusion_apparatus ==
2988
+        this.dialyzerPerfusionApparatus[i].name
2989
+      ) {
2990
+        this.dialysisPrescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2991
+          i
2992
+        ].id;
2993
+      }
2994
+    }
2995
+
2996
+    console.log("数据来源", this.dialysisPrescription);
2992 2997
   },
2993 2998
 
2994 2999
   components: {

+ 195 - 48
src/pages/main/dialog/TreatmentDialog.vue Voir le fichier

@@ -12,27 +12,35 @@
12 12
       </div>
13 13
 
14 14
       <div class="DialogContent choose" id="dialogTop">
15
+
15 16
         <el-form :model="dialysisSummary" label-width="120px">
16
-          <el-form-item label="透后宣教 : ">
17
-            <!-- <el-select @change="dialysisAfterTeachSelectChange" v-model="dialysisSummary.text1" placeholder="请选择">
18
-                  <el-option v-for="(s, index) in teach" :label="s.text" :value="s.value" :key="index"></el-option>
19
-            </el-select>-->
20
-            <el-input
21
-              class="treatmentInput"
22
-              readonly
23
-              v-model="dialysisSummary.propagandaAndEducationContentSelect"
24
-              placeholder="请选择"
25
-              @focus="showSubMenu('education')"
26
-            ></el-input>
27
-          </el-form-item>
28
-          <el-form-item label-width="0">
29
-            <el-input
30
-              class="newTextarea treatmentInput"
31
-              type="textarea"
32
-              v-model="dialysisSummary.propagandaAndEducationContent"
33
-              :rows="5"
34
-            ></el-input>
35
-          </el-form-item>
17
+        <el-row>
18
+         <el-col v-if="isShow('宣教知识')">
19
+            <el-form-item label="宣教知识 : ">
20
+              <el-input
21
+                class="treatmentInput"
22
+                readonly
23
+                v-model="dialysisSummary.propagandaAndEducationContentSelect"
24
+                placeholder="请选择"
25
+                @focus="showSubMenu('education')"
26
+              ></el-input>
27
+            </el-form-item>
28
+         </el-col>
29
+         </el-row>
30
+         <el-row>
31
+          <el-col v-if="isShow('宣教知识')">
32
+            <el-form-item label-width="0">
33
+              <el-input
34
+                class="newTextarea treatmentInput"
35
+                type="textarea"
36
+                v-model="dialysisSummary.propagandaAndEducationContent"
37
+                :rows="5"
38
+              ></el-input>
39
+            </el-form-item>
40
+          </el-col>
41
+        </el-row>
42
+        <el-row>
43
+        <el-col v-if="isShow('透析小结')">
36 44
           <el-form-item label="透析小结 : ">
37 45
             <el-input
38 46
               readonly
@@ -42,45 +50,73 @@
42 50
               @focus="showSubMenu('summary')"
43 51
             ></el-input>
44 52
           </el-form-item>
45
-
46
-          <el-form-item label-width="0">
47
-            <el-input
48
-              class="newTextarea treatmentInput"
49
-              @focus="lastInputFocus"
50
-              @blur="lastInputBlur"
51
-              type="textarea"
52
-              v-model="dialysisSummary.summaryContent"
53
-              :rows="5"
54
-            ></el-input>
55
-          </el-form-item>
56
-          <div v-if="isShow('透析护理记录')">
57
-            <el-form-item label="透析护理记录:">
53
+       </el-col>
54
+       </el-row>
55
+       <el-row>
56
+        <el-col v-if="isShow('透析小结')">
57
+            <el-form-item label-width="0">
58 58
               <el-input
59 59
                 class="newTextarea treatmentInput"
60 60
                 @focus="lastInputFocus"
61 61
                 @blur="lastInputBlur"
62 62
                 type="textarea"
63
-                v-model="dialysisSummary.nursing_record"
63
+                v-model="dialysisSummary.summaryContent"
64 64
                 :rows="5"
65 65
               ></el-input>
66 66
             </el-form-item>
67
-         </div>
68
-         <div v-if="isShow('特殊记录')">
69
-            <el-form-item label="特殊记录:">
67
+          </el-col>
68
+        </el-row>
69
+          <el-row>
70
+            <el-col v-if="isShow('透析护理记录')">
71
+              <el-form-item label="透析护理记录:">
72
+                <el-input
73
+                    class="treatmentInput"
74
+                    readonly
75
+                    v-model="dialysisSummary.nursingRecordSelect"
76
+                    placeholder="请选择"
77
+                    @focus="showSubMenu('nursing_record')"
78
+                ></el-input>
79
+              </el-form-item>
80
+            </el-col>
81
+        </el-row>
82
+         <el-row>
83
+          <el-col v-if="isShow('透析护理记录')">
84
+            <el-form-item label-width="0">
70 85
               <el-input
71 86
                 class="newTextarea treatmentInput"
72
-                @focus="lastInputFocus"
73
-                @blur="lastInputBlur"
74 87
                 type="textarea"
75
-                v-model="dialysisSummary.special_record"
88
+                v-model="dialysisSummary.nursing_record"
76 89
                 :rows="5"
77 90
               ></el-input>
78
-           </el-form-item>
79
-         </div>
91
+            </el-form-item>
92
+          </el-col>
93
+        </el-row>
94
+        <el-row>
95
+          <el-col v-if="isShow('特殊记录')">
96
+              <el-form-item label="特殊记录:">
97
+                <el-input
98
+                      class="treatmentInput"
99
+                      readonly
100
+                      v-model="dialysisSummary.specialRecordSelect"
101
+                      placeholder="请选择"
102
+                      @focus="showSubMenu('special_record')"
103
+                  ></el-input>
104
+            </el-form-item>
105
+           </el-col>
106
+        </el-row>
107
+          <el-row>
108
+            <el-col v-if="isShow('特殊记录')">
109
+              <el-form-item label-width="0">
110
+                <el-input
111
+                  class="newTextarea treatmentInput"
112
+                  type="textarea"
113
+                  v-model="dialysisSummary.special_record"
114
+                  :rows="5"
115
+                ></el-input>
116
+              </el-form-item>
117
+            </el-col>
118
+          </el-row>
80 119
         </el-form>
81
-        <!-- <div class="button">
82
-              <button @click="commitInfo" class="submitButton">提交</button>
83
-        </div>-->
84 120
       </div>
85 121
     </div>
86 122
 
@@ -133,7 +169,9 @@ export default {
133 169
         deboardNurse: "",
134 170
         treatDoctor: "",
135 171
         nursing_record: "",
136
-        special_record: ""
172
+        special_record: "",
173
+        nursingRecordSelect: "",
174
+        specialRecordSelect: ""
137 175
       },
138 176
       summary: [],
139 177
       summaryObj: {},
@@ -143,7 +181,9 @@ export default {
143 181
       record_date: "",
144 182
       patient: {
145 183
         id: 0
146
-      }
184
+      },
185
+      nursingRecord: [],
186
+      specialRecord: []
147 187
     };
148 188
   },
149 189
   props: {
@@ -158,10 +198,14 @@ export default {
158 198
     this.getPermission();
159 199
     // this.summary = this.$store.getters.summary;
160 200
     this.summary = getDataConfig("summary", "summary");
201
+    console.log("透后选叫", getDataConfig("summary", "summary"));
161 202
     // console.log("this.summary",this.summary)
162 203
     // this.teach = this.$store.getters.teach;
163 204
     this.teach = getDataConfig("education", "education");
164
-
205
+    console.log("this", this.teach);
206
+    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
207
+    console.log("透析护理记录", this.nursingRecord);
208
+    this.specialRecord = getDataConfig("special_record", "special_record");
165 209
     if (this.teach.length > 0) {
166 210
       var tlen = this.teach.length;
167 211
       for (let index = 0; index < tlen; index++) {
@@ -176,6 +220,24 @@ export default {
176 220
         this.summaryObj[this.summary[index].id] = this.summary[index];
177 221
       }
178 222
     }
223
+    if (this.nursingRecord.length > 0) {
224
+      var tlen = this.nursingRecord.length;
225
+      for (let index = 0; index < tlen; index++) {
226
+        this.nursingRecord[index].name = this.nursingRecord[index].text;
227
+        this.summaryObj[this.nursingRecord[index].id] = this.nursingRecord[
228
+          index
229
+        ];
230
+      }
231
+    }
232
+    if (this.specialRecord.length > 0) {
233
+      var tlen = this.specialRecord.length;
234
+      for (let index = 0; index < tlen; index++) {
235
+        this.specialRecord[index].name = this.specialRecord[index].text;
236
+        this.summaryObj[this.specialRecord[index].id] = this.specialRecord[
237
+          index
238
+        ];
239
+      }
240
+    }
179 241
 
180 242
     var date = this.$route.query && this.$route.query.date;
181 243
     date *= 1000;
@@ -239,9 +301,30 @@ export default {
239 301
           this.visibility = true;
240 302
           this.propForm.list = [];
241 303
           this.propForm.optionList = this.summary;
304
+          console.log("summary", this.summary);
242 305
           this.propForm.isMultiple = 1;
243 306
           this.propForm.selectId = this.dialysisSummary.xxjid;
244 307
           break;
308
+        case "nursing_record":
309
+          this.propForm.type = 3;
310
+          this.isShowDialog = false;
311
+          this.propForm.title = "透析护理记录";
312
+          this.visibility = true;
313
+          this.propForm.list = [];
314
+          this.propForm.optionList = this.nursingRecord;
315
+          this.propForm.isMultiple = 1;
316
+          this.propForm.selectId = this.dialysisSummary.xxxjid;
317
+          break;
318
+        case "special_record":
319
+          this.propForm.type = 4;
320
+          this.isShowDialog = false;
321
+          this.propForm.title = "特殊记录";
322
+          this.visibility = true;
323
+          this.propForm.list = [];
324
+          this.propForm.optionList = this.specialRecord;
325
+          this.propForm.isMultiple = 1;
326
+          this.propForm.selectId = this.dialysisSummary.xxxxjid;
327
+          break;
245 328
       }
246 329
     },
247 330
     menuCancle: function() {
@@ -272,6 +355,26 @@ export default {
272 355
             ].name;
273 356
           }
274 357
           break;
358
+        case 3:
359
+          if (val.selectId in this.summaryObj) {
360
+            var theValue = this.summaryObj[val.selectId].value;
361
+            this.dialysisSummaryNuserocoderChange(theValue);
362
+            this.dialysisSummary.xxxjid = val.selectId;
363
+            this.dialysisSummary.nursingRecordSelect = this.summaryObj[
364
+              val.selectId
365
+            ].name;
366
+          }
367
+          break;
368
+        case 4:
369
+          if (val.selectId in this.summaryObj) {
370
+            var theValue = this.summaryObj[val.selectId].value;
371
+            this.dialysisSummarySpecialcoderChange(theValue);
372
+            this.dialysisSummary.xxxxjid = val.selectId;
373
+            this.dialysisSummary.specialRecordSelect = this.summaryObj[
374
+              val.selectId
375
+            ].name;
376
+          }
377
+          break;
275 378
       }
276 379
     },
277 380
 
@@ -325,6 +428,50 @@ export default {
325 428
         }
326 429
       }
327 430
     },
431
+    dialysisSummaryNuserocoderChange: function(values) {
432
+      if (this.dialysisSummary.nursing_record == null) {
433
+        this.dialysisSummary.nursing_record == "";
434
+      }
435
+      if (this.dialysisSummary.nursing_record == "") {
436
+        this.dialysisSummary.nursing_record = values;
437
+      } else {
438
+        if (this.dialysisSummary.nursing_record.indexOf(values) == -1) {
439
+          if (
440
+            this.dialysisSummary.nursing_record
441
+              .charAt(this.dialysisSummary.nursing_record.length - 1)
442
+              .indexOf("。") == -1
443
+          ) {
444
+            this.dialysisSummary.nursing_record =
445
+              this.dialysisSummary.nursing_record + "," + values;
446
+          } else {
447
+            this.dialysisSummary.nursing_record =
448
+              this.dialysisSummary.nursing_record + values;
449
+          }
450
+        }
451
+      }
452
+    },
453
+    dialysisSummarySpecialcoderChange: function(values) {
454
+      if (this.dialysisSummary.special_record == null) {
455
+        this.dialysisSummary.special_record == "";
456
+      }
457
+      if (this.dialysisSummary.special_record == "") {
458
+        this.dialysisSummary.special_record = values;
459
+      } else {
460
+        if (this.dialysisSummary.special_record.indexOf(values) == -1) {
461
+          if (
462
+            this.dialysisSummary.special_record
463
+              .charAt(this.dialysisSummary.special_record.length - 1)
464
+              .indexOf("。") == -1
465
+          ) {
466
+            this.dialysisSummary.special_record =
467
+              this.dialysisSummary.special_record + "," + values;
468
+          } else {
469
+            this.dialysisSummary.special_record =
470
+              this.dialysisSummary.special_record + values;
471
+          }
472
+        }
473
+      }
474
+    },
328 475
     commitInfo: function() {
329 476
       Toast.loading({ forbidClick: true, duration: 0 });
330 477
       let ParamsQuery = this.dialysisSummary;

+ 51 - 27
src/pages/main/today/TodayTab.vue Voir le fichier

@@ -695,7 +695,6 @@ export default {
695 695
           var patient = resp.data.patient; // 患者信息
696 696
           var schedual = resp.data.schedual; // 患者排班信息
697 697
           var prescription = resp.data.prescription; // 透析处方
698
-
699 698
           var solution = resp.data.solution; // 透析方案
700 699
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
701 700
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
@@ -885,27 +884,46 @@ export default {
885 884
           var patient = resp.data.patient; // 患者信息
886 885
           var schedual = resp.data.schedual; // 患者排班信息
887 886
           var prescription = resp.data.prescription; // 透析处方
888
-          this.dialyzerPerfusionApparatus = getDataConfig(
889
-            "hemodialysis",
890
-            "dialyzer_perfusion_apparatus"
891
-          );
892
-          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
893
-            if (
894
-              prescription.dialyzer_perfusion_apparatus ==
895
-              this.dialyzerPerfusionApparatus[i].name
896
-            ) {
897
-              prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
898
-                i
899
-              ].id;
887
+          console.log("透析处方22222", prescription);
888
+          if (prescription !== null) {
889
+            this.dialyzerPerfusionApparatus = getDataConfig(
890
+              "hemodialysis",
891
+              "dialyzer_perfusion_apparatus"
892
+            );
893
+            console.log("透析器/灌流器", this.dialyzerPerfusionApparatus);
894
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
895
+              if (
896
+                prescription.dialyzer_perfusion_apparatus ==
897
+                this.dialyzerPerfusionApparatus[i].name
898
+              ) {
899
+                prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
900
+                  i
901
+                ].id;
902
+              }
900 903
             }
901 904
           }
902
-          console.log("透析器/灌流器", this.dialyzerPerfusionApparatus);
903
-          console.log("透析处方-----", prescription);
904 905
           var solution = resp.data.solution; // 透析方案
905 906
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
906 907
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
907 908
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
908 909
           var last_prescription = resp.data.last_prescription;
910
+          console.log("上次透析处方", last_prescription);
911
+          this.dialyzerPerfusionApparatus = getDataConfig(
912
+            "hemodialysis",
913
+            "dialyzer_perfusion_apparatus"
914
+          );
915
+          if (last_prescription != null) {
916
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
917
+              if (
918
+                last_prescription.dialyzer_perfusion_apparatus ==
919
+                this.dialyzerPerfusionApparatus[i].name
920
+              ) {
921
+                last_prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
922
+                  i
923
+                ].id;
924
+              }
925
+            }
926
+          }
909 927
           var system_prescription = resp.data.system_prescription;
910 928
 
911 929
           this.dryWeight = resp.data.dry_weight;
@@ -1534,25 +1552,31 @@ export default {
1534 1552
             var patient = resp.data.patient; // 患者信息
1535 1553
             var schedual = resp.data.schedual; // 患者排班信息
1536 1554
             var prescription = resp.data.prescription; // 透析处方
1537
-            this.dialyzerPerfusionApparatus = getDataConfig(
1538
-              "hemodialysis",
1539
-              "dialyzer_perfusion_apparatus"
1540
-            );
1541
-            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1542
-              if (
1543
-                prescription.dialyzer_perfusion_apparatus ==
1544
-                this.dialyzerPerfusionApparatus[i].name
1545
-              ) {
1546
-                prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1547
-                  i
1548
-                ].id;
1555
+            console.log("透析处方1", prescription);
1556
+            if (prescription != null) {
1557
+              this.dialyzerPerfusionApparatus = getDataConfig(
1558
+                "hemodialysis",
1559
+                "dialyzer_perfusion_apparatus"
1560
+              );
1561
+              console.log("透析处方中的", this.dialyzerPerfusionApparatus);
1562
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1563
+                if (
1564
+                  prescription.dialyzer_perfusion_apparatus ==
1565
+                  this.dialyzerPerfusionApparatus[i].name
1566
+                ) {
1567
+                  prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1568
+                    i
1569
+                  ].id;
1570
+                }
1549 1571
               }
1550 1572
             }
1573
+
1551 1574
             var solution = resp.data.solution; // 透析方案
1552 1575
             var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
1553 1576
             var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
1554 1577
             var doctor_advices = resp.data.doctor_advices; // 临时医嘱
1555 1578
             var last_prescription = resp.data.last_prescription;
1579
+            console.log("上次透析处方2", last_prescription);
1556 1580
             var system_prescription = resp.data.system_prescription;
1557 1581
 
1558 1582
             this.dryWeight = resp.data.dry_weight;

+ 6 - 0
src/pages/main/today/treatmentOf.vue Voir le fichier

@@ -58,6 +58,12 @@ export default {
58 58
       }
59 59
       return this.record.mission;
60 60
     },
61
+    dialysis_summary: function() {
62
+      if (this.record == null || this.record.id == "") {
63
+        return "";
64
+      }
65
+      return this.record.dialysis_summary;
66
+    },
61 67
     nursing_record: function() {
62 68
       if (this.record == null || this.record.id == "") {
63 69
         return "";

+ 1 - 1
src/utils/data.js Voir le fichier

@@ -3,7 +3,7 @@ import store from '@/store'
3 3
 export function getDataConfig(module, field) {
4 4
   var storeConfigList = store.getters.configlist
5 5
   var moduleConfig = storeConfigList[module]
6
-  if (module === 'summary' || module === 'education') {
6
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7 7
     var Aresult = []
8 8
     for (var j = 0; j < moduleConfig.length; j++) {
9 9
       var Atemp = []