Browse Source

12月13 自动生成

yq1 3 weeks ago
parent
commit
98fafc4bbf
1 changed files with 143 additions and 36 deletions
  1. 143 36
      src/xt_pages/user/sickHistory_new.vue

+ 143 - 36
src/xt_pages/user/sickHistory_new.vue View File

@@ -197,8 +197,119 @@
197 197
         </span>
198 198
       </el-dialog>
199 199
     </div>
200
+    <!-- 打印 -->
201
+    <div style="display: none;">
202
+      <div id="Physical_print_content" style="font-size: 14px;">
203
+        <div style="width: 100%;text-align: center;margin-bottom: 10px;">
204
+          <h2>{{orgname}}</h2>
205
+        </div>
206
+        <div style="display: flex;padding: 5px 0;border-bottom: 1px solid black;"> 
207
+          <div style="flex: 1;">姓名:</div>
208
+          <div style="flex: 1;">病历号:</div>
209
+          <div style="flex: 1;">病区-床号:</div>
210
+          <div style="flex: 1;">接收日期:</div>
211
+        </div>
212
+        <div style="display: flex;margin: 5px;">
213
+          <div style="flex: 1;">性别:</div>
214
+          <div style="flex: 1;">年龄:岁 出生日期:</div>
215
+          <div style="flex: 1;">身份证号:340223194809195837</div>
216
+        </div>
217
+        <div style="display: flex;margin: 5px;">
218
+          <div style="flex: 1;">病人来源:</div>
219
+          <div style="flex: 1;">透析号:</div>
220
+          <div style="flex: 1;">首次透析日期:</div>
221
+        </div>
222
+        <div style="display: flex;margin: 5px;">
223
+          <div style="flex: 1;">报销方式:</div>
224
+          <div style="flex: 1;">工作单位:</div>
225
+          <div style="flex: 1;">联系电话:</div>
226
+        </div>
227
+        <div style="display: flex;margin: 5px;">
228
+          <div style="flex: 1;">过敏药物:</div>
229
+          <div style="flex: 1;">肾移植史:</div>
230
+          <div style="flex: 1;">腹膜透析史:</div>
231
+        </div>
232
+        <div style="display: flex;margin: 5px;">
233
+          <div style="flex: 1;">家庭住址: </div>
234
+          <!-- <div style="flex: 1;"></div>
235
+          <div style="flex: 1;"></div> -->
236
+        </div>
237
+        <div style="font-size: 20px;font-weight: bold;text-align: center;margin: 10px;">病史内容</div>
238
+        <div v-html="template_content"></div>
239
+        <div class="content" style="margin-top: 20px;">
240
+            <div style="text-align: center;font-size: 20px;font-weight: bold;margin: 10px;">体格检查单</div>
241
+            <div style="display: flex;justify-content: space-around;padding: 5px;">
242
+              <div style="">T:</div>
243
+              <div style="">P:</div>
244
+              <div style="">R:</div>
245
+              <div style="">BP:</div>
246
+            </div>
247
+            <div >
248
+              <span >{{  }}贫血容貌,</span>
249
+              <span>{{ }}体位,</span>
250
+              <span>{{ }}浮肿,</span>
251
+              <span>出血点/瘀斑/血肿:{{ }},</span>
252
+              <span>发育{{ }},</span>
253
+              <span>营养{{ }},</span>
254
+              <span>神志{{ }}</span> <br/>
200 255
 
201
-    <p></p>
256
+              <span style="font-weight: bold;">皮肤黏膜:</span>
257
+              <span>皮肤黏膜{{ }},</span>
258
+              <span>{{ }}皮下出血,</span>
259
+              <span>{{ }}紫癜,</span>
260
+              <span>皮肤温度:{{ }}</span><br/>
261
+              <span style="font-weight: bold;">淋巴结:</span>
262
+              <span>浅表淋巴肿大:{{  }}</span>
263
+              <span>部位:{{  }}</span>
264
+              <br/>
265
+              <span style="font-weight: bold;">头部:</span>
266
+              <span>眼睑{{ }}</span>
267
+              <span>瞳孔(等大等圆):{{  }}</span>
268
+              <span>左(mm):{{  }}</span>
269
+              <span>右(mm):{{  }}</span>
270
+              <span>对光反射:{{  }}</span>
271
+              <span>扁桃体:{{  }}</span>
272
+              <span>咽部:{{  }}</span>
273
+              <span>其他:{{  }}</span><br/>
274
+              <span style="font-weight: bold;">颈部:</span>
275
+              <span>颈静脉:{{ }}</span>
276
+              <span>甲状腺:{{  }}</span>
277
+              <span>其他:{{  }}</span><br/>
278
+
279
+              <span style="font-weight: bold;"> 肺脏:</span>
280
+              <span>呼吸音:{{  }}</span>
281
+              <span>胸膜摩擦音:{{ }}</span>
282
+              <span>部位:{{ }}</span>
283
+              <span>啰音:{{  }}</span>
284
+              <span>描述:{{  }}</span><br/>
285
+              <span style="font-weight: bold;">心脏:</span>
286
+              <span>心脏大小:{{  }}</span>
287
+              <span>心律:{{  }}</span>
288
+              <span>心包摩擦声:{{  }}</span>
289
+              <span>杂音:{{  }}</span>
290
+              <span>附加音:{{  }}</span>
291
+              <span>描述:{{  }}</span><br/>
292
+              <span style="font-weight: bold;">腹部:</span>
293
+              <span>腹水征:{{  }}</span>
294
+              <span>肝颈静脉返流征:{{  }}</span>
295
+              <span>肝脏(压痛):{{  }}</span>
296
+              <span>肝脏(叩痛):{{  }}</span>
297
+              <span>脾脏(压痛):{{  }}</span>
298
+              <span>脾脏(叩痛):{{  }}</span>
299
+              <span>肾脏(压痛):{{  }}</span>
300
+              <span>肾脏(叩痛):{{  }}</span>
301
+              <span>描述:{{  }}</span><br/>
302
+              <span style="font-weight: bold;">其他:</span>
303
+              <span>{{  }}</span>
304
+
305
+            </div>
306
+        </div>
307
+        <div style="text-align: right;">
308
+          <span>病历书写者:</span>
309
+          <span>日期:</span>
310
+        </div>
311
+      </div>
312
+    </div>
202 313
   </div>
203 314
 
204 315
 </template>
@@ -296,9 +407,11 @@ export default {
296 407
       form:{},
297 408
       wayOptions: null,
298 409
       patientVascularAccessOne:{},
410
+      orgname:'',
299 411
     }
300 412
   },
301 413
   created() {
414
+    this.orgname = this.$store.getters.xt_user.org.org_name;
302 415
     this.wayOptions = getDataConfig("patient", "reimbursement_ways");
303 416
     console.log('this.wayOptions',this.wayOptions);
304 417
     
@@ -593,7 +706,7 @@ export default {
593 706
 
594 707
     },
595 708
     prints(){
596
-      const style ='@media print{.content{width:960px;margin:0 auto;font-size: 23px;}}'
709
+      const style ='@media print{.content{width:960px;margin:0 auto;}}'
597 710
       printJS({
598 711
         printable: 'Physical_print_content',
599 712
         type: 'html',
@@ -789,13 +902,7 @@ export default {
789 902
     }, onRowClick(row, event, column) {
790 903
       this.table_current_index = row.index
791 904
     },
792
-    print(){
793
-      if(this.ids.length == 0){
794
-        this.$message.error('请选择要打印的病程')
795
-        return
796
-      }
797
-      this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
798
-    },
905
+
799 906
     getlist(){
800 907
        var params = {
801 908
         patient_id:this.patient_id
@@ -864,34 +971,34 @@ export default {
864 971
         title:this.template_name,
865 972
         content: this.$refs.editor.contents,
866 973
       }
867
-   saveSickHistoryTemplate(params).then(response=>{
868
-      if(response.data.state == 1){
869
-        var sickHistoryTemplate =  response.data.data.sickHistoryTemplate
870
-        this.$message.success("保存成功!")
871
-        this.template_dialog = false
872
-      }
873
-     })
874
-   },
875
-   toContentPint(){
876
-    this.$refs.editor.contents = this.template_content
877
-    this.library_dialog = false
878
-   },
879
-   fetchPatient(id) {
880
-      fetchPatient(id).then((response) => {
881
-          console.log('fetchPatient11111',response.data.data);
882
-          if(response.data.state ==1){
883
-            this.form = response.data.data.patient;
884
-            this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
885
-          }
886
-        })
887
-        .catch((err) => {
888
-          console.log("patient get err", err);
889
-          this.$notify.error({
890
-            title: "错误",
891
-            message: "网络异常",
974
+      saveSickHistoryTemplate(params).then(response=>{
975
+        if(response.data.state == 1){
976
+          var sickHistoryTemplate =  response.data.data.sickHistoryTemplate
977
+          this.$message.success("保存成功!")
978
+          this.template_dialog = false
979
+        }
980
+      })
981
+    },
982
+    toContentPint(){
983
+      this.$refs.editor.contents = this.template_content
984
+      this.library_dialog = false
985
+    },
986
+    fetchPatient(id) {
987
+        fetchPatient(id).then((response) => {
988
+            console.log('fetchPatient11111',response.data.data);
989
+            if(response.data.state ==1){
990
+              this.form = response.data.data.patient;
991
+              this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
992
+            }
993
+          })
994
+          .catch((err) => {
995
+            console.log("patient get err", err);
996
+            this.$notify.error({
997
+              title: "错误",
998
+              message: "网络异常",
999
+            });
1000
+            this.$router.push("/patients/patients");
892 1001
           });
893
-          this.$router.push("/patients/patients");
894
-        });
895 1002
     },
896 1003
     getwayoption(id){
897 1004
       if(id != 0){