Browse Source

12月31 打印单

yq1 1 week ago
parent
commit
4122740c33
1 changed files with 79 additions and 131 deletions
  1. 79 131
      src/xt_pages/user/courseOfDisease_new.vue

+ 79 - 131
src/xt_pages/user/courseOfDisease_new.vue View File

84
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
84
               <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
85
                 病程内容
85
                 病程内容
86
               </span>
86
               </span>
87
-              <div style="display:flex;">
88
-                <!-- <div>
89
-                  取值时间:
90
-                  <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
91
-                    <el-option
92
-                      v-for="item in quzhi_options"
93
-                      :key="item.value"
94
-                      :label="item.label"
95
-                      :value="item.value">
96
-                    </el-option>
97
-                  </el-select>
98
-                </div>
99
-                <div style="margin:0 10px">
100
-                  <el-date-picker
101
-                  @change="changStartDate"
102
-                    v-model="start_date"
103
-                    type="date"
104
-                    value-format="yyyy-MM-dd"
105
-                    placeholder="选择日期"
106
-                    style="width: 150px;">
107
-                  </el-date-picker>
108
-                  <span>-</span>
109
-                  <el-date-picker
110
-                  @change="changEndDate"
111
-                    v-model="end_date"
112
-                    type="date"
113
-                    value-format="yyyy-MM-dd"
114
-                    placeholder="选择日期"
115
-                    style="width: 150px;">
116
-                  </el-date-picker>
117
-                </div> -->
118
-                <!-- <div>
119
-                  <el-button type="primary" size="small" @click="autotext_click">
120
-                    生成
121
-                  </el-button>
122
-                  <el-button type="primary" size="small" @click="auto_dialog=false">
123
-                    取消
124
-                  </el-button>
125
-                </div> -->
126
-              </div>
127
               <div style="margin: 10px 0;">
87
               <div style="margin: 10px 0;">
128
                 <el-button type="primary" size="small" @click="template_click">
88
                 <el-button type="primary" size="small" @click="template_click">
129
                   {{ add_index ==0 ? '设置模板' : '模板库' }}
89
                   {{ add_index ==0 ? '设置模板' : '模板库' }}
162
         </div>
122
         </div>
163
       </div>
123
       </div>
164
 
124
 
165
-
166
       <el-dialog
125
       <el-dialog
167
         title="设置模板"
126
         title="设置模板"
168
         :visible.sync="template_dialog"
127
         :visible.sync="template_dialog"
584
               医嘱类型:
543
               医嘱类型:
585
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
544
               <el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
586
                 <el-option
545
                 <el-option
587
-                
546
+
588
                   v-for="item in type_option"
547
                   v-for="item in type_option"
589
                   :key="item.value"
548
                   :key="item.value"
590
                   :label="item.label"
549
                   :label="item.label"
823
     getPatientAdviceList,
782
     getPatientAdviceList,
824
     getPatientInspectionList,
783
     getPatientInspectionList,
825
     getInspectionByProjectId,
784
     getInspectionByProjectId,
826
-    
785
+
827
   } from '@/api/patient'
786
   } from '@/api/patient'
828
   import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
787
   import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
829
   import { parseTime } from '@/utils'
788
   import { parseTime } from '@/utils'
1275
         }
1234
         }
1276
       },
1235
       },
1277
       toAdviceContentPint(val){
1236
       toAdviceContentPint(val){
1278
-       
1237
+
1279
         console.log('blood_context',this.blood_context,this.template_content);
1238
         console.log('blood_context',this.blood_context,this.template_content);
1280
         this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
1239
         this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
1281
         this.$refs.editor.contents = this.template_content
1240
         this.$refs.editor.contents = this.template_content
1282
         const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
1241
         const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
1283
-        console.log('document.getElementsByClassName',);
1284
-       
1242
+
1285
             this.$nextTick(()=>{
1243
             this.$nextTick(()=>{
1286
                 const new_list=document.createElement('table')
1244
                 const new_list=document.createElement('table')
1287
                 new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
1245
                 new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
1331
                     let new_td8 = document.createElement('td');
1289
                     let new_td8 = document.createElement('td');
1332
                     let new_td9 = document.createElement('td');
1290
                     let new_td9 = document.createElement('td');
1333
                     let new_td10 = document.createElement('td');
1291
                     let new_td10 = document.createElement('td');
1334
-                    new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time) 
1292
+                    new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time)
1335
                     new_td2.textContent =this.adviceList[i].advice_name
1293
                     new_td2.textContent =this.adviceList[i].advice_name
1336
                     new_td3.textContent =this.adviceList[i].advice_desc
1294
                     new_td3.textContent =this.adviceList[i].advice_desc
1337
                     new_td4.textContent =this.adviceList[i].single_dose
1295
                     new_td4.textContent =this.adviceList[i].single_dose
1339
                     new_td6.textContent =this.adviceList[i].execution_frequency
1297
                     new_td6.textContent =this.adviceList[i].execution_frequency
1340
                     new_td7.textContent =this.adviceList[i].remark
1298
                     new_td7.textContent =this.adviceList[i].remark
1341
                     if(this.adviceList[i].advice_type == 1){
1299
                     if(this.adviceList[i].advice_type == 1){
1342
-                      new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time) 
1300
+                      new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time)
1343
                     }else{
1301
                     }else{
1344
-                      new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time) 
1302
+                      new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time)
1345
                     }
1303
                     }
1346
                     new_td9.textContent =this.adviceList[i].stop_reason
1304
                     new_td9.textContent =this.adviceList[i].stop_reason
1347
-                    new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor) 
1305
+                    new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor)
1348
                     newListItem2.appendChild(new_td1);
1306
                     newListItem2.appendChild(new_td1);
1349
                     newListItem2.appendChild(new_td2);
1307
                     newListItem2.appendChild(new_td2);
1350
                     newListItem2.appendChild(new_td3);
1308
                     newListItem2.appendChild(new_td3);
1357
                     newListItem2.appendChild(new_td10);
1315
                     newListItem2.appendChild(new_td10);
1358
                     new_list.appendChild(newListItem2)
1316
                     new_list.appendChild(newListItem2)
1359
                  }
1317
                  }
1360
-               } 
1318
+               }
1361
 
1319
 
1362
                if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
1320
                if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
1363
                 for(let i in this.adviceNewList){
1321
                 for(let i in this.adviceNewList){
1372
                     let new_td8 = document.createElement('td');
1330
                     let new_td8 = document.createElement('td');
1373
                     let new_td9 = document.createElement('td');
1331
                     let new_td9 = document.createElement('td');
1374
                     let new_td10 = document.createElement('td');
1332
                     let new_td10 = document.createElement('td');
1375
-                    new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time) 
1333
+                    new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time)
1376
                     new_td2.textContent =this.adviceNewList[i].advice_name
1334
                     new_td2.textContent =this.adviceNewList[i].advice_name
1377
                     new_td3.textContent =this.adviceNewList[i].advice_desc
1335
                     new_td3.textContent =this.adviceNewList[i].advice_desc
1378
                     new_td4.textContent =this.adviceNewList[i].single_dose
1336
                     new_td4.textContent =this.adviceNewList[i].single_dose
1380
                     new_td6.textContent =this.adviceNewList[i].execution_frequency
1338
                     new_td6.textContent =this.adviceNewList[i].execution_frequency
1381
                     new_td7.textContent =this.adviceNewList[i].remark
1339
                     new_td7.textContent =this.adviceNewList[i].remark
1382
                     if(this.adviceNewList[i].advice_type == 1){
1340
                     if(this.adviceNewList[i].advice_type == 1){
1383
-                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time) 
1341
+                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time)
1384
                     }else{
1342
                     }else{
1385
-                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time) 
1343
+                      new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time)
1386
                     }
1344
                     }
1387
                     new_td9.textContent =this.adviceNewList[i].stop_reason
1345
                     new_td9.textContent =this.adviceNewList[i].stop_reason
1388
-                    new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor) 
1346
+                    new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor)
1389
                     newListItem2.appendChild(new_td1);
1347
                     newListItem2.appendChild(new_td1);
1390
                     newListItem2.appendChild(new_td2);
1348
                     newListItem2.appendChild(new_td2);
1391
                     newListItem2.appendChild(new_td3);
1349
                     newListItem2.appendChild(new_td3);
1399
                     new_list.appendChild(newListItem2)
1357
                     new_list.appendChild(newListItem2)
1400
                  }
1358
                  }
1401
                }
1359
                }
1402
-            
1360
+
1403
               const cont = iframe.getElementsByClassName('advice_table')[0]
1361
               const cont = iframe.getElementsByClassName('advice_table')[0]
1404
               cont.appendChild(new_list)
1362
               cont.appendChild(new_list)
1405
               console.log('iframe.appendChild(new_list)',cont);
1363
               console.log('iframe.appendChild(new_list)',cont);
1406
               console.log('this.advice_context',this.advice_context);
1364
               console.log('this.advice_context',this.advice_context);
1407
             })
1365
             })
1408
 
1366
 
1409
-        
1410
         this.advice_dialog = false
1367
         this.advice_dialog = false
1411
       },
1368
       },
1412
       getCurrentChangeOne(val){
1369
       getCurrentChangeOne(val){
1442
      rowclick(){
1399
      rowclick(){
1443
 
1400
 
1444
       },
1401
       },
1445
-     
1402
+
1446
       saveTemplate(){
1403
       saveTemplate(){
1447
 
1404
 
1448
         var params = {
1405
         var params = {
1540
           content:this.new_content,
1497
           content:this.new_content,
1541
           admin_user_id:this.admin_user_id,
1498
           admin_user_id:this.admin_user_id,
1542
         }
1499
         }
1543
-        console.log("params",params)
1500
+        console.log("params",params.content)
1544
         createNewCourseOfDiseaseRecord(params).then(response => {
1501
         createNewCourseOfDiseaseRecord(params).then(response => {
1545
          if(response.data.state == 1){
1502
          if(response.data.state == 1){
1546
            var msg = response.data.data.msg
1503
            var msg = response.data.data.msg
1698
         console.log("start_time==============",params)
1655
         console.log("start_time==============",params)
1699
        getAutoPatientContent(params).then(response=>{
1656
        getAutoPatientContent(params).then(response=>{
1700
           if(response.data.state == 1){
1657
           if(response.data.state == 1){
1701
-
1702
             var prescription =  response.data.data.prescription
1658
             var prescription =  response.data.data.prescription
1703
             this.prescription=[]
1659
             this.prescription=[]
1704
             this.prescription = prescription
1660
             this.prescription = prescription
2245
           kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
2201
           kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
2246
         }
2202
         }
2247
 
2203
 
2248
-
2249
-
2250
-
2251
           let sodiumObj = {}
2204
           let sodiumObj = {}
2252
           let sodiumStr =""
2205
           let sodiumStr =""
2253
 
2206
 
2351
 
2304
 
2352
           dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
2305
           dialysisIrrigationStr =  JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
2353
 
2306
 
2354
-      
2355
-
2356
         //  医嘱
2307
         //  医嘱
2357
         if(this.longAdvice!=null && this.longAdvice.length>0){
2308
         if(this.longAdvice!=null && this.longAdvice.length>0){
2358
             for(let i=0;i<this.longAdvice.length;i++){
2309
             for(let i=0;i<this.longAdvice.length;i++){
2372
             }
2323
             }
2373
         }
2324
         }
2374
 
2325
 
2375
-         
2376
         //抗凝剂
2326
         //抗凝剂
2377
 
2327
 
2378
         var anticoagulant_str =""
2328
         var anticoagulant_str =""
2379
         if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
2329
         if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
2380
-           
2330
+
2381
             for(let i=0;i<this.groupPrescriptionList.length;i++){
2331
             for(let i=0;i<this.groupPrescriptionList.length;i++){
2382
                anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
2332
                anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
2383
             }
2333
             }
2394
              cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2344
              cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
2395
           }
2345
           }
2396
         }
2346
         }
2397
-        
2347
+
2398
         pingjun_weight = (cha_weight/befor_total).toFixed(2)
2348
         pingjun_weight = (cha_weight/befor_total).toFixed(2)
2399
-       
2349
+
2400
         //透后凝血
2350
         //透后凝血
2401
         var cruorNewArr = []
2351
         var cruorNewArr = []
2402
         if(this.afterList!=null && this.afterList.length>0){
2352
         if(this.afterList!=null && this.afterList.length>0){
2404
             cruorNewArr.push(this.afterList[i].cruor)
2354
             cruorNewArr.push(this.afterList[i].cruor)
2405
            }
2355
            }
2406
         }
2356
         }
2407
-      
2357
+
2408
        let dialysisCrruorObj = {}
2358
        let dialysisCrruorObj = {}
2409
         let dialysisCrruorStr = ""
2359
         let dialysisCrruorStr = ""
2410
         if(cruorNewArr!=null && cruorNewArr.length>0){
2360
         if(cruorNewArr!=null && cruorNewArr.length>0){
2412
             dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
2362
             dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
2413
             })
2363
             })
2414
           }
2364
           }
2415
-      
2365
+
2416
 
2366
 
2417
         dialysisCrruorStr =  JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
2367
         dialysisCrruorStr =  JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
2418
-       
2368
+
2419
         //监测
2369
         //监测
2420
         var blood_flow_volume_total = 0
2370
         var blood_flow_volume_total = 0
2421
         var ultrafiltration_volume_total = 0
2371
         var ultrafiltration_volume_total = 0
2441
           pingjun_ultrafiltration_volume_total = ""
2391
           pingjun_ultrafiltration_volume_total = ""
2442
         }
2392
         }
2443
         pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
2393
         pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
2444
-        if(pingjun_ultrafiltration_rate_total == "NaN"){ 
2394
+        if(pingjun_ultrafiltration_rate_total == "NaN"){
2445
           pingjun_ultrafiltration_rate_total = ""
2395
           pingjun_ultrafiltration_rate_total = ""
2446
         }
2396
         }
2447
         var dry_weight_str = ""
2397
         var dry_weight_str = ""
2450
            for(let i=0;i<this.dryweightList.length;i++){
2400
            for(let i=0;i<this.dryweightList.length;i++){
2451
             dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
2401
             dry_weight_str =  this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
2452
            }
2402
            }
2453
-        } 
2403
+        }
2454
 
2404
 
2455
         //血管通路
2405
         //血管通路
2456
         var vascularAccess_str = ""
2406
         var vascularAccess_str = ""
2457
         var created_time = ""
2407
         var created_time = ""
2458
-      
2408
+
2459
         if(this.patientVascularAccess!=undefined){
2409
         if(this.patientVascularAccess!=undefined){
2460
           vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
2410
           vascularAccess_str  = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
2461
           created_time  = this.getTime(this.patientVascularAccess.first_start_time)
2411
           created_time  = this.getTime(this.patientVascularAccess.first_start_time)
2670
                 jiancDoc.appendChild(newList)
2620
                 jiancDoc.appendChild(newList)
2671
             for(let i in this.Inspect){
2621
             for(let i in this.Inspect){
2672
               let newList1 = document.createElement('p');
2622
               let newList1 = document.createElement('p');
2673
-              const child1 = document.createElement('p')
2674
-              const child2 = document.createElement('p')
2675
-              const child3 = document.createElement('p')
2623
+              const child1 = document.createElement('span')
2624
+              const child2 = document.createElement('span')
2676
               newList1.appendChild(child1);
2625
               newList1.appendChild(child1);
2677
               newList1.appendChild(child2);
2626
               newList1.appendChild(child2);
2678
-              newList1.appendChild(child3);
2679
               newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2627
               newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2680
               child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2628
               child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2681
-              child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
2682
-              child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2629
+              child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
2630
+              // child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2683
 
2631
 
2684
               let newListItem1 = document.createElement('span');
2632
               let newListItem1 = document.createElement('span');
2685
               newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2633
               newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2691
               child1.appendChild(newListItem2);
2639
               child1.appendChild(newListItem2);
2692
               for(let j in this.Inspect[i].left){
2640
               for(let j in this.Inspect[i].left){
2693
                 let newListItem3 = document.createElement('span');
2641
                 let newListItem3 = document.createElement('span');
2694
-                newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2642
+                newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2695
                 let newListItem4 = document.createElement('span');
2643
                 let newListItem4 = document.createElement('span');
2696
-                newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;display: inline-block;padding: 5px 0;'
2644
+                newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2697
                 newListItem3.textContent = this.Inspect[i].left[j].item_name;
2645
                 newListItem3.textContent = this.Inspect[i].left[j].item_name;
2698
                 newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2646
                 newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2699
                 child2.appendChild(newListItem3);
2647
                 child2.appendChild(newListItem3);
2701
               }
2649
               }
2702
               for(let x in this.Inspect[i].right){
2650
               for(let x in this.Inspect[i].right){
2703
                 let newListItem5 = document.createElement('span');
2651
                 let newListItem5 = document.createElement('span');
2704
-                newListItem5.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2652
+                newListItem5.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2705
                 let newListItem6 = document.createElement('span');
2653
                 let newListItem6 = document.createElement('span');
2706
-                newListItem6.style.cssText= 'width: 50%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
2654
+                newListItem6.style.cssText= 'width: 25%;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
2707
                 newListItem5.textContent = this.Inspect[i].right[x].item_name;
2655
                 newListItem5.textContent = this.Inspect[i].right[x].item_name;
2708
                 newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2656
                 newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2709
-                child3.appendChild(newListItem5);
2710
-                child3.appendChild(newListItem6);
2657
+                child2.appendChild(newListItem5);
2658
+                child2.appendChild(newListItem6);
2659
+
2711
               }
2660
               }
2712
               jiancDoc.appendChild(newList1)
2661
               jiancDoc.appendChild(newList1)
2713
             }
2662
             }
2798
                   jiancDoc1.appendChild(newList)
2747
                   jiancDoc1.appendChild(newList)
2799
               for(let i in this.Inspect){
2748
               for(let i in this.Inspect){
2800
                 let newList1 = document.createElement('p');
2749
                 let newList1 = document.createElement('p');
2801
-                const child1 = document.createElement('p')
2802
-                const child2 = document.createElement('p')
2803
-                const child3 = document.createElement('p')
2750
+                const child1 = document.createElement('span')
2751
+                const child2 = document.createElement('span')
2752
+                // const child3 = document.createElement('span')
2804
                 newList1.appendChild(child1);
2753
                 newList1.appendChild(child1);
2805
                 newList1.appendChild(child2);
2754
                 newList1.appendChild(child2);
2806
-                newList1.appendChild(child3);
2755
+                // newList1.appendChild(child3);
2807
                 newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2756
                 newList1.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
2808
                 child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2757
                 child1.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;'
2809
-                child2.style.cssText= 'width: 40%;display: inline-block;border-right: 1px solid black;display: flex;flex-wrap: wrap;'
2810
-                child3.style.cssText= 'width: 40%;display: inline-block;display: flex;flex-wrap: wrap;'
2758
+                child2.style.cssText= 'width: 80%;display: inline-block;display: flex;flex-wrap: wrap;'
2811
 
2759
 
2812
                 let newListItem1 = document.createElement('span');
2760
                 let newListItem1 = document.createElement('span');
2813
                 newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2761
                 newListItem1.style.cssText= 'flex:1;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2819
                 child1.appendChild(newListItem2);
2767
                 child1.appendChild(newListItem2);
2820
                 for(let j in this.Inspect[i].left){
2768
                 for(let j in this.Inspect[i].left){
2821
                   let newListItem3 = document.createElement('span');
2769
                   let newListItem3 = document.createElement('span');
2822
-                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2770
+                  newListItem3.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2823
                   let newListItem4 = document.createElement('span');
2771
                   let newListItem4 = document.createElement('span');
2824
-                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:50%;box-sizing: border-box;display: inline-block;padding: 5px 0;'
2772
+                  newListItem4.style.cssText= 'border-bottom: 1px solid black;width:25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
2825
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
2773
                   newListItem3.textContent = this.Inspect[i].left[j].item_name;
2826
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2774
                   newListItem4.textContent = this.Inspect[i].left[j].inspect_value;
2827
                   child2.appendChild(newListItem3);
2775
                   child2.appendChild(newListItem3);
2829
                 }
2777
                 }
2830
                 for(let x in this.Inspect[i].right){
2778
                 for(let x in this.Inspect[i].right){
2831
                   let newListItem5 = document.createElement('span');
2779
                   let newListItem5 = document.createElement('span');
2832
-                  newListItem5.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2780
+                  newListItem5.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-right: 1px solid black;border-bottom: 1px solid black;'
2833
                   let newListItem6 = document.createElement('span');
2781
                   let newListItem6 = document.createElement('span');
2834
-                  newListItem6.style.cssText= 'width: 50%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;'
2782
+                  newListItem6.style.cssText= 'width: 25%;box-sizing: border-box;display: inline-block;padding: 5px 0;border-bottom: 1px solid black;border-right: 1px solid black;'
2835
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
2783
                   newListItem5.textContent = this.Inspect[i].right[x].item_name;
2836
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2784
                   newListItem6.textContent = this.Inspect[i].right[x].inspect_value;
2837
-                  child3.appendChild(newListItem5);
2838
-                  child3.appendChild(newListItem6);
2785
+                  child2.appendChild(newListItem5);
2786
+                  child2.appendChild(newListItem6);
2839
                 }
2787
                 }
2840
                 jiancDoc1.appendChild(newList1)
2788
                 jiancDoc1.appendChild(newList1)
2841
               }
2789
               }
2884
           }
2832
           }
2885
         })
2833
         })
2886
          this.AuToShow = true
2834
          this.AuToShow = true
2887
-      
2835
+
2888
        }
2836
        }
2889
        })
2837
        })
2890
       },
2838
       },
3447
         console.log('血压',this.bloodRows);
3395
         console.log('血压',this.bloodRows);
3448
       },
3396
       },
3449
       selectionchange2(val){
3397
       selectionchange2(val){
3450
-       
3398
+
3451
         this.summaryRows = val
3399
         this.summaryRows = val
3452
         this.summary_context=""
3400
         this.summary_context=""
3453
         if(val!=null){
3401
         if(val!=null){
3469
         console.log('透析小结',this.weightRows);
3417
         console.log('透析小结',this.weightRows);
3470
       },
3418
       },
3471
       selectionchange4(val){
3419
       selectionchange4(val){
3472
-        
3420
+
3473
         this.optionRows = val
3421
         this.optionRows = val
3474
         this.getoption(val)
3422
         this.getoption(val)
3475
         console.log('透析小结',this.weightRows);
3423
         console.log('透析小结',this.weightRows);
3476
       },
3424
       },
3477
       selectionchange5(val){
3425
       selectionchange5(val){
3478
-       
3426
+
3479
         this.adviceRows = val
3427
         this.adviceRows = val
3480
         this.getNewPatientAdviceList(val)
3428
         this.getNewPatientAdviceList(val)
3481
       },
3429
       },
3514
         this.weight_context = `${arr.join('<br/>')}`
3462
         this.weight_context = `${arr.join('<br/>')}`
3515
       },
3463
       },
3516
       getoption(val){
3464
       getoption(val){
3517
-       
3465
+
3518
         var newArr = []
3466
         var newArr = []
3519
         for(let i=0;i<this.systemPrescritpionList.length;i++){
3467
         for(let i=0;i<this.systemPrescritpionList.length;i++){
3520
           for(let j=0;j<val.length;j++){
3468
           for(let j=0;j<val.length;j++){
3522
               newArr.push(this.systemPrescritpionList[i])
3470
               newArr.push(this.systemPrescritpionList[i])
3523
             }
3471
             }
3524
           }
3472
           }
3525
-         
3473
+
3526
         }
3474
         }
3527
         const arr= []
3475
         const arr= []
3528
-       
3476
+
3529
         if(newArr.length>0){
3477
         if(newArr.length>0){
3530
           for(let i=0;i<newArr.length;i++){
3478
           for(let i=0;i<newArr.length;i++){
3531
             const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
3479
             const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
3593
         })
3541
         })
3594
       },
3542
       },
3595
       option_click(val){
3543
       option_click(val){
3596
-   
3544
+
3597
         this.option_dialog =true
3545
         this.option_dialog =true
3598
         // this.start_date1 = this.timeForMat(7)
3546
         // this.start_date1 = this.timeForMat(7)
3599
         // this.end_date1 = this.getTime(new Date())
3547
         // this.end_date1 = this.getTime(new Date())
3620
       hospital_click(){
3568
       hospital_click(){
3621
         const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
3569
         const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
3622
     <p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
3570
     <p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
3623
-       
3571
+
3624
         this.$refs.editor.contents =  this.$refs.editor.contents + text
3572
         this.$refs.editor.contents =  this.$refs.editor.contents + text
3625
       },
3573
       },
3626
       Inspect_click(){
3574
       Inspect_click(){
3635
 
3583
 
3636
       },
3584
       },
3637
       childclick(i){
3585
       childclick(i){
3638
-      
3586
+
3639
           var params = {
3587
           var params = {
3640
             patient_id:i.patient_id,
3588
             patient_id:i.patient_id,
3641
             project_id:i.project_id,
3589
             project_id:i.project_id,
3651
                 if(inspection[i].inspect_value!=""){
3599
                 if(inspection[i].inspect_value!=""){
3652
                   inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
3600
                   inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
3653
                 }
3601
                 }
3654
-               
3602
+
3655
               }
3603
               }
3656
             }
3604
             }
3657
             this.inspect_context = inspection_str
3605
             this.inspect_context = inspection_str
3658
-            
3606
+
3659
           }
3607
           }
3660
         })
3608
         })
3661
         // // const inspect_arr = []
3609
         // // const inspect_arr = []
3771
            if(response.data.state == 1){
3719
            if(response.data.state == 1){
3772
               this.systemPrescritpionList = []
3720
               this.systemPrescritpionList = []
3773
               var systemPrescritpionList =  response.data.data.prescription
3721
               var systemPrescritpionList =  response.data.data.prescription
3774
-              
3722
+
3775
               if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
3723
               if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
3776
                  for(let i=0;i<systemPrescritpionList.length;i++){
3724
                  for(let i=0;i<systemPrescritpionList.length;i++){
3777
                    systemPrescritpionList[i].mode_name = ""
3725
                    systemPrescritpionList[i].mode_name = ""
3797
         return name
3745
         return name
3798
       },
3746
       },
3799
       getPatientAdviceList(){
3747
       getPatientAdviceList(){
3800
-        var ids = this.newIds.join()  
3748
+        var ids = this.newIds.join()
3801
         var params = {
3749
         var params = {
3802
           start_time:this.start_date1,
3750
           start_time:this.start_date1,
3803
           end_time:this.end_date1,
3751
           end_time:this.end_date1,
3814
         })
3762
         })
3815
       },
3763
       },
3816
       getNewPatientAdviceList(val){
3764
       getNewPatientAdviceList(val){
3817
-        
3765
+
3818
          var newArr= []
3766
          var newArr= []
3819
          for(let i=0;i<val.length;i++){
3767
          for(let i=0;i<val.length;i++){
3820
            for(let j=0;j<this.adviceList.length;j++){
3768
            for(let j=0;j<this.adviceList.length;j++){
3823
              }
3771
              }
3824
            }
3772
            }
3825
          }
3773
          }
3826
-         
3827
-         
3774
+
3775
+
3828
          this.adviceNewList = []
3776
          this.adviceNewList = []
3829
          this.adviceNewList = newArr
3777
          this.adviceNewList = newArr
3830
          this.all_select = 1
3778
          this.all_select = 1
3859
           }
3807
           }
3860
         getPatientInspectionList(params).then(response=>{
3808
         getPatientInspectionList(params).then(response=>{
3861
            if(response.data.state == 1){
3809
            if(response.data.state == 1){
3862
-             
3810
+
3863
              var groupList = response.data.data.groupList
3811
              var groupList = response.data.data.groupList
3864
              var inspection = response.data.data.inspection
3812
              var inspection = response.data.data.inspection
3865
              this.inspectionList = inspection
3813
              this.inspectionList = inspection
3866
-            
3814
+
3867
              if(groupList.length!=null && groupList.length>0){
3815
              if(groupList.length!=null && groupList.length>0){
3868
                 for(let i=0;i<groupList.length;i++){
3816
                 for(let i=0;i<groupList.length;i++){
3869
                   groupList[i].child = []
3817
                   groupList[i].child = []
3874
                   }
3822
                   }
3875
                 }
3823
                 }
3876
              }
3824
              }
3877
-        
3825
+
3878
              for(let i=0;i<groupList.length;i++){
3826
              for(let i=0;i<groupList.length;i++){
3879
                for(let j=0;j<groupList[i].child.length;j++){
3827
                for(let j=0;j<groupList[i].child.length;j++){
3880
-                  groupList[i].child =this.getInspection(groupList[i].child) 
3828
+                  groupList[i].child =this.getInspection(groupList[i].child)
3881
                }
3829
                }
3882
              }
3830
              }
3883
-      
3884
-             this.newInspectionList = groupList 
3885
-          
3831
+
3832
+             this.newInspectionList = groupList
3833
+
3886
            }
3834
            }
3887
         })
3835
         })
3888
       },
3836
       },
3899
           return tempArr;
3847
           return tempArr;
3900
       },
3848
       },
3901
       changeInspetion(){
3849
       changeInspetion(){
3902
-      
3850
+
3903
         for(let i=0;i<this.newInspectionList.length;i++){
3851
         for(let i=0;i<this.newInspectionList.length;i++){
3904
            this.newInspectionList[i].childOne =[]
3852
            this.newInspectionList[i].childOne =[]
3905
           for(let j=0;j<this.inspectionList.length;j++){
3853
           for(let j=0;j<this.inspectionList.length;j++){
3908
             }
3856
             }
3909
           }
3857
           }
3910
         }
3858
         }
3911
-       
3859
+
3912
          var new_inspection_str =""
3860
          var new_inspection_str =""
3913
         if(this.newInspectionList!=null&& this.newInspectionList.length>0){
3861
         if(this.newInspectionList!=null&& this.newInspectionList.length>0){
3914
            for(let i=0;i<this.newInspectionList.length;i++){
3862
            for(let i=0;i<this.newInspectionList.length;i++){
3918
                 if(this.newInspectionList[i].childOne[j].inspect_value!=""){
3866
                 if(this.newInspectionList[i].childOne[j].inspect_value!=""){
3919
                   new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
3867
                   new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
3920
                 }
3868
                 }
3921
-                
3869
+
3922
               }
3870
               }
3923
             }
3871
             }
3924
-              
3925
-           } 
3872
+
3873
+           }
3926
         }
3874
         }
3927
          this.inspect_context = new_inspection_str
3875
          this.inspect_context = new_inspection_str
3928
       },
3876
       },
3929
       toSystemContentPint(){
3877
       toSystemContentPint(){
3930
-       
3878
+
3931
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3879
         this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
3932
         this.option_dialog = false
3880
         this.option_dialog = false
3933
       },
3881
       },
3934
-    
3882
+
3935
 
3883
 
3936
     },
3884
     },
3937
     beforeMount(){
3885
     beforeMount(){
3940
     mounted(){
3888
     mounted(){
3941
 
3889
 
3942
     },
3890
     },
3943
-  
3891
+
3944
 
3892
 
3945
   }
3893
   }
3946
 </script>
3894
 </script>