浏览代码

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

test_user 2 年前
父节点
当前提交
157a4ecabd

+ 32 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -1223,7 +1223,7 @@
1223 1223
   import MsgTip from './MsgTip'
1224 1224
   import request from '@/utils/request'
1225 1225
   import multiSelectBox from './MultiSelectBox'
1226
-
1226
+  const moment = require('moment')
1227 1227
   export default {
1228 1228
     name: 'dialysisPrescriptionDialog',
1229 1229
     components: { MsgTip, multiSelectBox },
@@ -2578,7 +2578,38 @@ mu
2578 2578
 
2579 2579
         this.isVisibility = true
2580 2580
         this.checkedCities = []
2581
+        var total_day = ""
2582
+        if(moment().weekday() == 1){
2583
+           total_day ="周一"
2584
+        }
2585
+        if(moment().weekday() == 2){
2586
+           total_day ="周二"
2587
+        }
2588
+        if(moment().weekday() == 3){
2589
+           total_day ="周三"
2590
+        }
2591
+        if(moment().weekday() == 4){
2592
+           total_day ="周四"
2593
+        }
2594
+        if(moment().weekday() == 5){
2595
+           total_day ="周五"
2596
+        }
2597
+        if(moment().weekday() == 6){
2598
+           total_day ="周六"
2599
+        }
2600
+        if(moment().weekday() == 6){
2601
+           total_day ="周七"
2602
+        }
2603
+        console.log("---------",this.targetAdvices)
2604
+        if(this.targetAdvices!=null && this.targetAdvices.length >0){
2605
+            for (let i = 0; i < this.targetAdvices.length; i++) {
2606
+              if(this.targetAdvices[i].week_day.indexOf(total_day)!=-1){
2607
+                this.targetAdvices[i].isCheck = 1
2608
+              }
2609
+            }
2610
+        }
2581 2611
         for (let i = 0; i < this.targetAdvices.length; i++) {
2612
+         
2582 2613
           if (this.targetAdvices[i].isCheck == 1) {
2583 2614
             this.checkedCities.push(this.targetAdvices[i].id)
2584 2615
           }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -864,7 +864,7 @@
864 864
             width="140"
865 865
             v-if="
866 866
               isShow('KT/V') &&
867
-              (org_id == 9987 || org_id == 10215 || org_id == 9800)
867
+              (org_id == 9987 || org_id == 10215 || org_id == 9800 || org_id == 9598)
868 868
             "
869 869
           >
870 870
             <template slot-scope="scope">

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -44,7 +44,7 @@
44 44
           <th v-if="isShow('肝素量')" width="92px">肝素量(mg)</th>
45 45
           <th v-if="isShow('脱水')" width="92px">脱水(L)</th>
46 46
           <th v-if="isShow('滤前压')" width="92px">滤前压(mmHg)</th>
47
-          <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)" width="92px">KT/V</th>
47
+          <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800 || org_id ==  9598)" width="92px">KT/V</th>
48 48
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
49 49
 
50 50
           <th v-if="isShow('处理')" width="92px">处理</th>
@@ -96,7 +96,7 @@
96 96
           <th v-if="isShow('肝素量')" width="92px">{{monitor.heparin_amount ? monitor.heparin_amount : ""}}</th>
97 97
           <th v-if="isShow('脱水')" width="92px">{{monitor.dehydration ? monitor.dehydration : ""}}</th>
98 98
           <th v-if="isShow('滤前压')" width="92px">{{monitor.filter_pressure ? monitor.filter_pressure : ""}}</th>
99
-          <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800)">{{ monitor.ktv?monitor.ktv:""}}</td>
99
+          <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215 || org_id ==  9800 || org_id ==  9598)">{{ monitor.ktv?monitor.ktv:""}}</td>
100 100
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}
101 101
             <span v-if="(index == monitores.length-1) && (org_id == 0 || org_id == 10340)">累计血容量:{{monitor.accumulated_blood_volume }}L</span>
102 102
           </td>

+ 6 - 11
src/xt_pages/workforce/remind_print_setting_one.vue 查看文件

@@ -17,12 +17,14 @@
17 17
     <div class="app-container" style="background-color: white;">
18 18
       <div id="print_content">
19 19
         <div class="print_main_content">
20
-          <div class="table_panel" v-loding="loading"  element-loading-text="拼命加载中"> 
20
+          <div class="table_panel" v-loding="loading"  element-loading-text="拼命加载中">
21 21
             <div v-for="(main_collection,index) in scheduleData" :key="index" :class="(org_id == 9671 || org_id == 10340) && parseInt((index+1)%8) == 0  ? 'page-break-after':''"
22 22
             style="display: inline-block; width: 42%; margin: 0px 35px 20px; 
23 23
             box-sizing: border-box;
24 24
             border: 1px solid black;
25 25
             ">
26
+              <!-- <div style="display: flex;justify-content: space-between;flex-wrap: wrap;">
27
+                box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.06) inset; -->
26 28
                 <div class="signPrint" style="font-size:16px;width: 100%;padding:5px; word-wrap:break-word;">
27 29
                   <div style="font-size:24px;font-weight: 400;">姓名:
28 30
                     <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
@@ -203,9 +205,9 @@
203 205
                 </div>
204 206
               
205 207
                 </div> 
208
+              <!-- </div> -->
206 209
            </div>
207 210
           </div>
208
-         
209 211
         </div>
210 212
       </div>
211 213
     </div>
@@ -381,19 +383,12 @@
381 383
         const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
382 384
         const style1 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
383 385
         const style2 = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .page-break-after{page-break-after:always;}.signPrint{width:40%;float: left;margin-left: 5%; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;-moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; margin-bottom: 20px;padding: 20px 10px;} .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 220px;} @page {margin-top:10px;}}'
384
-        if (this.org_id == 9671 || this.org_id == 10340) {
385
-          // printJS({
386
-          //   printable: 'print_content',
387
-          //   type: 'html',
388
-          //   documentTitle: '  ',
389
-          //   style: style2,
390
-          //   scanStyles: false
391
-          // })
386
+        if (this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0) {
392 387
           printJS({
393 388
             printable: 'print_content',
394 389
             type: 'html',
395 390
             documentTitle: '  ',
396
-            style: style2,
391
+            style: style,
397 392
             scanStyles: false
398 393
           })
399 394
         } else if (this.org_id == 10188 || this.org_id == 10217) {