see999 пре 3 година
родитељ
комит
ca3451142a
1 измењених фајлова са 19 додато и 10 уклоњено
  1. 19 10
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue

+ 19 - 10
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Прегледај датотеку

@@ -66,7 +66,7 @@
66 66
         </div>
67 67
         <div class="otherInfo">
68 68
             <div class="otherName">药物过敏史:</div>
69
-            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
69
+            <div style="flex:1;">{{history.allergic_history?history.allergic_history:''}}</div>
70 70
         </div>
71 71
         <div class="otherInfo">
72 72
             <div class="otherName">个人史:</div>
@@ -88,8 +88,13 @@
88 88
             <div class="otherName">门诊医嘱:</div>
89 89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
90 90
         </div>
91
-        <div style="margin-top:20px;text-align:right;">
92
-            医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
91
+        <div style="display:flex;justify-content: space-between;">
92
+            <div style="margin-top:20px;">
93
+                打印日期:{{ printDate }}
94
+            </div>
95
+            <div style="margin-top:20px;text-align:right;">
96
+                医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
97
+            </div>
93 98
         </div>
94 99
     </div>
95 100
 </div>
@@ -110,7 +115,8 @@ export default {
110 115
             educationOptions:[],
111 116
             departmentList:[],
112 117
             orgname:'',
113
-            history:{}
118
+            history:{},
119
+            printDate:''
114 120
         }                   
115 121
     },
116 122
     methods:{
@@ -176,13 +182,16 @@ export default {
176 182
     }
177 183
     },
178 184
     created(){
179
-      this.educationOptions = getDataConfig("patient", "education_types");
180
-      console.log("22222",this.educationOptions)
181
-      this.getAllDoctorList()
182
-      this.getPatientCaseHistory()
185
+        this.educationOptions = getDataConfig("patient", "education_types");
186
+        this.getAllDoctorList()
187
+        this.getPatientCaseHistory()
183 188
 
184
-     var xtuser = this.$store.getters.xt_user
185
-     this.orgname = xtuser.org.org_name
189
+        var xtuser = this.$store.getters.xt_user
190
+        this.orgname = xtuser.org.org_name
191
+        var data = new Date();
192
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
193
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
194
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
186 195
     }
187 196
 }
188 197
 </script>