Procházet zdrojové kódy

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx před 2 roky
rodič
revize
bb006a035a
24 změnil soubory, kde provedl 2581 přidání a 191 odebrání
  1. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue
  2. 33 7
      src/xt_pages/dialysis/details/NavIgation.vue
  3. 62 54
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  4. 6 13
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  5. 5 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  6. 5 0
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  7. 1 1
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  8. 14 8
      src/xt_pages/dialysis/details/index.vue
  9. 21 2
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  10. 2273 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  11. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue
  12. 4 4
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  13. 4 3
      src/xt_pages/hospitalStation/components/deskRecord.vue
  14. 8 7
      src/xt_pages/hospitalStation/components/dialysisIndex.vue
  15. 1 0
      src/xt_pages/hospitalStation/doctorDesk.vue
  16. 1 1
      src/xt_pages/hospitalStation/recordPrint.vue
  17. 59 31
      src/xt_pages/hospitalStation/recordTemplate/printTwo.vue
  18. 4 4
      src/xt_pages/outpatientCharges/allListPrint.vue
  19. 4 4
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  20. 11 12
      src/xt_pages/outpatientDoctorStation/components/deskRecord.vue
  21. 7 2
      src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue
  22. 1 1
      src/xt_pages/outpatientDoctorStation/recordPrint.vue
  23. 51 23
      src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue
  24. 2 6
      src/xt_pages/user/patients.vue

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Zobrazit soubor

333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
333
                         <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
334
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
335
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换量<br /><br />ml</td>-->
335
 <!--                        <td width="60" style="height:20px;line-height:20px" v-if="record.prescription.mode_id == 2">置换量<br /><br />ml</td>-->
336
-                        <!-- <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td> -->
336
+                        <td width="60" style="height:20px;line-height:20px">血容量<br />L</td>
337
                         <td width="">病情变化及处理</td>
337
                         <td width="">病情变化及处理</td>
338
                     </tr>
338
                     </tr>
339
 
339
 
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
357
                         <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
358
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
359
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.displacement_quantity ? monitor.displacement_quantity : "/" }}</span></td>-->
359
 <!--                        <td v-if="record.prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.displacement_quantity ? monitor.displacement_quantity : "/" }}</span></td>-->
360
-                        <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td> -->
360
+                        <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td>
361
                         <td style="text-align:left;padding-left:10px;">
361
                         <td style="text-align:left;padding-left:10px;">
362
                             <div style="line-height:20px;text-align: left;display: inline-block;">
362
                             <div style="line-height:20px;text-align: left;display: inline-block;">
363
                                 &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
363
                                 &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}

+ 33 - 7
src/xt_pages/dialysis/details/NavIgation.vue Zobrazit soubor

138
       :dialysis_order="dialysis_order"
138
       :dialysis_order="dialysis_order"
139
       :his_is_open="his_is_open"
139
       :his_is_open="his_is_open"
140
       :predialysis="predialysis_evaluation"
140
       :predialysis="predialysis_evaluation"
141
+      :is_advice_open="is_advice_open"
141
     ></doctor-advice-dialog>
142
     ></doctor-advice-dialog>
142
 
143
 
143
     <computer-dialog
144
     <computer-dialog
306
         return [];
307
         return [];
307
       }
308
       }
308
     },
309
     },
310
+    his_doctor_advices:{
311
+     // 临时医嘱
312
+      type: Array,
313
+      default: () => {
314
+        return [];
315
+      }
316
+    },
309
     double_check: {
317
     double_check: {
310
       // 双人核对
318
       // 双人核对
311
       type: Object,
319
       type: Object,
537
       default: () => {
545
       default: () => {
538
         return { id: 0 };
546
         return { id: 0 };
539
       }
547
       }
540
-    }
548
+    },
549
+    is_advice_open:{
550
+      type: Number,
551
+      default: () => {
552
+        return 0;
553
+      }
554
+    },
541
   },
555
   },
542
   methods: {
556
   methods: {
543
     getUnReadNum: function() {
557
     getUnReadNum: function() {
558
+      console.log("医嘱中国23322222222222222222222222222",this.doctor_advices)
544
       let doctorAdvice = [];
559
       let doctorAdvice = [];
545
       for (let y = 0; y < this.doctor_advices.length; y++) {
560
       for (let y = 0; y < this.doctor_advices.length; y++) {
546
         if (this.doctor_advices[y].execution_state == 2) {
561
         if (this.doctor_advices[y].execution_state == 2) {
550
       const sorted = this.groupBy(doctorAdvice, function(item) {
565
       const sorted = this.groupBy(doctorAdvice, function(item) {
551
         return [item.groupno];
566
         return [item.groupno];
552
       });
567
       });
553
-      console.log(doctorAdvice);
554
-      console.log(sorted.length);
555
-
556
-      return sorted.length;
568
+     
569
+    
570
+      // var strLength = 0
571
+      // var arr = []
572
+      // if(this.his_doctor_advices!=undefined && this.his_doctor_advices.length > 0){
573
+      //   for(let i=0;i<this.his_doctor_advices.length;i++){
574
+      //     if (this.his_doctor_advices[i].execution_state == 2) {
575
+      //      arr.push(this.his_doctor_advices[i]);
576
+      //    } 
577
+      //   }
578
+      //   strLength = arr.length
579
+      // }
580
+      // console.log("232332323232323223",arrOne.length + strLength);
581
+      return sorted.length
582
+      
557
     },
583
     },
558
     groupBy(array, f) {
584
     groupBy(array, f) {
559
       const groups = {};
585
       const groups = {};
614
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
640
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
615
     },
641
     },
616
     showDoctorAdviceDialog: function() {
642
     showDoctorAdviceDialog: function() {
617
-      this.$refs.doctor_advice.show(this.his_is_open);
643
+      this.$refs.doctor_advice.show(this.his_is_open,this.is_advice_open);
618
     },
644
     },
619
     showComputerDialog: function() {
645
     showComputerDialog: function() {
620
       this.$refs.computer_dialog.show(this.dialysis_order);
646
       this.$refs.computer_dialog.show(this.dialysis_order);
623
       this.$refs.finish_dialog.show(this.dialysis_order);
649
       this.$refs.finish_dialog.show(this.dialysis_order);
624
     },
650
     },
625
     showPrescription: function() {
651
     showPrescription: function() {
626
-      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open);
652
+      this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open);
627
     },
653
     },
628
     showAccepts: function() {
654
     showAccepts: function() {
629
       this.$refs.accepts.show(this.receiver_treatment_access);
655
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 62 - 54
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Zobrazit soubor

136
       <div class="txsj">
136
       <div class="txsj">
137
         <el-button
137
         <el-button
138
           round
138
           round
139
-          v-if="his_is_open != 1"
139
+          v-if="his_is_open != 1 || is_advice_open == 1"
140
           @click="openLast(1)"
140
           @click="openLast(1)"
141
         >上一方
141
         >上一方
142
         </el-button>
142
         </el-button>
143
 
143
 
144
         <el-button
144
         <el-button
145
           round
145
           round
146
-          v-if="his_is_open != 1"
146
+          v-if="his_is_open != 1 || is_advice_open == 1"
147
           @click="openNext(2)"
147
           @click="openNext(2)"
148
         >下一方
148
         >下一方
149
         </el-button>
149
         </el-button>
154
           round
154
           round
155
           @click="openGroupFrom"
155
           @click="openGroupFrom"
156
           :loading="deleLoading"
156
           :loading="deleLoading"
157
-          v-if="his_is_open != 1"
157
+          v-if="his_is_open != 1 || is_advice_open == 1"
158
           :disabled="!is_has_create"
158
           :disabled="!is_has_create"
159
         >新增医嘱
159
         >新增医嘱
160
         </el-button>
160
         </el-button>
189
           :loading="deleLoading"
189
           :loading="deleLoading"
190
         >修改医嘱
190
         >修改医嘱
191
         </el-button>
191
         </el-button>
192
+
192
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
193
         <el-button v-else disabled round @click="openEditGroupAdvice" :loading="deleLoading">修改医嘱</el-button>
193
 
194
 
194
         <el-button
195
         <el-button
207
       <!--   @row-click="cellMouseEnter" -->
208
       <!--   @row-click="cellMouseEnter" -->
208
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
209
       <!--&lt;!&ndash;:header-cell-style="{ backgroundColor: 'rgb(64, 158, 255)', color: 'white'}"&ndash;&gt;@current-change="selectRow"-->
209
       <el-table
210
       <el-table
210
-        v-if="his_is_open == 0"
211
+        v-if="his_is_open !=1"
211
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
212
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
212
         :data="doctor_advices"
213
         :data="doctor_advices"
213
         border
214
         border
242
               </span>
243
               </span>
243
               <el-dropdown-menu slot="dropdown">
244
               <el-dropdown-menu slot="dropdown">
244
                 <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
245
                 <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
245
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
246
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
246
+                <el-dropdown-item v-if=" his_is_open != 1 " @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
247
+                <el-dropdown-item v-if=" his_is_open != 1 " @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
247
               </el-dropdown-menu>
248
               </el-dropdown-menu>
248
             </el-dropdown>
249
             </el-dropdown>
249
 
250
 
300
 
301
 
301
 
302
 
302
       <el-table
303
       <el-table
303
-        v-else
304
+        v-if="his_is_open  == 1 || is_advice_open == 1"
304
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
305
         :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
305
         :data="doctor_advices"
306
         :data="doctor_advices"
306
         border
307
         border
325
             </span>
326
             </span>
326
           </template>
327
           </template>
327
         </el-table-column>
328
         </el-table-column>
328
-        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
329
+        <el-table-column prop="advice_name" min-width="50px" label="医嘱内容32323" align="center">
329
           <template slot-scope="scope">
330
           <template slot-scope="scope">
330
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
331
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
331
               <span class="el-dropdown-link">
332
               <span class="el-dropdown-link">
333
                 <i class="el-icon-arrow-down el-icon--right"></i>
334
                 <i class="el-icon-arrow-down el-icon--right"></i>
334
               </span>
335
               </span>
335
               <el-dropdown-menu slot="dropdown">
336
               <el-dropdown-menu slot="dropdown">
336
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
337
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
338
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
337
+                <el-dropdown-item v-if=" his_is_open == 1  && scope.row.origin == 1 " @click.native="openEdit(scope.$index, scope.row)">修改医嘱</el-dropdown-item>
338
+                <el-dropdown-item v-if=" his_is_open == 1  && scope.row.origin == 1" @click.native="openDelete(scope.$index, scope.row)">删除医嘱</el-dropdown-item>
339
+                <el-dropdown-item v-if=" his_is_open == 1  && scope.row.origin == 1" @click.native="openNewChildTwo(scope.$index, scope.row)">新增子药</el-dropdown-item>
339
               </el-dropdown-menu>
340
               </el-dropdown-menu>
340
             </el-dropdown>
341
             </el-dropdown>
341
 
342
 
345
                 <i class="el-icon-arrow-down el-icon--right"></i>
346
                 <i class="el-icon-arrow-down el-icon--right"></i>
346
               </span>
347
               </span>
347
               <el-dropdown-menu slot="dropdown">
348
               <el-dropdown-menu slot="dropdown">
348
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
349
-                <el-dropdown-item v-if=" his_is_open != 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
349
+                <el-dropdown-item v-if=" his_is_open == 1  && scope.row.origin == 1" @click.native="openEdit(scope.$index, scope.row)">修改子药</el-dropdown-item>
350
+                <el-dropdown-item v-if=" his_is_open == 1  && scope.row.origin == 1" @click.native="openDelete(scope.$index, scope.row)">删除子药</el-dropdown-item>
350
               </el-dropdown-menu>
351
               </el-dropdown-menu>
351
             </el-dropdown>
352
             </el-dropdown>
352
           </template>
353
           </template>
763
         title: '临时医嘱',
764
         title: '临时医嘱',
764
         add_title: '新增医嘱',
765
         add_title: '新增医嘱',
765
         his_is_open:0,
766
         his_is_open:0,
767
+        is_advice_open:0,
766
         showAdviceForm: false,
768
         showAdviceForm: false,
767
         showAdvicePanel: true,
769
         showAdvicePanel: true,
768
         showNameForm: false,
770
         showNameForm: false,
926
               adviceNames: this.other_doctor_advices,
928
               adviceNames: this.other_doctor_advices,
927
               remark: ''
929
               remark: ''
928
             }
930
             }
929
-            console.log("2223333",submitForm)
930
-
931
+           
931
             let mode = '1'
932
             let mode = '1'
932
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
933
             CreateGroupAdvice(this.patientid, 0, submitForm, mode).then(
933
               response => {
934
               response => {
980
           this.$message.error('没有选择患者')
981
           this.$message.error('没有选择患者')
981
           return false
982
           return false
982
         }
983
         }
983
-        // console.log(this.form)
984
+        
984
         let mode = '2'
985
         let mode = '2'
985
         if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
986
         if (this.form.advice_doctor != this.$store.getters.xt_user.user.id) {
986
           mode = '3'
987
           mode = '3'
1160
       }
1161
       }
1161
       ,
1162
       ,
1162
       openDeleteGroupAdvice(val) {
1163
       openDeleteGroupAdvice(val) {
1163
-        console.log("val2323233232",this.groupSelectRow)
1164
         if (this.groupSelectRow === null) {
1164
         if (this.groupSelectRow === null) {
1165
           this.$message.error('未选择要删除的医嘱内容')
1165
           this.$message.error('未选择要删除的医嘱内容')
1166
           return
1166
           return
1167
         }
1167
         }
1168
+        if(this.groupSelectRow!=null){
1169
+           if(this.groupSelectRow.origin == 2){
1170
+              this.$message.error('处方医嘱不能删除')
1171
+              return
1172
+           }
1173
+        }
1168
         if(this.groupSelectRow.execution_state == 1){
1174
         if(this.groupSelectRow.execution_state == 1){
1169
            this.$message.error("已执行的医嘱无法删除!")
1175
            this.$message.error("已执行的医嘱无法删除!")
1170
            return
1176
            return
1203
             isEdit: 1,
1209
             isEdit: 1,
1204
             index: this.groupSelectRow.index
1210
             index: this.groupSelectRow.index
1205
           }
1211
           }
1206
-          console.log("88888888",this.nameForm)
1212
+         
1207
         } else {
1213
         } else {
1208
           this.nameForm = {
1214
           this.nameForm = {
1209
             advice_name: '',
1215
             advice_name: '',
1261
       }
1267
       }
1262
       ,
1268
       ,
1263
       submitExce() {
1269
       submitExce() {
1264
-        console.log(this.currentRow.origin)
1270
+        
1265
         if (this.currentRow == null) {
1271
         if (this.currentRow == null) {
1266
           this.$message.error('请先选择要执行的医嘱!')
1272
           this.$message.error('请先选择要执行的医嘱!')
1267
           return false
1273
           return false
1368
           this.form.advice_name = arr[0]
1374
           this.form.advice_name = arr[0]
1369
        }
1375
        }
1370
 
1376
 
1371
-        console.log("新增医嘱子药",this.form)
1372
-
1377
+        
1373
         CreateDoctorAdvice(this.patient.id, this.form, mode)
1378
         CreateDoctorAdvice(this.patient.id, this.form, mode)
1374
           .then(response => {
1379
           .then(response => {
1375
             this.loading = false
1380
             this.loading = false
1412
                     var swapData = this.doctor_advices.splice(spliceIndex)
1417
                     var swapData = this.doctor_advices.splice(spliceIndex)
1413
                     this.doctor_advices.push(response.data.data.advice)
1418
                     this.doctor_advices.push(response.data.data.advice)
1414
                     for (var index in swapData) {
1419
                     for (var index in swapData) {
1415
-                      this.doctor_advices.push(swapData[index]) // = this.doctor_advices.concat(swapData);
1420
+                      this.doctor_advices.push(swapData[index]) 
1416
                     }
1421
                     }
1417
                   }
1422
                   }
1418
                 }
1423
                 }
1419
               } else {
1424
               } else {
1420
                 this.doctor_advices.unshift(response.data.data.advice)
1425
                 this.doctor_advices.unshift(response.data.data.advice)
1421
               }
1426
               }
1422
-              // this.$emit("new_create", response.data.data.advice);
1427
+              
1423
               return false
1428
               return false
1424
             }
1429
             }
1425
           })
1430
           })
1552
       ,
1557
       ,
1553
 
1558
 
1554
       openEditGroupAdvice() {
1559
       openEditGroupAdvice() {
1555
-        console.log("医嘱泪奔23332233223",this.groupSelectRow)
1556
         if (this.groupSelectRow === null) {
1560
         if (this.groupSelectRow === null) {
1557
           this.$message.error('未选择要修改的医嘱内容')
1561
           this.$message.error('未选择要修改的医嘱内容')
1558
           return
1562
           return
1559
         }
1563
         }
1560
-        console.log("22222",this.groupSelectRow.groupno)
1564
+        if(this.groupSelectRow!=null){
1565
+          if(this.groupSelectRow.origin == 2){
1566
+            this.$message.error("处方医嘱不能修改")
1567
+            return
1568
+          }
1569
+        }
1561
         this.$refs.editGroupForm.open(this.groupSelectRow.groupno)
1570
         this.$refs.editGroupForm.open(this.groupSelectRow.groupno)
1562
       }
1571
       }
1563
       ,
1572
       ,
1564
 
1573
 
1565
       openGroupFrom() {
1574
       openGroupFrom() {
1575
+        
1566
         this.$refs.addGroupForm.open()
1576
         this.$refs.addGroupForm.open()
1567
 
1577
 
1568
         // this.title="新增医嘱";
1578
         // this.title="新增医嘱";
1596
       }
1606
       }
1597
       ,
1607
       ,
1598
       checkAdvice() {
1608
       checkAdvice() {
1599
-        console.log(this.currentRow)
1600
-        // console.log(this.$store.getters.xt_user)
1601
         if (this.currentRow == null) {
1609
         if (this.currentRow == null) {
1602
           this.$message.error('请先选择要核对的医嘱!')
1610
           this.$message.error('请先选择要核对的医嘱!')
1603
           return false
1611
           return false
1788
           confirmButtonText: '确定',
1796
           confirmButtonText: '确定',
1789
           cancelButtonText: '取消',
1797
           cancelButtonText: '取消',
1790
           type: 'warning'
1798
           type: 'warning'
1791
-        })
1792
-          .then(() => {
1793
-            console.log(this.currentRow)
1799
+        }).then(() => {
1800
+           
1794
             let mode = '4'
1801
             let mode = '4'
1795
             if (
1802
             if (
1796
               this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
1803
               this.currentRow.advice_doctor != this.$store.getters.xt_user.user.id
2030
         this.$refs.addGroupForm.open()
2037
         this.$refs.addGroupForm.open()
2031
       }
2038
       }
2032
       ,
2039
       ,
2033
-      show(his_is_open) {
2040
+      show(his_is_open,is_advice_open) {
2041
+       
2034
         this.his_is_open = his_is_open
2042
         this.his_is_open = his_is_open
2035
-        console.log(this.his_is_open)
2043
+        this.is_advice_open = is_advice_open
2036
         this.isVisibility = true
2044
         this.isVisibility = true
2037
         this.getPermission()
2045
         this.getPermission()
2038
       }
2046
       }
2136
         }
2144
         }
2137
       },
2145
       },
2138
       cellMouseEnter: function(row, column, event) {
2146
       cellMouseEnter: function(row, column, event) {
2139
-        console.log("数据是",row)
2140
         this.currentRow = row
2147
         this.currentRow = row
2141
         this.groupSelectRow = row
2148
         this.groupSelectRow = row
2142
         // this.sameRowArr.forEach((arr, i) => {
2149
         // this.sameRowArr.forEach((arr, i) => {
2238
               check_url: '/api/patients/advice/check?mode=7',
2245
               check_url: '/api/patients/advice/check?mode=7',
2239
               module: 4
2246
               module: 4
2240
             }
2247
             }
2241
-          })
2242
-          .then(res => {
2243
-            console.log(res)
2248
+          }).then(res => {
2244
             if (res.data.state == 0) {
2249
             if (res.data.state == 0) {
2245
               this.hasPermission = false
2250
               this.hasPermission = false
2246
             } else if (res.data.state == 1) {
2251
             } else if (res.data.state == 1) {
2312
           if (response.data.state == 1) {
2317
           if (response.data.state == 1) {
2313
 
2318
 
2314
             var doctor_advices = response.data.data.advices
2319
             var doctor_advices = response.data.data.advices
2315
-            console.log("doctor_advices",doctor_advices)
2316
-
2320
+           
2317
             this.other_doctor_advices = doctor_advices
2321
             this.other_doctor_advices = doctor_advices
2318
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2322
             this.request_record_date = uParseTime(this.other_doctor_advices[0].record_date, '{y}-{m}-{d}')
2319
             this.sch = response.data.data.schedule
2323
             this.sch = response.data.data.schedule
2325
 
2329
 
2326
       },
2330
       },
2327
       getDialysisScheduleDetail() {
2331
       getDialysisScheduleDetail() {
2328
-        console.log("触发伏组件")
2329
         if(this.$route.query.showView && this.$route.query.showView == true){
2332
         if(this.$route.query.showView && this.$route.query.showView == true){
2330
           return
2333
           return
2331
         }
2334
         }
2332
         getDialysisScheduleDetail(this.patientid, this.record_date).then(response => {
2335
         getDialysisScheduleDetail(this.patientid, this.record_date).then(response => {
2333
           if (response.data.state == 1) {
2336
           if (response.data.state == 1) {
2337
+           this.doctor_advices = []
2334
             var doctor_advices = response.data.data.doctor_advices
2338
             var doctor_advices = response.data.data.doctor_advices
2335
             this.doctorAdvices = doctor_advices
2339
             this.doctorAdvices = doctor_advices
2336
-            this.doctor_advices = doctor_advices
2340
+            if(doctor_advices !=undefined && doctor_advices.length > 0){
2341
+              for(let i=0;i<doctor_advices.length;i++){
2342
+                doctor_advices[i]['origin'] = 1
2343
+                this.doctor_advices.push(doctor_advices[i])
2344
+              }
2345
+            }
2346
+           var his_advices = response.data.data.his_advices
2347
+            if(his_advices!=undefined && his_advices.length > 0){
2348
+              for(let i=0;i<his_advices.length;i++){
2349
+                 his_advices[i]['origin'] = 2
2350
+                 this.doctor_advices.push(his_advices[i])
2351
+              }
2352
+            }
2337
           }
2353
           }
2338
         })
2354
         })
2339
       }
2355
       }
2433
                 obj.type = 2
2449
                 obj.type = 2
2434
                 obj.custom_id = this.rand(10000000, 99999999)
2450
                 obj.custom_id = this.rand(10000000, 99999999)
2435
                 obj.drug_specs = medicalList[i].drug_specs
2451
                 obj.drug_specs = medicalList[i].drug_specs
2436
-                // console.log("222",this.all_drug)
2437
                 this.all_drug.push(obj)
2452
                 this.all_drug.push(obj)
2438
               }
2453
               }
2439
             }
2454
             }
2470
                 obj.custom_id = this.rand(10000000, 99999999)
2485
                 obj.custom_id = this.rand(10000000, 99999999)
2471
                 obj.drug_specs = base_drug_list[i].drug_specs
2486
                 obj.drug_specs = base_drug_list[i].drug_specs
2472
                 this.all_drug.push(obj)
2487
                 this.all_drug.push(obj)
2473
-                // console.log("2222",this.all_drug)
2474
               }
2488
               }
2475
             }
2489
             }
2476
         })
2490
         })
2518
       },
2532
       },
2519
 
2533
 
2520
      querySearch(queryString, cb) {
2534
      querySearch(queryString, cb) {
2521
-        console.log('queryString',queryString)
2535
+      
2522
         var restaurants = this.all_drug;
2536
         var restaurants = this.all_drug;
2523
         restaurants.map(item => {
2537
         restaurants.map(item => {
2524
           item.value = item.drug_name
2538
           item.value = item.drug_name
2525
         })
2539
         })
2526
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2540
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2527
         // 调用 callback 返回建议列表的数据
2541
         // 调用 callback 返回建议列表的数据
2528
-        console.log('results',results)
2542
+     
2529
         cb(results);
2543
         cb(results);
2530
      },
2544
      },
2531
 
2545
 
2536
      },
2550
      },
2537
 
2551
 
2538
      querySearch1(queryString, cb) {
2552
      querySearch1(queryString, cb) {
2539
-        console.log('queryString',queryString)
2553
+       
2540
         var restaurants = this.drugSpec;
2554
         var restaurants = this.drugSpec;
2541
-         console.log(restaurants)
2555
+        
2542
         restaurants.map(item => {
2556
         restaurants.map(item => {
2543
           item.value = item.drug_spec
2557
           item.value = item.drug_spec
2544
         })
2558
         })
2545
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2559
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
2546
         // 调用 callback 返回建议列表的数据
2560
         // 调用 callback 返回建议列表的数据
2547
-        console.log('results',results)
2548
         cb(results);
2561
         cb(results);
2549
       },
2562
       },
2550
      handleSelect(){
2563
      handleSelect(){
2561
       this.org_id = this.$store.getters.xt_user.org.id
2574
       this.org_id = this.$store.getters.xt_user.org.id
2562
       this.patientid = this.$route.query.patient_id
2575
       this.patientid = this.$route.query.patient_id
2563
       this.request_record_date = this.record_date
2576
       this.request_record_date = this.record_date
2564
-
2577
+      
2578
+    
2565
       // this.getDialysisScheduleDetail()
2579
       // this.getDialysisScheduleDetail()
2566
        //获取自备药
2580
        //获取自备药
2567
       this.getSelfMedicalList()
2581
       this.getSelfMedicalList()
2568
-    },mounted(){
2569
-      console.log("~~~~~")
2570
-      console.log(this.his_is_open)
2571
-      console.log("~~~~~")
2572
-
2573
-
2574
     },
2582
     },
2575
     components: {
2583
     components: {
2576
       AddGroupAdvice,
2584
       AddGroupAdvice,

+ 6 - 13
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Zobrazit soubor

703
             id:this.groupForm.id,
703
             id:this.groupForm.id,
704
          
704
          
705
           };
705
           };
706
-          console.log("hhhhh",this.drug_id,this.nameForm.way)
707
           var adviceNames = [];
706
           var adviceNames = [];
708
           for (const index in this.groupForm.adviceNames) {
707
           for (const index in this.groupForm.adviceNames) {
709
             adviceNames.unshift(this.groupForm.adviceNames[index]);
708
             adviceNames.unshift(this.groupForm.adviceNames[index]);
714
           submitForm.adviceNames = adviceNames;
713
           submitForm.adviceNames = adviceNames;
715
           let mode = "1";
714
           let mode = "1";
716
           
715
           
717
-          console.log("88888888",submitForm)
718
-          console.log("99999",this.medicals)
719
           if(this.private_drug_config != null&& this.private_drug_config.drug_start == 1){
716
           if(this.private_drug_config != null&& this.private_drug_config.drug_start == 1){
720
                
717
                
721
              for(let index=0;index<submitForm.adviceNames.length;index++){
718
              for(let index=0;index<submitForm.adviceNames.length;index++){
730
                    }
727
                    }
731
                    if(submitForm.adviceNames[index].children.length == 0){
728
                    if(submitForm.adviceNames[index].children.length == 0){
732
                      if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
729
                      if(submitForm.adviceNames[index].drug_id == this.medicals[i].drug_name_id){
733
-                       console.log("进来了没有")
734
                         submitForm.adviceNames[index].way = 2
730
                         submitForm.adviceNames[index].way = 2
735
                         submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
731
                         submitForm.adviceNames[index].drug_name_id = this.medicals[i].drug_name_id
736
                     }
732
                     }
739
                 }
735
                 }
740
              }
736
              }
741
           }
737
           }
742
-          console.log("2222",submitForm)
743
          
738
          
744
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
739
           CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
745
             response => {
740
             response => {
995
       this.nameFormTitle = "添加子药内容";
990
       this.nameFormTitle = "添加子药内容";
996
     },
991
     },
997
     openGroupAdvice(isEdit) {
992
     openGroupAdvice(isEdit) {
993
+      console.log("hhhahhdhahdhahddhhdhdhh",this.groupSelectRow)
998
       this.isChild = false;
994
       this.isChild = false;
999
       if (isEdit) {
995
       if (isEdit) {
1000
         if (this.groupSelectRow === null) {
996
         if (this.groupSelectRow === null) {
1069
     },
1065
     },
1070
     selectAdvice(selection, row) {
1066
     selectAdvice(selection, row) {
1071
      
1067
      
1072
-     console.log("row",row)
1073
-
1074
-      var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id]
1075
-        .DoctorAdviceTemplate;
1076
-      console.log(adviceArray);
1068
+      var adviceArray = this.adviceTemplateMaps[this.selectedTemp.id].DoctorAdviceTemplate;
1077
       for (let y = 0; y < adviceArray.length; y++) {
1069
       for (let y = 0; y < adviceArray.length; y++) {
1078
         adviceArray[y].selection = false;
1070
         adviceArray[y].selection = false;
1079
       }
1071
       }
1157
       }
1149
       }
1158
     },
1150
     },
1159
     templateTableChange(currentRow, oldCurrentRow) {
1151
     templateTableChange(currentRow, oldCurrentRow) {
1160
-      console.log("params -----",currentRow)
1152
+     
1161
       this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
1153
       this.selectedTemp = { id: 0, name: "", org_id: 0, list: [], rows: [] };
1162
       if (currentRow == null) {
1154
       if (currentRow == null) {
1163
         return false;
1155
         return false;
1577
             var medicalList = response.data.data.private_drug_list
1569
             var medicalList = response.data.data.private_drug_list
1578
             console.log("medicallist",medicalList)
1570
             console.log("medicallist",medicalList)
1579
             var base_drug_list = response.data.data.base_drug_list
1571
             var base_drug_list = response.data.data.base_drug_list
1572
+            console.log("base_drug_list23233232322323",base_drug_list)
1580
             var base_drug_cofig = response.data.data.base_drug_config
1573
             var base_drug_cofig = response.data.data.base_drug_config
1581
             var private_drug_cofig = response.data.data.private_drug_config
1574
             var private_drug_cofig = response.data.data.private_drug_config
1582
        
1575
        
1674
      
1667
      
1675
     },
1668
     },
1676
     changeDrugDesc(name) {
1669
     changeDrugDesc(name) {
1677
-        console.log("hhhhhhhhhh",this.drugSpec)
1670
+       
1678
         this.current_drug_spec = name
1671
         this.current_drug_spec = name
1679
         for (let i = 0; i < this.drugSpec.length; i++) {
1672
         for (let i = 0; i < this.drugSpec.length; i++) {
1680
           if (this.drugSpec[i].drug_spec == name) {
1673
           if (this.drugSpec[i].drug_spec == name) {
1702
       },
1695
       },
1703
 
1696
 
1704
      querySearch(queryString, cb) {
1697
      querySearch(queryString, cb) {
1705
-        console.log('queryString',queryString)
1698
+        
1706
         var restaurants = this.all_drug;
1699
         var restaurants = this.all_drug;
1707
         restaurants.map(item => {
1700
         restaurants.map(item => {
1708
           item.value = item.drug_name
1701
           item.value = item.drug_name

+ 5 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

1937
       getTime(val) {
1937
       getTime(val) {
1938
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1938
         return uParseTime(val, '{y}-{m}-{d} {h}:{i}')
1939
       },
1939
       },
1940
-      show(pre, schedual, last, his_is_open) {
1940
+      show(pre, schedual, last, his_is_open,is_advice_open) {
1941
         
1941
         
1942
         if (pre != undefined) {
1942
         if (pre != undefined) {
1943
           if (pre.oxygen_uptake == 1) {
1943
           if (pre.oxygen_uptake == 1) {
1952
         if (his_is_open == 1) {
1952
         if (his_is_open == 1) {
1953
           this.is_open = 0
1953
           this.is_open = 0
1954
         }
1954
         }
1955
+        if(is_advice_open == 1){
1956
+          this.is_open = 1
1957
+        }
1955
 
1958
 
1956
         if(this.$store.getters.xt_user.org.id == 10101){
1959
         if(this.$store.getters.xt_user.org.id == 10101){
1957
           if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
1960
           if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
3558
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3561
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3559
           this.dialysisPrescription.anticoagulant_zongliang = ''
3562
           this.dialysisPrescription.anticoagulant_zongliang = ''
3560
         }
3563
         }
3561
-        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
3562
-        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
3563
-        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
3564
+       
3564
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3565
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3565
          this.dialysisPrescription.anticoagulant_zongliang = ""
3566
          this.dialysisPrescription.anticoagulant_zongliang = ""
3566
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3567
          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)

+ 5 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Zobrazit soubor

230
                 template_id == 46 ||
230
                 template_id == 46 ||
231
                 template_id == 47 ||
231
                 template_id == 47 ||
232
                 template_id == 48 ||
232
                 template_id == 48 ||
233
+                template_id == 51 ||
233
                 org_id == 10210 ||
234
                 org_id == 10210 ||
234
                 org_id == 9555)
235
                 org_id == 9555)
235
             "
236
             "
281
               template_id != 46 &&
282
               template_id != 46 &&
282
               template_id != 47 &&
283
               template_id != 47 &&
283
               template_id != 48 &&
284
               template_id != 48 &&
285
+               template_id != 51 &&
284
               org_id!= 10210 &&
286
               org_id!= 10210 &&
285
               org_id != 9555
287
               org_id != 9555
286
             "
288
             "
1061
                 template_id == 46 ||
1063
                 template_id == 46 ||
1062
                 template_id == 47 ||
1064
                 template_id == 47 ||
1063
                 template_id == 48 ||
1065
                 template_id == 48 ||
1066
+                template_id == 51 ||
1064
                 org_id == 10210 ||
1067
                 org_id == 10210 ||
1065
                 org_id == 9555)
1068
                 org_id == 9555)
1066
             "
1069
             "
1103
               template_id != 44 &&
1106
               template_id != 44 &&
1104
               template_id != 46 &&
1107
               template_id != 46 &&
1105
               template_id != 47 &&
1108
               template_id != 47 &&
1109
+              template_id != 51 &&
1106
               template_id == 48 &&
1110
               template_id == 48 &&
1111
+             
1107
               org_id !=  10210 &&
1112
               org_id !=  10210 &&
1108
               org_id != 9555
1113
               org_id != 9555
1109
             "
1114
             "

+ 1 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue Zobrazit soubor

33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量(ml)</th>
35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量(ml)</th>
36
-          <th v-if="isShow('血容量')" width="92px">血容量(ml)</th>
36
+          <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
37
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
37
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
38
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
38
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
39
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>
39
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>

+ 14 - 8
src/xt_pages/dialysis/details/index.vue Zobrazit soubor

266
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
266
         @assessmentAfterDislysis="assessmentAfterDislysisFunc"
267
         :system_prescribe="system_prescribe"
267
         :system_prescribe="system_prescribe"
268
         :his_is_open="his_is_open"
268
         :his_is_open="his_is_open"
269
+        :is_advice_open="is_advice_open"
269
         :lastAssessment="lastAssessment"
270
         :lastAssessment="lastAssessment"
270
         :stockType="stockType"
271
         :stockType="stockType"
272
+        :his_doctor_advices="his_doctor_advices"
271
       >
273
       >
272
       </nav-igation>
274
       </nav-igation>
273
 
275
 
631
       config: {},
633
       config: {},
632
 
634
 
633
       his_is_open:0,
635
       his_is_open:0,
634
-
636
+      is_advice_open:0,
635
       lastPredialysisEvaluation: { id: 0 },
637
       lastPredialysisEvaluation: { id: 0 },
636
       lastMonitorRecord: { id: 0 },
638
       lastMonitorRecord: { id: 0 },
637
       lastAssessmentAfterDislysis: { id: 0 },
639
       lastAssessmentAfterDislysis: { id: 0 },
684
 
686
 
685
       queueConfig:{},
687
       queueConfig:{},
686
       stockType:[],
688
       stockType:[],
687
-      preparestock:[]
689
+      preparestock:[],
690
+      his_doctor_advices:[],
688
     }
691
     }
689
   },
692
   },
690
   created() {
693
   created() {
941
               if(this.his_is_open == 1){
944
               if(this.his_is_open == 1){
942
                 this.is_open = 0
945
                 this.is_open = 0
943
               }
946
               }
947
+              if(this.is_advice_open == 1){
948
+                this.is_open = 1
949
+              } 
944
               this.longAdvices = totalAdvice
950
               this.longAdvices = totalAdvice
945
               this.waitUploadAdvices = waitUploadAdvices
951
               this.waitUploadAdvices = waitUploadAdvices
946
               break
952
               break
1143
           this.device_numbers = resp.data.device_numbers
1149
           this.device_numbers = resp.data.device_numbers
1144
 
1150
 
1145
           var his_doctor_advices = resp.data.his_advices
1151
           var his_doctor_advices = resp.data.his_advices
1146
-
1152
+          console.log("his_doctor_advices 2323232233232332323323232",this.his_doctor_advices)
1153
+          this.his_doctor_advices = his_doctor_advices
1147
           this.his_is_open = resp.data.is_open_config.is_open
1154
           this.his_is_open = resp.data.is_open_config.is_open
1148
-          console.log(this.his_is_open)
1149
-
1150
-
1151
-
1155
+          
1156
+          this.is_advice_open = resp.data.is_advice_open.is_advice_open
1157
+          console.log("is_advice_open 2323232233232332323323232",this.is_advice_open)
1152
           var stockType =  resp.data.stockType
1158
           var stockType =  resp.data.stockType
1153
           this.stockType = stockType
1159
           this.stockType = stockType
1154
-          console.log("stockTYPW",stockType)
1160
+         
1155
 
1161
 
1156
           var prepare = resp.data.prepare
1162
           var prepare = resp.data.prepare
1157
           if(prepare!=null){
1163
           if(prepare!=null){

+ 21 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

107
         v-if="
107
         v-if="
108
           org_template_info.template_id == 6 ||
108
           org_template_info.template_id == 6 ||
109
           org_template_info.template_id == 10 ||
109
           org_template_info.template_id == 10 ||
110
-          org_template_info.template_id == 11
110
+          org_template_info.template_id == 11 ||
111
+          org_template_info.template_id == 50
111
         "
112
         "
112
       >
113
       >
113
         <el-button
114
         <el-button
664
           >打印</el-button
665
           >打印</el-button
665
         >
666
         >
666
       </template>
667
       </template>
668
+      <template v-if="org_template_info.template_id == 51">
669
+        <el-button
670
+          :loading="loading"
671
+          size="small"
672
+          icon="el-icon-printer"
673
+          @click="printThisPage"
674
+          type="primary"
675
+          >打印</el-button
676
+        >
677
+      </template>
667
     </div>
678
     </div>
668
     <div class="app-container" style="min-height: 0">
679
     <div class="app-container" style="min-height: 0">
669
       <!--<div class="order-print-btn"-->
680
       <!--<div class="order-print-btn"-->
1042
             v-if="org_template_info.template_id == 50"
1053
             v-if="org_template_info.template_id == 50"
1043
           >
1054
           >
1044
           </DialysisPrintOrderFifty>
1055
           </DialysisPrintOrderFifty>
1056
+          <DialysisPrintOrderFiftyOne
1057
+            v-bind:childResponse="childResponse"
1058
+            v-if="org_template_info.template_id == 51"
1059
+          >
1060
+          </DialysisPrintOrderFiftyOne>
1045
         </div>
1061
         </div>
1046
       </el-container>
1062
       </el-container>
1047
     </div>
1063
     </div>
1110
 import DialysisPrintOrderFortyEight from "./template/DialysisPrintOrderFortyEight";
1126
 import DialysisPrintOrderFortyEight from "./template/DialysisPrintOrderFortyEight";
1111
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1127
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1112
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1128
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1129
+import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1113
 export default {
1130
 export default {
1114
   name: "dialysisPrintOrder",
1131
   name: "dialysisPrintOrder",
1115
   components: {
1132
   components: {
1133
+    DialysisPrintOrderFiftyOne,
1116
     DialysisPrintOrderFifty,
1134
     DialysisPrintOrderFifty,
1117
     DialysisPrintOrderFortyNine,
1135
     DialysisPrintOrderFortyNine,
1118
     DialysisPrintOrderFortyEight,
1136
     DialysisPrintOrderFortyEight,
1390
         this.org_template_info.template_id == 10 ||
1408
         this.org_template_info.template_id == 10 ||
1391
         this.org_template_info.template_id == 11 ||
1409
         this.org_template_info.template_id == 11 ||
1392
         this.org_template_info.template_id == 49 ||
1410
         this.org_template_info.template_id == 49 ||
1393
-        this.org_template_info.template_id == 50
1411
+        this.org_template_info.template_id == 50 ||
1412
+        this.org_template_info.template_id == 51
1394
       ) {
1413
       ) {
1395
         printJS({
1414
         printJS({
1396
           printable: "dialysis-print-box-1",
1415
           printable: "dialysis-print-box-1",

Diff nebyl zobrazen, protože je příliš veliký
+ 2273 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue


+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Zobrazit soubor

310
                   <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
310
                   <td width="60" style="height:20px;line-height:20px">超滤量<br />ml</td>
311
 <!--                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
311
 <!--                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换率<br /><br />ml/h</td>-->
312
 <!--                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量<br /><br />ml</td>-->
312
 <!--                  <td width="60" style="height:20px;line-height:20px" v-if="prescription.mode_id == 2">置换量<br /><br />ml</td>-->
313
-                  <!-- <td width="60" style="height:20px;line-height:20px">血容量<br />ml</td> -->
313
+                  <td width="60" style="height:20px;line-height:20px">血容量<br />L</td>
314
                   <td width="">病情变化及处理</td>
314
                   <td width="">病情变化及处理</td>
315
               </tr>
315
               </tr>
316
 
316
 
334
                   <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
334
                   <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "/" }}</span></td>
335
 <!--                  <td v-if="prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
335
 <!--                  <td v-if="prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.replacement_rate ? monitor.replacement_rate : '/'}}</span></td>-->
336
 <!--                  <td v-if="prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.displacement_quantity ? monitor.displacement_quantity : "/" }}</span></td>-->
336
 <!--                  <td v-if="prescription.mode_id == 2">&nbsp;<span v-if="monitor.operate_time">{{ monitor.displacement_quantity ? monitor.displacement_quantity : "/" }}</span></td>-->
337
-                  <!-- <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td> -->
337
+                  <td>&nbsp;<span v-if="monitor.operate_time">{{ monitor.accumulated_blood_volume ? monitor.accumulated_blood_volume : "/" }}</span></td>
338
                   <td style="text-align:left;padding-left:10px;">
338
                   <td style="text-align:left;padding-left:10px;">
339
                       <div style="line-height:20px;text-align: left;display: inline-block;">
339
                       <div style="line-height:20px;text-align: left;display: inline-block;">
340
                           &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
340
                           &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}

+ 4 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue Zobrazit soubor

287
                     <el-table-column label="库存" width="60">
287
                     <el-table-column label="库存" width="60">
288
                       <template slot-scope="scope">
288
                       <template slot-scope="scope">
289
                                           <span
289
                                           <span
290
-                                              v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10188 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
290
+                                              v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10188 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==10318 || org_id ==10340">
291
                                               <span
291
                                               <span
292
                                                   v-if="scope.row.count/scope.row.min_number>0">{{ Math.floor(scope.row.count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
292
                                                   v-if="scope.row.count/scope.row.min_number>0">{{ Math.floor(scope.row.count / scope.row.min_number) }}{{ scope.row.max_unit }}</span>
293
                                               <span
293
                                               <span
386
                     <el-table-column label="库存" width="40">
386
                     <el-table-column label="库存" width="40">
387
                       <template slot-scope="scope">
387
                       <template slot-scope="scope">
388
                                                 <span
388
                                                 <span
389
-                                                    v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217">
389
+                                                    v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id ==10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==10318 || org_id ==10340">
390
                                                     {{ scope.row.stock_count }}
390
                                                     {{ scope.row.stock_count }}
391
                                                 </span>
391
                                                 </span>
392
                         <span v-else> {{ scope.row.total }}</span>
392
                         <span v-else> {{ scope.row.total }}</span>
2737
       this.$refs.additionalCharges.show()
2737
       this.$refs.additionalCharges.show()
2738
     },
2738
     },
2739
     selectDrugs(selection, row) {
2739
     selectDrugs(selection, row) {
2740
-      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217) {
2740
+      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340) {
2741
         if (row.count <= 0) {
2741
         if (row.count <= 0) {
2742
           if (selection) {
2742
           if (selection) {
2743
             selection.forEach(row => {
2743
             selection.forEach(row => {
3024
     },
3024
     },
3025
     selectChange(selection, row) {
3025
     selectChange(selection, row) {
3026
       console.log('row', row)
3026
       console.log('row', row)
3027
-      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10188  || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217) {
3027
+      if (this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id == 10215 || this.org_id == 10088 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 10188  || this.org_id == 9956 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340) {
3028
         if (row.stock_count <= 0) {
3028
         if (row.stock_count <= 0) {
3029
           if (row.type == 3) {
3029
           if (row.type == 3) {
3030
             if (selection) {
3030
             if (selection) {

+ 4 - 3
src/xt_pages/hospitalStation/components/deskRecord.vue Zobrazit soubor

53
       <el-form-item label="药物过敏史: " prop="name">
53
       <el-form-item label="药物过敏史: " prop="name">
54
         <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
54
         <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
55
       </el-form-item>
55
       </el-form-item>
56
-<!-- 
57
-  <el-form-item label="初始透析日期: " prop="name">
56
+
57
+  <!-- <el-form-item label="初始透析日期: " prop="name">
58
          <el-date-picker
58
          <el-date-picker
59
           :disabled="true"
59
           :disabled="true"
60
           style="width:100%;"
60
           style="width:100%;"
610
        this.getlist();
610
        this.getlist();
611
        this.getInitData();
611
        this.getInitData();
612
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
612
        this.wayOptions = getDataConfig("patient", "reimbursement_ways");
613
-       console.log("232322323",this.case_history);
614
        if(this.patientInfo.gender = 1){
613
        if(this.patientInfo.gender = 1){
615
          this.patientInfo.gender = '男'
614
          this.patientInfo.gender = '男'
616
        }else if(this.patientInfo.gender = 2){
615
        }else if(this.patientInfo.gender = 2){
617
           this.patientInfo.gender = '女'
616
           this.patientInfo.gender = '女'
618
         }
617
         }
618
+
619
+      this.first_dialysis_date = this.getTime(this.patientInfo.first_dialysis_date)
619
       this.primary_disease = this.case_history.primary_disease
620
       this.primary_disease = this.case_history.primary_disease
620
       this.confirm_failure_date = this.case_history.confirm_failure_date
621
       this.confirm_failure_date = this.case_history.confirm_failure_date
621
       this.drug_allergy_history = this.case_history.drug_allergy_history
622
       this.drug_allergy_history = this.case_history.drug_allergy_history

+ 8 - 7
src/xt_pages/hospitalStation/components/dialysisIndex.vue Zobrazit soubor

62
           :lastAssessment="lastAssessment"
62
           :lastAssessment="lastAssessment"
63
           :stockType="stockType"
63
           :stockType="stockType"
64
           :mode_id="mode_id"
64
           :mode_id="mode_id"
65
+          :is_advice_open="is_advice_open"
65
         >
66
         >
66
         </nav-igation>
67
         </nav-igation>
67
 
68
 
256
       config: {},
257
       config: {},
257
 
258
 
258
       his_is_open:0,
259
       his_is_open:0,
259
-
260
+      is_advice_open:0,
260
       lastPredialysisEvaluation: { id: 0 },
261
       lastPredialysisEvaluation: { id: 0 },
261
       lastMonitorRecord: { id: 0 },
262
       lastMonitorRecord: { id: 0 },
262
       lastAssessmentAfterDislysis: { id: 0 },
263
       lastAssessmentAfterDislysis: { id: 0 },
584
           var schedual = resp.data.schedual // 患者排班信息
585
           var schedual = resp.data.schedual // 患者排班信息
585
 
586
 
586
           var prescription = resp.data.prescription // 透析处方
587
           var prescription = resp.data.prescription // 透析处方
587
-          console.log("投产出大发大发233232323232233232",prescription)
588
+         
588
           if (prescription != null) {
589
           if (prescription != null) {
589
             if (prescription.body_fluid == -2) {
590
             if (prescription.body_fluid == -2) {
590
               prescription.body_fluid = 0
591
               prescription.body_fluid = 0
732
           var his_doctor_advices = resp.data.his_advices
733
           var his_doctor_advices = resp.data.his_advices
733
 
734
 
734
           this.his_is_open = resp.data.is_open_config.is_open
735
           this.his_is_open = resp.data.is_open_config.is_open
735
-          console.log(this.his_is_open)
736
-
736
+          
737
+          this.is_advice_open = resp.data.is_advice_open.is_advice_open
738
+          console.log("is_advice_open23223323232322323",this.is_advice_open)
737
 
739
 
738
 
740
 
739
           var stockType =  resp.data.stockType
741
           var stockType =  resp.data.stockType
740
           this.stockType = stockType
742
           this.stockType = stockType
741
-          console.log("stockTYPW",stockType)
743
+          
742
 
744
 
743
           var prepare = resp.data.prepare
745
           var prepare = resp.data.prepare
744
           this.preparestock = prepare
746
           this.preparestock = prepare
745
-          console.log("prepare222222",prepare)
746
-
747
+        
747
           for (let i = 0; i <  this.doctor_advices.length; i++){
748
           for (let i = 0; i <  this.doctor_advices.length; i++){
748
             this.doctor_advices[i]['origin'] = 1
749
             this.doctor_advices[i]['origin'] = 1
749
           }
750
           }

+ 1 - 0
src/xt_pages/hospitalStation/doctorDesk.vue Zobrazit soubor

3879
       },
3879
       },
3880
 
3880
 
3881
       opentwo(index) {
3881
       opentwo(index) {
3882
+        
3882
         if (index == 1) {
3883
         if (index == 1) {
3883
           if (this.patientInfo.id == undefined) {
3884
           if (this.patientInfo.id == undefined) {
3884
             this.$message.error('请先选择病人')
3885
             this.$message.error('请先选择病人')

+ 1 - 1
src/xt_pages/hospitalStation/recordPrint.vue Zobrazit soubor

22
         :patientid="patientid"
22
         :patientid="patientid"
23
       ></printOne>
23
       ></printOne>
24
       <printTwo
24
       <printTwo
25
-        v-if="org_id == 10217 || org_id == 0"
25
+        v-if=" org_id == 0 || org_id == 9671 || org_id == 9675"
26
         ref="printTwo"
26
         ref="printTwo"
27
         v-bind:childResponse="childResponse"
27
         v-bind:childResponse="childResponse"
28
         :patient="patient"
28
         :patient="patient"

+ 59 - 31
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue Zobrazit soubor

23
           <span v-if="patient.gender == 1">男</span>
23
           <span v-if="patient.gender == 1">男</span>
24
           <span v-if="patient.gender == 2">女</span>
24
           <span v-if="patient.gender == 2">女</span>
25
         </div>
25
         </div>
26
-        <div>工作单位:</div>
26
+        <div>工作单位:{{patient.work_unit}}</div>
27
        
27
        
28
       </div>
28
       </div>
29
       <div class="infoTitle">
29
       <div class="infoTitle">
30
-        <div>出生日期:</div>
31
-        <div>身份证号:</div>
30
+        <div>出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
+        <div>身份证号:{{patient.id_card_no}}</div>
32
       </div>
32
       </div>
33
       <div class="infoTitle">
33
       <div class="infoTitle">
34
-        <div>联系人:</div>
34
+        <div>联系人:{{patient.contact_name}}</div>
35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36
       </div>
36
       </div>
37
       <div class="otherInfo" style="border-bottom: 1px solid">
37
       <div class="otherInfo" style="border-bottom: 1px solid">
38
-        <div>进入透析时间:</div>
38
+        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
39
         <div style="flex: 1"></div>
39
         <div style="flex: 1"></div>
40
       </div>
40
       </div>
41
       <div class="infoTitle">
41
       <div class="infoTitle">
42
-        <div style="width: 300px">原发病:</div>
43
-        <div>确诊肾衰日期:</div>
42
+        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
43
+        <div>确诊肾衰日期:{{getTime(patient.first_dialysis_date)}}</div>
44
       </div>
44
       </div>
45
       <div class="otherInfo">
45
       <div class="otherInfo">
46
         <div>
46
         <div>
47
-          药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
47
+          药物过敏史:{{ history.allergic_history ? history.allergic_history : "" }}
48
         </div>
48
         </div>
49
       </div>
49
       </div>
50
       <div class="otherInfo">
50
       <div class="otherInfo">
51
-        <div>初始透析日期:</div>
51
+        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
52
         <div style="flex: 1"></div>
52
         <div style="flex: 1"></div>
53
       </div>
53
       </div>
54
       <div class="otherInfo" style="border-bottom: 1px solid">
54
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:</div>
55
+        <div>血管通路:{{getAccess(accessList.access_project)}}</div>
56
         <div style="flex: 1"></div>
56
         <div style="flex: 1"></div>
57
       </div>
57
       </div>
58
 
58
 
63
         </div>
63
         </div>
64
       </div>
64
       </div>
65
 
65
 
66
-      <div class="otherInfo" style="min-height: 200px;">
66
+      <div class="otherInfo" style="min-height: 180px;">
67
         <div class="otherName">现病史:</div>
67
         <div class="otherName">现病史:</div>
68
         <div style="flex: 1">
68
         <div style="flex: 1">
69
           {{
69
           {{
103
       <div class="recordTitle">
103
       <div class="recordTitle">
104
         <div>体格检查</div>
104
         <div>体格检查</div>
105
         <div class="recordContent" style="height:250px;">
105
         <div class="recordContent" style="height:250px;">
106
-            <div>
106
+          <div>
107
           <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
107
           <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
108
           <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
108
           <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
109
           <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
109
           <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
110
           <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
110
           <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
111
-            </div>
112
-          
111
+          </div>
112
+
113
         </div>
113
         </div>
114
         <div></div>
114
         <div></div>
115
       </div>
115
       </div>
116
       <div class="recordTitle">
116
       <div class="recordTitle">
117
         <div>专科检查</div>
117
         <div>专科检查</div>
118
-        <div class="recordContent"></div>
118
+        <div class="recordContent">{{history.special_inspection}}</div>
119
       </div>
119
       </div>
120
       <div class="recordTitle" style="border-bottom: 1px solid">
120
       <div class="recordTitle" style="border-bottom: 1px solid">
121
         <div>实验室及器械检查</div>
121
         <div>实验室及器械检查</div>
122
-        <div class="recordContent" style="height:250px;"></div>
122
+        <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
123
       </div>
123
       </div>
124
       <div style="display: flex; justify-content: end">
124
       <div style="display: flex; justify-content: end">
125
         <div class="endInfo">
125
         <div class="endInfo">
127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
128
           </div>
128
           </div>
129
           <div style="display: flex">
129
           <div style="display: flex">
130
-            <div>医师:</div>
130
+            <div>医师:{{getDoctor(history.doctor) ? getDoctor(history.doctor) : ""}}</div>
131
             <div>
131
             <div>
132
-              手签:{{
133
-                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
134
-              }}
132
+              手签:
135
             </div>
133
             </div>
136
           </div>
134
           </div>
137
-          <div style="text-align: center; letter-spacing: 3px">2000 年 2 月 4 日</div>
135
+          <div style="text-align: center; letter-spacing: 3px">{{getTime(history.record_date)}}</div>
138
         </div>
136
         </div>
139
       </div>
137
       </div>
140
     </div>
138
     </div>
145
 
143
 
146
 import { getDataConfig } from "@/utils/data";
144
 import { getDataConfig } from "@/utils/data";
147
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
145
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
146
+import {getAccessList} from "@/api/patient"
148
 export default {
147
 export default {
149
   props: {
148
   props: {
150
     patient: Object,
149
     patient: Object,
159
       orgname: "",
158
       orgname: "",
160
       history: {},
159
       history: {},
161
       printDate: "",
160
       printDate: "",
161
+      accessList:{},
162
+      blood_access_part_opera:[],
162
     };
163
     };
163
   },
164
   },
164
   methods: {
165
   methods: {
178
         birth.substr(6, 2);
179
         birth.substr(6, 2);
179
       return jsGetAge(births, "-");
180
       return jsGetAge(births, "-");
180
     },
181
     },
181
-    // show(val) {
182
-    //   this.patientid = val;
183
-    //   this.getAllDoctorList();
184
-    //   this.getPatientCaseHistory();
185
-    // },
182
+    show(val) {
183
+      this.patientid = val;
184
+      this.getAllDoctorList();
185
+      this.getPatientCaseHistory();
186
+    },
186
     getProfession(id) {
187
     getProfession(id) {
187
       var name = "";
188
       var name = "";
188
       for (let i = 0; i < this.educationOptions.length; i++) {
189
       for (let i = 0; i < this.educationOptions.length; i++) {
217
       const params = {
218
       const params = {
218
         patient_id: this.patientid,
219
         patient_id: this.patientid,
219
       };
220
       };
220
-      console.log("病历22222", params);
221
       getPatientCaseHistory(params).then((response) => {
221
       getPatientCaseHistory(params).then((response) => {
222
         if (response.data.state == 1) {
222
         if (response.data.state == 1) {
223
           var patient = response.data.data.patient;
223
           var patient = response.data.data.patient;
224
-          //    console.log("patinet",patient)
225
           this.patient = patient;
224
           this.patient = patient;
226
           var history = response.data.data.history;
225
           var history = response.data.data.history;
227
-          console.log("中国history222222", history);
228
           this.history = history;
226
           this.history = history;
229
           var hispatient = response.data.data.hispatient;
227
           var hispatient = response.data.data.hispatient;
230
-          //    console.log("hispatient",hispatient)
231
           this.hispatient = hispatient;
228
           this.hispatient = hispatient;
229
+          var accessList = response.data.data.accessList
230
+          console.log("accesslist2332323232",accessList)
231
+          this.accessList = accessList
232
         }
232
         }
233
       });
233
       });
234
     },
234
     },
241
       }
241
       }
242
       return name;
242
       return name;
243
     },
243
     },
244
+    getTime(val) {
245
+      if(val < 0){
246
+        return ""
247
+      }
248
+      if(val == ""){
249
+      return ""
250
+      }else {
251
+      return uParseTime(val, '{y}-{m}-{d}')
252
+      }
253
+    },
254
+    getAccessList(){
255
+      getAccessList().then(response=>{
256
+        if(response.data.state == 1){
257
+          var blood_access_part_opera = response.data.data.blood_access_part_opera
258
+          this.blood_access_part_opera = blood_access_part_opera
259
+        }
260
+     })
261
+    },
262
+    getAccess(id){
263
+      var name = ""
264
+      for(let i=0;i<this.blood_access_part_opera.length;i++){
265
+         if(id == this.blood_access_part_opera[i].value){
266
+             name = this.blood_access_part_opera[i].name
267
+         }
268
+      }
269
+      return name
270
+    }
244
   },
271
   },
245
   created() {
272
   created() {
246
     this.educationOptions = getDataConfig("patient", "education_types");
273
     this.educationOptions = getDataConfig("patient", "education_types");
247
     this.getAllDoctorList();
274
     this.getAllDoctorList();
248
     this.getPatientCaseHistory();
275
     this.getPatientCaseHistory();
249
-
276
+    this.getAccessList()
250
     var xtuser = this.$store.getters.xt_user;
277
     var xtuser = this.$store.getters.xt_user;
251
     this.orgname = xtuser.org.org_name;
278
     this.orgname = xtuser.org.org_name;
252
     var data = new Date();
279
     var data = new Date();
254
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
281
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
255
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
282
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
256
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
283
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
284
+
257
   },
285
   },
258
   watch: {
286
   watch: {
259
     patientid: function (val) {
287
     patientid: function (val) {

+ 4 - 4
src/xt_pages/outpatientCharges/allListPrint.vue Zobrazit soubor

193
         let new_project_ids = this.unique(project_ids)
193
         let new_project_ids = this.unique(project_ids)
194
         let list = []
194
         let list = []
195
 
195
 
196
-        console.log('ids')
197
-        console.log(new_drug_ids)
198
-        console.log(new_project_ids)
199
-        console.log('ids')
196
+        // console.log('ids')
197
+        // console.log(new_drug_ids)
198
+        // console.log(new_project_ids)
199
+        // console.log('ids')
200
 
200
 
201
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
201
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
202
           for (let i = 0; i < new_drug_ids.length; i++) {
202
           for (let i = 0; i < new_drug_ids.length; i++) {

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

285
                                         </el-table-column>
285
                                         </el-table-column>
286
                                         <el-table-column label="库存" width="60">
286
                                         <el-table-column label="库存" width="60">
287
                                             <template slot-scope="scope">
287
                                             <template slot-scope="scope">
288
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217">
288
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==10318 ||org_id ==10340">
289
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
289
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
290
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
290
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
291
                                               </span>
291
                                               </span>
382
                                         </el-table-column>
382
                                         </el-table-column>
383
                                         <el-table-column label="库存" width="40">
383
                                         <el-table-column label="库存" width="40">
384
                                             <template slot-scope="scope">
384
                                             <template slot-scope="scope">
385
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217">
385
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id == 9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==10318 || org_id ==10340">
386
                                                    {{scope.row.stock_count}}
386
                                                    {{scope.row.stock_count}}
387
                                               </span>
387
                                               </span>
388
                                               <span v-else> {{ scope.row.total }}</span>
388
                                               <span v-else> {{ scope.row.total }}</span>
2737
       selectDrugs(selection, row) {
2737
       selectDrugs(selection, row) {
2738
         console.log('selection', selection)
2738
         console.log('selection', selection)
2739
         console.log('row', row)
2739
         console.log('row', row)
2740
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217){
2740
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id == 10245 || this.org_id == 9919 || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 || this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
2741
             if (row.count <= 0) {
2741
             if (row.count <= 0) {
2742
               if (selection) {
2742
               if (selection) {
2743
                 selection.forEach(row => {
2743
                 selection.forEach(row => {
3015
       },
3015
       },
3016
       selectChange(selection, row) {
3016
       selectChange(selection, row) {
3017
         console.log('row', row)
3017
         console.log('row', row)
3018
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217){
3018
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10188 || this.org_id ==10245 || this.org_id == 9919  || this.org_id == 10106 || this.org_id == 9504 || this.org_id ==10215 ||  this.org_id == 10188 || this.org_id == 10265 || this.org_id == 10164 || this.org_id == 9956 || this.org_id == 10188 || this.org_id == 10191 || this.org_id == 10278 || this.org_id == 10217 || this.org_id ==10210 || this.org_id ==10318 || this.org_id ==10340){
3019
            if (row.stock_count <= 0) {
3019
            if (row.stock_count <= 0) {
3020
             if (row.type == 3) {
3020
             if (row.type == 3) {
3021
               if (selection) {
3021
               if (selection) {

+ 11 - 12
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Zobrazit soubor

73
       </el-form-item>
73
       </el-form-item>
74
       
74
       
75
   
75
   
76
-
77
       <el-form-item label="确诊肾衰日期: " prop="name">
76
       <el-form-item label="确诊肾衰日期: " prop="name">
78
          <el-date-picker
77
          <el-date-picker
79
           style="width:100%;"
78
           style="width:100%;"
101
     <div class="mainTitle">体格信息:</div>
100
     <div class="mainTitle">体格信息:</div>
102
     <el-form class="physiqueForm" :model="case_history" ref="form" label-width="80px">
101
     <el-form class="physiqueForm" :model="case_history" ref="form" label-width="80px">
103
       <el-form-item label="体温:" prop="temperature">
102
       <el-form-item label="体温:" prop="temperature">
104
-        <el-input v-model="case_history.temperature" placeholder=""></el-input>
103
+        <el-input v-model="case_history.temperature" placeholder="体温"></el-input>
105
         <span>℃</span>
104
         <span>℃</span>
106
       </el-form-item>
105
       </el-form-item>
107
       <el-form-item label="脉搏: " prop="pulse">
106
       <el-form-item label="脉搏: " prop="pulse">
108
-        <el-input v-model="case_history.pulse" placeholder=""></el-input>
107
+        <el-input v-model="case_history.pulse" placeholder="脉搏"></el-input>
109
         (次/分)
108
         (次/分)
110
       </el-form-item>
109
       </el-form-item>
111
       <el-form-item label="呼吸: " prop="breathing">
110
       <el-form-item label="呼吸: " prop="breathing">
112
-        <el-input v-model="case_history.breathing" placeholder=""></el-input>
111
+        <el-input v-model="case_history.breathing" placeholder="呼吸"></el-input>
113
         (次/分)
112
         (次/分)
114
       </el-form-item>
113
       </el-form-item>
115
       <el-form-item label="血压:" prop="name">
114
       <el-form-item label="血压:" prop="name">
116
-        <el-input v-model="case_history.sbp" placeholder=""></el-input>
115
+        <el-input v-model="case_history.sbp" placeholder="血压" style="width:50px"></el-input>
117
         /
116
         /
118
-        <el-input v-model="case_history.dbp" placeholder=""></el-input>
117
+        <el-input v-model="case_history.dbp" placeholder="血压" style="width:50px"></el-input>
119
         mmHg
118
         mmHg
120
       </el-form-item>
119
       </el-form-item>
121
     </el-form>
120
     </el-form>
629
       
628
       
630
       this.first_dialysis_date = this.getTime(this.patientInfo.first_dialysis_date)
629
       this.first_dialysis_date = this.getTime(this.patientInfo.first_dialysis_date)
631
       
630
       
632
-      this.primary_disease = this.case_history.primary_disease
633
-      this.confirm_failure_date = this.case_history.confirm_failure_date
634
-      this.drug_allergy_history = this.case_history.drug_allergy_history
635
-      this.physical_examination = this.case_history.physical_examination
636
-      this.special_inspection = this.case_history.special_inspection
637
-      this.lab_apparatus = this.case_history.lab_apparatus
631
+      // this.primary_disease = this.case_history.primary_disease
632
+      // this.confirm_failure_date = this.case_history.confirm_failure_date
633
+      // this.drug_allergy_history = this.case_history.drug_allergy_history
634
+      // this.physical_examination = this.case_history.physical_examination
635
+      // this.special_inspection = this.case_history.special_inspection
636
+      // this.lab_apparatus = this.case_history.lab_apparatus
638
     },
637
     },
639
     watch:{
638
     watch:{
640
       detalid:function(val){
639
       detalid:function(val){

+ 7 - 2
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue Zobrazit soubor

59
           @assessmentAfterDislysis="assessmentAfterDislysisFunc"
59
           @assessmentAfterDislysis="assessmentAfterDislysisFunc"
60
           :system_prescribe="system_prescribe"
60
           :system_prescribe="system_prescribe"
61
           :his_is_open="his_is_open"
61
           :his_is_open="his_is_open"
62
+          :is_advice_open="is_advice_open"
62
           :lastAssessment="lastAssessment"
63
           :lastAssessment="lastAssessment"
63
           :stockType="stockType"
64
           :stockType="stockType"
64
           :mode_id="mode_id"
65
           :mode_id="mode_id"
256
       config: {},
257
       config: {},
257
 
258
 
258
       his_is_open:0,
259
       his_is_open:0,
259
-
260
+      is_advice_open:0,
260
       lastPredialysisEvaluation: { id: 0 },
261
       lastPredialysisEvaluation: { id: 0 },
261
       lastMonitorRecord: { id: 0 },
262
       lastMonitorRecord: { id: 0 },
262
       lastAssessmentAfterDislysis: { id: 0 },
263
       lastAssessmentAfterDislysis: { id: 0 },
550
               if(this.his_is_open == 1){
551
               if(this.his_is_open == 1){
551
                 this.is_open = 0
552
                 this.is_open = 0
552
               }
553
               }
554
+              if(this.is_advice_open == 1){
555
+               this.is_open =1
556
+              }
553
               this.longAdvices = totalAdvice
557
               this.longAdvices = totalAdvice
554
               this.waitUploadAdvices = waitUploadAdvices
558
               this.waitUploadAdvices = waitUploadAdvices
555
               break
559
               break
740
 
744
 
741
           this.his_is_open = resp.data.is_open_config.is_open
745
           this.his_is_open = resp.data.is_open_config.is_open
742
           console.log(this.his_is_open)
746
           console.log(this.his_is_open)
743
-
747
+           
748
+          this.is_advice_open = resp.data.is_advice_open.is_advice_open
744
 
749
 
745
 
750
 
746
           var stockType =  resp.data.stockType
751
           var stockType =  resp.data.stockType

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Zobrazit soubor

22
         :patientid="patientid"
22
         :patientid="patientid"
23
       ></printOne>
23
       ></printOne>
24
       <printTwo
24
       <printTwo
25
-        v-if="org_id == 10217 || org_id == 0"
25
+        v-if=" org_id == 0 || org_id == 9671 || org_id == 9675"
26
         ref="printTwo"
26
         ref="printTwo"
27
         v-bind:childResponse="childResponse"
27
         v-bind:childResponse="childResponse"
28
         :patient="patient"
28
         :patient="patient"

+ 51 - 23
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue Zobrazit soubor

23
           <span v-if="patient.gender == 1">男</span>
23
           <span v-if="patient.gender == 1">男</span>
24
           <span v-if="patient.gender == 2">女</span>
24
           <span v-if="patient.gender == 2">女</span>
25
         </div>
25
         </div>
26
-        <div>工作单位:</div>
26
+        <div>工作单位:{{patient.work_unit}}</div>
27
        
27
        
28
       </div>
28
       </div>
29
       <div class="infoTitle">
29
       <div class="infoTitle">
30
-        <div>出生日期:</div>
31
-        <div>身份证号:</div>
30
+        <div>出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
+        <div>身份证号:{{patient.id_card_no}}</div>
32
       </div>
32
       </div>
33
       <div class="infoTitle">
33
       <div class="infoTitle">
34
-        <div>联系人:</div>
34
+        <div>联系人:{{patient.contact_name}}</div>
35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36
       </div>
36
       </div>
37
       <div class="otherInfo" style="border-bottom: 1px solid">
37
       <div class="otherInfo" style="border-bottom: 1px solid">
38
-        <div>进入透析时间:</div>
38
+        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
39
         <div style="flex: 1"></div>
39
         <div style="flex: 1"></div>
40
       </div>
40
       </div>
41
       <div class="infoTitle">
41
       <div class="infoTitle">
42
-        <div style="width: 300px">原发病:</div>
43
-        <div>确诊肾衰日期:</div>
42
+        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
43
+        <div>确诊肾衰日期:{{getTime(patient.first_dialysis_date)}}</div>
44
       </div>
44
       </div>
45
       <div class="otherInfo">
45
       <div class="otherInfo">
46
         <div>
46
         <div>
47
-          药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
47
+          药物过敏史:{{ history.allergic_history ? history.allergic_history : "" }}
48
         </div>
48
         </div>
49
       </div>
49
       </div>
50
       <div class="otherInfo">
50
       <div class="otherInfo">
51
-        <div>初始透析日期:</div>
51
+        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
52
         <div style="flex: 1"></div>
52
         <div style="flex: 1"></div>
53
       </div>
53
       </div>
54
       <div class="otherInfo" style="border-bottom: 1px solid">
54
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:</div>
55
+        <div>血管通路:{{getAccess(accessList.access_project)}}</div>
56
         <div style="flex: 1"></div>
56
         <div style="flex: 1"></div>
57
       </div>
57
       </div>
58
 
58
 
63
         </div>
63
         </div>
64
       </div>
64
       </div>
65
 
65
 
66
-      <div class="otherInfo" style="min-height: 200px;">
66
+      <div class="otherInfo" style="min-height: 180px;">
67
         <div class="otherName">现病史:</div>
67
         <div class="otherName">现病史:</div>
68
         <div style="flex: 1">
68
         <div style="flex: 1">
69
           {{
69
           {{
115
       </div>
115
       </div>
116
       <div class="recordTitle">
116
       <div class="recordTitle">
117
         <div>专科检查</div>
117
         <div>专科检查</div>
118
-        <div class="recordContent"></div>
118
+        <div class="recordContent">{{history.special_inspection}}</div>
119
       </div>
119
       </div>
120
       <div class="recordTitle" style="border-bottom: 1px solid">
120
       <div class="recordTitle" style="border-bottom: 1px solid">
121
         <div>实验室及器械检查</div>
121
         <div>实验室及器械检查</div>
122
-        <div class="recordContent" style="height:250px;"></div>
122
+        <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
123
       </div>
123
       </div>
124
       <div style="display: flex; justify-content: end">
124
       <div style="display: flex; justify-content: end">
125
         <div class="endInfo">
125
         <div class="endInfo">
127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
128
           </div>
128
           </div>
129
           <div style="display: flex">
129
           <div style="display: flex">
130
-            <div>医师:</div>
130
+            <div>医师:{{getDoctor(history.doctor) ? getDoctor(history.doctor) : ""}}</div>
131
             <div>
131
             <div>
132
-              手签:{{
133
-                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
134
-              }}
132
+              手签:
135
             </div>
133
             </div>
136
           </div>
134
           </div>
137
-          <div style="text-align: center; letter-spacing: 3px">2000 年 2 月 4 日</div>
135
+          <div style="text-align: center; letter-spacing: 3px">{{getTime(history.record_date)}}</div>
138
         </div>
136
         </div>
139
       </div>
137
       </div>
140
     </div>
138
     </div>
145
 
143
 
146
 import { getDataConfig } from "@/utils/data";
144
 import { getDataConfig } from "@/utils/data";
147
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
145
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
146
+import {getAccessList} from "@/api/patient"
148
 export default {
147
 export default {
149
   props: {
148
   props: {
150
     patient: Object,
149
     patient: Object,
159
       orgname: "",
158
       orgname: "",
160
       history: {},
159
       history: {},
161
       printDate: "",
160
       printDate: "",
161
+      accessList:{},
162
+      blood_access_part_opera:[],
162
     };
163
     };
163
   },
164
   },
164
   methods: {
165
   methods: {
217
       const params = {
218
       const params = {
218
         patient_id: this.patientid,
219
         patient_id: this.patientid,
219
       };
220
       };
220
-      console.log("病历22222", params);
221
       getPatientCaseHistory(params).then((response) => {
221
       getPatientCaseHistory(params).then((response) => {
222
         if (response.data.state == 1) {
222
         if (response.data.state == 1) {
223
           var patient = response.data.data.patient;
223
           var patient = response.data.data.patient;
224
-          //    console.log("patinet",patient)
225
           this.patient = patient;
224
           this.patient = patient;
226
           var history = response.data.data.history;
225
           var history = response.data.data.history;
227
-          console.log("中国history222222", history);
228
           this.history = history;
226
           this.history = history;
229
           var hispatient = response.data.data.hispatient;
227
           var hispatient = response.data.data.hispatient;
230
-          //    console.log("hispatient",hispatient)
231
           this.hispatient = hispatient;
228
           this.hispatient = hispatient;
229
+          var accessList = response.data.data.accessList
230
+          console.log("accesslist2332323232",accessList)
231
+          this.accessList = accessList
232
         }
232
         }
233
       });
233
       });
234
     },
234
     },
241
       }
241
       }
242
       return name;
242
       return name;
243
     },
243
     },
244
+    getTime(val) {
245
+      if(val < 0){
246
+        return ""
247
+      }
248
+      if(val == ""){
249
+      return ""
250
+      }else {
251
+      return uParseTime(val, '{y}-{m}-{d}')
252
+      }
253
+    },
254
+    getAccessList(){
255
+      getAccessList().then(response=>{
256
+        if(response.data.state == 1){
257
+          var blood_access_part_opera = response.data.data.blood_access_part_opera
258
+          this.blood_access_part_opera = blood_access_part_opera
259
+        }
260
+     })
261
+    },
262
+    getAccess(id){
263
+      var name = ""
264
+      for(let i=0;i<this.blood_access_part_opera.length;i++){
265
+         if(id == this.blood_access_part_opera[i].value){
266
+             name = this.blood_access_part_opera[i].name
267
+         }
268
+      }
269
+      return name
270
+    }
244
   },
271
   },
245
   created() {
272
   created() {
246
     this.educationOptions = getDataConfig("patient", "education_types");
273
     this.educationOptions = getDataConfig("patient", "education_types");
247
     this.getAllDoctorList();
274
     this.getAllDoctorList();
248
     this.getPatientCaseHistory();
275
     this.getPatientCaseHistory();
249
-
276
+    this.getAccessList()
250
     var xtuser = this.$store.getters.xt_user;
277
     var xtuser = this.$store.getters.xt_user;
251
     this.orgname = xtuser.org.org_name;
278
     this.orgname = xtuser.org.org_name;
252
     var data = new Date();
279
     var data = new Date();
254
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
281
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
255
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
282
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
256
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
283
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
284
+
257
   },
285
   },
258
   watch: {
286
   watch: {
259
     patientid: function (val) {
287
     patientid: function (val) {

+ 2 - 6
src/xt_pages/user/patients.vue Zobrazit soubor

507
               >
507
               >
508
             </el-radio-group>
508
             </el-radio-group>
509
           </el-form-item>
509
           </el-form-item>
510
-          <!-- <el-form-item label="治疗状态(转归):" prop="lapseto_type" required>
511
-              <el-radio v-model="lapsetoForm.lapseto_type" :label="lapsetoForm.lapseto_type">转出</el-radio>
512
-              <el-radio v-model="lapsetoForm.lapseto_type" :label="lapsetoForm.lapseto_type">死亡</el-radio>
513
-
514
-          </el-form-item> -->
510
+         
515
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
511
           <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required>
516
             <el-date-picker
512
             <el-date-picker
517
               v-model="lapsetoForm.lapseto_time"
513
               v-model="lapsetoForm.lapseto_time"
864
           var isHasDryWeight = header.includes('干体重(kg)')
860
           var isHasDryWeight = header.includes('干体重(kg)')
865
           var isHasHeight = header.includes('身高(cm)')
861
           var isHasHeight = header.includes('身高(cm)')
866
           var isHasHomeAddress = header.includes('家庭住址')
862
           var isHasHomeAddress = header.includes('家庭住址')
867
-
863
+         
868
           if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
864
           if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
869
             this.dialogVisible = true
865
             this.dialogVisible = true
870
             return
866
             return