|
@@ -9,13 +9,13 @@
|
9
|
9
|
>打印</el-button
|
10
|
10
|
>
|
11
|
11
|
<div id="dialysis-print-box-1" class="dialysis-print-box-1">
|
12
|
|
- <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} 领药单</div></div>
|
|
12
|
+ <div class="list_title" style="border-bottom:none;"><div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">{{org_name}} <span v-if="state_name=='待发药'">发药单</span> <span v-if="state_name=='已发药'">领药单</span></div></div>
|
13
|
13
|
<div class="list_title">
|
14
|
14
|
<div>药品名称:{{name}}</div>
|
15
|
15
|
<div>规格:{{specifications}}</div>
|
16
|
16
|
<div>发药状态:{{state_name}}</div>
|
17
|
17
|
<div>日期:{{times}}</div>
|
18
|
|
-<!-- <div v-if="state==2">领药人:</div>-->
|
|
18
|
+<!-- <div v-if="state==2">领药人:</div>-->
|
19
|
19
|
</div>
|
20
|
20
|
|
21
|
21
|
<el-table
|
|
@@ -25,44 +25,44 @@
|
25
|
25
|
max-height="450"
|
26
|
26
|
:header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
|
27
|
27
|
>
|
28
|
|
- <el-table-column type="index" prop="index" label="序号" width="60">
|
|
28
|
+ <el-table-column type="index" prop="index" label="序号" width="60" align="center">
|
29
|
29
|
</el-table-column>
|
30
|
|
- <el-table-column prop="name" label="患者姓名" width="160">
|
|
30
|
+ <el-table-column prop="name" label="患者姓名" width="160" align="center">
|
31
|
31
|
<template slot-scope="scope">
|
32
|
32
|
{{scope.row.name}}
|
33
|
33
|
</template>
|
34
|
34
|
</el-table-column>
|
35
|
|
- <el-table-column prop="single_dosage" label="单次用量" width="120">
|
|
35
|
+ <el-table-column prop="single_dosage" label="单次用量" width="120" align="center">
|
36
|
36
|
<template slot-scope="scope">
|
37
|
37
|
{{scope.row.single_dosage}}
|
38
|
38
|
</template>
|
39
|
39
|
</el-table-column>
|
40
|
|
- <el-table-column prop="usage" label="用法" width="120">
|
|
40
|
+ <el-table-column prop="usage" label="用法" width="120" align="center">
|
41
|
41
|
<template slot-scope="scope">
|
42
|
42
|
{{scope.row.usage}}
|
43
|
43
|
</template>
|
44
|
44
|
</el-table-column>
|
45
|
|
- <el-table-column prop="frequency" label="频率" width="120">
|
|
45
|
+ <el-table-column prop="frequency" label="频率" width="120" align="center">
|
46
|
46
|
<template slot-scope="scope">
|
47
|
47
|
{{scope.row.frequency}}
|
48
|
48
|
</template>
|
49
|
49
|
</el-table-column>
|
50
|
|
- <el-table-column prop="days" label="天数" width="120">
|
|
50
|
+ <el-table-column prop="days" label="天数" width="120" align="center">
|
51
|
51
|
<template slot-scope="scope">
|
52
|
52
|
{{scope.row.days}}
|
53
|
53
|
</template>
|
54
|
54
|
</el-table-column>
|
55
|
|
- <el-table-column prop="total" label="总量" width="120">
|
|
55
|
+ <el-table-column prop="total" label="总量" width="120" align="center">
|
56
|
56
|
<template slot-scope="scope">
|
57
|
57
|
{{scope.row.total}}
|
58
|
58
|
</template>
|
59
|
59
|
</el-table-column>
|
60
|
|
- <el-table-column prop="data_sources" label="数据来源" width="120">
|
|
60
|
+ <el-table-column prop="data_sources" label="数据来源" width="120" align="center">
|
61
|
61
|
<template slot-scope="scope">
|
62
|
62
|
{{scope.row.data_sources}}
|
63
|
63
|
</template>
|
64
|
64
|
</el-table-column>
|
65
|
|
- <el-table-column prop="people" label="领药人" width="120">
|
|
65
|
+ <el-table-column prop="people" label="领药人" width="120" align="center">
|
66
|
66
|
<template slot-scope="scope">
|
67
|
67
|
{{scope.row.people}}
|
68
|
68
|
</template>
|
|
@@ -154,15 +154,8 @@ export default {
|
154
|
154
|
|
155
|
155
|
// 打印
|
156
|
156
|
print() {
|
|
157
|
+ console.log(this.org_name,'this.org_name')
|
157
|
158
|
Vue.prototype.printJson = printutils.printJson;
|
158
|
|
- // const style =
|
159
|
|
- // '@media print {.list_title{ width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto}}';
|
160
|
|
- // printJS({
|
161
|
|
- // printable: "dialysis-print-box-1",
|
162
|
|
- // type: "html",
|
163
|
|
- // style: style,
|
164
|
|
- // scanStyles: false,
|
165
|
|
- // });
|
166
|
159
|
this.printJson({
|
167
|
160
|
title: `
|
168
|
161
|
<div>
|
|
@@ -172,7 +165,7 @@ export default {
|
172
|
165
|
<div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
|
173
|
166
|
<div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
|
174
|
167
|
<div style="width: 230px;padding: 10px 0;">日期:${this.times}</div>
|
175
|
|
- </div>`, // 打印出来的标题
|
|
168
|
+ </div></div>`, // 打印出来的标题
|
176
|
169
|
data: this.tableData, // 需要打印的数据
|
177
|
170
|
serial: true, // 是否需要打印序列号
|
178
|
171
|
fields: [
|