Browse Source

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 3 months ago
parent
commit
3397136ce9

+ 9 - 4
src/pages/main/template/DialysisPrintOrderServentynine.vue View File

@@ -417,6 +417,7 @@ import { getDataConfig } from "@/utils/data";
417 417
 import { jsGetAge, uParseTime } from "@/utils/tools";
418 418
 import LabelBox from "../printItem/LabelBox";
419 419
 import { fetchAllAdminUsers } from "@/api/doctor";
420
+import {Toast} from 'vant'
420 421
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
421 422
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
422 423
 import print from "print-js";
@@ -1152,10 +1153,14 @@ export default {
1152 1153
     },
1153 1154
     getcheckData(val){
1154 1155
       if(val.length >0){
1155
-        const a = val.join(',')
1156
-        console.log('a',a);
1157
-        this.$toast(a +" 未填");
1158
-        return a
1156
+        let message = `记录单未填数据:\n${val.join("\n")}`;
1157
+        Toast({
1158
+          duration:0,
1159
+          message:message,
1160
+          closeOnClick:true,
1161
+          closeOnClickOverlay:true,
1162
+        })
1163
+        return message
1159 1164
       }else{
1160 1165
         this.$toast('核对完成')
1161 1166
       }

+ 92 - 91
src/pages/main/template/DialysisPrintOrderSeventyeight.vue View File

@@ -81,7 +81,7 @@
81 81
             </tr>
82 82
             <tr>
83 83
               <td>
84
-                <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
84
+                <div class="row" style="display: flex;" >
85 85
                   <div class="inline_block" style="flex: 0.8;">
86 86
                     T:
87 87
                     <div class="under_line" style="width: 40px; text-align: center"
@@ -137,7 +137,7 @@
137 137
                   </div>
138 138
                 </div>
139 139
 
140
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
140
+                <div class="row" style="display: flex">
141 141
                   <!-- <div class="inline_block" style="flex: 1;">
142 142
                     透析间期:
143 143
                     <div class="under_line" style=" width: 50%;text-align: center; white-space: normal;">
@@ -162,10 +162,10 @@
162 162
                       <span v-if="predialysis&&predialysis.symptom_before_dialysis==''&&predialysis.symptom_before_dialysis_other==''">/</span>
163 163
                     </div>
164 164
                   </div>
165
-                  
165
+
166 166
                 </div>
167 167
 
168
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
168
+                <div class="row" style="display: flex">
169 169
                   <div class="inline_block" style="flex: 1;">
170 170
                     内瘘:
171 171
                     <div class="under_line"
@@ -190,7 +190,7 @@
190 190
                   </div>
191 191
                 </div>
192 192
 
193
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
193
+                <div class="row" style="display: flex">
194 194
                   <div class="inline_block" style="flex: 1;">
195 195
                     合并症:
196 196
                     <div class="under_line"
@@ -210,7 +210,7 @@
210 210
                   </div> -->
211 211
                 </div>
212 212
 
213
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
213
+                <div class="row" style="display: flex">
214 214
                   <div class="inline_block" style="flex: 1;">
215 215
                     干体重:
216 216
                     <div
@@ -236,7 +236,7 @@
236 236
                     </div>kg
237 237
                   </div>
238 238
                 </div>
239
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
239
+                <div class="row" style="display: flex">
240 240
                   <div class="inline_block" style="flex: 1;">
241 241
                     体重增加:
242 242
                     <div
@@ -260,7 +260,7 @@
260 260
                 </div>
261 261
               </td>
262 262
               <td>
263
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
263
+                <div class="row" style="display: flex">
264 264
                   <div class="inline_block" style="flex: 0.8">
265 265
                     T:
266 266
                     <div
@@ -314,7 +314,7 @@
314 314
                     mmHg
315 315
                   </div>
316 316
                 </div>
317
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
317
+                <div class="row" style="display: flex">
318 318
                   <div class="inline_block" style="flex: 1">
319 319
                     凝血:
320 320
                     <div class="under_line"
@@ -331,7 +331,7 @@
331 331
                   </div>
332 332
 
333 333
                 </div>
334
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
334
+                <div class="row" style="display: flex">
335 335
                   <div class="inline_block" style="flex: 1">
336 336
                     内瘘:
337 337
                     <div class="under_line"
@@ -352,7 +352,7 @@
352 352
                   </div>
353 353
                 </div>
354 354
 
355
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
355
+                <div class="row" style="display: flex">
356 356
                   <div class="inline_block" style="flex: 1">
357 357
                     并发症:
358 358
                     <div class="under_line"
@@ -371,7 +371,7 @@
371 371
                   </div>
372 372
                 </div>
373 373
 
374
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"
374
+                <div class="row" style="display: flex"
375 375
                 >
376 376
                   <div class="inline_block" style="flex: 1">
377 377
                     实际超滤量:
@@ -409,7 +409,7 @@
409 409
                   </div>
410 410
                 </div>
411 411
 
412
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
412
+                <div class="row" style="display: flex">
413 413
                   <div class="inline_block" style="flex: 1">
414 414
                     体重减少:
415 415
                     <div class="under_line"
@@ -445,7 +445,7 @@
445 445
             </tr>
446 446
             <tr>
447 447
               <td colspan="2">
448
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
448
+                <div class="row" style="display: flex">
449 449
                   <div class="inline_block" style="flex: 1">
450 450
                     处方脱水量:
451 451
                     <div class="under_line" style="width: 50px; text-align: center">
@@ -497,7 +497,7 @@
497 497
                   </div>
498 498
                 </div>
499 499
 
500
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
500
+                <div class="row" style="display: flex">
501 501
                   <div class="inline_block" style="flex: 2">
502 502
                     血管通路:
503 503
                     <div class="under_line" style="width: 60%; text-align: center">
@@ -528,11 +528,11 @@
528 528
                   </div>
529 529
                 </div>
530 530
 
531
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
532
-                
531
+                <div class="row" style="display: flex">
532
+
533 533
                 </div>
534 534
 
535
-                <div class="row" style="padding: 2px 0; line-height: 23px">
535
+                <div class="row" style="">
536 536
                     <div class="inline_block">
537 537
                       抗凝剂:
538 538
                       <div
@@ -545,13 +545,13 @@
545 545
                             : "/"
546 546
                         }}
547 547
                         </span>
548
-                        
548
+
549 549
                       </div>
550 550
                     </div>
551 551
                     <div
552 552
                       class="inline_block"
553 553
                       style="margin-left: 20px"
554
-                      v-if="prescription.anticoagulant != 5 && 
554
+                      v-if="prescription.anticoagulant != 5 &&
555 555
                       prescription.anticoagulant !=1 && prescription.anticoagulant !=''"
556 556
                     >
557 557
                       首剂:
@@ -578,7 +578,7 @@
578 578
                      <span v-if="prescription.anticoagulant == 11">iu</span>
579 579
                      <span v-if="prescription.anticoagulant == 13">iu</span>
580 580
 
581
-                  
581
+
582 582
                     </div>
583 583
                     <div class="inline_block" style="margin-left: 20px">
584 584
                       维持:
@@ -640,7 +640,7 @@
640 640
                       ml
641 641
                     </div>
642 642
                     <div class="inline_block" style="margin-left: 20px"
643
-                      v-if="prescription.anticoagulant != 5 && 
643
+                      v-if="prescription.anticoagulant != 5 &&
644 644
                       prescription.anticoagulant != 1 && prescription.anticoagulant !=''"
645 645
                     >
646 646
                       总量:
@@ -666,7 +666,7 @@
666 666
                        <span v-if="prescription.anticoagulant == 10">iu</span>
667 667
                       <span v-if="prescription.anticoagulant == 11">iu</span>
668 668
                       <span v-if="prescription.anticoagulant == 13">iu</span>
669
-                   
669
+
670 670
                     </div>
671 671
                     <div class="inline_block" style="flex: 1">
672 672
                       透析机型:
@@ -676,7 +676,7 @@
676 676
                     </div>
677 677
                 </div>
678 678
 
679
-                <div class="row" style="padding: 2px 0; line-height: 23px">
679
+                <div class="row" style="">
680 680
                   <div class="inline_block">
681 681
                     透析液配方:钾:
682 682
                     <div
@@ -848,7 +848,7 @@
848 848
                       <td>
849 849
                         {{ monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '0' }} /
850 850
                         {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '0'  }}
851
-                        
851
+
852 852
                       </td>
853 853
                       <td>
854 854
                         {{ monitor.replacement_rate ? monitor.replacement_rate : '0' }} /
@@ -1008,7 +1008,7 @@
1008 1008
           </tr>
1009 1009
           <tr>
1010 1010
             <td>
1011
-              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
1011
+              <div class="row" style="display:flex;">
1012 1012
                 <div class="inline_block" style="flex:1;">
1013 1013
                   实际治疗时间:
1014 1014
                   <div class="under_line" style="width: 20px;text-align: center">
@@ -1028,7 +1028,7 @@
1028 1028
                 </div>
1029 1029
 
1030 1030
               </div>
1031
-              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
1031
+              <div class="row" style="display:flex;">
1032 1032
                 <div class="inline_block" style="flex:1;">
1033 1033
                   治疗小结:
1034 1034
                   <div class="under_line" style="width: 860px;line-height: 25px;text-align: left;margin-left: 2px;display: inline-block;white-space: normal;">
@@ -1041,7 +1041,7 @@
1041 1041
           </tr>
1042 1042
           <tr>
1043 1043
             <td>
1044
-              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
1044
+              <div class="row" style="display:flex;">
1045 1045
                 <div class="inline_block" style="flex:1;">
1046 1046
                   穿刺护士:
1047 1047
                   <div class="under_line" style="width: 80px;text-align: center">
@@ -1247,6 +1247,7 @@ export default {
1247 1247
   methods: {
1248 1248
     checkData() {
1249 1249
       var checkDate =[]
1250
+      var monearr = []
1250 1251
       if (this.predialysis.temperature == '') {
1251 1252
         const obj = "透前体温"
1252 1253
         checkDate.push(obj)
@@ -1304,7 +1305,7 @@ export default {
1304 1305
       }  if (this.afterdialysis.complication == 0) {
1305 1306
         const obj17 = "并发症"
1306 1307
         checkDate.push(obj17)
1307
-      } if (this.afterdialysis.actual_displacement == 0 && 
1308
+      } if (this.afterdialysis.actual_displacement == 0 &&
1308 1309
         (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)) {
1309 1310
         const obj18 = "实际置换量"
1310 1311
         checkDate.push(obj18)
@@ -1329,11 +1330,11 @@ export default {
1329 1330
       } if (this.prescription.mode == '') {
1330 1331
         const obj25 = "透析方式"
1331 1332
         checkDate.push(obj25)
1332
-      } if (this.prescription.displace_liqui_part == '' && 
1333
+      } if (this.prescription.displace_liqui_part == '' &&
1333 1334
       (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1334 1335
         const obj26 = "置换方式"
1335 1336
         checkDate.push(obj26)
1336
-      } if (this.prescription.displace_liqui_value == 0 && 
1337
+      } if (this.prescription.displace_liqui_value == 0 &&
1337 1338
       (this.prescription.mode_id ==2 ||this.prescription.mode_id ==12)) {
1338 1339
         const obj27 = "置换总量"
1339 1340
         checkDate.push(obj27)
@@ -1358,19 +1359,19 @@ export default {
1358 1359
       } if (this.prescription.anticoagulant_name == 0) {
1359 1360
         const obj33 = "抗凝剂"
1360 1361
         checkDate.push(obj33)
1361
-      } if (this.prescription.anticoagulant_shouji == 0 && 
1362
+      } if (this.prescription.anticoagulant_shouji == 0 &&
1362 1363
         this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1363 1364
       ) {
1364 1365
         const obj34 = "首剂"
1365 1366
         checkDate.push(obj34)
1366
-      } 
1367
+      }
1367 1368
       // if (this.prescription.anticoagulant_weichi == 0 &&
1368 1369
       //   this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
1369 1370
       // ) {
1370 1371
       //   const obj35 = "维持"
1371 1372
       //   checkDate.push(obj35)
1372
-      // } 
1373
-      if (this.prescription.anticoagulant_zongliang == 0 && 
1373
+      // }
1374
+      if (this.prescription.anticoagulant_zongliang == 0 &&
1374 1375
         this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
1375 1376
       ) {
1376 1377
         const obj36 = "总量"
@@ -1460,7 +1461,7 @@ export default {
1460 1461
       } if (this.prescription.creater == 0) {
1461 1462
         const obj51 = "治疗医生"
1462 1463
         checkDate.push(obj51)
1463
-      } 
1464
+      }
1464 1465
       if(this.doctor_advices.length > 0){
1465 1466
         this.doctor_advices.map((item) =>{
1466 1467
           if(item.id > 0 && (item.created_time || item.start_time)){
@@ -1471,56 +1472,52 @@ export default {
1471 1472
           }
1472 1473
         })
1473 1474
       }
1474
-      // if (this.doctor_advices.length > 0) {
1475
-      //   let num = 0;
1476
-      //   this.doctor_advices.map((item) => {
1477
-      //     if (item.id > 0 && (item.created_time || item.start_time)) {
1478
-      //       this.users.map((it) => {
1479
-      //         if (it.id == item.advice_doctor) {
1480
-      //           if (it.user_type == 3) {
1481
-      //             num++;
1482
-      //             
1483
-      //             // this.$message.closeAll();
1484
-      //             // this.$message.error("存在不是医生保存的医嘱");
1485
-      //           } else if (
1486
-      //             it.id == item.execution_staff &&
1487
-      //             item.execution_staff > 0
1488
-      //           ) {
1489
-      //             if (it.user_type == 2) {
1490
-      //               num++;
1491
-      //               this.$message.closeAll();
1492
-      //               this.$message.error("存在不是护士执行的医嘱");
1493
-      //             }
1494
-      //           } else if (it.id == item.checker && item.checker > 0) {
1495
-      //             if (it.user_type == 2) {
1496
-      //               num++;
1497
-      //               this.$message.closeAll();
1498
-      //               this.$message.error("存在不是护士核对的医嘱");
1499
-      //             }
1500
-      //           }
1501
-      //         } else if (
1502
-      //           it.id == item.execution_staff &&
1503
-      //           item.execution_staff > 0
1504
-      //         ) {
1505
-      //           if (it.user_type == 2) {
1506
-      //             num++;
1507
-      //             this.$message.closeAll();
1508
-      //             this.$message.error("存在不是护士执行的医嘱");
1509
-      //           }
1510
-      //         } else if (it.id == item.checker && item.checker > 0) {
1511
-      //           if (it.user_type == 2) {
1512
-      //             num++;
1513
-      //             this.$message.closeAll();
1514
-      //             this.$message.error("存在不是护士核对的医嘱");
1515
-      //           }
1516
-      //         }
1517
-      //       });
1518
-      //     }
1519
-      //   });
1520
-      //   if (num == 0) {
1521
-      //     this.$message.success("核对完成");
1522
-      //   }
1523
-      // }
1475
+      if(this.monitors.length >0){
1476
+        for(let i in this.monitors){
1477
+        if(this.monitors[i].blood_flow_volume ==0){
1478
+        const obj55 = '监测第'+((i*1)+1)+'行血流量'
1479
+        monearr.push(obj55)
1480
+        } if(this.monitors[i].venous_pressure ==0 ||
1481
+        this.monitors[i].transmembrane_pressure ==0
1482
+        ){
1483
+        const obj56 = '监测第'+((i*1)+1)+'行静脉压/跨膜压'
1484
+        monearr.push(obj56)
1485
+        } if(this.monitors[i].ultrafiltration_rate ==0){
1486
+        const obj57 = '监测第'+((i*1)+1)+'行超滤率'
1487
+        monearr.push(obj57)
1488
+        } if(this.monitors[i].ultrafiltration_volume == 0 && i !=0){
1489
+        const obj53 = '监测第'+((i*1)+1)+'行超滤量'
1490
+        monearr.push(obj53)
1491
+        } if(this.monitors[i].replacement_rate ==0 && this.prescription.mode =='HDF'
1492
+        ){
1493
+        const obj58 = '监测第'+((i*1)+1)+'行置换率'
1494
+        monearr.push(obj58)
1495
+        } if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1496
+        const obj54 = '监测第'+((i*1)+1)+'行置换量'
1497
+        monearr.push(obj54)
1498
+        }  if(this.monitors[i].sodium_concentration ==0 ){
1499
+        // this.monitors[i].temperature == 0
1500
+        const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1501
+        monearr.push(obj59)
1502
+        } if(this.monitors[i].pulse_frequency ==0){
1503
+        const obj60 = '监测第'+((i*1)+1)+'行脉搏'
1504
+        monearr.push(obj60)
1505
+        } if(this.monitors[i].breathing_rate ==0){
1506
+        const obj61 = '监测第'+((i*1)+1)+'行呼吸'
1507
+        monearr.push(obj61)
1508
+        } if(this.monitors[i].systolic_blood_pressure ==0 ||
1509
+        this.monitors.diastolic_blood_pressure==0){
1510
+        const obj62 = '监测第'+((i*1)+1)+'行血压'
1511
+        monearr.push(obj62)
1512
+        }
1513
+
1514
+        }
1515
+      }
1516
+      if(monearr.length>0){
1517
+        checkDate =checkDate.concat(monearr)
1518
+        console.log('1111',checkDate.concat(monearr));
1519
+      }
1520
+
1524 1521
       this.getcheckData(checkDate)
1525 1522
     },
1526 1523
     getDisplaceLiquiPart: function (val) {
@@ -2002,10 +1999,14 @@ export default {
2002 1999
     },
2003 2000
     getcheckData(val){
2004 2001
       if(val.length >0){
2005
-        const a = val.join(',')
2006
-        console.log('a',a);
2007
-        this.$toast(a +" 未填");
2008
-        return a
2002
+        let message = `记录单未填数据:\n${val.join("\n")}`;
2003
+        Toast({
2004
+          duration:0,
2005
+          message:message,
2006
+          closeOnClick:true,
2007
+          closeOnClickOverlay:true,
2008
+        })
2009
+        return message
2009 2010
       }else{
2010 2011
         this.$toast('核对完成');
2011 2012
       }
@@ -2153,7 +2154,7 @@ export default {
2153 2154
 .row {
2154 2155
   font-size: 14px;
2155 2156
   line-height: 20px;
2156
-  padding: 5px 0;
2157
+  padding: 3px;
2157 2158
 }
2158 2159
 
2159 2160
 .inline_block {

+ 1 - 1
src/pages/main/template/DialysisPrintOrderSeventythree.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="dialysis-print-box-1">
3
-    <div style="margin-left: 10px;" id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" >
3
+    <div  id="dialysis-print-box-1-1" class="dialysis-print-order print-template-two print_page_main_content" >
4 4
       <div style="display:inline-block;width:100%;text-align:center;">
5 5
         <div class="order-yy-name" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">{{orgname}}</div>
6 6
         <div class="order-title" style="letter-spacing: 0;font-weight:600;font-size:22px;display:inline-block;">

+ 9 - 5
src/pages/main/template/DialysisPrintOrdereighty.vue View File

@@ -1095,7 +1095,7 @@ import { getDialysisRecord } from '@/api/dialysis'
1095 1095
 import { getDataConfig } from '@/utils/data'
1096 1096
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1097 1097
 import LabelBox from '../printItem/LabelBox'
1098
-
1098
+import {Toast} from 'vant'
1099 1099
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1100 1100
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1101 1101
 import print from 'print-js'
@@ -2047,10 +2047,14 @@ export default {
2047 2047
     },
2048 2048
     getcheckData(val){
2049 2049
       if(val.length >0){
2050
-        const a = val.join(',')
2051
-        console.log('a',a);
2052
-        this.$toast(a +" 未填");
2053
-        return a
2050
+        let message = `记录单未填数据:\n${val.join("\n")}`;
2051
+        Toast({
2052
+          duration:0,
2053
+          message:message,
2054
+          closeOnClick:true,
2055
+          closeOnClickOverlay:true,
2056
+        })
2057
+        return message
2054 2058
       }else{
2055 2059
         this.$toast('核对完成');
2056 2060
       }

+ 10 - 5
src/pages/main/template/DialysisPrintOrdereightyone.vue View File

@@ -1122,7 +1122,7 @@ import { getDataConfig } from '@/utils/data'
1122 1122
 import { EasyScroller } from 'easyscroller'
1123 1123
 import { jsGetAge, uParseTime, uParseTimeOne } from '@/utils/tools'
1124 1124
 import LabelBox from '../printItem/LabelBox'
1125
-
1125
+import {Toast} from 'vant'
1126 1126
 // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
1127 1127
 // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
1128 1128
 import print from 'print-js'
@@ -2085,10 +2085,15 @@ export default {
2085 2085
     },
2086 2086
     getcheckData(val){
2087 2087
       if(val.length >0){
2088
-        const a = val.join(',')
2089
-        console.log('a',a);
2090
-        this.$toast(a +" 未填");
2091
-        return a
2088
+        let message = `记录单未填数据:\n${val.join("\n")}`;
2089
+        Toast({
2090
+          duration:0,
2091
+          message:message,
2092
+          closeOnClick:true,
2093
+          closeOnClickOverlay:true,
2094
+        })
2095
+       
2096
+        return message
2092 2097
       }else{
2093 2098
         this.$toast('核对完成');
2094 2099
       }

+ 2 - 2
src/pages/new_Patientscheduling/ScheduleItem.vue View File

@@ -1,10 +1,10 @@
1 1
 <template>
2 2
   <!-- 排班表填充内容 -->
3 3
     <div >
4
-      <div>
4
+      <div style="min-width: 60px;min-height: 20px;">
5 5
           <span :class='modeColor(scheduleDetail.mode_id)'>{{scheduleDetail.patient}}</span>
6
+          <br/>
6 7
           <template v-if="schedulMode">
7
-            <br/>
8 8
             <span v-if="scheduleDetail.mode_id>0"  :class='modeColor(scheduleDetail.mode_id)' >{{'('+modename(scheduleDetail.mode_id)+')'}}</span>
9 9
           </template>
10 10
           <!-- <template v-if="schedulFlag">

+ 3 - 4
src/pages/new_Patientscheduling/index.vue View File

@@ -9,13 +9,12 @@
9 9
       @click-right=""
10 10
     />
11 11
     <div >
12
-      <van-tabs v-model:active="active" :sticky="true" title-active-color="#409eff" color="#409eff">
13
-        <!-- <van-tab title="上机参数"></van-tab>
14
-        <van-tab title="透析准备"></van-tab> -->
12
+      <new_content></new_content>
13
+      <!-- <van-tabs v-model:active="active" :sticky="true" title-active-color="#409eff" color="#409eff">
15 14
         <van-tab title="患者排班">
16 15
           <new_content></new_content>
17 16
         </van-tab>
18
-      </van-tabs>
17
+      </van-tabs> -->
19 18
     </div>
20 19
   </div>
21 20
 </template>

+ 56 - 33
src/pages/new_Patientscheduling/new_content.vue View File

@@ -25,19 +25,20 @@
25 25
         </div>
26 26
       </div>
27 27
     </div>
28
-    <div style="margin-top: 20px;">
28
+    <div style="margin-top: 20px;height: 82vh;">
29 29
       <el-table
30 30
         :row-style="{ color: '#303133' }"
31 31
         :header-cell-style="{
32
-        backgroundColor: '#409eff',
33
-        color: 'rgb(235 237 239)',
34
-      }"
32
+          backgroundColor: '#409eff',
33
+          color: 'rgb(235 237 239)',
34
+        }"
35 35
         border
36 36
         :fit="true"
37 37
         :data="scheduleZone"
38
-        :height="tableContainHeight"
38
+        height="calc(100% - 0px)"
39 39
         ref="table"
40 40
         style="table-layout: fixed;"
41
+        class="eltable"
41 42
       >
42 43
         <el-table-column
43 44
           prop="area"
@@ -57,11 +58,9 @@
57 58
           <template slot-scope="scope">
58 59
             <div>
59 60
               <el-popover ref="popover" placement="top"
60
-                title=""
61
-                width=""
62
-                trigger="click"
63
-                content=""
64
-                
61
+                title=""width=""
62
+                trigger="click"content=""
63
+                popper-class="ellipsis-pop"
65 64
                 >
66 65
                 <div v-if="scope.row.Mon_M.patient_id !=''" >
67 66
                   <el-button @click='patientedit(scope.row.Mon_M)'>调班</el-button>
@@ -73,8 +72,7 @@
73 72
                 <!-- <schedule-item slot="reference" :schedule-detail="scope.row.Mon_M"></schedule-item> -->
74 73
               </el-popover>
75 74
               <schedule-item v-popover:popover :schedule-detail="scope.row.Mon_M"></schedule-item>
76
-              <!-- <schedule-item class="elpopvers1" v-popover:popover :schedule-detail="scope.row.Mon_M"></schedule-item> -->
77
-              <!-- v-popover:popover slot="reference" -->
75
+
78 76
             </div>
79 77
           </template>
80 78
         </el-table-column>
@@ -84,6 +82,7 @@
84 82
               <el-popover ref="popover" placement="top"
85 83
                 title="" width=""
86 84
                 trigger="click" content=""
85
+                popper-class="ellipsis-pop"
87 86
                 >
88 87
                 <div v-if="scope.row.Mon_A.patient_id !=''">
89 88
                   <el-button @click='patientedit(scope.row.Mon_A)'>调班</el-button>
@@ -93,7 +92,6 @@
93 92
                   <el-button @click='newappend(scope.row.Mon_A)'>新增</el-button>
94 93
                 </div>
95 94
               </el-popover>
96
-              <!-- v-popover:popover -->
97 95
               <schedule-item v-popover:popover :schedule-detail="scope.row.Mon_A"></schedule-item>
98 96
             </div>
99 97
           </template>
@@ -102,21 +100,25 @@
102 100
         <el-table-column prop="Mon_N" label="晚上" min-width="60" align="center">
103 101
           <template slot-scope="scope">
104 102
             <div>
105
-              <el-popover ref="popover"
103
+              <el-popover
106 104
                 placement="top" title=""
107
-                width="" trigger="click"
105
+                min-width="" trigger="click"
108 106
                 content=""
107
+                popper-class="ellipsis-pop"
108
+                
109 109
                 >
110 110
                 <div v-if="scope.row.Mon_N.patient_id !=''">
111
+                  <!-- <span @click='patientedit(scope.row.Mon_N)'>调班</span>
112
+                  <span @click='delete_click(scope.row.Mon_N)' v-if="scope.row.Mon_N.stage==0">删除</span> -->
111 113
                   <el-button @click='patientedit(scope.row.Mon_N)'>调班</el-button>
112 114
                   <el-button @click="delete_click(scope.row.Mon_N)" v-if="scope.row.Mon_N.stage==0">删除</el-button>
113 115
                 </div>
114
-                <div style="text-align: center;" v-if="scope.row.Mon_N.patient_id ==''">
116
+                <div style="text-align: center;" v-if="scope.row.Mon_N.patient_id ==0">
117
+                  <!-- <span @click='newappend(scope.row.Mon_N)'>新增</span> -->
115 118
                   <el-button @click='newappend(scope.row.Mon_N)'>新增</el-button>
116 119
                 </div>
120
+                <schedule-item slot="reference" :schedule-detail="scope.row.Mon_N"></schedule-item>
117 121
               </el-popover>
118
-              <!-- v-popover:popover -->
119
-              <schedule-item v-popover:popover :schedule-detail="scope.row.Mon_N"></schedule-item>
120 122
             </div>
121 123
           </template>
122 124
         </el-table-column>
@@ -322,6 +324,9 @@
322 324
           <div style="flex: 1;margin-right: 10px;">
323 325
             患者:
324 326
             <input type="text" v-model="add_arr.patient_add" onfocus="this.blur();" @click="clickhuanzhes2= !clickhuanzhes2" class="borders" >
327
+            <!-- <el-input type="text" size="mini" v-model="add_arr.patient_add" onfocus="this.blur();" 
328
+                  @click="clickhuanzhes2= !clickhuanzhes2" style="width: 120px;" >
329
+            </el-input> -->
325 330
           </div>
326 331
             <!-- 点击修改  :close-on-click-modal = 'false'-->
327 332
             <el-dialog class="huanzhe_xiu"
@@ -329,16 +334,18 @@
329 334
             :append-to-body = 'true'
330 335
 
331 336
             :show-close="false"
332
-              width="50%">
337
+              width="70%">
333 338
               <div>
334
-                <div class="listBox">
339
+                <div style="border-bottom: 1px solid #e5e5e5;">
335 340
                   <van-search v-model="schedulingVal2" @clear="onclear2"
336 341
                   @input="onUpdate2" placeholder="请输入搜索关键词" />
342
+                </div>
343
+                <div class="listBox">
337 344
                   <div v-for="(item,index) in huangxiu_arr" :key='index' @click="Select_click2(item)">
338 345
                     {{ item.name }}
339 346
                   </div>
340 347
                 </div>
341
-                <div class="Cancelclass" @click="clickhuanzhes2 = !clickhuanzhes2">
348
+                <div class="Cancelclass" @click="clickhuanzhes2 = !clickhuanzhes2" >
342 349
                   取消
343 350
                 </div>
344 351
               </div>
@@ -351,7 +358,7 @@
351 358
               v-model="currentData.schedule_date"
352 359
               type="date"
353 360
               placeholder="选择日期"
354
-              style="width: 150px;font-size: 14px;"
361
+              style="width: 70%;font-size: 14px;"
355 362
               value-format="yyyy-MM-dd"
356 363
               :clearable="false"
357 364
               :editable = 'false'
@@ -512,7 +519,7 @@ export default{
512 519
       add_loading:false,//新增的加载
513 520
       edit_loading:false,//修改的加载
514 521
       timeOutEvent:0,
515
-      tableContainHeight:1000,
522
+      tableContainHeight:"calc(100% -20px)",
516 523
       class_type: 0,
517 524
       type: '全部班',
518 525
       schedulingVal2:'',
@@ -610,6 +617,10 @@ export default{
610 617
 
611 618
   },
612 619
   methods:{
620
+    showPopver(){
621
+      console.log('1111111222222');
622
+      
623
+    },
613 624
     // 数据源
614 625
     getlist () {
615 626
       if (this.type == '全部班') {
@@ -654,12 +665,9 @@ export default{
654 665
                 name:params.name
655 666
               }
656 667
               fenqu_arr.push(fenquobj)
657
-              console.log('444444',params.device.sort());
658 668
               if(params.device.length>0){
659 669
 
660 670
                 params.device.forEach(function(device) {
661
-                  console.log('5555',device.sort)
662
-                  console.log();
663 671
                   var thisPa = {
664 672
                     area: params.name,
665 673
                     zone_id: params.id,
@@ -1495,17 +1503,16 @@ export default{
1495 1503
 }
1496 1504
 .patient_name{
1497 1505
   padding: 6px 0;
1498
-
1499 1506
 }
1500 1507
 .el-dialog__wrapper{
1501 1508
   /deep/.el-dialog__header {
1502 1509
       padding: 20px 20px 10px !important;
1503 1510
       background: #409EFE !important;
1504 1511
   }
1505
-  ::deep(.el-dialog__header){
1506
-    padding: 20px 20px 10px !important;
1507
-      background: #409EFE !important;
1508
-  }
1512
+  // ::deep(.el-dialog__header){
1513
+  //   padding: 20px 20px 10px !important;
1514
+  //     background: #409EFE !important;
1515
+  // }
1509 1516
 }
1510 1517
 .xiugai2{
1511 1518
   .toolOne {
@@ -1558,7 +1565,6 @@ export default{
1558 1565
     font-size: 18px;
1559 1566
     border-top: 1px solid #e5e5e5;
1560 1567
   }
1561
-
1562 1568
 </style>
1563 1569
 <style lang="scss">
1564 1570
   .xiugai{
@@ -1596,7 +1602,7 @@ export default{
1596 1602
       >div{
1597 1603
         padding: 1rem .625rem;
1598 1604
         border-bottom: 1px solid #e5e5e5;
1599
-        font-size: .875rem;
1605
+        font-size: .975rem;
1600 1606
         color:#323233;
1601 1607
       }
1602 1608
       >ul li{
@@ -1614,9 +1620,26 @@ export default{
1614 1620
     font-size: 14px;
1615 1621
     .el-input__inner{
1616 1622
       font-size: 14px;
1623
+      padding: 0 5px;
1617 1624
     }
1618 1625
     .el-input__prefix{
1619 1626
       font-size: 14px;
1627
+      .el-icon-date:before {
1628
+          content: "";
1629
+      }
1620 1630
     }
1621 1631
   }
1632
+  .ellipsis-pop{
1633
+    min-width: 83px;
1634
+  }
1635
+  .el-table .el-table__cell {
1636
+    padding: 5px 0 !important;
1637
+    min-width: 0;
1638
+    -webkit-box-sizing: border-box;
1639
+    box-sizing: border-box;
1640
+    text-overflow: ellipsis;
1641
+    vertical-align: middle;
1642
+    position: relative;
1643
+    text-align: left;
1644
+  }
1622 1645
 </style>