|
@@ -20,18 +20,18 @@
|
20
|
20
|
<div class="table_panel">
|
21
|
21
|
<div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
|
22
|
22
|
<div class="signPrint">
|
23
|
|
- <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div>
|
|
23
|
+ <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div>
|
24
|
24
|
<div>姓名:
|
25
|
|
- <span v-if="type ==1">{{main_collection.patient.name}} </span>
|
26
|
|
- <span v-if="type ==2">{{main_collection.patient}} </span>
|
27
|
|
- </div>
|
28
|
|
- <div>抗凝剂:
|
|
25
|
+ <span v-if="type ==1">{{main_collection.patient.name}} </span>
|
|
26
|
+ <span v-if="type ==2">{{main_collection.patient}} </span>
|
|
27
|
+ </div>
|
|
28
|
+ <div>抗凝剂:
|
29
|
29
|
<span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
|
30
|
30
|
<span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
|
31
|
|
- </div>
|
|
31
|
+ </div>
|
32
|
32
|
<div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
|
33
|
33
|
<div v-if="org_id == 10188">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
|
34
|
|
- <div>用量:
|
|
34
|
+ <div>用量:
|
35
|
35
|
<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
|
36
|
36
|
<span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
|
37
|
37
|
<span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
|
|
@@ -43,11 +43,11 @@
|
43
|
43
|
<span v-if="main_collection.dialysissolution.anticoagulant == 9">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
|
44
|
44
|
<span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
|
45
|
45
|
<span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
|
46
|
|
- </div>
|
|
46
|
+ </div>
|
47
|
47
|
<div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
|
48
|
48
|
<div v-if="org_id == 10188">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
|
49
|
49
|
<div v-if="org_id == 10188">体重增加:{{(main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight).toFixed(2)}}</div>
|
50
|
|
- <div>用法:静脉注射</div>
|
|
50
|
+ <div>用法:静脉注射</div>
|
51
|
51
|
<div>打印时间:{{currentDate}}</div>
|
52
|
52
|
</div>
|
53
|
53
|
</div>
|
|
@@ -64,7 +64,7 @@
|
64
|
64
|
import { uParseTime } from '@/utils/tools'
|
65
|
65
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
66
|
66
|
import print from 'print-js'
|
67
|
|
- const moment = require('moment')
|
|
67
|
+ const moment = require('moment')
|
68
|
68
|
export default {
|
69
|
69
|
name: 'SchedulePrint',
|
70
|
70
|
data() {
|
|
@@ -97,20 +97,20 @@
|
97
|
97
|
BreadCrumb
|
98
|
98
|
},
|
99
|
99
|
created() {
|
100
|
|
- console.log("type2323233223232",this.$route.query.type)
|
|
100
|
+ // console.log("type2323233223232",this.$route.query.type)
|
101
|
101
|
this.type = this.$route.query.type
|
102
|
102
|
this.getPrintList()
|
103
|
103
|
this.org_id = this.$store.getters.xt_user.org.id
|
104
|
104
|
console.log("机构ID",this.org_id)
|
105
|
105
|
this.currentDate = this.getCurrentDate()
|
106
|
|
-
|
|
106
|
+
|
107
|
107
|
this.modeOptions = this.$store.getters.treatment_mode
|
108
|
108
|
this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
|
109
|
109
|
this.week_type = this.$route.query.week_type
|
110
|
110
|
this.week_time = this.$route.query.week_time
|
111
|
111
|
this.zone = this.$route.query.zone
|
112
|
112
|
this.pre_status = this.$route.query.prestatus
|
113
|
|
-
|
|
113
|
+
|
114
|
114
|
if(parseInt(this.$route.query.type) == 1){
|
115
|
115
|
const params = {
|
116
|
116
|
week_type:this.week_type,
|
|
@@ -128,7 +128,7 @@
|
128
|
128
|
var arr = list.sort(this.compare('sort'))
|
129
|
129
|
console.log("Arr222222",arr)
|
130
|
130
|
this.scheduleData = arr
|
131
|
|
-
|
|
131
|
+
|
132
|
132
|
let a = response.data.data.day
|
133
|
133
|
console.log("a",a)
|
134
|
134
|
var myDate = new Date(a);
|
|
@@ -171,7 +171,7 @@
|
171
|
171
|
if(parseInt(this.$route.query.type) == 2){
|
172
|
172
|
this.getNextScheduleWeekDay()
|
173
|
173
|
}
|
174
|
|
-
|
|
174
|
+
|
175
|
175
|
},
|
176
|
176
|
methods: {
|
177
|
177
|
getAdvice:function(doctor_advice) {
|
|
@@ -299,8 +299,8 @@
|
299
|
299
|
var str = year + "年" + month + "月" + day + "日 " + days;
|
300
|
300
|
return str;
|
301
|
301
|
}
|
302
|
|
-
|
303
|
|
-
|
|
302
|
+
|
|
303
|
+
|
304
|
304
|
},
|
305
|
305
|
|
306
|
306
|
compare(property) {
|
|
@@ -337,7 +337,7 @@
|
337
|
337
|
// var arr = newArr.join(",")
|
338
|
338
|
// var str = ""
|
339
|
339
|
// if(this.zone == 0){
|
340
|
|
- // str = arr
|
|
340
|
+ // str = arr
|
341
|
341
|
// }
|
342
|
342
|
// if(zone != 0){
|
343
|
343
|
// str = zone.join(",")
|
|
@@ -360,23 +360,23 @@
|
360
|
360
|
this.scheduleData = [];
|
361
|
361
|
if (response.data.state == 1) {
|
362
|
362
|
var scheduleData = response.data.data.schedule;
|
363
|
|
-
|
|
363
|
+
|
364
|
364
|
for(let i=0;i<scheduleData.length;i++){
|
365
|
365
|
scheduleData[i].sort = scheduleData[i].number.sort
|
366
|
366
|
}
|
367
|
367
|
var arr = scheduleData.sort(this.compare('sort'))
|
368
|
368
|
console.log("元旦快乐",arr)
|
369
|
369
|
this.scheduleData = arr
|
370
|
|
-
|
|
370
|
+
|
371
|
371
|
// var newList = []
|
372
|
372
|
// for(let i=0;i<scheduleData.length;i++){
|
373
|
373
|
// if(scheduleData.prescription.id > 0){
|
374
|
374
|
// newList.push(scheduleData[i])
|
375
|
|
- // }
|
|
375
|
+ // }
|
376
|
376
|
// }
|
377
|
377
|
// var arr = newList.sort(this.compare('sort'))
|
378
|
378
|
// console.log("元旦快乐",arr)
|
379
|
|
- // this.scheduleData = arr
|
|
379
|
+ // this.scheduleData = arr
|
380
|
380
|
} else {
|
381
|
381
|
this.$message.error("网络错误");
|
382
|
382
|
return false;
|