Browse Source

添加字段

张保健 4 years ago
parent
commit
4dbd2ec033
2 changed files with 620 additions and 489 deletions
  1. 106 32
      src/pages/main/dialog/ThorougDialog.vue
  2. 514 457
      src/pages/main/today/assessmentAfter.vue

+ 106 - 32
src/pages/main/dialog/ThorougDialog.vue View File

@@ -484,52 +484,66 @@
484 484
         </div>
485 485
 
486 486
         <div @click="showSubMenu('return_blood')" class="item" ref="return_blood" v-if="isShow('回血')">
487
-          <label class="name" for="hx">回血</label>
487
+          <label class="name" for="hx">回血(ml)</label>
488 488
           <div class="content">
489 489
             <input type="number" @click="newClick($event)" @focus="inputFocus" id="txz" v-model="formValue.return_blood" />
490 490
           </div>
491 491
         </div>
492 492
 
493
-        <div @click="showSubMenu('rehydration_volume')" class="item" ref="return_blood" v-if="isShow('补液量')">
494
-          <label class="name" for="hx">补液量</label>
493
+        <div @click="showSubMenu('rehydration_volume')" class="item" ref="rehydration_volume" v-if="isShow('补液量')">
494
+          <label class="name" for="hx">补液量(ml)</label>
495 495
           <div class="content">
496 496
             <input type="number" @click="newClick($event)" @focus="inputFocus" id="txz" v-model="formValue.rehydration_volume" />
497 497
           </div>
498 498
         </div>
499 499
 
500 500
         <div @click="showSubMenu('dialysis_during')" class="item" ref="dialysis_during" v-if="isShow('透析中进食')">
501
-          <label class="name" for="hx">透析中进食</label>
501
+          <label class="name" for="hx">透析中进食(ml)</label>
502 502
           <div class="content">
503 503
             <input type="number" @click="newClick($event)" @focus="inputFocus" id="txz" v-model="formValue.dialysis_during" />
504 504
           </div>
505 505
         </div>
506 506
 
507 507
         <div @click="showSubMenu('stroke_volume')" class="item" ref="stroke_volume" v-if="isShow('出量')">
508
-          <label class="name" for="hx">出量</label>
508
+          <label class="name" for="hx">出量(ml)</label>
509 509
           <div class="content">
510 510
             <input type="number" @click="newClick($event)" @focus="inputFocus" id="txz" v-model="formValue.stroke_volume" />
511 511
           </div>
512 512
         </div>
513 513
 
514
+        <div @click="showSubMenu('blood_flow')" class="item" ref="blood_flow" v-if="isShow('血流量')" >
515
+          <label class="name" for="xll">血流量</label>
516
+          <div class="content">
517
+            <span class="text" id="xll">{{BloodFlowById(formValue.blood_flow)}}</span>
518
+            <span class="iconfont">&#xe6f9;</span>
519
+          </div>
520
+        </div>
521
+
522
+        <div @click="showSubMenu('sealing_fluid_dispose')" class="item" ref="sealing_fluid_dispose" v-if="isShow('封管液配置')" >
523
+          <label class="name" for="fgypz">封管液配置</label>
524
+          <div class="content">
525
+            <span class="text" id="fgypz">{{QuerySealingFluidDisposeById(formValue.sealing_fluid_dispose)}}</span>
526
+            <span class="iconfont">&#xe6f9;</span>
527
+          </div>
528
+        </div>
529
+
530
+        <div @click="showSubMenu('sealing_fluid_special')" class="item" ref="sealing_fluid_special" v-if="sealing_fluid_dispose_name == '特殊' && isShow('封管液特殊')">
531
+          <label class="name" for="fgypztx">封管液配置(特殊)</label>
532
+          <div class="content">
533
+            <input  @click="newClick($event)" @focus="inputFocus" id="fgypztx" v-model="formValue.sealing_fluid_special" />
534
+          </div>
535
+        </div>
536
+
514 537
         <div class="line"></div>
515
-        <div
516
-          @click="showSubMenu('blood_access_part')"
517
-          class="item"
518
-          ref="blood_access_part"
519
-          v-if="isShow('血管通路部位')"
520
-        >
538
+        <div @click="showSubMenu('blood_access_part')" class="item" ref="blood_access_part" v-if="isShow('血管通路部位')" >
521 539
           <label class="name" for="xgtl">血管通路部位</label>
522 540
           <div class="content">
523 541
             <span class="text" id="xgtl">{{QueryPartById(formValue.blood_access_part_id)}}</span>
524 542
             <span class="iconfont">&#xe6f9;</span>
525 543
           </div>
526 544
         </div>
527
-        <div
528
-          @click="showSubMenu('blood_access_opera')"
529
-          class="item"
530
-          ref="blood_access_opera"
531
-          v-if="isShow('血管通路操作')"
532
-        >
545
+
546
+        <div @click="showSubMenu('blood_access_opera')" class="item" ref="blood_access_opera" v-if="isShow('血管通路操作')" >
533 547
           <label class="name" for="xgtlcz">血管通路操作</label>
534 548
           <div class="content">
535 549
             <span class="text" id="xgtlcz">{{QueryOperaById(formValue.blood_access_part_opera_id)}}</span>
@@ -734,6 +748,7 @@ export default {
734 748
         isHasOther: 1
735 749
       },
736 750
       timeValue: '',
751
+      sealing_fluid_dispose_name: '',
737 752
       formValue: {
738 753
         weight_after: '',
739 754
         weight_loss: '',
@@ -783,13 +798,25 @@ export default {
783 798
         return_blood: '',
784 799
         rehydration_volume: '',
785 800
         dialysis_during: '',
786
-        stroke_volume: ''
801
+        stroke_volume: '',
802
+        blood_flow: '',
803
+        sealing_fluid_dispose: '',
804
+        sealing_fluid_special: ''
787 805
       },
788 806
 
789 807
       record_date: ''
790 808
     }
791 809
   },
792 810
   watch: {
811
+    'formValue.sealing_fluid_dispose': function () {
812
+      var tempsealingFluidDisposeOptions = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
813
+      for (let i = 0; i < tempsealingFluidDisposeOptions.length; i++) {
814
+        if (tempsealingFluidDisposeOptions[i].id == this.formValue.sealing_fluid_dispose) {
815
+          this.sealing_fluid_dispose_name = tempsealingFluidDisposeOptions[i].name
816
+        }
817
+      }
818
+      return this.sealing_fluid_dispose_name
819
+    },
793 820
     'formValue.weight_after': {
794 821
       handler (newWeight, oldWeight) {
795 822
         // eslint-disable-next-line no-unused-vars
@@ -858,28 +885,21 @@ export default {
858 885
     newClick (event) {
859 886
       event.currentTarget.select()
860 887
     },
888
+
861 889
     isShow (name) {
862 890
       var filedList = this.$store.getters.user.fileds
863 891
       for (let i = 0; i < filedList.length; i++) {
864
-        if (
865
-          filedList[i].module == 5 &&
866
-            filedList[i].filed_name_cn == name &&
867
-            filedList[i].is_show == 1
868
-        ) {
892
+        if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
869 893
           return true
870 894
         }
871 895
       }
872 896
       return false
873 897
     },
898
+
874 899
     isShow2 (name) {
875 900
       var filedList = this.$store.getters.user.fileds
876
-
877 901
       for (let i = 0; i < filedList.length; i++) {
878
-        if (
879
-          filedList[i].module == 3 &&
880
-            filedList[i].filed_name_cn == name &&
881
-            filedList[i].is_show == 1
882
-        ) {
902
+        if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
883 903
           return true
884 904
         }
885 905
       }
@@ -889,13 +909,14 @@ export default {
889 909
     puncturePointOozingBlood: function (is_select) {
890 910
       this.formValue.puncture_point_oozing_blood = is_select == true ? 1 : 2
891 911
     },
912
+
892 913
     puncturePointHaematoma: function (is_select) {
893 914
       this.formValue.puncture_point_haematoma = is_select == true ? 1 : 2
894 915
     },
916
+
895 917
     GetIFTAValue (id) {
896 918
       let name = ''
897
-      let internal_fistula_tremor_ac = this.$store.getters
898
-        .internal_fistula_tremor_ac
919
+      let internal_fistula_tremor_ac = this.$store.getters.internal_fistula_tremor_ac
899 920
       let ifl = internal_fistula_tremor_ac.length
900 921
       for (let index = 0; index < ifl; index++) {
901 922
         if (internal_fistula_tremor_ac[index].id == id) {
@@ -1375,6 +1396,32 @@ export default {
1375 1396
           this.propForm.selectId = this.formValue.channel
1376 1397
           this.propForm.click_ref = 'channel'
1377 1398
           break
1399
+        case 'blood_flow':
1400
+          this.propForm.type = 25
1401
+          this.isShowDialog = false
1402
+          this.propForm.title = '血流量'
1403
+          this.propForm.isHasOther = 2
1404
+
1405
+          this.visibility = true
1406
+          this.propForm.list = []
1407
+          this.propForm.optionList = getDataConfig('hemodialysis', 'blood_flow')
1408
+          this.propForm.isMultiple = 1
1409
+          this.propForm.selectId = this.formValue.blood_flow
1410
+          this.propForm.click_ref = 'blood_flow'
1411
+          break
1412
+        case 'sealing_fluid_dispose':
1413
+          this.propForm.type = 26
1414
+          this.isShowDialog = false
1415
+          this.propForm.title = '封管液配置'
1416
+          this.propForm.isHasOther = 2
1417
+
1418
+          this.visibility = true
1419
+          this.propForm.list = []
1420
+          this.propForm.optionList = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
1421
+          this.propForm.isMultiple = 1
1422
+          this.propForm.selectId = this.formValue.blood_flow
1423
+          this.propForm.click_ref = 'sealing_fluid_dispose'
1424
+          break
1378 1425
       }
1379 1426
     },
1380 1427
     menuCancle: function () {
@@ -1407,7 +1454,6 @@ export default {
1407 1454
         case 2:
1408 1455
           this.formValue.symptom_after_dialysis = val.result.join(',')
1409 1456
           break
1410
-
1411 1457
         case 3:
1412 1458
           this.formValue.catheter = val.result.join(',')
1413 1459
           break
@@ -1501,6 +1547,12 @@ export default {
1501 1547
         case 24:
1502 1548
           this.formValue.channel = val.selectId
1503 1549
           break
1550
+        case 25:
1551
+          this.formValue.blood_flow = val.selectId
1552
+          break
1553
+        case 26:
1554
+          this.formValue.sealing_fluid_dispose = val.selectId
1555
+          break
1504 1556
       }
1505 1557
     },
1506 1558
     getUnit: function (val) {
@@ -1512,6 +1564,17 @@ export default {
1512 1564
       }
1513 1565
       return name
1514 1566
     },
1567
+    QuerySealingFluidDisposeById: function (val) {
1568
+      let sealing_fluid_dispose_name = ''
1569
+      let sealing_fluid_dispose_arr = getDataConfig('hemodialysis', 'sealing_fluid_dispose')
1570
+
1571
+      for (let i = 0; i < sealing_fluid_dispose_arr.length; i++) {
1572
+        if (sealing_fluid_dispose_arr[i].id == val) {
1573
+          sealing_fluid_dispose_name = sealing_fluid_dispose_arr[i].name
1574
+        }
1575
+      }
1576
+      return sealing_fluid_dispose_name
1577
+    },
1515 1578
     QueryPartById: function (val) {
1516 1579
       let vascular_access_part_name = ''
1517 1580
       let vascular_access = this.$store.getters.vascular_access
@@ -1536,6 +1599,17 @@ export default {
1536 1599
 
1537 1600
       return vascular_access_desc_name
1538 1601
     },
1602
+    BloodFlowById: function (val) {
1603
+      let blood_flow_name = ''
1604
+      let blood_flow_arr = getDataConfig('hemodialysis', 'blood_flow')
1605
+
1606
+      for (let i = 0; i < blood_flow_arr.length; i++) {
1607
+        if (blood_flow_arr[i].id == val) {
1608
+          blood_flow_name = blood_flow_arr[i].name
1609
+        }
1610
+      }
1611
+      return blood_flow_name
1612
+    },
1539 1613
     commitInfo: function () {
1540 1614
       let ParamsQuery = this.formValue
1541 1615
       ParamsQuery['patient'] = this.$route.query.patient_id

File diff suppressed because it is too large
+ 514 - 457
src/pages/main/today/assessmentAfter.vue