|
@@ -17,6 +17,13 @@
|
17
|
17
|
@click="next"
|
18
|
18
|
>下一位</el-button
|
19
|
19
|
>
|
|
20
|
+ <el-button
|
|
21
|
+ size="small"
|
|
22
|
+ type="primary"
|
|
23
|
+ @click="printOrderOne"
|
|
24
|
+ icon="el-icon-printer"
|
|
25
|
+ >打印上机单</el-button
|
|
26
|
+ >
|
20
|
27
|
<el-button
|
21
|
28
|
size="small"
|
22
|
29
|
type="primary"
|
|
@@ -207,7 +214,166 @@
|
207
|
214
|
</el-tab-pane>
|
208
|
215
|
</el-tabs>
|
209
|
216
|
|
|
217
|
+
|
210
|
218
|
|
|
219
|
+ <el-dialog
|
|
220
|
+ :visible.sync="startVisibility"
|
|
221
|
+ :close-on-click-modal="false"
|
|
222
|
+ :close-on-press-escape="false"
|
|
223
|
+ :show-close="false"
|
|
224
|
+ width="30%"
|
|
225
|
+ >
|
|
226
|
+ <el-button
|
|
227
|
+ size="small"
|
|
228
|
+ icon="el-icon-printer"
|
|
229
|
+ type="primary"
|
|
230
|
+ @click="printAction"
|
|
231
|
+ style="float:right"
|
|
232
|
+ >打印</el-button
|
|
233
|
+ >
|
|
234
|
+ <div id="print_content">
|
|
235
|
+ <div class="print_main_content">
|
|
236
|
+ <div class="table_panel">
|
|
237
|
+ <div v-for="(main_collection,index) in printList" :key="index">
|
|
238
|
+ <div class="signPrint" style="font-size:16px;">
|
|
239
|
+ <div style="margin-left:50px;">姓名:
|
|
240
|
+ <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
|
|
241
|
+ <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
|
|
242
|
+ ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
|
|
243
|
+ </div>
|
|
244
|
+ <div class="printCell">
|
|
245
|
+ <span>
|
|
246
|
+ 床号:{{ main_collection.number.number }}
|
|
247
|
+ <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
|
|
248
|
+ <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
|
|
249
|
+ <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
|
|
250
|
+ </span>
|
|
251
|
+ <span> </span>
|
|
252
|
+ </div>
|
|
253
|
+ <div class="printCell">
|
|
254
|
+ <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
|
|
255
|
+ <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
|
|
256
|
+
|
|
257
|
+ </div>
|
|
258
|
+ <div class="printCell">
|
|
259
|
+ <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
|
|
260
|
+ 首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
|
|
261
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 2">
|
|
262
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}mg
|
|
263
|
+ </span>
|
|
264
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 3">
|
|
265
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
266
|
+ </span>
|
|
267
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 4">
|
|
268
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}mg
|
|
269
|
+ </span>
|
|
270
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 5">
|
|
271
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}} mg
|
|
272
|
+ </span>
|
|
273
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 6">
|
|
274
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
275
|
+ </span>
|
|
276
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 7">
|
|
277
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
278
|
+ </span>
|
|
279
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 8">
|
|
280
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
281
|
+ </span>
|
|
282
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 9">
|
|
283
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
284
|
+ </span>
|
|
285
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 10">
|
|
286
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
287
|
+ </span>
|
|
288
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 11">
|
|
289
|
+ {{main_collection.dialysissolution.anticoagulant_shouji}}iu
|
|
290
|
+ </span>
|
|
291
|
+ </div>
|
|
292
|
+ <div class="printCell">
|
|
293
|
+ <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
|
|
294
|
+ 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
|
|
295
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 1">
|
|
296
|
+ mg/h
|
|
297
|
+ </span>
|
|
298
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 2">
|
|
299
|
+ mg/h
|
|
300
|
+ </span>
|
|
301
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 3">
|
|
302
|
+ iu/h
|
|
303
|
+ </span>
|
|
304
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 4">
|
|
305
|
+ mg/h
|
|
306
|
+ </span>
|
|
307
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 5">
|
|
308
|
+ mg/h
|
|
309
|
+ </span>
|
|
310
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 6">
|
|
311
|
+ iu/h
|
|
312
|
+ </span>
|
|
313
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 7">
|
|
314
|
+ iu/h
|
|
315
|
+ </span>
|
|
316
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 8">
|
|
317
|
+ iu/h
|
|
318
|
+ </span>
|
|
319
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 9">
|
|
320
|
+ iu/h
|
|
321
|
+ </span>
|
|
322
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 10">
|
|
323
|
+ iu/h
|
|
324
|
+ </span>
|
|
325
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 11">
|
|
326
|
+ iu/h
|
|
327
|
+ </span>
|
|
328
|
+ </div>
|
|
329
|
+ <div class="printCell">
|
|
330
|
+ <span>处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
|
|
331
|
+ 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
|
|
332
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 1">
|
|
333
|
+ mg
|
|
334
|
+ </span>
|
|
335
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 2">
|
|
336
|
+ mg
|
|
337
|
+ </span>
|
|
338
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 3">
|
|
339
|
+ iu
|
|
340
|
+ </span>
|
|
341
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 4">
|
|
342
|
+ mg
|
|
343
|
+ </span>
|
|
344
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 5">
|
|
345
|
+ mg
|
|
346
|
+ </span>
|
|
347
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 6">
|
|
348
|
+ iu
|
|
349
|
+ </span>
|
|
350
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 7">
|
|
351
|
+ iu
|
|
352
|
+ </span>
|
|
353
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 8">
|
|
354
|
+ iu
|
|
355
|
+ </span>
|
|
356
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 9">
|
|
357
|
+ iu
|
|
358
|
+ </span>
|
|
359
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 10">
|
|
360
|
+ iu
|
|
361
|
+ </span>
|
|
362
|
+ <span v-if="main_collection.dialysissolution.anticoagulant == 11">
|
|
363
|
+ iu
|
|
364
|
+ </span>
|
|
365
|
+ </div>
|
|
366
|
+ </div>
|
|
367
|
+ </div>
|
|
368
|
+ </div>
|
|
369
|
+ </div>
|
|
370
|
+ </div>
|
|
371
|
+
|
|
372
|
+ <span slot="footer" class="dialog-footer">
|
|
373
|
+ <el-button @click="startVisibility = false">取 消</el-button>
|
|
374
|
+ <el-button type="primary" @click="startVisibility = false">确 定</el-button>
|
|
375
|
+ </span>
|
|
376
|
+ </el-dialog>
|
211
|
377
|
|
212
|
378
|
|
213
|
379
|
</div>
|
|
@@ -554,11 +720,12 @@ import {
|
554
|
720
|
getDialysisScheduleDetail,
|
555
|
721
|
getLongAdvice,
|
556
|
722
|
getDialysisRecordInitData,
|
557
|
|
- getDialysisSchedules
|
|
723
|
+ getDialysisSchedules,
|
|
724
|
+ getInitPrintData
|
558
|
725
|
} from '@/api/dialysis_record'
|
559
|
726
|
import { parseTime } from '@/utils'
|
560
|
727
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
561
|
|
-
|
|
728
|
+import print from 'print-js'
|
562
|
729
|
export default {
|
563
|
730
|
name: 'index',
|
564
|
731
|
components: {
|
|
@@ -688,6 +855,9 @@ export default {
|
688
|
855
|
stockType:[],
|
689
|
856
|
preparestock:[],
|
690
|
857
|
his_doctor_advices:[],
|
|
858
|
+ startVisibility:false,
|
|
859
|
+ printList:[],
|
|
860
|
+ anticoagulants_confit:null,
|
691
|
861
|
}
|
692
|
862
|
},
|
693
|
863
|
created() {
|
|
@@ -732,8 +902,9 @@ export default {
|
732
|
902
|
data: {type:3,page:0,size:0},
|
733
|
903
|
};
|
734
|
904
|
this.websocketSend(this.initData)
|
735
|
|
-
|
736
|
905
|
this.getInitData()
|
|
906
|
+ this.getInitPrintData()
|
|
907
|
+ this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
|
737
|
908
|
},
|
738
|
909
|
beforeMount() {
|
739
|
910
|
if (this.websocket) {
|
|
@@ -1002,11 +1173,11 @@ export default {
|
1002
|
1173
|
}
|
1003
|
1174
|
|
1004
|
1175
|
var solution = resp.data.solution // 透析方案
|
1005
|
|
- // console.log("透析方案22223333333333",solution)
|
|
1176
|
+
|
1006
|
1177
|
var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
|
1007
|
1178
|
|
1008
|
1179
|
var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
|
1009
|
|
- // console.log("透器评估",predialysis_evaluation)
|
|
1180
|
+
|
1010
|
1181
|
if (predialysis_evaluation != null) {
|
1011
|
1182
|
if (predialysis_evaluation.blood_access_part_id == -2) {
|
1012
|
1183
|
predialysis_evaluation.blood_access_part_id = 0
|
|
@@ -1059,7 +1230,7 @@ export default {
|
1059
|
1230
|
var system_prescribe = resp.data.system_prescribe
|
1060
|
1231
|
|
1061
|
1232
|
var lastAssessment = resp.data.lastAssessment
|
1062
|
|
- // console.log("最后一次血管通路",lastAssessment)
|
|
1233
|
+
|
1063
|
1234
|
this.$refs.nav.setLastRecord(
|
1064
|
1235
|
lastPredialysisEvaluation,
|
1065
|
1236
|
lastMonitorRecord,
|
|
@@ -1149,12 +1320,12 @@ export default {
|
1149
|
1320
|
this.device_numbers = resp.data.device_numbers
|
1150
|
1321
|
|
1151
|
1322
|
var his_doctor_advices = resp.data.his_advices
|
1152
|
|
- console.log("his_doctor_advices 2323232233232332323323232",this.his_doctor_advices)
|
|
1323
|
+
|
1153
|
1324
|
this.his_doctor_advices = his_doctor_advices
|
1154
|
1325
|
this.his_is_open = resp.data.is_open_config.is_open
|
1155
|
1326
|
|
1156
|
1327
|
this.is_advice_open = resp.data.is_advice_open.is_advice_open
|
1157
|
|
- console.log("is_advice_open 2323232233232332323323232",this.is_advice_open)
|
|
1328
|
+
|
1158
|
1329
|
var stockType = resp.data.stockType
|
1159
|
1330
|
this.stockType = stockType
|
1160
|
1331
|
|
|
@@ -1165,8 +1336,7 @@ export default {
|
1165
|
1336
|
}else{
|
1166
|
1337
|
this.preparestock = []
|
1167
|
1338
|
}
|
1168
|
|
- console.log("prepare222222",prepare)
|
1169
|
|
-
|
|
1339
|
+
|
1170
|
1340
|
for (let i = 0; i < this.doctor_advices.length; i++){
|
1171
|
1341
|
this.doctor_advices[i]['origin'] = 1
|
1172
|
1342
|
}
|
|
@@ -1185,9 +1355,6 @@ export default {
|
1185
|
1355
|
return cur
|
1186
|
1356
|
}, []) // 设置cur默认类型为数组,并且初始值为空的数组
|
1187
|
1357
|
|
1188
|
|
- console.log(this.doctor_advices)
|
1189
|
|
-
|
1190
|
|
-
|
1191
|
1358
|
var device_map = {}
|
1192
|
1359
|
for (let index = 0; index < this.devices.length; index++) {
|
1193
|
1360
|
const device = this.devices[index]
|
|
@@ -1232,6 +1399,9 @@ export default {
|
1232
|
1399
|
'/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no
|
1233
|
1400
|
)
|
1234
|
1401
|
},
|
|
1402
|
+ printOrderOne(){
|
|
1403
|
+ this.startVisibility = true
|
|
1404
|
+ },
|
1235
|
1405
|
// 日期
|
1236
|
1406
|
handleScheduleDateChange: function(index) {
|
1237
|
1407
|
this.treatStateVal = 0
|
|
@@ -1342,8 +1512,6 @@ export default {
|
1342
|
1512
|
},
|
1343
|
1513
|
requestDialysisSchedules: function() {
|
1344
|
1514
|
var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
|
1345
|
|
- console.log("ymd233223232",ymd)
|
1346
|
|
- console.log("prescription",this.prescription)
|
1347
|
1515
|
getDialysisSchedules(ymd).then(rs => {
|
1348
|
1516
|
var resp = rs.data
|
1349
|
1517
|
if (resp.state == 1) {
|
|
@@ -1356,7 +1524,7 @@ export default {
|
1356
|
1524
|
// }
|
1357
|
1525
|
// }
|
1358
|
1526
|
|
1359
|
|
- // console.log("hh2332223323232",schedules)
|
|
1527
|
+
|
1360
|
1528
|
this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
1361
|
1529
|
const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
|
1362
|
1530
|
if (this.activeName == 'first') {
|
|
@@ -1384,7 +1552,7 @@ export default {
|
1384
|
1552
|
})
|
1385
|
1553
|
this.tableData = newArr
|
1386
|
1554
|
this.getData()
|
1387
|
|
- // console.log(66666666666,this.tableData)
|
|
1555
|
+
|
1388
|
1556
|
} else {
|
1389
|
1557
|
this.$message.error(resp.msg)
|
1390
|
1558
|
}
|
|
@@ -1557,13 +1725,13 @@ export default {
|
1557
|
1725
|
for (let j = 0; j < patientArr[i].schedules.length; j++) {
|
1558
|
1726
|
if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
|
1559
|
1727
|
// 删除元素后改变i的值
|
1560
|
|
- console.log('透析区', patientArr[i].schedules[j])
|
|
1728
|
+
|
1561
|
1729
|
patientArr[i].schedules.splice(j--, 1)
|
1562
|
1730
|
}
|
1563
|
1731
|
}
|
1564
|
1732
|
}
|
1565
|
1733
|
let arr1 = []
|
1566
|
|
- console.log('patientArr', patientArr)
|
|
1734
|
+
|
1567
|
1735
|
// let patientArr =
|
1568
|
1736
|
if (this.patientStateVal == 0) {
|
1569
|
1737
|
arr1 = patientArr
|
|
@@ -1578,7 +1746,7 @@ export default {
|
1578
|
1746
|
}
|
1579
|
1747
|
}
|
1580
|
1748
|
}
|
1581
|
|
- console.log('执行1', arr)
|
|
1749
|
+
|
1582
|
1750
|
arr1 = arr
|
1583
|
1751
|
} else if (this.patientStateVal == 2) {
|
1584
|
1752
|
let arr = []
|
|
@@ -1591,7 +1759,7 @@ export default {
|
1591
|
1759
|
}
|
1592
|
1760
|
}
|
1593
|
1761
|
}
|
1594
|
|
- console.log('执行2', arr)
|
|
1762
|
+
|
1595
|
1763
|
arr1 = arr
|
1596
|
1764
|
} else if (this.patientStateVal == 3) {
|
1597
|
1765
|
let arr = []
|
|
@@ -1604,7 +1772,7 @@ export default {
|
1604
|
1772
|
}
|
1605
|
1773
|
}
|
1606
|
1774
|
}
|
1607
|
|
- console.log('执行1', arr)
|
|
1775
|
+
|
1608
|
1776
|
arr1 = arr
|
1609
|
1777
|
} else if (this.patientStateVal == 4) {
|
1610
|
1778
|
let arr = []
|
|
@@ -1617,7 +1785,7 @@ export default {
|
1617
|
1785
|
}
|
1618
|
1786
|
}
|
1619
|
1787
|
}
|
1620
|
|
- console.log('执行2', arr)
|
|
1788
|
+
|
1621
|
1789
|
arr1 = arr
|
1622
|
1790
|
}
|
1623
|
1791
|
|
|
@@ -1641,7 +1809,7 @@ export default {
|
1641
|
1809
|
arr = JSON.parse(JSON.stringify(arr1))
|
1642
|
1810
|
for (let i = 0; i < arr.length; i++) {
|
1643
|
1811
|
for (let j = 0; j < arr[i].schedules.length; j++) {
|
1644
|
|
- console.log(77777777777,arr[i].schedules)
|
|
1812
|
+
|
1645
|
1813
|
if(arr[i].schedules[j].doctor_advice.length == 0){
|
1646
|
1814
|
arr[i].schedules.splice(j--, 1)
|
1647
|
1815
|
}
|
|
@@ -1750,7 +1918,7 @@ export default {
|
1750
|
1918
|
}
|
1751
|
1919
|
},
|
1752
|
1920
|
websocketMess() {
|
1753
|
|
- console.log('执行',this.websocket)
|
|
1921
|
+
|
1754
|
1922
|
this.websocket.onmessage = e => {
|
1755
|
1923
|
let res = JSON.parse(e.data);
|
1756
|
1924
|
// let res = re.data;
|
|
@@ -1799,8 +1967,7 @@ export default {
|
1799
|
1967
|
calledArr.push(item)
|
1800
|
1968
|
}
|
1801
|
1969
|
})
|
1802
|
|
- console.log('waitingCalledArr待叫号',waitingCalledArr)
|
1803
|
|
- console.log('waitingCalledArr以较好',calledArr)
|
|
1970
|
+
|
1804
|
1971
|
this.waitingCalled = waitingCalledArr
|
1805
|
1972
|
this.called = calledArr
|
1806
|
1973
|
}else if(res.channel == 'allQueueList'){
|
|
@@ -1857,7 +2024,7 @@ export default {
|
1857
|
2024
|
let org_id = parseInt(sessionStorage.getItem("org_id"));
|
1858
|
2025
|
let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
|
1859
|
2026
|
axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
|
1860
|
|
- console.log(res)
|
|
2027
|
+
|
1861
|
2028
|
// let patientArr = res.data.queue_list.data
|
1862
|
2029
|
// this.patientArr = patientArr
|
1863
|
2030
|
// this.$emit('child-event',this.patientArr)
|
|
@@ -1919,11 +2086,10 @@ export default {
|
1919
|
2086
|
}else {
|
1920
|
2087
|
schedule_type = 2
|
1921
|
2088
|
}
|
1922
|
|
- console.log('patient_id',this.$route.query.date)
|
|
2089
|
+
|
1923
|
2090
|
let org_id = parseInt(sessionStorage.getItem("org_id"));
|
1924
|
2091
|
let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
|
1925
|
2092
|
axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
|
1926
|
|
- console.log(res)
|
1927
|
2093
|
if(res.data.data.patientInfo == null){
|
1928
|
2094
|
this.$message.error('已经是最后一位了');
|
1929
|
2095
|
return
|
|
@@ -1974,6 +2140,30 @@ export default {
|
1974
|
2140
|
},
|
1975
|
2141
|
getDates(time){
|
1976
|
2142
|
return moment(time * 1000).format('HH:mm:ss')
|
|
2143
|
+ },
|
|
2144
|
+ printAction: function() {
|
|
2145
|
+ const style = '@media print {.signPrint{margin-left:30px;} .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 180px;} @page {margin-top:10px;}}'
|
|
2146
|
+ const style1 = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } .printCell span{display: inline-block;width: 170px;} @page {margin-top:10px;}}'
|
|
2147
|
+ printJS({
|
|
2148
|
+ printable: 'print_content',
|
|
2149
|
+ type: 'html',
|
|
2150
|
+ documentTitle: ' ',
|
|
2151
|
+ style: style1,
|
|
2152
|
+ scanStyles: false
|
|
2153
|
+ })
|
|
2154
|
+ },
|
|
2155
|
+ getInitPrintData(){
|
|
2156
|
+ var params = {
|
|
2157
|
+ patient_id:this.$route.query.patient_id,
|
|
2158
|
+ record_date:this.$route.query.date,
|
|
2159
|
+ }
|
|
2160
|
+ getInitPrintData(params).then(response=>{
|
|
2161
|
+ if(response.data.state == 1){
|
|
2162
|
+ var list = response.data.data.list
|
|
2163
|
+ console.log("list2332322332",list)
|
|
2164
|
+ this.printList = list
|
|
2165
|
+ }
|
|
2166
|
+ })
|
1977
|
2167
|
}
|
1978
|
2168
|
}
|
1979
|
2169
|
}
|