浏览代码

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

28169 7 个月前
父节点
当前提交
7f03db63f7

+ 1 - 1
src/xt_pages/Dialysisanalysis/new_otherIndicators/index.vue 查看文件

49
       this.indicators = []
49
       this.indicators = []
50
       getStatisticsList(params).then(response => {
50
       getStatisticsList(params).then(response => {
51
         if (response.data.state == 1) {
51
         if (response.data.state == 1) {
52
-          this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
52
+          // this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
53
           console.log('444444444',this.indicators);
53
           console.log('444444444',this.indicators);
54
           for(let i = 0; i < this.indicators.length; i++){
54
           for(let i = 0; i < this.indicators.length; i++){
55
             this.indicators[i]["check_type"] = 1
55
             this.indicators[i]["check_type"] = 1

+ 17 - 13
src/xt_pages/Dialysisanalysis/weightblood/components/after_Blood.vue 查看文件

49
           <div class="echart" id="mychart"  style="width:100%;height:60vh"></div>
49
           <div class="echart" id="mychart"  style="width:100%;height:60vh"></div>
50
         </div>
50
         </div>
51
 
51
 
52
-          <div style="position: fixed;right: 5%;top: 50vh;">
53
-            <el-popover
54
-              placement="left"
55
-              title="提示"
56
-              width="500"
57
-              trigger="click"
58
-              content="1. 统计时间段内所有患者每次透析时的年龄和透前血压,根据不同年龄的标准值计算达标率。
59
-                        2. 患者<60 岁的透前血压以收缩压<140 或舒张压<90 为达标值;患者≥60岁的透前血压以收缩压<160 或舒张压<90 为达标值。
60
-                        3. 控制率=(≥60 岁患者的达标例次+<60 岁患者的达标例次)/时间段内总例次 x100%。">
61
-              <img src="@/assets/img/xiang.png" alt="" style="height: 20px;width: 20px;" slot="reference">
62
-              <!-- <el-button slot="reference">click 激活</el-button> -->
63
-            </el-popover>
64
-          </div>
52
+        <div style="position: fixed;right: 5%;top: 50vh;">
53
+          <el-popover
54
+            placement="left"
55
+            title="提示"
56
+            width="500"
57
+            trigger="click"
58
+            content="1. 统计时间段内所有患者每次透析时的年龄和透前血压,根据不同年龄的标准值计算达标率。
59
+                      2. 患者<60 岁的透前血压以收缩压<140 或舒张压<90 为达标值;患者≥60岁的透前血压以收缩压<160 或舒张压<90 为达标值。
60
+                      3. 控制率=(≥60 岁患者的达标例次+<60 岁患者的达标例次)/时间段内总例次 x100%。">
61
+            <img src="@/assets/img/xiang.png" alt="" style="height: 20px;width: 20px;" slot="reference">
62
+            <!-- <el-button slot="reference">click 激活</el-button> -->
63
+          </el-popover>
64
+        </div>
65
       </div>
65
       </div>
66
     </div>
66
     </div>
67
 
67
 
130
               style="width: 100%;"
130
               style="width: 100%;"
131
               :header-cell-style = "{'text-align':'center'}"
131
               :header-cell-style = "{'text-align':'center'}"
132
               :cell-style="{'text-align':'center'}"
132
               :cell-style="{'text-align':'center'}"
133
+              v-loading="loading"
133
               height="380">
134
               height="380">
134
               <el-table-column
135
               <el-table-column
135
                 prop="index"
136
                 prop="index"
217
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
218
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
218
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
219
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
219
         status_id:"",
220
         status_id:"",
221
+        loading:false,
220
       }
222
       }
221
     },
223
     },
222
     methods:{
224
     methods:{
398
           page:this.currentPage,
400
           page:this.currentPage,
399
           limit:this.limit,
401
           limit:this.limit,
400
         }
402
         }
403
+        this.loading =true
401
         Getbpdetail(params).then(response =>{
404
         Getbpdetail(params).then(response =>{
402
           if(response.data.state ==1){
405
           if(response.data.state ==1){
403
             const list = response.data.data.list
406
             const list = response.data.data.list
419
               this.total = response.data.data.total
422
               this.total = response.data.data.total
420
             }
423
             }
421
           }
424
           }
425
+          this.loading =false
422
           console.log('55555透后',response);
426
           console.log('55555透后',response);
423
         })
427
         })
424
       },
428
       },

+ 4 - 1
src/xt_pages/Dialysisanalysis/weightblood/components/before_Blood.vue 查看文件

130
               style="width: 100%;"
130
               style="width: 100%;"
131
               :header-cell-style = "{'text-align':'center'}"
131
               :header-cell-style = "{'text-align':'center'}"
132
               :cell-style="{'text-align':'center'}"
132
               :cell-style="{'text-align':'center'}"
133
+              v-loading="loading"
133
               height="380">
134
               height="380">
134
               <el-table-column
135
               <el-table-column
135
                 prop="index"
136
                 prop="index"
224
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
225
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
225
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
226
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
226
         status_id:"",
227
         status_id:"",
227
-
228
+        loading:false,
228
       }
229
       }
229
     },
230
     },
230
     methods:{
231
     methods:{
404
           page:this.currentPage,
405
           page:this.currentPage,
405
           limit:this.limit,
406
           limit:this.limit,
406
         }
407
         }
408
+        this.loading =true
407
         Getbpdetail(params).then(response =>{
409
         Getbpdetail(params).then(response =>{
408
           console.log('Getbpdetail血压',response.data);
410
           console.log('Getbpdetail血压',response.data);
409
           if(response.data.state){
411
           if(response.data.state){
428
             }
430
             }
429
           }
431
           }
430
           console.log('55555',response);
432
           console.log('55555',response);
433
+          this.loading =false
431
         })
434
         })
432
       },
435
       },
433
       // 选择日期
436
       // 选择日期

+ 7 - 3
src/xt_pages/Dialysisanalysis/weightblood/components/blood_table.vue 查看文件

54
             </div>
54
             </div>
55
             <div>
55
             <div>
56
               统计类型:
56
               统计类型:
57
-              <el-select v-model="blood_value" placeholder="请选择" style="width: 100px;">
58
-                <el-option :key="0" label="不限" :value="0"></el-option>
57
+              <el-select v-model="blood_value" placeholder="请选择" style="width: 150px;">
58
+                <!-- <el-option :key="0" label="不限" :value="0"></el-option> -->
59
                 <el-option
59
                 <el-option
60
                   v-for="item in blood_options"
60
                   v-for="item in blood_options"
61
                   :key="item.value"
61
                   :key="item.value"
77
         <el-table :data="tableData" border style="width: 100%"
77
         <el-table :data="tableData" border style="width: 100%"
78
         :header-cell-style="{textAlign: 'center'}"
78
         :header-cell-style="{textAlign: 'center'}"
79
         :cell-style="{ textAlign: 'center' }"
79
         :cell-style="{ textAlign: 'center' }"
80
+        v-loading="loading"
80
         height="380">
81
         height="380">
81
           <el-table-column
82
           <el-table-column
82
             prop="index"
83
             prop="index"
186
         total:0,
187
         total:0,
187
         tableData:[],
188
         tableData:[],
188
         status_value:1,
189
         status_value:1,
189
-        blood_value:0,
190
+        blood_value:1,
190
         status_options:[{value:1,label:'达标'},{value:2,label:'不达标'}],
191
         status_options:[{value:1,label:'达标'},{value:2,label:'不达标'}],
191
         date_options:[{value:1,label:'最近七天'},{value:2,label:'本周'},{value:3,label:'上周'},{value:4,label:'本月'},
192
         date_options:[{value:1,label:'最近七天'},{value:2,label:'本周'},{value:3,label:'上周'},{value:4,label:'本月'},
192
                       {value:5,label:'上月'},{value:6,label:'本年'},{value:7,label:'上一年'}
193
                       {value:5,label:'上月'},{value:6,label:'本年'},{value:7,label:'上一年'}
197
 
198
 
198
 
199
 
199
         input:'',
200
         input:'',
201
+        loading:true
200
       }
202
       }
201
     },
203
     },
202
     methods:{
204
     methods:{
309
           page:this.currentPage,
311
           page:this.currentPage,
310
           limit:this.limit,
312
           limit:this.limit,
311
         }
313
         }
314
+        this.loading =true
312
         Getbpdetail(params).then(response =>{
315
         Getbpdetail(params).then(response =>{
313
           if(response.data.state == 1){
316
           if(response.data.state == 1){
314
             const list = response.data.data.list
317
             const list = response.data.data.list
336
               this.total = response.data.data.total
339
               this.total = response.data.data.total
337
             }
340
             }
338
           }
341
           }
342
+          this.loading =false
339
           console.log('77777血压表格',response);
343
           console.log('77777血压表格',response);
340
         })
344
         })
341
       },
345
       },

+ 5 - 2
src/xt_pages/Dialysisanalysis/weightblood/components/dialyze_after.vue 查看文件

152
           <el-table :data="tableData" border style="width: 100%"
152
           <el-table :data="tableData" border style="width: 100%"
153
           :header-cell-style="{textAlign: 'center'}"
153
           :header-cell-style="{textAlign: 'center'}"
154
           :cell-style="{ textAlign: 'center' }"
154
           :cell-style="{ textAlign: 'center' }"
155
+          v-loading="loading"
155
           height="380">
156
           height="380">
156
             <el-table-column
157
             <el-table-column
157
               prop="index"
158
               prop="index"
255
         dry_value:0,
256
         dry_value:0,
256
         after_value:0,
257
         after_value:0,
257
         after_options:[],
258
         after_options:[],
258
-        Patient_name:'',
259
         date_options:[{value:1,label:'最近七天'},{value:2,label:'本周'},{value:3,label:'上周'},{value:4,label:'本月'},
259
         date_options:[{value:1,label:'最近七天'},{value:2,label:'本周'},{value:3,label:'上周'},{value:4,label:'本月'},
260
                       {value:5,label:'上月'},{value:6,label:'本年'},{value:7,label:'上一年'}
260
                       {value:5,label:'上月'},{value:6,label:'本年'},{value:7,label:'上一年'}
261
         ],
261
         ],
266
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
266
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
267
 
267
 
268
         Patient_name:'',
268
         Patient_name:'',
269
+        loading:false,
269
       }
270
       }
270
     },
271
     },
271
     methods:{
272
     methods:{
505
           page:this.currentPage,
506
           page:this.currentPage,
506
           limit:this.limit,
507
           limit:this.limit,
507
         }
508
         }
509
+        this.loading = true
508
         Getweightdetail(params).then(response =>{
510
         Getweightdetail(params).then(response =>{
509
           if(response.data.state == 1){
511
           if(response.data.state == 1){
510
             const list = response.data.data.list
512
             const list = response.data.data.list
521
                   dry_weight:item.dry_weight,
523
                   dry_weight:item.dry_weight,
522
                   last_weight_after:item.last_weight_after,
524
                   last_weight_after:item.last_weight_after,
523
                   weight_before:item.weight_before,
525
                   weight_before:item.weight_before,
524
-                  weight_add:item.weight_add,
526
+                  weight_add:(item.weight_add*1).toFixed(2),
525
                   weight_after:item.weight_after
527
                   weight_after:item.weight_after
526
                 }
528
                 }
527
                 table.push(obj)
529
                 table.push(obj)
530
               this.total = response.data.data.total
532
               this.total = response.data.data.total
531
             }
533
             }
532
           }
534
           }
535
+          this.loading = false
533
           console.log('77777',response);
536
           console.log('77777',response);
534
         })
537
         })
535
       },
538
       },

+ 5 - 1
src/xt_pages/Dialysisanalysis/weightblood/components/dry_denominator.vue 查看文件

153
           <el-table :data="tableData" border style="width: 100%"
153
           <el-table :data="tableData" border style="width: 100%"
154
           :header-cell-style="{textAlign: 'center'}"
154
           :header-cell-style="{textAlign: 'center'}"
155
           :cell-style="{ textAlign: 'center' }"
155
           :cell-style="{ textAlign: 'center' }"
156
+          v-loading="loading"
156
           height="380">
157
           height="380">
157
             <el-table-column
158
             <el-table-column
158
               prop="index"
159
               prop="index"
268
 
269
 
269
 
270
 
270
         input:'',
271
         input:'',
272
+        loading:false
271
       }
273
       }
272
     },
274
     },
273
     methods:{
275
     methods:{
507
           page:this.currentPage,
509
           page:this.currentPage,
508
           limit:this.limit,
510
           limit:this.limit,
509
         }
511
         }
512
+        this.loading = true
510
         Getweightdetail(params).then(response =>{
513
         Getweightdetail(params).then(response =>{
511
           if(response.data.state == 1){
514
           if(response.data.state == 1){
512
             const list = response.data.data.list
515
             const list = response.data.data.list
523
                   dry_weight:item.dry_weight,
526
                   dry_weight:item.dry_weight,
524
                   last_weight_after:item.last_weight_after,
527
                   last_weight_after:item.last_weight_after,
525
                   weight_before:item.weight_before,
528
                   weight_before:item.weight_before,
526
-                  weight_add:item.weight_add,
529
+                  weight_add:(item.weight_add*1).toFixed(2),
527
                   weight_after:item.weight_after
530
                   weight_after:item.weight_after
528
                 }
531
                 }
529
                 table.push(obj)
532
                 table.push(obj)
531
               this.tableData = table
534
               this.tableData = table
532
               this.total = response.data.data.total
535
               this.total = response.data.data.total
533
             }
536
             }
537
+            this.loading = false
534
           }
538
           }
535
           console.log('77777',response);
539
           console.log('77777',response);
536
         })
540
         })

+ 7 - 0
src/xt_pages/Dialysisanalysis/weightblood/components/dry_weight.vue 查看文件

129
               style="width: 100%;"
129
               style="width: 100%;"
130
               :header-cell-style = "{'text-align':'center'}"
130
               :header-cell-style = "{'text-align':'center'}"
131
               :cell-style="{'text-align':'center'}"
131
               :cell-style="{'text-align':'center'}"
132
+              v-loading="loading"
132
               height="380">
133
               height="380">
133
               <el-table-column
134
               <el-table-column
134
                 prop="index"
135
                 prop="index"
221
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
222
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
222
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
223
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
223
         status_id:"",
224
         status_id:"",
225
+        loading:false,
224
       }
226
       }
225
     },
227
     },
226
     methods:{
228
     methods:{
338
       },
340
       },
339
       // 查询
341
       // 查询
340
       sete_click(){
342
       sete_click(){
343
+        
341
         this.getecharts()
344
         this.getecharts()
342
       },
345
       },
343
       // 详情查询
346
       // 详情查询
344
       detil_click(){
347
       detil_click(){
348
+        
345
         this.currentPage =1
349
         this.currentPage =1
346
         this.getdetail(this.status_value)
350
         this.getdetail(this.status_value)
351
+        
347
       },
352
       },
348
        // 下载
353
        // 下载
349
       Download_click(){
354
       Download_click(){
405
           page:this.currentPage,
410
           page:this.currentPage,
406
           limit:this.limit,
411
           limit:this.limit,
407
         }
412
         }
413
+        this.loading = true
408
         Getweightdetail(params).then(response =>{
414
         Getweightdetail(params).then(response =>{
409
           if(response.data.state ==1){
415
           if(response.data.state ==1){
410
             const list = response.data.data.list
416
             const list = response.data.data.list
424
               this.tableData = table
430
               this.tableData = table
425
               this.total = response.data.data.total
431
               this.total = response.data.data.total
426
             }
432
             }
433
+            this.loading = false
427
           }
434
           }
428
           console.log('555553333干体重',response);
435
           console.log('555553333干体重',response);
429
         })
436
         })

+ 5 - 2
src/xt_pages/Dialysisanalysis/weightblood/components/list_denominator.vue 查看文件

152
           <el-table :data="tableData" border style="width: 100%"
152
           <el-table :data="tableData" border style="width: 100%"
153
           :header-cell-style="{textAlign: 'center'}"
153
           :header-cell-style="{textAlign: 'center'}"
154
           :cell-style="{ textAlign: 'center' }"
154
           :cell-style="{ textAlign: 'center' }"
155
+          v-loading="loading"
155
           height="380">
156
           height="380">
156
             <el-table-column
157
             <el-table-column
157
               prop="index"
158
               prop="index"
265
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
266
         date_mode_options:[{value:1,label:'按周'},{value:2,label:'按天'},{value:3,label:'按月'},{value:4,label:'按年'}],
266
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
267
         source_options:[{value:1,label:'以开始透析为准'},{value:2,label:'以排班为准'}],
267
 
268
 
268
-
269
         input:'',
269
         input:'',
270
+        loading:false,
270
       }
271
       }
271
     },
272
     },
272
     methods:{
273
     methods:{
510
           page:this.currentPage,
511
           page:this.currentPage,
511
           limit:this.limit,
512
           limit:this.limit,
512
         }
513
         }
514
+        this.loading = true
513
         Getweightdetail(params).then(response =>{
515
         Getweightdetail(params).then(response =>{
514
           console.log('77777',response);
516
           console.log('77777',response);
515
           if(response.data.state == 1){
517
           if(response.data.state == 1){
527
                   dry_weight:item.dry_weight,
529
                   dry_weight:item.dry_weight,
528
                   last_weight_after:item.last_weight_after,
530
                   last_weight_after:item.last_weight_after,
529
                   weight_before:item.weight_before,
531
                   weight_before:item.weight_before,
530
-                  weight_add:item.weight_add,
532
+                  weight_add:(item.weight_add*1).toFixed(2),
531
                   weight_after:item.weight_after
533
                   weight_after:item.weight_after
532
                 }
534
                 }
533
                 table.push(obj)
535
                 table.push(obj)
535
               this.tableData = table
537
               this.tableData = table
536
               this.total = response.data.data.total
538
               this.total = response.data.data.total
537
             }
539
             }
540
+            this.loading = false
538
           }
541
           }
539
 
542
 
540
         })
543
         })

+ 6 - 2
src/xt_pages/Dialysisanalysis/weightblood/components/weight_table.vue 查看文件

92
         <el-table :data="tableData" border style="width: 100%"
92
         <el-table :data="tableData" border style="width: 100%"
93
           :header-cell-style="{textAlign: 'center'}"
93
           :header-cell-style="{textAlign: 'center'}"
94
           :cell-style="{ textAlign: 'center' }"
94
           :cell-style="{ textAlign: 'center' }"
95
+          v-loading="loading"
95
           height="380">
96
           height="380">
96
             <el-table-column
97
             <el-table-column
97
               prop="index"
98
               prop="index"
208
         weight_value:0,
209
         weight_value:0,
209
         dry_value:0,
210
         dry_value:0,
210
         after_value:0,
211
         after_value:0,
212
+        loading:false
211
         // after_options:[],
213
         // after_options:[],
212
-        Patient_name:'',
214
+
213
       }
215
       }
214
     },
216
     },
215
     methods:{
217
     methods:{
359
           page:this.currentPage,
361
           page:this.currentPage,
360
           limit:this.limit,
362
           limit:this.limit,
361
         }
363
         }
364
+        this.loading = true
362
         Getweightdetail(params).then(response =>{
365
         Getweightdetail(params).then(response =>{
363
           if(response.data.state == 1){
366
           if(response.data.state == 1){
364
             console.log('体重详情分析',response.data.data);
367
             console.log('体重详情分析',response.data.data);
376
                   dry_weight:item.dry_weight,
379
                   dry_weight:item.dry_weight,
377
                   last_weight_after:item.last_weight_after,
380
                   last_weight_after:item.last_weight_after,
378
                   weight_before:item.weight_before,
381
                   weight_before:item.weight_before,
379
-                  weight_add:item.weight_add,
382
+                  weight_add:(item.weight_add*1).toFixed(2),
380
                   weight_after:item.weight_after
383
                   weight_after:item.weight_after
381
                 }
384
                 }
382
                 table.push(obj)
385
                 table.push(obj)
385
               this.total = response.data.data.total
388
               this.total = response.data.data.total
386
             }
389
             }
387
           }
390
           }
391
+          this.loading = false
388
           console.log('77777',response);
392
           console.log('77777',response);
389
         })
393
         })
390
       },
394
       },

+ 1 - 1
src/xt_pages/Dialysisanalysis/weightblood/index.vue 查看文件

49
       this.indicators = []
49
       this.indicators = []
50
       getStatisticsList(params).then(response => {
50
       getStatisticsList(params).then(response => {
51
         if (response.data.state == 1) {
51
         if (response.data.state == 1) {
52
-          this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
52
+          // this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
53
           console.log('444444444',this.indicators);
53
           console.log('444444444',this.indicators);
54
           for(let i = 0; i < this.indicators.length; i++){
54
           for(let i = 0; i < this.indicators.length; i++){
55
             this.indicators[i]["check_type"] = 1
55
             this.indicators[i]["check_type"] = 1

+ 27 - 30
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue 查看文件

19
           class="print_page_main_content"
19
           class="print_page_main_content"
20
         >
20
         >
21
           <div style="display: inline-block; width: 100%; text-align: center">
21
           <div style="display: inline-block; width: 100%; text-align: center">
22
-            <div
23
-              class="order-yy-name"
24
-              style="
25
-                letter-spacing: 0;
22
+            <div class="order-yy-name"
23
+              style="letter-spacing: 0;
26
                 font-weight: 600;
24
                 font-weight: 600;
27
-                font-size: 22px;
25
+                font-size: 25px;
28
                 display: inline-block;
26
                 display: inline-block;
29
               "
27
               "
30
             >
28
             >
32
             </div>
30
             </div>
33
           </div>
31
           </div>
34
           
32
           
35
-          <div class="row">
36
-            <div class="inline_block">
37
-              姓名
33
+          <div class="row" style="display: flex">
34
+            <div class="inline_block" style="flex: 1;">
35
+              姓名:
38
               <div class="under_line" style="width: 50px; text-align: center">
36
               <div class="under_line" style="width: 50px; text-align: center">
39
                 {{ record.patient.name }}
37
                 {{ record.patient.name }}
40
               </div>
38
               </div>
41
             </div>
39
             </div>
42
-            <div class="inline_block" style="margin-left: 10px">
43
-              性别
40
+            <div class="inline_block" style="flex: 1;">
41
+              性别:
44
               <div class="under_line" style="width: 30px; text-align: center">
42
               <div class="under_line" style="width: 30px; text-align: center">
45
                 {{ record.patient.gender == 1 ? "男" : "女" }}
43
                 {{ record.patient.gender == 1 ? "男" : "女" }}
46
               </div>
44
               </div>
47
             </div>
45
             </div>
48
-            <div class="inline_block" style="margin-left: 10px">
49
-              年龄
46
+            <div class="inline_block" style="flex: 1;">
47
+              年龄:
50
               <div class="under_line" style="width: 30px; text-align: center">
48
               <div class="under_line" style="width: 30px; text-align: center">
51
                 <!-- {{ record.patient.age }} -->
49
                 <!-- {{ record.patient.age }} -->
52
                 {{ getAge(record.patient) }}
50
                 {{ getAge(record.patient) }}
53
               </div>
51
               </div>
54
52
55
             </div>
53
             </div>
56
-            <div class="inline_block" v-if="record.receive_assessment.condition!=1">
57
-                门诊
54
+            <div class="inline_block" v-if="record.receive_assessment.condition!=1" style="flex: 1;">
55
+                门诊:
58
                 <div class="under_line" style="width: 30px; text-align: center">
56
                 <div class="under_line" style="width: 30px; text-align: center">
59
                   <check-box :checked="record.patient.source == 1"></check-box>
57
                   <check-box :checked="record.patient.source == 1"></check-box>
60
                 </div>
58
                 </div>
61
               </div>
59
               </div>
62
-            <div class="inline_block" v-if="record.receive_assessment.condition==1">
63
-              住院
60
+            <div class="inline_block" v-if="record.receive_assessment.condition==1" style="flex: 1;">
61
+              住院:
64
               <div class="under_line" style="width: 30px; text-align: center">
62
               <div class="under_line" style="width: 30px; text-align: center">
65
                 <check-box :checked="record.patient.source == 1"></check-box>
63
                 <check-box :checked="record.patient.source == 1"></check-box>
66
               </div>
64
               </div>
67
             </div>
65
             </div>
68
-            <div class="inline_block">
69
-              病区
66
+            <div class="inline_block" style="flex: 1;">
67
+              病区:
70
               <div class="under_line" style="width: 50px; text-align: center">
68
               <div class="under_line" style="width: 50px; text-align: center">
71
                 {{ record.device_zone.name}}
69
                 {{ record.device_zone.name}}
72
               </div>
70
               </div>
73
             </div>
71
             </div>
74
-            <div class="inline_block">
75
-              床号
72
+            <div class="inline_block" style="flex: 1;">
73
+              床号:
76
               <div class="under_line" style="width: 50px; text-align: center">
74
               <div class="under_line" style="width: 50px; text-align: center">
77
                 {{ record.device_number.number }}
75
                 {{ record.device_number.number }}
78
               </div>
76
               </div>
79
             </div>
77
             </div>
80
-            <div class="inline_block">
81
-              透析号
78
+            <div class="inline_block" style="flex: 1;">
79
+              透析号:
82
               <div class="under_line" style="width: 70px; text-align: center">
80
               <div class="under_line" style="width: 70px; text-align: center">
83
                 {{ record.patient.dialysis_no }}
81
                 {{ record.patient.dialysis_no }}
84
               </div>
82
               </div>
85
             </div>
83
             </div>
86
-            <div class="inline_block" style="margin-left: 5px">
87
-              住院号
84
+            <div class="inline_block" style="flex: 1;">
85
+              住院号:
88
               <div
86
               <div
89
                 class="under_line"
87
                 class="under_line"
90
                 style="width: 70px; text-align: left"
88
                 style="width: 70px; text-align: left"
103
           </div>
101
           </div>
104
           <div class="row">
102
           <div class="row">
105
             <div style="">
103
             <div style="">
106
-              诊断
104
+              诊断:
107
               <div style="border-bottom: 1px solid black;width: 95%;text-align: left;word-break: break-all;
105
               <div style="border-bottom: 1px solid black;width: 95%;text-align: left;word-break: break-all;
108
                   word-wrap: break-word;display: inline-block;white-space: unset;"
106
                   word-wrap: break-word;display: inline-block;white-space: unset;"
109
               >
107
               >
1206
                 </tr>
1204
                 </tr>
1207
                 <tr>
1205
                 <tr>
1208
                   <td>
1206
                   <td>
1209
-                    <div class="row"
1210
-                      style="padding: 2px 0; line-height: 23px; display: flex"
1211
-                    >
1207
+                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"
1208
+>
1212
                       <div class="inline_block" style="flex: 1">
1209
                       <div class="inline_block" style="flex: 1">
1213
                         上机护士:
1210
                         上机护士:
1214
                         <div class="under_line"
1211
                         <div class="under_line"
1409
 
1406
 
1410
                       <div class="inline_block" style="flex: 1">
1407
                       <div class="inline_block" style="flex: 1">
1411
                         上机时间
1408
                         上机时间
1412
-                        <div class="under_line" style="width: 80px; text-align: center">
1409
+                        <div class="under_line" style="width: 65%; text-align: center">
1413
                           <span style="height: 30px;display: inline-block;"></span>
1410
                           <span style="height: 30px;display: inline-block;"></span>
1414
                           
1411
                           
1415
                           <span v-if="record.dialysis_order !=null">
1412
                           <span v-if="record.dialysis_order !=null">
1420
                       </div>
1417
                       </div>
1421
                       <div class="inline_block" style="flex: 1">
1418
                       <div class="inline_block" style="flex: 1">
1422
                         下机时间:
1419
                         下机时间:
1423
-                        <div class="under_line" style="width: 80px; text-align: center">
1420
+                        <div class="under_line" style="width: 65%; text-align: center">
1424
                           <span style="height: 30px; display: inline-block">
1421
                           <span style="height: 30px; display: inline-block">
1425
                           </span>
1422
                           </span>
1426
                           <span v-if="record.dialysis_order!=null">
1423
                           <span v-if="record.dialysis_order!=null">

+ 381 - 374
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue 查看文件

10
       >
10
       >
11
         <div style="display: inline-block; width: 100%; text-align: center">
11
         <div style="display: inline-block; width: 100%; text-align: center">
12
           <div class="order-yy-name"
12
           <div class="order-yy-name"
13
-            style=" letter-spacing: 0;font-weight: 600;font-size: 22px;display: inline-block; "
13
+            style=" letter-spacing: 0;font-weight: 600;font-size: 25px;display: inline-block; "
14
           >
14
           >
15
             {{ orgname }}
15
             {{ orgname }}
16
           </div>
16
           </div>
17
           <div class="order-title"
17
           <div class="order-title"
18
-            style=" letter-spacing: 0; font-weight: 600; font-size: 22px;"
18
+            style=" letter-spacing: 0; font-weight: 600; font-size: 25px;"
19
           >
19
           >
20
             血液净化治疗记录单
20
             血液净化治疗记录单
21
           </div>
21
           </div>
22
         </div>
22
         </div>
23
-        <div class="row">
24
-          <div class="inline_block">
25
-            姓名
23
+        <div class="row" style="display: flex">
24
+          <div class="inline_block" style="flex: 1;">
25
+            姓名:
26
             <div class="under_line" style="width: 50px; text-align: center">
26
             <div class="under_line" style="width: 50px; text-align: center">
27
               {{ patientInfo.name }}
27
               {{ patientInfo.name }}
28
             </div>
28
             </div>
29
           </div>
29
           </div>
30
-          <div class="inline_block" style="margin-left: 10px">
31
-            性别
30
+          <div class="inline_block" style="flex: 1;">
31
+            性别:
32
             <div class="under_line" style="width: 30px; text-align: center">
32
             <div class="under_line" style="width: 30px; text-align: center">
33
               {{ patientInfo_gender_1 ? "男" : "女" }}
33
               {{ patientInfo_gender_1 ? "男" : "女" }}
34
             </div>
34
             </div>
35
           </div>
35
           </div>
36
-          <div class="inline_block" style="margin-left: 10px">
37
-            年龄
36
+          <div class="inline_block" style="flex: 1;">
37
+            年龄:
38
             <div class="under_line" style="width: 30px; text-align: center">
38
             <div class="under_line" style="width: 30px; text-align: center">
39
               {{ getAge(patientInfo) }}
39
               {{ getAge(patientInfo) }}
40
             </div>
40
             </div>
41
41
42
           </div>
42
           </div>
43
-          <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
44
-            门诊
43
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1" style="flex: 1;">
44
+            门诊:
45
             <div class="under_line" style="width: 30px; text-align: center">
45
             <div class="under_line" style="width: 30px; text-align: center">
46
               <check-box :checked="patientInfo_source_1"></check-box>
46
               <check-box :checked="patientInfo_source_1"></check-box>
47
             </div>
47
             </div>
48
           </div>
48
           </div>
49
-          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
50
-            住院
49
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1" style="flex: 1;">
50
+            住院:
51
             <div class="under_line" style="width: 30px; text-align: center">
51
             <div class="under_line" style="width: 30px; text-align: center">
52
               <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
52
               <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
53
             </div>
53
             </div>
54
           </div>
54
           </div>
55
-          <div class="inline_block">
56
-            病区
55
+          <div class="inline_block" style="flex: 1;">
56
+            病区:
57
             <div class="under_line" style="width: 50px; text-align: center">
57
             <div class="under_line" style="width: 50px; text-align: center">
58
               <span v-if="receiverTreatmentAccess.condition != 1">{{
58
               <span v-if="receiverTreatmentAccess.condition != 1">{{
59
                 patientInfo.DialysisSchedule.device_zone.name
59
                 patientInfo.DialysisSchedule.device_zone.name
62
               }}</span>
62
               }}</span>
63
             </div>
63
             </div>
64
           </div>
64
           </div>
65
-          <div class="inline_block">
66
-            床号
65
+          <div class="inline_block" style="flex: 1;">
66
+            床号:
67
             <div class="under_line" style="width: 50px; text-align: center">
67
             <div class="under_line" style="width: 50px; text-align: center">
68
               <span>{{
68
               <span>{{
69
                 dialysisOrder &&
69
                 dialysisOrder &&
74
               }}</span>
74
               }}</span>
75
             </div>
75
             </div>
76
           </div>
76
           </div>
77
-          <div class="inline_block">
78
-            透析号
77
+          <div class="inline_block" style="flex: 1;">
78
+            透析号:
79
             <div class="under_line" style="width: 70px; text-align: center">
79
             <div class="under_line" style="width: 70px; text-align: center">
80
               {{ patientInfo.dialysis_no }}
80
               {{ patientInfo.dialysis_no }}
81
             </div>
81
             </div>
82
           </div>
82
           </div>
83
-          <div class="inline_block" style="margin-left: 5px;">
84
-            住院号
83
+          <div class="inline_block" style="flex: 1;">
84
+            住院号:
85
             <div class="under_line" style="width: 70px;text-align: left">
85
             <div class="under_line" style="width: 70px;text-align: left">
86
               {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number :'/' }}
86
               {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number :'/' }}
87
             </div>
87
             </div>
89
         </div>
89
         </div>
90
         <div class="row">
90
         <div class="row">
91
           <div style="">
91
           <div style="">
92
-            诊断
92
+            诊断:
93
             <div style="border-bottom: 1px solid black; width: 95%; text-align: left;word-wrap: break-word;
93
             <div style="border-bottom: 1px solid black; width: 95%; text-align: left;word-wrap: break-word;
94
                 white-space: inherit;display: inline-block;"
94
                 white-space: inherit;display: inline-block;"
95
             >
95
             >
976
                     </div>
976
                     </div>
977
                   </div>
977
                   </div>
978
 
978
 
979
-                  <div class="row"
980
-                    style="padding: 2px 0; line-height: 23px; display: flex"
981
-                  >
979
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
982
                     <div class="inline_block" style="flex: 1">
980
                     <div class="inline_block" style="flex: 1">
983
                       透后体重:
981
                       透后体重:
984
                       <div class="under_line"
982
                       <div class="under_line"
1000
 
998
 
1001
                     <div class="inline_block" style="flex: 1">
999
                     <div class="inline_block" style="flex: 1">
1002
                       体重减少:
1000
                       体重减少:
1003
-                      <div
1004
-                        class="under_line"
1001
+                      <div class="under_line"
1005
                         style="width: 70px; text-align: center"
1002
                         style="width: 70px; text-align: center"
1006
                       >
1003
                       >
1007
                         <!-- <span v-if="org_id!=10598 && org_id!=10551">{{
1004
                         <!-- <span v-if="org_id!=10598 && org_id!=10551">{{
1102
                   <div class="row"
1099
                   <div class="row"
1103
                     style="padding: 2px 0; line-height: 23px; display: flex"
1100
                     style="padding: 2px 0; line-height: 23px; display: flex"
1104
                   >
1101
                   >
1105
-                    <div>
1106
-                      <div class="inline_block" style="flex: 1">
1107
-                        上机护士:
1108
-                        <div  class="under_line"
1109
-                          style="width: 90px; text-align: center"
1102
+                  
1103
+                    <div class="inline_block" style="flex: 1">
1104
+                      上机护士:
1105
+                      <div  class="under_line"
1106
+                        style="width: 90px; text-align: center"
1107
+                      >
1108
+                        <span
1109
+                          style="height: 30px; display: inline-block"
1110
+                          v-if="
1111
+                            setAdminUserES(
1112
+                              dialysisOrder == null
1113
+                                ? 0
1114
+                                : dialysisOrder.start_nurse
1115
+                            ) == ''
1116
+                          "
1110
                         >
1117
                         >
1111
-                          <span
1112
-                            style="height: 30px; display: inline-block"
1113
-                            v-if="
1114
-                              setAdminUserES(
1115
-                                dialysisOrder == null
1116
-                                  ? 0
1117
-                                  : dialysisOrder.start_nurse
1118
-                              ) == ''
1119
-                            "
1120
-                          >
1121
-                            {{
1122
-                              getAdminUser(
1123
-                                dialysisOrder == null
1124
-                                  ? 0
1125
-                                  : dialysisOrder.start_nurse
1126
-                              )
1127
-                            }}</span
1128
-                          >
1129
-                          <img
1130
-                            style="height: 30px"
1131
-                            :src="
1132
-                              setAdminUserES(
1133
-                                dialysisOrder == null
1134
-                                  ? 0
1135
-                                  : dialysisOrder.start_nurse
1136
-                              )
1137
-                            "
1138
-                            alt=""
1139
-                            srcset=""
1140
-                            v-else
1141
-                          />
1142
-                        </div>
1118
+                          {{
1119
+                            getAdminUser(
1120
+                              dialysisOrder == null
1121
+                                ? 0
1122
+                                : dialysisOrder.start_nurse
1123
+                            )
1124
+                          }}</span
1125
+                        >
1126
+                        <img
1127
+                          style="height: 30px"
1128
+                          :src="
1129
+                            setAdminUserES(
1130
+                              dialysisOrder == null
1131
+                                ? 0
1132
+                                : dialysisOrder.start_nurse
1133
+                            )
1134
+                          "
1135
+                          alt=""
1136
+                          srcset=""
1137
+                          v-else
1138
+                        />
1143
                       </div>
1139
                       </div>
1144
                     </div>
1140
                     </div>
1141
+                    
1145
 
1142
 
1146
                     <div class="inline_block" style="flex: 1">
1143
                     <div class="inline_block" style="flex: 1">
1147
                       <span>核对护士:</span>
1144
                       <span>核对护士:</span>
1296
                     <div class="inline_block" style="flex: 1">
1293
                     <div class="inline_block" style="flex: 1">
1297
                        上机时间
1294
                        上机时间
1298
                       <div class="under_line"
1295
                       <div class="under_line"
1299
-                        style="width: 80px; text-align: center"
1296
+                        style="width: 65%; text-align: center"
1300
                       >
1297
                       >
1301
                         <span style="height: 30px;display: inline-block;">
1298
                         <span style="height: 30px;display: inline-block;">
1302
                           
1299
                           
1311
                     <div class="inline_block" style="flex: 1">
1308
                     <div class="inline_block" style="flex: 1">
1312
                       下机时间:
1309
                       下机时间:
1313
                       <div class="under_line"
1310
                       <div class="under_line"
1314
-                        style="width: 80px; text-align: center"
1311
+                        style="width: 65%; text-align: center"
1315
                       >
1312
                       >
1316
                         <span style="height: 30px; display: inline-block">
1313
                         <span style="height: 30px; display: inline-block">
1317
                         </span>
1314
                         </span>
2271
     };
2268
     };
2272
   },
2269
   },
2273
   methods: {
2270
   methods: {
2274
-      toUpload() {
2275
-
2276
-        let dom = document.getElementById("dialysis-print-box-1")
2277
-        //调用方法下载
2278
-        html2canvas(dom, {
2279
-          useCORS: true, //允许跨域
2280
-          allowTaint: false,
2281
-          logging: false,
2282
-          letterRendering: true,
2283
-          ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
2284
-          scale: 4, //按比例增加分辨率
2285
-          background: '#fff',//pdf背景色为白色,默认是黑色的
2286
-        }).then((canvas) => {
2287
-          //返回图片dataURL,参数:图片格式和清晰度(0-1)
2288
-          var pageData = canvas.toDataURL('image/jpeg', 1.0);
2289
-
2290
-          //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2291
-          var pdf = new jsPDF('', 'pt', 'a4');
2292
-
2293
-          //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2294
-          //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2295
-          pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2296
-
2297
-          console.log("pdf222222222222222222",pdf)
2298
-
2299
-          var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2300
-          // console.log("base63",newBase64Data)
2301
-          const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2302
-          console.log("blobwoowowowwo",blob)
2303
-          this.openPdf(blob);
2304
-
2305
-          // var data = {
2306
-          //   name:newBase64Data,
2307
-          // }
2308
-          // UploadPrintOrder(data).then(response=>{
2309
-          //   if(response.data.state == 1){
2310
-          //     var sign =  response.data.data.sign
2311
-          //     console.log("SIGNWWOOWWO")
2312
-          //     var pdfBase64 = response.data.data.pdfBase64
2313
-          //     console.log("pdfBase64",pdfBase64)
2314
-          //     this.$message.success("保存成功!")
2315
-          //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
2316
-          //     this.openPdf(blob);
2317
-          //   }
2318
-          // })
2319
-
2320
-          // this.viewPdf(newBase64Data)
2321
-          //保存到pdf,名字是stone
2322
-          // pdf.save('stone.pdf');
2323
-
2324
-        });
2325
-      },
2326
-
2327
-     viewPdf(content) {
2328
-       console.log("content",content);
2329
-       const blob = this.base64ToBlob(content);
2330
-       if (window.navigator && window.navigator.msSaveOrOpenBlob) {
2331
-         window.navigator.msSaveOrOpenBlob(blob);
2332
-       } else {
2333
-         const fileURL = URL.createObjectURL(blob);
2334
-         console.log("fileUlrwowowoow",fileURL)
2335
-         window.open(fileURL);//打开ppf文件
2336
-       }
2337
-     },
2338
-     compare (property) {
2339
-       return function (a, b) {
2340
-           var value1 = a[property]
2341
-           var value2 = b[property]
2342
-           return value1 - value2
2343
-       }
2344
-     },
2345
-
2346
-     openPdf(blob) {
2347
-       const objectUrl = URL.createObjectURL(blob);
2348
-       const a = document.createElement('a');
2349
-       a.href = objectUrl;
2350
-       a.target = '_blank';
2351
-       a.click();
2352
-       URL.revokeObjectURL(objectUrl);
2353
-     },
2354
-      base64ToBlob(base64Data, contentType) {
2355
-       contentType = contentType || '';
2356
-       const sliceSize = 1024;
2357
-       const byteCharacters = window.atob(base64Data);
2358
-       const bytesLength = byteCharacters.length;
2359
-       const slicesCount = Math.ceil(bytesLength / sliceSize);
2360
-       const byteArrays = new Array(slicesCount);
2361
-
2362
-       for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2363
-         const begin = sliceIndex * sliceSize;
2364
-         const end = Math.min(begin + sliceSize, bytesLength);
2365
-
2366
-         const bytes = new Array(end - begin);
2367
-         for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2368
-           bytes[i] = byteCharacters[offset].charCodeAt(0);
2369
-         }
2370
-         byteArrays[sliceIndex] = new Uint8Array(bytes);
2371
-       }
2372
-
2373
-       return new Blob(byteArrays, {
2374
-         type: contentType
2375
-       });
2376
-     },
2377
-
2378
-     UploadPdf(res) {
2379
-       let pdfBase64Str = res;
2380
-       let title = "上传给后端的个人报告";
2381
-       var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
2382
-       console.log("myfile",myfile)
2383
-     },
2384
-    // 获取当前年份,用于年龄计算
2385
-    getoldAge() {
2386
-      let date = new Date();
2387
-      let year = date.getFullYear();
2388
-      let year_d =
2389
-        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2390
-      let year_m = this.xtdate.split("-")[1];
2391
-      let birth_m = this.patientInfo.birth.split("-")[1];
2392
-      let year_date = this.xtdate.split("-")[2];
2393
-      let birth_date = this.patientInfo.birth.split("-")[2];
2394
-      // console.log(year,'今年年月')
2395
-      // console.log(this.xtdate.split('-'),'病人就诊年月')
2396
-      console.log(this.patientInfo.birth, "病人生日");
2397
-      // console.log(year_d,'year_d')
2398
-      if (year_m < birth_m) {
2399
-        return year_d - 1;
2400
-      } else if (year_m == birth_m) {
2401
-        if (year_date < birth_date) {
2402
-          return year_d - 1;
2403
-        } else {
2404
-          return year_d;
2405
-        }
2406
-      } else {
2407
-        return year_d;
2408
-      }
2409
-    },
2410
-
2411
     checkData() {
2271
     checkData() {
2412
-      if (this.receiverTreatmentAccess.way == 0) {
2413
-        this.$message.error("入科方式未填");
2414
-      } else if (this.predialysis.symptom_before_dialysis == "") {
2415
-        this.$message.error("透前症状未填");
2416
-      } else if (this.predialysis.temperature == "") {
2417
-        this.$message.error("透前体温未填");
2418
-      } else if (this.predialysis.pulse_frequency == "") {
2419
-        this.$message.error("透前脉搏未填");
2420
-      } else if (this.predialysis.breathing_rate == "") {
2421
-        this.$message.error("透前呼吸频率未填");
2422
-      } else if (
2272
+      var checkDate =[]
2273
+      if(this.dialysisOrder && this.dialysisOrder.bed_id == 0 &&
2274
+        this.patientInfo.DialysisSchedule.bed_id == 0
2275
+      ){
2276
+        const obj = "透析机型号"
2277
+        checkDate.push(obj)
2278
+      }
2279
+      if (this.predialysis.temperature == '') {
2280
+        const obj1 = "透前体温"
2281
+        checkDate.push(obj1)
2282
+      } if (this.predialysis.pulse_frequency == "") {
2283
+        const obj2 = "透前脉搏"
2284
+        checkDate.push(obj2)
2285
+      } if (this.predialysis.breathing_rate == "") {
2286
+         const obj3 = "透前呼吸"
2287
+         checkDate.push(obj3)
2288
+      } if (
2423
         this.predialysis.systolic_blood_pressure == 0 ||
2289
         this.predialysis.systolic_blood_pressure == 0 ||
2424
         this.predialysis.diastolic_blood_pressure == 0
2290
         this.predialysis.diastolic_blood_pressure == 0
2425
       ) {
2291
       ) {
2426
-        this.$message.error("透前血压未填完整");
2427
-      } else if (this.predialysis.puncture_way == "") {
2428
-        this.$message.error("穿刺方式未填");
2429
-      } else if (this.predialysis.puncture_needle == "") {
2430
-        this.$message.error("穿刺针未填");
2431
-      } else if (
2432
-        this.predialysis.blood_access_part_id == "" &&
2433
-        this.predialysis.blood_access_part_opera_name == ""
2292
+        const obj4 = "透前血压"
2293
+        checkDate.push(obj4)
2294
+      } if (this.prescription.dialysis_duration_hour == 0 && 
2295
+            this.prescription.dialysis_duration_minute ==0
2434
       ) {
2296
       ) {
2435
-        this.$message.error("血管通路未填");
2436
-      } else if (this.predialysis.internal_fistula == "") {
2437
-        this.$message.error("透前内瘘未填");
2438
-      } else if (this.predialysis.catheter == "") {
2439
-        this.$message.error("透前导管未填");
2440
-      } else if (this.prescription.mode_id == "") {
2441
-        this.$message.error("透析方式未填");
2442
-      } else if (
2443
-        this.prescription.displace_liqui_part == 0 &&
2444
-        this.prescription.mode_id == 2
2297
+        const obj5 = "透析时间"
2298
+        checkDate.push(obj5)
2299
+      } if (this.prescription.mode == "") {
2300
+        const obj6 = "透析方式"
2301
+        checkDate.push(obj6)
2302
+      } if (this.predialysis.blood_access_part_opera_name =='' ) {
2303
+        const obj7 = "血管通路"
2304
+        checkDate.push(obj7)
2305
+      } if (this.predialysis.catheter == '' ) {
2306
+        const obj8 = "导管"
2307
+        checkDate.push(obj8)
2308
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
2309
+            this.prescription.dialysis_dialyszers ==''
2445
       ) {
2310
       ) {
2446
-        this.$message.error("置换方式未填");
2447
-      } else if (
2448
-        this.prescription.displace_liqui_value == 0 &&
2449
-        this.prescription.mode_id == 2
2311
+        const obj9 = "透析(滤)器"
2312
+        checkDate.push(obj9)
2313
+      } if (this.prescription.dialysis_irrigation == '') {
2314
+        const obj10 = "灌流器"
2315
+        checkDate.push(obj10)
2316
+      } if (this.prescription.displace_liqui_part == ""&&
2317
+            (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)
2450
       ) {
2318
       ) {
2451
-        this.$message.error("置换量未填");
2452
-      } else if (this.prescription.blood_flow_volume == 0) {
2453
-        this.$message.error("血流量未填");
2454
-      } else if (
2455
-        this.prescription.dialysis_duration_hour == 0 &&
2456
-        this.prescription.dialysis_duration_minute == 0
2457
-      ) {
2458
-        this.$message.error("透析时间未填");
2459
-      } else if (
2460
-        this.prescription.dialyzer_perfusion_apparatus == "" &&
2461
-        this.prescription.dialysis_dialyszers == ""
2319
+        const obj11 = "置换方式"
2320
+        checkDate.push(obj11)
2321
+      } if (this.prescription.replacement_total == "" &&
2322
+            (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)
2462
       ) {
2323
       ) {
2463
-        this.$message.error("透析器未填");
2464
-      } else if (this.prescription.dialysis_irrigation == "") {
2465
-        this.$message.error("灌流器未填");
2466
-      } else if (
2467
-        this.prescription.plasma_separator == "" &&
2468
-        this.org_id == 9538
2324
+        const obj12 = "置换量"
2325
+        checkDate.push(obj12)
2326
+      } if ( this.prescription.blood_flow_volume == '') {
2327
+        const obj13 = "血流量"
2328
+        checkDate.push(obj13)
2329
+      } if (this.predialysis.dry_weight == "") {
2330
+        const obj14 = "干体重"
2331
+        checkDate.push(obj14)
2332
+      } if (this.lastafterdialysis.weight_after == "") {
2333
+        const obj15 = "上次透后体重"
2334
+        checkDate.push(obj15)
2335
+      } if (this.predialysis.weight_before == "" ) {
2336
+        const obj16 = "透前体重"
2337
+        checkDate.push(obj16)
2338
+      } if (this.prescription.target_ultrafiltration == 0) {
2339
+        const obj17 = "计划超滤量"
2340
+        checkDate.push(obj17)
2341
+      } if (this.prescription.dialysate_flow == 0 ) {
2342
+        const obj18 = "透析液流量"
2343
+        checkDate.push(obj18)
2344
+      } if (this.prescription.kalium == 0) {
2345
+        const obj19 = "钾"
2346
+        checkDate.push(obj19)
2347
+      } if (this.prescription.calcium == 0) {
2348
+        const obj20 = "钙"
2349
+        checkDate.push(obj20)
2350
+      } if (this.prescription.sodium == 0) {
2351
+        const obj21 = "钠"
2352
+        checkDate.push(obj21)
2353
+      }if (this.prescription.bicarbonate == 0) {
2354
+        const obj22 = "碳酸氢根"
2355
+        checkDate.push(obj22)
2356
+      } if (this.prescription.anticoagulant_name == 0) {
2357
+        const obj23 = "抗凝剂"
2358
+        checkDate.push(obj23)
2359
+      } if (this.prescription.anticoagulant_shouji == 0 &&
2360
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
2469
       ) {
2361
       ) {
2470
-        this.$message.error("血浆分离器未填");
2471
-      } else if (
2472
-        this.prescription.bilirubin_adsorption_column == "" &&
2473
-        this.org_id == 9538
2362
+        const obj24 = "首剂"
2363
+        checkDate.push(obj24)
2364
+      }if (this.prescription.anticoagulant_zongliang == 0 &&
2365
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
2474
       ) {
2366
       ) {
2475
-        this.$message.error("胆红素吸附柱未填");
2476
-      } else if (this.predialysis.weight_before == 0) {
2477
-        this.$message.error("透前体重未填");
2478
-      } else if (this.predialysis.dry_weight == 0) {
2479
-        this.$message.error("干体重未填");
2480
-      } else if (this.prescription.target_ultrafiltration == 0) {
2481
-        this.$message.error("计划超滤量未填");
2482
-      } else if (this.prescription.calcium == 0) {
2483
-        this.$message.error("钙未填");
2484
-      } else if (this.prescription.sodium == 0) {
2485
-        this.$message.error("钠未填");
2486
-      } else if (this.prescription.kalium == 0) {
2487
-        this.$message.error("钾未填");
2488
-      } else if (this.prescription.bicarbonate == 0) {
2489
-        this.$message.error("碳酸氢根未填");
2490
-      } else if (this.prescription.dialysate_flow == 0) {
2491
-        this.$message.error("透析液流量未填");
2492
-      } else if (this.prescription.anticoagulant == 0) {
2493
-        this.$message.error("抗凝剂未填");
2494
-      } else if (
2367
+        const obj25 = "总量"
2368
+        checkDate.push(obj25)
2369
+      } if (
2495
         this.prescription.anticoagulant_gaimingcheng == "" &&
2370
         this.prescription.anticoagulant_gaimingcheng == "" &&
2496
         this.prescription.anticoagulant == 5
2371
         this.prescription.anticoagulant == 5
2497
       ) {
2372
       ) {
2498
-        this.$message.error("钙名称未填");
2499
-      } else if (
2373
+        const obj26 = "钙名称"
2374
+        checkDate.push(obj26)
2375
+      } if (
2500
         this.prescription.anticoagulant_gaijiliang == "" &&
2376
         this.prescription.anticoagulant_gaijiliang == "" &&
2501
         this.prescription.anticoagulant == 5
2377
         this.prescription.anticoagulant == 5
2502
       ) {
2378
       ) {
2503
-        this.$message.error("钙剂量未填");
2504
-      } else if (this.afterdialysis.temperature == 0) {
2505
-        this.$message.error("透后体温未填");
2506
-      } else if (this.afterdialysis.pulse_frequency == 0) {
2507
-        this.$message.error("透后脉搏未填");
2508
-      } else if (this.afterdialysis.breathing_rate == 0) {
2509
-        this.$message.error("透后呼吸频率未填");
2510
-      } else if (
2511
-        this.afterdialysis.systolic_blood_pressure == 0 ||
2512
-        this.afterdialysis.diastolic_blood_pressure == 0
2379
+        const obj27 = "钙剂量"
2380
+        checkDate.push(obj27)
2381
+      } if (this.afterdialysis.temperature == ''){
2382
+        const obj28 = "透后温度"
2383
+        checkDate.push(obj28)
2384
+      } if (this.afterdialysis.pulse_frequency == 0) {
2385
+        const obj29 = "透后脉搏"
2386
+        checkDate.push(obj29)
2387
+      } if (
2388
+        this.afterdialysis.systolic_blood_pressure == '' &&
2389
+        this.afterdialysis.diastolic_blood_pressure == ''
2390
+      ){
2391
+        const obj30 = "透后血压"
2392
+        checkDate.push(obj30)
2393
+      } if (this.afterdialysis.breathing_rate == 0) {
2394
+        const obj31 = "透后呼吸"
2395
+        checkDate.push(obj31)
2396
+      } if (this.afterdialysis.cruor == '') {
2397
+        const obj32 = "透析器凝血"
2398
+        checkDate.push(obj32)
2399
+      } if (this.afterdialysis.internal_fistula == '') {
2400
+        const obj33 = "透后内瘘"
2401
+        checkDate.push(obj33)
2402
+      } if (this.afterdialysis.catheter =='') {
2403
+        const obj34 = "透后导管"
2404
+        checkDate.push(obj34)
2405
+      } if (this.afterdialysis.actual_treatment_hour == 0 &&
2406
+          this.afterdialysis.actual_treatment_minute == 0
2513
       ) {
2407
       ) {
2514
-        this.$message.error("透后血压未填完整");
2515
-      } else if (
2516
-        this.afterdialysis.actual_treatment_hour == 0 &&
2517
-        this.afterdialysis.actual_treatment_minute == 0
2518
-      ) {
2519
-        this.$message.error("实际治疗时间未填");
2520
-      } else if (this.afterdialysis.cruor == "") {
2521
-        this.$message.error("透析器凝血未填");
2522
-      } else if (this.afterdialysis.internal_fistula == "") {
2523
-        this.$message.error("透后内瘘未填");
2524
-      } else if (this.afterdialysis.catheter == "") {
2525
-        this.$message.error("透后导管未填");
2526
-      } else if (this.afterdialysis.weight_after == 0) {
2527
-        this.$message.error("透后体重未填");
2528
-      } else if (this.afterdialysis.weight_loss == 0) {
2529
-        this.$message.error("透后体重减少未填");
2530
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
2531
-        this.$message.error("透析中入量未填");
2532
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
2533
-        this.$message.error("实际超滤量未填");
2534
-      } else if (this.summary.dialysis_summary == "") {
2535
-        this.$message.error("透析小结未填");
2536
-      } else if (
2537
-        this.dialysisOrder == null ||
2538
-        this.dialysisOrder.puncture_nurse == 0
2539
-      ) {
2540
-        this.$message.error("穿刺护士未填");
2541
-      } else if (
2408
+        const obj35 = "实际治疗时间"
2409
+        checkDate.push(obj35)
2410
+      } if (this.afterdialysis.weight_after == 0) {
2411
+        const obj36 = "透后体重"
2412
+        checkDate.push(obj36)
2413
+      } if (this.afterdialysis.dialysis_intakes_unit == 0) {
2414
+        const obj37 = "透析中入量"
2415
+        checkDate.push(obj37)
2416
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
2417
+        const obj38 = "实际超滤量"
2418
+        checkDate.push(obj38)
2419
+      } if (this.summary.dialysis_summary == '') {
2420
+        const obj39 = "治疗小结"
2421
+        checkDate.push(obj39)
2422
+      } if (this.summary.mission == 0) {
2423
+        const obj40 = "宣教知识"
2424
+        checkDate.push(obj40)
2425
+      } if (
2542
         this.dialysisOrder == null ||
2426
         this.dialysisOrder == null ||
2543
         this.dialysisOrder.start_nurse == 0
2427
         this.dialysisOrder.start_nurse == 0
2544
       ) {
2428
       ) {
2545
-        this.$message.error("治疗护士未填");
2546
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
2547
-        this.$message.error("核对人员未填");
2429
+        const obj41 = "上机护士"
2430
+        checkDate.push(obj41)
2431
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
2432
+        const obj42 = "核对人员"
2433
+        checkDate.push(obj42)
2548
       } else if (
2434
       } else if (
2549
         this.dialysisOrder != null &&
2435
         this.dialysisOrder != null &&
2550
         this.dialysisOrder.start_nurse == this.check.modifier &&
2436
         this.dialysisOrder.start_nurse == this.check.modifier &&
2551
         this.check.creater == 0
2437
         this.check.creater == 0
2552
       ) {
2438
       ) {
2553
-        this.$message.error("核对人员未填");
2439
+        const obj42 = "核对人员"
2440
+        checkDate.push(obj42)
2554
       } else if (
2441
       } else if (
2555
         this.dialysisOrder != null &&
2442
         this.dialysisOrder != null &&
2556
         this.dialysisOrder.start_nurse == this.check.creater &&
2443
         this.dialysisOrder.start_nurse == this.check.creater &&
2557
         this.check.modifier == 0
2444
         this.check.modifier == 0
2558
       ) {
2445
       ) {
2559
-        this.$message.error("核对人员未填");
2446
+        const obj42 = "核对人员"
2447
+        checkDate.push(obj42)
2560
       } else if (
2448
       } else if (
2561
         this.dialysisOrder != null &&
2449
         this.dialysisOrder != null &&
2562
         this.dialysisOrder.start_nurse != this.check.creater &&
2450
         this.dialysisOrder.start_nurse != this.check.creater &&
2563
         this.dialysisOrder.start_nurse != this.check.modifier &&
2451
         this.dialysisOrder.start_nurse != this.check.modifier &&
2564
         this.check.creater == 0
2452
         this.check.creater == 0
2565
       ) {
2453
       ) {
2566
-        this.$message.error("核对人员未填");
2567
-      } else if (
2454
+        const obj42 = "核对人员"
2455
+        checkDate.push(obj42)
2456
+      } if (
2568
         this.dialysisOrder == null ||
2457
         this.dialysisOrder == null ||
2569
         this.dialysisOrder.finish_nurse == 0
2458
         this.dialysisOrder.finish_nurse == 0
2570
       ) {
2459
       ) {
2571
-        this.$message.error("下机护士未填");
2572
-      } else if (this.prescription.creater == 0) {
2573
-        this.$message.error("医生签名未填");
2574
-      } else if (this.tableAdvice.length > 0) {
2575
-        let num = 0;
2576
-        this.tableAdvice.map((item) => {
2577
-          if (item.id > 0 && (item.created_time || item.start_time)) {
2578
-            this.users.map((it) => {
2579
-              if (it.id == item.advice_doctor) {
2580
-                if (it.user_type == 3) {
2581
-                  num++;
2582
-                  this.$message.closeAll();
2583
-                  this.$message.error("存在不是医生保存的医嘱");
2584
-                } else if (
2585
-                  it.id == item.execution_staff &&
2586
-                  item.execution_staff > 0
2587
-                ) {
2588
-                  if (it.user_type == 2) {
2589
-                    num++;
2590
-                    this.$message.closeAll();
2591
-                    this.$message.error("存在不是护士执行的医嘱");
2592
-                  }
2593
-                } else if (it.id == item.checker && item.checker > 0) {
2594
-                  if (it.user_type == 2) {
2595
-                    num++;
2596
-                    this.$message.closeAll();
2597
-                    this.$message.error("存在不是护士核对的医嘱");
2598
-                  }
2599
-                }
2600
-              } else if (
2601
-                it.id == item.execution_staff &&
2602
-                item.execution_staff > 0
2603
-              ) {
2604
-                if (it.user_type == 2) {
2605
-                  num++;
2606
-                  this.$message.closeAll();
2607
-                  this.$message.error("存在不是护士执行的医嘱");
2608
-                }
2609
-              } else if (it.id == item.checker && item.checker > 0) {
2610
-                if (it.user_type == 2) {
2611
-                  num++;
2612
-                  this.$message.closeAll();
2613
-                  this.$message.error("存在不是护士核对的医嘱");
2614
-                }
2460
+        const obj43 = "下机护士"
2461
+        checkDate.push(obj43)
2462
+      } if (this.prescription.creater == 0) {
2463
+        const obj44 = "医生签名"
2464
+        checkDate.push(obj44)
2465
+      } if (this.dialysisOrder.start_time == '' && this.dialysisOrder != null) {
2466
+        const obj45 = "上机时间"
2467
+        checkDate.push(obj45)
2468
+      } if (this.dialysisOrder.end_time == "" && this.dialysisOrder != null) {
2469
+        const obj46 = "下机时间"
2470
+        checkDate.push(obj46)
2471
+      } if(this.new_doctor_advice_list.length > 0){
2472
+          this.new_doctor_advice_list.map((item) =>{
2473
+            if(item.id > 0 && (item.created_time || item.start_time)){
2474
+              if(item.execution_staff ==0 && item.advice_doctor ==0){
2475
+                const obj47 = '执行人员,医生签名'
2476
+                checkDate.push(obj47)
2615
               }
2477
               }
2616
-            });
2617
-          }
2618
-        });
2619
-        if (num == 0) {
2620
-          this.$message.success("核对完成");
2478
+            }
2479
+          })
2480
+      }
2481
+ 
2482
+      this.getcheckData(checkDate)
2483
+    },
2484
+    
2485
+    toUpload() {
2486
+
2487
+      let dom = document.getElementById("dialysis-print-box-1")
2488
+      //调用方法下载
2489
+      html2canvas(dom, {
2490
+        useCORS: true, //允许跨域
2491
+        allowTaint: false,
2492
+        logging: false,
2493
+        letterRendering: true,
2494
+        ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
2495
+        scale: 4, //按比例增加分辨率
2496
+        background: '#fff',//pdf背景色为白色,默认是黑色的
2497
+      }).then((canvas) => {
2498
+        //返回图片dataURL,参数:图片格式和清晰度(0-1)
2499
+        var pageData = canvas.toDataURL('image/jpeg', 1.0);
2500
+
2501
+        //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2502
+        var pdf = new jsPDF('', 'pt', 'a4');
2503
+
2504
+        //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2505
+        //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2506
+        pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2507
+
2508
+        console.log("pdf222222222222222222",pdf)
2509
+
2510
+        var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2511
+        // console.log("base63",newBase64Data)
2512
+        const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2513
+        console.log("blobwoowowowwo",blob)
2514
+        this.openPdf(blob);
2515
+
2516
+        // var data = {
2517
+        //   name:newBase64Data,
2518
+        // }
2519
+        // UploadPrintOrder(data).then(response=>{
2520
+        //   if(response.data.state == 1){
2521
+        //     var sign =  response.data.data.sign
2522
+        //     console.log("SIGNWWOOWWO")
2523
+        //     var pdfBase64 = response.data.data.pdfBase64
2524
+        //     console.log("pdfBase64",pdfBase64)
2525
+        //     this.$message.success("保存成功!")
2526
+        //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
2527
+        //     this.openPdf(blob);
2528
+        //   }
2529
+        // })
2530
+
2531
+        // this.viewPdf(newBase64Data)
2532
+        //保存到pdf,名字是stone
2533
+        // pdf.save('stone.pdf');
2534
+
2535
+      });
2536
+    },
2537
+
2538
+    viewPdf(content) {
2539
+      console.log("content",content);
2540
+      const blob = this.base64ToBlob(content);
2541
+      if (window.navigator && window.navigator.msSaveOrOpenBlob) {
2542
+        window.navigator.msSaveOrOpenBlob(blob);
2543
+      } else {
2544
+        const fileURL = URL.createObjectURL(blob);
2545
+        console.log("fileUlrwowowoow",fileURL)
2546
+        window.open(fileURL);//打开ppf文件
2547
+      }
2548
+    },
2549
+    compare (property) {
2550
+      return function (a, b) {
2551
+          var value1 = a[property]
2552
+          var value2 = b[property]
2553
+          return value1 - value2
2554
+      }
2555
+    },
2556
+
2557
+    openPdf(blob) {
2558
+      const objectUrl = URL.createObjectURL(blob);
2559
+      const a = document.createElement('a');
2560
+      a.href = objectUrl;
2561
+      a.target = '_blank';
2562
+      a.click();
2563
+      URL.revokeObjectURL(objectUrl);
2564
+    },
2565
+    base64ToBlob(base64Data, contentType) {
2566
+      contentType = contentType || '';
2567
+      const sliceSize = 1024;
2568
+      const byteCharacters = window.atob(base64Data);
2569
+      const bytesLength = byteCharacters.length;
2570
+      const slicesCount = Math.ceil(bytesLength / sliceSize);
2571
+      const byteArrays = new Array(slicesCount);
2572
+
2573
+      for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2574
+        const begin = sliceIndex * sliceSize;
2575
+        const end = Math.min(begin + sliceSize, bytesLength);
2576
+
2577
+        const bytes = new Array(end - begin);
2578
+        for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2579
+          bytes[i] = byteCharacters[offset].charCodeAt(0);
2580
+        }
2581
+        byteArrays[sliceIndex] = new Uint8Array(bytes);
2582
+      }
2583
+
2584
+      return new Blob(byteArrays, {
2585
+        type: contentType
2586
+      });
2587
+    },
2588
+
2589
+    UploadPdf(res) {
2590
+      let pdfBase64Str = res;
2591
+      let title = "上传给后端的个人报告";
2592
+      var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
2593
+      console.log("myfile",myfile)
2594
+    },
2595
+    // 获取当前年份,用于年龄计算
2596
+    getoldAge() {
2597
+      let date = new Date();
2598
+      let year = date.getFullYear();
2599
+      let year_d =
2600
+        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2601
+      let year_m = this.xtdate.split("-")[1];
2602
+      let birth_m = this.patientInfo.birth.split("-")[1];
2603
+      let year_date = this.xtdate.split("-")[2];
2604
+      let birth_date = this.patientInfo.birth.split("-")[2];
2605
+      // console.log(year,'今年年月')
2606
+      // console.log(this.xtdate.split('-'),'病人就诊年月')
2607
+      console.log(this.patientInfo.birth, "病人生日");
2608
+      // console.log(year_d,'year_d')
2609
+      if (year_m < birth_m) {
2610
+        return year_d - 1;
2611
+      } else if (year_m == birth_m) {
2612
+        if (year_date < birth_date) {
2613
+          return year_d - 1;
2614
+        } else {
2615
+          return year_d;
2621
         }
2616
         }
2622
       } else {
2617
       } else {
2623
-        this.$message.success("核对完成");
2618
+        return year_d;
2624
       }
2619
       }
2625
     },
2620
     },
2621
+
2622
+   
2626
     getDisplaceLiquiPart: function (val) {
2623
     getDisplaceLiquiPart: function (val) {
2627
       let displace_liqui_part_name = "/";
2624
       let displace_liqui_part_name = "/";
2628
       const displace_liqui_part = this.displaceLiquiPartOptions;
2625
       const displace_liqui_part = this.displaceLiquiPartOptions;
3421
           return options[i].number_type
3418
           return options[i].number_type
3422
         }
3419
         }
3423
       }
3420
       }
3421
+    },
3422
+    getcheckData(val){
3423
+      if(val.length >0){
3424
+        const a = val.join(',')
3425
+        console.log('a',a);
3426
+        this.$message.error(a +" 未填");
3427
+        return a
3428
+      }else{
3429
+        this.$message.success('核对完成')
3430
+      }
3424
     }
3431
     }
3425
 
3432
 
3426
   },
3433
   },

+ 119 - 19
src/xt_pages/outpatientCharges/summary.vue 查看文件

715
       settlementVisible: false,
715
       settlementVisible: false,
716
       settlementObj: {},
716
       settlementObj: {},
717
       accounts_click_vi:false,
717
       accounts_click_vi:false,
718
+      org_id:'',
718
     }
719
     }
719
   },
720
   },
720
 
721
 
757
     this.getDoctorList()
758
     this.getDoctorList()
758
     this.getHisOrderList()
759
     this.getHisOrderList()
759
     this.getAllstaff()
760
     this.getAllstaff()
761
+    this.org_id == this.$store.getters.xt_user.org.id
760
   },
762
   },
761
 
763
 
762
   methods: {
764
   methods: {
3317
           return false
3319
           return false
3318
         } else {
3320
         } else {
3319
           let list = []
3321
           let list = []
3322
+          let list2 = []
3320
           for (let i = 0; i < response.data.data.order.length; i++) {
3323
           for (let i = 0; i < response.data.data.order.length; i++) {
3321
             let order = response.data.data.order[i]
3324
             let order = response.data.data.order[i]
3322
             let number = ''
3325
             let number = ''
3504
               收费状态: order_status,
3507
               收费状态: order_status,
3505
               退费日期: ''
3508
               退费日期: ''
3506
             }
3509
             }
3507
-
3510
+            let obj2 = {
3511
+              就诊号: order.mdtrt_id,
3512
+              患者姓名: name,
3513
+              患者性别: gender,
3514
+              患者年龄: age,
3515
+              开处时间: time,
3516
+              参保号: order.his_patient.id_card_no,
3517
+              应收金额: order.medfee_sumamt,
3518
+              实收金额: order.medfee_sumamt,
3519
+              医保统筹金额: order.hifp_pay,
3520
+              大额基金金额: order.hifob_pay,
3521
+              大病基金金额: order.hifmi_pay,
3522
+              补充保险基金金额: order.hifes_pay,
3523
+              医疗救助基金金额: order.maf_pay,
3524
+              公务员基金: order.cvlserv_pay,
3525
+              个人支付基金: order.psn_cash_pay,
3526
+              个人账户支付金额: order.acct_pay,
3527
+              医生姓名: doctor_name,
3528
+              收费类别: balance_accounts,
3529
+              总金额: order.medfee_sumamt,
3530
+              现金支付: '',
3531
+              账户支付: '',
3532
+              支付宝支付: '',
3533
+              微信支付: '',
3534
+              其他支付: '',
3535
+              收费时间: order.setl_time,
3536
+              收费状态: order_status
3537
+            }
3508
             list.push(obj)
3538
             list.push(obj)
3539
+            list2.push(obj2)
3509
           }
3540
           }
3510
-          import('@/vendor/Export2Excel').then((excel) => {
3511
-            const tHeader = [
3541
+          if(this.org_id != 10697 && this.org_id != 0){
3542
+            import('@/vendor/Export2Excel').then((excel) => {
3543
+              console.log('1111111南昌');
3544
+              const tHeader = [
3512
               '就诊号',
3545
               '就诊号',
3513
               '患者姓名',
3546
               '患者姓名',
3514
               "患者性别",
3547
               "患者性别",
3541
               '收费时间',
3574
               '收费时间',
3542
               '收费状态',
3575
               '收费状态',
3543
               '退费日期'
3576
               '退费日期'
3544
-            ]
3545
-            const filterVal = [
3577
+              ]
3578
+              const filterVal = [
3579
+                '就诊号',
3580
+                '患者姓名',
3581
+                "患者性别",
3582
+                "患者年龄",
3583
+                '开处时间',
3584
+                '险种类型',
3585
+                '参保所属医保区划',
3586
+                '参保号',
3587
+                '属地名称',
3588
+                '应收金额',
3589
+                '实收金额',
3590
+                '医保统筹金额',
3591
+                '大额基金金额',
3592
+                '大病基金金额',
3593
+                '补充保险基金金额',
3594
+                '医疗救助基金金额',
3595
+                '公务员基金',
3596
+                '个人支付基金',
3597
+                '个人账户支付金额',
3598
+                '科室',
3599
+                '医生姓名',
3600
+                '收费类别',
3601
+                '收费者姓名',
3602
+                '总金额',
3603
+                '现金支付',
3604
+                '账户支付',
3605
+                '支付宝支付',
3606
+                '微信支付',
3607
+                '其他支付',
3608
+                '收费时间',
3609
+                '收费状态',
3610
+                '退费日期'
3611
+              ]
3612
+              const data = this.formatJson(filterVal, list)
3613
+              excel.export_json_to_excel({
3614
+                header: tHeader,
3615
+                data,
3616
+                filename: '消费明细'
3617
+              })
3618
+            })
3619
+          }else{
3620
+            import('@/vendor/Export2Excel').then((excel) => {
3621
+              console.log('222222南昌');
3622
+              const tHeader2 = [
3546
               '就诊号',
3623
               '就诊号',
3547
               '患者姓名',
3624
               '患者姓名',
3548
               "患者性别",
3625
               "患者性别",
3549
               "患者年龄",
3626
               "患者年龄",
3550
               '开处时间',
3627
               '开处时间',
3551
-              '险种类型',
3552
-              '参保所属医保区划',
3553
               '参保号',
3628
               '参保号',
3554
-              '属地名称',
3555
               '应收金额',
3629
               '应收金额',
3556
               '实收金额',
3630
               '实收金额',
3557
               '医保统筹金额',
3631
               '医保统筹金额',
3562
               '公务员基金',
3636
               '公务员基金',
3563
               '个人支付基金',
3637
               '个人支付基金',
3564
               '个人账户支付金额',
3638
               '个人账户支付金额',
3565
-              '科室',
3566
               '医生姓名',
3639
               '医生姓名',
3567
               '收费类别',
3640
               '收费类别',
3568
-              '收费者姓名',
3569
               '总金额',
3641
               '总金额',
3570
               '现金支付',
3642
               '现金支付',
3571
               '账户支付',
3643
               '账户支付',
3573
               '微信支付',
3645
               '微信支付',
3574
               '其他支付',
3646
               '其他支付',
3575
               '收费时间',
3647
               '收费时间',
3576
-              '收费状态',
3577
-              '退费日期'
3578
-            ]
3579
-            const data = this.formatJson(filterVal, list)
3580
-            excel.export_json_to_excel({
3581
-              header: tHeader,
3582
-              data,
3583
-              filename: '消费明细'
3648
+              '收费状态'
3649
+              ]
3650
+              const filterVal2 = [
3651
+                '就诊号',
3652
+                '患者姓名',
3653
+                "患者性别",
3654
+                "患者年龄",
3655
+                '开处时间',
3656
+                '参保号',
3657
+                '应收金额',
3658
+                '实收金额',
3659
+                '医保统筹金额',
3660
+                '大额基金金额',
3661
+                '大病基金金额',
3662
+                '补充保险基金金额',
3663
+                '医疗救助基金金额',
3664
+                '公务员基金',
3665
+                '个人支付基金',
3666
+                '个人账户支付金额',
3667
+                '医生姓名',
3668
+                '收费类别',
3669
+                '总金额',
3670
+                '现金支付',
3671
+                '账户支付',
3672
+                '支付宝支付',
3673
+                '微信支付',
3674
+                '其他支付',
3675
+                '收费时间',
3676
+                '收费状态'
3677
+              ]
3678
+              const data = this.formatJson(filterVal2, list2)
3679
+              excel.export_json_to_excel({
3680
+                header: tHeader2,
3681
+                data,
3682
+                filename: '消费明细'
3683
+              })
3584
             })
3684
             })
3585
-          })
3685
+          }
3586
         }
3686
         }
3587
       })
3687
       })
3588
     },
3688
     },

+ 4 - 3
src/xt_pages/user/components/PatientDetail.vue 查看文件

1269
       </div>
1269
       </div>
1270
       <div id="print-info-box" v-else>
1270
       <div id="print-info-box" v-else>
1271
         <div class="print_main_content" style="margin-top: 70px;">
1271
         <div class="print_main_content" style="margin-top: 70px;">
1272
-          <div class="order_title">{{ orgname }}<br/>血液净化患者首次门诊病历</div>
1272
+          <div class="order_title" style="font-size: 25px;font-weight: 600;">{{ orgname }}<br/>血液净化治疗患者首次门诊病历</div>
1273
           <div >
1273
           <div >
1274
             <table >
1274
             <table >
1275
               <tbody>
1275
               <tbody>
1473
               </tbody>
1473
               </tbody>
1474
             </table>
1474
             </table>
1475
             <div class="print_footnote_panel">
1475
             <div class="print_footnote_panel">
1476
-              <div class="proj">
1476
+              <div class="proj" style="text-align: center;">
1477
                  <span class="proj_title">医生签名:
1477
                  <span class="proj_title">医生签名:
1478
                     <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
1478
                     <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
1479
                     <span v-else>
1479
                     <span v-else>
1481
                     </span>
1481
                     </span>
1482
                  </span>
1482
                  </span>
1483
               </div>
1483
               </div>
1484
-              <div class="proj">
1484
+              <div class="proj" style="text-align: right;">
1485
                 <span class="proj_title">日期:</span>
1485
                 <span class="proj_title">日期:</span>
1486
                 <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span> 
1486
                 <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span> 
1487
                 <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span> 
1487
                 <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span> 
2670
 .print_footnote_panel .proj {
2670
 .print_footnote_panel .proj {
2671
   display: inline-block;
2671
   display: inline-block;
2672
   width: 49%;
2672
   width: 49%;
2673
+  text-align: center;
2673
 }
2674
 }
2674
 .print_footnote_panel .proj .proj_title {
2675
 .print_footnote_panel .proj .proj_title {
2675
   font-weight: 500;
2676
   font-weight: 500;

+ 37 - 8
src/xt_pages/user/coursePrint.vue 查看文件

8
     </div>
8
     </div>
9
     <div class="app-container">
9
     <div class="app-container">
10
       <div id="print_content">
10
       <div id="print_content">
11
-        <div class="print_page_main_content">
12
-          <div class="order-yy-name" style="text-align: center;">{{orgname}}</div>
13
-          <div class="order_title" style="padding-top:12px;text-align: center;"> 病程记录</div>
11
+        <div class="print_page_main_content" v-for="(item,index) in this.record" :key="index" style="page-break-after: always;">
12
+          <div class="order-yy-name" style="text-align: center;font-size: 25px;font-weight: 600;">{{orgname}}</div>
13
+          <div class="order_title" style="padding-top:12px;text-align: center;font-size: 25px;font-weight: 600;"> 
14
+            血液净化治疗患者病程记录
15
+          </div>
14
           <div class="row" style="border-bottom:1px solid #000; display: flex;padding-bottom: 10px;padding-top: 12px;" 
16
           <div class="row" style="border-bottom:1px solid #000; display: flex;padding-bottom: 10px;padding-top: 12px;" 
15
             v-if="org_id !=10206 && org_id !=0">
17
             v-if="org_id !=10206 && org_id !=0">
16
             <div  style="flex:1;text-align: center;">
18
             <div  style="flex:1;text-align: center;">
46
 
48
 
47
             </div>
49
             </div>
48
           </div>
50
           </div>
49
-          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;" v-for="(item,index) in this.record" :key="index">
51
+          <div class="row" style="border-bottom:1px solid #000; display: flex;padding-bottom: 10px;padding-top: 12px;" 
52
+           v-else>
53
+            <div  style="flex:1;text-align: center;">
54
+              姓名:
55
+              <div  style="text-align: left;display:inline-block;">{{patient.name }}</div>
56
+            </div>
57
+
58
+            <div style="flex:1;text-align: center;">
59
+              性别:
60
+              <div  style="text-align: left;display:inline-block;">
61
+                {{ patient.gender ==1 ? '男': '女' }}
62
+              </div>
63
+            </div>
64
+
65
+            <div style="flex:1;text-align: center;" >
66
+              年龄:
67
+              <div  style="text-align: left;display:inline-block;">
68
+                {{patient.age}}
69
+              </div>
70
+            </div>
71
+
72
+
73
+            <div style="flex:1;text-align: left;" >
74
+              日期:
75
+              <div style="text-align: left;display:inline-block;" >
76
+                <!-- {{getTime(record[0].record_time,'{y}-{m}-{d} {h}:{i}')}} -->
77
+                {{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}
78
+              </div>
79
+            </div>
80
+          </div>
81
+          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;">
50
             <div class="inline_block" style="display: inline-block;" v-if="org_id !=10206 && org_id !=0">
82
             <div class="inline_block" style="display: inline-block;" v-if="org_id !=10206 && org_id !=0">
51
               <div>{{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}</div>
83
               <div>{{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}</div>
52
             </div>
84
             </div>
53
             <div class="inline_block" style="margin-left: 30px;display: inline-block;">
85
             <div class="inline_block" style="margin-left: 30px;display: inline-block;">
54
               <div>{{item.title}}</div>
86
               <div>{{item.title}}</div>
55
             </div>
87
             </div>
56
-
57
             <div class="inline_block" style="width:100%; word-wrap: break-word; word-break: break-all;">
88
             <div class="inline_block" style="width:100%; word-wrap: break-word; word-break: break-all;">
58
               <div v-html="item.content" class="printP" >
89
               <div v-html="item.content" class="printP" >
59
 
90
 
70
               </span>
101
               </span>
71
             </div>
102
             </div>
72
           </div>
103
           </div>
73
-
74
         
104
         
75
         </div>
105
         </div>
76
       </div>
106
       </div>
79
 
109
 
80
 </template>
110
 </template>
81
 
111
 
82
-
83
 <script>
112
 <script>
84
   import { jsGetAge, uParseTime } from '@/utils/tools'
113
   import { jsGetAge, uParseTime } from '@/utils/tools'
85
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
114
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
132
          
161
          
133
           this.adminUserList = resp.data.adminUser
162
           this.adminUserList = resp.data.adminUser
134
           this.operators = resp.data.operators
163
           this.operators = resp.data.operators
135
-           console.log("GetCoursePrintData",this.operators)
164
+           console.log("GetCoursePrintData",resp)
136
            if (this.operators.length > 0) {
165
            if (this.operators.length > 0) {
137
             var operatorsLen = this.operators.length
166
             var operatorsLen = this.operators.length
138
             for (var index = 0; index < operatorsLen; index++) {
167
             for (var index = 0; index < operatorsLen; index++) {