csx vor 5 Jahren
Ursprung
Commit
75c52b61fd

+ 0 - 8
src/xt_pages/dialysis/details/DialysisPrescription.vue Datei anzeigen

@@ -30,14 +30,6 @@
30 30
         </li>
31 31
 
32 32
 
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41 33
         <li v-if="isShow('钙剂量')&&getValueStr('anticoagulant','anticoagulant') == 5">
42 34
           <label>钙剂量: </label>
43 35
           <span class="content">{{getValueStr('anticoagulant_gaijiliang','anticoagulant_gaijiliang')}}</span>

+ 28 - 26
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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,23 @@
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
+          <el-col :span="8" v-if="isShows('目标KT/V')">
236
+            <el-form-item label="目标KT/V">
237
+              <el-input v-model="dialysisPrescription.target_ktv"></el-input>
238
+            </el-form-item>
239
+          </el-col>
240
+
241
+
232 242
           <!-- </el-row>
233 243
 
234 244
           <el-row :gutter="20" > -->
235 245
           <el-col :span="8">
236
-            <el-form-item label="置换液:" v-if="isShows('置换液')&&this.$store.getters.xt_user.template_info.template_id != 6"
246
+            <el-form-item label="置换液:" v-if="isShows('置换液')"
237 247
                           v-show="huShow">
238 248
               <el-select v-model="dialysisPrescription.displace_liqui_part" placeholder="请选择">
239 249
                 <el-option :key="0" label="请选择" :value="0"></el-option>
@@ -241,17 +251,6 @@
241 251
                            :label="option.name" :value="option.id"></el-option>
242 252
               </el-select>
243 253
             </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 254
           </el-col>
256 255
 
257 256
           <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
@@ -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) {

+ 1 - 7
src/xt_pages/user/dialysisRecord.vue Datei anzeigen

@@ -247,7 +247,7 @@
247 247
           >
248 248
             <template slot-scope="scope"
249 249
               ><span>{{
250
-                getDoctorName(scope.row.prescription.creater)
250
+               scope.row.prescription.role.user_name
251 251
               }}</span></template
252 252
             >
253 253
           </el-table-column>
@@ -419,12 +419,6 @@ export default {
419 419
             response.data.data.nursers == null
420 420
               ? []
421 421
               : response.data.data.nursers;
422
-
423
-          console.log(response.data.data)
424
-
425
-
426
-
427
-
428 422
         }
429 423
       });
430 424
     },