|
@@ -14,7 +14,7 @@
|
14
|
14
|
<div>药品名称:{{name}}</div>
|
15
|
15
|
<div>规格:{{specifications}}</div>
|
16
|
16
|
<div>发药状态:{{state_name}}</div>
|
17
|
|
- <div>日期:</div>
|
|
17
|
+ <div>日期:{{times}}</div>
|
18
|
18
|
<!-- <div v-if="state==2">领药人:</div>-->
|
19
|
19
|
</div>
|
20
|
20
|
|
|
@@ -83,6 +83,7 @@ export default {
|
83
|
83
|
tableData: [],
|
84
|
84
|
isClose:false,
|
85
|
85
|
name:"",
|
|
86
|
+ times:"",
|
86
|
87
|
specifications:"",
|
87
|
88
|
state_name:"",
|
88
|
89
|
org_name: this.$store.getters.xt_user.org.org_name,
|
|
@@ -97,8 +98,20 @@ export default {
|
97
|
98
|
type:Number
|
98
|
99
|
}
|
99
|
100
|
},
|
100
|
|
-
|
|
101
|
+ created(){
|
|
102
|
+ this.init();
|
|
103
|
+ },
|
101
|
104
|
methods: {
|
|
105
|
+ init(){
|
|
106
|
+ // let year = new Date().getFullYear();
|
|
107
|
+ // let month = new Date().getMonth() +1;
|
|
108
|
+ // let day = new Date().getDate();
|
|
109
|
+ // let hour = new Date().getHours();
|
|
110
|
+ // let minute = new Date().getMinutes();
|
|
111
|
+ // this.times = year + "年" + month + "月" + day + "日" + hour + "时" + minute + "分"
|
|
112
|
+ // console.log("times:",this.times)
|
|
113
|
+ },
|
|
114
|
+
|
102
|
115
|
// isClose() {
|
103
|
116
|
// this.visibility = false;
|
104
|
117
|
// },
|
|
@@ -113,7 +126,8 @@ export default {
|
113
|
126
|
}
|
114
|
127
|
}
|
115
|
128
|
},
|
116
|
|
- show: function (val,data,state,ids) {
|
|
129
|
+ show: function (val,data,state,ids,times) {
|
|
130
|
+ this.times = times
|
117
|
131
|
this.visibility = true;
|
118
|
132
|
this.name = data.name
|
119
|
133
|
this.specifications = data.specifications
|
|
@@ -157,7 +171,7 @@ export default {
|
157
|
171
|
<div style="width: 230px;padding: 10px 0;">药品名称:${this.name}</div>
|
158
|
172
|
<div style="width: 230px;padding: 10px 0;">规格:${this.specifications}</div>
|
159
|
173
|
<div style="width: 230px;padding: 10px 0;">发药状态:${this.state_name}</div>
|
160
|
|
- <div style="width: 230px;padding: 10px 0;">日期:</div>
|
|
174
|
+ <div style="width: 230px;padding: 10px 0;">日期:${this.times}</div>
|
161
|
175
|
</div>`, // 打印出来的标题
|
162
|
176
|
data: this.tableData, // 需要打印的数据
|
163
|
177
|
serial: true, // 是否需要打印序列号
|