Selaa lähdekoodia

更新龙岗二院需求问题

XMLWAN 5 vuotta sitten
vanhempi
commit
68ce955b02

+ 48 - 16
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Näytä tiedosto

@@ -138,18 +138,21 @@
138 138
         label="跌倒风险预防措施: "
139 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 156
       </el-form-item>
154 157
       <el-form-item
155 158
         label-width="200px"
@@ -266,10 +269,11 @@ export default {
266 269
         sick_condition_other: "",
267 270
         score: "",
268 271
         psychological_other: "",
269
-        precaution: "1",
272
+        precaution: "",
270 273
         precaution_other: "",
271 274
         admission_number: ""
272
-      }
275
+      },
276
+      precautionTwo: []
273 277
     };
274 278
   },
275 279
   methods: {
@@ -289,6 +293,20 @@ export default {
289 293
     show(accepts) {
290 294
       this.accepts = accepts;
291 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 310
       this.getPermission();
293 311
       for (var index in this.receiveTreatmentAsses) {
294 312
         if (
@@ -313,7 +331,19 @@ export default {
313 331
       this.isVisibility = false;
314 332
     },
315 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 345
       let ParamsQuery = this.receiveTreatmentAsses;
346
+      console.log("ParamsQuery", ParamsQuery);
317 347
       ParamsQuery["patient"] = this.patient.id;
318 348
       ParamsQuery["record_date"] = this.record_date;
319 349
       console.log(this.receiver_treatment_access);
@@ -327,7 +357,7 @@ export default {
327 357
           ParamsQuery["mode"] = "3";
328 358
         }
329 359
       }
330
-
360
+      console.log("数据", this.precautionTwo);
331 361
       postAccepts(ParamsQuery).then(response => {
332 362
         if (response.data.state == 0) {
333 363
           this.$message.error(response.data.msg);
@@ -342,7 +372,8 @@ export default {
342 372
 
343 373
           let receive_treatment_asses_resp =
344 374
             response.data.data.receiveTreatmentAsses;
345
-          //prop
375
+
376
+          //pror
346 377
           var receiver_treatment_access = this.receiver_treatment_access;
347 378
           for (var index in receive_treatment_asses_resp) {
348 379
             // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
@@ -436,6 +467,7 @@ export default {
436 467
     this.posture_arr = getDataConfig("hemodialysis", "posture");
437 468
     this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
438 469
     this.precaution_arr = getDataConfig("hemodialysis", "precaution");
470
+    console.log("风险", this.precaution_arr);
439 471
     this.intake_arr = getDataConfig("hemodialysis", "intake");
440 472
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
441 473
   }

+ 32 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Näytä tiedosto

@@ -740,30 +740,39 @@
740 740
               :isChecked="
741 741
                 receiverTreatmentAccess.danger_level == 4 ? true : false
742 742
               "
743
-            ></label-box
744
-            >跌倒风险预防措施:
743
+            >
744
+            </label-box
745
+            ><span>&nbsp;&nbsp;</span>跌倒风险预防措施:
745 746
             <label-box
746
-              showValue="镇剂"
747
+              showValue="镇剂"
747 748
               :isChecked="
748
-                receiverTreatmentAccess.precaution == 1 ? true : false
749
+                receiverTreatmentAccess.precaution.indexOf('镇定剂') > -1
750
+                  ? true
751
+                  : false
749 752
               "
750 753
             ></label-box>
751 754
             <label-box
752 755
               showValue="约束带"
753 756
               :isChecked="
754
-                receiverTreatmentAccess.precaution == 2 ? true : false
757
+                receiverTreatmentAccess.precaution.indexOf('约束带') > -1
758
+                  ? true
759
+                  : false
755 760
               "
756 761
             ></label-box>
757 762
             <label-box
758 763
               showValue="床栏"
759 764
               :isChecked="
760
-                receiverTreatmentAccess.precaution == 3 ? true : false
765
+                receiverTreatmentAccess.precaution.indexOf('床栏') > -1
766
+                  ? true
767
+                  : false
761 768
               "
762 769
             ></label-box>
763 770
             <label-box
764 771
               showValue="加强宣传"
765 772
               :isChecked="
766
-                receiverTreatmentAccess.precaution == 4 ? true : false
773
+                receiverTreatmentAccess.precaution.indexOf('加强宣传') > -1
774
+                  ? true
775
+                  : false
767 776
               "
768 777
             ></label-box>
769 778
           </td>
@@ -961,7 +970,7 @@
961 970
         </tr>
962 971
         <tr>
963 972
           <td style="text-align:left;">
964
-            置换液总量:{{ afterdialysis.actual_displacement }} L
973
+            实际置换量:{{ afterdialysis.actual_displacement }} L
965 974
           </td>
966 975
           <td style="text-align:left;" colspan="11">
967 976
             <span style="display:inline-block;margin-left:15px;">
@@ -1685,6 +1694,20 @@ export default {
1685 1694
           this.schedule = schedule;
1686 1695
           var receiverTreatmentAccess =
1687 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 1711
           console.log("接诊评估", receiverTreatmentAccess);
1689 1712
           this.receiverTreatmentAccess = receiverTreatmentAccess;
1690 1713
           var dialysisway = response.data.data.dialysisway;
@@ -2099,6 +2122,7 @@ export default {
2099 2122
     this.postures = getDataConfig("hemodialysis", "posture");
2100 2123
     this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
2101 2124
     this.precautions = getDataConfig("hemodialysis", "precaution");
2125
+    console.log("跌倒", this.precautions);
2102 2126
     this.intake = getDataConfig("hemodialysis", "intake");
2103 2127
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2104 2128
     var bloodAccess = getDataConfig("hemodialysis", "vascular_access");

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