Browse Source

更新龙岗二院需求问题

XMLWAN 5 years ago
parent
commit
68ce955b02

+ 48 - 16
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

138
         label="跌倒风险预防措施: "
138
         label="跌倒风险预防措施: "
139
         v-if="isShow('跌倒风险预防措施')"
139
         v-if="isShow('跌倒风险预防措施')"
140
       >
140
       >
141
-        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="1">镇定剂</el-radio>-->
142
-        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="2">约束带</el-radio>-->
143
-        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="3">床栏</el-radio>-->
144
-        <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="4">加强宣教</el-radio>-->
145
-
146
-        <el-radio
147
-          v-for="(item, index) in precaution_arr"
148
-          :key="index"
149
-          :label="item.id"
150
-          v-model="receiveTreatmentAsses.precaution"
151
-          >{{ item.name }}
152
-        </el-radio>
141
+        <!--        <el-radio-->
142
+        <!--          v-for="(item, index) in precaution_arr"-->
143
+        <!--          :key="index"-->
144
+        <!--          :label="item.id"-->
145
+        <!--          v-model="receiveTreatmentAsses.precaution"-->
146
+        <!--          >{{ item.name }}-->
147
+        <!--        </el-radio>-->
148
+        <el-checkbox-group v-model="precautionTwo">
149
+          <el-checkbox
150
+            v-for="item in precaution_arr"
151
+            :label="item.name"
152
+            :key="item.id"
153
+            >{{ item.name }}</el-checkbox
154
+          >
155
+        </el-checkbox-group>
153
       </el-form-item>
156
       </el-form-item>
154
       <el-form-item
157
       <el-form-item
155
         label-width="200px"
158
         label-width="200px"
266
         sick_condition_other: "",
269
         sick_condition_other: "",
267
         score: "",
270
         score: "",
268
         psychological_other: "",
271
         psychological_other: "",
269
-        precaution: "1",
272
+        precaution: "",
270
         precaution_other: "",
273
         precaution_other: "",
271
         admission_number: ""
274
         admission_number: ""
272
-      }
275
+      },
276
+      precautionTwo: []
273
     };
277
     };
274
   },
278
   },
275
   methods: {
279
   methods: {
289
     show(accepts) {
293
     show(accepts) {
290
       this.accepts = accepts;
294
       this.accepts = accepts;
291
       console.log("accepts", accepts);
295
       console.log("accepts", accepts);
296
+      var arr = [];
297
+      var precaution = this.accepts.precaution.split(",");
298
+      console.log("precaution", precaution);
299
+      console.log("hhh", this.precaution_arr);
300
+      for (let i = 0; i < precaution.length; i++) {
301
+        for (let j = 0; j < this.precaution_arr.length; j++) {
302
+          if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
303
+            console.log("aaaa");
304
+            arr.push(this.precaution_arr[j].name);
305
+          }
306
+        }
307
+      }
308
+      this.precautionTwo = arr;
309
+      console.log("arr", arr);
292
       this.getPermission();
310
       this.getPermission();
293
       for (var index in this.receiveTreatmentAsses) {
311
       for (var index in this.receiveTreatmentAsses) {
294
         if (
312
         if (
313
       this.isVisibility = false;
331
       this.isVisibility = false;
314
     },
332
     },
315
     handleComfirm: function() {
333
     handleComfirm: function() {
334
+      var arr = [];
335
+      for (let i = 0; i < this.precaution_arr.length; i++) {
336
+        for (let j = 0; j < this.precautionTwo.length; j++) {
337
+          if (this.precaution_arr[i].name == this.precautionTwo[j]) {
338
+            arr.push(this.precaution_arr[i].id);
339
+          }
340
+        }
341
+      }
342
+      console.log("arr", arr);
343
+      var obj = arr.join(",");
344
+      this.receiveTreatmentAsses.precaution = obj;
316
       let ParamsQuery = this.receiveTreatmentAsses;
345
       let ParamsQuery = this.receiveTreatmentAsses;
346
+      console.log("ParamsQuery", ParamsQuery);
317
       ParamsQuery["patient"] = this.patient.id;
347
       ParamsQuery["patient"] = this.patient.id;
318
       ParamsQuery["record_date"] = this.record_date;
348
       ParamsQuery["record_date"] = this.record_date;
319
       console.log(this.receiver_treatment_access);
349
       console.log(this.receiver_treatment_access);
327
           ParamsQuery["mode"] = "3";
357
           ParamsQuery["mode"] = "3";
328
         }
358
         }
329
       }
359
       }
330
-
360
+      console.log("数据", this.precautionTwo);
331
       postAccepts(ParamsQuery).then(response => {
361
       postAccepts(ParamsQuery).then(response => {
332
         if (response.data.state == 0) {
362
         if (response.data.state == 0) {
333
           this.$message.error(response.data.msg);
363
           this.$message.error(response.data.msg);
342
 
372
 
343
           let receive_treatment_asses_resp =
373
           let receive_treatment_asses_resp =
344
             response.data.data.receiveTreatmentAsses;
374
             response.data.data.receiveTreatmentAsses;
345
-          //prop
375
+
376
+          //pror
346
           var receiver_treatment_access = this.receiver_treatment_access;
377
           var receiver_treatment_access = this.receiver_treatment_access;
347
           for (var index in receive_treatment_asses_resp) {
378
           for (var index in receive_treatment_asses_resp) {
348
             // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
379
             // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
436
     this.posture_arr = getDataConfig("hemodialysis", "posture");
467
     this.posture_arr = getDataConfig("hemodialysis", "posture");
437
     this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
468
     this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
438
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
469
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
470
+    console.log("风险", this.precaution_arr);
439
     this.intake_arr = getDataConfig("hemodialysis", "intake");
471
     this.intake_arr = getDataConfig("hemodialysis", "intake");
440
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
472
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
441
   }
473
   }

+ 32 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue View File

740
               :isChecked="
740
               :isChecked="
741
                 receiverTreatmentAccess.danger_level == 4 ? true : false
741
                 receiverTreatmentAccess.danger_level == 4 ? true : false
742
               "
742
               "
743
-            ></label-box
744
-            >跌倒风险预防措施:
743
+            >
744
+            </label-box
745
+            ><span>&nbsp;&nbsp;</span>跌倒风险预防措施:
745
             <label-box
746
             <label-box
746
-              showValue="镇剂"
747
+              showValue="镇剂"
747
               :isChecked="
748
               :isChecked="
748
-                receiverTreatmentAccess.precaution == 1 ? true : false
749
+                receiverTreatmentAccess.precaution.indexOf('镇定剂') > -1
750
+                  ? true
751
+                  : false
749
               "
752
               "
750
             ></label-box>
753
             ></label-box>
751
             <label-box
754
             <label-box
752
               showValue="约束带"
755
               showValue="约束带"
753
               :isChecked="
756
               :isChecked="
754
-                receiverTreatmentAccess.precaution == 2 ? true : false
757
+                receiverTreatmentAccess.precaution.indexOf('约束带') > -1
758
+                  ? true
759
+                  : false
755
               "
760
               "
756
             ></label-box>
761
             ></label-box>
757
             <label-box
762
             <label-box
758
               showValue="床栏"
763
               showValue="床栏"
759
               :isChecked="
764
               :isChecked="
760
-                receiverTreatmentAccess.precaution == 3 ? true : false
765
+                receiverTreatmentAccess.precaution.indexOf('床栏') > -1
766
+                  ? true
767
+                  : false
761
               "
768
               "
762
             ></label-box>
769
             ></label-box>
763
             <label-box
770
             <label-box
764
               showValue="加强宣传"
771
               showValue="加强宣传"
765
               :isChecked="
772
               :isChecked="
766
-                receiverTreatmentAccess.precaution == 4 ? true : false
773
+                receiverTreatmentAccess.precaution.indexOf('加强宣传') > -1
774
+                  ? true
775
+                  : false
767
               "
776
               "
768
             ></label-box>
777
             ></label-box>
769
           </td>
778
           </td>
961
         </tr>
970
         </tr>
962
         <tr>
971
         <tr>
963
           <td style="text-align:left;">
972
           <td style="text-align:left;">
964
-            置换液总量:{{ afterdialysis.actual_displacement }} L
973
+            实际置换量:{{ afterdialysis.actual_displacement }} L
965
           </td>
974
           </td>
966
           <td style="text-align:left;" colspan="11">
975
           <td style="text-align:left;" colspan="11">
967
             <span style="display:inline-block;margin-left:15px;">
976
             <span style="display:inline-block;margin-left:15px;">
1685
           this.schedule = schedule;
1694
           this.schedule = schedule;
1686
           var receiverTreatmentAccess =
1695
           var receiverTreatmentAccess =
1687
             response.data.data.receiverTreatmentAccess;
1696
             response.data.data.receiverTreatmentAccess;
1697
+          var obj = receiverTreatmentAccess.precaution;
1698
+          var arr = obj.split(",");
1699
+          console.log("arr", arr);
1700
+          var arr2 = [];
1701
+          for (let i = 0; i < this.precautions.length; i++) {
1702
+            for (let j = 0; j < arr.length; j++) {
1703
+              if (this.precautions[i].id == parseInt(arr[j])) {
1704
+                arr2.push(this.precautions[i].name);
1705
+              }
1706
+            }
1707
+          }
1708
+          var obj2 = arr2.join(",");
1709
+          console.log("obj2", obj2);
1710
+          receiverTreatmentAccess.precaution = obj2;
1688
           console.log("接诊评估", receiverTreatmentAccess);
1711
           console.log("接诊评估", receiverTreatmentAccess);
1689
           this.receiverTreatmentAccess = receiverTreatmentAccess;
1712
           this.receiverTreatmentAccess = receiverTreatmentAccess;
1690
           var dialysisway = response.data.data.dialysisway;
1713
           var dialysisway = response.data.data.dialysisway;
2099
     this.postures = getDataConfig("hemodialysis", "posture");
2122
     this.postures = getDataConfig("hemodialysis", "posture");
2100
     this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
2123
     this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
2101
     this.precautions = getDataConfig("hemodialysis", "precaution");
2124
     this.precautions = getDataConfig("hemodialysis", "precaution");
2125
+    console.log("跌倒", this.precautions);
2102
     this.intake = getDataConfig("hemodialysis", "intake");
2126
     this.intake = getDataConfig("hemodialysis", "intake");
2103
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2127
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2104
     var bloodAccess = getDataConfig("hemodialysis", "vascular_access");
2128
     var bloodAccess = getDataConfig("hemodialysis", "vascular_access");

File diff suppressed because it is too large
+ 3234 - 1750
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue