Kaynağa Gözat

518合并代码

XMLWAN 2 yıl önce
ebeveyn
işleme
1ec2d85ba7

+ 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,

+ 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)

+ 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){

+ 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

@@ -54,7 +54,7 @@
54 54
         <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
55 55
       </el-form-item>
56 56
 
57
-  <el-form-item label="初始透析日期: " prop="name">
57
+  <!-- <el-form-item label="初始透析日期: " prop="name">
58 58
          <el-date-picker
59 59
           :disabled="true"
60 60
           style="width:100%;"
@@ -97,7 +97,7 @@
97 97
 
98 98
       <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
99 99
         <el-input v-model="lab_apparatus" placeholder="实验室及器械检查"></el-input>
100
-      </el-form-item>
100
+      </el-form-item> -->
101 101
 
102 102
     </el-form>
103 103
     <div class="mainTitle">体格信息:</div>
@@ -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

+ 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"

+ 58 - 30
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
 
@@ -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/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) {

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

@@ -54,7 +54,7 @@
54 54
         <el-input v-model="allergic_history" placeholder="药物过敏史"></el-input>
55 55
       </el-form-item>
56 56
      
57
-      <el-form-item label="初始透析日期: " prop="name">
57
+      <!-- <el-form-item label="初始透析日期: " prop="name">
58 58
          <el-date-picker
59 59
           :disabled="true"
60 60
           style="width:100%;"
@@ -94,7 +94,7 @@
94 94
 
95 95
       <el-form-item label="实验室及器械检查: " prop="name" label-width="160px">
96 96
         <el-input v-model="lab_apparatus" placeholder="实验室及器械检查"></el-input>
97
-      </el-form-item>
97
+      </el-form-item> -->
98 98
 
99 99
     </el-form>
100 100
     <div class="mainTitle">体格信息:</div>
@@ -628,12 +628,12 @@
628 628
       
629 629
       this.first_dialysis_date = this.getTime(this.patientInfo.first_dialysis_date)
630 630
       
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
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
637 637
     },
638 638
     watch:{
639 639
       detalid:function(val){

+ 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 || org_id == 9671 || org_id == 9675 || org_id == 10217"
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"

+ 50 - 22
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
 
@@ -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