Kaynağa Gözat

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

csx 2 yıl önce
ebeveyn
işleme
bb006a035a
24 değiştirilmiş dosya ile 2581 ekleme ve 191 silme
  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 Dosyayı Görüntüle

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

+ 33 - 7
src/xt_pages/dialysis/details/NavIgation.vue Dosyayı Görüntüle

@@ -138,6 +138,7 @@
138 138
       :dialysis_order="dialysis_order"
139 139
       :his_is_open="his_is_open"
140 140
       :predialysis="predialysis_evaluation"
141
+      :is_advice_open="is_advice_open"
141 142
     ></doctor-advice-dialog>
142 143
 
143 144
     <computer-dialog
@@ -306,6 +307,13 @@ export default {
306 307
         return [];
307 308
       }
308 309
     },
310
+    his_doctor_advices:{
311
+     // 临时医嘱
312
+      type: Array,
313
+      default: () => {
314
+        return [];
315
+      }
316
+    },
309 317
     double_check: {
310 318
       // 双人核对
311 319
       type: Object,
@@ -537,10 +545,17 @@ export default {
537 545
       default: () => {
538 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 556
   methods: {
543 557
     getUnReadNum: function() {
558
+      console.log("医嘱中国23322222222222222222222222222",this.doctor_advices)
544 559
       let doctorAdvice = [];
545 560
       for (let y = 0; y < this.doctor_advices.length; y++) {
546 561
         if (this.doctor_advices[y].execution_state == 2) {
@@ -550,10 +565,21 @@ export default {
550 565
       const sorted = this.groupBy(doctorAdvice, function(item) {
551 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 584
     groupBy(array, f) {
559 585
       const groups = {};
@@ -614,7 +640,7 @@ export default {
614 640
       this.$refs.assessment_after_dislysis.show(this.assessment_after_dislysis,this.last_assessment_after_dislysis);
615 641
     },
616 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 645
     showComputerDialog: function() {
620 646
       this.$refs.computer_dialog.show(this.dialysis_order);
@@ -623,7 +649,7 @@ export default {
623 649
       this.$refs.finish_dialog.show(this.dialysis_order);
624 650
     },
625 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 654
     showAccepts: function() {
629 655
       this.$refs.accepts.show(this.receiver_treatment_access);

+ 62 - 54
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Dosyayı Görüntüle

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

+ 6 - 13
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Dosyayı Görüntüle

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

+ 5 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -1937,7 +1937,7 @@
1937 1937
       getTime(val) {
1938 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 1942
         if (pre != undefined) {
1943 1943
           if (pre.oxygen_uptake == 1) {
@@ -1952,6 +1952,9 @@
1952 1952
         if (his_is_open == 1) {
1953 1953
           this.is_open = 0
1954 1954
         }
1955
+        if(is_advice_open == 1){
1956
+          this.is_open = 1
1957
+        }
1955 1958
 
1956 1959
         if(this.$store.getters.xt_user.org.id == 10101){
1957 1960
           if (this.predialysis.id > 0 && this.predialysis.created_time > 0) {
@@ -3558,9 +3561,7 @@
3558 3561
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3559 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 3565
         if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3565 3566
          this.dialysisPrescription.anticoagulant_zongliang = ""
3566 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 Dosyayı Görüntüle

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

+ 1 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue Dosyayı Görüntüle

@@ -33,7 +33,7 @@
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35 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 37
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>
38 38
           <th v-if="isShow('尿素监测')" width="92px">尿素监测</th>
39 39
           <th v-if="isShow('血浓量')" width="92px">血浓量</th>

+ 14 - 8
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

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

+ 21 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Dosyayı Görüntüle

@@ -107,7 +107,8 @@
107 107
         v-if="
108 108
           org_template_info.template_id == 6 ||
109 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 114
         <el-button
@@ -664,6 +665,16 @@
664 665
           >打印</el-button
665 666
         >
666 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 678
     </div>
668 679
     <div class="app-container" style="min-height: 0">
669 680
       <!--<div class="order-print-btn"-->
@@ -1042,6 +1053,11 @@
1042 1053
             v-if="org_template_info.template_id == 50"
1043 1054
           >
1044 1055
           </DialysisPrintOrderFifty>
1056
+          <DialysisPrintOrderFiftyOne
1057
+            v-bind:childResponse="childResponse"
1058
+            v-if="org_template_info.template_id == 51"
1059
+          >
1060
+          </DialysisPrintOrderFiftyOne>
1045 1061
         </div>
1046 1062
       </el-container>
1047 1063
     </div>
@@ -1110,9 +1126,11 @@ import DialysisPrintOrderFortySeven from "./template/DialysisPrintOrderFortySeve
1110 1126
 import DialysisPrintOrderFortyEight from "./template/DialysisPrintOrderFortyEight";
1111 1127
 import DialysisPrintOrderFortyNine from "./template/DialysisPrintOrderFortyNine";
1112 1128
 import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1129
+import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1113 1130
 export default {
1114 1131
   name: "dialysisPrintOrder",
1115 1132
   components: {
1133
+    DialysisPrintOrderFiftyOne,
1116 1134
     DialysisPrintOrderFifty,
1117 1135
     DialysisPrintOrderFortyNine,
1118 1136
     DialysisPrintOrderFortyEight,
@@ -1390,7 +1408,8 @@ export default {
1390 1408
         this.org_template_info.template_id == 10 ||
1391 1409
         this.org_template_info.template_id == 11 ||
1392 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 1414
         printJS({
1396 1415
           printable: "dialysis-print-box-1",

Dosya farkı çok büyük olduğundan ihmal edildi
+ 2273 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue


+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue Dosyayı Görüntüle

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

+ 4 - 4
src/xt_pages/hospitalStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -287,7 +287,7 @@
287 287
                     <el-table-column label="库存" width="60">
288 288
                       <template slot-scope="scope">
289 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 291
                                               <span
292 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 293
                                               <span
@@ -386,7 +386,7 @@
386 386
                     <el-table-column label="库存" width="40">
387 387
                       <template slot-scope="scope">
388 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 390
                                                     {{ scope.row.stock_count }}
391 391
                                                 </span>
392 392
                         <span v-else> {{ scope.row.total }}</span>
@@ -2737,7 +2737,7 @@ export default {
2737 2737
       this.$refs.additionalCharges.show()
2738 2738
     },
2739 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 2741
         if (row.count <= 0) {
2742 2742
           if (selection) {
2743 2743
             selection.forEach(row => {
@@ -3024,7 +3024,7 @@ export default {
3024 3024
     },
3025 3025
     selectChange(selection, row) {
3026 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 3028
         if (row.stock_count <= 0) {
3029 3029
           if (row.type == 3) {
3030 3030
             if (selection) {

+ 4 - 3
src/xt_pages/hospitalStation/components/deskRecord.vue Dosyayı Görüntüle

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

+ 8 - 7
src/xt_pages/hospitalStation/components/dialysisIndex.vue Dosyayı Görüntüle

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

+ 1 - 0
src/xt_pages/hospitalStation/doctorDesk.vue Dosyayı Görüntüle

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

+ 1 - 1
src/xt_pages/hospitalStation/recordPrint.vue Dosyayı Görüntüle

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

+ 59 - 31
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue Dosyayı Görüntüle

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

+ 4 - 4
src/xt_pages/outpatientCharges/allListPrint.vue Dosyayı Görüntüle

@@ -193,10 +193,10 @@
193 193
         let new_project_ids = this.unique(project_ids)
194 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 201
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
202 202
           for (let i = 0; i < new_drug_ids.length; i++) {

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -285,7 +285,7 @@
285 285
                                         </el-table-column>
286 286
                                         <el-table-column label="库存" width="60">
287 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 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 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 291
                                               </span>
@@ -382,7 +382,7 @@
382 382
                                         </el-table-column>
383 383
                                         <el-table-column label="库存" width="40">
384 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 386
                                                    {{scope.row.stock_count}}
387 387
                                               </span>
388 388
                                               <span v-else> {{ scope.row.total }}</span>
@@ -2737,7 +2737,7 @@
2737 2737
       selectDrugs(selection, row) {
2738 2738
         console.log('selection', selection)
2739 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 2741
             if (row.count <= 0) {
2742 2742
               if (selection) {
2743 2743
                 selection.forEach(row => {
@@ -3015,7 +3015,7 @@
3015 3015
       },
3016 3016
       selectChange(selection, row) {
3017 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 3019
            if (row.stock_count <= 0) {
3020 3020
             if (row.type == 3) {
3021 3021
               if (selection) {

+ 11 - 12
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Dosyayı Görüntüle

@@ -73,7 +73,6 @@
73 73
       </el-form-item>
74 74
       
75 75
   
76
-
77 76
       <el-form-item label="确诊肾衰日期: " prop="name">
78 77
          <el-date-picker
79 78
           style="width:100%;"
@@ -101,21 +100,21 @@
101 100
     <div class="mainTitle">体格信息:</div>
102 101
     <el-form class="physiqueForm" :model="case_history" ref="form" label-width="80px">
103 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 104
         <span>℃</span>
106 105
       </el-form-item>
107 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 109
       </el-form-item>
111 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 113
       </el-form-item>
115 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 118
         mmHg
120 119
       </el-form-item>
121 120
     </el-form>
@@ -629,12 +628,12 @@
629 628
       
630 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 638
     watch:{
640 639
       detalid:function(val){

+ 7 - 2
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue Dosyayı Görüntüle

@@ -59,6 +59,7 @@
59 59
           @assessmentAfterDislysis="assessmentAfterDislysisFunc"
60 60
           :system_prescribe="system_prescribe"
61 61
           :his_is_open="his_is_open"
62
+          :is_advice_open="is_advice_open"
62 63
           :lastAssessment="lastAssessment"
63 64
           :stockType="stockType"
64 65
           :mode_id="mode_id"
@@ -256,7 +257,7 @@ export default {
256 257
       config: {},
257 258
 
258 259
       his_is_open:0,
259
-
260
+      is_advice_open:0,
260 261
       lastPredialysisEvaluation: { id: 0 },
261 262
       lastMonitorRecord: { id: 0 },
262 263
       lastAssessmentAfterDislysis: { id: 0 },
@@ -550,6 +551,9 @@ export default {
550 551
               if(this.his_is_open == 1){
551 552
                 this.is_open = 0
552 553
               }
554
+              if(this.is_advice_open == 1){
555
+               this.is_open =1
556
+              }
553 557
               this.longAdvices = totalAdvice
554 558
               this.waitUploadAdvices = waitUploadAdvices
555 559
               break
@@ -740,7 +744,8 @@ export default {
740 744
 
741 745
           this.his_is_open = resp.data.is_open_config.is_open
742 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 751
           var stockType =  resp.data.stockType

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Dosyayı Görüntüle

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

+ 51 - 23
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue Dosyayı Görüntüle

@@ -23,36 +23,36 @@
23 23
           <span v-if="patient.gender == 1">男</span>
24 24
           <span v-if="patient.gender == 2">女</span>
25 25
         </div>
26
-        <div>工作单位:</div>
26
+        <div>工作单位:{{patient.work_unit}}</div>
27 27
        
28 28
       </div>
29 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 32
       </div>
33 33
       <div class="infoTitle">
34
-        <div>联系人:</div>
34
+        <div>联系人:{{patient.contact_name}}</div>
35 35
         <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36 36
       </div>
37 37
       <div class="otherInfo" style="border-bottom: 1px solid">
38
-        <div>进入透析时间:</div>
38
+        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
39 39
         <div style="flex: 1"></div>
40 40
       </div>
41 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 44
       </div>
45 45
       <div class="otherInfo">
46 46
         <div>
47
-          药物过敏史:{{ patient.past_history ? patient.past_history : "" }}
47
+          药物过敏史:{{ history.allergic_history ? history.allergic_history : "" }}
48 48
         </div>
49 49
       </div>
50 50
       <div class="otherInfo">
51
-        <div>初始透析日期:</div>
51
+        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
52 52
         <div style="flex: 1"></div>
53 53
       </div>
54 54
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:</div>
55
+        <div>血管通路:{{getAccess(accessList.access_project)}}</div>
56 56
         <div style="flex: 1"></div>
57 57
       </div>
58 58
 
@@ -63,7 +63,7 @@
63 63
         </div>
64 64
       </div>
65 65
 
66
-      <div class="otherInfo" style="min-height: 200px;">
66
+      <div class="otherInfo" style="min-height: 180px;">
67 67
         <div class="otherName">现病史:</div>
68 68
         <div style="flex: 1">
69 69
           {{
@@ -115,11 +115,11 @@
115 115
       </div>
116 116
       <div class="recordTitle">
117 117
         <div>专科检查</div>
118
-        <div class="recordContent"></div>
118
+        <div class="recordContent">{{history.special_inspection}}</div>
119 119
       </div>
120 120
       <div class="recordTitle" style="border-bottom: 1px solid">
121 121
         <div>实验室及器械检查</div>
122
-        <div class="recordContent" style="height:250px;"></div>
122
+        <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
123 123
       </div>
124 124
       <div style="display: flex; justify-content: end">
125 125
         <div class="endInfo">
@@ -127,14 +127,12 @@
127 127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
128 128
           </div>
129 129
           <div style="display: flex">
130
-            <div>医师:</div>
130
+            <div>医师:{{getDoctor(history.doctor) ? getDoctor(history.doctor) : ""}}</div>
131 131
             <div>
132
-              手签:{{
133
-                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
134
-              }}
132
+              手签:
135 133
             </div>
136 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 136
         </div>
139 137
       </div>
140 138
     </div>
@@ -145,6 +143,7 @@ import { jsGetAge, uParseTime } from "@/utils/tools";
145 143
 
146 144
 import { getDataConfig } from "@/utils/data";
147 145
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
146
+import {getAccessList} from "@/api/patient"
148 147
 export default {
149 148
   props: {
150 149
     patient: Object,
@@ -159,6 +158,8 @@ export default {
159 158
       orgname: "",
160 159
       history: {},
161 160
       printDate: "",
161
+      accessList:{},
162
+      blood_access_part_opera:[],
162 163
     };
163 164
   },
164 165
   methods: {
@@ -217,18 +218,17 @@ export default {
217 218
       const params = {
218 219
         patient_id: this.patientid,
219 220
       };
220
-      console.log("病历22222", params);
221 221
       getPatientCaseHistory(params).then((response) => {
222 222
         if (response.data.state == 1) {
223 223
           var patient = response.data.data.patient;
224
-          //    console.log("patinet",patient)
225 224
           this.patient = patient;
226 225
           var history = response.data.data.history;
227
-          console.log("中国history222222", history);
228 226
           this.history = history;
229 227
           var hispatient = response.data.data.hispatient;
230
-          //    console.log("hispatient",hispatient)
231 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,12 +241,39 @@ export default {
241 241
       }
242 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 272
   created() {
246 273
     this.educationOptions = getDataConfig("patient", "education_types");
247 274
     this.getAllDoctorList();
248 275
     this.getPatientCaseHistory();
249
-
276
+    this.getAccessList()
250 277
     var xtuser = this.$store.getters.xt_user;
251 278
     this.orgname = xtuser.org.org_name;
252 279
     var data = new Date();
@@ -254,6 +281,7 @@ export default {
254 281
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
255 282
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
256 283
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
284
+
257 285
   },
258 286
   watch: {
259 287
     patientid: function (val) {

+ 2 - 6
src/xt_pages/user/patients.vue Dosyayı Görüntüle

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