浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

XMLWAN 5 年前
父节点
当前提交
91efc1e9a2

+ 106 - 76
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -7,15 +7,36 @@
7 7
           <label>透析模式 : </label>
8 8
           <span class="content">{{dialysis_mode}}</span>
9 9
         </li>
10
+
11
+        <li v-if="isShow('置换量')">
12
+          <label>置换量 : </label>
13
+          <span class="content">{{replacement_total != '0'?replacement_total:""}}</span>
14
+          <span class="unit">{{replacement_total != '0'?"L":""}}</span>
15
+        </li>
16
+
17
+        <li v-if="isShow('透析液配方')">
18
+          <label>透析液配方 : </label>
19
+          <span class="content">{{dialysate_formulation}}</span>
20
+        </li>
21
+
22
+
23
+        <li v-if="isShow('透析液温度')">
24
+          <label>透析液温度 : </label>
25
+          <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
26
+          <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
27
+        </li>
28
+
10 29
         <li v-if="isShow('抗凝剂')">
11 30
           <label>抗凝剂 : </label>
12 31
           <span class="content">{{anticoagulant}}</span>
13 32
         </li>
33
+
34
+
35
+
14 36
         <li v-if="isShow('总量')&&getValueStr('anticoagulant','anticoagulant') != 5">
15 37
           <label>总量: </label>
16 38
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
17 39
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') == 1"></span>
18
-
19 40
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
20 41
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_zongliang != '0'?"iu":""}}</span>
21 42
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
@@ -23,15 +44,18 @@
23 44
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_zongliang != '0'?"ml":""}}</span>
24 45
         </li>
25 46
 
26
-        <li v-if="isShow('目标超滤量')">
27
-          <label>目标超滤量 : </label>
28
-          <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
29
-          <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
47
+        <li v-if="isShow('透析器/灌流器')">
48
+          <label>透析器/灌流器 : </label>
49
+          <span class="content">{{dialyzer_perfusion_apparatus}}</span>
50
+          <span class="unit"></span>
30 51
         </li>
31 52
 
32 53
 
33
-
34
-
54
+        <li v-if="isShow('透析前使用特殊药物')">
55
+          <label>透析前使用特殊药物: </label>
56
+          <span class="content">{{special_medicine}}</span>
57
+          <span class="unit"></span>
58
+        </li>
35 59
 
36 60
 
37 61
 
@@ -45,48 +69,41 @@
45 69
         </li>
46 70
 
47 71
 
48
-        <li v-if="isShow('钠')">
49
-          <label>钠 : </label>
50
-          <span class="content">{{sodium != '0'?sodium:""}}</span>
51
-          <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
52
-        </li>
53 72
 
54
-        <li v-if="isShow('体液过多症状')">
55
-          <label>体液过多症状 : </label>
56
-          <span class="content">{{body_fluid}}</span>
57
-          <span class="unit"></span>
58
-        </li>
59 73
 
60 74
 
61 75
 
62
-        <li v-if="isShow('置换量')">
63
-          <label>置换量 : </label>
64
-          <span class="content">{{replacement_total != '0'?replacement_total:""}}</span>
65
-          <span class="unit">{{replacement_total != '0'?"L":""}}</span>
66
-        </li>
67 76
 
68 77
 
69
-        <li v-if="isShow('透析前使用其他特殊药物')">
70
-          <label>透析前使用其他特殊药物: </label>
71
-          <span class="content">{{special_medicine_other}}</span>
72
-          <span class="unit"></span>
73
-        </li>
74 78
 
79
+      </ul>
80
+
81
+
82
+      <ul>
83
+        <li v-if="isShow('目标超滤量')">
84
+          <label>目标超滤量 : </label>
85
+          <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
86
+          <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
87
+        </li>
75 88
         <li v-if="isShow('葡萄糖')">
76 89
           <label>葡萄糖 : </label>
77 90
           <span class="content">{{glucose != '0'?glucose:""}}</span>
78 91
           <span class="unit">{{glucose != '0'?"mmol/l":""}}</span>
79 92
         </li>
80 93
 
81
-
82
-      </ul>
94
+        <li v-if="isShow('钾')">
95
+          <label>钾 : </label>
96
+          <span class="content">{{kalium != '0'?kalium:""}}</span>
97
+          <span class="unit">{{kalium != '0'?"mmol/L":""}}</span>
98
+        </li>
83 99
 
84 100
 
85
-      <ul>
86
-        <li v-if="isShow('透析时长')">
87
-          <label>透析时长 : </label>
88
-          <span class="content">{{dialysis_duration != '0'?dialysis_duration:""}}</span>
101
+        <li v-if="isShow('血流量')">
102
+          <label>血流量 : </label>
103
+          <span class="content">{{blood_flow_volume != '0'?blood_flow_volume:''}}</span>
104
+          <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
89 105
         </li>
106
+
90 107
         <li v-if="isShow('首剂')&&getValueStr('anticoagulant','anticoagulant') != 5">
91 108
           <label>首剂 : </label>
92 109
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>
@@ -97,41 +114,40 @@
97 114
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_shouji != '0'?"mg":""}}</span>
98 115
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_shouji != '0'?"mg":""}}</span>
99 116
         </li>
117
+        <li v-if="isShow('钠')">
118
+          <label>钠 : </label>
119
+          <span class="content">{{sodium != '0'?sodium:""}}</span>
120
+          <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
121
+        </li>
122
+
123
+        <li v-if="isShow('体液过多症状')">
124
+          <label>体液过多症状 : </label>
125
+          <span class="content">{{body_fluid}}</span>
126
+          <span class="unit"></span>
127
+        </li>
100 128
 
101 129
 
102
-        <li v-if="isShow('透析液温度')">
103
-          <label>透析液温度 : </label>
104
-          <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
105
-          <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
130
+
131
+        <li v-if="isShow('透析前使用其他特殊药物')">
132
+          <label>透析前使用其他特殊药物: </label>
133
+          <span class="content">{{special_medicine_other}}</span>
134
+          <span class="unit"></span>
106 135
         </li>
107 136
 
108 137
 
109 138
 
110 139
 
140
+
141
+
142
+
111 143
         <li v-if="isShow('钙名称')&&getValueStr('anticoagulant','anticoagulant') == 5">
112 144
           <label>钙名称: </label>
113 145
           <span class="content">{{getValueStr('anticoagulant_gaimingcheng','anticoagulant_gaimingcheng')}}</span>
114 146
         </li>
115 147
 
116
-        <li v-if="isShow('钾')">
117
-          <label>钾 : </label>
118
-          <span class="content">{{kalium != '0'?kalium:""}}</span>
119
-          <span class="unit">{{kalium != '0'?"mmol/L":""}}</span>
120
-        </li>
121 148
 
122 149
 
123 150
 
124
-        <li v-if="isShow('碳酸氢盐')">
125
-          <label>碳酸氢盐 : </label>
126
-          <span class="content">{{bicarbonate != '0'?bicarbonate:""}}</span>
127
-          <span class="unit">{{bicarbonate != '0'?"mmol/L":""}}</span>
128
-        </li>
129
-
130
-        <li v-if="isShow('体液过多其他症状')">
131
-          <label>体液过多其他症状 : </label>
132
-          <span class="content">{{body_fluid_other}}</span>
133
-          <span class="unit"></span>
134
-        </li>
135 151
 
136 152
 
137 153
 
@@ -143,26 +159,35 @@
143 159
           <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
144 160
         </li>
145 161
 
146
-        <li v-if="isShow('透析液配方')">
147
-          <label>透析液配方 : </label>
148
-          <span class="content">{{dialysate_formulation}}</span>
162
+
163
+
164
+      </ul>
165
+      <ul>
166
+        <li v-if="isShow('钙')">
167
+          <label>钙: </label>
168
+          <span class="content">{{calcium != '0'?calcium:""}}</span>
169
+          <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
170
+        </li>
171
+
172
+        <li v-if="isShow('透析时长')">
173
+          <label>透析时长 : </label>
174
+          <span class="content">{{dialysis_duration != '0'?dialysis_duration:""}}</span>
149 175
         </li>
150 176
 
151 177
 
152
-          <li v-if="isShow('透析液流量')">
178
+
179
+        <li v-if="isShow('碳酸氢盐')">
180
+          <label>碳酸氢盐 : </label>
181
+          <span class="content">{{bicarbonate != '0'?bicarbonate:""}}</span>
182
+          <span class="unit">{{bicarbonate != '0'?"mmol/L":""}}</span>
183
+        </li>
184
+
185
+        <li v-if="isShow('透析液流量')">
153 186
           <label>透析液流量 : </label>
154 187
           <span class="content">{{dialysate_flow != '0'?dialysate_flow:""}}</span>
155 188
           <span class="unit">{{dialysate_flow != '0'?"ml/min":""}}</span>
156 189
         </li>
157 190
 
158
-      </ul>
159
-      <ul>
160
-
161
-        <li v-if="isShow('透析器/灌流器')">
162
-          <label>透析器/灌流器 : </label>
163
-          <span class="content">{{dialyzer_perfusion_apparatus}}</span>
164
-          <span class="unit"></span>
165
-        </li>
166 191
         <li v-if="isShow('维持')&&getValueStr('anticoagulant','anticoagulant') != 5">
167 192
           <label>维持 : </label>
168 193
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
@@ -173,6 +198,22 @@
173 198
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
174 199
           <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml/h":""}}</span>
175 200
         </li>
201
+
202
+
203
+
204
+        <li v-if="isShow('体液过多其他症状')">
205
+          <label>体液过多其他症状 : </label>
206
+          <span class="content">{{body_fluid_other}}</span>
207
+          <span class="unit"></span>
208
+        </li>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
176 217
         <li v-if="isShow('实际超滤量')">
177 218
           <label>实际超滤量: </label>
178 219
           <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>
@@ -180,11 +221,6 @@
180 221
         </li>
181 222
 
182 223
 
183
-        <li v-if="isShow('钙')">
184
-          <label>钙: </label>
185
-          <span class="content">{{calcium != '0'?calcium:""}}</span>
186
-          <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
187
-        </li>
188 224
 
189 225
         <li v-if="isShow('电导度')">
190 226
           <label>电导度 : </label>
@@ -202,12 +238,6 @@
202 238
         </li>
203 239
 
204 240
 
205
-        <li v-if="isShow('透析前使用特殊药物')">
206
-          <label>透析前使用特殊药物: </label>
207
-          <span class="content">{{special_medicine}}</span>
208
-          <span class="unit"></span>
209
-        </li>
210
-
211 241
 
212 242
         <li v-if="isShow('血管通路')">
213 243
           <label>血管通路: </label>

+ 28 - 26
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -93,7 +93,8 @@
93 93
                          v-else>
94 94
           <template slot-scope="scope">
95 95
             <span v-if="scope.row.parent_id == 0 " class="el-dropdown-link">{{getAdviceContent(scope.row,1)}}</span>
96
-            <span v-if="scope.row.parent_id > 0 " class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}</span>
96
+            <span v-if="scope.row.parent_id > 0 "
97
+                  class="el-dropdown-link">&emsp;{{getAdviceContent(scope.row,2)}}</span>
97 98
           </template>
98 99
         </el-table-column>
99 100
 
@@ -122,32 +123,31 @@
122 123
       <!-- 医嘱表单 -->
123 124
       <el-form ref="form" :model="form" label-width="100px" v-show="showAdviceForm">
124 125
         <el-row :gutter="20">
125
-          <el-col :span="8">
126
-            <el-form-item label="医嘱类型:">
127
-              <el-input value="临时" disabled></el-input>
128
-            </el-form-item>
129
-          </el-col>
130
-          <el-col :span="8">
131
-            <el-form-item label="医嘱时间:">
132
-              <el-input v-model="form.advice_date" readonly></el-input>
133
-              <!-- <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> -->
134
-            </el-form-item>
135
-          </el-col>
126
+          <!--<el-col :span="8">-->
127
+          <!--<el-form-item label="医嘱类型:">-->
128
+          <!--<el-input value="临时" disabled></el-input>-->
129
+          <!--</el-form-item>-->
130
+          <!--</el-col>-->
131
+          <!--<el-col :span="8">-->
132
+          <!--<el-form-item label="医嘱时间:">-->
133
+          <!--<el-input v-model="form.advice_date" readonly></el-input>-->
134
+          <!--&lt;!&ndash; <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker> &ndash;&gt;-->
135
+          <!--</el-form-item>-->
136
+          <!--</el-col>-->
136 137
           <el-col :span="8">
137 138
             <el-form-item label="开始时间:">
138
-              <el-date-picker format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime"
139
+              <el-date-picker format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" type="datetime" :disabled="form.parent_id==0?false:true"
139 140
                               placeholder="选择日期" v-model="form.start_time" style="width: 100%;"></el-date-picker>
140 141
             </el-form-item>
141 142
           </el-col>
142
-        </el-row>
143 143
 
144
-        <el-row :gutter="20">
145 144
           <el-col :span="8">
146 145
             <el-form-item label="医嘱名称:">
147 146
               <el-input v-model="form.advice_name"></el-input>
148 147
 
149 148
             </el-form-item>
150 149
           </el-col>
150
+
151 151
           <el-col :span="8">
152 152
             <el-form-item label="药品规格:">
153 153
               <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
@@ -156,10 +156,11 @@
156 156
                 </el-option>
157 157
               </el-select>
158 158
             </el-form-item>
159
-            <!-- <el-form-item label="医嘱内容:">
160
-                <el-input v-model="form.advice_desc"></el-input>
161
-            </el-form-item> -->
162 159
           </el-col>
160
+        </el-row>
161
+
162
+        <el-row :gutter="20">
163
+
163 164
 
164 165
           <el-col :span="8">
165 166
             <el-form-item label="开药数量:">
@@ -172,11 +173,6 @@
172 173
             </el-form-item>
173 174
           </el-col>
174 175
 
175
-
176
-
177
-        </el-row>
178
-
179
-        <el-row :gutter="20">
180 176
           <el-col :span="8">
181 177
             <el-form-item label="单次用量:">
182 178
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
@@ -189,6 +185,7 @@
189 185
             </el-form-item>
190 186
           </el-col>
191 187
 
188
+
192 189
           <el-col :span="8">
193 190
             <el-form-item label="给药途径:">
194 191
               <el-select v-model="form.delivery_way" :disabled="form.parent_id==0?false:true" filterable
@@ -198,6 +195,13 @@
198 195
               </el-select>
199 196
             </el-form-item>
200 197
           </el-col>
198
+
199
+
200
+        </el-row>
201
+
202
+        <el-row :gutter="20">
203
+
204
+
201 205
           <el-col :span="8">
202 206
             <el-form-item label="执行频率:">
203 207
               <el-select v-model="form.execution_frequency" :disabled="form.parent_id==0?false:true" filterable
@@ -1329,14 +1333,12 @@
1329 1333
           }
1330 1334
         }
1331 1335
 
1332
-        if(row.advice_desc){
1336
+        if (row.advice_desc) {
1333 1337
           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1334 1338
         }
1335 1339
 
1336
-
1337 1340
         if (isChild == 1) { // 不是子药
1338 1341
 
1339
-
1340 1342
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1341 1343
         } else { // 是子药
1342 1344
           return row.advice_name + tempDrugSpecDesc + ' ' + tempPrescribingNumberDesc + tempSingleDoseDesc

+ 2 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

@@ -446,6 +446,8 @@
446 446
         </el-button>
447 447
       </div>
448 448
     </el-dialog>
449
+
450
+
449 451
   </div>
450 452
 </template>
451 453
 

+ 2 - 2
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

@@ -5,12 +5,12 @@
5 5
 
6 6
 
7 7
         <el-row>
8
-          <el-col :span="12">
8
+          <el-col :span="12" >
9 9
             <el-form-item label="医嘱类型 :" required prop="advice_type">
10 10
               <el-input value="临时" disabled></el-input>
11 11
             </el-form-item>
12 12
           </el-col>
13
-          <el-col :span="12">
13
+          <el-col :span="12" >
14 14
             <el-form-item label="开始时间 :" required prop="start_time">
15 15
               <el-date-picker
16 16
                 type="datetime"

+ 67 - 33
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -148,11 +148,7 @@
148 148
 
149 149
 
150 150
 
151
-          <el-col :span="8" v-if="isShows('透析器/灌流器')">
152
-            <el-form-item label="透析器/灌流器:">
153
-              <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
154
-            </el-form-item>
155
-          </el-col>
151
+
156 152
 
157 153
           <el-col :span="8" v-if="isShows('碳酸氢盐')">
158 154
             <el-form-item label="碳酸氢盐(mmol/L):">
@@ -165,6 +161,11 @@
165 161
               <el-input type="number" v-model="dialysisPrescription.glucose"></el-input>
166 162
             </el-form-item>
167 163
           </el-col>
164
+          <el-col :span="8" v-if="isShows('透析液流量')">
165
+            <el-form-item label="透析液流量(ml/min):">
166
+              <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
167
+            </el-form-item>
168
+          </el-col>
168 169
 
169 170
           <el-col :span="8" v-if="isShows('透析液温度')">
170 171
             <el-form-item label="透析液温度(°C):">
@@ -172,19 +173,21 @@
172 173
             </el-form-item>
173 174
           </el-col>
174 175
 
175
-          <!-- </el-row>
176 176
 
177
-          <el-row :gutter="20"> -->
178
-          <el-col :span="8" v-if="isShows('透析液流量')">
179
-            <el-form-item label="透析液流量(ml/min):">
180
-              <el-input type="number" v-model="dialysisPrescription.dialysate_flow"></el-input>
181
-            </el-form-item>
182
-          </el-col>
177
+
183 178
           <el-col :span="8" v-if="isShows('电导度')">
184 179
             <el-form-item label="电导度(mS/m): ">
185 180
               <el-input type="number" v-model="dialysisPrescription.conductivity"></el-input>
186 181
             </el-form-item>
187 182
           </el-col>
183
+
184
+          <el-col :span="8" v-if="isShows('透析器/灌流器')">
185
+            <el-form-item label="透析器/灌流器:">
186
+              <el-input v-model="dialysisPrescription.dialyzer_perfusion_apparatus"></el-input>
187
+            </el-form-item>
188
+          </el-col>
189
+
190
+
188 191
           <el-col :span="8" v-if="isShows('体液过多症状')">
189 192
             <el-form-item label="体液过多症状:">
190 193
               <el-select v-model="dialysisPrescription.body_fluid" placeholder="请选择" style="width:100%;"
@@ -224,16 +227,17 @@
224 227
 
225 228
 
226 229
           <el-col :span="8" v-if="isShows('透析前使用其他特殊药物')">
227
-            <el-form-item label="使用其他特殊药物">
230
+            <el-form-item label="透析前使用其他特殊药物">
228 231
               <el-input v-model="dialysisPrescription.special_medicine_other"></el-input>
229 232
             </el-form-item>
230 233
           </el-col>
231 234
 
235
+
232 236
           <!-- </el-row>
233 237
 
234 238
           <el-row :gutter="20" > -->
235 239
           <el-col :span="8">
236
-            <el-form-item label="置换液:" v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id != 6"
240
+            <el-form-item label="置换液:" v-if="isShows('置换液')"
237 241
                           v-show="huShow">
238 242
               <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
239 243
                 <el-option :key="0" label="请选择" :value="0"></el-option>
@@ -241,17 +245,6 @@
241 245
                            :label="option.name" :value="option.id"></el-option>
242 246
               </el-select>
243 247
             </el-form-item>
244
-
245
-
246
-            <el-form-item label="置换方式:"
247
-                          v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id == 6">
248
-              <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
249
-                <el-option :key="0" label="请选择" :value="0"></el-option>
250
-                <el-option v-for="(option, index) in displace_liqui_part_option" :key="index+1"
251
-                           :label="option.name" :value="option.id"></el-option>
252
-              </el-select>
253
-            </el-form-item>
254
-
255 248
           </el-col>
256 249
 
257 250
           <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
@@ -261,6 +254,12 @@
261 254
           </el-col>
262 255
 
263 256
 
257
+          <el-col :span="8" v-if="isShows('目标KT/V')">
258
+            <el-form-item label="目标KT/V">
259
+              <el-input v-model="dialysisPrescription.target_ktv"></el-input>
260
+            </el-form-item>
261
+          </el-col>
262
+
264 263
           <el-col :span="8" v-if="isShows('血管通路')">
265 264
             <el-form-item label="血管通路:">
266 265
               <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
@@ -281,12 +280,6 @@
281 280
           </el-col>
282 281
 
283 282
 
284
-          <el-col :span="8" v-if="isShows('目标KT/V')">
285
-            <el-form-item label="目标KT/V">
286
-              <el-input v-model="dialysisPrescription.target_ktv"></el-input>
287
-            </el-form-item>
288
-          </el-col>
289
-
290 283
 
291 284
           <!--透析耗材-->
292 285
           <el-col :span="8" v-if="isShows('血液透析干粉')&&config.is_open == 1">
@@ -537,7 +530,7 @@
537 530
       </div>
538 531
       <div class="newLine">
539 532
         <span>上次透后体重(kg)</span>
540
-        <span>{{last_record?last_record.weight_after:''}}</span>
533
+        <span>{{getLastAfterWeight(last_record)}}</span>
541 534
       </div>
542 535
 
543 536
       <span slot="footer" class="dialog-footer">
@@ -874,6 +867,19 @@
874 867
       }
875 868
     },
876 869
     methods: {
870
+      getLastAfterWeight(record){
871
+        if(record != null&& record.id > 0){
872
+          if(record.weight_after > 0) {
873
+            let additional_weight = 0
874
+            if(this.predialysis.additional_weight != undefined){
875
+              additional_weight = this.predialysis.additional_weight
876
+            }
877
+            return parseFloat(record.weight_after - additional_weight).toFixed(1);
878
+          }else{
879
+            return ''
880
+          }
881
+        }
882
+      },
877 883
       getBeforeWeight(predialysis){
878 884
         if(predialysis.id > 0){
879 885
           if(predialysis.weight_before > 0) {
@@ -1209,6 +1215,21 @@
1209 1215
         }
1210 1216
         this.anticoagulant = this.anticoagulantsConfit[thismode]
1211 1217
       }, handleCommit: function() {
1218
+        if(this.dialysisPrescription.anticoagulant == 1){
1219
+          this.dialysisPrescription.anticoagulant_weichi = '0'
1220
+          this.dialysisPrescription.anticoagulant_shouji = '0'
1221
+          this.dialysisPrescription.anticoagulant_zongliang = '0'
1222
+        }
1223
+        if (this.$store.getters.xt_user.template_info.template_id == 6) {
1224
+          if (this.dialysisPrescription.mode_id == 2) {
1225
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
1226
+              this.$message.error('HDF模式下置换液和置换液总量不能为空!')
1227
+              return
1228
+            }
1229
+          }
1230
+        }
1231
+
1232
+
1212 1233
         this.is_pre = 1
1213 1234
         if (this.prescription.id == 0) {
1214 1235
           if (this.is_open == 0) {
@@ -1562,8 +1583,21 @@
1562 1583
       }, handleCancle: function() {
1563 1584
         this.hide()
1564 1585
       }, handleSolution: function() {
1565
-        this.is_pre = 2
1586
+        if(this.dialysisPrescription.anticoagulant == 1){
1587
+          this.dialysisPrescription.anticoagulant_weichi = '0'
1588
+          this.dialysisPrescription.anticoagulant_shouji = '0'
1589
+          this.dialysisPrescription.anticoagulant_zongliang = '0'
1590
+        }
1591
+        if (this.$store.getters.xt_user.template_info.template_id == 6) {
1592
+          if (this.dialysisPrescription.mode_id == 2) {
1593
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.displace_liqui_value == 0 || this.dialysisPrescription.displace_liqui_value == '') {
1594
+              this.$message.error('HDF模式下置换液和置换液总量不能为空!')
1595
+              return
1596
+            }
1597
+          }
1598
+        }
1566 1599
 
1600
+        this.is_pre = 2
1567 1601
         if (this.prescription.id == 0) {
1568 1602
           if (this.is_open == 0) {
1569 1603
             if (this.patient.id <= 0) {

+ 13 - 7
src/xt_pages/user/dialysisRecord.vue 查看文件

@@ -138,6 +138,9 @@
138 138
             align="center"
139 139
             label="透析时长(h)"
140 140
           >
141
+            <template slot-scope="scope">
142
+              <span>{{getTime(scope.row.assessment_after_dislysis)}}</span>
143
+            </template>
141 144
           </el-table-column>
142 145
           <el-table-column
143 146
             prop="predialysis_evaluation.dry_weight"
@@ -247,7 +250,7 @@
247 250
           >
248 251
             <template slot-scope="scope"
249 252
               ><span>{{
250
-                getDoctorName(scope.row.prescription.creater)
253
+               scope.row.prescription.role.user_name
251 254
               }}</span></template
252 255
             >
253 256
           </el-table-column>
@@ -389,6 +392,15 @@ export default {
389 392
     PatientSidebar
390 393
   },
391 394
   methods: {
395
+    getTime(record){
396
+      if(record != null&&record.id > 0) {
397
+        let actual_treatment_hour = 0
398
+        let actual_treatment_minute = 0
399
+        actual_treatment_hour = parseFloat(record.actual_treatment_hour)
400
+        actual_treatment_minute = parseFloat(record.actual_treatment_minute) / 60
401
+        return (actual_treatment_hour + actual_treatment_minute).toFixed(2)
402
+      }
403
+    },
392 404
     changeSearch() {
393 405
       this.getPatientDialysisRecords();
394 406
     },
@@ -419,12 +431,6 @@ export default {
419 431
             response.data.data.nursers == null
420 432
               ? []
421 433
               : response.data.data.nursers;
422
-
423
-          console.log(response.data.data)
424
-
425
-
426
-
427
-
428 434
         }
429 435
       });
430 436
     },

+ 3 - 4
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -75,13 +75,12 @@
75 75
           }}
76 76
         </template>
77 77
       </el-table-column>
78
-      <el-table-column label="低分子肝素" min-width="100" align="center">
78
+      <el-table-column label="总量" min-width="100" align="center">
79 79
         <template slot-scope="scope">
80 80
           <span v-if="scope.row.prescription.anticoagulant == 1">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
81
-          <span v-if="scope.row.prescription.anticoagulant == 2">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
82
-          <span v-if="scope.row.prescription.anticoagulant == 3">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'IU':''}}</span>
81
+          <span v-if="scope.row.prescription.anticoagulant == 2">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'iu':''}}</span>
82
+          <span v-if="scope.row.prescription.anticoagulant == 3">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'iu':''}}</span>
83 83
           <span v-if="scope.row.prescription.anticoagulant == 4">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
84
-          <span v-if="scope.row.prescription.anticoagulant == 5">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
85 84
 
86 85
         </template>
87 86
       </el-table-column>

+ 64 - 4
src/xt_pages/workforce/remind_print.vue 查看文件

@@ -40,7 +40,7 @@
40 40
                   <td width="120">透析模式</td>
41 41
                   <td width="100">透析器</td>
42 42
                   <td width="120">抗凝剂</td>
43
-                  <td width="100">低分子肝素</td>
43
+                  <td width="100">总量</td>
44 44
                   <td width="300">长期医嘱</td>
45 45
                 </tr>
46 46
               </thead>
@@ -69,10 +69,9 @@
69 69
                 </td>
70 70
                 <td :width="td_1_width">
71 71
                   <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
72
-                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
73
-                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'IU':''}}</span>
72
+                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
73
+                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
74 74
                   <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
75
-                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
76 75
                 </td>
77 76
                 <td :width="td_4_width" >
78 77
                   <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
@@ -135,6 +134,67 @@
135 134
       })
136 135
     },
137 136
     methods: {
137
+      getAdvice:function(doctor_advice) {
138
+        console.log(doctor_advice)
139
+
140
+        let name = ""
141
+        for (let i = 0; i< doctor_advice.length; i++){
142
+
143
+          let prescribing_number = ''
144
+          let single_dose = ''
145
+          let drug_spec = ''
146
+
147
+          if (doctor_advice[i].prescribing_number > 0) {
148
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
149
+          }
150
+          if (doctor_advice[i].single_dose > 0) {
151
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
152
+          }
153
+
154
+          if (doctor_advice[i].drug_spec > 0) {
155
+            drug_spec =  doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
156
+          }
157
+
158
+
159
+          name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
160
+
161
+          // if (doctor_advice[i].child.length > 0){
162
+          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
163
+          //     if(doctor_advice[i].child[a].prescribing_number > 0){
164
+          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
165
+          //     }else{
166
+          //       doctor_advice[i].child[a]['presc'] = ''
167
+          //     }
168
+          //
169
+          //     if(doctor_advice[i].child[a].single_dose > 0){
170
+          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
171
+          //     }else{
172
+          //       doctor_advice[i].child[a]['single'] = ''
173
+          //     }
174
+          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
175
+          //       + doctor_advice[i].child[a].advice_desc
176
+          //       + doctor_advice[i].child[a].drug_spec_unit
177
+          //       + doctor_advice[i].child[a].presc
178
+          //       + doctor_advice[i].child[a].single
179
+          //
180
+          //
181
+          //   }
182
+          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
183
+          //     + doctor_advice[i].drug_spec_unit
184
+          //     + prescribing_number
185
+          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
186
+          //
187
+          // }else{
188
+          //
189
+          //
190
+          //
191
+          // }
192
+
193
+
194
+        }
195
+        return name
196
+
197
+      },
138 198
       printAction: function() {
139 199
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
140 200