Browse Source

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

陈少旭 3 weeks ago
parent
commit
a481265678

+ 21 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_eightyTwo.vue View File

@@ -999,13 +999,32 @@ export default {
999 999
               this.records[recordIndex].advices.push(item);
1000 1000
             }
1001 1001
           }
1002
-          console.log(this.records, "this.records");
1002
+          
1003 1003
           // this.records.forEach(o => {
1004 1004
           //   console.log(o,'jj')
1005 1005
           //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
1006 1006
           //   o.assessment_before_dislysis.blood_access_part_opera_id)
1007 1007
           // })
1008
-
1008
+          // const advice = []
1009
+          if(this.records.length>0){
1010
+            console.log(this.records, "this.records");
1011
+            for(let x in this.records){
1012
+              
1013
+              if(this.records[x].his_advices.length>0){
1014
+                console.log(this.records, "this.records");
1015
+                const arr = this.records[x].his_advices
1016
+                for(let i in arr ){
1017
+                  if(arr[i].delivery_way == '口服' || 
1018
+                    arr[i].delivery_way == '中药口服' ||
1019
+                    arr[i].delivery_way == '舌下含服'
1020
+                  ){
1021
+                    arr.splice(i,1)
1022
+                  }
1023
+                }
1024
+              }
1025
+              // this.records[x].his_advices =advice
1026
+            }
1027
+          }
1009 1028
           this.operators = resp.data.medical_staffs;
1010 1029
           if (this.operators.length > 0) {
1011 1030
             var operatorsLen = this.operators.length;

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightyfour.vue View File

@@ -325,7 +325,7 @@
325 325
                       <td>{{ advice[0].delivery_way }}</td>
326 326
                       <td>{{ getTime(advice[0].execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
327 327
                       <td style="height:30px;line-height:30px">
328
-                        徐华
328
+                        <span v-if="advice[0].start_time>0">徐华</span>
329 329
                         <!-- <span v-if="advice[0].start_time>0">杨能华/</span>
330 330
                         <span v-if="setAdminUserES(advice[0],'advice_doctor') == ''">
331 331
                           {{ getAdminUser(advice[0],'advice_doctor')}}

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightyfour.vue View File

@@ -278,7 +278,7 @@
278 278
                 <td>{{ advice.delivery_way }}</td>
279 279
                 <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
280 280
                 <td style="height:30px;line-height:30px">
281
-                  徐华
281
+                  <span v-if="advice.start_time>0">徐华</span>
282 282
                   <!-- <span v-if="advice.start_time>0">徐华/</span>
283 283
                   <span v-if="setAdminUserES(advice.advice_doctor) == ''">
284 284
                     {{ getAdminUser(advice.advice_doctor)}}

+ 10 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

@@ -1162,7 +1162,16 @@ export default {
1162 1162
           this.assessmentafter = response.data.data.assessmentAfterDislysis
1163 1163
           console.log('上次透后体重', this.assessmentafter)
1164 1164
           var doctorAdevieInfo = response.data.data.advices
1165
-          var tableAdvice = doctorAdevieInfo
1165
+          console.log('var tableAdvice',tableAdvice);
1166
+          var tableAdvice = []
1167
+          for(let i in doctorAdevieInfo){
1168
+            if(doctorAdevieInfo[i].delivery_way != '口服' && 
1169
+            doctorAdevieInfo[i].delivery_way != '中药口服' &&
1170
+            doctorAdevieInfo[i].delivery_way != '舌下含服'){
1171
+              tableAdvice.push(doctorAdevieInfo[i]) 
1172
+            }
1173
+          }
1174
+          
1166 1175
           if (tableAdvice.length === 0) {
1167 1176
             var obj = { advice_name: '', start_time: '' }
1168 1177
             var obj1 = { advice_name: '', start_time: '' }

+ 152 - 35
src/xt_pages/user/inspection.vue View File

@@ -1324,6 +1324,8 @@ export default {
1324 1324
             this.queryParams.project_id = this.project.project_id
1325 1325
             this.queryParams.page = 1
1326 1326
             this.total = 0
1327
+            console.log('bbbbbvvvv',this.queryParams);
1328
+            
1327 1329
             this.fetchPatientInspections(this.queryParams)
1328 1330
           } else {
1329 1331
             this.$message.error(response.data.msg)
@@ -1414,8 +1416,6 @@ export default {
1414 1416
             }else{
1415 1417
               this.is_open = false
1416 1418
             }
1417
-
1418
-
1419 1419
             if(remind.id > 0 && remind.remind_cycle > 0){
1420 1420
               this.temp_remind_cycle = remind.remind_cycle
1421 1421
             }else{
@@ -1438,27 +1438,26 @@ export default {
1438 1438
             console.log("inspectionsMap",this.inspectionsMap)
1439 1439
             var items = this.project.inspection_reference
1440 1440
             console.log("时间",items)
1441
-            for (var index in items) {
1442
-             console.log("obj",items[index])
1441
+            for(let index in items){
1442
+              console.log("obj",items)
1443 1443
               // console.log("inspectionsMap",inspectionsMap[items[index].item_id])
1444 1444
               var item = {}
1445
-              for (var key in items[index]) {
1445
+              for (let key in items[index]) {
1446 1446
                 //  console.log("key",key,items[index][key])
1447 1447
                 // console.log("item[key]",items[index])
1448 1448
                 item[key] = items[index][key]
1449 1449
               }
1450
-
1451
-              console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1450
+              console.log("item=-----------------12",item,inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1452 1451
               if (item.item_id > 0) {
1453
-
1454
-                if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1452
+                if(inspectionsMap[parseInt(items[index].item_id)] == null){
1453
+                  console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1455 1454
                   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1456
-                    item.value = inspectionsMap[items[index].id].inspect_value
1457
-                    item.item_name = inspectionsMap[items[index].id].item_name
1455
+                    if(inspectionsMap[items[index].id] !=null){
1456
+                      item.value = inspectionsMap[items[index].id].inspect_value
1457
+                      item.item_name = inspectionsMap[items[index].id].item_name
1458
+                    }
1458 1459
                   }else{
1459
-                    console.log('执行1');
1460
-
1461
-                    if(this.org_id == 10702){
1460
+                    if((this.org_id == 10702 || this.org_id==0) && inspectionsMap[items[index].id] !=null){
1462 1461
                       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1463 1462
                           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1464 1463
                           item.project_name == '传染病检查'
@@ -1471,33 +1470,73 @@ export default {
1471 1470
                         item.item_name = ''
1472 1471
                       }
1473 1472
                     } else{
1474
-                      console.log('执行2');
1473
+                      console.log('执行2',inspectionsMap[items[index].id]);
1474
+                      // item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1475
+                      // item.item_name = inspectionsMap[items[index].id].item_name
1475 1476
                       item.value = ''
1476 1477
                       item.item_name = ''
1477 1478
                     }
1478 1479
                   }
1479 1480
                 } else {
1480
-                  console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1481
-                  item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1482
-                  item.item_name = inspectionsMap[items[index].item_id].item_name
1481
+                  if(inspectionsMap[parseInt(items[index].item_id)] != null){
1482
+                    console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1483
+                    item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1484
+                    item.item_name = inspectionsMap[items[index].item_id].item_name
1485
+                  }
1483 1486
                 }
1484 1487
                 if(this.org_id ==10191){
1485
-                  if(item.project_name == "乙肝定性(五项)"){
1488
+                  if(item.project_name == "乙肝定性(五项)" && inspectionsMap[items[index].id] !=null){
1486 1489
                     console.log("金阿迪发到付阿打发")
1487 1490
                     item.value = inspectionsMap[items[index].id].inspect_value
1488 1491
                     item.item_name = inspectionsMap[items[index].id].item_name
1489 1492
                   }
1490 1493
                 }
1494
+                // if ((inspectionsMap[parseInt(items[index].item_id)])  == null) {
1495
+                //   if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1496
+                //     item.value = inspectionsMap[items[index].id].inspect_value
1497
+                //     item.item_name = inspectionsMap[items[index].id].item_name
1498
+                //   }else{
1499
+                //     console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1500
+
1501
+                //     if(this.org_id == 10702 || this.org_id==0){
1502
+                //       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1503
+                //           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1504
+                //           item.project_name == '传染病检查'
1505
+                //         ){
1506
+
1507
+                //         item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1508
+                //         item.item_name = inspectionsMap[items[index].id].item_name
1509
+                //       }else{
1510
+                //         item.value = ''
1511
+                //         item.item_name = ''
1512
+                //       }
1513
+                //     } else{
1514
+                //       console.log('执行2');
1515
+                //       item.value = ''
1516
+                //       item.item_name = ''
1517
+                //     }
1518
+                //   }
1519
+                // } else {
1520
+                //   console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1521
+                //   item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1522
+                //   item.item_name = inspectionsMap[items[index].item_id].item_name
1523
+                // }
1524
+                // if(this.org_id ==10191){
1525
+                //   if(item.project_name == "乙肝定性(五项)"){
1526
+                //     console.log("金阿迪发到付阿打发")
1527
+                //     item.value = inspectionsMap[items[index].id].inspect_value
1528
+                //     item.item_name = inspectionsMap[items[index].id].item_name
1529
+                //   }
1530
+                // }
1491 1531
               } else {
1492
-                if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1532
+                if(typeof(inspectionsMap[parseInt(items[index].id)])  == null){
1493 1533
                   continue
1534
+                }else{
1535
+                  console.log('执行4',inspectionsMap);
1536
+                  item.value = inspectionsMap[items[index].id].inspect_value
1537
+                  item.item_name = inspectionsMap[items[index].id].item_name
1494 1538
                 }
1495
-                console.log('执行4',inspectionsMap);
1496
-                item.value = inspectionsMap[items[index].id].inspect_value
1497
-                item.item_name = inspectionsMap[items[index].id].item_name
1498 1539
               }
1499
-              // item["inspect_desc"] = inspectionsMap[items[index].id].inspect_desc
1500
-              // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1501 1540
               item.value_direction = ''
1502 1541
               if (item.range_type == 1) {
1503 1542
                 console.log('执行5',item.value);
@@ -1510,23 +1549,101 @@ export default {
1510 1549
                   item.value_direction = '↑'
1511 1550
                 }
1512 1551
               }
1513
-              // if(this.org_id!=10503 && this.org_id!=0){
1514
-              //   if(item.project_name!="" && item.item_name !=''){
1515
-              //    this.items.push(item)
1516
-              //   }
1517
-              // }else{
1518
-                this.items.push(item)
1519
-              // }
1520
-
1552
+              
1553
+              this.items.push(item)
1521 1554
               console.log('fffff',this.items);
1522 1555
               if(item.value.indexOf("http") !=-1){
1523
-
1524 1556
                 this.isPic = true
1525 1557
               }
1526
-
1558
+              if(this.isPic == true){
1559
+                for(let x in this.items){
1560
+                  if(this.items[x].value ==''){
1561
+                    this.items.splice(x,1)
1562
+                  }
1563
+                }
1564
+              }
1527 1565
               console.log("woowwoow",this.isPic)
1528 1566
               console.log("isPicwowowow",this.items)
1529 1567
             }
1568
+            // for (var index in items) {
1569
+            //  console.log("obj",items[index].id)
1570
+            //   // console.log("inspectionsMap",inspectionsMap[items[index].item_id])
1571
+            //   var item = {}
1572
+            //   for (var key in items[index]) {
1573
+            //     //  console.log("key",key,items[index][key])
1574
+            //     // console.log("item[key]",items[index])
1575
+            //     item[key] = items[index][key]
1576
+            //   }
1577
+
1578
+            //   console.log("item=-----------------12",inspectionsMap[items[index].id],inspectionsMap[parseInt(items[index].item_id)])
1579
+            //   if (item.item_id > 0) {
1580
+            //     if (typeof(inspectionsMap[parseInt(items[index].item_id)])  == "undefined") {
1581
+            //       if(this.org_id == 10121 || this.org_id ==10138 || this.org_id ==10278){
1582
+            //         item.value = inspectionsMap[items[index].id].inspect_value
1583
+            //         item.item_name = inspectionsMap[items[index].id].item_name
1584
+            //       }else{
1585
+            //         console.log('执行1',item.project_name,inspectionsMap[items[index].id]);
1586
+
1587
+            //         if(this.org_id == 10702 || this.org_id==0){
1588
+            //           if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1589
+            //               item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1590
+            //               item.project_name == '传染病检查'
1591
+            //             ){
1592
+
1593
+            //             item.value = inspectionsMap[items[index].id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1594
+            //             item.item_name = inspectionsMap[items[index].id].item_name
1595
+            //           }else{
1596
+            //             item.value = ''
1597
+            //             item.item_name = ''
1598
+            //           }
1599
+            //         } else{
1600
+            //           console.log('执行2');
1601
+            //           item.value = ''
1602
+            //           item.item_name = ''
1603
+            //         }
1604
+            //       }
1605
+            //     } else {
1606
+            //       console.log('执行3',inspectionsMap[items[index].item_id].inspect_value);
1607
+            //       item.value = inspectionsMap[items[index].item_id].inspect_value.replace(/&lt;/g, "<").replace(/&gt;/g, ">")
1608
+            //       item.item_name = inspectionsMap[items[index].item_id].item_name
1609
+            //     }
1610
+            //     if(this.org_id ==10191){
1611
+            //       if(item.project_name == "乙肝定性(五项)"){
1612
+            //         console.log("金阿迪发到付阿打发")
1613
+            //         item.value = inspectionsMap[items[index].id].inspect_value
1614
+            //         item.item_name = inspectionsMap[items[index].id].item_name
1615
+            //       }
1616
+            //     }
1617
+            //   } else {
1618
+            //     if(typeof(inspectionsMap[parseInt(items[index].id)])  == "undefined"){
1619
+            //       continue
1620
+            //     }
1621
+            //     console.log('执行4',inspectionsMap);
1622
+            //     item.value = inspectionsMap[items[index].id].inspect_value
1623
+            //     item.item_name = inspectionsMap[items[index].id].item_name
1624
+            //   }
1625
+            //   // item["inspect_desc"] = inspectionsMap[items[index].id].inspect_desc
1626
+            //   // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1627
+            //   item.value_direction = ''
1628
+            //   if (item.range_type == 1) {
1629
+            //     console.log('执行5',item.value);
1630
+            //     var value = parseFloat(item.value)
1631
+            //     var range_min = parseFloat(item.range_min)
1632
+            //     var range_max = parseFloat(item.range_max)
1633
+            //     if (value < range_min) {
1634
+            //       item.value_direction = '↓'
1635
+            //     } else if (value > range_max) {
1636
+            //       item.value_direction = '↑'
1637
+            //     }
1638
+            //   }
1639
+            //   this.items.push(item)
1640
+            //   console.log('fffff',this.items);
1641
+            //   if(item.value.indexOf("http") !=-1){
1642
+            //     this.isPic = true
1643
+            //   }
1644
+            //   console.log("woowwoow",this.isPic)
1645
+            //   console.log("isPicwowowow",this.items)
1646
+            // }
1530 1647
           }
1531 1648
         })
1532 1649
         .catch(v => {