Browse Source

10月12,普爱

yq1 8 months ago
parent
commit
6a2e6cba70

+ 27 - 30
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue View File

@@ -19,12 +19,10 @@
19 19
           class="print_page_main_content"
20 20
         >
21 21
           <div style="display: inline-block; width: 100%; text-align: center">
22
-            <div
23
-              class="order-yy-name"
24
-              style="
25
-                letter-spacing: 0;
22
+            <div class="order-yy-name"
23
+              style="letter-spacing: 0;
26 24
                 font-weight: 600;
27
-                font-size: 22px;
25
+                font-size: 25px;
28 26
                 display: inline-block;
29 27
               "
30 28
             >
@@ -32,59 +30,59 @@
32 30
             </div>
33 31
           </div>
34 32
           
35
-          <div class="row">
36
-            <div class="inline_block">
37
-              姓名
33
+          <div class="row" style="display: flex">
34
+            <div class="inline_block" style="flex: 1;">
35
+              姓名:
38 36
               <div class="under_line" style="width: 50px; text-align: center">
39 37
                 {{ record.patient.name }}
40 38
               </div>
41 39
             </div>
42
-            <div class="inline_block" style="margin-left: 10px">
43
-              性别
40
+            <div class="inline_block" style="flex: 1;">
41
+              性别:
44 42
               <div class="under_line" style="width: 30px; text-align: center">
45 43
                 {{ record.patient.gender == 1 ? "男" : "女" }}
46 44
               </div>
47 45
             </div>
48
-            <div class="inline_block" style="margin-left: 10px">
49
-              年龄
46
+            <div class="inline_block" style="flex: 1;">
47
+              年龄:
50 48
               <div class="under_line" style="width: 30px; text-align: center">
51 49
                 <!-- {{ record.patient.age }} -->
52 50
                 {{ getAge(record.patient) }}
53 51
               </div>
54 52
55 53
             </div>
56
-            <div class="inline_block" v-if="record.receive_assessment.condition!=1">
57
-                门诊
54
+            <div class="inline_block" v-if="record.receive_assessment.condition!=1" style="flex: 1;">
55
+                门诊:
58 56
                 <div class="under_line" style="width: 30px; text-align: center">
59 57
                   <check-box :checked="record.patient.source == 1"></check-box>
60 58
                 </div>
61 59
               </div>
62
-            <div class="inline_block" v-if="record.receive_assessment.condition==1">
63
-              住院
60
+            <div class="inline_block" v-if="record.receive_assessment.condition==1" style="flex: 1;">
61
+              住院:
64 62
               <div class="under_line" style="width: 30px; text-align: center">
65 63
                 <check-box :checked="record.patient.source == 1"></check-box>
66 64
               </div>
67 65
             </div>
68
-            <div class="inline_block">
69
-              病区
66
+            <div class="inline_block" style="flex: 1;">
67
+              病区:
70 68
               <div class="under_line" style="width: 50px; text-align: center">
71 69
                 {{ record.device_zone.name}}
72 70
               </div>
73 71
             </div>
74
-            <div class="inline_block">
75
-              床号
72
+            <div class="inline_block" style="flex: 1;">
73
+              床号:
76 74
               <div class="under_line" style="width: 50px; text-align: center">
77 75
                 {{ record.device_number.number }}
78 76
               </div>
79 77
             </div>
80
-            <div class="inline_block">
81
-              透析号
78
+            <div class="inline_block" style="flex: 1;">
79
+              透析号:
82 80
               <div class="under_line" style="width: 70px; text-align: center">
83 81
                 {{ record.patient.dialysis_no }}
84 82
               </div>
85 83
             </div>
86
-            <div class="inline_block" style="margin-left: 5px">
87
-              住院号
84
+            <div class="inline_block" style="flex: 1;">
85
+              住院号:
88 86
               <div
89 87
                 class="under_line"
90 88
                 style="width: 70px; text-align: left"
@@ -103,7 +101,7 @@
103 101
           </div>
104 102
           <div class="row">
105 103
             <div style="">
106
-              诊断
104
+              诊断:
107 105
               <div style="border-bottom: 1px solid black;width: 95%;text-align: left;word-break: break-all;
108 106
                   word-wrap: break-word;display: inline-block;white-space: unset;"
109 107
               >
@@ -1206,9 +1204,8 @@
1206 1204
                 </tr>
1207 1205
                 <tr>
1208 1206
                   <td>
1209
-                    <div class="row"
1210
-                      style="padding: 2px 0; line-height: 23px; display: flex"
1211
-                    >
1207
+                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"
1208
+>
1212 1209
                       <div class="inline_block" style="flex: 1">
1213 1210
                         上机护士:
1214 1211
                         <div class="under_line"
@@ -1409,7 +1406,7 @@
1409 1406
 
1410 1407
                       <div class="inline_block" style="flex: 1">
1411 1408
                         上机时间
1412
-                        <div class="under_line" style="width: 80px; text-align: center">
1409
+                        <div class="under_line" style="width: 65%; text-align: center">
1413 1410
                           <span style="height: 30px;display: inline-block;"></span>
1414 1411
                           
1415 1412
                           <span v-if="record.dialysis_order !=null">
@@ -1420,7 +1417,7 @@
1420 1417
                       </div>
1421 1418
                       <div class="inline_block" style="flex: 1">
1422 1419
                         下机时间:
1423
-                        <div class="under_line" style="width: 80px; text-align: center">
1420
+                        <div class="under_line" style="width: 65%; text-align: center">
1424 1421
                           <span style="height: 30px; display: inline-block">
1425 1422
                           </span>
1426 1423
                           <span v-if="record.dialysis_order!=null">

+ 381 - 374
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue View File

@@ -10,50 +10,50 @@
10 10
       >
11 11
         <div style="display: inline-block; width: 100%; text-align: center">
12 12
           <div class="order-yy-name"
13
-            style=" letter-spacing: 0;font-weight: 600;font-size: 22px;display: inline-block; "
13
+            style=" letter-spacing: 0;font-weight: 600;font-size: 25px;display: inline-block; "
14 14
           >
15 15
             {{ orgname }}
16 16
           </div>
17 17
           <div class="order-title"
18
-            style=" letter-spacing: 0; font-weight: 600; font-size: 22px;"
18
+            style=" letter-spacing: 0; font-weight: 600; font-size: 25px;"
19 19
           >
20 20
             血液净化治疗记录单
21 21
           </div>
22 22
         </div>
23
-        <div class="row">
24
-          <div class="inline_block">
25
-            姓名
23
+        <div class="row" style="display: flex">
24
+          <div class="inline_block" style="flex: 1;">
25
+            姓名:
26 26
             <div class="under_line" style="width: 50px; text-align: center">
27 27
               {{ patientInfo.name }}
28 28
             </div>
29 29
           </div>
30
-          <div class="inline_block" style="margin-left: 10px">
31
-            性别
30
+          <div class="inline_block" style="flex: 1;">
31
+            性别:
32 32
             <div class="under_line" style="width: 30px; text-align: center">
33 33
               {{ patientInfo_gender_1 ? "男" : "女" }}
34 34
             </div>
35 35
           </div>
36
-          <div class="inline_block" style="margin-left: 10px">
37
-            年龄
36
+          <div class="inline_block" style="flex: 1;">
37
+            年龄:
38 38
             <div class="under_line" style="width: 30px; text-align: center">
39 39
               {{ getAge(patientInfo) }}
40 40
             </div>
41 41
42 42
           </div>
43
-          <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1">
44
-            门诊
43
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition!=1" style="flex: 1;">
44
+            门诊:
45 45
             <div class="under_line" style="width: 30px; text-align: center">
46 46
               <check-box :checked="patientInfo_source_1"></check-box>
47 47
             </div>
48 48
           </div>
49
-          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1">
50
-            住院
49
+          <div class="inline_block" v-if="receiverTreatmentAccess.condition==1" style="flex: 1;">
50
+            住院:
51 51
             <div class="under_line" style="width: 30px; text-align: center">
52 52
               <check-box :checked="receiverTreatmentAccess.condition == 1"></check-box>
53 53
             </div>
54 54
           </div>
55
-          <div class="inline_block">
56
-            病区
55
+          <div class="inline_block" style="flex: 1;">
56
+            病区:
57 57
             <div class="under_line" style="width: 50px; text-align: center">
58 58
               <span v-if="receiverTreatmentAccess.condition != 1">{{
59 59
                 patientInfo.DialysisSchedule.device_zone.name
@@ -62,8 +62,8 @@
62 62
               }}</span>
63 63
             </div>
64 64
           </div>
65
-          <div class="inline_block">
66
-            床号
65
+          <div class="inline_block" style="flex: 1;">
66
+            床号:
67 67
             <div class="under_line" style="width: 50px; text-align: center">
68 68
               <span>{{
69 69
                 dialysisOrder &&
@@ -74,14 +74,14 @@
74 74
               }}</span>
75 75
             </div>
76 76
           </div>
77
-          <div class="inline_block">
78
-            透析号
77
+          <div class="inline_block" style="flex: 1;">
78
+            透析号:
79 79
             <div class="under_line" style="width: 70px; text-align: center">
80 80
               {{ patientInfo.dialysis_no }}
81 81
             </div>
82 82
           </div>
83
-          <div class="inline_block" style="margin-left: 5px;">
84
-            住院号
83
+          <div class="inline_block" style="flex: 1;">
84
+            住院号:
85 85
             <div class="under_line" style="width: 70px;text-align: left">
86 86
               {{ receiverTreatmentAccess.admission_number ? receiverTreatmentAccess.admission_number :'/' }}
87 87
             </div>
@@ -89,7 +89,7 @@
89 89
         </div>
90 90
         <div class="row">
91 91
           <div style="">
92
-            诊断
92
+            诊断:
93 93
             <div style="border-bottom: 1px solid black; width: 95%; text-align: left;word-wrap: break-word;
94 94
                 white-space: inherit;display: inline-block;"
95 95
             >
@@ -976,9 +976,7 @@
976 976
                     </div>
977 977
                   </div>
978 978
 
979
-                  <div class="row"
980
-                    style="padding: 2px 0; line-height: 23px; display: flex"
981
-                  >
979
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
982 980
                     <div class="inline_block" style="flex: 1">
983 981
                       透后体重:
984 982
                       <div class="under_line"
@@ -1000,8 +998,7 @@
1000 998
 
1001 999
                     <div class="inline_block" style="flex: 1">
1002 1000
                       体重减少:
1003
-                      <div
1004
-                        class="under_line"
1001
+                      <div class="under_line"
1005 1002
                         style="width: 70px; text-align: center"
1006 1003
                       >
1007 1004
                         <!-- <span v-if="org_id!=10598 && org_id!=10551">{{
@@ -1102,46 +1099,46 @@
1102 1099
                   <div class="row"
1103 1100
                     style="padding: 2px 0; line-height: 23px; display: flex"
1104 1101
                   >
1105
-                    <div>
1106
-                      <div class="inline_block" style="flex: 1">
1107
-                        上机护士:
1108
-                        <div  class="under_line"
1109
-                          style="width: 90px; text-align: center"
1102
+                  
1103
+                    <div class="inline_block" style="flex: 1">
1104
+                      上机护士:
1105
+                      <div  class="under_line"
1106
+                        style="width: 90px; text-align: center"
1107
+                      >
1108
+                        <span
1109
+                          style="height: 30px; display: inline-block"
1110
+                          v-if="
1111
+                            setAdminUserES(
1112
+                              dialysisOrder == null
1113
+                                ? 0
1114
+                                : dialysisOrder.start_nurse
1115
+                            ) == ''
1116
+                          "
1110 1117
                         >
1111
-                          <span
1112
-                            style="height: 30px; display: inline-block"
1113
-                            v-if="
1114
-                              setAdminUserES(
1115
-                                dialysisOrder == null
1116
-                                  ? 0
1117
-                                  : dialysisOrder.start_nurse
1118
-                              ) == ''
1119
-                            "
1120
-                          >
1121
-                            {{
1122
-                              getAdminUser(
1123
-                                dialysisOrder == null
1124
-                                  ? 0
1125
-                                  : dialysisOrder.start_nurse
1126
-                              )
1127
-                            }}</span
1128
-                          >
1129
-                          <img
1130
-                            style="height: 30px"
1131
-                            :src="
1132
-                              setAdminUserES(
1133
-                                dialysisOrder == null
1134
-                                  ? 0
1135
-                                  : dialysisOrder.start_nurse
1136
-                              )
1137
-                            "
1138
-                            alt=""
1139
-                            srcset=""
1140
-                            v-else
1141
-                          />
1142
-                        </div>
1118
+                          {{
1119
+                            getAdminUser(
1120
+                              dialysisOrder == null
1121
+                                ? 0
1122
+                                : dialysisOrder.start_nurse
1123
+                            )
1124
+                          }}</span
1125
+                        >
1126
+                        <img
1127
+                          style="height: 30px"
1128
+                          :src="
1129
+                            setAdminUserES(
1130
+                              dialysisOrder == null
1131
+                                ? 0
1132
+                                : dialysisOrder.start_nurse
1133
+                            )
1134
+                          "
1135
+                          alt=""
1136
+                          srcset=""
1137
+                          v-else
1138
+                        />
1143 1139
                       </div>
1144 1140
                     </div>
1141
+                    
1145 1142
 
1146 1143
                     <div class="inline_block" style="flex: 1">
1147 1144
                       <span>核对护士:</span>
@@ -1296,7 +1293,7 @@
1296 1293
                     <div class="inline_block" style="flex: 1">
1297 1294
                        上机时间
1298 1295
                       <div class="under_line"
1299
-                        style="width: 80px; text-align: center"
1296
+                        style="width: 65%; text-align: center"
1300 1297
                       >
1301 1298
                         <span style="height: 30px;display: inline-block;">
1302 1299
                           
@@ -1311,7 +1308,7 @@
1311 1308
                     <div class="inline_block" style="flex: 1">
1312 1309
                       下机时间:
1313 1310
                       <div class="under_line"
1314
-                        style="width: 80px; text-align: center"
1311
+                        style="width: 65%; text-align: center"
1315 1312
                       >
1316 1313
                         <span style="height: 30px; display: inline-block">
1317 1314
                         </span>
@@ -2271,358 +2268,358 @@ export default {
2271 2268
     };
2272 2269
   },
2273 2270
   methods: {
2274
-      toUpload() {
2275
-
2276
-        let dom = document.getElementById("dialysis-print-box-1")
2277
-        //调用方法下载
2278
-        html2canvas(dom, {
2279
-          useCORS: true, //允许跨域
2280
-          allowTaint: false,
2281
-          logging: false,
2282
-          letterRendering: true,
2283
-          ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
2284
-          scale: 4, //按比例增加分辨率
2285
-          background: '#fff',//pdf背景色为白色,默认是黑色的
2286
-        }).then((canvas) => {
2287
-          //返回图片dataURL,参数:图片格式和清晰度(0-1)
2288
-          var pageData = canvas.toDataURL('image/jpeg', 1.0);
2289
-
2290
-          //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2291
-          var pdf = new jsPDF('', 'pt', 'a4');
2292
-
2293
-          //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2294
-          //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2295
-          pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2296
-
2297
-          console.log("pdf222222222222222222",pdf)
2298
-
2299
-          var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2300
-          // console.log("base63",newBase64Data)
2301
-          const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2302
-          console.log("blobwoowowowwo",blob)
2303
-          this.openPdf(blob);
2304
-
2305
-          // var data = {
2306
-          //   name:newBase64Data,
2307
-          // }
2308
-          // UploadPrintOrder(data).then(response=>{
2309
-          //   if(response.data.state == 1){
2310
-          //     var sign =  response.data.data.sign
2311
-          //     console.log("SIGNWWOOWWO")
2312
-          //     var pdfBase64 = response.data.data.pdfBase64
2313
-          //     console.log("pdfBase64",pdfBase64)
2314
-          //     this.$message.success("保存成功!")
2315
-          //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
2316
-          //     this.openPdf(blob);
2317
-          //   }
2318
-          // })
2319
-
2320
-          // this.viewPdf(newBase64Data)
2321
-          //保存到pdf,名字是stone
2322
-          // pdf.save('stone.pdf');
2323
-
2324
-        });
2325
-      },
2326
-
2327
-     viewPdf(content) {
2328
-       console.log("content",content);
2329
-       const blob = this.base64ToBlob(content);
2330
-       if (window.navigator && window.navigator.msSaveOrOpenBlob) {
2331
-         window.navigator.msSaveOrOpenBlob(blob);
2332
-       } else {
2333
-         const fileURL = URL.createObjectURL(blob);
2334
-         console.log("fileUlrwowowoow",fileURL)
2335
-         window.open(fileURL);//打开ppf文件
2336
-       }
2337
-     },
2338
-     compare (property) {
2339
-       return function (a, b) {
2340
-           var value1 = a[property]
2341
-           var value2 = b[property]
2342
-           return value1 - value2
2343
-       }
2344
-     },
2345
-
2346
-     openPdf(blob) {
2347
-       const objectUrl = URL.createObjectURL(blob);
2348
-       const a = document.createElement('a');
2349
-       a.href = objectUrl;
2350
-       a.target = '_blank';
2351
-       a.click();
2352
-       URL.revokeObjectURL(objectUrl);
2353
-     },
2354
-      base64ToBlob(base64Data, contentType) {
2355
-       contentType = contentType || '';
2356
-       const sliceSize = 1024;
2357
-       const byteCharacters = window.atob(base64Data);
2358
-       const bytesLength = byteCharacters.length;
2359
-       const slicesCount = Math.ceil(bytesLength / sliceSize);
2360
-       const byteArrays = new Array(slicesCount);
2361
-
2362
-       for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2363
-         const begin = sliceIndex * sliceSize;
2364
-         const end = Math.min(begin + sliceSize, bytesLength);
2365
-
2366
-         const bytes = new Array(end - begin);
2367
-         for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2368
-           bytes[i] = byteCharacters[offset].charCodeAt(0);
2369
-         }
2370
-         byteArrays[sliceIndex] = new Uint8Array(bytes);
2371
-       }
2372
-
2373
-       return new Blob(byteArrays, {
2374
-         type: contentType
2375
-       });
2376
-     },
2377
-
2378
-     UploadPdf(res) {
2379
-       let pdfBase64Str = res;
2380
-       let title = "上传给后端的个人报告";
2381
-       var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
2382
-       console.log("myfile",myfile)
2383
-     },
2384
-    // 获取当前年份,用于年龄计算
2385
-    getoldAge() {
2386
-      let date = new Date();
2387
-      let year = date.getFullYear();
2388
-      let year_d =
2389
-        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2390
-      let year_m = this.xtdate.split("-")[1];
2391
-      let birth_m = this.patientInfo.birth.split("-")[1];
2392
-      let year_date = this.xtdate.split("-")[2];
2393
-      let birth_date = this.patientInfo.birth.split("-")[2];
2394
-      // console.log(year,'今年年月')
2395
-      // console.log(this.xtdate.split('-'),'病人就诊年月')
2396
-      console.log(this.patientInfo.birth, "病人生日");
2397
-      // console.log(year_d,'year_d')
2398
-      if (year_m < birth_m) {
2399
-        return year_d - 1;
2400
-      } else if (year_m == birth_m) {
2401
-        if (year_date < birth_date) {
2402
-          return year_d - 1;
2403
-        } else {
2404
-          return year_d;
2405
-        }
2406
-      } else {
2407
-        return year_d;
2408
-      }
2409
-    },
2410
-
2411 2271
     checkData() {
2412
-      if (this.receiverTreatmentAccess.way == 0) {
2413
-        this.$message.error("入科方式未填");
2414
-      } else if (this.predialysis.symptom_before_dialysis == "") {
2415
-        this.$message.error("透前症状未填");
2416
-      } else if (this.predialysis.temperature == "") {
2417
-        this.$message.error("透前体温未填");
2418
-      } else if (this.predialysis.pulse_frequency == "") {
2419
-        this.$message.error("透前脉搏未填");
2420
-      } else if (this.predialysis.breathing_rate == "") {
2421
-        this.$message.error("透前呼吸频率未填");
2422
-      } else if (
2272
+      var checkDate =[]
2273
+      if(this.dialysisOrder && this.dialysisOrder.bed_id == 0 &&
2274
+        this.patientInfo.DialysisSchedule.bed_id == 0
2275
+      ){
2276
+        const obj = "透析机型号"
2277
+        checkDate.push(obj)
2278
+      }
2279
+      if (this.predialysis.temperature == '') {
2280
+        const obj1 = "透前体温"
2281
+        checkDate.push(obj1)
2282
+      } if (this.predialysis.pulse_frequency == "") {
2283
+        const obj2 = "透前脉搏"
2284
+        checkDate.push(obj2)
2285
+      } if (this.predialysis.breathing_rate == "") {
2286
+         const obj3 = "透前呼吸"
2287
+         checkDate.push(obj3)
2288
+      } if (
2423 2289
         this.predialysis.systolic_blood_pressure == 0 ||
2424 2290
         this.predialysis.diastolic_blood_pressure == 0
2425 2291
       ) {
2426
-        this.$message.error("透前血压未填完整");
2427
-      } else if (this.predialysis.puncture_way == "") {
2428
-        this.$message.error("穿刺方式未填");
2429
-      } else if (this.predialysis.puncture_needle == "") {
2430
-        this.$message.error("穿刺针未填");
2431
-      } else if (
2432
-        this.predialysis.blood_access_part_id == "" &&
2433
-        this.predialysis.blood_access_part_opera_name == ""
2292
+        const obj4 = "透前血压"
2293
+        checkDate.push(obj4)
2294
+      } if (this.prescription.dialysis_duration_hour == 0 && 
2295
+            this.prescription.dialysis_duration_minute ==0
2434 2296
       ) {
2435
-        this.$message.error("血管通路未填");
2436
-      } else if (this.predialysis.internal_fistula == "") {
2437
-        this.$message.error("透前内瘘未填");
2438
-      } else if (this.predialysis.catheter == "") {
2439
-        this.$message.error("透前导管未填");
2440
-      } else if (this.prescription.mode_id == "") {
2441
-        this.$message.error("透析方式未填");
2442
-      } else if (
2443
-        this.prescription.displace_liqui_part == 0 &&
2444
-        this.prescription.mode_id == 2
2297
+        const obj5 = "透析时间"
2298
+        checkDate.push(obj5)
2299
+      } if (this.prescription.mode == "") {
2300
+        const obj6 = "透析方式"
2301
+        checkDate.push(obj6)
2302
+      } if (this.predialysis.blood_access_part_opera_name =='' ) {
2303
+        const obj7 = "血管通路"
2304
+        checkDate.push(obj7)
2305
+      } if (this.predialysis.catheter == '' ) {
2306
+        const obj8 = "导管"
2307
+        checkDate.push(obj8)
2308
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
2309
+            this.prescription.dialysis_dialyszers ==''
2445 2310
       ) {
2446
-        this.$message.error("置换方式未填");
2447
-      } else if (
2448
-        this.prescription.displace_liqui_value == 0 &&
2449
-        this.prescription.mode_id == 2
2311
+        const obj9 = "透析(滤)器"
2312
+        checkDate.push(obj9)
2313
+      } if (this.prescription.dialysis_irrigation == '') {
2314
+        const obj10 = "灌流器"
2315
+        checkDate.push(obj10)
2316
+      } if (this.prescription.displace_liqui_part == ""&&
2317
+            (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)
2450 2318
       ) {
2451
-        this.$message.error("置换量未填");
2452
-      } else if (this.prescription.blood_flow_volume == 0) {
2453
-        this.$message.error("血流量未填");
2454
-      } else if (
2455
-        this.prescription.dialysis_duration_hour == 0 &&
2456
-        this.prescription.dialysis_duration_minute == 0
2457
-      ) {
2458
-        this.$message.error("透析时间未填");
2459
-      } else if (
2460
-        this.prescription.dialyzer_perfusion_apparatus == "" &&
2461
-        this.prescription.dialysis_dialyszers == ""
2319
+        const obj11 = "置换方式"
2320
+        checkDate.push(obj11)
2321
+      } if (this.prescription.replacement_total == "" &&
2322
+            (this.prescription.mode_id ==2 || this.prescription.mode_id ==12)
2462 2323
       ) {
2463
-        this.$message.error("透析器未填");
2464
-      } else if (this.prescription.dialysis_irrigation == "") {
2465
-        this.$message.error("灌流器未填");
2466
-      } else if (
2467
-        this.prescription.plasma_separator == "" &&
2468
-        this.org_id == 9538
2324
+        const obj12 = "置换量"
2325
+        checkDate.push(obj12)
2326
+      } if ( this.prescription.blood_flow_volume == '') {
2327
+        const obj13 = "血流量"
2328
+        checkDate.push(obj13)
2329
+      } if (this.predialysis.dry_weight == "") {
2330
+        const obj14 = "干体重"
2331
+        checkDate.push(obj14)
2332
+      } if (this.lastafterdialysis.weight_after == "") {
2333
+        const obj15 = "上次透后体重"
2334
+        checkDate.push(obj15)
2335
+      } if (this.predialysis.weight_before == "" ) {
2336
+        const obj16 = "透前体重"
2337
+        checkDate.push(obj16)
2338
+      } if (this.prescription.target_ultrafiltration == 0) {
2339
+        const obj17 = "计划超滤量"
2340
+        checkDate.push(obj17)
2341
+      } if (this.prescription.dialysate_flow == 0 ) {
2342
+        const obj18 = "透析液流量"
2343
+        checkDate.push(obj18)
2344
+      } if (this.prescription.kalium == 0) {
2345
+        const obj19 = "钾"
2346
+        checkDate.push(obj19)
2347
+      } if (this.prescription.calcium == 0) {
2348
+        const obj20 = "钙"
2349
+        checkDate.push(obj20)
2350
+      } if (this.prescription.sodium == 0) {
2351
+        const obj21 = "钠"
2352
+        checkDate.push(obj21)
2353
+      }if (this.prescription.bicarbonate == 0) {
2354
+        const obj22 = "碳酸氢根"
2355
+        checkDate.push(obj22)
2356
+      } if (this.prescription.anticoagulant_name == 0) {
2357
+        const obj23 = "抗凝剂"
2358
+        checkDate.push(obj23)
2359
+      } if (this.prescription.anticoagulant_shouji == 0 &&
2360
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !=''
2469 2361
       ) {
2470
-        this.$message.error("血浆分离器未填");
2471
-      } else if (
2472
-        this.prescription.bilirubin_adsorption_column == "" &&
2473
-        this.org_id == 9538
2362
+        const obj24 = "首剂"
2363
+        checkDate.push(obj24)
2364
+      }if (this.prescription.anticoagulant_zongliang == 0 &&
2365
+        this.prescription.anticoagulant !=1 && this.prescription.anticoagulant !='' && prescription.anticoagulant != 5
2474 2366
       ) {
2475
-        this.$message.error("胆红素吸附柱未填");
2476
-      } else if (this.predialysis.weight_before == 0) {
2477
-        this.$message.error("透前体重未填");
2478
-      } else if (this.predialysis.dry_weight == 0) {
2479
-        this.$message.error("干体重未填");
2480
-      } else if (this.prescription.target_ultrafiltration == 0) {
2481
-        this.$message.error("计划超滤量未填");
2482
-      } else if (this.prescription.calcium == 0) {
2483
-        this.$message.error("钙未填");
2484
-      } else if (this.prescription.sodium == 0) {
2485
-        this.$message.error("钠未填");
2486
-      } else if (this.prescription.kalium == 0) {
2487
-        this.$message.error("钾未填");
2488
-      } else if (this.prescription.bicarbonate == 0) {
2489
-        this.$message.error("碳酸氢根未填");
2490
-      } else if (this.prescription.dialysate_flow == 0) {
2491
-        this.$message.error("透析液流量未填");
2492
-      } else if (this.prescription.anticoagulant == 0) {
2493
-        this.$message.error("抗凝剂未填");
2494
-      } else if (
2367
+        const obj25 = "总量"
2368
+        checkDate.push(obj25)
2369
+      } if (
2495 2370
         this.prescription.anticoagulant_gaimingcheng == "" &&
2496 2371
         this.prescription.anticoagulant == 5
2497 2372
       ) {
2498
-        this.$message.error("钙名称未填");
2499
-      } else if (
2373
+        const obj26 = "钙名称"
2374
+        checkDate.push(obj26)
2375
+      } if (
2500 2376
         this.prescription.anticoagulant_gaijiliang == "" &&
2501 2377
         this.prescription.anticoagulant == 5
2502 2378
       ) {
2503
-        this.$message.error("钙剂量未填");
2504
-      } else if (this.afterdialysis.temperature == 0) {
2505
-        this.$message.error("透后体温未填");
2506
-      } else if (this.afterdialysis.pulse_frequency == 0) {
2507
-        this.$message.error("透后脉搏未填");
2508
-      } else if (this.afterdialysis.breathing_rate == 0) {
2509
-        this.$message.error("透后呼吸频率未填");
2510
-      } else if (
2511
-        this.afterdialysis.systolic_blood_pressure == 0 ||
2512
-        this.afterdialysis.diastolic_blood_pressure == 0
2379
+        const obj27 = "钙剂量"
2380
+        checkDate.push(obj27)
2381
+      } if (this.afterdialysis.temperature == ''){
2382
+        const obj28 = "透后温度"
2383
+        checkDate.push(obj28)
2384
+      } if (this.afterdialysis.pulse_frequency == 0) {
2385
+        const obj29 = "透后脉搏"
2386
+        checkDate.push(obj29)
2387
+      } if (
2388
+        this.afterdialysis.systolic_blood_pressure == '' &&
2389
+        this.afterdialysis.diastolic_blood_pressure == ''
2390
+      ){
2391
+        const obj30 = "透后血压"
2392
+        checkDate.push(obj30)
2393
+      } if (this.afterdialysis.breathing_rate == 0) {
2394
+        const obj31 = "透后呼吸"
2395
+        checkDate.push(obj31)
2396
+      } if (this.afterdialysis.cruor == '') {
2397
+        const obj32 = "透析器凝血"
2398
+        checkDate.push(obj32)
2399
+      } if (this.afterdialysis.internal_fistula == '') {
2400
+        const obj33 = "透后内瘘"
2401
+        checkDate.push(obj33)
2402
+      } if (this.afterdialysis.catheter =='') {
2403
+        const obj34 = "透后导管"
2404
+        checkDate.push(obj34)
2405
+      } if (this.afterdialysis.actual_treatment_hour == 0 &&
2406
+          this.afterdialysis.actual_treatment_minute == 0
2513 2407
       ) {
2514
-        this.$message.error("透后血压未填完整");
2515
-      } else if (
2516
-        this.afterdialysis.actual_treatment_hour == 0 &&
2517
-        this.afterdialysis.actual_treatment_minute == 0
2518
-      ) {
2519
-        this.$message.error("实际治疗时间未填");
2520
-      } else if (this.afterdialysis.cruor == "") {
2521
-        this.$message.error("透析器凝血未填");
2522
-      } else if (this.afterdialysis.internal_fistula == "") {
2523
-        this.$message.error("透后内瘘未填");
2524
-      } else if (this.afterdialysis.catheter == "") {
2525
-        this.$message.error("透后导管未填");
2526
-      } else if (this.afterdialysis.weight_after == 0) {
2527
-        this.$message.error("透后体重未填");
2528
-      } else if (this.afterdialysis.weight_loss == 0) {
2529
-        this.$message.error("透后体重减少未填");
2530
-      } else if (this.afterdialysis.dialysis_intakes == 0) {
2531
-        this.$message.error("透析中入量未填");
2532
-      } else if (this.afterdialysis.actual_ultrafiltration == 0) {
2533
-        this.$message.error("实际超滤量未填");
2534
-      } else if (this.summary.dialysis_summary == "") {
2535
-        this.$message.error("透析小结未填");
2536
-      } else if (
2537
-        this.dialysisOrder == null ||
2538
-        this.dialysisOrder.puncture_nurse == 0
2539
-      ) {
2540
-        this.$message.error("穿刺护士未填");
2541
-      } else if (
2408
+        const obj35 = "实际治疗时间"
2409
+        checkDate.push(obj35)
2410
+      } if (this.afterdialysis.weight_after == 0) {
2411
+        const obj36 = "透后体重"
2412
+        checkDate.push(obj36)
2413
+      } if (this.afterdialysis.dialysis_intakes_unit == 0) {
2414
+        const obj37 = "透析中入量"
2415
+        checkDate.push(obj37)
2416
+      } if (this.afterdialysis.actual_ultrafiltration == 0) {
2417
+        const obj38 = "实际超滤量"
2418
+        checkDate.push(obj38)
2419
+      } if (this.summary.dialysis_summary == '') {
2420
+        const obj39 = "治疗小结"
2421
+        checkDate.push(obj39)
2422
+      } if (this.summary.mission == 0) {
2423
+        const obj40 = "宣教知识"
2424
+        checkDate.push(obj40)
2425
+      } if (
2542 2426
         this.dialysisOrder == null ||
2543 2427
         this.dialysisOrder.start_nurse == 0
2544 2428
       ) {
2545
-        this.$message.error("治疗护士未填");
2546
-      } else if (this.dialysisOrder == null && this.check.creater == 0) {
2547
-        this.$message.error("核对人员未填");
2429
+        const obj41 = "上机护士"
2430
+        checkDate.push(obj41)
2431
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
2432
+        const obj42 = "核对人员"
2433
+        checkDate.push(obj42)
2548 2434
       } else if (
2549 2435
         this.dialysisOrder != null &&
2550 2436
         this.dialysisOrder.start_nurse == this.check.modifier &&
2551 2437
         this.check.creater == 0
2552 2438
       ) {
2553
-        this.$message.error("核对人员未填");
2439
+        const obj42 = "核对人员"
2440
+        checkDate.push(obj42)
2554 2441
       } else if (
2555 2442
         this.dialysisOrder != null &&
2556 2443
         this.dialysisOrder.start_nurse == this.check.creater &&
2557 2444
         this.check.modifier == 0
2558 2445
       ) {
2559
-        this.$message.error("核对人员未填");
2446
+        const obj42 = "核对人员"
2447
+        checkDate.push(obj42)
2560 2448
       } else if (
2561 2449
         this.dialysisOrder != null &&
2562 2450
         this.dialysisOrder.start_nurse != this.check.creater &&
2563 2451
         this.dialysisOrder.start_nurse != this.check.modifier &&
2564 2452
         this.check.creater == 0
2565 2453
       ) {
2566
-        this.$message.error("核对人员未填");
2567
-      } else if (
2454
+        const obj42 = "核对人员"
2455
+        checkDate.push(obj42)
2456
+      } if (
2568 2457
         this.dialysisOrder == null ||
2569 2458
         this.dialysisOrder.finish_nurse == 0
2570 2459
       ) {
2571
-        this.$message.error("下机护士未填");
2572
-      } else if (this.prescription.creater == 0) {
2573
-        this.$message.error("医生签名未填");
2574
-      } else if (this.tableAdvice.length > 0) {
2575
-        let num = 0;
2576
-        this.tableAdvice.map((item) => {
2577
-          if (item.id > 0 && (item.created_time || item.start_time)) {
2578
-            this.users.map((it) => {
2579
-              if (it.id == item.advice_doctor) {
2580
-                if (it.user_type == 3) {
2581
-                  num++;
2582
-                  this.$message.closeAll();
2583
-                  this.$message.error("存在不是医生保存的医嘱");
2584
-                } else if (
2585
-                  it.id == item.execution_staff &&
2586
-                  item.execution_staff > 0
2587
-                ) {
2588
-                  if (it.user_type == 2) {
2589
-                    num++;
2590
-                    this.$message.closeAll();
2591
-                    this.$message.error("存在不是护士执行的医嘱");
2592
-                  }
2593
-                } else if (it.id == item.checker && item.checker > 0) {
2594
-                  if (it.user_type == 2) {
2595
-                    num++;
2596
-                    this.$message.closeAll();
2597
-                    this.$message.error("存在不是护士核对的医嘱");
2598
-                  }
2599
-                }
2600
-              } else if (
2601
-                it.id == item.execution_staff &&
2602
-                item.execution_staff > 0
2603
-              ) {
2604
-                if (it.user_type == 2) {
2605
-                  num++;
2606
-                  this.$message.closeAll();
2607
-                  this.$message.error("存在不是护士执行的医嘱");
2608
-                }
2609
-              } else if (it.id == item.checker && item.checker > 0) {
2610
-                if (it.user_type == 2) {
2611
-                  num++;
2612
-                  this.$message.closeAll();
2613
-                  this.$message.error("存在不是护士核对的医嘱");
2614
-                }
2460
+        const obj43 = "下机护士"
2461
+        checkDate.push(obj43)
2462
+      } if (this.prescription.creater == 0) {
2463
+        const obj44 = "医生签名"
2464
+        checkDate.push(obj44)
2465
+      } if (this.dialysisOrder.start_time == '' && this.dialysisOrder != null) {
2466
+        const obj45 = "上机时间"
2467
+        checkDate.push(obj45)
2468
+      } if (this.dialysisOrder.end_time == "" && this.dialysisOrder != null) {
2469
+        const obj46 = "下机时间"
2470
+        checkDate.push(obj46)
2471
+      } if(this.new_doctor_advice_list.length > 0){
2472
+          this.new_doctor_advice_list.map((item) =>{
2473
+            if(item.id > 0 && (item.created_time || item.start_time)){
2474
+              if(item.execution_staff ==0 && item.advice_doctor ==0){
2475
+                const obj47 = '执行人员,医生签名'
2476
+                checkDate.push(obj47)
2615 2477
               }
2616
-            });
2617
-          }
2618
-        });
2619
-        if (num == 0) {
2620
-          this.$message.success("核对完成");
2478
+            }
2479
+          })
2480
+      }
2481
+ 
2482
+      this.getcheckData(checkDate)
2483
+    },
2484
+    
2485
+    toUpload() {
2486
+
2487
+      let dom = document.getElementById("dialysis-print-box-1")
2488
+      //调用方法下载
2489
+      html2canvas(dom, {
2490
+        useCORS: true, //允许跨域
2491
+        allowTaint: false,
2492
+        logging: false,
2493
+        letterRendering: true,
2494
+        ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
2495
+        scale: 4, //按比例增加分辨率
2496
+        background: '#fff',//pdf背景色为白色,默认是黑色的
2497
+      }).then((canvas) => {
2498
+        //返回图片dataURL,参数:图片格式和清晰度(0-1)
2499
+        var pageData = canvas.toDataURL('image/jpeg', 1.0);
2500
+
2501
+        //方向默认竖直,尺寸ponits,格式a4[595.28,841.89]
2502
+        var pdf = new jsPDF('', 'pt', 'a4');
2503
+
2504
+        //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
2505
+        //  pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
2506
+        pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
2507
+
2508
+        console.log("pdf222222222222222222",pdf)
2509
+
2510
+        var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
2511
+        // console.log("base63",newBase64Data)
2512
+        const blob = this.base64ToBlob(newBase64Data, 'application/pdf');
2513
+        console.log("blobwoowowowwo",blob)
2514
+        this.openPdf(blob);
2515
+
2516
+        // var data = {
2517
+        //   name:newBase64Data,
2518
+        // }
2519
+        // UploadPrintOrder(data).then(response=>{
2520
+        //   if(response.data.state == 1){
2521
+        //     var sign =  response.data.data.sign
2522
+        //     console.log("SIGNWWOOWWO")
2523
+        //     var pdfBase64 = response.data.data.pdfBase64
2524
+        //     console.log("pdfBase64",pdfBase64)
2525
+        //     this.$message.success("保存成功!")
2526
+        //     const blob = this.base64ToBlob(pdfBase64, 'application/pdf');
2527
+        //     this.openPdf(blob);
2528
+        //   }
2529
+        // })
2530
+
2531
+        // this.viewPdf(newBase64Data)
2532
+        //保存到pdf,名字是stone
2533
+        // pdf.save('stone.pdf');
2534
+
2535
+      });
2536
+    },
2537
+
2538
+    viewPdf(content) {
2539
+      console.log("content",content);
2540
+      const blob = this.base64ToBlob(content);
2541
+      if (window.navigator && window.navigator.msSaveOrOpenBlob) {
2542
+        window.navigator.msSaveOrOpenBlob(blob);
2543
+      } else {
2544
+        const fileURL = URL.createObjectURL(blob);
2545
+        console.log("fileUlrwowowoow",fileURL)
2546
+        window.open(fileURL);//打开ppf文件
2547
+      }
2548
+    },
2549
+    compare (property) {
2550
+      return function (a, b) {
2551
+          var value1 = a[property]
2552
+          var value2 = b[property]
2553
+          return value1 - value2
2554
+      }
2555
+    },
2556
+
2557
+    openPdf(blob) {
2558
+      const objectUrl = URL.createObjectURL(blob);
2559
+      const a = document.createElement('a');
2560
+      a.href = objectUrl;
2561
+      a.target = '_blank';
2562
+      a.click();
2563
+      URL.revokeObjectURL(objectUrl);
2564
+    },
2565
+    base64ToBlob(base64Data, contentType) {
2566
+      contentType = contentType || '';
2567
+      const sliceSize = 1024;
2568
+      const byteCharacters = window.atob(base64Data);
2569
+      const bytesLength = byteCharacters.length;
2570
+      const slicesCount = Math.ceil(bytesLength / sliceSize);
2571
+      const byteArrays = new Array(slicesCount);
2572
+
2573
+      for (let sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
2574
+        const begin = sliceIndex * sliceSize;
2575
+        const end = Math.min(begin + sliceSize, bytesLength);
2576
+
2577
+        const bytes = new Array(end - begin);
2578
+        for (let offset = begin, i = 0; offset < end; ++i, ++offset) {
2579
+          bytes[i] = byteCharacters[offset].charCodeAt(0);
2580
+        }
2581
+        byteArrays[sliceIndex] = new Uint8Array(bytes);
2582
+      }
2583
+
2584
+      return new Blob(byteArrays, {
2585
+        type: contentType
2586
+      });
2587
+    },
2588
+
2589
+    UploadPdf(res) {
2590
+      let pdfBase64Str = res;
2591
+      let title = "上传给后端的个人报告";
2592
+      var myfile = this.dataURLtoFile(pdfBase64Str, title + ".pdf")
2593
+      console.log("myfile",myfile)
2594
+    },
2595
+    // 获取当前年份,用于年龄计算
2596
+    getoldAge() {
2597
+      let date = new Date();
2598
+      let year = date.getFullYear();
2599
+      let year_d =
2600
+        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
2601
+      let year_m = this.xtdate.split("-")[1];
2602
+      let birth_m = this.patientInfo.birth.split("-")[1];
2603
+      let year_date = this.xtdate.split("-")[2];
2604
+      let birth_date = this.patientInfo.birth.split("-")[2];
2605
+      // console.log(year,'今年年月')
2606
+      // console.log(this.xtdate.split('-'),'病人就诊年月')
2607
+      console.log(this.patientInfo.birth, "病人生日");
2608
+      // console.log(year_d,'year_d')
2609
+      if (year_m < birth_m) {
2610
+        return year_d - 1;
2611
+      } else if (year_m == birth_m) {
2612
+        if (year_date < birth_date) {
2613
+          return year_d - 1;
2614
+        } else {
2615
+          return year_d;
2621 2616
         }
2622 2617
       } else {
2623
-        this.$message.success("核对完成");
2618
+        return year_d;
2624 2619
       }
2625 2620
     },
2621
+
2622
+   
2626 2623
     getDisplaceLiquiPart: function (val) {
2627 2624
       let displace_liqui_part_name = "/";
2628 2625
       const displace_liqui_part = this.displaceLiquiPartOptions;
@@ -3421,6 +3418,16 @@ export default {
3421 3418
           return options[i].number_type
3422 3419
         }
3423 3420
       }
3421
+    },
3422
+    getcheckData(val){
3423
+      if(val.length >0){
3424
+        const a = val.join(',')
3425
+        console.log('a',a);
3426
+        this.$message.error(a +" 未填");
3427
+        return a
3428
+      }else{
3429
+        this.$message.success('核对完成')
3430
+      }
3424 3431
     }
3425 3432
 
3426 3433
   },

+ 4 - 3
src/xt_pages/user/components/PatientDetail.vue View File

@@ -1269,7 +1269,7 @@
1269 1269
       </div>
1270 1270
       <div id="print-info-box" v-else>
1271 1271
         <div class="print_main_content" style="margin-top: 70px;">
1272
-          <div class="order_title">{{ orgname }}<br/>血液净化患者首次门诊病历</div>
1272
+          <div class="order_title" style="">{{ orgname }}<br/>血液净化治疗患者首次门诊病历</div>
1273 1273
           <div >
1274 1274
             <table >
1275 1275
               <tbody>
@@ -1473,7 +1473,7 @@
1473 1473
               </tbody>
1474 1474
             </table>
1475 1475
             <div class="print_footnote_panel">
1476
-              <div class="proj">
1476
+              <div class="proj" style="text-align: center;">
1477 1477
                  <span class="proj_title">医生签名:
1478 1478
                     <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
1479 1479
                     <span v-else>
@@ -1481,7 +1481,7 @@
1481 1481
                     </span>
1482 1482
                  </span>
1483 1483
               </div>
1484
-              <div class="proj">
1484
+              <div class="proj" style="text-align: right;">
1485 1485
                 <span class="proj_title">日期:</span>
1486 1486
                 <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span> 
1487 1487
                 <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span> 
@@ -2670,6 +2670,7 @@ export default {
2670 2670
 .print_footnote_panel .proj {
2671 2671
   display: inline-block;
2672 2672
   width: 49%;
2673
+  text-align: center;
2673 2674
 }
2674 2675
 .print_footnote_panel .proj .proj_title {
2675 2676
   font-weight: 500;

+ 37 - 8
src/xt_pages/user/coursePrint.vue View File

@@ -8,9 +8,11 @@
8 8
     </div>
9 9
     <div class="app-container">
10 10
       <div id="print_content">
11
-        <div class="print_page_main_content">
12
-          <div class="order-yy-name" style="text-align: center;">{{orgname}}</div>
13
-          <div class="order_title" style="padding-top:12px;text-align: center;"> 病程记录</div>
11
+        <div class="print_page_main_content" v-for="(item,index) in this.record" :key="index" style="page-break-after: always;">
12
+          <div class="order-yy-name" style="text-align: center;font-size: 25px;font-weight: 600;">{{orgname}}</div>
13
+          <div class="order_title" style="padding-top:12px;text-align: center;font-size: 25px;font-weight: 600;"> 
14
+            血液净化治疗患者病程记录
15
+          </div>
14 16
           <div class="row" style="border-bottom:1px solid #000; display: flex;padding-bottom: 10px;padding-top: 12px;" 
15 17
             v-if="org_id !=10206 && org_id !=0">
16 18
             <div  style="flex:1;text-align: center;">
@@ -46,14 +48,43 @@
46 48
 
47 49
             </div>
48 50
           </div>
49
-          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;" v-for="(item,index) in this.record" :key="index">
51
+          <div class="row" style="border-bottom:1px solid #000; display: flex;padding-bottom: 10px;padding-top: 12px;" 
52
+           v-else>
53
+            <div  style="flex:1;text-align: center;">
54
+              姓名:
55
+              <div  style="text-align: left;display:inline-block;">{{patient.name }}</div>
56
+            </div>
57
+
58
+            <div style="flex:1;text-align: center;">
59
+              性别:
60
+              <div  style="text-align: left;display:inline-block;">
61
+                {{ patient.gender ==1 ? '男': '女' }}
62
+              </div>
63
+            </div>
64
+
65
+            <div style="flex:1;text-align: center;" >
66
+              年龄:
67
+              <div  style="text-align: left;display:inline-block;">
68
+                {{patient.age}}
69
+              </div>
70
+            </div>
71
+
72
+
73
+            <div style="flex:1;text-align: left;" >
74
+              日期:
75
+              <div style="text-align: left;display:inline-block;" >
76
+                <!-- {{getTime(record[0].record_time,'{y}-{m}-{d} {h}:{i}')}} -->
77
+                {{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}
78
+              </div>
79
+            </div>
80
+          </div>
81
+          <div class="row" style="padding: 2px 0;line-height:24px;margin-top:10px;">
50 82
             <div class="inline_block" style="display: inline-block;" v-if="org_id !=10206 && org_id !=0">
51 83
               <div>{{getTime(item.record_time,'{y}-{m}-{d} {h}:{i}')}}</div>
52 84
             </div>
53 85
             <div class="inline_block" style="margin-left: 30px;display: inline-block;">
54 86
               <div>{{item.title}}</div>
55 87
             </div>
56
-
57 88
             <div class="inline_block" style="width:100%; word-wrap: break-word; word-break: break-all;">
58 89
               <div v-html="item.content" class="printP" >
59 90
 
@@ -70,7 +101,6 @@
70 101
               </span>
71 102
             </div>
72 103
           </div>
73
-
74 104
         
75 105
         </div>
76 106
       </div>
@@ -79,7 +109,6 @@
79 109
 
80 110
 </template>
81 111
 
82
-
83 112
 <script>
84 113
   import { jsGetAge, uParseTime } from '@/utils/tools'
85 114
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
@@ -132,7 +161,7 @@
132 161
          
133 162
           this.adminUserList = resp.data.adminUser
134 163
           this.operators = resp.data.operators
135
-           console.log("GetCoursePrintData",this.operators)
164
+           console.log("GetCoursePrintData",resp)
136 165
            if (this.operators.length > 0) {
137 166
             var operatorsLen = this.operators.length
138 167
             for (var index = 0; index < operatorsLen; index++) {