huangyw 2 years ago
parent
commit
33dcf4ca31

+ 9 - 12
src/xt_pages/DepositManagement/print/printindex.vue View File

17
               <div style="display: flex; padding: 0 30px">
17
               <div style="display: flex; padding: 0 30px">
18
                 <div style="display: flex">
18
                 <div style="display: flex">
19
                   <div>收款单位:</div>
19
                   <div>收款单位:</div>
20
-                  <span>{{name}}</span>
21
-                  <div
22
-                    style="min-width: 224px; border-bottom: 1px solid #000"
23
-                  ></div>
20
+                  <div style="min-width: 224px; border-bottom: 1px solid #000">
21
+                    <span>{{name}}</span>
22
+                  </div>
24
                 </div>
23
                 </div>
25
                 <div style="display: flex">
24
                 <div style="display: flex">
26
                   <div>收款方式:</div>
25
                   <div>收款方式:</div>
27
-                  <span>现金</span>
28
                   <div
26
                   <div
29
                     style="min-width: 224px; border-bottom: 1px solid #000"
27
                     style="min-width: 224px; border-bottom: 1px solid #000"
30
-                  ></div>
28
+                  ><span>现金</span>
29
+                  </div>
31
                 </div>
30
                 </div>
32
               </div>
31
               </div>
33
               <div style="display: flex; padding: 0 30px">
32
               <div style="display: flex; padding: 0 30px">
34
                 <div>人民币:</div>
33
                 <div>人民币:</div>
35
-                ¥{{money}}
36
                 <div
34
                 <div
37
                   style="min-width: 225px; border-bottom: 1px solid #000"
35
                   style="min-width: 225px; border-bottom: 1px solid #000"
38
-                ></div>
36
+                >¥{{money}}</div>
39
               </div>
37
               </div>
40
               <div style="display: flex; padding: 0 30px">
38
               <div style="display: flex; padding: 0 30px">
41
                 <div>收款是由:</div>
39
                 <div>收款是由:</div>
42
-<!--                <span>{{ li }}</span>-->
43
-                <span>预交押金</span>
44
-                <div style="width: 86%; border-bottom: 1px solid #000"></div>
40
+                <div style="width: 86%; border-bottom: 1px solid #000"><span>预交押金</span></div>
45
               </div>
41
               </div>
46
             </div>
42
             </div>
47
           </div>
43
           </div>
95
     },
91
     },
96
     to_print() {
92
     to_print() {
97
       const style =
93
       const style =
98
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .print h2{text-align: center;} .print p{width: 85%;text-align: right;} .content{width: 70%;height: 250px;border: 1px solid #000;margin: 20px auto;display: flex;flex-direction: column;justify-content: space-evenly;}';
94
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto} .print h2{text-align: center;} .print p{width: 85%;text-align: right;} .content{width: 70%;height: 250px;border: 1px solid #000;margin: 20px auto;display: flex;flex-direction: column;justify-content: space-evenly;white-space: nowrap;}';
99
       printJS({
95
       printJS({
100
         printable: "dialysis-print-box",
96
         printable: "dialysis-print-box",
101
         type: "html",
97
         type: "html",
130
   display: flex;
126
   display: flex;
131
   flex-direction: column;
127
   flex-direction: column;
132
   justify-content: space-evenly;
128
   justify-content: space-evenly;
129
+  white-space: nowrap;
133
 }
130
 }
134
 </style>
131
 </style>

+ 179 - 83
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

350
                                     .blood_access_part_id
350
                                     .blood_access_part_id
351
                                 : 0
351
                                 : 0
352
                           }}
352
                           }}
353
-                          {{
353
+                          <!-- {{
354
                             record.assessment_before_dislysis &&
354
                             record.assessment_before_dislysis &&
355
                             record.assessment_before_dislysis
355
                             record.assessment_before_dislysis
356
                               .blood_access_part_opera_name
356
                               .blood_access_part_opera_name
357
                               ? record.assessment_before_dislysis
357
                               ? record.assessment_before_dislysis
358
                                   .blood_access_part_opera_name
358
                                   .blood_access_part_opera_name
359
                               : ""
359
                               : ""
360
+                          }} -->
361
+                          <span v-for="(item, index) in arrtwo" :key="index">
362
+                          {{
363
+                           record.blood_access_part_opera_id == item.id
364
+                         ? item.name
365
+                            : ""
360
                           }}
366
                           }}
367
+                        </span>
361
                         </div>
368
                         </div>
362
                       </div>
369
                       </div>
363
                       <div class="inline_block" style="flex:1;">
370
                       <div class="inline_block" style="flex:1;">
1135
                             执行人签名
1142
                             执行人签名
1136
                           </td>
1143
                           </td>
1137
                           <td style="font-size: 16px" width="10%">时间</td>
1144
                           <td style="font-size: 16px" width="10%">时间</td>
1138
-                          <td style="font-size: 16px" width="10%" v-if="org_id == 10223">核对者</td>
1145
+                          <td style="font-size: 16px" width="10%" v-if="org_id == 10223 ||org_id == 0||org_id == 4">核对者</td>
1139
                         </tr>
1146
                         </tr>
1140
                         <!-- <template v-for="group in doctor_advices" > -->
1147
                         <!-- <template v-for="group in doctor_advices" > -->
1141
                         <tr
1148
                         <tr
1143
                           :key="advice_index"
1150
                           :key="advice_index"
1144
                         >
1151
                         >
1145
                           <td height="35px">
1152
                           <td height="35px">
1146
-                            <span v-if="advice[0].start_time">
1147
-                              {{ getTime(advice[0].start_time, "{h}:{i}") }}
1153
+                            <span v-if="advice.start_time">
1154
+                              {{ getTime(advice.start_time, "{h}:{i}") }}
1148
                             </span>
1155
                             </span>
1149
-                            <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1150
                           </td>
1156
                           </td>
1157
+                          
1151
                           <td
1158
                           <td
1152
                             height="35px"
1159
                             height="35px"
1153
                             colspan="2"
1160
                             colspan="2"
1154
                             class="advice-name"
1161
                             class="advice-name"
1155
                             style="padding-left:7px;"
1162
                             style="padding-left:7px;"
1156
                           >
1163
                           >
1157
-                            <span v-if="advice[0].parent_id > 0">---></span>
1158
-                            <span>{{ advice[0].advice_name }}</span>
1159
-                            <span v-if=" advice[advice_index] && advice[0].advice_desc != undefined">
1160
-                               ({{ advice[0].advice_desc}}{{ advice[0].drug_spec_unit }} )
1164
+                            <span v-if="advice.parent_id > 0">---></span>
1165
+                            <span>{{ advice.advice_name }}</span>
1166
+                            <span v-if=" advice[advice_index] && advice.advice_desc != undefined">
1167
+                               ({{ advice.advice_desc}}{{ advice.drug_spec_unit }} )
1161
                             </span>
1168
                             </span>
1162
-                            <span v-if="advice[0].prescribing_number"
1163
-                              >&nbsp;&nbsp; {{ advice[0].prescribing_number
1164
-                              }}{{ advice[0].prescribing_number_unit }}</span
1169
+                            <span v-if="advice.prescribing_number"
1170
+                              >&nbsp;&nbsp; {{ advice.prescribing_number
1171
+                              }}{{ advice.prescribing_number_unit }}</span
1165
                             >
1172
                             >
1166
-                            <span v-if="advice[0].single_dose != 0">
1167
-                              {{ advice[0].single_dose
1168
-                              }}{{ advice[0].single_dose_unit }}</span
1173
+                            <span v-if="advice.single_dose != 0">
1174
+                              {{ advice.single_dose
1175
+                              }}{{ advice.single_dose_unit }}</span
1169
                             >
1176
                             >
1170
                             <span
1177
                             <span
1171
                               v-if="
1178
                               v-if="
1172
-                                advice[0].parent_id == 0 &&
1173
-                                  advice[0].children.length == 0
1179
+                                advice.parent_id == 0
1174
                               "
1180
                               "
1175
-                              >{{ advice[0].delivery_way }}</span
1181
+                              >{{ advice.delivery_way }}</span
1176
                             >
1182
                             >
1177
                             <span
1183
                             <span
1178
                               v-if="
1184
                               v-if="
1179
-                                advice[0].parent_id == 0 &&
1180
-                                  advice[0].children.length == 0
1185
+                                advice.parent_id == 0 
1181
                               "
1186
                               "
1182
-                              >{{ advice[0].execution_frequency }}</span
1187
+                              >{{ advice.execution_frequency }}</span
1183
                             >
1188
                             >
1184
                             <span
1189
                             <span
1185
                               v-if="
1190
                               v-if="
1186
-                                advice[0].parent_id == 0 &&
1187
-                                  advice[0].children &&
1188
-                                  advice[0].children.length == 0 &&
1189
-                                  advice[0].remark.length > 0
1191
+                                advice.parent_id ==0 &&
1192
+                                  advice.remark.length > 0
1190
                               "
1193
                               "
1191
-                              >({{ advice[0].remark }})</span
1194
+                              >({{ advice.remark }})</span
1192
                             >
1195
                             >
1193
                           </td>
1196
                           </td>
1197
+
1194
                           <td height="35px">
1198
                           <td height="35px">
1195
                             <span
1199
                             <span
1196
                               v-if="
1200
                               v-if="
1234
                               style="height: 40px;"
1238
                               style="height: 40px;"
1235
                             />
1239
                             />
1236
                           </td>
1240
                           </td>
1241
+
1242
+
1237
                           <td height="35px">
1243
                           <td height="35px">
1238
-                            <span v-if="advice[0].execution_time">{{
1239
-                              getTime(advice[0].execution_time, " {h}:{i}")
1244
+                            <span v-if="advice.execution_time">{{
1245
+                              getTime(advice.execution_time, " {h}:{i}")
1240
                             }}</span>
1246
                             }}</span>
1241
                           </td>
1247
                           </td>
1242
 
1248
 
1243
-                          <td height="35px" v-if="org_id == 10223">
1249
+                          <td height="35px" v-if="org_id == 10223||org_id == 0||org_id == 4">
1244
                             <span
1250
                             <span
1245
                               v-if="
1251
                               v-if="
1246
                                 setAdminUserES(advice[0], 'checker') ==
1252
                                 setAdminUserES(advice[0], 'checker') ==
2017
       precaution_arr: [],
2023
       precaution_arr: [],
2018
       intake_arr: [],
2024
       intake_arr: [],
2019
       nutrition_arr: [],
2025
       nutrition_arr: [],
2020
-
2026
+      arrtwo: [],
2021
       records: [
2027
       records: [
2022
         // 模拟有多条数据
2028
         // 模拟有多条数据
2023
         // {
2029
         // {
2079
       "hemodialysis",
2085
       "hemodialysis",
2080
       "vascular_access_desc"
2086
       "vascular_access_desc"
2081
     );
2087
     );
2088
+    var arrtwo = [];
2089
+    for (let i = 0; i < bloodAccessParOpera.length; i++) {
2090
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
2091
+        bloodAccessParOpera[i].name = "存在";
2092
+        arr.push(bloodAccessParOpera[i]);
2093
+      }
2094
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
2095
+        bloodAccessParOpera[i].name = "减弱";
2096
+        arr.push(bloodAccessParOpera[i]);
2097
+      }
2098
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
2099
+        bloodAccessParOpera[i].name = "消失";
2100
+        arr.push(bloodAccessParOpera[i]);
2101
+      }
2102
+      if (bloodAccessParOpera[i].name == "直穿") {
2103
+        arrtwo.push(bloodAccessParOpera[i]);
2104
+      }
2105
+      if (bloodAccessParOpera[i].name == "动脉直穿") {
2106
+        arrtwo.push(bloodAccessParOpera[i]);
2107
+      }
2108
+      if (bloodAccessParOpera[i].name == "动静脉直穿") {
2109
+        arrtwo.push(bloodAccessParOpera[i]);
2110
+      }
2111
+      if (bloodAccessParOpera[i].name == "带隧道带绦纶套股静脉导管") {
2112
+        arrtwo.push(bloodAccessParOpera[i]);
2113
+      }
2114
+      if (bloodAccessParOpera[i].name == "带隧道带绦纶套锁骨下静脉导管") {
2115
+        arrtwo.push(bloodAccessParOpera[i]);
2116
+      }
2117
+      if (bloodAccessParOpera[i].name == "带隧道带绦纶套颈内静脉导管") {
2118
+        arrtwo.push(bloodAccessParOpera[i]);
2119
+      }
2120
+      if (bloodAccessParOpera[i].name == "无绦纶套股静脉导管") {
2121
+        arrtwo.push(bloodAccessParOpera[i]);
2122
+      }
2123
+      if (bloodAccessParOpera[i].name == "无绦纶套锁骨下静脉导管") {
2124
+        arrtwo.push(bloodAccessParOpera[i]);
2125
+      }
2126
+      if (bloodAccessParOpera[i].name == "无绦纶套颈内静脉导管") {
2127
+        arrtwo.push(bloodAccessParOpera[i]);
2128
+      }
2129
+      if (bloodAccessParOpera[i].name == "直线型移植血管动静脉内瘘") {
2130
+        arrtwo.push(bloodAccessParOpera[i]);
2131
+      }
2132
+      if (bloodAccessParOpera[i].name == "自体动静脉内瘘") {
2133
+        arrtwo.push(bloodAccessParOpera[i]);
2134
+      }
2135
+      if (bloodAccessParOpera[i].name == "袢型移植血管动静脉内瘘") {
2136
+        arrtwo.push(bloodAccessParOpera[i]);
2137
+      }
2138
+      if (bloodAccessParOpera[i].name == "静脉直穿") {
2139
+        arrtwo.push(bloodAccessParOpera[i]);
2140
+      }
2141
+      if (bloodAccessParOpera[i].name == "AVG") {
2142
+        arrtwo.push(bloodAccessParOpera[i]);
2143
+      }
2144
+      if (bloodAccessParOpera[i].name == "自体内瘘") {
2145
+        arrtwo.push(bloodAccessParOpera[i]);
2146
+      }
2147
+      if (bloodAccessParOpera[i].name == "AVF") {
2148
+        arrtwo.push(bloodAccessParOpera[i]);
2149
+      }
2150
+      if (bloodAccessParOpera[i].name == "颈内静脉") {
2151
+        arrtwo.push(bloodAccessParOpera[i]);
2152
+      }
2153
+      if (bloodAccessParOpera[i].name == "股静脉") {
2154
+        arrtwo.push(bloodAccessParOpera[i]);
2155
+      }
2156
+      if (bloodAccessParOpera[i].name == "人造血管") {
2157
+        arrtwo.push(bloodAccessParOpera[i]);
2158
+      }
2159
+      if (bloodAccessParOpera[i].name == "移植血管") {
2160
+        arrtwo.push(bloodAccessParOpera[i]);
2161
+      }
2162
+      this.arrtwo = arrtwo;
2163
+    }
2164
+    console.log("arrtwo", arrtwo)
2165
+
2082
     for (var key in bloodAccessParOpera) {
2166
     for (var key in bloodAccessParOpera) {
2083
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2167
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2084
         bloodAccessParOpera[key];
2168
         bloodAccessParOpera[key];
2117
       .then(rs => {
2201
       .then(rs => {
2118
         var resp = rs.data;
2202
         var resp = rs.data;
2119
         if (resp.state == 1) {
2203
         if (resp.state == 1) {
2120
-          this.records = this.records.concat(resp.data.schedules);
2121
-          console.log("记录", this.records);
2204
+          // this.records = this.records.concat(resp.data.schedules);
2205
+          // console.log(rs,'rs')
2206
+          this.records = resp.data.schedules;
2207
+          console.log("记录this.records", this.records);
2122
 
2208
 
2123
           for (const recordIndex in this.records) {
2209
           for (const recordIndex in this.records) {
2124
             var dlegh = 0;
2210
             var dlegh = 0;
2149
             }
2235
             }
2150
 
2236
 
2151
             var delghTwo = 0;
2237
             var delghTwo = 0;
2238
+            console.log(this.records[recordIndex].advices,'长度')
2152
             if (
2239
             if (
2153
               this.records[recordIndex].advices &&
2240
               this.records[recordIndex].advices &&
2154
-              this.records[recordIndex].advices.length < 12
2241
+              this.records[recordIndex].advices.length < 6
2155
             ) {
2242
             ) {
2156
-              delghTwo = 12 - this.records[recordIndex].advices.length;
2243
+              delghTwo = 6 - this.records[recordIndex].advices.length;
2157
             } else {
2244
             } else {
2158
               delghTwo = 0;
2245
               delghTwo = 0;
2159
             }
2246
             }
2160
 
2247
 
2161
             if (delghTwo > 0) {
2248
             if (delghTwo > 0) {
2249
+              console.log(typeof this.records[recordIndex].advices,'typeof this.records[recordIndex].advices')
2162
               if (
2250
               if (
2163
                 typeof this.records[recordIndex].advices === "undefined" ||
2251
                 typeof this.records[recordIndex].advices === "undefined" ||
2164
                 this.records[recordIndex].advices == null
2252
                 this.records[recordIndex].advices == null
2165
               ) {
2253
               ) {
2166
-                this.records[recordIndex].advices = [];
2254
+                for (let index = 0; index < delghTwo; index++) {
2255
+                this.records[recordIndex].advices.push([]);
2256
+              }
2167
               }
2257
               }
2168
               for (let index = 0; index < delghTwo; index++) {
2258
               for (let index = 0; index < delghTwo; index++) {
2169
                 this.records[recordIndex].advices.push([]);
2259
                 this.records[recordIndex].advices.push([]);
2170
               }
2260
               }
2171
             }
2261
             }
2172
 
2262
 
2173
-            var childMap = {};
2174
-            for (const index in this.records[recordIndex].advices) {
2175
-              if (this.records[recordIndex].advices[index].parent_id == 0) {
2176
-                continue;
2177
-              }
2178
-              if (
2179
-                !(
2180
-                  this.records[recordIndex].advices[index].parent_id in childMap
2181
-                )
2182
-              ) {
2183
-                childMap[
2184
-                  this.records[recordIndex].advices[index].parent_id
2185
-                ] = [];
2186
-              }
2187
-              childMap[this.records[recordIndex].advices[index].parent_id].push(
2188
-                this.records[recordIndex].advices[index]
2189
-              );
2190
-            }
2263
+            // var childMap = {};
2264
+            // for (const index in this.records[recordIndex].advices) {
2265
+            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
2266
+            //     continue;
2267
+            //   }
2268
+            //   if (
2269
+            //     !(
2270
+            //       this.records[recordIndex].advices[index].parent_id in childMap
2271
+            //     )
2272
+            //   ) {
2273
+            //     childMap[
2274
+            //       this.records[recordIndex].advices[index].parent_id
2275
+            //     ] = [];
2276
+            //   }
2277
+            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
2278
+            //     this.records[recordIndex].advices[index]
2279
+            //   );
2280
+            // }
2281
+            // console.log(childMap,'childMap')
2191
 
2282
 
2192
-            var advices = [];
2193
-            for (const index in this.records[recordIndex].advices) {
2194
-              if (this.records[recordIndex].advices[index].parent_id > 0) {
2195
-                continue;
2196
-              }
2197
-              var item = this.records[recordIndex].advices[index];
2198
-              if (item.id in childMap) {
2199
-                item.children = childMap[item.id];
2200
-                // advices.push(childMap[item.id]);
2201
-              } else {
2202
-                item.children = [];
2203
-              }
2204
-              advices.push(item);
2283
+            // var advices = [];
2284
+            // for (const index in this.records[recordIndex].advices) {
2285
+            //   if (this.records[recordIndex].advices[index].parent_id > 0) {
2286
+            //     continue;
2287
+            //   }
2288
+            //   var item = this.records[recordIndex].advices[index];
2289
+            //   if (item.id in childMap) {
2290
+            //     item.children = childMap[item.id];
2291
+            //     // advices.push(childMap[item.id]);
2292
+            //   } else {
2293
+            //     item.children = [];
2294
+            //   }
2295
+            //   advices.push(item);
2205
               
2296
               
2297
+            // }
2298
+
2299
+          console.log(" this.records[recordIndex].advices", this.records);
2300
+          this.operators = resp.data.medical_staffs;
2301
+          if (this.operators.length > 0) {
2302
+            var operatorsLen = this.operators.length;
2303
+            for (var index = 0; index < operatorsLen; index++) {
2304
+              this.$set(
2305
+                this.operatorMaps,
2306
+                this.operators[index].id,
2307
+                this.operators[index]
2308
+              );
2206
             }
2309
             }
2310
+          }
2311
+          this.adminUser = resp.data.users;
2312
+          console.log("使用者", this.adminUser);
2313
+          this.loading = false;
2207
 
2314
 
2208
             var leftAdvice = [];
2315
             var leftAdvice = [];
2209
             var rightAdvice = [];
2316
             var rightAdvice = [];
2237
             }
2344
             }
2238
           }
2345
           }
2239
 
2346
 
2240
-          console.log(" this.records[recordIndex].advices", this.records);
2241
-          this.operators = resp.data.medical_staffs;
2242
-          if (this.operators.length > 0) {
2243
-            var operatorsLen = this.operators.length;
2244
-            for (var index = 0; index < operatorsLen; index++) {
2245
-              this.$set(
2246
-                this.operatorMaps,
2247
-                this.operators[index].id,
2248
-                this.operators[index]
2249
-              );
2250
-            }
2251
-          }
2252
-          this.adminUser = resp.data.users;
2253
-          console.log("使用者", this.adminUser);
2254
-          this.loading = false;
2255
-        } else {
2347
+         
2348
+        } 
2349
+        else {
2256
           this.loading = false;
2350
           this.loading = false;
2257
           this.$message.error(resp.msg);
2351
           this.$message.error(resp.msg);
2258
         }
2352
         }
2259
       })
2353
       })
2260
       .catch(err => {
2354
       .catch(err => {
2261
-        this.$message.error(err);
2355
+        // this.$message.error(err);
2356
+        console.log(err)
2262
       });
2357
       });
2263
   },
2358
   },
2264
   methods: {
2359
   methods: {
2360
+
2265
     getUnit: function(val) {
2361
     getUnit: function(val) {
2266
       if (val.assessment_after_dislysis == null) {
2362
       if (val.assessment_after_dislysis == null) {
2267
         return "";
2363
         return "";

+ 22 - 9
src/xt_pages/hospitalStation/recordPrint.vue View File

13
 
13
 
14
      <div class="dialysisPage" style="padding-top: 40px">
14
      <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
-        v-if="org_id != 9671 && org_id!=9675"
16
+        v-if="org_id != 9675 && org_id != 9671 &&org_id != 0"
17
         ref="printOne"
17
         ref="printOne"
18
         v-bind:childResponse="childResponse"
18
         v-bind:childResponse="childResponse"
19
         :patient="patient"
19
         :patient="patient"
22
         :patientid="patientid"
22
         :patientid="patientid"
23
       ></printOne>
23
       ></printOne>
24
       <printTwo
24
       <printTwo
25
-        v-if="org_id == 9671 || org_id == 9675"
25
+        v-if="org_id == 10217 || org_id == 0 ||org_id==9675||org_id==9671"
26
         ref="printTwo"
26
         ref="printTwo"
27
         v-bind:childResponse="childResponse"
27
         v-bind:childResponse="childResponse"
28
         :patient="patient"
28
         :patient="patient"
101
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
101
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
102
 
102
 
103
       const style =
103
       const style =
104
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}';
105
-      printJS({
106
-        printable: "prescription-print",
107
-        type: "html",
108
-        style: style,
109
-        scanStyles: false
110
-      });
104
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
105
+       const style1 =
106
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
107
+      
108
+      
109
+      if (this.org_id != 10217 && this.org_id != 0) {
110
+        printJS({
111
+          printable: "prescription-print",
112
+          type: "html",
113
+          style: style,
114
+          scanStyles: false,
115
+        });
116
+      } else if (this.org_id == 10217 || this.org_id == 0) {
117
+        printJS({
118
+          printable: "prescription-print",
119
+          type: "html",
120
+          style: style1,
121
+          scanStyles: false,
122
+        });
123
+      }
111
     },
124
     },
112
 
125
 
113
      //患者列表
126
      //患者列表

+ 22 - 19
src/xt_pages/hospitalStation/recordTemplate/printTwo.vue View File

2
   <div id="prescription-print">
2
   <div id="prescription-print">
3
     <div class="prescription-print">
3
     <div class="prescription-print">
4
       <div class="printTitle">{{ orgname }}血透中心病历</div>
4
       <div class="printTitle">{{ orgname }}血透中心病历</div>
5
-       <div class="record_Title">
5
+       <!-- <div class="record_Title">
6
             <div>姓名:{{patient.name?patient.name:''}}</div>
6
             <div>姓名:{{patient.name?patient.name:''}}</div>
7
             <div>性别:
7
             <div>性别:
8
                 <span v-if="patient.gender == 1">男</span>
8
                 <span v-if="patient.gender == 1">男</span>
10
             </div>
10
             </div>
11
             <div>年龄:{{patient.age?patient.age:''}}岁</div>
11
             <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
             <div>透析病历号:{{patient.id?patient.id:''}}</div>
12
             <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
-        </div>
13
+        </div> -->
14
       <div class="infoTitle" style="margin-top:20px;">
14
       <div class="infoTitle" style="margin-top:20px;">
15
-        <div>姓名:{{ patient.name ? patient.name : "" }}</div>
16
-        <div>
17
-          家庭住址:{{ patient.home_address ? patient.home_address : "" }}
15
+        <div class="name_slot">姓名:{{ patient.name ? patient.name : "" }}</div>
16
+        <div class="address_slot">
17
+          家庭住址:{{ patient.home_address ? patient.home_address : "" }}深圳市南山区桃园街道新屋村东区三号楼303
18
         </div>
18
         </div>
19
       </div>
19
       </div>
20
       <div class="infoTitle">
20
       <div class="infoTitle">
21
-        <div>
21
+        <div class="name_slot">
22
           性别:
22
           性别:
23
           <span v-if="patient.gender == 1">男</span>
23
           <span v-if="patient.gender == 1">男</span>
24
           <span v-if="patient.gender == 2">女</span>
24
           <span v-if="patient.gender == 2">女</span>
25
         </div>
25
         </div>
26
-        <div>工作单位:{{patient.work_unit}}</div>
26
+        <div class="address_slot">工作单位:{{patient.work_unit}}</div>
27
        
27
        
28
       </div>
28
       </div>
29
       <div class="infoTitle">
29
       <div class="infoTitle">
30
-        <div>出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
-        <div>身份证号:{{patient.id_card_no}}</div>
30
+        <div class="name_slot">出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
+        <div class="address_slot">身份证号:{{patient.id_card_no}}</div>
32
       </div>
32
       </div>
33
       <div class="infoTitle">
33
       <div class="infoTitle">
34
-        <div>联系人:{{patient.contact_name}}</div>
35
-        <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
34
+        <div class="name_slot">联系人:{{patient.contact_name}}</div>
35
+        <div class="address_slot">联系电话:{{ patient.phone ? patient.phone : "" }}</div>
36
       </div>
36
       </div>
37
       <div class="otherInfo" style="border-bottom: 1px solid">
37
       <div class="otherInfo" style="border-bottom: 1px solid">
38
         <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
38
         <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
40
       </div>
40
       </div>
41
       <div class="infoTitle">
41
       <div class="infoTitle">
42
         <div style="width: 300px">原发病:{{history.primary_disease}}</div>
42
         <div style="width: 300px">原发病:{{history.primary_disease}}</div>
43
-        <div>确诊肾衰日期:{{getTime(patient.first_dialysis_date)}}</div>
43
+        <div class="address_slot">确诊肾衰日期:{{getTime(history.confirm_failure_date)}}</div>
44
       </div>
44
       </div>
45
       <div class="otherInfo">
45
       <div class="otherInfo">
46
         <div>
46
         <div>
52
         <div style="flex: 1"></div>
52
         <div style="flex: 1"></div>
53
       </div>
53
       </div>
54
       <div class="otherInfo" style="border-bottom: 1px solid">
54
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:{{getAccess(accessList.access_project)}}</div>
55
+        <div>血管通路:{{accessList.blood_access_part_opera_id}}</div>
56
         <div style="flex: 1"></div>
56
         <div style="flex: 1"></div>
57
       </div>
57
       </div>
58
 
58
 
88
         </div>
88
         </div>
89
       </div>
89
       </div>
90
 
90
 
91
-      <div class="otherInfo" style="min-height: 80px;">
91
+      <div class="otherInfo" style="min-height: 150px;">
92
         <div class="otherName">家族史:</div>
92
         <div class="otherName">家族史:</div>
93
         <div style="flex: 1">
93
         <div style="flex: 1">
94
-          {{ history.family_history ? history.family_history : "" }}
94
+          {{ history.family_history ? history.family_history : "" }}啊实打实大苏打实打实
95
         </div>
95
         </div>
96
       </div>
96
       </div>
97
-
98
-      <div style="page-break-after: always; margin-top: 50px"></div>
99
     </div>
97
     </div>
100
-
98
+<div style="page-break-after: always; margin-top: 50px"></div>
101
     <div class="prescription-print">
99
     <div class="prescription-print">
102
       <!-- <div class="printTitle">病历内容</div> -->
100
       <!-- <div class="printTitle">病历内容</div> -->
103
       <div class="recordTitle">
101
       <div class="recordTitle">
132
               手签:
130
               手签:
133
             </div>
131
             </div>
134
           </div>
132
           </div>
135
-          <div style="text-align: center; letter-spacing: 3px">{{getTime(history.record_date)}}</div>
133
+          <div style="text-align: center; letter-spacing: 3px;padding-top:20px">{{getTime(history.record_date)}}</div>
136
         </div>
134
         </div>
137
       </div>
135
       </div>
138
     </div>
136
     </div>
222
         if (response.data.state == 1) {
220
         if (response.data.state == 1) {
223
           var patient = response.data.data.patient;
221
           var patient = response.data.data.patient;
224
           this.patient = patient;
222
           this.patient = patient;
223
+          console.log(this.patient,'this.patient')
225
           var history = response.data.data.history;
224
           var history = response.data.data.history;
226
           this.history = history;
225
           this.history = history;
227
           var hispatient = response.data.data.hispatient;
226
           var hispatient = response.data.data.hispatient;
316
 .infoTitle div {
315
 .infoTitle div {
317
   width: 200px;
316
   width: 200px;
318
 }
317
 }
318
+
319
+.infoTitle .address_slot{width: 400px;} 
320
+.infoTitle .name_slot{width: 250px;}
321
+
319
 .otherInfo {
322
 .otherInfo {
320
   display: flex;
323
   display: flex;
321
   margin-top: 10px;
324
   margin-top: 10px;

+ 15 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

305
         class="centerDialog"
305
         class="centerDialog"
306
         width="600px"
306
         width="600px"
307
         title="打印"
307
         title="打印"
308
+        destroy-on-close
308
         :visible.sync="recordVisible">
309
         :visible.sync="recordVisible">
309
-      <recordPrint :patientid="patientid" ref="recordPrint"></recordPrint>
310
+      <recordPrint :patientid="patientid" ref="recordPrint">
311
+    </recordPrint>
310
     </el-dialog>
312
     </el-dialog>
311
 
313
 
312
   </div>
314
   </div>
4596
         }
4598
         }
4597
         this.$refs.child.createCaseHistory()
4599
         this.$refs.child.createCaseHistory()
4598
       } else if (index == 2) {
4600
       } else if (index == 2) {
4599
-        this.recordVisible = true
4600
-        this.$refs.recordPrint.show(this.patientid)
4601
 
4601
 
4602
+          this.recordVisible = true
4603
+        this.$refs.recordPrint.show(this.patientid)
4604
+        
4602
         // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
4605
         // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
4603
       } else if (index == 3) {
4606
       } else if (index == 3) {
4604
         var mode_status = this.$refs.saveRecordTemplate.mode_status
4607
         var mode_status = this.$refs.saveRecordTemplate.mode_status
4948
     }
4951
     }
4949
   },
4952
   },
4950
   created() {
4953
   created() {
4954
+    this.$nextTick(() => {
4955
+      
4956
+    })
4957
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
4951
     this.getInitData()
4958
     this.getInitData()
4952
     var nowDate = new Date()
4959
     var nowDate = new Date()
4953
     var nowYear = nowDate.getFullYear()
4960
     var nowYear = nowDate.getFullYear()
4965
     // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4972
     // this.other_sick = this.getDictionaryDataConfig('system', 'other_sick_history')
4966
     let tableHeight = document.body.clientHeight - 263
4973
     let tableHeight = document.body.clientHeight - 263
4967
     this.tableHeight = tableHeight
4974
     this.tableHeight = tableHeight
4968
-    this.org_id = this.$store.getters.xt_user.template_info.org_id
4975
+    
4969
 
4976
 
4970
   },
4977
   },
4971
 
4978
 
4990
           that.timer = false
4997
           that.timer = false
4991
         }, 400)
4998
         }, 400)
4992
       }
4999
       }
4993
-    }
5000
+    },
5001
+    patientid: function (val) {
5002
+      console.log("val22332323", val);
5003
+    },
4994
 
5004
 
4995
   }
5005
   }
4996
 }
5006
 }

+ 13 - 9
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

13
 
13
 
14
     <div class="dialysisPage" style="padding-top: 40px">
14
     <div class="dialysisPage" style="padding-top: 40px">
15
       <printOne
15
       <printOne
16
-        v-if="org_id != 9675 && org_id != 9671"
16
+        v-if="org_id != 9675 && org_id != 9671 && org_id != 0"
17
         ref="printOne"
17
         ref="printOne"
18
         v-bind:childResponse="childResponse"
18
         v-bind:childResponse="childResponse"
19
         :patient="patient"
19
         :patient="patient"
22
         :patientid="patientid"
22
         :patientid="patientid"
23
       ></printOne>
23
       ></printOne>
24
       <printTwo
24
       <printTwo
25
-        v-if="org_id == 9671 || org_id == 9675"
25
+        v-if="
26
+          org_id == 10217 || org_id == 0 || org_id == 9675 || org_id == 9671
27
+        "
26
         ref="printTwo"
28
         ref="printTwo"
27
         v-bind:childResponse="childResponse"
29
         v-bind:childResponse="childResponse"
28
         :patient="patient"
30
         :patient="patient"
71
       org_id,
73
       org_id,
72
     };
74
     };
73
   },
75
   },
76
+
77
+
74
   methods: {
78
   methods: {
75
     show(val) {
79
     show(val) {
80
+      console.log(val,'ooooooo')
76
       this.$refs.printOne.show(val);
81
       this.$refs.printOne.show(val);
77
       this.$refs.printTwo.show(val);
82
       this.$refs.printTwo.show(val);
78
     },
83
     },
104
 
109
 
105
       const style =
110
       const style =
106
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
111
         "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}";
107
-       const style1 =
108
-        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.infoTitle div{width: 300px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
109
-      
110
-      
112
+      const style1 =
113
+        "@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;} .infoTitle div{width: 200px;} .infoTitle .address_slot{width: 400px;} .infoTitle .name_slot{width: 250px;}.otherInfo{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;justify-content: center;flex-direction: column;margin-top:10px;line-height: 24px;padding:0 10px;border-top: 1px solid;}.recordTitle div{width: 100%;text-align: center;} .recordTitle .recordContent{width: 100%;height: 150px;text-align: left;} .endInfo{display: flex;flex-direction: column;justify-content: end;margin-top: 10px;line-height: 24px;} .endInfo div{width: 300px;} .record_Title{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;} .record_Title div{width: 200px;}}";
114
+
111
       if (this.org_id != 10217 && this.org_id != 0) {
115
       if (this.org_id != 10217 && this.org_id != 0) {
112
         printJS({
116
         printJS({
113
           printable: "prescription-print",
117
           printable: "prescription-print",
174
   created() {
178
   created() {
175
     // this.getPatientList()
179
     // this.getPatientList()
176
     this.org_id = this.$store.getters.xt_user.org.id;
180
     this.org_id = this.$store.getters.xt_user.org.id;
177
-    console.log("=====", this.org_id);
178
-    this.$refs.printOne.show(this.patientid);
179
-    this.$refs.printTwo.show(this.patientid);
181
+    // console.log("=====", this.org_id);
182
+    // this.$refs.printOne.show(this.patientid);
183
+    // this.$refs.printTwo.show(this.patientid);
180
   },
184
   },
181
   // computed:{
185
   // computed:{
182
   //   filtedSchedules: function() {
186
   //   filtedSchedules: function() {

+ 106 - 77
src/xt_pages/outpatientDoctorStation/recordTemplate/printTwo.vue View File

2
   <div id="prescription-print">
2
   <div id="prescription-print">
3
     <div class="prescription-print">
3
     <div class="prescription-print">
4
       <div class="printTitle">{{ orgname }}血透中心病历</div>
4
       <div class="printTitle">{{ orgname }}血透中心病历</div>
5
-       <div class="record_Title">
5
+      <!-- <div class="record_Title">
6
             <div>姓名:{{patient.name?patient.name:''}}</div>
6
             <div>姓名:{{patient.name?patient.name:''}}</div>
7
             <div>性别:
7
             <div>性别:
8
                 <span v-if="patient.gender == 1">男</span>
8
                 <span v-if="patient.gender == 1">男</span>
10
             </div>
10
             </div>
11
             <div>年龄:{{patient.age?patient.age:''}}岁</div>
11
             <div>年龄:{{patient.age?patient.age:''}}岁</div>
12
             <div>透析病历号:{{patient.id?patient.id:''}}</div>
12
             <div>透析病历号:{{patient.id?patient.id:''}}</div>
13
+        </div> -->
14
+      <div class="infoTitle" style="margin-top: 20px">
15
+        <div class="name_slot">
16
+          姓名:{{ patient.name ? patient.name : "" }}
13
         </div>
17
         </div>
14
-      <div class="infoTitle" style="margin-top:20px;">
15
-        <div>姓名:{{ patient.name ? patient.name : "" }}</div>
16
-        <div>
18
+        <div class="address_slot">
17
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
19
           家庭住址:{{ patient.home_address ? patient.home_address : "" }}
18
         </div>
20
         </div>
19
       </div>
21
       </div>
20
       <div class="infoTitle">
22
       <div class="infoTitle">
21
-        <div>
23
+        <div class="name_slot">
22
           性别:
24
           性别:
23
           <span v-if="patient.gender == 1">男</span>
25
           <span v-if="patient.gender == 1">男</span>
24
           <span v-if="patient.gender == 2">女</span>
26
           <span v-if="patient.gender == 2">女</span>
25
         </div>
27
         </div>
26
-        <div>工作单位:{{patient.work_unit}}</div>
27
-       
28
+        <div class="address_slot">工作单位:{{ patient.work_unit }}</div>
28
       </div>
29
       </div>
29
       <div class="infoTitle">
30
       <div class="infoTitle">
30
-        <div>出生日期:{{patient.id_card_no.slice(6,10)}}年{{ patient.id_card_no.slice(10,12) }}月{{patient.id_card_no.slice(12,14) }}日</div> 
31
-        <div>身份证号:{{patient.id_card_no}}</div>
31
+        <div class="name_slot">
32
+          出生日期:{{ patient.id_card_no.slice(6, 10) }}年{{
33
+            patient.id_card_no.slice(10, 12)
34
+          }}月{{ patient.id_card_no.slice(12, 14) }}日
35
+        </div>
36
+        <div class="address_slot">身份证号:{{ patient.id_card_no }}</div>
32
       </div>
37
       </div>
33
       <div class="infoTitle">
38
       <div class="infoTitle">
34
-        <div>联系人:{{patient.contact_name}}</div>
35
-        <div>联系电话:{{ patient.phone ? patient.phone : "" }}</div>
39
+        <div class="name_slot">联系人:{{ patient.contact_name }}</div>
40
+        <div class="address_slot">
41
+          联系电话:{{ patient.phone ? patient.phone : "" }}
42
+        </div>
36
       </div>
43
       </div>
37
       <div class="otherInfo" style="border-bottom: 1px solid">
44
       <div class="otherInfo" style="border-bottom: 1px solid">
38
-        <div>进入透析时间:{{getTime(patient.first_dialysis_date)}}</div>
45
+        <div>进入透析时间:{{ getTime(patient.first_dialysis_date) }}</div>
39
         <div style="flex: 1"></div>
46
         <div style="flex: 1"></div>
40
       </div>
47
       </div>
41
       <div class="infoTitle">
48
       <div class="infoTitle">
42
-        <div style="width: 300px">原发病:{{history.primary_disease}}</div>
43
-        <div>确诊肾衰日期:{{getTime(patient.first_dialysis_date)}}</div>
49
+        <div style="width: 300px">原发病:{{ history.primary_disease }}</div>
50
+        <div class="address_slot">
51
+          确诊肾衰日期:{{ getTime(history.confirm_failure_date) }}
52
+        </div>
44
       </div>
53
       </div>
45
       <div class="otherInfo">
54
       <div class="otherInfo">
46
         <div>
55
         <div>
47
-          药物过敏史:{{ history.allergic_history ? history.allergic_history : "" }}
56
+          药物过敏史:{{
57
+            history.allergic_history ? history.allergic_history : ""
58
+          }}
48
         </div>
59
         </div>
49
       </div>
60
       </div>
50
       <div class="otherInfo">
61
       <div class="otherInfo">
51
-        <div>初始透析日期:{{getTime(patient.first_dialysis_date)}}</div>
62
+        <div>初始透析日期:{{ getTime(patient.first_dialysis_date) }}</div>
52
         <div style="flex: 1"></div>
63
         <div style="flex: 1"></div>
53
       </div>
64
       </div>
54
       <div class="otherInfo" style="border-bottom: 1px solid">
65
       <div class="otherInfo" style="border-bottom: 1px solid">
55
-        <div>血管通路:{{getAccess(accessList.access_project)}}</div>
66
+        <div>血管通路:{{ accessList.blood_access_part_opera_id }}</div>
56
         <div style="flex: 1"></div>
67
         <div style="flex: 1"></div>
57
       </div>
68
       </div>
58
 
69
 
59
-      <div class="otherInfo" style="min-height: 60px;">
70
+      <div class="otherInfo" style="min-height: 60px">
60
         <div class="otherName">主诉:</div>
71
         <div class="otherName">主诉:</div>
61
         <div style="flex: 1">
72
         <div style="flex: 1">
62
           {{ history.chief_conplaint ? history.chief_conplaint : "" }}
73
           {{ history.chief_conplaint ? history.chief_conplaint : "" }}
63
         </div>
74
         </div>
64
       </div>
75
       </div>
65
 
76
 
66
-      <div class="otherInfo" style="min-height: 180px;">
77
+      <div class="otherInfo" style="min-height: 180px">
67
         <div class="otherName">现病史:</div>
78
         <div class="otherName">现病史:</div>
68
         <div style="flex: 1">
79
         <div style="flex: 1">
69
           {{
80
           {{
74
         </div>
85
         </div>
75
       </div>
86
       </div>
76
 
87
 
77
-      <div class="otherInfo" style="min-height: 100px;">
88
+      <div class="otherInfo" style="min-height: 100px">
78
         <div class="otherName">既往史:</div>
89
         <div class="otherName">既往史:</div>
79
         <div style="flex: 1">
90
         <div style="flex: 1">
80
           {{ history.past_history ? history.past_history : "" }}
91
           {{ history.past_history ? history.past_history : "" }}
81
         </div>
92
         </div>
82
       </div>
93
       </div>
83
 
94
 
84
-      <div class="otherInfo" style="min-height: 80px;">
95
+      <div class="otherInfo" style="min-height: 80px">
85
         <div class="otherName">个人史:</div>
96
         <div class="otherName">个人史:</div>
86
         <div style="flex: 1">
97
         <div style="flex: 1">
87
           {{ history.personal_history ? history.personal_history : "" }}
98
           {{ history.personal_history ? history.personal_history : "" }}
88
         </div>
99
         </div>
89
       </div>
100
       </div>
90
 
101
 
91
-      <div class="otherInfo" style="min-height: 80px;">
102
+      <div class="otherInfo" style="min-height: 150px">
92
         <div class="otherName">家族史:</div>
103
         <div class="otherName">家族史:</div>
93
         <div style="flex: 1">
104
         <div style="flex: 1">
94
           {{ history.family_history ? history.family_history : "" }}
105
           {{ history.family_history ? history.family_history : "" }}
95
         </div>
106
         </div>
96
       </div>
107
       </div>
97
-
98
-      <div style="page-break-after: always; margin-top: 50px"></div>
99
     </div>
108
     </div>
100
-
109
+    <div style="page-break-after: always; margin-top: 50px"></div>
101
     <div class="prescription-print">
110
     <div class="prescription-print">
102
       <!-- <div class="printTitle">病历内容</div> -->
111
       <!-- <div class="printTitle">病历内容</div> -->
103
       <div class="recordTitle">
112
       <div class="recordTitle">
104
         <div>体格检查</div>
113
         <div>体格检查</div>
105
-        <div class="recordContent" style="height:250px;">
114
+        <div class="recordContent" style="height: 250px">
106
           <div>
115
           <div>
107
-          <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
108
-          <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
109
-          <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
110
-          <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
116
+            <span
117
+              >体温:{{
118
+                history.temperature ? history.temperature + "℃" : "/"
119
+              }}</span
120
+            >
121
+            <span
122
+              >脉搏:{{ history.pulse ? history.pulse + "次/分" : "/" }}</span
123
+            >
124
+            <span
125
+              >呼吸:{{
126
+                history.breathing ? history.breathing + "次/分" : "/"
127
+              }}</span
128
+            >
129
+            <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
111
           </div>
130
           </div>
112
-
113
         </div>
131
         </div>
114
         <div></div>
132
         <div></div>
115
       </div>
133
       </div>
116
       <div class="recordTitle">
134
       <div class="recordTitle">
117
         <div>专科检查</div>
135
         <div>专科检查</div>
118
-        <div class="recordContent">{{history.special_inspection}}</div>
136
+        <div class="recordContent">{{ history.special_inspection }}</div>
119
       </div>
137
       </div>
120
       <div class="recordTitle" style="border-bottom: 1px solid">
138
       <div class="recordTitle" style="border-bottom: 1px solid">
121
         <div>实验室及器械检查</div>
139
         <div>实验室及器械检查</div>
122
-        <div class="recordContent" style="height:250px;">{{history.lab_apparatus}}</div>
140
+        <div class="recordContent" style="height: 250px">
141
+          {{ history.lab_apparatus }}
142
+        </div>
123
       </div>
143
       </div>
124
       <div style="display: flex; justify-content: end">
144
       <div style="display: flex; justify-content: end">
125
         <div class="endInfo">
145
         <div class="endInfo">
127
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
147
             诊断:{{ history.diagnostic ? history.diagnostic : "" }}
128
           </div>
148
           </div>
129
           <div style="display: flex">
149
           <div style="display: flex">
130
-            <div>医师:{{getDoctor(history.doctor) ? getDoctor(history.doctor) : ""}}</div>
131
             <div>
150
             <div>
132
-              手签:
151
+              医师:{{
152
+                getDoctor(history.doctor) ? getDoctor(history.doctor) : ""
153
+              }}
133
             </div>
154
             </div>
155
+            <div>手签:</div>
156
+          </div>
157
+          <div
158
+            style="text-align: center; letter-spacing: 3px; padding-top: 20px"
159
+          >
160
+            {{ getTime(history.record_date) }}
134
           </div>
161
           </div>
135
-          <div style="text-align: center; letter-spacing: 3px">{{getTime(history.record_date)}}</div>
136
         </div>
162
         </div>
137
       </div>
163
       </div>
138
     </div>
164
     </div>
143
 
169
 
144
 import { getDataConfig } from "@/utils/data";
170
 import { getDataConfig } from "@/utils/data";
145
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
171
 import { getAllDoctorList, getPatientCaseHistory } from "@/api/project/project";
146
-import {getAccessList} from "@/api/patient"
172
+import { getAccessList } from "@/api/patient";
147
 export default {
173
 export default {
148
   props: {
174
   props: {
149
     patient: Object,
175
     patient: Object,
158
       orgname: "",
184
       orgname: "",
159
       history: {},
185
       history: {},
160
       printDate: "",
186
       printDate: "",
161
-      accessList:{},
162
-      blood_access_part_opera:[],
187
+      accessList: {},
188
+      blood_access_part_opera: [],
163
     };
189
     };
164
   },
190
   },
191
+
192
+
165
   methods: {
193
   methods: {
166
     getAge(patient) {
194
     getAge(patient) {
167
       var thisLen = patient.id_card_no.length;
195
       var thisLen = patient.id_card_no.length;
200
 
228
 
201
           this.doctorList = doctor;
229
           this.doctorList = doctor;
202
           var department = response.data.data.department;
230
           var department = response.data.data.department;
203
-          console.log("department", department);
204
           this.departmentList = department;
231
           this.departmentList = department;
205
         }
232
         }
206
       });
233
       });
226
           this.history = history;
253
           this.history = history;
227
           var hispatient = response.data.data.hispatient;
254
           var hispatient = response.data.data.hispatient;
228
           this.hispatient = hispatient;
255
           this.hispatient = hispatient;
229
-          var accessList = response.data.data.accessList
230
-          console.log("accesslist2332323232",accessList)
231
-          this.accessList = accessList
256
+          var accessList = response.data.data.accessList;
257
+          this.accessList = accessList;
232
         }
258
         }
233
       });
259
       });
234
     },
260
     },
242
       return name;
268
       return name;
243
     },
269
     },
244
     getTime(val) {
270
     getTime(val) {
245
-      if(val < 0){
246
-        return ""
271
+      if (val < 0) {
272
+        return "";
247
       }
273
       }
248
-      if(val == ""){
249
-      return ""
250
-      }else {
251
-      return uParseTime(val, '{y}-{m}-{d}')
274
+      if (val == "") {
275
+        return "";
276
+      } else {
277
+        return uParseTime(val, "{y}-{m}-{d}");
252
       }
278
       }
253
     },
279
     },
254
-    getAccessList(){
255
-      getAccessList().then(response=>{
256
-        if(response.data.state == 1){
257
-          var blood_access_part_opera = response.data.data.blood_access_part_opera
258
-          this.blood_access_part_opera = blood_access_part_opera
280
+    getAccessList() {
281
+      getAccessList().then((response) => {
282
+        if (response.data.state == 1) {
283
+          var blood_access_part_opera =
284
+            response.data.data.blood_access_part_opera;
285
+          this.blood_access_part_opera = blood_access_part_opera;
259
         }
286
         }
260
-     })
287
+      });
261
     },
288
     },
262
-    getAccess(id){
263
-      var name = ""
264
-      for(let i=0;i<this.blood_access_part_opera.length;i++){
265
-         if(id == this.blood_access_part_opera[i].value){
266
-             name = this.blood_access_part_opera[i].name
267
-         }
289
+    getAccess(id) {
290
+      var name = "";
291
+      for (let i = 0; i < this.blood_access_part_opera.length; i++) {
292
+        if (id == this.blood_access_part_opera[i].value) {
293
+          name = this.blood_access_part_opera[i].name;
294
+        }
268
       }
295
       }
269
-      return name
270
-    }
296
+      return name;
297
+    },
271
   },
298
   },
272
   created() {
299
   created() {
273
     this.educationOptions = getDataConfig("patient", "education_types");
300
     this.educationOptions = getDataConfig("patient", "education_types");
274
     this.getAllDoctorList();
301
     this.getAllDoctorList();
275
     this.getPatientCaseHistory();
302
     this.getPatientCaseHistory();
276
-    this.getAccessList()
303
+    this.getAccessList();
277
     var xtuser = this.$store.getters.xt_user;
304
     var xtuser = this.$store.getters.xt_user;
278
     this.orgname = xtuser.org.org_name;
305
     this.orgname = xtuser.org.org_name;
279
     var data = new Date();
306
     var data = new Date();
281
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
308
       data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
282
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
309
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
283
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
310
     this.printDate = data.getFullYear() + "-" + month + "-" + date;
284
-
285
-  },
286
-  watch: {
287
-    patientid: function (val) {
288
-      console.log("val22332323", val);
289
-    },
290
   },
311
   },
291
 };
312
 };
292
 </script>
313
 </script>
316
 .infoTitle div {
337
 .infoTitle div {
317
   width: 200px;
338
   width: 200px;
318
 }
339
 }
340
+
341
+.infoTitle .address_slot {
342
+  width: 400px;
343
+}
344
+.infoTitle .name_slot {
345
+  width: 250px;
346
+}
347
+
319
 .otherInfo {
348
 .otherInfo {
320
   display: flex;
349
   display: flex;
321
   margin-top: 10px;
350
   margin-top: 10px;
351
   text-align: left;
380
   text-align: left;
352
 }
381
 }
353
 
382
 
354
-.record_Title{
355
-    display: flex;
356
-    margin-top:10px;
357
-    line-height: 24px;
358
-    padding:0 10px;
359
-    border-bottom: 2px solid #000;
383
+.record_Title {
384
+  display: flex;
385
+  margin-top: 10px;
386
+  line-height: 24px;
387
+  padding: 0 10px;
388
+  border-bottom: 2px solid #000;
360
 }
389
 }
361
 
390
 
362
-.record_Title div{
391
+.record_Title div {
363
   width: 200px;
392
   width: 200px;
364
 }
393
 }
365
 </style>
394
 </style>