Bläddra i källkod

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx 5 år sedan
förälder
incheckning
8f5c2e03d2

+ 2 - 5
src/xt_pages/dialysis/batch_print/batch_print_order.vue Visa fil

1137
                       </div>
1137
                       </div>
1138
                       <div class="inline_block" style="margin-left: 20px;">
1138
                       <div class="inline_block" style="margin-left: 20px;">
1139
                         透析器凝血:
1139
                         透析器凝血:
1140
-                        <div
1141
-                          class="under_line"
1142
-                          style="width: 100px"
1143
-                        >
1140
+                        <div class="under_line" style="width: 100px">
1144
                           {{
1141
                           {{
1145
                             record.assessment_after_dislysis &&
1142
                             record.assessment_after_dislysis &&
1146
                             record.assessment_after_dislysis.cruor
1143
                             record.assessment_after_dislysis.cruor
2085
       });
2082
       });
2086
   },
2083
   },
2087
   methods: {
2084
   methods: {
2088
-   getAge: function(val) {
2085
+    getAge: function(val) {
2089
       val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2086
       val.birth = uParseTime(val.birthday, "{y}-{m}-{d}");
2090
       if (
2087
       if (
2091
         this.org_template_info.template_id == 2 ||
2088
         this.org_template_info.template_id == 2 ||

+ 2 - 2
src/xt_pages/dialysis/details/assessmentBefore.vue Visa fil

268
           <span class="unit"> </span>
268
           <span class="unit"> </span>
269
         </li>
269
         </li>
270
 
270
 
271
-        <li v-if="isShow('内瘘皮肤情况')">
272
-          <label>内瘘皮肤情况: </label>
271
+        <li v-if="isShow('血管通路皮肤情况')">
272
+          <label>血管通路皮肤情况: </label>
273
           <span class="content">{{ internal_fistula_skin }}</span>
273
           <span class="content">{{ internal_fistula_skin }}</span>
274
           <span class="unit"></span>
274
           <span class="unit"></span>
275
         </li>
275
         </li>

+ 48 - 16
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Visa fil

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
   }

+ 37 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Visa fil

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>
960
           </td>
969
           </td>
961
         </tr>
970
         </tr>
962
         <tr>
971
         <tr>
963
-          <td style="text-align:left;">
964
-            置换液总量:{{ afterdialysis.actual_displacement }} L
972
+          <td style="text-align:left;" colspan="2">
973
+            <span style="display:inline-block;margin-left:15px;">
974
+              实际置换量:{{ afterdialysis.actual_displacement }} L
975
+            </span>
965
           </td>
976
           </td>
966
-          <td style="text-align:left;" colspan="11">
977
+          <td style="text-align:left;" colspan="10">
967
             <span style="display:inline-block;margin-left:15px;">
978
             <span style="display:inline-block;margin-left:15px;">
968
               内瘘搏动及震颤音:
979
               内瘘搏动及震颤音:
969
               <label-box
980
               <label-box
1685
           this.schedule = schedule;
1696
           this.schedule = schedule;
1686
           var receiverTreatmentAccess =
1697
           var receiverTreatmentAccess =
1687
             response.data.data.receiverTreatmentAccess;
1698
             response.data.data.receiverTreatmentAccess;
1699
+          var obj = receiverTreatmentAccess.precaution;
1700
+          var arr = obj.split(",");
1701
+          console.log("arr", arr);
1702
+          var arr2 = [];
1703
+          for (let i = 0; i < this.precautions.length; i++) {
1704
+            for (let j = 0; j < arr.length; j++) {
1705
+              if (this.precautions[i].id == parseInt(arr[j])) {
1706
+                arr2.push(this.precautions[i].name);
1707
+              }
1708
+            }
1709
+          }
1710
+          var obj2 = arr2.join(",");
1711
+          console.log("obj2", obj2);
1712
+          receiverTreatmentAccess.precaution = obj2;
1688
           console.log("接诊评估", receiverTreatmentAccess);
1713
           console.log("接诊评估", receiverTreatmentAccess);
1689
           this.receiverTreatmentAccess = receiverTreatmentAccess;
1714
           this.receiverTreatmentAccess = receiverTreatmentAccess;
1690
           var dialysisway = response.data.data.dialysisway;
1715
           var dialysisway = response.data.data.dialysisway;
2094
     }
2119
     }
2095
 
2120
 
2096
     this.ways = getDataConfig("hemodialysis", "way");
2121
     this.ways = getDataConfig("hemodialysis", "way");
2122
+    console.log("ways", this.ways);
2097
     this.consciousnesses = getDataConfig("hemodialysis", "consciousness");
2123
     this.consciousnesses = getDataConfig("hemodialysis", "consciousness");
2098
     this.appetites = getDataConfig("hemodialysis", "appetite");
2124
     this.appetites = getDataConfig("hemodialysis", "appetite");
2099
     this.postures = getDataConfig("hemodialysis", "posture");
2125
     this.postures = getDataConfig("hemodialysis", "posture");
2100
     this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
2126
     this.sick_condition = getDataConfig("hemodialysis", "sick_condition");
2101
     this.precautions = getDataConfig("hemodialysis", "precaution");
2127
     this.precautions = getDataConfig("hemodialysis", "precaution");
2128
+    console.log("跌倒", this.precautions);
2102
     this.intake = getDataConfig("hemodialysis", "intake");
2129
     this.intake = getDataConfig("hemodialysis", "intake");
2103
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2130
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2104
     var bloodAccess = getDataConfig("hemodialysis", "vascular_access");
2131
     var bloodAccess = getDataConfig("hemodialysis", "vascular_access");

+ 38 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Visa fil

1413
                       <div style="display:flex;justify-content:space-between;">
1413
                       <div style="display:flex;justify-content:space-between;">
1414
                         <label-box
1414
                         <label-box
1415
                           :isChecked="
1415
                           :isChecked="
1416
-                            afterdialysis.tremor_noise == 1 ? true : false
1416
+                           afterdialysis.internal_fistula.indexOf('震颤-存在')>-1?true:false
1417
                           "
1417
                           "
1418
                           showValue="存在"
1418
                           showValue="存在"
1419
                         ></label-box>
1419
                         ></label-box>
1420
                         <label-box
1420
                         <label-box
1421
                           :isChecked="
1421
                           :isChecked="
1422
-                            afterdialysis.tremor_noise == 3 ? true : false
1422
+                            afterdialysis.internal_fistula.indexOf('震颤-减弱')>-1? true : false
1423
                           "
1423
                           "
1424
                           showValue="减弱"
1424
                           showValue="减弱"
1425
                         ></label-box>
1425
                         ></label-box>
1426
                         <label-box
1426
                         <label-box
1427
                           :isChecked="
1427
                           :isChecked="
1428
-                            afterdialysis.tremor_noise == 2 ? true : false
1428
+                             afterdialysis.internal_fistula.indexOf('震颤-无')>-1 ? true : false
1429
                           "
1429
                           "
1430
                           showValue="不存在"
1430
                           showValue="不存在"
1431
                         ></label-box>
1431
                         ></label-box>
1488
                     <td width="40">肝素:</td>
1488
                     <td width="40">肝素:</td>
1489
                     <td width="30">A端</td>
1489
                     <td width="30">A端</td>
1490
                     <td width="30">
1490
                     <td width="30">
1491
-                      <div class="under-line">&nbsp;</div>
1491
+                      <div class="under-line">&nbsp;{{
1492
+                        afterdialysis.cvc_a
1493
+                        ? afterdialysis.cvc_a
1494
+                        : ""
1495
+                        }}</div>
1492
                     </td>
1496
                     </td>
1493
                     <td width="20">ml</td>
1497
                     <td width="20">ml</td>
1494
                     <td width="30">V端</td>
1498
                     <td width="30">V端</td>
1495
                     <td width="30">
1499
                     <td width="30">
1496
-                      <div class="under-line">&nbsp;</div>
1500
+                      <div class="under-line">{{
1501
+                        afterdialysis.cvc_v
1502
+                        ? afterdialysis.cvc_v
1503
+                        : ""
1504
+                        }}</div>
1497
                     </td>
1505
                     </td>
1498
                     <td width="20">ml</td>
1506
                     <td width="20">ml</td>
1499
                     <td></td>
1507
                     <td></td>
1509
                       <div style="display:flex;justify-content:space-between;">
1517
                       <div style="display:flex;justify-content:space-between;">
1510
                         <label-box
1518
                         <label-box
1511
                           :isChecked="
1519
                           :isChecked="
1512
-                            afterdialysis.complications_index.indexOf('无') > -1
1520
+                            afterdialysis.complication.indexOf('无') > -1
1513
                               ? true
1521
                               ? true
1514
                               : false
1522
                               : false
1515
                           "
1523
                           "
1517
                         ></label-box>
1525
                         ></label-box>
1518
                         <label-box
1526
                         <label-box
1519
                           :isChecked="
1527
                           :isChecked="
1520
-                            afterdialysis.complications_index.indexOf('头晕') >
1528
+                            afterdialysis.complication.indexOf('头晕') >
1521
                             -1
1529
                             -1
1522
                               ? true
1530
                               ? true
1523
                               : false
1531
                               : false
1526
                         ></label-box>
1534
                         ></label-box>
1527
                         <label-box
1535
                         <label-box
1528
                           :isChecked="
1536
                           :isChecked="
1529
-                            afterdialysis.complications_index.indexOf('头痛') >
1537
+                            afterdialysis.complication.indexOf('头痛') >
1530
                             -1
1538
                             -1
1531
                               ? true
1539
                               ? true
1532
                               : false
1540
                               : false
1535
                         ></label-box>
1543
                         ></label-box>
1536
                         <label-box
1544
                         <label-box
1537
                           :isChecked="
1545
                           :isChecked="
1538
-                            afterdialysis.complications_index.indexOf('呕吐') >
1546
+                            afterdialysis.complication.indexOf('呕吐') >
1539
                             -1
1547
                             -1
1540
                               ? true
1548
                               ? true
1541
                               : false
1549
                               : false
1544
                         ></label-box>
1552
                         ></label-box>
1545
                         <label-box
1553
                         <label-box
1546
                           :isChecked="
1554
                           :isChecked="
1547
-                            afterdialysis.complications_index.indexOf(
1555
+                            afterdialysis.complication.indexOf(
1548
                               '低血压'
1556
                               '低血压'
1549
                             ) > -1
1557
                             ) > -1
1550
                               ? true
1558
                               ? true
1555
                         <label-box showValue="发热"></label-box>
1563
                         <label-box showValue="发热"></label-box>
1556
                         <label-box
1564
                         <label-box
1557
                           :isChecked="
1565
                           :isChecked="
1558
-                            afterdialysis.complications_index.indexOf('抽搐') >
1566
+                            afterdialysis.complication.indexOf('抽搐') >
1559
                             -1
1567
                             -1
1560
                               ? true
1568
                               ? true
1561
                               : false
1569
                               : false
1564
                         ></label-box>
1572
                         ></label-box>
1565
                         <label-box
1573
                         <label-box
1566
                           :isChecked="
1574
                           :isChecked="
1567
-                            afterdialysis.complications_index.indexOf(
1575
+                            afterdialysis.complication.indexOf(
1568
                               '高血压'
1576
                               '高血压'
1569
                             ) > -1
1577
                             ) > -1
1570
                               ? true
1578
                               ? true
1574
                         ></label-box>
1582
                         ></label-box>
1575
                         <label-box
1583
                         <label-box
1576
                           :isChecked="
1584
                           :isChecked="
1577
-                            afterdialysis.complications_index.indexOf(
1585
+                            afterdialysis.complication.indexOf(
1578
                               '心律失常'
1586
                               '心律失常'
1579
                             ) > -1
1587
                             ) > -1
1580
                               ? true
1588
                               ? true
1631
                       <div style="display:flex;justify-content:space-between;">
1639
                       <div style="display:flex;justify-content:space-between;">
1632
                         <label-box
1640
                         <label-box
1633
                           :isChecked="
1641
                           :isChecked="
1634
-                            afterdialysis.dialyzer == 1 ? true : false
1642
+                            afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false
1635
                           "
1643
                           "
1636
                           showValue="无"
1644
                           showValue="无"
1637
                         ></label-box>
1645
                         ></label-box>
1638
                         <label-box
1646
                         <label-box
1639
                           :isChecked="
1647
                           :isChecked="
1640
-                            afterdialysis.dialyzer == 2 ? true : false
1648
+                             afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false
1641
                           "
1649
                           "
1642
                           showValue="+"
1650
                           showValue="+"
1643
                         ></label-box>
1651
                         ></label-box>
1644
                         <label-box
1652
                         <label-box
1645
                           :isChecked="
1653
                           :isChecked="
1646
-                            afterdialysis.dialyzer == 3 ? true : false
1654
+                            afterdialysis.cruor.indexOf('透析器-Ⅱ度') >  -1 ? true : false
1647
                           "
1655
                           "
1648
                           showValue="+ +"
1656
                           showValue="+ +"
1649
                         ></label-box>
1657
                         ></label-box>
1650
                         <label-box
1658
                         <label-box
1651
                           :isChecked="
1659
                           :isChecked="
1652
-                            afterdialysis.dialyzer == 4 ? true : false
1660
+                            afterdialysis.cruor.indexOf('透析器-Ⅲ度')> -1  ? true : false
1653
                           "
1661
                           "
1654
                           showValue="+ + +"
1662
                           showValue="+ + +"
1655
                         ></label-box>
1663
                         ></label-box>
1659
                     <td width="60">管路:</td>
1667
                     <td width="60">管路:</td>
1660
                     <td width="220">
1668
                     <td width="220">
1661
                       <div style="display:flex;justify-content:space-between;">
1669
                       <div style="display:flex;justify-content:space-between;">
1662
-                        <label-box showValue="无"></label-box>
1663
-                        <label-box showValue="+"></label-box>
1664
-                        <label-box showValue="+ +"></label-box>
1665
-                        <label-box showValue="+ + +"></label-box>
1670
+                        <label-box showValue="无" :isChecked="
1671
+                            afterdialysis.channel == 1 ? true : false
1672
+                          "></label-box>
1673
+                        <label-box showValue="+" :isChecked="
1674
+                            afterdialysis.channel == 2 ? true : false
1675
+                          "></label-box>
1676
+                        <label-box showValue="+ +" :isChecked="
1677
+                            afterdialysis.channel == 3  ? true : false
1678
+                          "></label-box>
1679
+                        <label-box showValue="+ + +" :isChecked="
1680
+                            afterdialysis.channel == 4 ? true : false
1681
+                          "></label-box>
1666
                       </div>
1682
                       </div>
1667
                     </td>
1683
                     </td>
1668
                     <td></td>
1684
                     <td></td>
2038
               <span v-if="advice[0].advice_desc"
2054
               <span v-if="advice[0].advice_desc"
2039
                 >{{ advice[0].advice_desc }}{{ advice[0].drug_spec_unit }}</span
2055
                 >{{ advice[0].advice_desc }}{{ advice[0].drug_spec_unit }}</span
2040
               >
2056
               >
2041
-              
2057
+
2042
               <span v-if="advice[0].prescribing_number"
2058
               <span v-if="advice[0].prescribing_number"
2043
                 >* {{ advice[0].prescribing_number
2059
                 >* {{ advice[0].prescribing_number
2044
                 }}{{ advice[0].prescribing_number_unit }}</span
2060
                 }}{{ advice[0].prescribing_number_unit }}</span

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 3234 - 1756
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue