Browse Source

修改样式

See999 5 years ago
parent
commit
068851c434

+ 184 - 224
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -4,14 +4,15 @@
4 4
     <div v-if="isShowDialog" class="Dialog">
5 5
       <div class="DialogTit">
6 6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
-        <h1 class="name">透析处方</h1>
8
-        <button @click="showmsgtip">{{patient.name}} [透析号 {{patient.dialysis_no}} ]</button>
9
-        <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
7
+        <h1 class="name newName">透析处方</h1>
8
+        <button class="newButton" @click="showmsgtip">{{patient.name}}</button>
9
+        <span @click="commitInfo" class="success" v-if="isPermission()">保存</span>
10 10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
11 11
 
12 12
       </div>
13 13
 
14
-      <div class="DialogContent" id="dialogTop">
14
+      <div class="DialogContent newDialogContent" id="dialogTop">
15
+        <div>
15 16
         <div @click="showSubMenu('mode')" class="item" ref="mode" v-if="isShow('透析模式')">
16 17
           <label class="name" for="txms">透析模式</label>
17 18
           <div class="content">
@@ -35,7 +36,6 @@
35 36
         </div>
36 37
 
37 38
         <div class="item" v-if="isShow('目标超滤量')">
38
-          <!--<label class="name" for="mbcll" v-if="this.$store.getters.user.template_info.template_id == 6">目标超滤量(ml)</label>-->
39 39
           <label class="name" for="mbcll">目标超滤量(L)</label>
40 40
           <div class="content">
41 41
             <input type="tel" @focus="inputFocus" id="mbcll" v-model="dialysisPrescription.target_ultrafiltration"/>
@@ -60,57 +60,37 @@
60 60
         </div>
61 61
 
62 62
         <div class="item" v-if="anticoagulant.shouji != -1&&isShow('首剂')">
63
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">首剂(mg)</label>
64
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">首剂(mg)</label>
65
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">首剂(iu)</label>
66
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">首剂(mg)</label>
67
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">首剂(mg)</label>
68
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">首剂(mg)</label>
63
+          <label class="name" for="sj">首剂({{anticoagulant.shouji_unit}})</label>
69 64
           <div class="content">
70
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
65
+            <input type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
71 66
                    :disabled="anticoagulant.shouji==1?false:true"/>
72
-
73
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_shouji"
74
-                   disabled="true"/>
75 67
           </div>
76 68
         </div>
77 69
         <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
78
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">维持(mg/h)</label>
79
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">维持(mg/h)</label>
80
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">维持(iu)</label>
81
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">维持(mg/h)</label>
82
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">维持(ml/h)</label>
83
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">维持(mg/h)</label>
70
+          <label class="name" for="wz">维持({{anticoagulant.weichi_unit}})</label>
84 71
           <div class="content">
85
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="wz" class="inputBox"
72
+            <input type="tel" @focus="inputFocus" id="wz" class="inputBox"
86 73
                    v-model="dialysisPrescription.anticoagulant_weichi"
87 74
                    :disabled="anticoagulant.weichi==1?false:true">
88
-
89
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_weichi"
90
-                   disabled="true"/>
91 75
           </div>
92 76
         </div>
93 77
         <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
94
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">总量(mg)</label>
95 78
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">总量(mg)</label>
96
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">总量(iu)</label>
79
+          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">总量(IU)</label>
97 80
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">总量(mg)</label>
98 81
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">总量(mg)</label>
99 82
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">总量(mg)</label>
100 83
 
101 84
 
102 85
           <div class="content">
103
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="zl" class="inputBox"
86
+            <input type="tel" @focus="inputFocus" id="zl" class="inputBox"
104 87
                    v-model="dialysisPrescription.anticoagulant_zongliang"
105 88
                    :disabled="anticoagulant.zongliang==1?false:true">
106
-
107
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_zongliang"
108
-                   disabled="true"/>
109 89
           </div>
110 90
         </div>
111 91
 
112 92
         <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
113
-          <label class="name" for="g">钙名称</label>
93
+          <label class="name" for="g">钙名称({{anticoagulant.gaimingcheng_unit}})</label>
114 94
           <div class="content">
115 95
             <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
116 96
                    :disabled="anticoagulant.gaimingcheng==1?false:true">
@@ -118,10 +98,10 @@
118 98
         </div>
119 99
 
120 100
         <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
121
-          <label class="name" for="gjl">钙剂量({{anticoagulant.gaimingcheng_unit}})</label>
101
+          <label class="name" for="gjl">钙剂量</label>
122 102
           <div class="content">
123
-            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaijiliang"
124
-                   :disabled="anticoagulant.gaijiliang==1?false:true">
103
+            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
104
+                   :disabled="anticoagulant.gaimingcheng==1?false:true">
125 105
           </div>
126 106
         </div>
127 107
         <!-- <div class="item">
@@ -132,7 +112,7 @@
132 112
         </div> -->
133 113
 
134 114
         <div class="line"></div>
135
-        <div class="item" v-if="isShow('置换量')" v-show="zhiShow">
115
+        <div class="item" v-if="isShow('置换量')">
136 116
           <label class="name" for="zhy">置换量(L)</label>
137 117
           <div class="content">
138 118
             <input type="tel" @focus="inputFocus" id="zhy" v-model="dialysisPrescription.replacement_total"/>
@@ -196,15 +176,7 @@
196 176
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
197 177
           </div>
198 178
         </div>
199
-        <!-- <div @click="showSubMenu('dialyzer_perfusion_apparatus')" class="item" ref="dialyzer_perfusion_apparatus" v-if="isShow('透析器/灌流器') && template_id == 6">
200
-          <label class="name" for="dt1">透析器/灌流器</label>
201
-          <div class="content">
202
-            <span class="text" id="dt">{{dialysisPrescription.dialyzer_perfusion_apparatus}}</span>
203
-            <span class="iconfont">&#xe6f9;</span>
204
-          </div>
205
-        </div> -->
206
-
207
-        <div class="item" v-if="isShow('透析器/灌流器') ">
179
+        <div class="item" v-if="isShow('透析器/灌流器')">
208 180
           <label class="name" for="dtl">透析器/灌流器</label>
209 181
           <div class="content">
210 182
 
@@ -243,16 +215,15 @@
243 215
           </div>
244 216
         </div>
245 217
 
246
-        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')" v-show="huShow">
247
-          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id == 6">置换方式</label>
248
-          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id != 6">置换液</label>
218
+        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')">
219
+          <label class="name" for="knj">置换液</label>
249 220
           <div class="content">
250 221
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
251 222
             <span class="iconfont">&#xe6f9;</span>
252 223
           </div>
253 224
         </div>
254 225
 
255
-        <div class="item" v-if="isShow('置换液总量')" v-show="totalShow">
226
+        <div class="item" v-if="isShow('置换液总量')">
256 227
           <label class="name" for="knj">置换液总量(L)</label>
257 228
           <div class="content">
258 229
             <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
@@ -309,7 +280,7 @@
309 280
           <textarea class="textarea" id="bz" placeholder="请输入内容" v-model="dialysisPrescription.remark"
310 281
                     @focus="lastInputFocus" @blur="lastInputBlur"></textarea>
311 282
         </div>
312
-
283
+        </div>
313 284
         <!--<div class="footer">-->
314 285
         <!--处方医生:刘小军 医生-->
315 286
         <!--</div>-->
@@ -341,12 +312,11 @@
341 312
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
342 313
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
343 314
 
344
-    <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
315
+    <msg-tip  :visibility="msgtip_visibility" :predialysis="predialysis"
345 316
              :last_predialysis="last_predialysis"
346 317
              :record="record"
347 318
              :last_record="last_record"
348 319
              :patient_prop="patient"
349
-             :dry_weight="dry_weight"
350 320
              :prescription_prop="prescription_prop"
351 321
              v-on:menu-msg-tip="menuMsgTip"></msg-tip>
352 322
 
@@ -357,7 +327,6 @@
357 327
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
358 328
   import MultipleSubMenu from './subMenu/multipleSubMenu'
359 329
   import {commitDialysisPrescription, CreateGroupAdvice, GetSolution, postSign, postSolution} from '@/api/dialysis'
360
-  import { calculateAnticoagulantZL} from '@/utils/tools'
361 330
 
362 331
   import {Toast} from 'vant'
363 332
   import {getDataConfig} from '@/utils/data'
@@ -453,7 +422,6 @@
453 422
         msgtip_visibility: false,
454 423
         time: '03:00',
455 424
         timeValue: '',
456
-        tempTimeValue:'',
457 425
         isShowSign: false,
458 426
         anticoagulantsConfit: {},
459 427
         dialysateFormulationOptions: [],
@@ -466,8 +434,8 @@
466 434
           result: [],
467 435
           operators: [],
468 436
 
469
-        },
470
-        is_show: false,
437
+      },
438
+      is_show: false,
471 439
 
472 440
         perfusion_apparatus: {},
473 441
         replacementWays: [],
@@ -619,7 +587,7 @@
619 587
         }
620 588
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
621 589
 
622
-        this.dialysisPrescription.dialysis_duration = parseFloat(this.dialysisPrescription.dialysis_duration_hour) + parseFloat((this.dialysisPrescription.dialysis_duration_minute / 60).toFixed(2))
590
+        this.dialysisPrescription.dialysis_duration = this.dialysisPrescription.dialysis_duration_hour + '.' + (this.dialysisPrescription.dialysis_duration_minute)
623 591
 
624 592
       },
625 593
       inputFocus: function (event) {
@@ -689,139 +657,139 @@
689 657
             this.propForm.selectId = this.dialysisPrescription.perfusion_apparatus
690 658
             this.propForm.click_ref = 'perfusion_apparatus'
691 659
 
692
-            break
693
-          case 'replacement_way':
694
-            this.propForm.type = 4
695
-            this.isShowDialog = false
696
-            this.propForm.title = '置换方式'
697
-            this.visibility = true
698
-            this.propForm.list = []
699
-            this.propForm.optionList = this.replacementWays
700
-            this.propForm.isMultiple = 1
701
-            this.propForm.selectId = this.dialysisPrescription.replacement_way
702
-            this.propForm.click_ref = 'replacement_way'
660
+          break
661
+        case 'replacement_way':
662
+          this.propForm.type = 4
663
+          this.isShowDialog = false
664
+          this.propForm.title = '置换方式'
665
+          this.visibility = true
666
+          this.propForm.list = []
667
+          this.propForm.optionList = this.replacementWays
668
+          this.propForm.isMultiple = 1
669
+          this.propForm.selectId = this.dialysisPrescription.replacement_way
670
+          this.propForm.click_ref = 'replacement_way'
703 671
 
704 672
             break
705 673
 
706
-          case 'anticoagulant':
707
-            this.propForm.type = 5
708
-            this.isShowDialog = false
709
-            this.propForm.title = '抗疑剂'
710
-            this.visibility = true
711
-            this.propForm.list = []
712
-            this.propForm.optionList = this.anticoagulantsConfit
713
-            this.propForm.isMultiple = 1
714
-            this.propForm.selectId = this.dialysisPrescription.anticoagulant
715
-            this.propForm.click_ref = 'anticoagulant'
716
-            break
717
-          case 'dialysate_formulation':
718
-            this.propForm.type = 6
719
-            this.isShowDialog = false
720
-            this.propForm.title = '透析液配方'
721
-            this.visibility = true
722
-            this.propForm.list = []
723
-            this.propForm.optionList = this.dialysateFormulationOptions
724
-            this.propForm.isMultiple = 1
725
-            this.propForm.selectId = this.dialysisPrescription.dialysate_formulation
726
-            this.propForm.click_ref = 'dialysate_formulation'
727
-            break
728
-          case 'body_fluid':
729
-            this.propForm.type = 7
730
-            this.isShowDialog = false
731
-            this.propForm.title = '体液过多症状'
732
-            this.visibility = true
733
-            this.propForm.list = []
734
-            this.propForm.optionList = this.bodyFluidOptions
735
-            this.propForm.isMultiple = 1
736
-            this.propForm.selectId = this.dialysisPrescription.body_fluid
737
-            this.propForm.click_ref = 'body_fluid'
738
-            break
739
-          case 'special_medicine':
740
-            this.propForm.type = 8
741
-            this.isShowDialog = false
742
-            this.propForm.title = '透析前使用特殊药物'
743
-            this.visibility = true
744
-            this.propForm.list = []
745
-            this.propForm.optionList = this.specialMedicineOptions
746
-            this.propForm.isMultiple = 1
747
-            this.propForm.selectId = this.dialysisPrescription.special_medicine
748
-            this.propForm.click_ref = 'special_medicine'
749
-            break
750
-          case 'displace_liqui_part':
751
-            this.propForm.type = 9
752
-            this.isShowDialog = false
753
-            this.propForm.title = '置换液'
754
-            this.visibility = true
755
-            this.propForm.list = []
756
-            this.propForm.optionList = this.displaceLiquiPartOptions
757
-            this.propForm.isMultiple = 1
758
-            this.propForm.selectId = this.dialysisPrescription.displace_liqui_part
759
-            this.propForm.click_ref = 'displace_liqui_part'
760
-            break
761
-          case 'blood_access':
762
-            this.propForm.type = 10
763
-            this.isShowDialog = false
764
-            this.propForm.title = '血管通路'
765
-            this.visibility = true
766
-            this.propForm.list = []
767
-            this.propForm.optionList = this.bloodAccessOptions
768
-            this.propForm.isMultiple = 1
769
-            this.propForm.selectId = this.dialysisPrescription.blood_access
770
-            this.propForm.click_ref = 'blood_access'
771
-            break
772
-          case 'dialyzer_perfusion_apparatus':
773
-            // this.propForm.type = 11
774
-            // this.isShowDialog = false
775
-            // this.propForm.title = '透析器/灌流器'
776
-            // this.visibility = true
777
-            // this.propForm.list = []
778
-            // this.propForm.optionList = this.bloodAccessOptions
779
-            // this.propForm.isMultiple = 1
780
-            // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
781
-            // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
782
-            // break
783
-
784
-            this.propForm.result = []
785
-            this.isHasOther = 2
786
-            this.propForm.type = 11
787
-            this.isShowDialog = false
788
-            this.propForm.title = '透析器/灌流器'
789
-            this.visibility = true
790
-            this.propForm.list = []
791
-            this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
792
-            this.propForm.optionList = []
793
-            this.propForm.isMultiple = 2
794
-            // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
795
-            if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
796
-              if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
797
-                this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
798
-              } else {
799
-                this.propForm.result = []
800
-              }
674
+        case 'anticoagulant':
675
+          this.propForm.type = 5
676
+          this.isShowDialog = false
677
+          this.propForm.title = '抗疑剂'
678
+          this.visibility = true
679
+          this.propForm.list = []
680
+          this.propForm.optionList = this.anticoagulantsConfit
681
+          this.propForm.isMultiple = 1
682
+          this.propForm.selectId = this.dialysisPrescription.anticoagulant
683
+          this.propForm.click_ref = 'anticoagulant'
684
+          break
685
+        case 'dialysate_formulation':
686
+          this.propForm.type = 6
687
+          this.isShowDialog = false
688
+          this.propForm.title = '透析液配方'
689
+          this.visibility = true
690
+          this.propForm.list = []
691
+          this.propForm.optionList = this.dialysateFormulationOptions
692
+          this.propForm.isMultiple = 1
693
+          this.propForm.selectId = this.dialysisPrescription.dialysate_formulation
694
+          this.propForm.click_ref = 'dialysate_formulation'
695
+          break
696
+        case 'body_fluid':
697
+          this.propForm.type = 7
698
+          this.isShowDialog = false
699
+          this.propForm.title = '体液过多症状'
700
+          this.visibility = true
701
+          this.propForm.list = []
702
+          this.propForm.optionList = this.bodyFluidOptions
703
+          this.propForm.isMultiple = 1
704
+          this.propForm.selectId = this.dialysisPrescription.body_fluid
705
+          this.propForm.click_ref = 'body_fluid'
706
+          break
707
+        case 'special_medicine':
708
+          this.propForm.type = 8
709
+          this.isShowDialog = false
710
+          this.propForm.title = '透析前使用特殊药物'
711
+          this.visibility = true
712
+          this.propForm.list = []
713
+          this.propForm.optionList = this.specialMedicineOptions
714
+          this.propForm.isMultiple = 1
715
+          this.propForm.selectId = this.dialysisPrescription.special_medicine
716
+          this.propForm.click_ref = 'special_medicine'
717
+          break
718
+        case 'displace_liqui_part':
719
+          this.propForm.type = 9
720
+          this.isShowDialog = false
721
+          this.propForm.title = '置换液'
722
+          this.visibility = true
723
+          this.propForm.list = []
724
+          this.propForm.optionList = this.displaceLiquiPartOptions
725
+          this.propForm.isMultiple = 1
726
+          this.propForm.selectId = this.dialysisPrescription.displace_liqui_part
727
+          this.propForm.click_ref = 'displace_liqui_part'
728
+          break
729
+        case 'blood_access':
730
+          this.propForm.type = 10
731
+          this.isShowDialog = false
732
+          this.propForm.title = '血管通路'
733
+          this.visibility = true
734
+          this.propForm.list = []
735
+          this.propForm.optionList = this.bloodAccessOptions
736
+          this.propForm.isMultiple = 1
737
+          this.propForm.selectId = this.dialysisPrescription.blood_access
738
+          this.propForm.click_ref = 'blood_access'
739
+          break
740
+        case 'dialyzer_perfusion_apparatus':
741
+          // this.propForm.type = 11
742
+          // this.isShowDialog = false
743
+          // this.propForm.title = '透析器/灌流器'
744
+          // this.visibility = true
745
+          // this.propForm.list = []
746
+          // this.propForm.optionList = this.bloodAccessOptions
747
+          // this.propForm.isMultiple = 1
748
+          // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
749
+          // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
750
+          // break
751
+
752
+          this.propForm.result = []
753
+          this.isHasOther = 2
754
+          this.propForm.type = 11
755
+          this.isShowDialog = false
756
+          this.propForm.title = '透析器/灌流器'
757
+          this.visibility = true
758
+          this.propForm.list = []
759
+          this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
760
+          this.propForm.optionList = []
761
+          this.propForm.isMultiple = 2
762
+          // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
763
+          if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
764
+            if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
765
+              this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
801 766
             } else {
802 767
               this.propForm.result = []
803 768
             }
804
-            this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
805
-            break
806
-        }
807
-      },
808
-      menuCancle: function () {
809
-        this.visibility = false
810
-        this.isShowDialog = true
811
-        this.$nextTick(() => {
812
-          if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
813
-            this.$refs[this.propForm.click_ref].scrollIntoView()
769
+          } else {
770
+            this.propForm.result = []
814 771
           }
815
-        })
816
-      },
817
-      menuCancleThree: function () {
818
-        this.advice_visibility = false
819
-        this.isShowDialog = true
820
-      },
821
-      menuMsgTip: function () {
822
-        this.msgtip_visibility = false
823
-        this.isShowDialog = true
824
-      },
772
+          this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
773
+          break
774
+      }
775
+    },
776
+    menuCancle: function () {
777
+      this.visibility = false
778
+      this.isShowDialog = true
779
+      this.$nextTick(() => {
780
+        if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
781
+          this.$refs[this.propForm.click_ref].scrollIntoView()
782
+        }
783
+      })
784
+    },
785
+    menuCancleThree: function () {
786
+      this.advice_visibility = false
787
+      this.isShowDialog = true
788
+    },
789
+    menuMsgTip: function () {
790
+      this.msgtip_visibility = false
791
+      this.isShowDialog = true
792
+    },
825 793
 
826 794
       menuComfirmThree: function (targetAdvices) {
827 795
 
@@ -1024,6 +992,10 @@
1024 992
                 }
1025 993
               }
1026 994
 
995
+              console.log(this.dialysisPrescription.dialysis_duration_hour)
996
+              console.log(this.dialysisPrescription.dialysis_duration_minute)
997
+              console.log(this.dialysisPrescription.dialysis_duration_hour == '')
998
+              console.log(this.dialysisPrescription.dialysis_duration_minute == 0)
1027 999
 
1028 1000
 
1029 1001
 
@@ -1967,10 +1939,6 @@
1967 1939
 
1968 1940
       }
1969 1941
 
1970
-
1971
-
1972
-
1973
-
1974 1942
       if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
1975 1943
         this.timeValue = ''
1976 1944
         this.time = '03:00'
@@ -2019,19 +1987,6 @@
2019 1987
       this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
2020 1988
       this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
2021 1989
 
2022
-      if(this.dialysisPrescription.anticoagulant_shouji == ''){
2023
-        this.dialysisPrescription.anticoagulant_shouji = '0'
2024
-      }
2025
-
2026
-      if(this.dialysisPrescription.anticoagulant_weichi == ''){
2027
-        this.dialysisPrescription.anticoagulant_weichi = '0'
2028
-      }
2029
-
2030
-      if(this.dialysisPrescription.anticoagulant_zongliang == ''){
2031
-        this.dialysisPrescription.anticoagulant_weichi = '0'
2032
-      }
2033
-
2034
-
2035 1990
     },
2036 1991
 
2037 1992
     components: {
@@ -2042,37 +1997,40 @@
2042 1997
       CheckBoxSubMenu
2043 1998
     },
2044 1999
     watch: {
2045
-      "dialysisPrescription.dialysis_duration":function(){
2046
-        console.log(this.dialysisPrescription.dialysis_duration)
2047
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2048
-          this.dialysisPrescription.anticoagulant_shouji,
2049
-          this.dialysisPrescription.dialysis_duration,
2050
-          this.dialysisPrescription.anticoagulant_weichi
2051
-        );
2052
-        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2053
-          this.dialysisPrescription.anticoagulant_zongliang = ''
2000
+      'dialysisPrescription.anticoagulant_shouji': function (val) {
2001
+        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2002
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2003
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2004
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2005
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2006
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2007
+        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2008
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2054 2009
         }
2055
-      },
2056
-      "dialysisPrescription.anticoagulant_shouji":function(){
2057
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2058
-          this.dialysisPrescription.anticoagulant_shouji,
2059
-          this.dialysisPrescription.dialysis_duration,
2060
-          this.dialysisPrescription.anticoagulant_weichi
2061
-        );
2062 2010
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2063 2011
           this.dialysisPrescription.anticoagulant_zongliang = ''
2064 2012
         }
2065
-      },
2066
-      "dialysisPrescription.anticoagulant_weichi":function(){
2067
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2068
-          this.dialysisPrescription.anticoagulant_shouji,
2069
-          this.dialysisPrescription.dialysis_duration,
2070
-          this.dialysisPrescription.anticoagulant_weichi
2071
-        );
2013
+
2014
+
2015
+      }, 'dialysisPrescription.anticoagulant_weichi': function (val) {
2016
+        console.log(this.dialysisPrescription.anticoagulant_shouji)
2017
+        console.log(this.dialysisPrescription.anticoagulant_weichi)
2018
+        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2019
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2020
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2021
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2022
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2023
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2024
+        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2025
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2026
+        }
2027
+
2072 2028
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2073 2029
           this.dialysisPrescription.anticoagulant_zongliang = ''
2030
+
2074 2031
         }
2075 2032
       },
2033
+
2076 2034
       isShowDialog (val) {
2077 2035
         if (val) {
2078 2036
           this.advice_visibility = false
@@ -2081,6 +2039,8 @@
2081 2039
     }
2082 2040
   }
2083 2041
 </script>
2042
+
2043
+
2084 2044
 <style style="stylesheet/scss" lang="scss" scoped>
2085 2045
   .DialogContent {
2086 2046
   // padding-bottom:2rem !important;
@@ -2101,7 +2061,7 @@
2101 2061
     padding: 0 0.2rem;
2102 2062
     height: 0.85rem;
2103 2063
     line-height: 0.85rem;
2104
-    border-radius:5px;
2064
+    border-radius:5px; 
2105 2065
     color: #fff;
2106 2066
     margin-right: -3.5rem;
2107 2067
   }

+ 1 - 1
src/pages/main/dialog/new_order/AddNewOrders.vue View File

@@ -613,7 +613,7 @@ export default {
613 613
   }
614 614
 }
615 615
 .newSpan {
616
-  padding: 0 0.4rem;
616
+  padding: 0 0.3rem;
617 617
 }
618 618
 </style>
619 619
 <style lang="scss">

+ 7 - 20
src/pages/main/dialog/subMenu/MsgTip.vue View File

@@ -28,7 +28,7 @@
28 28
       <div class="item">
29 29
         <label class="name" for="txms">干体重(kg)</label>
30 30
         <div class="content">
31
-          <span class="text" id="txms">{{ dry }}</span>
31
+          <span class="text" id="txms">{{ last_predialysis.dry_weight }}</span>
32 32
         </div>
33 33
       </div>
34 34
       <div class="item">
@@ -73,33 +73,23 @@
73 73
 import { parseTime } from "@/utils";
74 74
 
75 75
 export default {
76
-  name: "MsgTip",
76
+  name: "LongAdviceSubMenu",
77 77
   created() {
78 78
     if (
79
-      this.predialysis &&
80
-      this.predialysis.weight_before > 0 &&
81
-      this.predialysis.weight_after_last_transparency > 0
79
+      predialysis.weight_before > 0 &&
80
+      predialysis.weight_after_last_transparency > 0
82 81
     ) {
83
-      this.add_weight = parseFloat(
84
-        this.predialysis.weight_before -
85
-          this.predialysis.weight_after_last_transparency
82
+      add_weight = parseFloat(
83
+        predialysis.weight_before - predialysis.weight_after_last_transparency
86 84
       ).toFixed(2);
87 85
     }
88
-
89
-    console.log(this.dry_weight);
90
-    if (this.dry_weight != null) {
91
-      this.dry = this.dry_weight.dry_weight;
92
-    } else {
93
-      this.dry = this.last_predialysis.dry_weight;
94
-    }
95 86
   },
96 87
   data() {
97 88
     return {
98 89
       result: [],
99 90
       id: 0,
100 91
       selectName: "",
101
-      add_weight: 0,
102
-      dry: 0
92
+      add_weight: 0
103 93
     };
104 94
   },
105 95
   props: {
@@ -124,9 +114,6 @@ export default {
124 114
     },
125 115
     prescription_prop: {
126 116
       type: Object
127
-    },
128
-    dry_weight: {
129
-      type: Object
130 117
     }
131 118
   },
132 119
   computed: {

+ 1 - 1
src/pages/main/dialog/subMenu/multipleSubMenu.vue View File

@@ -609,7 +609,7 @@ export default {
609 609
 
610 610
 <style style="stylesheet/scss" scoped>
611 611
 .DialogContent {
612
-  // padding-bottom:2rem !important;
612
+  /* padding-bottom:2rem !important; */
613 613
 
614 614
   .textarea {
615 615
     width: 100%;