Bladeren bron

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

XMLWAN 5 jaren geleden
bovenliggende
commit
891c9c5f4c

+ 34 - 26
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Bestand weergeven

@@ -149,39 +149,34 @@
149 149
             </el-form-item>
150 150
           </el-col>
151 151
           <el-col :span="8">
152
-            <el-form-item label="给药途径:">
153
-              <el-select v-model="form.delivery_way" :disabled="form.parent_id==0?false:true" filterable
154
-                         placeholder="请选择(输入可搜索)">
155
-                <el-option v-for="item in deliveryWayOptions" :key="item.id" :label="item.name " :value="item.name">
152
+            <el-form-item label="药品规格:">
153
+              <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
154
+              <el-select v-model="form.drug_spec_unit" style="width: 56%;" filterable placeholder="选择">
155
+                <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
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> -->
159 162
           </el-col>
163
+
160 164
           <el-col :span="8">
161
-            <el-form-item label="执行频率:">
162
-              <el-select v-model="form.execution_frequency" :disabled="form.parent_id==0?false:true" filterable
163
-                         placeholder="请选择(输入可搜索)">
164
-                <el-option v-for="item in executionFrequencyOptions" :key="item.id" :label="item.name "
165
-                           :value="item.name">
165
+            <el-form-item label="开药数量:">
166
+              <el-input v-model="form.prescribing_number" style="width: 40%;"></el-input>
167
+              <el-select v-model="form.prescribing_number_unit" style="width: 56%;" filterable placeholder="选择">
168
+                <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
166 169
                 </el-option>
167 170
               </el-select>
171
+              <!-- <el-input v-model="form.prescribing_number_unit" style="width: 40%;"></el-input> -->
168 172
             </el-form-item>
169 173
           </el-col>
174
+
175
+
176
+
170 177
         </el-row>
171 178
 
172 179
         <el-row :gutter="20">
173
-          <el-col :span="8">
174
-            <el-form-item label="药品规格:">
175
-              <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
176
-              <el-select v-model="form.drug_spec_unit" style="width: 56%;" filterable placeholder="选择">
177
-                <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
178
-                </el-option>
179
-              </el-select>
180
-            </el-form-item>
181
-            <!-- <el-form-item label="医嘱内容:">
182
-                <el-input v-model="form.advice_desc"></el-input>
183
-            </el-form-item> -->
184
-          </el-col>
185 180
           <el-col :span="8">
186 181
             <el-form-item label="单次用量:">
187 182
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
@@ -193,16 +188,28 @@
193 188
               <!-- <el-input v-model="form.single_dose_unit" style="width: 40%;"></el-input> -->
194 189
             </el-form-item>
195 190
           </el-col>
191
+
196 192
           <el-col :span="8">
197
-            <el-form-item label="开药数量:">
198
-              <el-input v-model="form.prescribing_number" style="width: 40%;"></el-input>
199
-              <el-select v-model="form.prescribing_number_unit" style="width: 56%;" filterable placeholder="选择">
200
-                <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
193
+            <el-form-item label="给药途径:">
194
+              <el-select v-model="form.delivery_way" :disabled="form.parent_id==0?false:true" filterable
195
+                         placeholder="请选择(输入可搜索)">
196
+                <el-option v-for="item in deliveryWayOptions" :key="item.id" :label="item.name " :value="item.name">
197
+                </el-option>
198
+              </el-select>
199
+            </el-form-item>
200
+          </el-col>
201
+          <el-col :span="8">
202
+            <el-form-item label="执行频率:">
203
+              <el-select v-model="form.execution_frequency" :disabled="form.parent_id==0?false:true" filterable
204
+                         placeholder="请选择(输入可搜索)">
205
+                <el-option v-for="item in executionFrequencyOptions" :key="item.id" :label="item.name "
206
+                           :value="item.name">
201 207
                 </el-option>
202 208
               </el-select>
203
-              <!-- <el-input v-model="form.prescribing_number_unit" style="width: 40%;"></el-input> -->
204 209
             </el-form-item>
205 210
           </el-col>
211
+
212
+
206 213
         </el-row>
207 214
       </el-form>
208 215
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
@@ -860,6 +867,7 @@
860 867
             row.start_time,
861 868
             '{y}-{m}-{d} {h}:{i}'
862 869
           ),
870
+          advice_desc: row.advice_desc,
863 871
           advice_name: row.advice_name,
864 872
           drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
865 873
           drug_spec_unit: row.drug_spec_unit,

+ 33 - 7
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Bestand weergeven

@@ -141,6 +141,12 @@
141 141
                   <span v-if="scope.row.parent_row==0">{{scope.row.execution_frequency}}</span>
142 142
                 </template>
143 143
               </el-table-column>
144
+
145
+              <!--<el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">-->
146
+                <!--<template slot-scope="scope">-->
147
+                  <!--<span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>-->
148
+                <!--</template>-->
149
+              <!--</el-table-column>-->
144 150
             </el-table>
145 151
           </el-col>
146 152
         </el-row>
@@ -229,6 +235,7 @@
229 235
                 <span v-if="scope.row.parent_row==0">{{scope.row.delivery_way}}</span>
230 236
               </template>
231 237
             </el-table-column>
238
+
232 239
             <el-table-column
233 240
               label="执行频率"
234 241
               min-width="80"
@@ -239,6 +246,8 @@
239 246
                 <span v-if="scope.row.parent_row==0">{{scope.row.execution_frequency}}</span>
240 247
               </template>
241 248
             </el-table-column>
249
+
250
+
242 251
           </el-table>
243 252
         </el-col>
244 253
       </el-row>
@@ -326,14 +335,14 @@
326 335
         </el-row>
327 336
         <el-row>
328 337
           <el-col :span="12">
329
-            <el-form-item label="单次用量 :" prop="single_dose">
338
+            <el-form-item label="开药数量 :" prop="prescribing_number">
330 339
               <el-col :span="8">
331
-                <el-input v-model="nameForm.single_dose"></el-input>
340
+                <el-input v-model="nameForm.prescribing_number"></el-input>
332 341
               </el-col>
333 342
               <el-col class="line" :span="2">&nbsp;</el-col>
334 343
               <el-col :span="14">
335 344
                 <el-select
336
-                  v-model="nameForm.single_dose_unit"
345
+                  v-model="nameForm.prescribing_number_unit"
337 346
                   filterable
338 347
                   clearable
339 348
                   allow-create
@@ -349,15 +358,16 @@
349 358
               </el-col>
350 359
             </el-form-item>
351 360
           </el-col>
361
+
352 362
           <el-col :span="12">
353
-            <el-form-item label="开药数量 :" prop="prescribing_number">
363
+            <el-form-item label="单次用量 :" prop="single_dose">
354 364
               <el-col :span="8">
355
-                <el-input v-model="nameForm.prescribing_number"></el-input>
365
+                <el-input v-model="nameForm.single_dose"></el-input>
356 366
               </el-col>
357 367
               <el-col class="line" :span="2">&nbsp;</el-col>
358 368
               <el-col :span="14">
359 369
                 <el-select
360
-                  v-model="nameForm.prescribing_number_unit"
370
+                  v-model="nameForm.single_dose_unit"
361 371
                   filterable
362 372
                   clearable
363 373
                   allow-create
@@ -416,6 +426,15 @@
416 426
             </el-form-item>
417 427
           </el-col>
418 428
         </el-row>
429
+        <!--<el-row>-->
430
+          <!--<el-col :span="12">-->
431
+            <!--<el-form-item label="医嘱嘱托 :" prop="delivery_way">-->
432
+              <!--<el-input v-model="nameForm.remark"></el-input>-->
433
+            <!--</el-form-item>-->
434
+          <!--</el-col>-->
435
+
436
+        <!--</el-row>-->
437
+
419 438
       </el-form>
420 439
       <div slot="footer" class="dialog-footer">
421 440
         <el-button @click="nameFormVisible = false">取消</el-button>
@@ -481,6 +500,7 @@ export default {
481 500
           prescribing_number_unit: '',
482 501
           delivery_way: '',
483 502
           execution_frequency: '',
503
+          remark:'',
484 504
           isEdit: 0,
485 505
           index: 0,
486 506
           id: 0,
@@ -697,6 +717,8 @@ export default {
697 717
                         _this.groupForm.adviceNames[index].children[j].delivery_way = _this.nameForm.delivery_way
698 718
                         _this.groupForm.adviceNames[index].children[j].execution_frequency = _this.nameForm.execution_frequency
699 719
 
720
+                        _this.groupForm.adviceNames[index].children[j].remark = _this.nameForm.remark
721
+
700 722
                         _this.$set(_this.groupForm.adviceNames[index].children, j, _this.groupForm.adviceNames[index].children[j])
701 723
                         break
702 724
                       }
@@ -716,6 +738,7 @@ export default {
716 738
                     _this.groupForm.adviceNames[index].prescribing_number_unit = _this.nameForm.prescribing_number_unit
717 739
                     _this.groupForm.adviceNames[index].delivery_way = _this.nameForm.delivery_way
718 740
                     _this.groupForm.adviceNames[index].execution_frequency = _this.nameForm.execution_frequency
741
+                    _this.groupForm.adviceNames[index].remark = _this.nameForm.remark
719 742
 
720 743
                     _this.$set(_this.groupForm.adviceNames, index, _this.groupForm.adviceNames[index])
721 744
                     break
@@ -771,6 +794,7 @@ export default {
771 794
           prescribing_number_unit: '',
772 795
           delivery_way: this.groupSelectRow.delivery_way,
773 796
           execution_frequency: this.groupSelectRow.execution_frequency,
797
+          remark:'',
774 798
           isEdit: 0,
775 799
           index: 0,
776 800
           children: [],
@@ -809,7 +833,8 @@ export default {
809 833
             index: this.groupSelectRow.index,
810 834
             id: this.groupSelectRow.id,
811 835
             children: [],
812
-            parent_row: this.groupSelectRow.parent_row
836
+            parent_row: this.groupSelectRow.parent_row,
837
+            remark: this.groupSelectRow.remark
813 838
             // row_key:this.groupSelectRow.row_key,
814 839
           }
815 840
           this.nameFormTitle = '修改医嘱内容'
@@ -828,6 +853,7 @@ export default {
828 853
             isEdit: 0,
829 854
             index: 0,
830 855
             id: 0,
856
+            remark:'',
831 857
             children: [],
832 858
             parent_row: 0
833 859
           }

+ 14 - 6
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Bestand weergeven

@@ -140,6 +140,12 @@
140 140
                   <span v-if="scope.row.parent_row==0">{{scope.row.execution_frequency}}</span>
141 141
                 </template>
142 142
               </el-table-column>
143
+
144
+              <el-table-column label="医嘱嘱托" min-width="80" property="remark" align="center">
145
+                <template slot-scope="scope">
146
+                  <span v-if="scope.row.parent_row==0">{{scope.row.remark}}</span>
147
+                </template>
148
+              </el-table-column>
143 149
             </el-table>
144 150
           </el-col>
145 151
         </el-row>
@@ -318,14 +324,14 @@
318 324
         </el-row>
319 325
         <el-row>
320 326
           <el-col :span="12">
321
-            <el-form-item label="单次用量 :" prop="single_dose">
327
+            <el-form-item label="开药数量 :" prop="prescribing_number">
322 328
               <el-col :span="8">
323
-                <el-input v-model="nameForm.single_dose"></el-input>
329
+                <el-input v-model="nameForm.prescribing_number"></el-input>
324 330
               </el-col>
325 331
               <el-col class="line" :span="2">&nbsp;</el-col>
326 332
               <el-col :span="14">
327 333
                 <el-select
328
-                  v-model="nameForm.single_dose_unit"
334
+                  v-model="nameForm.prescribing_number_unit"
329 335
                   filterable
330 336
                   clearable
331 337
                   allow-create
@@ -341,15 +347,16 @@
341 347
               </el-col>
342 348
             </el-form-item>
343 349
           </el-col>
350
+
344 351
           <el-col :span="12">
345
-            <el-form-item label="开药数量 :" prop="prescribing_number">
352
+            <el-form-item label="单次用量 :" prop="single_dose">
346 353
               <el-col :span="8">
347
-                <el-input v-model="nameForm.prescribing_number"></el-input>
354
+                <el-input v-model="nameForm.single_dose"></el-input>
348 355
               </el-col>
349 356
               <el-col class="line" :span="2">&nbsp;</el-col>
350 357
               <el-col :span="14">
351 358
                 <el-select
352
-                  v-model="nameForm.prescribing_number_unit"
359
+                  v-model="nameForm.single_dose_unit"
353 360
                   filterable
354 361
                   clearable
355 362
                   allow-create
@@ -365,6 +372,7 @@
365 372
               </el-col>
366 373
             </el-form-item>
367 374
           </el-col>
375
+
368 376
         </el-row>
369 377
         <el-row>
370 378
           <el-col :span="12">

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

@@ -1183,7 +1183,7 @@
1183 1183
           weight_before = this.predialysis.weight_before
1184 1184
         }
1185 1185
 
1186
-        if(weight_before > 0){
1186
+        if(weight_before > 0 && last_weight_after > 0){
1187 1187
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
1188 1188
         }
1189 1189
 

+ 21 - 10
src/xt_pages/user/dialysisRecord.vue Bestand weergeven

@@ -235,7 +235,7 @@
235 235
           >
236 236
             <template slot-scope="scope"
237 237
               ><span>{{
238
-                getNurseName(scope.row.start_nurse)
238
+              scope.row.role.user_name
239 239
               }}</span></template
240 240
             >
241 241
           </el-table-column>
@@ -247,7 +247,7 @@
247 247
           >
248 248
             <template slot-scope="scope"
249 249
               ><span>{{
250
-                getDoctorName(scope.row.treatment_summary)
250
+                getDoctorName(scope.row.prescription.creater)
251 251
               }}</span></template
252 252
             >
253 253
           </el-table-column>
@@ -336,7 +336,7 @@
336 336
                 <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
337 337
                 <td>{{ item.prescription.dialyzer_perfusion_apparatus }}</td>
338 338
                 <td>{{ getNurseName(item.start_nurse) }}</td>
339
-                <td>{{ getDoctorName(item.treatment_summary) }}</td>
339
+                <td>{{ getDoctorName(item.prescription.creater) }}</td>
340 340
               </tr>
341 341
             </tbody>
342 342
           </table>
@@ -412,13 +412,19 @@ export default {
412 412
       fetchAllDoctorAndNurse().then(response => {
413 413
         if (response.data.state == 1) {
414 414
           this.doctorOptions =
415
-            response.data.data.doctors === null
415
+            response.data.data.doctors == null
416 416
               ? []
417 417
               : response.data.data.doctors;
418 418
           this.nurseOptions =
419
-            response.data.data.nursers === null
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
+
422 428
         }
423 429
       });
424 430
     },
@@ -528,11 +534,11 @@ export default {
528 534
       }
529 535
       return models.join(",");
530 536
     },
531
-    getDoctorName(summary) {
537
+    getDoctorName(creater) {
532 538
       var dl = this.doctorOptions.length;
533 539
       if (dl > 0) {
534 540
         for (let index = 0; index < dl; index++) {
535
-          if ((this.doctorOptions[index].id = summary.zl_doctor)) {
541
+          if ((this.doctorOptions[index].id = creater)) {
536 542
             return this.doctorOptions[index].name;
537 543
           }
538 544
         }
@@ -543,7 +549,9 @@ export default {
543 549
       var dl = this.nurseOptions.length;
544 550
       if (dl > 0) {
545 551
         for (let index = 0; index < dl; index++) {
546
-          if ((this.nurseOptions[index].id = start_nurse)) {
552
+
553
+          if (this.nurseOptions[index].id = start_nurse) {
554
+
547 555
             return this.nurseOptions[index].name;
548 556
           }
549 557
         }
@@ -591,11 +599,14 @@ export default {
591 599
     this.vascularAccess = this.$store.getters.vascular_access;
592 600
     this.vascularAccessDesc = this.$store.getters.vascular_access_desc;
593 601
 
594
-    this.fetchAllDoctorAndNurse();
595
-    this.getPatientDialysisRecords();
596 602
 
597 603
     var xtuser = this.$store.getters.xt_user;
598 604
     this.orgname = xtuser.org.org_name;
605
+  },mounted(){
606
+
607
+    this.fetchAllDoctorAndNurse();
608
+    this.getPatientDialysisRecords();
609
+
599 610
   }
600 611
 };
601 612
 </script>