Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 3 weeks ago
parent
commit
3303f59e1e
1 changed files with 129 additions and 20 deletions
  1. 129 20
      src/xt_pages/user/sickHistory_new.vue

+ 129 - 20
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,21 +407,24 @@ 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;
415
+
302 416
 
303
-   
304 417
     this.fetchAllDoctorAndNurse()
305 418
     this.wayOptions = getDataConfig("patient", "reimbursement_ways");
419
+    console.log('this.wayOptions',this.wayOptions);
306 420
 
307 421
     this.admin_user_id = this.$store.getters.xt_user.user.id
308
-   
422
+
309 423
     if(this.admin_user_id == 0){
310 424
         this.admin_user_id = ""
311 425
     }
312 426
     this.patient_id = parseInt(this.$route.query.id)
313
-    
427
+
314 428
     if (isNaN(this.patient_id) || this.patient_id <= 0) {
315 429
       this.$notify.error({
316 430
         title: '错误',
@@ -344,7 +458,7 @@ export default {
344 458
       (nowDay < 10 ? '0' + nowDay : nowDay)
345 459
       this.getlist()
346 460
       this.fetchPatient(this.patient_id)
347
-  
461
+
348 462
   },
349 463
   methods: {
350 464
     template_dele(){
@@ -391,7 +505,7 @@ export default {
391 505
       this.edit_index = row.index
392 506
     },
393 507
     template_click(){
394
-      
508
+
395 509
       console.log('this.add_index',this.getwayoption(this.form.reimbursement_way_id));
396 510
       if(this.add_index ==0){
397 511
         this.template_dialog = true
@@ -576,9 +690,9 @@ export default {
576 690
             console.log("haaaaaaaaaaaaa",this.templateList)
577 691
           }
578 692
         })
579
-        
693
+
580 694
         // this.templateList.push(obj)
581
-        
695
+
582 696
         console.log('11111111',obj);
583 697
 
584 698
       }
@@ -599,7 +713,7 @@ export default {
599 713
 
600 714
     },
601 715
     prints(){
602
-      const style ='@media print{.content{width:960px;margin:0 auto;font-size: 23px;}}'
716
+      const style ='@media print{.content{width:960px;margin:0 auto;}}'
603 717
       printJS({
604 718
         printable: 'Physical_print_content',
605 719
         type: 'html',
@@ -652,7 +766,7 @@ export default {
652 766
       if(this.admin_user_id == ""){
653 767
          this.admin_user_id = 0
654 768
       }
655
-    
769
+
656 770
       let params = {
657 771
         id:this.id,
658 772
         patient_id: this.patient_id,
@@ -697,6 +811,7 @@ export default {
697 811
 
698 812
     createAction: function() {
699 813
 
814
+      console.log("hhhhhhhhhhhhhhhhhh",this.$refs)
700 815
       this.new_content = this.$refs.editor.contents
701 816
       if (this.new_content.length == 0) {
702 817
         this.$message.error('请填写病程内容')
@@ -722,7 +837,7 @@ export default {
722 837
       if(this.admin_user_id == ""){
723 838
          this.admin_user_id = 0
724 839
       }
725
-    
840
+
726 841
       let params = {
727 842
         id:this.id,
728 843
         patient_id: this.patient_id,
@@ -801,13 +916,7 @@ export default {
801 916
     }, onRowClick(row, event, column) {
802 917
       this.table_current_index = row.index
803 918
     },
804
-    print(){
805
-      if(this.ids.length == 0){
806
-        this.$message.error('请选择要打印的病程')
807
-        return
808
-      }
809
-      this.$router.push({ path: "/sickhistory/print?ids="+this.ids+"&patient_id="+this.patient_id});
810
-    },
919
+
811 920
     getlist(){
812 921
        var params = {
813 922
         patient_id:this.patient_id
@@ -835,7 +944,7 @@ export default {
835 944
       }else{
836 945
         return uParseTime(time, '{y}-{m}-{d}')
837 946
       }
838
-     
947
+
839 948
     },
840 949
     getCurrentChange(val){
841 950
       console.log("val--------------",val)
@@ -922,7 +1031,7 @@ export default {
922 1031
       }else{
923 1032
         return ''
924 1033
       }
925
-      
1034
+
926 1035
     }
927 1036
   }
928 1037
 }