瀏覽代碼

修改bug

csx 5 年之前
父節點
當前提交
b870c65399

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

149
             </el-form-item>
149
             </el-form-item>
150
           </el-col>
150
           </el-col>
151
           <el-col :span="8">
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
                 </el-option>
156
                 </el-option>
157
               </el-select>
157
               </el-select>
158
             </el-form-item>
158
             </el-form-item>
159
+            <!-- <el-form-item label="医嘱内容:">
160
+                <el-input v-model="form.advice_desc"></el-input>
161
+            </el-form-item> -->
159
           </el-col>
162
           </el-col>
163
+
160
           <el-col :span="8">
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
                 </el-option>
169
                 </el-option>
167
               </el-select>
170
               </el-select>
171
+              <!-- <el-input v-model="form.prescribing_number_unit" style="width: 40%;"></el-input> -->
168
             </el-form-item>
172
             </el-form-item>
169
           </el-col>
173
           </el-col>
174
+
175
+
176
+
170
         </el-row>
177
         </el-row>
171
 
178
 
172
         <el-row :gutter="20">
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
           <el-col :span="8">
180
           <el-col :span="8">
186
             <el-form-item label="单次用量:">
181
             <el-form-item label="单次用量:">
187
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
182
               <el-input v-model="form.single_dose" style="width: 40%;"></el-input>
193
               <!-- <el-input v-model="form.single_dose_unit" style="width: 40%;"></el-input> -->
188
               <!-- <el-input v-model="form.single_dose_unit" style="width: 40%;"></el-input> -->
194
             </el-form-item>
189
             </el-form-item>
195
           </el-col>
190
           </el-col>
191
+
196
           <el-col :span="8">
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
                 </el-option>
207
                 </el-option>
202
               </el-select>
208
               </el-select>
203
-              <!-- <el-input v-model="form.prescribing_number_unit" style="width: 40%;"></el-input> -->
204
             </el-form-item>
209
             </el-form-item>
205
           </el-col>
210
           </el-col>
211
+
212
+
206
         </el-row>
213
         </el-row>
207
       </el-form>
214
       </el-form>
208
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
215
       <div slot="footer" class="dialog-footer" v-show="showAdviceForm">
860
             row.start_time,
867
             row.start_time,
861
             '{y}-{m}-{d} {h}:{i}'
868
             '{y}-{m}-{d} {h}:{i}'
862
           ),
869
           ),
870
+          advice_desc: row.advice_desc,
863
           advice_name: row.advice_name,
871
           advice_name: row.advice_name,
864
           drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
872
           drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
865
           drug_spec_unit: row.drug_spec_unit,
873
           drug_spec_unit: row.drug_spec_unit,

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

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

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

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

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

1183
           weight_before = this.predialysis.weight_before
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
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
1187
           this.add_weight = parseFloat(weight_before - last_weight_after).toFixed(2)
1188
         }
1188
         }
1189
 
1189
 

+ 21 - 10
src/xt_pages/user/dialysisRecord.vue 查看文件

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