Browse Source

新分支

28169 1 year ago
parent
commit
e1c92b716d

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.0.6"
2
+  "version": "2999.999.1314"
3 3
 }

+ 39 - 38
index.html View File

@@ -1,38 +1,39 @@
1
-<!DOCTYPE html>
2
-<html>
3
-  <head>
4
-    <meta charset="utf-8" />
5
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6
-    <meta name="renderer" content="webkit" />
7
-    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
8
-    <meta
9
-      name="viewport"
10
-      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
11
-    />
12
-    <title>酷医云-透析管理平台</title>
13
-    <!-- <link
14
-      rel="stylesheet"
15
-      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
16
-    /> -->
17
-
18
-  </head>
19
-
20
-  <body>
21
-      <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
22
-      <script src="https://images.shengws.com/jquery.min.js"></script>
23
-      <script src="https://images.shengws.com/tinymce4.7.5/tinymce.min.js"></script>
24
-      <script src="https://images.shengws.com/neditor/neditor.config.js"></script>
25
-      <script src="https://images.shengws.com/neditor/neditor.all.min.js"></script>
26
-      <script src="https://images.shengws.com/neditor/neditor.service.js"></script>
27
-      <script src="https://images.shengws.com/neditor/i18n/zh-cn/zh-cn.js"></script>
28
-      <script src="https://images.shengws.com/neditor/neditor.parse.min.js"></script>
29
-
30
-    <div id="app"></div>
31
-    <!-- built files will be auto injected -->
32
-    <link
33
-      rel="stylesheet"
34
-      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
35
-    />
36
-
37
-  </body>
38
-</html>
1
+ 
2
+<!DOCTYPE html>
3
+<html>
4
+  <head>
5
+    <meta charset="utf-8" />
6
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+    <meta name="renderer" content="webkit" />
8
+    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
9
+    <meta
10
+      name="viewport"
11
+      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
12
+    />
13
+    <title>酷医云-透析管理平台</title>
14
+    <!-- <link
15
+      rel="stylesheet"
16
+      href="//at.alicdn.com/t/font_1480998_l66fq6mc0y.css"
17
+    /> -->
18
+
19
+  </head>
20
+
21
+  <body>
22
+    <script src="https://images.shengws.com/reconnecting-websocket.min.js"></script>
23
+    <script src="https://images.shengws.com/jquery.min.js"></script>
24
+    <script src="<%= htmlWebpackPlugin.options.path %>/tinymce4.7.5/tinymce.min.js"></script>
25
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.config.js"></script>
26
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.all.min.js"></script>
27
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.service.js"></script>
28
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/i18n/zh-cn/zh-cn.js"></script>
29
+    <script src="<%= htmlWebpackPlugin.options.path %>/neditor/neditor.parse.min.js"></script>
30
+
31
+    <div id="app"></div>
32
+    <!-- built files will be auto injected -->
33
+    <link
34
+      rel="stylesheet"
35
+      href="//at.alicdn.com/t/font_795029_9ftx46rzd47.css"
36
+    />
37
+
38
+  </body>
39
+</html>

+ 12 - 2
src/api/dialysis.js View File

@@ -512,7 +512,7 @@ export function getAferLogList(params){
512 512
 }
513 513
 
514 514
 
515
-export function saveGatherSetting(){
515
+export function saveGatherSetting(params){
516 516
 
517 517
   return request({
518 518
      url:"/api/patient/savegathersetting",
@@ -521,10 +521,20 @@ export function saveGatherSetting(){
521 521
   })
522 522
 }
523 523
 
524
-export function getGatherSetting(){
524
+export function getGatherSetting(params){
525 525
   return request({
526 526
     url:"/api/patient/getgathersetting",
527 527
     method:"get",
528 528
     params:params
529 529
   })
530
+}
531
+
532
+
533
+export function getDialysisGatherList(params){
534
+
535
+  return request({
536
+    url:"/api/patient/getdialysisgatherlist",
537
+    method:"get",
538
+    params:params,
539
+  })
530 540
 }

+ 9 - 0
src/api/role/admin.js View File

@@ -345,4 +345,13 @@ export function toAutoDiagnose(params){
345 345
     method:"get",
346 346
     params:params
347 347
   })
348
+}
349
+
350
+export function toAutoJiaYou(params){
351
+
352
+  return request({
353
+    url:"/api/device/toautojiayou",
354
+    method:"get",
355
+    params:params,
356
+  })
348 357
 }

+ 12 - 0
src/router/modules/dialysis.js View File

@@ -949,5 +949,17 @@ export default {
949 949
         noCache: true
950 950
       }
951 951
     },
952
+
953
+    {
954
+      path: '/dialysis/consumable/dialysis/gather/print',
955
+      component: () => import('@/xt_pages/dialysis/details/consumable/dialysisGatherPrint'),
956
+      name: '汇总',
957
+      meta: {
958
+        title: '汇总',
959
+        noCache: true
960
+      },
961
+      is_menu: false,
962
+      hidden: true
963
+    },
952 964
   ]
953 965
 }

+ 19 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -736,7 +736,9 @@
736 736
                           class="under_line"
737 737
                           style="width: 100px; text-align: center"
738 738
                         >
739
-                          /
739
+                        {{
740
+                          getDisplaceLiquiPart(record.prescription.displace_liqui_part)
741
+                        }}
740 742
                         </div>
741 743
                       </div>
742 744
                       <div
@@ -2421,7 +2423,7 @@
2421 2423
                           }}
2422 2424
                         </div>
2423 2425
                       </div>
2424
-                      <div class="inline_block" style="flex: 2">
2426
+                      <div class="inline_block" style="flex: 2" v-if="org_id!=10598">
2425 2427
                         内瘘:
2426 2428
                         <div
2427 2429
                           class="under_line"
@@ -2440,7 +2442,7 @@
2440 2442
                           }}
2441 2443
                         </div>
2442 2444
                       </div>
2443
-                      <div class="inline_block" style="flex: 4">
2445
+                      <div class="inline_block" style="flex: 4" v-if="org_id!=10598">
2444 2446
                         导管:
2445 2447
                         <div
2446 2448
                           class="under_line"
@@ -2500,7 +2502,7 @@
2500 2502
                       <div
2501 2503
                         class="inline_block"
2502 2504
                         style="flex: 1"
2503
-                        v-if="org_id != 10223 || org_id!=10375"
2505
+                        v-if="org_id != 10223 && org_id!=10375 && org_id!=10598"
2504 2506
                       >
2505 2507
   
2506 2508
                         <span v-if="org_id!=10460">
@@ -3218,6 +3220,7 @@ export default {
3218 3220
       intake_arr: [],
3219 3221
       nutrition_arr: [],
3220 3222
       blood_access_part_opera_name: "",
3223
+      displaceLiquiPartOptions:[],
3221 3224
       records: [
3222 3225
         // 模拟有多条数据
3223 3226
         // {
@@ -3278,6 +3281,8 @@ export default {
3278 3281
     //   this.replacementWays = this.$store.getters.replacement_ways;
3279 3282
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
3280 3283
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
3284
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
3285
+
3281 3286
     // for(let i = 0 ; i < this.records.length ; i++){
3282 3287
     //   console.log(i,'jhk')
3283 3288
     //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
@@ -3754,6 +3759,16 @@ export default {
3754 3759
     getNumber: function (record) {
3755 3760
       console.log(record);
3756 3761
     },
3762
+    getDisplaceLiquiPart: function (val) {
3763
+      let displace_liqui_part_name = "/";
3764
+      const displace_liqui_part = this.displaceLiquiPartOptions;
3765
+      for (let i = 0; i < displace_liqui_part.length; i++) {
3766
+        if (displace_liqui_part[i].id == val) {
3767
+          displace_liqui_part_name = displace_liqui_part[i].name;
3768
+        }
3769
+      }
3770
+      return displace_liqui_part_name;
3771
+    },
3757 3772
   },
3758 3773
 };
3759 3774
 </script>

File diff suppressed because it is too large
+ 1973 - 0
src/xt_pages/dialysis/details/consumable/dialysisGather.vue


+ 443 - 0
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue View File

@@ -0,0 +1,443 @@
1
+<template>
2
+    <div class="main-contain">
3
+      <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+          <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+          </el-col>
9
+        </el-row>
10
+      </div>
11
+      <div class="app-container" style="background-color: white;">
12
+  
13
+        <div id="print_content">
14
+          <div class="print_main_content">
15
+            <div class="order_title_panl">
16
+              <span class="main_title"> &nbsp;
17
+                汇总
18
+              </span>
19
+              <span  style="float:left;">打印日期: &nbsp;
20
+                 {{$route.query.schedule_date}}
21
+              </span>
22
+            </div>
23
+            <div class="table_panel">
24
+  
25
+              <table class="table">
26
+                <thead>
27
+                <tr>
28
+                  <td width="60" v-if="gatherSetting.index_number == 1">序号</td>
29
+                  <td width="100"  v-if="gatherSetting.name==1">姓名</td>
30
+                  <td width="100"  v-if="gatherSetting.dialysis_no==1">透析号</td>
31
+                  <td width="100"  v-if="gatherSetting.admission_number==1">住院(门诊)号</td>
32
+                  <td width="100" v-if="gatherSetting.mode_type==1">透析模式</td>
33
+                  <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">透析器</td>
34
+                  <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">灌流器</td>
35
+                  <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">滤过器</td>
36
+                  <td width="100"  v-if="gatherSetting.change_nurse ==1">换药包/穿刺针</td>
37
+                  <td width="100" v-if="gatherSetting.anticoagulant==1">抗凝剂(首剂)(维持)(总量)</td>
38
+                  <td width="200" v-if="gatherSetting.tube==1">封管液</td>
39
+                  <td width="100" v-if="gatherSetting.kalium==1">钾</td>
40
+                  <td width="100"  v-if="gatherSetting.calcium==1">钙</td>
41
+                  <td width="100" v-if="gatherSetting.cuhong == 1">促红素</td>
42
+                  <td width="100"  v-if="gatherSetting.zuoka == 1">左卡</td>
43
+                  <td width="100" v-if="gatherSetting.niaojimei == 1">尿激酶</td>
44
+                  <td width="100" v-if="gatherSetting.putaosuangai == 1">葡萄糖酸钙</td>
45
+                 
46
+                </tr>
47
+                </thead>
48
+                <tbody>
49
+                 <tr v-for="(item,i) in list" :key="i">
50
+                   <td width="60" v-if="gatherSetting.index_number == 1">{{ i+1 }}</td>
51
+                  <td width="100"  v-if="gatherSetting.name==1">
52
+                    {{item.patient.name}}
53
+                  </td>
54
+                  <td width="100"  v-if="gatherSetting.dialysis_no==1">
55
+                    {{item.patient.dialysis_no}}
56
+                  </td>
57
+                  <td width="100"  v-if="gatherSetting.admission_number==1">
58
+                    {{item.xt_receive_treatment_asses.admission_number}}
59
+                  </td>
60
+                  <td width="100" v-if="gatherSetting.mode_type==1">
61
+                    <span v-if="item.mode_id == 1">HD</span>
62
+                    <span v-if="item.mode_id == 2">HDF</span>
63
+                    <span v-if="item.mode_id == 3">HD+HP</span>
64
+                    <span v-if="item.mode_id == 4">HP</span>
65
+                    <span v-if="item.mode_id == 5">HF</span>
66
+                    <span v-if="item.mode_id == 6">SCUF</span>
67
+                    <span v-if="item.mode_id == 7">IUF</span>
68
+                    <span v-if="item.mode_id == 8">HFHD</span>
69
+                    <span v-if="item.mode_id == 9">HFHD+HP</span>
70
+                    <span v-if="item.mode_id == 10">PHF</span>
71
+                    <span v-if="item.mode_id == 11">HFR</span>
72
+                    <span v-if="item.mode_id == 12">HDF+HP</span>
73
+                    <span v-if="item.mode_id == 13">CRRT</span>
74
+                    <span v-if="item.mode_id == 19">IUF+HD</span>
75
+                    <span v-if="item.mode_id == 20">UF</span>
76
+                    <span v-if="item.mode_id == 21">HD+</span>
77
+                    <span v-if="item.mode_id == 22">血浆胆红素吸附+HDF</span>
78
+                    <span v-if="item.mode_id == 23">血浆胆红素吸附</span>
79
+                    <span v-if="item.mode_id == 24">I-HDF</span>
80
+                    <span v-if="item.mode_id == 25">HD高通F</span>
81
+                    <span v-if="item.mode_id == 26">CVVH</span>
82
+                    <span v-if="item.mode_id == 27">CVVHD</span>
83
+                    <span v-if="item.mode_id == 28">CVVHDF</span>
84
+                    <span v-if="item.mode_id == 29">PE</span>
85
+                    <span v-if="item.mode_id == 30">血浆胆红素吸附+HP</span>
86
+                    <span v-if="item.mode_id == 31">HPD</span>
87
+                    <span v-if="item.mode_id == 32">HDP</span>
88
+                    <span v-if="item.mode_id == 33">HFD</span>
89
+                    <span v-if="item.mode_id == 34">HDF100</span>
90
+                    <span v-if="item.mode_id == 35">HDF600</span>
91
+                    <span v-if="item.mode_id == 35">HDF800</span>
92
+                    <span v-if="item.mode_id == 35">HDF1000</span>
93
+                 </td>
94
+                  <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
95
+                    {{item.dialysis_prescription.dialysis_dialyszers}}
96
+                  </td>
97
+                  <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
98
+                    <span>{{item.dialysis_prescription.dialysis_irrigation}}</span>
99
+                  </td>
100
+                  <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
101
+                    <span>{{item.dialysis_prescription.dialysis_strainer}}</span>
102
+                  </td>
103
+                  <td width="100"  v-if="gatherSetting.change_nurse ==1"> 
104
+                    <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('导管')!=-1">1</span>
105
+                    <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('导管')==-1">0</span>
106
+                        /
107
+                    <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('内瘘')==-1">0</span>
108
+                    <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('内瘘')!=-1">1</span>
109
+                  </td>
110
+                  <td width="100" v-if="gatherSetting.anticoagulant==1">
111
+                    <span>{{getAnticoagualnt(item.dialysis_prescription.anticoagulant)}}</span>
112
+                    <span v-if="item.dialysis_prescription.anticoagulant_shouji > 0">({{item.dialysis_prescription.anticoagulant_shouji}})</span>
113
+                    <span v-if="item.dialysis_prescription.anticoagulant_weichi > 0">({{item.dialysis_prescription.anticoagulant_weichi}})</span>
114
+                    <span v-if="item.dialysis_prescription.anticoagulant_zongliang > 0">({{item.dialysis_prescription.anticoagulant_zongliang}})</span>
115
+                 </td>
116
+                  <td width="200" v-if="gatherSetting.tube==1">
117
+                    <span v-if="getBloodAccessOption(item.dialysis_prescription.blood_access).indexOf('导管')!==-1">1</span>
118
+                  </td>
119
+                  <td width="100" v-if="gatherSetting.kalium==1">
120
+                    <span v-if="item.dialysis_prescription.kalium>0">{{item.dialysis_prescription.kalium}}</span>
121
+                 </td>
122
+                  <td width="100"  v-if="gatherSetting.calcium==1">
123
+                    <span v-if="item.dialysis_prescription.calcium>0">{{item.dialysis_prescription.calcium}}</span>
124
+                 </td>
125
+                  <td width="100" v-if="gatherSetting.cuhong == 1">
126
+                    {{ item.advice_spc }}
127
+                 </td>
128
+                  <td width="100"  v-if="gatherSetting.zuoka == 1">
129
+                    {{ item.advice_spc_one }}
130
+                 </td>
131
+                  <td width="100" v-if="gatherSetting.niaojimei == 1">
132
+                    {{ item.advice_spc_two }}
133
+                 </td>
134
+                  <td width="100" v-if="gatherSetting.putaosuangai == 1">
135
+                    {{ item.advice_spc_three }}
136
+                 </td>
137
+                 
138
+                 </tr>
139
+                </tbody>
140
+              </table>
141
+            
142
+            </div>
143
+          </div>
144
+        </div>
145
+      </div>
146
+    </div>
147
+  </template>
148
+  
149
+  <script>
150
+    import { getDialysisGatherList } from '@/api/dialysis'
151
+    import { parseTime } from '@/utils'
152
+    import { uParseTime } from '@/utils/tools'
153
+    import BreadCrumb from '@/xt_pages/components/bread-crumb'
154
+    import print from 'print-js'
155
+    import { getDataConfig } from '@/utils/data'
156
+    export default {
157
+      name: 'SchedulePrint',
158
+      data() {
159
+        return {
160
+          crumbs: [
161
+            { path: false, name: '排班管理' },
162
+            { path: false, name: '透析汇总打印' }
163
+          ],
164
+          td_1_width: '8%',
165
+          td_2_width: '8%',
166
+          td_3_width: '64%',
167
+          td_4_width: '20%',
168
+          month: 1,
169
+          begin_day: 1,
170
+          total:[],
171
+          list:[],
172
+          schedule_date:"",
173
+          schedule_type:0,
174
+          partition_type:0,
175
+          keywords:"",
176
+          loading:false,
177
+          tableData:[],
178
+          numberList:[],
179
+          partitionArr:[],
180
+          his_config:{},
181
+          typeList:[],
182
+          rowList:[],
183
+          dialysate_formulation:[],
184
+          body_fluid_option:[],
185
+          displace_liqui_part_option:[],
186
+          blood_access_option:[],
187
+          hemodialysisPipelinesOptions:[],
188
+          tableList:[],
189
+          list:[],
190
+          dialysisSett:{},
191
+          total_one:0,
192
+          total_two:0,
193
+          total_three:0,
194
+          org_id:'',
195
+          gatherSetting:{}
196
+        }
197
+      },
198
+      components: {
199
+        BreadCrumb
200
+      },
201
+      created() {
202
+        this.org_id = this.$store.getters.xt_user.org.id
203
+        this.displace_liqui_part_option = this.$store.getters.displace_liqui
204
+        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
205
+        this.getlist()
206
+      },
207
+      methods: {
208
+      getlist(){
209
+         var params = {
210
+           schedule_date:this.$route.query.schedule_date,
211
+           schedule_type:this.$route.query.schedule_type,
212
+           partition_id:this.$route.query.partion_id,
213
+           page:this.$route.query.page,
214
+           limit:500,
215
+           ids:this.$route.query.ids,
216
+         }
217
+        console.log("params",params)
218
+        getDialysisGatherList(params).then(response=>{
219
+            if(response.data.state == 1){
220
+             this.gatherSetting = response.data.data.gatherSetting
221
+              var list = response.data.data.list
222
+              if(list!=null &&list.length>0){
223
+                  for(let i=0;i<list.length;i++){
224
+                    list[i].sort = 0
225
+                    list[i].sort = list[i].device_number.sort
226
+                  }
227
+        
228
+                }
229
+                list.sort(this.compare('sort'))
230
+  
231
+              var total_one =0
232
+              var total_two=0
233
+              var total_three =0  
234
+              console.log("listoowowowwoww",list)
235
+              for(let i=0;i<list.length;i++){
236
+                  list[i].advice_spc =""
237
+                  list[i].advice_spc_one =""
238
+                  list[i].advice_spc_two =""
239
+                  list[i].advice_spc_three = ""
240
+                   for(let j=0;j<list[i].advice.length;j++){
241
+                       if((list[i].advice[j].advice_name).indexOf("促红")!=-1){
242
+                          list[i].advice_spc+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
243
+                       }
244
+
245
+                       if((list[i].advice[j].advice_name).indexOf("左卡")!=-1){
246
+                          list[i].advice_spc_one+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
247
+                       }
248
+
249
+                       if((list[i].advice[j].advice_name).indexOf("尿激酶")!=-1){
250
+                          list[i].advice_spc_two+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
251
+                       }
252
+
253
+                       if((list[i].advice[j].advice_name).indexOf("葡萄糖酸钙")!=-1){
254
+                          list[i].advice_spc_three+= (list[i].advice[j].single_dose + list[i].advice[j].single_dose_unit+"/"+ list[i].advice[j].prescribing_number_unit)+","
255
+                       }
256
+
257
+                   }
258
+                }
259
+              this.list = list
260
+            
261
+            }
262
+        }) 
263
+       },
264
+       getTimeOne(val) {
265
+          if(val == ""){
266
+          return ""
267
+          }else {
268
+          return uParseTime(val, '{y}-{m}-{d}')
269
+          }
270
+       },
271
+        printAction: function() {
272
+          if(this.org_id != 10490 && this.org_id != 0){
273
+            const style = '@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: 16px; padding: 0px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 0px 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; } }'
274
+            printJS({
275
+              printable: 'print_content',
276
+              type: 'html',
277
+              documentTitle: '  ',
278
+              style: style,
279
+              scanStyles: false
280
+            })
281
+          }else{
282
+            // const style = '@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: 16px; padding: 0px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 0px 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; } }'
283
+            const style = '@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; } }'
284
+            printJS({
285
+              printable: 'print_content',
286
+              type: 'html',
287
+              documentTitle: '  ',
288
+              style: style,
289
+              scanStyles: false
290
+            })
291
+          }
292
+          
293
+        },
294
+        getAnticoagualnt(id){
295
+         var name = ""
296
+         if(id == 1){
297
+           name = "无肝素"
298
+         }
299
+         if(id == 2){
300
+          name = "普通肝素"
301
+         }
302
+         if(id == 3){
303
+           name ="低分子肝素"
304
+         }
305
+         if(id == 4){
306
+           name ="阿加曲班"
307
+         }
308
+         if(id == 5){
309
+           name ="枸橼酸钠"
310
+         }
311
+         if(id == 6){
312
+           name ="低分子肝素钙"
313
+         }
314
+         if(id == 7){
315
+           name ="低分子肝素钠"
316
+         }
317
+         if(id == 8){
318
+           name ="依诺肝素"
319
+         }
320
+         if(id == 9){
321
+           name ="达肝素"
322
+         }
323
+         if(id == 10){
324
+           name ="体外抗凝"
325
+         }
326
+         if(id == 11){
327
+           name ="那屈肝素"
328
+         }
329
+         if(id == 12){
330
+           name ="无抗凝剂"
331
+         }
332
+         if(id == 13){
333
+           name ="那屈肝素钙"
334
+         }
335
+         return name
336
+       },
337
+       getBloodAccessOption(id){
338
+         var name = ""
339
+         for(let i=0;i<this.blood_access_option.length;i++){
340
+           if(id == this.blood_access_option[i].id){
341
+              name = this.blood_access_option[i].name
342
+           }
343
+         }
344
+         return name
345
+       },
346
+       getDisplaceLiquiPart(id){
347
+         var name = ""
348
+         for(let i=0;i<this.displace_liqui_part_option.length;i++){
349
+           if(id == this.displace_liqui_part_option[i].id){
350
+              name = this.displace_liqui_part_option[i].name
351
+           }
352
+         }
353
+         return name
354
+       },
355
+       compare(p) { //这是比较函数
356
+          return function (m, n) {
357
+            var a = m[p];
358
+            var b = n[p];
359
+            return a - b; //升序
360
+          }
361
+        },
362
+      
363
+      }
364
+    }
365
+  </script>
366
+  
367
+  <style rel="stylesheet/scss" lang="scss" scoped>
368
+    .print_main_content {
369
+      background-color: white;
370
+      width: 960px;
371
+      margin: 0 auto;
372
+      padding: 0 0 20px 0;
373
+  
374
+    .order_title_panl {
375
+      text-align: center;
376
+  
377
+    .main_title {
378
+      font-size: 18px;
379
+      line-height: 40px;
380
+      font-weight: 500;
381
+    }
382
+  
383
+    }
384
+    .table_panel {
385
+  
386
+    .table {
387
+      width: 100%;
388
+      border: 1px solid;
389
+      border-collapse: collapse;
390
+      padding: 2px;
391
+  
392
+    thead {
393
+  
394
+    tr {
395
+  
396
+    td {
397
+      border: 1px solid;
398
+      text-align: center;
399
+      font-size: 20px;
400
+      padding: 15px 5px;
401
+    }
402
+  
403
+    }
404
+    }
405
+    tbody {
406
+  
407
+    tr {
408
+  
409
+    td {
410
+      border: 1px solid;
411
+      text-align: center;
412
+      font-size: 18px;
413
+      padding: 10px 5px;
414
+  
415
+    .proj {
416
+      padding: 5px 0;
417
+      text-align: left;
418
+  
419
+    .proj_title {
420
+      font-size: 16px;
421
+      font-weight: 500;
422
+      line-height: 25px;
423
+    }
424
+  
425
+    .proj_item {
426
+      font-size: 15px;
427
+      line-height: 20px;
428
+  
429
+    .zone_name {
430
+      font-weight: 500;
431
+    }
432
+  
433
+    }
434
+    }
435
+    }
436
+    }
437
+    }
438
+    }
439
+    }
440
+    }
441
+  </style>
442
+  
443
+  

+ 1 - 1
src/xt_pages/dialysis/details/consumable/dialysisGood.vue View File

@@ -1179,7 +1179,7 @@
1179 1179
                      }
1180 1180
                 }
1181 1181
              }
1182
-            //  console.log("projectList",projectList)
1182
+            console.log("projectList",projectList)
1183 1183
 
1184 1184
              if(projectList!=null && projectList.length > 0){
1185 1185
                for(let i=0;i<projectList.length;i++){

+ 4 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

@@ -256,7 +256,7 @@
256 256
            </template>
257 257
         </el-table-column>
258 258
 
259
-        <el-table-column align="center" label="促红">
259
+        <el-table-column align="center" label="促红" v-if="org_id!=10599">
260 260
            <template slot-scope="scope">
261 261
               {{ scope.row.advice_spc }}
262 262
            </template>
@@ -592,12 +592,14 @@
592 592
         },
593 593
         partition_id:0,
594 594
         zoneList:[],
595
+        org_id:0,
595 596
       }
596 597
     },
597 598
     open(){
598 599
      
599 600
     },
600 601
     created() {
602
+      this.org_id = this.$store.getters.xt_user.org.id
601 603
        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
602 604
        this.displace_liqui_part_option = this.$store.getters.displace_liqui
603 605
     
@@ -1663,7 +1665,7 @@
1663 1665
           dialyzer_perfusion_apparatus_set:dialyzer_perfusion_apparatus_set,
1664 1666
           displace_liqui_part_set:displace_liqui_part_set,
1665 1667
         }
1666
-        // console.log("patam223232332",params)
1668
+       
1667 1669
        saveDialysisSetting(params).then(response=>{
1668 1670
          if(response.data.state == 1){
1669 1671
            var dialysisSetting = response.data.data.dialysisSetting

+ 2 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

@@ -52,8 +52,8 @@
52 52
                 <td width="100" v-if="dialysisSett.sealing_fluid_dispose == 1">封管液</td>
53 53
                 <td width="100"  v-if="dialysisSett.glucose==1">葡萄糖</td>
54 54
                 <td width="100"  v-if="dialysisSett.blood_flow_volume==1">血流量</td>
55
-                <td v-if="org_id!=10587 && org_id!=0">封管液</td>
56
-                <td v-if="org_id!=10587 && org_id!=0">促红</td>
55
+                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599">封管液</td>
56
+                <td v-if="org_id!=10587 && org_id!=0 && org_id!=10599">促红</td>
57 57
               </tr>
58 58
               </thead>
59 59
               <tbody>

+ 14 - 14
src/xt_pages/dialysis/details/consumable/index.vue View File

@@ -5,7 +5,7 @@
5 5
      
6 6
     </div>
7 7
      <div class="app-container ">
8
-        <el-tabs v-model="activeName" @tab-click="handleClick">
8
+        <el-tabs v-model="activeName">
9 9
             <el-tab-pane label="透析耗材" name="first">
10 10
               <DialysisGood ref="mychild"></DialysisGood>
11 11
             </el-tab-pane>
@@ -54,19 +54,19 @@ export default {
54 54
   },
55 55
   methods:{
56 56
     handleClick(val){
57
-      console.log("woowowow",val.name)
58
-      if(val.name == "first"){
59
-       this.$refs.mychild.open()
60
-      }   
61
-      if(val.name == "second"){
62
-       this.$refs.mychildOne.open()
63
-      }
64
-      if(val.name == "third"){
65
-        this.$refs.mychildtwo.open()
66
-      }
67
-      if(val.name =="four"){
68
-         this.$refs.mychildthree.open()
69
-      }
57
+      // console.log("woowowow",val.name)
58
+      // if(val.name == "first"){
59
+      //  this.$refs.mychild.open()
60
+      // }   
61
+      // if(val.name == "second"){
62
+      //  this.$refs.mychildOne.open()
63
+      // }
64
+      // if(val.name == "third"){
65
+      //   this.$refs.mychildtwo.open()
66
+      // }
67
+      // if(val.name =="four"){
68
+      //    this.$refs.mychildthree.open()
69
+      // }
70 70
     }
71 71
   }
72 72
 };

+ 8 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -2945,6 +2945,10 @@ mu
2945 2945
       },
2946 2946
 
2947 2947
       handleCommit (formName) {
2948
+         if(this.dialysisPrescription.target_ultrafiltration==0){
2949
+             this.$message.error("目标超滤量不能为空")
2950
+             return false
2951
+         }
2948 2952
         this.$refs[formName].validate((valid)=>{
2949 2953
           if(valid){
2950 2954
             if(!this.isLoading){
@@ -3493,6 +3497,10 @@ mu
3493 3497
         if(this.dialysisPrescription.anticoagulant == "" || this.dialysisPrescription.anticoagulant == 0){
3494 3498
           this.dialysisPrescription.anticoagulant = 3
3495 3499
         }
3500
+        if(this.dialysisPrescription.target_ultrafiltration == 0){
3501
+           this.$message.error("目标超滤量不能为空!")
3502
+           return false
3503
+        }
3496 3504
         this.$refs[formName].validate((valid)=>{
3497 3505
           if(valid){
3498 3506
             if(!this.isLoading){

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -2457,7 +2457,7 @@
2457 2457
                       </div>
2458 2458
                     </div>
2459 2459
                     <div class="inline_block" style="flex: 2"
2460
-                    v-if="org_id!=9675 && org_id!=10447">
2460
+                    v-if="org_id!=9675 && org_id!=10447 && org_id!=10598">
2461 2461
                       内瘘:
2462 2462
                       <div
2463 2463
                         class="under_line"
@@ -2475,7 +2475,7 @@
2475 2475
                       </div>
2476 2476
                     </div>
2477 2477
                     <div class="inline_block" style="flex: 4"
2478
-                    v-if="org_id!=9675 && org_id!=10447">
2478
+                    v-if="org_id!=9675 && org_id!=10447&& org_id!=10598">
2479 2479
                       导管:
2480 2480
                       <div
2481 2481
                         class="under_line"
@@ -2541,9 +2541,9 @@
2541 2541
                     <div
2542 2542
                       class="inline_block"
2543 2543
                       style="flex: 1"
2544
-                      v-if="org_id != 10223 || org_id!=10375"
2544
+                      v-if="org_id != 10223 && org_id!=10375 && org_id!=10598"
2545 2545
                     >
2546
-                       <span v-if="org_id!=10460">
2546
+                       <span v-if="org_id!=10460 ">
2547 2547
                           透析中入量(L):
2548 2548
                         </span>
2549 2549
                         <span v-if="org_id==10460">

+ 21 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -4922,7 +4922,7 @@ export default {
4922 4922
           let two_count = 0
4923 4923
 
4924 4924
           for (let i = 0; i < response.data.data.list.length; i++) {
4925
-            if (this.org_id == 10206 || this.org_id == 0){
4925
+            if (this.org_id == 10206){
4926 4926
                 let obj = {
4927 4927
                   id: response.data.data.list[i].id,
4928 4928
                   name: response.data.data.list[i].name,
@@ -4938,24 +4938,32 @@ export default {
4938 4938
 
4939 4939
                 this.all_table_data.push(obj)
4940 4940
             }else{
4941
+              console.log("count")
4942
+              console.log(response.data.data.list[i].his_patient.length)
4941 4943
               if (response.data.data.list[i].his_patient.length > 0) {
4942
-                let obj = {
4943
-                  id: response.data.data.list[i].id,
4944
-                  name: response.data.data.list[i].name,
4945
-                  number: response.data.data.list[i].his_patient[0].number,
4946
-                  order_status: 0,
4947
-                  his_patient_id: response.data.data.list[i].his_patient[0].id,
4948
-                  order_number: '',
4949
-                  order_id: 0,
4950
-                  prescription: response.data.data.list[i].prescription
4944
+
4945
+                for(let b = 0;b < response.data.data.list[i].his_patient.length; b++){
4946
+                  console.log("his_patient")
4947
+                  console.log(response.data.data.list[i].his_patient)
4948
+                  let obj = {
4949
+                    id: response.data.data.list[i].id,
4950
+                    name: response.data.data.list[i].name,
4951
+                    number: response.data.data.list[i].his_patient[b].number,
4952
+                    order_status: 0,
4953
+                    his_patient_id: response.data.data.list[i].his_patient[b].id,
4954
+                    order_number: '',
4955
+                    order_id: 0,
4956
+                    prescription: response.data.data.list[i].prescription
4957
+                  }
4958
+                  this.all_table_data.push(obj)
4951 4959
                 }
4952
-                this.all_table_data.push(obj)
4953 4960
               }
4954
-
4955 4961
             }
4956
-
4957 4962
           }
4958 4963
 
4964
+          console.log("this.all_table_data")
4965
+          console.log(this.all_table_data)
4966
+
4959 4967
           let unChargePatient = []
4960 4968
           for (let i = 0; i < this.all_table_data.length; i++) {
4961 4969
             unChargePatient.push(this.all_table_data[i])

+ 18 - 5
src/xt_pages/role/admin.vue View File

@@ -25,12 +25,20 @@
25 25
         >医药师登记</el-button>
26 26
 
27 27
 
28
-       <el-button
28
+       <!-- <el-button
29 29
           type="primary"
30 30
           size="small"
31 31
           icon="el-icon-circle-plus-outline"
32 32
           style="float:left"
33
-          @click="toJiaBan">加班</el-button>
33
+          @click="toJiaBan">加班</el-button> -->
34
+
35
+
36
+          <el-button
37
+          type="primary"
38
+          size="small"
39
+          icon="el-icon-circle-plus-outline"
40
+          style="float:left"
41
+          @click="toJiaoYou">加油</el-button>
34 42
        
35 43
 
36 44
          <!-- <el-button
@@ -217,12 +225,12 @@
217 225
           @click="toAutoDrug">自动生成</el-button> -->
218 226
 
219 227
 
220
-          <el-button
228
+          <!-- <el-button
221 229
           type="primary"
222 230
           size="small"
223 231
           icon="el-icon-circle-plus-outline"
224 232
           style="float:left"
225
-          @click="toAutoDiagnose">自动脚本</el-button>
233
+          @click="toAutoDiagnose">自动脚本</el-button> -->
226 234
      </div>
227 235
 
228 236
 
@@ -528,7 +536,7 @@
528 536
 
529 537
 <script>
530 538
 import { adminMainView, getAdmins, setAdminStatus,toSign,toTestOne,toTestTwo,toTestThree,toTestFour,toTestFive,toTestSeven,toTestEight,toTestNight,toTestTen,toTestElement,toTestThrityMent,saveEnterprise,getEnterPriseById,getMobileCode,savePersionEnterPrise,getPerseEnterPriseById,CreatePersionSeal,CreateNewEnterPrise,toTestThrity,toEndEnterPrise,getEnterPriseDetail
531
-  ,CreateQianshuUserName,CreateSKDSendInformation,toSavePDFInformation,toCheckPDFInformation,getdruginfoInformation,toAutoDrug,toAutoDiagnose} from "@/api/role/admin";
539
+  ,CreateQianshuUserName,CreateSKDSendInformation,toSavePDFInformation,toCheckPDFInformation,getdruginfoInformation,toAutoDrug,toAutoDiagnose,toAutoJiaYou} from "@/api/role/admin";
532 540
 import { getRoles } from "@/api/role/role";
533 541
 import { UploadPrintOrder } from "@/api/role/admin"
534 542
 import { parseTime } from "@/utils";
@@ -1195,6 +1203,11 @@ export default {
1195 1203
     toAutoDiagnose(){
1196 1204
       toAutoDiagnose().then(response=>{
1197 1205
         
1206
+      })
1207
+    },
1208
+    toJiaoYou(){
1209
+      toAutoJiaYou().then(response=>{
1210
+
1198 1211
       })
1199 1212
     }
1200 1213
 

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+   return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))