Browse Source

新分支

28169 1 year ago
parent
commit
3f727dd7d4
36 changed files with 1632 additions and 722 deletions
  1. 2 1
      config/sit.env.js
  2. 1 0
      src/api/advice.js
  3. 1 1
      src/api/patient.js
  4. 1 0
      src/xt_pages/Pharmacy/PatientDispensing.vue
  5. 68 12
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue
  6. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  7. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  8. 13 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  9. 5 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  10. 38 5
      src/xt_pages/dialysis/details/consumable/dialysisGood.vue
  11. 31 1
      src/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint.vue
  12. 5 1
      src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue
  13. 30 0
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  14. 30 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  15. 7 5
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  16. 8 0
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  17. 87 22
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  18. 11 5
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  19. 5 3
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  20. 80 19
      src/xt_pages/dialysis/signPrint.vue
  21. 8 8
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  22. 3 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  23. 566 562
      src/xt_pages/outpatientTool/components/detail.vue
  24. 1 0
      src/xt_pages/stock/drugs/components/drugQuery.vue
  25. 5 4
      src/xt_pages/stock/query/goodNewQuery.vue
  26. 1 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  27. 29 5
      src/xt_pages/user/components/EditGroupAdvice.vue
  28. 2 3
      src/xt_pages/user/coursePrint.vue
  29. 40 6
      src/xt_pages/user/doctorAdvice.vue
  30. 425 8
      src/xt_pages/user/firstDisease.vue
  31. 44 4
      src/xt_pages/user/firstDiseasePrint.vue
  32. 71 30
      src/xt_pages/user/hospitalSummaryPrint.vue
  33. 4 4
      src/xt_pages/workforce/components/editTableData.vue
  34. 1 1
      src/xt_pages/workforce/components/nextTableWeeks.vue
  35. 1 1
      src/xt_pages/workforce/components/tableWeeks.vue
  36. 4 5
      src/xt_pages/workforce/editTableData.vue

+ 2 - 1
config/sit.env.js View File

@@ -1,7 +1,8 @@
1 1
 module.exports = {
2 2
   NODE_ENV: '"production"',
3 3
   ENV_CONFIG: '"sit"',
4
-  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"',
4
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"',
5
+  BASE_API: '"https://api.xt.test.sgjyun.com"',
5 6
   SSO_HOST: '"https://testsso.sgjyun.com"',
6 7
   SRCM_HOST: '"http://test1.sgjyun.com"',
7 8
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 1 - 0
src/api/advice.js View File

@@ -376,6 +376,7 @@ export function CreateNewDoctorAdvice(id, advice, mode) {
376 376
 }
377 377
 
378 378
 export function CreateNewGroupAdvice(id, groupno, advices, mode) {
379
+  console.log("advices2332332233w",advices)
379 380
   if (advices.remind > 0) {
380 381
     return request({
381 382
       url:

+ 1 - 1
src/api/patient.js View File

@@ -509,7 +509,7 @@ export function getInspectionItemList(params) {
509 509
 }
510 510
 
511 511
 export function saveCreation(data) {
512
-  console.log('中国龚3223呃3额', data)
512
+ 
513 513
   return request({
514 514
     url: '/api/patient/savecreationinspection',
515 515
     method: 'post',

+ 1 - 0
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -463,6 +463,7 @@ export default {
463 463
         shift: this.shift,
464 464
         partition: this.partition,
465 465
       };
466
+      console.log("班次---------------------",params)
466 467
       waitingdrug(params).then((res) => {
467 468
         if (res.data.state == 1) {
468 469
           this.waitmount_data = res.data.data.list;

+ 68 - 12
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

@@ -52,7 +52,7 @@
52 52
               <div class="inline_block">
53 53
                 姓名:
54 54
                 <div class="under_line" style="width: 50px; text-align: center">
55
-                  {{ record.patient.name }}
55
+                  {{nameSplit(record.patient.name) }}
56 56
                 </div>
57 57
               </div>
58 58
               <div class="inline_block" style="margin-left: 10px">
@@ -309,7 +309,13 @@
309 309
                             class="under_line"
310 310
                             style="width: 200px; text-align: center"
311 311
                           >
312
-                            {{
312
+                          <span v-if="record.dialysis_order != null">
313
+                          
314
+                            {{QueryPartById(record.dialysis_order.blood_access_id) }}
315
+                          <!-- {{
316
+                              record.dialysisOrder && QueryPartById(record.dialysisOrder.blood_access_id)? QueryPartById(record.dialysisOrder.blood_access_id): ""}} -->
317
+                          </span>
318
+                            <!-- {{
313 319
                               record.assessment_before_dislysis &&
314 320
                               record.assessment_before_dislysis
315 321
                                 .blood_access_part_id
@@ -324,7 +330,7 @@
324 330
                                 ? record.assessment_before_dislysis
325 331
                                     .blood_access_part_opera_name
326 332
                                 : ""
327
-                            }}
333
+                            }} -->
328 334
                           </div>
329 335
                         </div>
330 336
                      
@@ -683,7 +689,19 @@
683 689
                             class="under_line"
684 690
                             style="width: 100px; text-align: center"
685 691
                           >
686
-                            {{
692
+                          <span v-if="record.dialysis_order != null"
693
+                                  >{{
694
+                                    record.dialysis_order.dialysis_dialyszers
695
+                                      ? record.dialysis_order.dialysis_dialyszers
696
+                                      : ""
697
+                                  }}&nbsp;&nbsp;
698
+                                  {{
699
+                                    record.dialysis_order.dialysis_irrigation
700
+                                      ? record.dialysis_order.dialysis_irrigation
701
+                                      : ""
702
+                                  }}
703
+                           </span>
704
+                            <!-- {{
687 705
                               record.prescription &&
688 706
                               record.prescription.dialyzer_perfusion_apparatus
689 707
                                 ? record.prescription.dialyzer_perfusion_apparatus
@@ -694,7 +712,7 @@
694 712
                               record.prescription.dialysis_dialyszers
695 713
                                 ? record.prescription.dialysis_dialyszers
696 714
                                 : "/"
697
-                            }}
715
+                            }} -->
698 716
                           </div>
699 717
                         </div>
700 718
                         <div class="inline_block" style="flex: 1">
@@ -703,12 +721,24 @@
703 721
                             class="under_line"
704 722
                             style="width: 70px; text-align: center"
705 723
                           >
706
-                            {{
724
+                            <!-- {{
707 725
                               record.prescription &&
708 726
                               record.prescription.dialysis_irrigation
709 727
                                 ? record.prescription.dialysis_irrigation
710 728
                                 : "/"
711
-                            }}
729
+                            }} -->
730
+                            <span v-if="record.dialysis_order != null"
731
+                                  >{{
732
+                                    record.dialysis_order.dialysis_dialyszers
733
+                                      ? record.dialysis_order.dialysis_dialyszers
734
+                                      : ""
735
+                                  }}&nbsp;&nbsp;
736
+                                  {{
737
+                                    record.dialysis_order.dialysis_irrigation
738
+                                      ? record.dialysis_order.dialysis_irrigation
739
+                                      : ""
740
+                              }}
741
+                           </span>
712 742
                           </div>
713 743
                         </div>
714 744
                         <div
@@ -1859,10 +1889,6 @@
1859 1889
                           kg
1860 1890
                         </div>
1861 1891
   
1862
-                       
1863
-  
1864
-                      
1865
-  
1866 1892
                         <div class="inline_block" style="flex: 1">
1867 1893
                           实际超滤量:
1868 1894
                           <div
@@ -1875,7 +1901,7 @@
1875 1901
                                 .actual_ultrafiltration
1876 1902
                                 ? record.assessment_after_dislysis
1877 1903
                                     .actual_ultrafiltration
1878
-                                : "/"
1904
+                                : "0"
1879 1905
                             }}
1880 1906
                           </div>
1881 1907
                           ml
@@ -2969,6 +2995,36 @@
2969 2995
       getNumber: function (record) {
2970 2996
         console.log(record);
2971 2997
       },
2998
+
2999
+      // 切割患者姓名
3000
+      nameSplit(val) {
3001
+        var reg = /[\u4e00-\u9fa5]/g;
3002
+        let name = val;
3003
+        name = name.substr(-3);
3004
+        var names = name.match(reg);
3005
+        name = names.join("");
3006
+        if (name.includes("区")) {
3007
+          name = name.replace("区", "");
3008
+        }
3009
+        if (name.includes("右")) {
3010
+          name = name.replace("右", "");
3011
+        }
3012
+        return name;
3013
+      },
3014
+      QueryPartById: function (val) {
3015
+      let vascular_access_part_name = "/";
3016
+      const vascular_access = getDataConfig(
3017
+        "hemodialysis",
3018
+        "vascular_access_desc"
3019
+      );
3020
+
3021
+      for (let i = 0; i < vascular_access.length; i++) {
3022
+        if (vascular_access[i].id == val) {
3023
+          vascular_access_part_name = vascular_access[i].name;
3024
+        }
3025
+      }
3026
+      return vascular_access_part_name;
3027
+    },
2972 3028
     },
2973 3029
   };
2974 3030
   </script>

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -934,8 +934,8 @@
934 934
                               : "/"
935 935
                           }}
936 936
                         </div>
937
-                         <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
938
-                         <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
937
+                         <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
938
+                         <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">L</span>
939 939
                       </div>
940 940
                       <div class="inline_block" style="flex: 1">
941 941
                         干体重:

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue View File

@@ -392,14 +392,14 @@
392 392
                       >置换方式:
393 393
                        <label-box
394 394
                          :isChecked="
395
-                          record.prescription.displace_liqui_part == 1 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12 ? true : false
395
+                          record.prescription.displace_liqui_part == 1 && (record.prescription.mode_id == 2 ||  record.prescription.mode_id == 5 || record.prescription.mode_id == 12) ? true : false
396 396
                           "
397 397
                          showValue="前"
398 398
                          ></label-box
399 399
                          >&nbsp;
400 400
                         <label-box
401 401
                           :isChecked="
402
-                            record.prescription.displace_liqui_part == 2 && record.prescription.mode_id != 2 &&  record.prescription.mode_id != 5 && record.prescription.mode_id != 12? true : false
402
+                            record.prescription.displace_liqui_part == 2 && (record.prescription.mode_id == 2 ||  record.prescription.mode_id == 5 || record.prescription.mode_id == 12)? true : false
403 403
                           "
404 404
                           showValue="后"
405 405
                         ></label-box>

+ 13 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -543,6 +543,15 @@
543 543
           align="center"
544 544
           width="100"
545 545
         ></el-table-column>
546
+
547
+        <el-table-column
548
+          v-if="org_id == 10469"
549
+          prop="prescription_water"
550
+          label="处方脱水量"
551
+          align="center"
552
+          width="100"
553
+        ></el-table-column>
554
+
546 555
         <el-table-column
547 556
           prop="dry_weight"
548 557
           label="干体重(kg)"
@@ -1590,6 +1599,10 @@ export default {
1590 1599
                 SchedualPatientsTable["target_ultrafiltration"] = response.data.data.schedule[i].prescription.target_ultrafiltration;
1591 1600
               }
1592 1601
 
1602
+              if(response.data.data.schedule[i].prescription!=null){
1603
+                SchedualPatientsTable["prescription_water"] = response.data.data.schedule[i].prescription.prescription_water;
1604
+              }
1605
+
1593 1606
               if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1594 1607
                 SchedualPatientsTable["dialysis_before_weight"] =response.data.data.schedule[i].assessment_before_dislysis.weight_before;
1595 1608
               }

+ 5 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -66,6 +66,11 @@
66 66
           <span class="content">{{ this.record.puncture_needle }}</span>
67 67
         </li>
68 68
 
69
+        <li v-if="isShow('穿刺点')">
70
+          <label>穿刺点 : </label>
71
+          <span class="content">{{ this.record.point_puncture }}</span>
72
+        </li>
73
+
69 74
         <li v-if="isShow('位置')">
70 75
           <label>位置</label>
71 76
           <span

+ 38 - 5
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -507,7 +507,7 @@
507 507
       this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
508 508
       var filedList = this.$store.getters.xt_user.fileds
509 509
       for (let i = 0; i < filedList.length; i++) {
510
-        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针')) {
510
+        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针' || filedList[i].filed_name_cn == '滤过器')) {
511 511
           this.rowList.push(filedList[i])
512 512
         }
513 513
       }
@@ -524,7 +524,7 @@
524 524
          arr.push('透析机号')
525 525
          arr.push('姓名')
526 526
          arr.push('透析号')
527
-
527
+     
528 528
         //  console.log("list23322323232",this.rowList)
529 529
          if(this.rowList!=null && this.rowList.length > 0){
530 530
            for(let i=0;i<this.rowList.length;i++){
@@ -802,6 +802,7 @@
802 802
                  list[i].dialyzer_perfusion_apparatus_arr = []
803 803
                  list[i].dialysis_irrigation_arr = []
804 804
                  list[i].puncture_needle_arr = []
805
+                 list[i].dialysis_strainer_arr = []
805 806
 
806 807
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
807 808
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
@@ -812,6 +813,9 @@
812 813
                  if(list[i].dialysis_solution.dialysis_irrigation!=""){
813 814
                    list[i].dialysis_irrigation_arr = list[i].dialysis_solution.dialysis_irrigation.split(",")
814 815
                  }
816
+                 if(list[i].dialysis_solution.dialysis_strainer!=""){
817
+                   list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
818
+                 }
815 819
                  if(list[i].dialysis_solution.puncture_needle!="" ){
816 820
                     list[i].puncture_needle_arr = list[i].dialysis_solution.puncture_needle.split(",")
817 821
                  }
@@ -996,6 +1000,7 @@
996 1000
             var dialysisDialyszersArr = []
997 1001
             var dialyzerPerfusionApparaArr = []
998 1002
             var dialysisIrrigationArr = []
1003
+            var dialysisStrainerArr = []
999 1004
             var punctureNeedleArr = []
1000 1005
 
1001 1006
 
@@ -1013,11 +1018,15 @@
1013 1018
              for(let h=0;h<list[i].puncture_needle_arr.length;h++){
1014 1019
                punctureNeedleArr.push(list[i].puncture_needle_arr[h])
1015 1020
              }
1021
+             for(let w=0;w<list[i].dialysis_strainer_arr.length;w++){
1022
+              dialysisStrainerArr.push(list[i].dialysis_strainer_arr[w])
1023
+             }
1016 1024
             }
1017 1025
            let obj = {}
1018 1026
            let objOne = {}
1019 1027
            let objTwo = {}
1020 1028
            let objThree = {}
1029
+           let objFour = {}
1021 1030
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
1022 1031
             if(obj[dialysisDialyszersArr[i]]){
1023 1032
                obj[dialysisDialyszersArr[i]] +=1
@@ -1084,8 +1093,28 @@
1084 1093
               a.specification_name = i
1085 1094
               Arr.push(a);
1086 1095
             }
1096
+           
1097
+          
1098
+       
1099
+           for(let i=0;i<dialysisStrainerArr.length;i++){
1100
+            if(objFour[dialysisStrainerArr[i]]){
1101
+              objFour[dialysisStrainerArr[i]] +=1
1102
+             }else{
1103
+              objFour[dialysisStrainerArr[i]] = 1
1104
+             }
1105
+           }
1106
+          
1107
+            for (let i in objFour) {
1108
+              let a = {};
1109
+              a[i] = objFour[i];
1110
+              a.name = "滤过器"
1111
+              a.count = objFour[i]
1112
+              a.specification_name = i
1113
+              Arr.push(a);
1114
+            }
1087 1115
 
1088
-
1116
+       
1117
+           
1089 1118
 
1090 1119
 
1091 1120
           //  var objfive = {name:"钾(mmol/L)",specification_name:"2.0",count:""}
@@ -1103,7 +1132,7 @@
1103 1132
             // this.tableList.push(objsix)
1104 1133
             // this.tableList.push(objseven)
1105 1134
             // this.tableList.push(objeight)
1106
-
1135
+            console.log("arARRRR2323223232=------------",Arr)
1107 1136
             for(let i=0;i<Arr.length;i++){
1108 1137
               for(let j=0;j<this.rowList.length;j++){
1109 1138
                 if(Arr[i].name == this.rowList[j].filed_name_cn){
@@ -1187,7 +1216,7 @@
1187 1216
                  newArr[i].count += parseInt(newArr[i].child[j].count)
1188 1217
               }
1189 1218
             }
1190
-            // console.log("newArr32323233223wo",newArr)
1219
+            console.log("newArr32323233223wo",newArr)
1191 1220
             this.tableList = newArr
1192 1221
           }
1193 1222
         })
@@ -1361,6 +1390,10 @@
1361 1390
         if(filed_name_cn == "最大超滤率"){
1362 1391
           return val.max_ultrafiltration_rate?val.max_ultrafiltration_rate:""
1363 1392
         }
1393
+
1394
+        if(filed_name_cn == "滤过器"){
1395
+          return val.dialysis_strainer?val.dialysis_strainer:""
1396
+        }
1364 1397
       },
1365 1398
       getModeName(id){
1366 1399
         var name = ""

+ 31 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodCountPrint.vue View File

@@ -108,7 +108,7 @@
108 108
       this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
109 109
       var filedList = this.$store.getters.xt_user.fileds
110 110
       for (let i = 0; i < filedList.length; i++) {
111
-        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针')) {
111
+        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针'|| filedList[i].filed_name_cn == '滤过器')) {
112 112
           this.rowList.push(filedList[i])
113 113
         }
114 114
       }
@@ -347,6 +347,10 @@
347 347
         if(filed_name_cn == "最大超滤率"){
348 348
           return val.max_ultrafiltration_rate
349 349
         }
350
+
351
+        if(filed_name_cn == "滤过器"){
352
+          return val.dialysis_strainer?val.dialysis_strainer:""
353
+        }
350 354
       },
351 355
 
352 356
        getModeName(id){
@@ -553,6 +557,7 @@
553 557
                  list[i].dialyzer_perfusion_apparatus_arr = []
554 558
                  list[i].dialysis_irrigation_arr = []
555 559
                  list[i].puncture_needle_arr = []
560
+                 list[i].dialysis_strainer_arr = []
556 561
                 
557 562
                  if(list[i].dialysis_solution.dialysis_dialyszers!=""){
558 563
                    list[i].dialysis_dialyszers_arr = list[i].dialysis_solution.dialysis_dialyszers.split(",")
@@ -566,6 +571,10 @@
566 571
                  if(list[i].dialysis_solution.puncture_needle!="" ){
567 572
                     list[i].puncture_needle_arr = list[i].dialysis_solution.puncture_needle.split(",")
568 573
                  }
574
+
575
+                 if(list[i].dialysis_solution.dialysis_strainer!=""){
576
+                   list[i].dialysis_strainer_arr = list[i].dialysis_solution.dialysis_strainer.split(",")
577
+                 }
569 578
                  kaliumCount += parseInt(list[i].dialysis_solution.kalium) 
570 579
                  sodiumCount += parseInt(list[i].dialysis_solution.sodium)
571 580
                  calciumCount +=parseInt(list[i].dialysis_solution.calcium)
@@ -749,6 +758,7 @@
749 758
             var dialyzerPerfusionApparaArr = []
750 759
             var dialysisIrrigationArr = []
751 760
             var punctureNeedleArr = []
761
+            var dialysisStrainerArr = []
752 762
             
753 763
           
754 764
             for(let i=0;i<list.length;i++){
@@ -765,11 +775,15 @@
765 775
              for(let h=0;h<list[i].puncture_needle_arr.length;h++){
766 776
                punctureNeedleArr.push(list[i].puncture_needle_arr[h])   
767 777
              }
778
+             for(let w=0;w<list[i].dialysis_strainer_arr.length;w++){
779
+              dialysisStrainerArr.push(list[i].dialysis_strainer_arr[w])
780
+             }
768 781
             }
769 782
            let obj = {}
770 783
            let objOne = {}
771 784
            let objTwo = {}
772 785
            let objThree = {}
786
+           let objFour = {}
773 787
            for(let i = 0 ; i < dialysisDialyszersArr.length; i++){
774 788
             if(obj[dialysisDialyszersArr[i]]){
775 789
                obj[dialysisDialyszersArr[i]] +=1
@@ -838,6 +852,22 @@
838 852
             }
839 853
             
840 854
           
855
+           for(let i=0;i<dialysisStrainerArr.length;i++){
856
+            if(objFour[dialysisStrainerArr[i]]){
857
+              objFour[dialysisStrainerArr[i]] +=1
858
+             }else{
859
+              objFour[dialysisStrainerArr[i]] = 1
860
+             }
861
+           }
862
+          
863
+            for (let i in objFour) {
864
+              let a = {};
865
+              a[i] = objFour[i];
866
+              a.name = "滤过器"
867
+              a.count = objFour[i]
868
+              a.specification_name = i
869
+              Arr.push(a);
870
+            }
841 871
 
842 872
 
843 873
           //  var objfive = {name:"钾(mmol/L)",specification_name:"2.0",count:""}

+ 5 - 1
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue View File

@@ -135,7 +135,7 @@
135 135
       this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
136 136
       var filedList = this.$store.getters.xt_user.fileds
137 137
       for (let i = 0; i < filedList.length; i++) {
138
-        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针')) {
138
+        if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器'  || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖'  || filedList[i].filed_name_cn == '穿刺针' || filedList[i].filed_name_cn == '滤过器')) {
139 139
           this.rowList.push(filedList[i])
140 140
         }
141 141
       }
@@ -429,6 +429,10 @@
429 429
         if(filed_name_cn == "最大超滤率"){
430 430
           return val.max_ultrafiltration_rate?val.max_ultrafiltration_rate:""
431 431
         }
432
+
433
+        if(filed_name_cn == "滤过器"){
434
+          return val.dialysis_strainer?val.dialysis_strainer:""
435
+        }
432 436
       },
433 437
 
434 438
        getModeName(id){

+ 30 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

@@ -1648,6 +1648,36 @@ export default {
1648 1648
           }
1649 1649
       }
1650 1650
 
1651
+
1652
+      if( this.$store.getters.xt_user.org.id == 10471 ){
1653
+          var year = date.getFullYear()
1654
+          var month = date.getMonth() + 1
1655
+          var day = date.getDate()
1656
+
1657
+          var hours = date.getHours()
1658
+          var minites = date.getMinutes()
1659
+
1660
+          if (month < 10) {
1661
+            month = '0' + month
1662
+          }
1663
+          if (day < 10) {
1664
+            day = '0' + day
1665
+          }
1666
+          if (hours < 10) {
1667
+            hours = '0' + hours
1668
+          }
1669
+          if (minites < 10) {
1670
+            minites = '0' + minites
1671
+          }
1672
+          if (this.schedulePatient.schedule_type == 1) {
1673
+            this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
1674
+          } else if (this.schedulePatient.schedule_type == 2) {
1675
+            this.groupForm.start_time= year + '-' + month + '-' + day + ' ' + '11:00'
1676
+          } else if (this.schedulePatient.schedule_type == 3) {
1677
+           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
1678
+          }
1679
+      }
1680
+
1651 1681
     },
1652 1682
     selectAllTemplateAdvice(selection) {
1653 1683
       console.log("params",selection)

+ 30 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -340,6 +340,15 @@
340 340
             </el-form-item>
341 341
           </el-col>
342 342
 
343
+          <el-col :span="8">
344
+            <el-form-item label="穿刺点: " :prop="isName('穿刺点')"  v-if="isShow('穿刺点')&& assessmentBeforeDislysis.puncture_way.indexOf('绳梯')!==-1">
345
+              <el-input v-model="assessmentBeforeDislysis.point_puncture" readonly
346
+                      @focus="showInnerDialog('21')">
347
+              </el-input>
348
+            </el-form-item>
349
+          </el-col>
350
+
351
+
343 352
 
344 353
           <el-col :span="8">
345 354
             <el-form-item label="出血: " :prop="isName('出血')"
@@ -839,6 +848,7 @@
839 848
           age:"",
840 849
           his_department:"",
841 850
           his_bed:"",
851
+          point_puncture:""
842 852
         },
843 853
 
844 854
         InnerDialogProps: {
@@ -856,6 +866,7 @@
856 866
         catheter_maintenancelist:[],
857 867
         thrombuShow:false,
858 868
         body_weight_before:"",
869
+        point_punctures:[],
859 870
       }
860 871
     },
861 872
     props: {
@@ -940,6 +951,7 @@
940 951
         var filedList = store.getters.xt_user.fileds
941 952
         for (let i = 0; i < filedList.length; i++) {
942 953
           if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
954
+            console.log("filedList",filedList)
943 955
             return true
944 956
           }
945 957
         }
@@ -961,6 +973,10 @@
961 973
            this.thrombuShow = true
962 974
         }
963 975
 
976
+        if(this.lastPredialysisEvaluation.thromubus_type == 2){
977
+          this.assessmentBeforeDislysis.thromubus_type = this.lastPredialysisEvaluation.thromubus_type.toString()
978
+        }
979
+
964 980
           if (this.lastPredialysisEvaluation.is_hemorrhage == 1) {
965 981
             this.lastPredialysisEvaluation.is_hemorrhage = "1"
966 982
           }
@@ -1250,6 +1266,15 @@
1250 1266
             this.InnerDialogProps.type = 'suction'
1251 1267
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.suction
1252 1268
             this.InnerDialogProps.isShowTextArea = false
1269
+
1270
+            case '21': // 穿刺点
1271
+            this.InnerDialogProps.values =  this.point_punctures
1272
+            this.InnerDialogProps.titles = '穿刺点'
1273
+            this.InnerDialogProps.type = 'point_puncture'
1274
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.point_puncture
1275
+            this.InnerDialogProps.isShowTextArea = false
1276
+
1277
+            break
1253 1278
          
1254 1279
         }
1255 1280
       },
@@ -1320,6 +1345,9 @@
1320 1345
           case 'suction':
1321 1346
            this.assessmentBeforeDislysis.suction = val.value.join(',')
1322 1347
            break
1348
+           case 'point_puncture':
1349
+            this.assessmentBeforeDislysis.point_puncture = val.value.join(',')
1350
+            break
1323 1351
         }
1324 1352
       },
1325 1353
       innerDialogCancle: function() {
@@ -1514,6 +1542,8 @@
1514 1542
       console.log("导管维护",this.catheter_maintenancelist)
1515 1543
        
1516 1544
       console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
1545
+
1546
+      this.point_punctures = getDataConfig('hemodialysis','point_puncture')
1517 1547
       // this.weight_adjust.weight = this.dry_weight.dry_weight
1518 1548
 
1519 1549
       // if(this.predialysis_evaluation.id == 0){

+ 7 - 5
src/xt_pages/dialysis/details/dialog/computer_dialog.vue View File

@@ -59,7 +59,7 @@
59 59
         >
60 60
           <el-select v-model="form.nurse_id" placeholder="请选择上机护士">
61 61
             <el-option
62
-              v-for="(admin, index) in admins"
62
+              v-for="(admin, index) in adminRoles"
63 63
               :key="index"
64 64
               :value="admin.id"
65 65
               :label="admin.name"
@@ -128,7 +128,7 @@
128 128
         >
129 129
           <el-select v-model="form.washpipe_nurse" placeholder="请选择冲管护士">
130 130
             <el-option
131
-              v-for="(admin, index) in admins"
131
+              v-for="(admin, index) in adminRoles"
132 132
               :key="index"
133 133
               :value="admin.id"
134 134
               :label="admin.name"
@@ -583,13 +583,15 @@ export default {
583 583
           : this.getTime(this.dialysis_order.start_time, "{y}-{m}-{d} {h}:{i}");
584 584
     },
585 585
     admins: function () {
586
-      console.log("admins", this.admins);
586
+      // console.log("admins", this.admins);
587 587
       if (this.admins.length > 0) {
588 588
         for (let i = 0; i < this.admins.length; i++) {
589
-          this.adminRoles.push(this.admins[i]);
589
+          if(this.admins[i].status == 1){
590
+            this.adminRoles.push(this.admins[i]);
591
+          }
590 592
         }
591 593
       }
592
-      console.log("人员", this.adminRoles);
594
+     console.log("人员", this.adminRoles);
593 595
     },
594 596
     stockType: function () {
595 597
       console.log("stockType", this.stockType);

+ 8 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -2455,6 +2455,14 @@ mu
2455 2455
             } else if (schedual.schedule_type == 3) {
2456 2456
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2457 2457
             }
2458
+           }else if(this.$store.getters.xt_user.org.id == 10471){
2459
+              if (schedual.schedule_type == 1) {
2460
+              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2461
+            } else if (schedual.schedule_type == 2) {
2462
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2463
+            } else if (schedual.schedule_type == 3) {
2464
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2465
+            }
2458 2466
            } else {
2459 2467
             if (schedual.schedule_type == 1) {
2460 2468
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'

+ 87 - 22
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -89,8 +89,16 @@
89 89
 
90 90
       <el-form-item style="padding-left: 17px;">
91 91
         <el-checkbox-group v-model="checkList" @change="changeBox">
92
-          <el-checkbox :label="diazes"></el-checkbox>
92
+          <el-checkbox :label="diazes"></el-checkbox>&nbsp;&nbsp;
93
+          <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.dialyzer_batch_number"></el-input></span> 
94
+        </el-checkbox-group>
95
+        <el-checkbox-group v-model="checkList" @change="changeBox">
93 96
           <el-checkbox :label="puncture_needle"></el-checkbox>
97
+          <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.needle_batch_number"></el-input></span>
98
+        </el-checkbox-group>
99
+        <el-checkbox-group v-model="checkList" @change="changeBox">
100
+          <!-- <el-checkbox :label="diazes"></el-checkbox>
101
+          <el-checkbox :label="puncture_needle"></el-checkbox> -->
94 102
           <el-checkbox :label="dialysate_formulation"></el-checkbox>
95 103
           <el-checkbox :label="kalium"></el-checkbox>
96 104
           <el-checkbox :label="calcium"></el-checkbox>
@@ -319,6 +327,8 @@ export default {
319 327
         check_time: 0,
320 328
         first_check_time: 0,
321 329
         employee_number: "",
330
+        dialyzer_batch_number:"",
331
+        needle_batch_number:""
322 332
       },
323 333
       dialysate_formulation_options: [],
324 334
       record_date: "",
@@ -393,6 +403,20 @@ export default {
393 403
       return false;
394 404
     },
395 405
     show() {
406
+    
407
+      if(this.admin_users!=null && this.admin_users.length >0){
408
+        var arr = []
409
+        for(let i=0;i<this.admin_users.length;i++){
410
+          if(this.admin_users[i].status == 1){
411
+            arr.push(this.admin_users[i])
412
+          }
413
+        }
414
+
415
+        this.admin_users = []
416
+        this.admin_users.push(...arr)
417
+       
418
+      }
419
+
396 420
       this.isVisibility = true;
397 421
       if (this.double_check.id > 0) {
398 422
         this.first_check_time = uParseTime(
@@ -480,7 +504,9 @@ export default {
480 504
 
481 505
           ParamsQuery["creater"] = this.doubleReview.creater;
482 506
           ParamsQuery["modifier"] = this.doubleReview.modifier;
483
-
507
+          ParamsQuery['employee_number'] = this.doubleReview.employee_number
508
+          ParamsQuery['dialyzer_batch_number'] = this.doubleReview.dialyzer_batch_number
509
+          ParamsQuery['needle_batch_number'] = this.doubleReview.needle_batch_number
484 510
           console.log(ParamsQuery, "提交参数");
485 511
           postDoubleCheck(ParamsQuery).then((response) => {
486 512
             if (response.data.state == 0) {
@@ -1268,22 +1294,46 @@ export default {
1268 1294
   },
1269 1295
   watch: {
1270 1296
     isVisibility(val) {
1297
+      console.log("presciption23233223322323",this.prescription)
1298
+      if(this.prescription != null && this.prescription.id == 0){
1299
+         if(this.org_id == 10440 || this.org_id == 0){
1300
+          this.diazes = "透析器/灌流器:" + "   " + "批号:";
1301
+         }
1302
+      }
1271 1303
       if (this.prescription != null && this.prescription.id != 0) {
1272
-        if (
1273
-          this.prescription.dialyzer_perfusion_apparatus != "" ||
1274
-          this.prescription.dialysis_dialyszers != "" ||
1275
-          this.prescription.dialysis_irrigation != ""
1276
-        ) {
1277
-          this.diazes = "透析器/灌流器:";
1278
-          this.diazes =
1279
-            this.diazes + this.prescription.dialyzer_perfusion_apparatus;
1280
-          this.diazes =
1281
-            this.diazes +
1282
-            this.prescription.dialysis_dialyszers +
1283
-            this.prescription.dialysis_irrigation;
1304
+        if (this.prescription.dialyzer_perfusion_apparatus != "" ||this.prescription.dialysis_dialyszers != "" || this.prescription.dialysis_irrigation != "") {
1305
+
1306
+          if(this.org_id == 10440 || this.org_id == 0){
1307
+            this.diazes = "透析器/灌流器:";
1308
+            this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus;
1309
+            this.diazes = this.diazes + this.prescription.dialysis_dialyszers + this.prescription.dialysis_irrigation + "  " +"批号:"+ " ";
1310
+
1311
+            console.log("hhahahahhahahahawowoowowowowo--------",this.diazes)
1312
+          }
1313
+
1314
+          if(this.org_id!=0 && this.org_id!=10440){
1315
+           
1316
+            this.diazes = "透析器/灌流器:";
1317
+            this.diazes =
1318
+              this.diazes + this.prescription.dialyzer_perfusion_apparatus;
1319
+            this.diazes =
1320
+              this.diazes +
1321
+              this.prescription.dialysis_dialyszers +
1322
+              this.prescription.dialysis_irrigation 
1323
+          }
1324
+        
1284 1325
         } else {
1285
-          this.diazes = "";
1286
-          this.diazes = this.diazes;
1326
+
1327
+          if(this.org_id == 10440 || this.org_id == 0){
1328
+            this.diazes = "";
1329
+            this.diazes = this.diazes + "  " +"批号:"+ " ";
1330
+          }
1331
+
1332
+          if(this.org_id!=0 && this.org_id!=10440){
1333
+            this.diazes = "";
1334
+            this.diazes = this.diazes;
1335
+          }
1336
+         
1287 1337
         }
1288 1338
 
1289 1339
         if (this.prescription.dialysate_formulation != "") {
@@ -1447,18 +1497,32 @@ export default {
1447 1497
             this.displace_liqui_value + this.prescription.displace_liqui_value;
1448 1498
         }
1449 1499
       }
1450
-      if (
1451
-        this.predialysis_evaluation != null &&
1452
-        this.predialysis_evaluation.id != 0
1453
-      ) {
1454
-        this.puncture_needle = "穿刺针:";
1500
+      if (this.predialysis_evaluation != null &&this.predialysis_evaluation.id != 0) {
1501
+        if(this.org_id == 0 || this.org_id == 10440){
1502
+          this.puncture_needle = "穿刺针:";
1503
+          this.puncture_needle =this.puncture_needle + this.predialysis_evaluation.puncture_needle+ "  " + "批号:" + " ";
1504
+        this.blood_access_part_opera_id =
1505
+          this.blood_access_part_opera_id +
1506
+          this.getBloodAccess(
1507
+            this.predialysis_evaluation.blood_access_part_opera_id
1508
+          );
1509
+        }
1510
+
1511
+        if(this.org_id !=0 && this.org_id!=10440){
1512
+         
1513
+          this.puncture_needle = "穿刺针:";
1455 1514
         this.puncture_needle =
1456
-          this.puncture_needle + this.predialysis_evaluation.puncture_needle;
1515
+          this.puncture_needle + this.predialysis_evaluation.puncture_needle 
1457 1516
         this.blood_access_part_opera_id =
1458 1517
           this.blood_access_part_opera_id +
1459 1518
           this.getBloodAccess(
1460 1519
             this.predialysis_evaluation.blood_access_part_opera_id
1461 1520
           );
1521
+        }
1522
+       
1523
+      }
1524
+      if(this.predialysis_evaluation != null &&this.predialysis_evaluation.id == 0){
1525
+        this.puncture_needle = "穿刺针:" + "   "+ "批号:"
1462 1526
       }
1463 1527
       if (this.double_check != null && this.double_check.id != 0) {
1464 1528
         if (
@@ -1780,6 +1844,7 @@ export default {
1780 1844
   },
1781 1845
   created() {
1782 1846
     var date = this.$route.query && this.$route.query.date;
1847
+ 
1783 1848
     this.record_date = date
1784 1849
       ? uParseTime(date, "{y}-{m}-{d}")
1785 1850
       : parseTime(new Date(), "{y}-{m}-{d}");

+ 11 - 5
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -741,7 +741,7 @@
741 741
             align="center"
742 742
             label="累计血容量(ml)"
743 743
             width="100"
744
-            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340"
744
+            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671 && org_id != 10340 "
745 745
           >
746 746
              <template slot-scope="scope">
747 747
               {{ scope.row.accumulated_blood_volume }}
@@ -752,7 +752,7 @@
752 752
             align="center"
753 753
             label="累计血容量(L)"
754 754
             width="100"
755
-            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671 || org_id == 10340)"
755
+            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538) && org_id!=10340 && org_id!=9671"
756 756
           >
757 757
             <template slot-scope="scope">
758 758
               {{ scope.row.accumulated_blood_volume }}
@@ -873,12 +873,18 @@
873 873
           </el-table-column>
874 874
 
875 875
           <el-table-column
876
-            prop="symptom"
876
+           
877 877
             align="center"
878 878
             label="病情变化"
879 879
             width="130"
880 880
             v-if="isShow('病情变化')"
881 881
           >
882
+           <template slot-scope="scope">
883
+             {{scope.row.symptom}}
884
+            
885
+            
886
+             <span v-if="(scope.$index == monitors.length - 1) && (org_id == 0 || org_id == 9671 || org_id == 10340)">累计血容量:{{scope.row.accumulated_blood_volume }}L</span>
887
+            </template>
882 888
           </el-table-column>
883 889
 
884 890
           <el-table-column
@@ -2006,7 +2012,7 @@ export default {
2006 2012
         // 静脉压
2007 2013
         if (this.org_id == 10060 || this.org_id == 10387) {
2008 2014
           this.form.venous_pressure = resp.monitor.venous_pressure;
2009
-        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 ){
2015
+        }else if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471 ){
2010 2016
           this.form.venous_pressure = 80
2011 2017
         } else {
2012 2018
           this.form.venous_pressure = ""; // this.last_monitor_record.venous_pressure;
@@ -2061,7 +2067,7 @@ export default {
2061 2067
           ? resp.monitor.dialysate_temperature
2062 2068
           : "";
2063 2069
         
2064
-         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469){
2070
+         if(this.org_id == 9675 || this.org_id == 9671 || this.org_id == 10340 || this.org_id == 10469 || this.org_id == 10471){
2065 2071
             this.form.temperature = "36.5"
2066 2072
 
2067 2073
          }else{

+ 5 - 3
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -32,7 +32,7 @@
32 32
           <th v-if="isShow('透析液流量')" width="92px">透析液流量(ml/h)</th>
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35
-          <th v-if="isShow('累计血容量')" width="92px">累计血容量 
35
+          <th v-if="isShow('累计血容量') && org_id!=10340 && org_id!=0" width="92px">累计血容量 
36 36
             <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538 && org_id!=10340">(ml)</span>
37 37
             <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340">(L)</span>
38 38
           </th>
@@ -87,7 +87,7 @@
87 87
             <span v-if="monitor.monitor_anticoagulant == 12">无抗凝剂</span>
88 88
             <span v-if="monitor.monitor_anticoagulant_value!=''">({{monitor.monitor_anticoagulant_value ? monitor.monitor_anticoagulant_value : ""  }})</span>
89 89
           </td>
90
-          <th v-if="isShow('累计血容量')" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
90
+          <th v-if="isShow('累计血容量') && org_id!=10340 && org_id!=0" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
91 91
           <th v-if="isShow('血容量')" width="92px">{{monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : ""}}</th>
92 92
           <th v-if="isShow('血温监测')" width="92px">{{monitor.blood_temperature ? monitor.blood_temperature : ""}}</th>
93 93
           <th v-if="isShow('尿素监测')" width="92px">{{monitor.urea_monitoring ? monitor.urea_monitoring : ""}}</th>
@@ -97,7 +97,9 @@
97 97
           <th v-if="isShow('脱水')" width="92px">{{monitor.dehydration ? monitor.dehydration : ""}}</th>
98 98
           <th v-if="isShow('滤前压')" width="92px">{{monitor.filter_pressure ? monitor.filter_pressure : ""}}</th>
99 99
           <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)">{{ monitor.ktv?monitor.ktv:""}}</td>
100
-          <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
100
+          <td v-if="isShow('病情变化')">{{ monitor.symptom }}
101
+            <span v-if="(index == monitores.length-1) && (org_id == 0 || org_id == 10340)">累计血容量:{{monitor.accumulated_blood_volume }}L</span>
102
+          </td>
101 103
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
102 104
           <td v-if="isShow('结果')">{{ monitor.result }}</td>
103 105
         </tr>

+ 80 - 19
src/xt_pages/dialysis/signPrint.vue View File

@@ -11,22 +11,45 @@
11 11
         <div class="app-container" style="background-color: white;" v-show="show">
12 12
             <div id="dialysisTable">
13 13
                 <div v-for="(item, index) in list" :key="index">
14
-                    <div class="signPrint" v-for="it in item.doctor_advice" style="page-break-after: always;">
15
-                        <div>分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
14
+                    <div class="signPrint" v-for="it in item.parent_advice" style="page-break-after: always;">
15
+                       
16
+                        <div v-if="org_id!=10278">分区/床位号:{{item.device_number.zone.name}}/{{item.device_number.number}}</div>  
16 17
                         <div>姓名:{{item.patient.name}}</div>  
17
-                        <div>医嘱内容:{{ it.advice_name }} 
18
-                           <span v-if="it.prescribing_number>0 && org_id !=0 && org_id!=10440">
19
-                            {{it.prescribing_number}}{{ it.prescribing_number_unit }}
20
-                          </span> 
21
-                        </div>  
22
-                        <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
23
-                          规格:{{getSpecialName(it.drug_id)}} 
18
+
19
+                        <div>
20
+                            <div>医嘱内容:{{ it.advice_name }} 
21
+                            <span v-if="it.prescribing_number>0 && org_id !=0 && org_id!=10440">
22
+                                {{it.prescribing_number}}{{ it.prescribing_number_unit }}
23
+                            
24
+                            
25
+                            </span> 
26
+                            </div>  
27
+                            <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
28
+                            规格:{{getSpecialName(it.drug_id)}} 
29
+                            
30
+                            </div>  
31
+                            <div v-if="(org_id ==0 || org_id==10440) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
32
+                            <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33
+                            <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34
+                             
35
+                        </div>
24 36
                          
25
-                        </div>  
26
-                        <div v-if=" org_id ==0 || org_id==10440">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
27
-                        <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
28
-                        <div>给药途径:{{it.delivery_way}}</div>  
29
-                        <div>打印时间:{{time}}</div>   
37
+                       <span v-if="it.childAdvice.length >0">&nbsp;</span>  
38
+                       <div v-for="its in it.childAdvice">
39
+                            <div>医嘱内容:{{ its.advice_name }} 
40
+                            <span v-if="its.prescribing_number>0 && org_id !=0 && org_id!=10440">
41
+                                {{its.prescribing_number}}{{ its.prescribing_number_unit }}
42
+                            </span> 
43
+                            </div>  
44
+                            <div v-if="org_id ==0 || org_id == 10138 || org_id == 10278">
45
+                            规格:{{getSpecialName(its.drug_id)}} 
46
+                            
47
+                            </div>  
48
+                            <div v-if=" org_id ==0 || org_id==10440">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
49
+                            <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50
+                            <div>给药途径:{{its.delivery_way}}</div>  
51
+                        </div>
52
+                        <div>打印时间:{{time}}</div> 
30 53
                     </div>  
31 54
                 </div>
32 55
             </div>
@@ -269,7 +292,26 @@ export default {
269 292
                     maps.new_advice = advice_groups
270 293
                     }
271 294
                  }
272
-                console.log("scheduleMap999999999999",schedules)
295
+               
296
+                 for(let i=0;i<schedules.length;i++){
297
+                    schedules[i].parent_advice = []
298
+                   for(let j=0;j<schedules[i].doctor_advice.length;j++){
299
+                      if(schedules[i].doctor_advice[j].parent_id== 0){
300
+                         schedules[i].parent_advice.push(schedules[i].doctor_advice[j])
301
+                      }
302
+                   }
303
+                  }
304
+                  for(let i=0;i<schedules.length;i++){
305
+                    for(let j=0;j<schedules[i].parent_advice.length;j++){
306
+                      schedules[i].parent_advice[j].childAdvice = []
307
+                      for(let z=0;z<schedules[i].doctor_advice.length;z++){
308
+                         if(schedules[i].parent_advice[j].id == schedules[i].doctor_advice[z].parent_id){
309
+                            schedules[i].parent_advice[j].childAdvice.push(schedules[i].doctor_advice[z])
310
+                         }
311
+                      }
312
+                    }
313
+                  }
314
+                  console.log("scheduleMap999999999999",schedules)
273 315
                   this.list = schedules
274 316
                 }
275 317
                
@@ -427,10 +469,29 @@ export default {
427 469
                     }
428 470
                     maps.new_advice = advice_groups
429 471
                     }
430
-                 }
431
-                
432
-                     this.list = schedules
433
-                     this.scheduleMap = scheduleMap  
472
+                 } 
473
+                  
474
+                 for(let i=0;i<schedules.length;i++){
475
+                    schedules[i].parent_advice = []
476
+                   for(let j=0;j<schedules[i].doctor_advice.length;j++){
477
+                      if(schedules[i].doctor_advice[j].parent_id== 0){
478
+                         schedules[i].parent_advice.push(schedules[i].doctor_advice[j])
479
+                      }
480
+                   }
481
+                  }
482
+
483
+                  for(let i=0;i<schedules.length;i++){
484
+                    for(let j=0;j<schedules[i].parent_advice.length;j++){
485
+                      schedules[i].parent_advice[j].childAdvice = []
486
+                      for(let z=0;z<schedules[i].doctor_advice.length;z++){
487
+                         if(schedules[i].parent_advice[j].id == schedules[i].doctor_advice[z].parent_id){
488
+                            schedules[i].parent_advice[j].childAdvice.push(schedules[i].doctor_advice[z])
489
+                         }
490
+                      }
491
+                    }
492
+                  }
493
+                   this.list = schedules
494
+                   this.scheduleMap = scheduleMap  
434 495
                  }
435 496
                 console.log("this.list",this.list)
436 497
                 

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

@@ -959,8 +959,8 @@
959 959
                             : "/"
960 960
                         }}
961 961
                       </div>
962
-                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469">ml</span> 
963
-                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469">L</span>
962
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">ml</span> 
963
+                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">L</span>
964 964
                     </div>
965 965
                     <div class="inline_block" style="flex: 1">
966 966
                       干体重:
@@ -1067,14 +1067,14 @@
1067 1067
                         }}
1068 1068
                       </div>
1069 1069
                      
1070
-                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1070
+                     <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1071 1071
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1072 1072
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1073 1073
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1074 1074
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1075 1075
                     </span>
1076 1076
 
1077
-                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469">
1077
+                    <span v-if="org_id==9675 || org_id==10447 || org_id==9829 || org_id==10440 || org_id==10469 || org_id == 10471">
1078 1078
                       <span v-if="prescription.anticoagulant == 4">iu</span>
1079 1079
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1080 1080
                       <span v-if="prescription.anticoagulant == 2">mg</span>
@@ -1113,7 +1113,7 @@
1113 1113
                             : "0"
1114 1114
                         }}
1115 1115
                       </div>
1116
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1116
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1117 1117
 
1118 1118
                         <span v-if="prescription.anticoagulant == 5">ml/h</span>
1119 1119
                           <span v-if="prescription.anticoagulant == 4">mg/h</span>
@@ -1121,7 +1121,7 @@
1121 1121
                           <span v-if="prescription.anticoagulant == 2">iu/h</span>
1122 1122
                           <span v-if="prescription.anticoagulant == 1">mg/h</span>
1123 1123
                       </span>
1124
-                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469">
1124
+                      <span v-if="org_id==9675 || org_id==10447 || org_id== 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
1125 1125
                         <span v-if="prescription.anticoagulant == 2">mg/h</span>
1126 1126
                           <span v-if="prescription.anticoagulant == 3">iu/h</span>
1127 1127
                           <span v-if="prescription.anticoagulant == 4">ml</span>
@@ -1186,13 +1186,13 @@
1186 1186
                             : "/"
1187 1187
                         }}
1188 1188
                       </div>
1189
-                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469">
1189
+                      <span v-if="org_id!=9675 && org_id!=10447 && org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471">
1190 1190
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1191 1191
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1192 1192
                       <span v-if="prescription.anticoagulant == 2">iu</span>
1193 1193
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1194 1194
                      </span>
1195
-                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469">
1195
+                    <span v-if="org_id==9675 || org_id==10447 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471">
1196 1196
                        <span v-if="prescription.anticoagulant == 2">mg</span>
1197 1197
                        <span v-if="prescription.anticoagulant == 3">iu</span>
1198 1198
                        <span v-if="prescription.anticoagulant == 4">ml</span>

+ 3 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue View File

@@ -400,14 +400,14 @@
400 400
                 置换方式:
401 401
                 <label-box
402 402
                   :isChecked="
403
-                    prescription.displace_liqui_part == 1 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
403
+                    prescription.displace_liqui_part == 1 && (prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12)? true : false
404 404
                   "
405 405
                   showValue="前"
406 406
                 ></label-box
407 407
                 >&nbsp;
408 408
                 <label-box
409 409
                   :isChecked="
410
-                    prescription.displace_liqui_part == 2 && prescription.mode_id != 2 && prescription.mode_id != 5 && prescription.mode_id != 12? true : false
410
+                    prescription.displace_liqui_part == 2 && (prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12)? true : false
411 411
                   "
412 412
                   showValue="后"
413 413
                 ></label-box>
@@ -429,6 +429,7 @@
429 429
                   v-if="setAdminUserES(dialysisOrder.quality_nurse_id) == ''"
430 430
                   >{{getAdminUser(dialysisOrder.quality_nurse_id)}}</span
431 431
                 >
432
+
432 433
                 <span v-else style="height: 36px">
433 434
                   <img style="height:30px;" :src="setAdminUserES(dialysisOrder.quality_nurse_id)" alt srcset />
434 435
                 </span>

File diff suppressed because it is too large
+ 566 - 562
src/xt_pages/outpatientTool/components/detail.vue


+ 1 - 0
src/xt_pages/stock/drugs/components/drugQuery.vue View File

@@ -357,6 +357,7 @@ export default {
357 357
       {id:1,name:"全部药品"},
358 358
       {id:2,name:"库存预警"},
359 359
       {id:3,name:"库存为零"},
360
+      {id:4,name:"库存不为零"},
360 361
      ],
361 362
      houseList:[],
362 363
      storehouse_id:0,

+ 5 - 4
src/xt_pages/stock/query/goodNewQuery.vue View File

@@ -321,6 +321,7 @@ export default {
321 321
       {id:1,name:"全部耗材"},
322 322
       {id:2,name:"库存预警"},
323 323
       {id:3,name:"库存为零"},
324
+      {id:4,name:"库存不为零"},
324 325
      ],
325 326
      houseList:[],
326 327
      storehouse_id:0,
@@ -1095,10 +1096,10 @@ export default {
1095 1096
     this.getStorehouseList()
1096 1097
     this.getlist()
1097 1098
     
1098
-    var org_id = this.$store.getters.xt_user.org_id
1099
-    if(org_id == 9583 || org_id == 3907){
1100
-     this.getStockDrugCount()
1101
-    }
1099
+    // var org_id = this.$store.getters.xt_user.org_id
1100
+    // if(org_id == 9583 || org_id == 3907){
1101
+    //  this.getStockDrugCount()
1102
+    // }
1102 1103
  
1103 1104
   }
1104 1105
 }

+ 1 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

@@ -248,6 +248,7 @@ export default {
248 248
       getNewPurchaseStockQuery(params).then(response=>{
249 249
          if(response.data.state == 1){
250 250
             var list = response.data.data.list
251
+           
251 252
             this.loading = false
252 253
             for(let i=0;i<list.length;i++){
253 254
                

+ 29 - 5
src/xt_pages/user/components/EditGroupAdvice.vue View File

@@ -207,6 +207,17 @@
207 207
                  {{scope.row.push_start_time}}
208 208
                 </template>
209 209
               </el-table-column>
210
+
211
+              <el-table-column
212
+                label="医嘱嘱托"
213
+                min-width="80"
214
+                property="execution_frequency"
215
+                align="center"
216
+              >
217
+               <template slot-scope="scope">
218
+                 {{scope.row.remark}}
219
+                </template>
220
+              </el-table-column>
210 221
             </el-table>
211 222
           </el-col>
212 223
         </el-row>
@@ -583,6 +594,11 @@
583 594
                  </el-date-picker>
584 595
               </el-form-item>
585 596
           </el-col>
597
+          <el-col :span="24">
598
+             <el-form-item label="医嘱嘱托:">
599
+                <el-input v-model="nameForm.remark"></el-input>
600
+              </el-form-item>
601
+          </el-col>
586 602
         </el-row>
587 603
       </el-form>
588 604
       <div slot="footer" class="dialog-footer">
@@ -665,6 +681,7 @@ export default {
665 681
         src_type:"",
666 682
         drug_name_id:0,
667 683
         push_start_time:"",
684
+        remark:"",
668 685
       },
669 686
 
670 687
       drugOptions: [],
@@ -721,7 +738,8 @@ export default {
721 738
       remind: 0,
722 739
       frequency_type: 0,
723 740
       day_count: "",
724
-      doctor: 0
741
+      doctor: 0,
742
+      remark:"",
725 743
     },
726 744
     adviceTypeOptions: {
727 745
       type: Array,
@@ -934,7 +952,7 @@ export default {
934 952
                     return s && s.trim();
935 953
                   }).join(","),
936 954
                 push_start_time: _this.nameForm.push_start_time,
937
-                
955
+                remark:_this.nameForm.remark,
938 956
               };
939 957
             } else {
940 958
               submitForm = {
@@ -963,8 +981,8 @@ export default {
963 981
                 frequency_type: 0,
964 982
                 day_count: "0",
965 983
                 week_days: "",
966
-                push_start_time:_this.nameForm.push_start_time
967
-
984
+                push_start_time:_this.nameForm.push_start_time,
985
+                remark:_this.nameForm.remark,
968 986
               };
969 987
             }
970 988
             let mode = "";
@@ -1028,6 +1046,7 @@ export default {
1028 1046
                     _this.adviceTableData[index].drug_id = advice.drug_id
1029 1047
                     _this.adviceTableData[index].drug_name_id = advice.drug_name_id
1030 1048
                     _this.adviceTableData[index].push_start_time = advice.push_start_time
1049
+                    _this.adviceTableData[index].remark = advice.remark
1031 1050
                     break;
1032 1051
                   }
1033 1052
                 }
@@ -1059,6 +1078,7 @@ export default {
1059 1078
                           _this.groupForm.adviceNames[index].children[j].drug_id = _this.nameForm.drug_id
1060 1079
                           _this.groupForm.adviceNames[index].children[j].drug_name_id = _this.nameForm.drug_name_id
1061 1080
                           _this.groupForm.adviceNames[index].children[j].push_start_time = _this.nameForm.push_start_time
1081
+                          _this.groupForm.adviceNames[index].children[j].remark = _this.nameForm.remark
1062 1082
                           _this.$set(
1063 1083
                             _this.groupForm.adviceNames[index].children,
1064 1084
                             j,
@@ -1089,6 +1109,7 @@ export default {
1089 1109
                       _this.groupForm.adviceNames[index].day_count = _this.nameForm.day_count;
1090 1110
                       _this.groupForm.adviceNames[index].week_day = _this.weeks.join(",");
1091 1111
                        _this.groupForm.adviceNames[index].push_start_time = _this.nameForm.push_start_time;
1112
+                       _this.groupForm.adviceNames[index].remark = _this.nameForm.remark;
1092 1113
                       console.log(_this.weeks);
1093 1114
                       _this.$set(
1094 1115
                         _this.groupForm.adviceNames,
@@ -1127,7 +1148,8 @@ export default {
1127 1148
                 remark: _this.groupForm.remark,
1128 1149
                 parent_id: _this.groupSelectRow.id,
1129 1150
                 groupno: _this.groupForm.groupno,
1130
-                push_start_time:_this.groupForm.push_start_time
1151
+                push_start_time:_this.groupForm.push_start_time,
1152
+                remark:_this.groupForm.push_start_time,
1131 1153
               };
1132 1154
 
1133 1155
               let mode = "";
@@ -1485,6 +1507,7 @@ export default {
1485 1507
           drug_name_id:0,
1486 1508
           push_start_time:this.groupSelectRow.push_start_time,
1487 1509
           way:0,
1510
+          remark:this.groupSelectRow.remark
1488 1511
         };
1489 1512
 
1490 1513
         if (!this.isChild) {
@@ -1517,6 +1540,7 @@ export default {
1517 1540
           week_days: "",
1518 1541
           frequency_type: 0,
1519 1542
           push_start_time:"",
1543
+          remark:""
1520 1544
         };
1521 1545
         this.nameFormTitle = "新增医嘱内容";
1522 1546
       }

+ 2 - 3
src/xt_pages/user/coursePrint.vue View File

@@ -181,13 +181,12 @@
181 181
         return name
182 182
       },
183 183
        setAdminUserES(id) {
184
-        console.log("id2323233232232333322==-",id)
185
-        console.log("operatorMaps----",this.operatorMaps)
184
+        
186 185
         if (id === 0) {
187 186
           return ''
188 187
         }
189 188
         if (id in this.operatorMaps) {
190
-           console.log("----------",this.operatorMaps[id].url)
189
+          
191 190
           return this.operatorMaps[id].url
192 191
          
193 192
         } else {

+ 40 - 6
src/xt_pages/user/doctorAdvice.vue View File

@@ -452,6 +452,16 @@
452 452
           </template>
453 453
         </el-table-column>
454 454
 
455
+        <el-table-column
456
+          label="医嘱嘱托"
457
+          width="180"
458
+          align="center"
459
+        >
460
+          <template slot-scope="scope">
461
+            <span>{{scope.row.remark}}</span>
462
+          </template>
463
+        </el-table-column>
464
+
455 465
         <!-- <template v-if="adviceType==3">
456 466
                     <el-table-column key="advice_doctor_3" label="开嘱医生" min-width="80"  property="advice_doctor" align="center">
457 467
                         <template slot-scope="scope">
@@ -797,6 +807,17 @@
797 807
                 </template>
798 808
                 
799 809
                 </el-table-column>
810
+
811
+                <el-table-column 
812
+                 label="医嘱嘱托"
813
+                  min-width="80"
814
+                  align="center"
815
+                >
816
+                <template slot-scope="scope">
817
+                   {{scope.row.remark}}
818
+                </template>
819
+                
820
+                </el-table-column>
800 821
               </el-table>
801 822
             </el-col>
802 823
           </el-row>
@@ -1205,6 +1226,12 @@
1205 1226
                  </el-date-picker>
1206 1227
               </el-form-item>
1207 1228
             </el-col>
1229
+
1230
+            <el-col :span="24">
1231
+               <el-form-item label="医嘱嘱托:">
1232
+                 <el-input v-model="nameForm.remark"></el-input>
1233
+              </el-form-item>
1234
+            </el-col>
1208 1235
           </el-row>
1209 1236
         </el-form>
1210 1237
         <div slot="footer" class="dialog-footer">
@@ -2182,6 +2209,7 @@ export default {
2182 2209
         id: 0,
2183 2210
         children: [],
2184 2211
         push_start_time:"",
2212
+        remark:"",
2185 2213
       },
2186 2214
       groupForm: {
2187 2215
         day_count: "",
@@ -2426,7 +2454,7 @@ export default {
2426 2454
               }
2427 2455
           }
2428 2456
           console.log("模板数据",submitForm)
2429
-
2457
+          
2430 2458
           CreateNewGroupAdvice(this.patientID, 0, submitForm, mode).then(
2431 2459
             response => {
2432 2460
               if (response.data.state == 0) {
@@ -2520,7 +2548,7 @@ export default {
2520 2548
               this.adviceForm.advice_name = arr[0]
2521 2549
           }
2522 2550
           console.log("222222???????this.adviceForm",this.adviceForm)
2523
-
2551
+          
2524 2552
           CreateNewDoctorAdvice(this.patientID, this.adviceForm, mode).then(
2525 2553
             response => {
2526 2554
               if (response.data.state == 0) {
@@ -2759,7 +2787,8 @@ export default {
2759 2787
           parent_row: this.groupSelectRow.parent_row,
2760 2788
           day_count: this.groupSelectRow.day_count,
2761 2789
           week_days: this.groupSelectRow.week_days,
2762
-          frequency_type: this.groupSelectRow.frequency_type
2790
+          frequency_type: this.groupSelectRow.frequency_type,
2791
+          remark:this.groupSelectRow.remark,
2763 2792
         };
2764 2793
         this.weeks = this.groupSelectRow.week_days.split(",");
2765 2794
         this.nameFormTitle = "修改医嘱内容";
@@ -2792,6 +2821,7 @@ export default {
2792 2821
           way:0,
2793 2822
           drug_id:0,
2794 2823
           drug_name_id:0,
2824
+          remark:"",
2795 2825
         };
2796 2826
         this.nameFormTitle = "新增医嘱内容";
2797 2827
       }
@@ -3131,7 +3161,8 @@ export default {
3131 3161
           parent_row: 0,
3132 3162
           row_key: this.rowKey,
3133 3163
           table: [],
3134
-          push_start_time:uParseTime(groups[index].push_start_time, "{y}-{m}-{d}")
3164
+          push_start_time:uParseTime(groups[index].push_start_time, "{y}-{m}-{d}"),
3165
+          remark:groups[index].remark
3135 3166
         };
3136 3167
 
3137 3168
         if (item.id in childMap) {
@@ -3159,7 +3190,8 @@ export default {
3159 3190
               children: [],
3160 3191
               parent_row: item.row_key,
3161 3192
               row_key: this.rowKey,
3162
-              push_start_time:uParseTime(childMap[item.id][key].push_start_time, "{y}-{m}-{d}")
3193
+              push_start_time:uParseTime(childMap[item.id][key].push_start_time, "{y}-{m}-{d}"),
3194
+              remark:childMap[item.id][key].remark
3163 3195
             };
3164 3196
             item.children.push(child);
3165 3197
           }
@@ -4185,7 +4217,8 @@ export default {
4185 4217
                       _this.groupForm.adviceNames[index].children[j].execution_frequency =_this.nameForm.execution_frequency;
4186 4218
                       _this.groupForm.adviceNames[index].children[j].drug_id = _this.nameForm.drug_id;
4187 4219
                       _this.groupForm.adviceNames[index].children[j].way = _this.nameForm.way;
4188
-                       _this.groupForm.adviceNames[index].children[j].push_start_time = _this.nameForm.push_start_time;
4220
+                      _this.groupForm.adviceNames[index].children[j].push_start_time = _this.nameForm.push_start_time;
4221
+                      _this.groupForm.adviceNames[index].children[j].remark = _this.nameForm.remark;
4189 4222
 
4190 4223
                       _this.$set(
4191 4224
                         _this.groupForm.adviceNames[index].children,
@@ -4213,6 +4246,7 @@ export default {
4213 4246
                   _this.groupForm.adviceNames[index].delivery_way = _this.nameForm.delivery_way;
4214 4247
                   _this.groupForm.adviceNames[index].execution_frequency = _this.nameForm.execution_frequency;
4215 4248
                   _this.groupForm.adviceNames[index].push_start_time = _this.nameForm.push_start_time
4249
+                  _this.groupForm.adviceNames[index].remark = _this.nameForm.remark
4216 4250
                   if (_this.nameForm.frequency_type == 1) {
4217 4251
                     _this.groupForm.adviceNames[index].frequency_type =
4218 4252
                       _this.nameForm.frequency_type;

+ 425 - 8
src/xt_pages/user/firstDisease.vue View File

@@ -76,6 +76,23 @@
76 76
                  </div>
77 77
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病例特点:
78 78
                    <span v-html="hosDetail.patient_case"></span> 
79
+                   <div>
80
+                    <div v-for="item in hosDetail.template_inspection_content">
81
+                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
82
+                    <div style="display:flex;flex-wrap: wrap;">
83
+                      <div v-for="it in item.arr" style="width:33%;margin-bottom:5px;">
84
+                        {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>:
85
+                         {{it.inspect_value}}
86
+                        <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
87
+                           ↓
88
+                          </span>
89
+                          <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
90
+                           ↑
91
+                        </span>
92
+                      </div>
93
+                    </div>
94
+                  </div>
95
+                  </div>
79 96
                  </div>
80 97
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">初步诊断:
81 98
                     <span v-html="hosDetail.tentative_diagnosis"></span>
@@ -148,7 +165,9 @@
148 165
                   <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
149 166
                             :value="option.content"></el-option>
150 167
                 </el-select>
151
-                
168
+
169
+                <el-button type="primary" @click="toInspection">选择检验检查</el-button>
170
+               
152 171
                  <div class="textarea_panel">
153 172
                     <keep-alive>
154 173
                       <editor ref="editorOne"
@@ -159,6 +178,24 @@
159 178
                     </keep-alive>
160 179
                 </div>
161 180
 
181
+                <div class="borderBox">
182
+                   <div v-for="item in form.patient_case_one">
183
+                    <p>{{ item.project_name }}</p>
184
+                    <div style="display:flex;flex-wrap: wrap;">
185
+                      <div v-for="it in item.arr" style="width:33%;">
186
+                        {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
187
+                        {{it.inspect_value}}
188
+                          <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
189
+                          ↓
190
+                        </span>
191
+                        <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
192
+                        ↑
193
+                      </span>
194
+                      </div>
195
+                    </div>
196
+                  </div>
197
+                </div>
198
+
162 199
                  <label class="title"><span class="name">初步诊断</span> : </label>
163 200
                 <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
164 201
                   <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
@@ -285,7 +322,25 @@
285 322
                   <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
286 323
                             :value="option.content"></el-option>
287 324
                 </el-select>
288
-                
325
+                <el-button type="primary" @click="toInspection">选择检验检查</el-button>
326
+
327
+                <div class="borderBox">
328
+                   <div v-for="item in form.patient_case_one">
329
+                    <p>{{ item.project_name }}</p>
330
+                    <div style="display:flex;flex-wrap: wrap;">
331
+                      <div v-for="it in item.arr" style="width:33%;">
332
+                        {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
333
+                        {{it.inspect_value}}
334
+                          <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
335
+                          ↓
336
+                        </span>
337
+                        <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
338
+                        ↑
339
+                      </span>
340
+                      </div>
341
+                    </div>
342
+                  </div>
343
+                </div>
289 344
                  <div class="textarea_panel">
290 345
                     <keep-alive>
291 346
                       <editor ref="editorTenOne"
@@ -370,6 +425,129 @@
370 425
           </div>
371 426
         </div>
372 427
       </el-dialog>
428
+
429
+
430
+
431
+      <el-dialog
432
+        title="提示"
433
+        :visible.sync="dialogVisibleInspection"
434
+        width="80%"
435
+        >
436
+        <span>
437
+          <el-form>
438
+            <el-row>
439
+              <el-form-item>
440
+                <span>选择检验检查时间:</span>
441
+                <div>
442
+
443
+                 <el-form-item label="时间:">
444
+                   <el-radio-group style="padding: 10px;"  v-model="radio" @change="changeRadio">
445
+                      <el-radio :label="1">月份</el-radio>
446
+                      <el-radio :label="2">季度</el-radio>
447
+                    </el-radio-group>
448
+                 </el-form-item>
449
+                 <el-form-item v-show="showquarty">
450
+                    <el-select v-model="quartype" placeholder="请选择" @change="changetype">
451
+                      <el-option
452
+                        v-for="item in quarterType"
453
+                        :key="item.id"
454
+                        :label="item.name"
455
+                        :value="item.id">
456
+                      </el-option>
457
+                    </el-select>
458
+                 </el-form-item>
459
+                 <el-form-item v-show="showtime">
460
+                   <el-date-picker
461
+                      @change="changeYear"
462
+                      v-model="startYear"
463
+                      class="timePicker"
464
+                      type="month"
465
+                      placeholder=""
466
+                      format="yyyy-MM"
467
+                      value-format="yyyy-MM">
468
+                    </el-date-picker>
469
+                 </el-form-item>
470
+              
471
+                </div>
472
+              </el-form-item>
473
+            </el-row>
474
+            <el-row>
475
+               <span>选择检验检查项目:</span>
476
+                 <div class="record">
477
+                  <el-row :gutter="15">
478
+                    <el-col :span="10">
479
+                      <el-table :header-cell-style="{
480
+                          backgroundColor: 'rgb(245, 247, 250)',
481
+                          color: '#606266'
482
+                        }"
483
+                        :row-style="{ color: '#303133' }"
484
+                        ref="single_table"
485
+                        :data="tableList"
486
+                        border highlight-current-row
487
+                        @current-change="changeCurrentRecord"
488
+                        @selection-change="selectionChangeOne"
489
+                        :row-class-name="tableRow"
490
+                       
491
+                      >
492
+                        <el-table-column type="selection" width="60" align="center"></el-table-column>
493
+                        <el-table-column label="检验项目" align="center">
494
+                          <template slot-scope="scope">
495
+                            {{scope.row.project_name}}
496
+                          </template>
497
+                        </el-table-column>
498
+                      </el-table>
499
+                    </el-col>
500
+                    <el-col :span="14">
501
+                      <div class="record_content_panel">
502
+                        <el-table :header-cell-style="{
503
+                          backgroundColor: 'rgb(245, 247, 250)',
504
+                          color: '#606266'
505
+                        }"
506
+                        :row-style="{ color: '#303133' }" :data="tableData"
507
+                                border highlight-current-row 
508
+                                :row-class-name="tableRow"
509
+
510
+                      >
511
+                        <el-table-column label="检验项目" align="center">
512
+                          <template slot-scope="scope">
513
+                            {{scope.row.item_name}}
514
+                          </template>
515
+                        </el-table-column>
516
+                        <el-table-column label="结果" align="center">
517
+                          <template slot-scope="scope">
518
+                            {{scope.row.inspect_value}}
519
+                           <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
520
+                            ↓
521
+                          </span>
522
+                           <span v-if="parseInt(scope.row.inspect_value) > parseInt(scope.row.range_max)">
523
+                             ↑
524
+                          </span>
525
+                          </template>
526
+                        </el-table-column>
527
+                        <el-table-column label="参考值" align="center">
528
+                          <template slot-scope="scope">
529
+                           {{scope.row.range_min}} ~  {{scope.row.range_max}}
530
+                          </template>
531
+                        </el-table-column>
532
+                        <el-table-column label="单位" align="center">
533
+                          <template slot-scope="scope">
534
+                            {{scope.row.unit}}
535
+                          </template>
536
+                        </el-table-column>
537
+                      </el-table>
538
+                      </div>
539
+                    </el-col>
540
+                  </el-row>
541
+                </div>
542
+            </el-row>
543
+          </el-form>
544
+
545
+        </span>
546
+        <span slot="footer" class="dialog-footer">
547
+          <el-button @click="dialogVisibleInspection = false">取 消</el-button>
548
+          <el-button type="primary" @click="toContent">确 定</el-button>
549
+        </span>
550
+      </el-dialog>
373 551
     </div>
374 552
   </div>
375 553
 </template>
@@ -378,7 +556,7 @@
378 556
   import PatientSidebar from './components/PatientSidebar'
379 557
   import Editor from '@/components/Editor'
380 558
 
381
-  import { createFirstDisease,getFirstDiseaseList,getFirstDetail,updateFirstDisease,deleteFirstDisease} from '@/api/patient'
559
+  import {getInitDataList,getInspectionMajorItem,getInspectionDetail,getInspectionItemList,createFirstDisease,getFirstDiseaseList,getFirstDetail,updateFirstDisease,deleteFirstDisease} from '@/api/patient'
382 560
   import { parseTime } from '@/utils'
383 561
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
384 562
   import { uParseTime } from '@/utils/tools'
@@ -446,6 +624,7 @@
446 624
           main_content:"",
447 625
           patient_case_id:"",
448 626
           patient_case:"",
627
+          patient_case_one:"",
449 628
           tentative_diagnosis_id:"",
450 629
           tentative_diagnosis:"",
451 630
           diagnostic_basis_id:"",
@@ -453,7 +632,12 @@
453 632
           differential_diagnosis_id:"",
454 633
           differential_diagnosis:"",
455 634
           treatment_plan_id:"",
456
-          treatment_plan:""
635
+          treatment_plan:"",
636
+          radio:1,
637
+          quarter:1,
638
+          start_year:new Date(),
639
+          start_month:new Date(),
640
+          detai_id:0,
457 641
         },
458 642
        tableData:[],
459 643
        docList:[],
@@ -461,6 +645,25 @@
461 645
        hosDetail:{},
462 646
        ids:"",
463 647
        patient:{},
648
+       dialogVisibleInspection:false,
649
+       quarterType: [
650
+        { id: 1, name: "第一季度"},
651
+        { id: 2,  name: "第二季度"},
652
+        { id: 3, name: "第三季度"},
653
+        { id: 4, name: "第四季度"}
654
+       ],
655
+       quartype:1,
656
+       radio:1,
657
+       showtime:true,
658
+       showquarty:false,
659
+       startYear:moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") ,
660
+       start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
661
+       end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
662
+       summaryList:[],
663
+       planList:[],
664
+       tableList:[],
665
+       projectList:[],
666
+       inspectionList:[],
464 667
       }
465 668
     },
466 669
     created() {
@@ -496,7 +699,8 @@
496 699
       
497 700
      this.getAllDoctorList()
498 701
      this.getlist()
499
-    
702
+     this.getInspectionMajor()
703
+     this.getInitDataList()
500 704
     },
501 705
     methods: {
502 706
       getTime(val) {
@@ -538,6 +742,22 @@
538 742
           this.getFirstDetail(row.id)
539 743
         }
540 744
       },
745
+      changeCurrentRecord(val){
746
+        this.tableData = []
747
+        this.getInspectionDetai(val)
748
+      },
749
+      selectionChangeOne(val){
750
+        this.getInspectionItemList(val)
751
+      },
752
+      getInspectionItemList(val){
753
+        this.projectList = []
754
+        this.inspectDataList = []
755
+       for(let i=0;i<val.length;i++){
756
+        this.projectList.push(val[i].project_id)
757
+        this.inspectDataList.push(val[i].inspect_date)
758
+       }
759
+
760
+      },
541 761
       selectSummary(row){
542 762
         var arr = []
543 763
         for(let i=0;i<row.length;i++){
@@ -582,6 +802,9 @@
582 802
           treatment_plan:this.$refs.editorFive.content,
583 803
           record_date:this.form.record_date,
584 804
           doctor:this.form.doctor,
805
+          project_id:this.projectStr,
806
+          inspect_date:this.projectIndate,
807
+         
585 808
          }
586 809
          console.log("params",params)
587 810
         
@@ -638,8 +861,12 @@
638 861
         getFirstDetail(id).then(response=>{
639 862
            if(response.data.state == 1){
640 863
              var detail = response.data.data.detail
641
-            
642 864
              this.hosDetail = detail
865
+             var inspectlist = response.data.data.inspectlist
866
+             let arr = this.unique(inspectlist,'project_name')
867
+             this.hosDetail.template_inspection_content = arr
868
+            
869
+             console.log("内容233323232323223",this.hosDetail)
643 870
            }
644 871
         })
645 872
       },
@@ -648,10 +875,14 @@
648 875
            if(response.data.state == 1){
649 876
              var detail = response.data.data.detail
650 877
              console.log("detial------",detail)
878
+              var inspectlist =  response.data.data.inspectlist
879
+              let arr = this.unique(inspectlist,'project_name')
880
+              this.form.patient_case_one = arr
651 881
              if(detail.doctor == 0){
652 882
                this.form.doctor = ""
653 883
              }
654 884
              this.form.id = detail.id
885
+             this.form.detai_id = detail.id
655 886
              this.form.title = detail.title
656 887
              this.form.record_date = this.getTimeOne(detail.record_date)
657 888
              this.form.doctor = detail.doctor
@@ -661,6 +892,8 @@
661 892
              this.form.diagnostic_basis = detail.diagnostic_basis
662 893
              this.form.differential_diagnosis = detail.differential_diagnosis
663 894
              this.form.treatment_plan =detail.treatment_plan
895
+             this.projectStr = detail.project_id
896
+             this.projectIndate = detail.inspect_date
664 897
              this.edit_show_dialog = true
665 898
            }
666 899
         })
@@ -720,7 +953,7 @@
720 953
          }
721 954
       
722 955
          var params = {
723
-          id:this.form.id,
956
+          id:this.form.detai_id,
724 957
           patient_id:parseInt(this.patient_id),
725 958
           title:this.form.title,
726 959
           doctor:this.form.doctor,
@@ -731,8 +964,11 @@
731 964
           diagnostic_basis:diagnostic_basis,
732 965
           differential_diagnosis:differential_diagnosis,
733 966
           treatment_plan:treatment_plan,
967
+          project_id:this.projectStr,
968
+          inspect_date:this.projectIndate,
734 969
          }
735 970
          console.log("poarams2323322323",params)
971
+         
736 972
         updateFirstDisease(params).then(response=>{
737 973
           if(response.data.state == 1){
738 974
             var detail = response.data.data.detail
@@ -778,7 +1014,188 @@
778 1014
         
779 1015
         this.show_dialog = true
780 1016
       },
781
-     
1017
+      toInspection(){
1018
+       this.dialogVisibleInspection = true
1019
+      },
1020
+      changeRadio(val){
1021
+       if(val == 1){
1022
+         this.showtime = true
1023
+         this.showquarty = false
1024
+         this.getInspectionMajor()
1025
+       }
1026
+       if(val == 2){
1027
+         this.showquarty = true
1028
+         this.showtime = false
1029
+         this.getInspectionMajor()
1030
+       }
1031
+     },
1032
+        //获取大项数据来源
1033
+      getInspectionMajor(){
1034
+        var start_time = ""
1035
+        var end_time = ""
1036
+        console.log("radio2332322332",this.radio)
1037
+        if(this.radio == 1){
1038
+          console.log("start_year",this.startYear)
1039
+          console.log("endyaer",this.lastYear)
1040
+          end_time = this.startYear
1041
+          start_time = this.lastYear
1042
+        }
1043
+        if(this.radio == 2){
1044
+          if(this.quartype == 1){
1045
+            start_time =  moment().startOf('year').format('YYYY-MM-DD')
1046
+            end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1047
+          }
1048
+          if(this.quartype == 2){
1049
+            start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")
1050
+            end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1051
+          }
1052
+          if(this.quartype == 3){
1053
+            start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
1054
+            end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
1055
+          }
1056
+          if(this.quartype == 4){
1057
+            start_time = moment().month(9).startOf('month').format("YYYY-MM-DD")
1058
+            end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1059
+          }
1060
+        }
1061
+
1062
+
1063
+          console.log("start_time",start_time)
1064
+          console.log("end_time",end_time)
1065
+          var params = {
1066
+            other_start_time:end_time,
1067
+            patient_id:this.patient_id,
1068
+            last_time:start_time,
1069
+          }
1070
+         console.log("开始数据",params)
1071
+        getInspectionMajorItem(params).then(response=>{
1072
+          if(response.data.state == 1){
1073
+            var list = response.data.data.list
1074
+            console.log("列表23232232323",list)
1075
+            // this.$refs.single_table.setCurrentRow(list[0])
1076
+            this.tableList = list
1077
+
1078
+          }
1079
+        })
1080
+      },
1081
+      //获取小项的值
1082
+      getInspectionDetai(val){
1083
+        console.log("val2332232",val)
1084
+        var params = {
1085
+          project_id:val.project_id,
1086
+          patient_id:val.patient_id,
1087
+          inspect_date:val.inspect_date,
1088
+        }
1089
+        // console.log("param2233233223",params)
1090
+       getInspectionDetail(params).then(response=>{
1091
+          if(response.data.state ==1){
1092
+            var list = response.data.data.list
1093
+            // console.log("详情222",list)
1094
+
1095
+            this.tableData = list
1096
+          }
1097
+       })
1098
+      },
1099
+      getInitDataList(){
1100
+        var params={
1101
+          start_year:this.getTime(this.form.start_year),
1102
+          start_month:this.getTime(this.form.start_month),
1103
+          quarter:this.form.quarter,
1104
+          patient_id:this.patient_id,
1105
+          start_time:this.start_date,
1106
+          end_time:this.end_date,
1107
+        }
1108
+        getInitDataList(params).then(response=>{
1109
+          if(response.data.state == 1){
1110
+           
1111
+             var modelist = response.data.data.modelist
1112
+             console.log("modelist",modelist)
1113
+             var docList = response.data.data.docList
1114
+            //  console.log("doctlist",docList)
1115
+             this.docList = docList
1116
+             var summaryList = response.data.data.summaryList
1117
+            //  console.log("summaryList",summaryList)
1118
+             this.summaryList = summaryList
1119
+             var planList = response.data.data.planList
1120
+            //  console.log("planlist",planList)
1121
+             this.planList = planList
1122
+          }
1123
+       })
1124
+      },
1125
+      changeYear(val){
1126
+        if(val == "2021-02"){
1127
+          this.startYear = val+"-" + "28"
1128
+        }else if(val == "2021-08"){
1129
+          this.startYear = val+"-" + "31"
1130
+        }else if(val == "2021-10"){
1131
+          this.startYear = val+"-" + "31"
1132
+        }else if(val == "2021-12"){
1133
+          this.startYear = val+"-" + "31"
1134
+        }else{
1135
+          this.startYear = val+"-" + "30"
1136
+        }
1137
+
1138
+        this.lastYear = val+"-"+"01"
1139
+        this.getInspectionMajor()
1140
+      },
1141
+      selectSummary(val){
1142
+        console.log("val23232",val)
1143
+        var arr = []
1144
+        for( let i=0;i<val.length;i++){
1145
+           arr.push(val[i].id)
1146
+        }
1147
+
1148
+        var str = arr.join(",")
1149
+       console.log("str",str)
1150
+       this.ids = str
1151
+      },
1152
+      toContent(){
1153
+        var str = this.projectList.join(",")
1154
+        this.projectStr = str
1155
+        var inspe_date = this.inspectDataList.join(",")
1156
+        this.projectIndate = inspe_date
1157
+        var params = {
1158
+          ids:str,
1159
+          inspect_date:inspe_date,
1160
+          patient_id:this.patient_id,
1161
+        }
1162
+        getInspectionItemList(params).then(response=>{
1163
+          if(response.data.state == 1){
1164
+            var list = response.data.data.list
1165
+           let arr = this.unique(list,'project_name')
1166
+         
1167
+           this.form.patient_case_one = arr
1168
+           this.dialogVisibleInspection = false
1169
+          
1170
+           console.log("2323232owowowowowow",this.form.id)
1171
+          }
1172
+        })
1173
+     },
1174
+     unique(data, key) {
1175
+        let lastData = [];
1176
+        data.forEach(item => {
1177
+          let status = lastData.some(project_name => project_name[key] == item[key]);
1178
+          if (!status) {
1179
+            let obj = {
1180
+              project_name:'',
1181
+              arr:[]
1182
+            }
1183
+            obj.project_name = item.project_name
1184
+            obj.arr.push(item);
1185
+            lastData.push(obj);
1186
+          } else {
1187
+            lastData.forEach((project_name, index) => {
1188
+              if (project_name[key] === item[key]) {
1189
+                project_name.arr.push(item);
1190
+              }
1191
+            });
1192
+          }
1193
+        });
1194
+        return lastData;
1195
+      },
1196
+      changetype(){
1197
+        this.getInspectionMajor()
1198
+      },
782 1199
     },
783 1200
     watch: {
784 1201
       tableData: function() {

+ 44 - 4
src/xt_pages/user/firstDiseasePrint.vue View File

@@ -23,9 +23,24 @@
23 23
 
24 24
             <div class="inline_block" style="width:100%;">
25 25
                <span style="font-size:20px">病例特点:</span>
26
-                <div v-html="hosDetail.patient_case" class="printP" style="text-indent:20px">
27
-
28
-              </div>
26
+                <div v-html="hosDetail.patient_case" class="printP" style="text-indent:20px"></div>
27
+                <div class="borderBox">
28
+                  <div v-for="item in hosDetail.template_inspection_content">
29
+                    <p>{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
30
+                    <div style="display:flex;flex-wrap: wrap;">
31
+                      <div v-for="it in item.arr" style="width:33%;margin-bottom:10px;">
32
+                        {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
33
+                        {{it.inspect_value}}
34
+                        <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
35
+                        ↓
36
+                        </span> 
37
+                        <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
38
+                          ↑
39
+                        </span> 
40
+                      </div>
41
+                    </div>
42
+                  </div>
43
+                </div> 
29 44
             </div>
30 45
 
31 46
              <div class="inline_block" style="width:100%;">
@@ -155,8 +170,11 @@ export default {
155 170
        getFirstDetail(id).then(response=>{
156 171
         if(response.data.state == 1){
157 172
             var detail = response.data.data.detail
158
-        
159 173
             this.hosDetail = detail
174
+            var inspectlist = response.data.data.inspectlist
175
+             let arr = this.unique(inspectlist,'project_name')
176
+             this.hosDetail.template_inspection_content = arr
177
+          
160 178
         }
161 179
      })
162 180
     },
@@ -243,6 +261,28 @@ export default {
243 261
         return ''
244 262
       }
245 263
     },
264
+    unique(data, key) {
265
+      let lastData = [];
266
+      data.forEach(item => {
267
+        let status = lastData.some(project_name => project_name[key] == item[key]);
268
+        if (!status) {
269
+          let obj = {
270
+            project_name:'',
271
+            arr:[]
272
+          }
273
+          obj.project_name = item.project_name
274
+          obj.arr.push(item);
275
+          lastData.push(obj);
276
+        } else {
277
+          lastData.forEach((project_name, index) => {
278
+            if (project_name[key] === item[key]) {
279
+              project_name.arr.push(item);
280
+            }
281
+          });
282
+        }
283
+      });
284
+      return lastData;
285
+    },
246 286
   },
247 287
  
248 288
   created() {

+ 71 - 30
src/xt_pages/user/hospitalSummaryPrint.vue View File

@@ -14,7 +14,7 @@
14 14
             <td style="text-align:center;width:200px" colspan="1">
15 15
               姓名:
16 16
             </td>
17
-             <td style="text-align:center;width:200px" colspan="1">
17
+             <td style="text-align:center;width:250px" colspan="1">
18 18
               <span style="display:inline-block;margin-left:10px;">
19 19
                {{patient.name}}
20 20
               </span>
@@ -28,7 +28,7 @@
28 28
                 <span v-if="patient.gender == 2">女</span>
29 29
               </span>
30 30
             </td>
31
-            <td style="text-align:center;width:100px" colspan="1">
31
+            <td style="text-align:center;width:150px" colspan="1">
32 32
               年龄:
33 33
             </td>
34 34
             <td style="text-align:center;width:50px" colspan="1">
@@ -36,7 +36,7 @@
36 36
                  {{getNewAge(patient.id_card_no)}}
37 37
               </span>
38 38
             </td>
39
-            <td style="text-align:center;width:100px" colspan="1">
39
+            <td style="text-align:center;width:150px" colspan="1">
40 40
               婚姻:
41 41
             </td>
42 42
              <td style="text-align:center;width:100px" colspan="1">
@@ -48,10 +48,10 @@
48 48
                  <span v-if="patient.marital_status == 4">丧偶</span>
49 49
               </span>
50 50
             </td>
51
-             <td style="text-align:center;width:200px" colspan="1">
51
+             <td style="text-align:center;width:150px" colspan="1">
52 52
               职业: 
53 53
             </td>
54
-             <td style="text-align:center;width:100px" colspan="1">
54
+             <td style="text-align:center;width:200px" colspan="4">
55 55
               <span style="display:inline-block;margin-left:10px;">
56 56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
57 57
               </span>
@@ -69,18 +69,18 @@
69 69
             <td style="text-align:center;width:100px" colspan="1">
70 70
               身份证:
71 71
             </td>   
72
-            <td style="text-align:left;width:500px" colspan="12">
72
+            <td style="text-align:left;width:500px" colspan="15">
73 73
             
74 74
               <span style="display:inline-block;margin-left:10px;">
75 75
                 {{patient.id_card_no}}
76 76
               </span>
77 77
             </td>   
78 78
           </tr>
79
-          <tr>
79
+          <tr v-if="org_id!=10440">
80 80
             <td style="text-align:center;width:100px" colspan="1">
81 81
               住址:
82 82
             </td>   
83
-            <td style="text-align:center;width:500px" colspan="12">
83
+            <td style="text-align:center;width:500px" colspan="14">
84 84
             
85 85
               <span style="display:inline-block;margin-left:10px;">
86 86
                 {{patient.home_address}}
@@ -88,15 +88,15 @@
88 88
             </td>   
89 89
           </tr>
90 90
           <tr>
91
-            <td style="text-align:center;width:300px" colspan="1">
91
+            <td style="text-align:center;width:350px" colspan="1">
92 92
               入院时间:
93 93
             </td>
94
-            <td style="text-align:center;width:200px" colspan="2">
94
+            <td style="text-align:center;width:200px" colspan="4">
95 95
               <span style="display:inline-block;margin-left:10px;">
96 96
                 {{getTime(hosDetail.admission_time)}}
97 97
               </span>
98 98
             </td>
99
-            <td style="text-align:center;width:250px" colspan="1">
99
+            <td style="text-align:center;width:350px" colspan="1">
100 100
               出院时间:
101 101
             </td>
102 102
             <td style="text-align:center;width:250px" colspan="3">
@@ -104,7 +104,7 @@
104 104
                 {{getTime(hosDetail.discharge_time)}}
105 105
               </span>
106 106
             </td>
107
-            <td style="text-align:center;width:100px"  colspan="2">
107
+            <td style="text-align:center;width:150px"  colspan="3">
108 108
               住院天数:
109 109
             </td>
110 110
             <td style="text-align:center;width:50px" colspan="1">
@@ -131,7 +131,7 @@
131 131
             <td style="text-align:center;width:50px" colspan="1">
132 132
               X线:
133 133
             </td>
134
-            <td style="text-align:center;width:50px" colspan="2">
134
+            <td style="text-align:center;width:50px" colspan="3">
135 135
               <span style="display:inline-block;margin-left:10px;">
136 136
                 {{hosDetail.xray}}
137 137
               </span>
@@ -152,7 +152,7 @@
152 152
                 {{hosDetail.nuclear_magnetic_resonance}}
153 153
               </span>
154 154
             </td>
155
-             <td style="text-align:center;width:100px" colspan="1">
155
+             <td style="text-align:center;width:150px" colspan="1">
156 156
               超声:
157 157
             </td>
158 158
              <td style="text-align:center;width:100px" colspan="1">
@@ -160,7 +160,7 @@
160 160
                 {{hosDetail.ultrasound}}
161 161
               </span>
162 162
             </td>
163
-             <td style="text-align:center;width:50px" colspan="1">
163
+             <td style="text-align:center;width:50px" colspan="3">
164 164
               病理:
165 165
             </td>
166 166
              <td style="text-align:center;width:50px" colspan="1">
@@ -176,7 +176,7 @@
176 176
                
177 177
               </span>
178 178
             </td>   
179
-            <td style="text-align:center;" colspan="11">
179
+            <td style="text-align:center;" colspan="14">
180 180
               <span style="display:block;margin-left:10px;text-align:left;">
181 181
                 <span v-html="hosDetail.admitting_diagnosis"></span>
182 182
               </span>
@@ -186,7 +186,7 @@
186 186
             <td style="text-align:center;width:300px" colspan="1">
187 187
               出院诊断:
188 188
             </td>
189
-             <td style="text-align:center;" colspan="11">
189
+             <td style="text-align:center;" colspan="14">
190 190
              
191 191
               <span style="display:block;margin-left:10px;text-align:left;">
192 192
                <span v-html="hosDetail.discharge_diagnosis"></span>  
@@ -195,10 +195,10 @@
195 195
             
196 196
           </tr>
197 197
            <tr>
198
-            <td style="text-align:center;width:300px" colspan="1">
198
+            <td style="text-align:center;width:350px" colspan="1">
199 199
               入院时病情:
200 200
             </td>
201
-           <td colspan="11">
201
+           <td colspan="14">
202 202
             
203 203
               <span style="display:block;margin-left:10px;text-align:left;">
204 204
                  <span v-html="hosDetail.diagnosis_admission"></span>
@@ -212,7 +212,7 @@
212 212
               诊断经过:
213 213
            
214 214
             </td>
215
-            <td colspan="11">
215
+            <td colspan="14">
216 216
               <span style="display:block;margin-left:10px;text-align:left;">
217 217
                <span v-html="hosDetail.treatment"></span> 
218 218
               </span>
@@ -220,10 +220,10 @@
220 220
             
221 221
           </tr>
222 222
           <tr>
223
-            <td style="text-align:center;width:170px" colspan="1">
223
+            <td style="text-align:center;width:200px" colspan="1">
224 224
               出院时病情:
225 225
             </td>
226
-            <td colspan="11">
226
+            <td colspan="14">
227 227
             
228 228
               <span style="display:block;margin-left:10px;text-align:left;">
229 229
                <span v-html="hosDetail.illness_discharge"></span> 
@@ -236,7 +236,7 @@
236 236
             <td style="text-align:center;width:300px" colspan="1">
237 237
               出院医嘱:
238 238
             </td>
239
-            <td colspan="11">
239
+            <td colspan="14">
240 240
               <span style="display:block;margin-left:10px;text-align:left;">
241 241
                 <span v-html="hosDetail.discharge_advice"></span> 
242 242
               </span>
@@ -244,7 +244,7 @@
244 244
             
245 245
           </tr>
246 246
           <tr>
247
-            <td style="text-align:center;width:170px" colspan="3">
247
+            <td style="text-align:center;width:170px" colspan="1">
248 248
               <span style="display:inline-block;margin-left:10px;">
249 249
                
250 250
               </span>
@@ -252,17 +252,29 @@
252 252
             <td style="text-align:center;width:170px" colspan="3">
253 253
               上级医师签名:
254 254
             </td>
255
-            <td style="text-align:center;width:170px" colspan="2">
255
+            <td style="text-align:center;width:170px" colspan="3">
256 256
               <span style="display:inline-block;margin-left:10px;">
257
-                {{getDoctor(hosDetail.dean_id)}}
257
+                <!-- {{getDoctor(hosDetail.dean_id)}} -->
258
+                <span v-if="setAdminUserES(hosDetail.dean_id?hosDetail.dean_id:hosDetail.dean_id) == ''">
259
+                  {{getDoctor(hosDetail.dean_id)}} 
260
+             </span>
261
+              <span v-else>
262
+                <img style="height:30px;" :src="setAdminUserES(hosDetail.dean_id?hosDetail.dean_id:hosDetail.dean_id)" alt="" srcset="">
263
+              </span>
258 264
               </span>
259 265
             </td>
260
-           <td style="text-align:center;width:170px" colspan="2">
266
+           <td style="text-align:center;width:170px" colspan="3">
261 267
               住院医师签名:
262 268
             </td>
263
-             <td style="text-align:center;width:170px" colspan="2">
269
+             <td style="text-align:center;width:170px" colspan="3">
264 270
               <span style="display:inline-block;margin-left:10px;">
265
-                 {{getDoctor(hosDetail.doctor)}}
271
+                 <!-- {{getDoctor(hosDetail.doctor)}} -->
272
+                 <span v-if="setAdminUserES(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor) == ''">
273
+                  {{getDoctor(hosDetail.doctor)}} 
274
+             </span>
275
+              <span v-else>
276
+                <img style="height:30px;" :src="setAdminUserES(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor)" alt="" srcset="">
277
+              </span>
266 278
               </span>
267 279
             </td>
268 280
           </tr>
@@ -302,6 +314,9 @@ export default {
302 314
      patient:{},
303 315
      doctorList:[],
304 316
     educationOptions:[],
317
+    org_id:0,
318
+    operators: [],
319
+    operatorMaps: {},
305 320
     }
306 321
   },
307 322
   methods: {
@@ -356,6 +371,17 @@ export default {
356 371
            if(response.data.state == 1){
357 372
              var detail = response.data.data.detail
358 373
              this.hosDetail = detail
374
+             this.operators = response.data.data.operators
375
+              if (this.operators.length > 0) {
376
+              var operatorsLen = this.operators.length
377
+              for (var index = 0; index < operatorsLen; index++) {
378
+                this.$set(
379
+                  this.operatorMaps,
380
+                  this.operators[index].creator,
381
+                  this.operators[index]
382
+                )
383
+              }
384
+            }
359 385
            }
360 386
         })
361 387
     },
@@ -401,7 +427,21 @@ export default {
401 427
       var count = ""
402 428
       count = (end-start)/86400
403 429
       return count + 1
404
-    }
430
+    },
431
+    setAdminUserES(id) {
432
+        
433
+        if (id === 0) {
434
+          return ''
435
+        }
436
+        if (id in this.operatorMaps) {
437
+          
438
+          return this.operatorMaps[id].url
439
+         
440
+        } else {
441
+          return ''
442
+        }
443
+        
444
+     },
405 445
   },
406 446
  
407 447
   created() {
@@ -412,6 +452,7 @@ export default {
412 452
     this.getlist()
413 453
     this.getHospitalSummaryDetail(id)
414 454
     this.getAllDoctorList()
455
+    this.org_id = this.$store.getters.xt_user.org.id
415 456
     
416 457
   }
417 458
 }

+ 4 - 4
src/xt_pages/workforce/components/editTableData.vue View File

@@ -3820,7 +3820,7 @@ export default {
3820 3820
         this.$refs.table.doLayout();
3821 3821
       });
3822 3822
 
3823
-      if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
3823
+   
3824 3824
 
3825 3825
       // if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
3826 3826
 
@@ -4441,7 +4441,7 @@ export default {
4441 4441
 
4442 4442
       // if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877 && this.$store.getters.xt_user.template_info.org_id != 10340){
4443 4443
       //   return sums;
4444
-      // }
4444
+     
4445 4445
     },
4446 4446
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
4447 4447
       var that = this;
@@ -4921,7 +4921,7 @@ export default {
4921 4921
     },
4922 4922
     // 双击有内容的单元格
4923 4923
     dblclickThis(row, column, cell, event){
4924
-      this.msDialogVisible=true
4924
+     
4925 4925
       var week = this.weekDay(column.property);
4926 4926
       if (week[0] == -1 || week[1] == -1) {
4927 4927
         return false;
@@ -4945,7 +4945,7 @@ export default {
4945 4945
         this.currentData.patient = row[column.property].patient;
4946 4946
         this.currentData.contagions = row[column.property].patient_contagions;
4947 4947
         this.tiaoZhengType = 1;
4948
-
4948
+        this.msDialogVisible=true
4949 4949
       }
4950 4950
     },
4951 4951
 

+ 1 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue View File

@@ -168,7 +168,7 @@
168 168
           <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
169 169
           <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
170 170
           <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
171
-          <span v-if="scope.row.dialysissolution.anticoagulant === 8">诺肝素</span>
171
+          <span v-if="scope.row.dialysissolution.anticoagulant === 8">诺肝素</span>
172 172
           <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
173 173
           <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
174 174
           <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>

+ 1 - 1
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -255,7 +255,7 @@
255 255
                     <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
256 256
                     <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
257 257
                     <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
258
-                    <span v-if="scope.row.dialysissolution.anticoagulant === 8">诺肝素</span>
258
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 8">诺肝素</span>
259 259
                     <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
260 260
                     <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
261 261
                     <span v-if="scope.row.dialysissolution.anticoagulant === 11">那屈肝素</span>

+ 4 - 5
src/xt_pages/workforce/editTableData.vue View File

@@ -3772,7 +3772,7 @@ export default {
3772 3772
         this.$refs.table.doLayout();
3773 3773
       });
3774 3774
       
3775
-      if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877 || this.$store.getters.xt_user.template_info.org_id == 10340){
3775
+
3776 3776
 
3777 3777
         //表格某列全部数据
3778 3778
         var Mon_M = []
@@ -4387,11 +4387,10 @@ export default {
4387 4387
       }
4388 4388
       sums[22]="总人数:"+ sums[22] +"\n"+result
4389 4389
             return sums;
4390
-      }
4390
+      
4391 4391
 
4392
-      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877 && this.$store.getters.xt_user.template_info.org_id != 10340){
4393
-        return sums;
4394
-      }
4392
+     
4393
+      
4395 4394
     },
4396 4395
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
4397 4396
       var that = this;