Преглед на файлове

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

See999 преди 4 години
родител
ревизия
04fffebf13

+ 74 - 51
src/xt_pages/dialysis/components/allSummary.vue Целия файл

@@ -81,11 +81,11 @@
81 81
                 <span v-if="scope.row.mode_id == 15">HD前置换</span>
82 82
                 <span v-if="scope.row.mode_id == 16">HD后置换</span>
83 83
                 <span v-if="scope.row.mode_id == 17">HDF前置换</span>
84
-                <span v-if="scope.row.mode_id == 18"> HDF后置换</span> 
84
+                <span v-if="scope.row.mode_id == 18"> HDF后置换</span>
85 85
               </template>
86 86
             </el-table-column>
87 87
             <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
88
-               <template slot-scope="scope"> 
88
+               <template slot-scope="scope">
89 89
                    <!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
90 90
                      {{scope.row.good_type[index].name}}
91 91
                </template>
@@ -245,13 +245,13 @@ export default {
245 245
           //   }
246 246
           //   if(this.selected_date!=''){
247 247
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
248
-          //   } 
248
+          //   }
249 249
            const params ={
250 250
               start_time:this.start_time,
251 251
               scheduleType: this.scheduleType,
252 252
               partitionType:this.partitionType,
253 253
               limit:this.limit,
254
-              page:this.page, 
254
+              page:this.page,
255 255
               keyword:this.search_input,
256 256
             }
257 257
           getCollectList(params).then(response=>{
@@ -260,22 +260,22 @@ export default {
260 260
                this.tableData = schedule
261 261
                var total = response.data.data.total
262 262
                this.total = total
263
-               var consumables = response.data.data.consumables
264
-               this.consuMables = consumables
263
+              //  var consumables = response.data.data.consumables
264
+              //  this.consuMables = consumables
265 265
                var prescription =  response.data.data.prescription
266 266
                this.prescriptionList = prescription
267 267
                var reducelist =  response.data.data.reducelist
268 268
                this.reduceList = reducelist
269 269
               var good_type = response.data.data.good_type
270
-               console.log("godd_type",good_type)
270
+               // console.log("godd_type",good_type)
271 271
               this.tableName = good_type
272 272
               this.allGoodInfo = response.data.data.dialysis_goods
273
-              console.log("1111111",response.data.data.dialysis_goods)
273
+              // console.log("1111111",response.data.data.dialysis_goods)
274 274
               this.list = []
275 275
               this.good_types = []
276 276
               this.allGoodInfo = []
277 277
               this.good_types.push("姓名")
278
-           
278
+
279 279
              for (let a = 0; a <  response.data.data.good_type.length; a++){
280 280
                 this.good_types.push(response.data.data.good_type[a].type_name)
281 281
               }
@@ -299,7 +299,7 @@ export default {
299 299
 
300 300
 
301 301
              console.log("2222222",arr)
302
-            
302
+
303 303
 
304 304
               let newObj = {
305 305
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
@@ -311,10 +311,10 @@ export default {
311 311
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
312 312
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
313 313
               }
314
-             
314
+
315 315
               this.list.push(newObj)
316 316
               }
317
-              
317
+
318 318
             for (let a = 0; a <  this.list.length; a++){
319 319
               for (let b = 0; b <  this.list[a].good_type.length; b++){
320 320
                 if(this.list[a].good_type[b].id > 0){
@@ -334,7 +334,7 @@ export default {
334 334
           //   }
335 335
           //   if(this.selected_date!=''){
336 336
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
337
-          //   } 
337
+          //   }
338 338
            const params = {
339 339
               startime:this.start_time
340 340
            }
@@ -360,26 +360,26 @@ export default {
360 360
           //   }
361 361
           //   if(this.selected_date!=''){
362 362
           //     this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
363
-          //   } 
363
+          //   }
364 364
            const params ={
365 365
               start_time:this.start_time,
366 366
               scheduleType: this.scheduleType,
367 367
               partitionType:this.partitionType,
368 368
               limit:this.limit,
369
-              page:this.page, 
369
+              page:this.page,
370 370
               keyword:this.search_input,
371 371
             }
372 372
           getCollectList(params).then(response=>{
373 373
              if(response.data.state == 1){
374
-               var schedule = response.data.data.schedule      
374
+               var schedule = response.data.data.schedule
375 375
                this.tableData = schedule
376
-               var total = response.data.data.total      
376
+               var total = response.data.data.total
377 377
                this.total = total
378
-               var consumables = response.data.data.consumables       
378
+               var consumables = response.data.data.consumables
379 379
                this.consuMables = consumables
380
-               var prescription =  response.data.data.prescription        
380
+               var prescription =  response.data.data.prescription
381 381
                this.prescriptionList = prescription
382
-               var reducelist =  response.data.data.reducelist          
382
+               var reducelist =  response.data.data.reducelist
383 383
                this.reduceList = reducelist
384 384
                 var good_type = response.data.data.good_type
385 385
                console.log("godd_type",good_type)
@@ -390,7 +390,7 @@ export default {
390 390
               this.good_types = []
391 391
               this.allGoodInfo = []
392 392
               this.good_types.push("姓名")
393
-           
393
+
394 394
              for (let a = 0; a <  response.data.data.good_type.length; a++){
395 395
                 this.good_types.push(response.data.data.good_type[a].type_name)
396 396
               }
@@ -414,7 +414,7 @@ export default {
414 414
 
415 415
 
416 416
              console.log("2222222",arr)
417
-            
417
+
418 418
 
419 419
               let newObj = {
420 420
                 "patient_id":response.data.data.dialysis_goods[i].patient_id,
@@ -426,10 +426,10 @@ export default {
426 426
                 "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
427 427
                 "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
428 428
               }
429
-             
429
+
430 430
               this.list.push(newObj)
431 431
               }
432
-              
432
+
433 433
             for (let a = 0; a <  this.list.length; a++){
434 434
               for (let b = 0; b <  this.list[a].good_type.length; b++){
435 435
                 if(this.list[a].good_type[b].id > 0){
@@ -438,7 +438,7 @@ export default {
438 438
 
439 439
               }
440 440
               }
441
-              console.log("list22222",this.list) 
441
+              console.log("list22222",this.list)
442 442
              }
443 443
           })
444 444
         },
@@ -472,60 +472,83 @@ export default {
472 472
           if(this.prescriptionList[i].patient_id == id){
473 473
              anticoagulant = this.prescriptionList[i].anticoagulant
474 474
           }
475
-        } 
475
+        }
476 476
        return anticoagulant
477 477
      },
478 478
      getAnticoagulantShouji(id){
479 479
        var shouji = ""
480 480
        for(let i=0;i<this.prescriptionList.length;i++){
481
-         if(this.prescriptionList[i].patient_id == id){
481
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_shouji!=0 ){
482 482
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
483 483
           }
484
-        } 
484
+        }
485 485
        return shouji
486 486
      },
487 487
      getAnticoagulantWeichi(id){
488 488
         var weichi = ""
489 489
         for(let i=0;i<this.prescriptionList.length;i++){
490
-         if(this.prescriptionList[i].patient_id == id){
490
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0){
491 491
             weichi = "("+this.prescriptionList[i].anticoagulant_weichi
492
-        } 
492
+        }
493 493
        return weichi
494 494
       }
495 495
      },
496 496
      getAnticoagulantZongliang(id){
497 497
        var zongliang = ""
498 498
        for(let i=0;i<this.prescriptionList.length;i++){
499
-         if(this.prescriptionList[i].patient_id == id){
499
+         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_zongliang!=0){
500 500
             zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
501 501
           }
502
-        } 
502
+        }
503 503
        return zongliang
504 504
      },
505
-      getGoodUserInfo(good_type_id,good_user,last_good_user) {
506
-        if (good_user != null && good_user.length > 0) {
507
-          let desc = ""
508
-          for (let b = 0; b < good_user.length; b++){
509
-            if(good_type_id == good_user[b].good_type_id)
510
-              desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
-          }
512
-         
505
+      // getGoodUserInfo(good_type_id,good_user,last_good_user) {
506
+      //   if (good_user != null && good_user.length > 0) {
507
+      //     let desc = ""
508
+      //     for (let b = 0; b < good_user.length; b++){
509
+      //       if(good_type_id == good_user[b].good_type_id)
510
+      //         desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
+      //     }
513 512
 
514
-          return desc
515
-        } else if (good_user != null && good_user.length <= 0) {
516
-          if (last_good_user != null && last_good_user.length > 0) {
517
-            let desc = ""
518
-            for (let b = 0; b < last_good_user.length; b++){
519
-              if(good_type_id == last_good_user[b].good_type_id)
520
-                desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
-            }
522
-          
523 513
 
524
-            return desc
514
+      //     return desc
515
+      //   } else if (good_user != null && good_user.length <= 0) {
516
+      //     if (last_good_user != null && last_good_user.length > 0) {
517
+      //       let desc = ""
518
+      //       for (let b = 0; b < last_good_user.length; b++){
519
+      //         if(good_type_id == last_good_user[b].good_type_id)
520
+      //           desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
+      //       }
522
+
523
+
524
+      //       return desc
525
+
526
+      //     }
527
+      //     return ""
528
+      //   }
529
+      // },
525 530
 
531
+       getGoodUserInfo(good_type_id, good_user, last_good_user, good_user_detail, last_good_user_detail) {
532
+        if (good_user != null && good_user.length > 0) {
533
+          let desc = ""
534
+          for (let b = 0; b < good_user.length; b++) {
535
+            if (good_type_id == good_user[b].good_type_id)
536
+              desc = desc + " " + good_user[b].info.specification_name + "*" + good_user[b].count
526 537
           }
527
-          return ""
538
+          return desc
539
+          // } else if (good_user.length <= 0) {
540
+          //   if (last_good_user != null && last_good_user.length > 0) {
541
+          //     let desc = ""
542
+          //     for (let b = 0; b < last_good_user.length; b++){
543
+          //       if(good_type_id == last_good_user[b].good_type_id)
544
+          //         desc = desc + " " + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
545
+          //     }
546
+          //     return desc
547
+          //
548
+          //   }
549
+          //   return ""
528 550
         }
551
+        return ""
529 552
       },
530 553
     }
531 554
 }

+ 137 - 8
src/xt_pages/dialysis/components/dialysisParameters.vue Целия файл

@@ -56,17 +56,19 @@
56 56
             </el-table-column>
57 57
             <el-table-column align="center" fixed  label="姓名" width="80">
58 58
                <template slot-scope="scope">
59
-                   {{scope.row.patient.name?scope.row.patient.name:""}}
59
+                   <!-- {{scope.row.patient.name?scope.row.patient.name:""}} -->
60
+                   {{scope.row.name?scope.row.name:""}}
60 61
                </template>
61 62
             </el-table-column>
62 63
             <el-table-column align="center"  label="透析模式" width="90">
63 64
                 <template slot-scope="scope">
64
-                   {{scope.row.treatment_mode.name?scope.row.treatment_mode.name:""}}
65
+                   <!-- {{scope.row.treatment_mode.name?scope.row.treatment_mode.name:""}} -->
66
+                   {{scope.row.mode_id}}
65 67
                 </template>
66 68
             </el-table-column>
67 69
             <el-table-column align="center" :label="'上次透后体重\n(kg)'" width="110">
68 70
                 <template slot-scope="scope">
69
-                  {{getLastWeight(scope.row.patient.id)?getLastWeight(scope.row.patient.id):""}}
71
+                  {{getLastWeight(scope.row.patient_id)?getLastWeight(scope.row.patient_id):""}}
70 72
                 </template>
71 73
             </el-table-column>
72 74
             <el-table-column align="center" :label="'透前体重\n(kg)'" width="100">
@@ -256,11 +258,72 @@ export default {
256 258
           getDialysisParameters(params).then(response=>{
257 259
              if(response.data.state == 1){
258 260
                 var schedule = response.data.data.schedule
259
-                // console.log("schedule",schedule)
261
+            
260 262
                 this.tableData = schedule
261 263
                 var total = response.data.data.total
262
-
263 264
                 this.total = total
265
+                var patient = response.data.data.patient
266
+                 for(let i=0;i<patient.length;i++){
267
+                  if(patient[i].mode_id == 1){
268
+                    patient[i].mode_id = "HD"
269
+                  }
270
+                  if(patient[i].mode_id == 2){
271
+                     patient[i].mode_id = "HDF"
272
+                  }
273
+                  if(patient[i].mode_id == 3){
274
+                     patient[i].mode_id = "HD+HP"
275
+                  }
276
+                  if(patient[i].mode_id == 4){
277
+                     patient[i].mode_id = "HP"
278
+                  }
279
+                  if(patient[i].mode_id == 5){
280
+                     patient[i].mode_id = "HF"
281
+                  }
282
+                  if(patient[i].mode_id == 6){
283
+                     patient[i].mode_id = "SCUF"
284
+                  }
285
+                  if(patient[i].mode_id == 7){
286
+                     patient[i].mode_id = "IUF"
287
+                  }
288
+                  if(patient[i].mode_id == 8){
289
+                     patient[i].mode_id = "HFHD"
290
+                  }
291
+                  if(patient[i].mode_id == 9){
292
+                     patient[i].mode_id = "HFHD+HP"
293
+                  }
294
+                  if(patient[i].mode_id == 10){
295
+                     patient[i].mode_id = "PHF"
296
+                  }
297
+                  if(patient[i].mode_id == 11){
298
+                    patient[i].mode_id = "HFR"
299
+                  }
300
+                  if(patient[i].mode_id == 12){
301
+                     patient[i].mode_id = "HDF+HP"
302
+                  }
303
+                  if(patient[i].mode_id == 13){
304
+                     patient[i].mode_id = "CRRT"
305
+                  }
306
+                  if(patient[i].mode_id == 14){
307
+                     patient[i].mode_id = "腹水回输"
308
+                  }
309
+                  if(patient[i].mode_id == 15){
310
+                     patient[i].mode_id = "HD前置换"
311
+                  }
312
+                  if(patient[i].mode_id == 16){
313
+                     patient[i].mode_id = "HD后置换"
314
+                  }
315
+                  if(patient[i].mode_id == 17){
316
+                     patient[i].mode_id = "HDF前置换"
317
+                  }
318
+                  if(patient[i].mode_id == 18){
319
+                     patient[i].mode_id = "HDF后置换"
320
+                  }
321
+                  if(patient[i].mode_id == 19){
322
+                     patient[i].mode_id = "IUF+HD"
323
+                  }
324
+                }
325
+                this.tableData = patient
326
+                console.log("patient2222",patient)
264 327
              }
265 328
           })
266 329
         },
@@ -292,15 +355,78 @@ export default {
292 355
           getDialysisParameters(params).then(response=>{
293 356
              if(response.data.state == 1){
294 357
                 var schedule = response.data.data.schedule
295
-                console.log("schedule",schedule)
296
-                this.tableData = schedule
358
+              
359
+                // this.tableData = schedule
297 360
                 var total = response.data.data.total
298 361
                 this.total = total
299 362
                 var prescription =  response.data.data.prescription
363
+            
300 364
                 this.prescriptionList = prescription
301 365
                 var dialysbefor = response.data.data.dialysbefor
302 366
                 this.dialysisBefor = dialysbefor
303
-                console.log("dialysbefor",dialysbefor)
367
+                
368
+                var patient = response.data.data.patient
369
+                 for(let i=0;i<patient.length;i++){
370
+                  if(patient[i].mode_id == 1){
371
+                    patient[i].mode_id = "HD"
372
+                  }
373
+                  if(patient[i].mode_id == 2){
374
+                     patient[i].mode_id = "HDF"
375
+                  }
376
+                  if(patient[i].mode_id == 3){
377
+                     patient[i].mode_id = "HD+HP"
378
+                  }
379
+                  if(patient[i].mode_id == 4){
380
+                     patient[i].mode_id = "HP"
381
+                  }
382
+                  if(patient[i].mode_id == 5){
383
+                     patient[i].mode_id = "HF"
384
+                  }
385
+                  if(patient[i].mode_id == 6){
386
+                     patient[i].mode_id = "SCUF"
387
+                  }
388
+                  if(patient[i].mode_id == 7){
389
+                     patient[i].mode_id = "IUF"
390
+                  }
391
+                  if(patient[i].mode_id == 8){
392
+                     patient[i].mode_id = "HFHD"
393
+                  }
394
+                  if(patient[i].mode_id == 9){
395
+                     patient[i].mode_id = "HFHD+HP"
396
+                  }
397
+                  if(patient[i].mode_id == 10){
398
+                     patient[i].mode_id = "PHF"
399
+                  }
400
+                  if(patient[i].mode_id == 11){
401
+                    patient[i].mode_id = "HFR"
402
+                  }
403
+                  if(patient[i].mode_id == 12){
404
+                     patient[i].mode_id = "HDF+HP"
405
+                  }
406
+                  if(patient[i].mode_id == 13){
407
+                     patient[i].mode_id = "CRRT"
408
+                  }
409
+                  if(patient[i].mode_id == 14){
410
+                     patient[i].mode_id = "腹水回输"
411
+                  }
412
+                  if(patient[i].mode_id == 15){
413
+                     patient[i].mode_id = "HD前置换"
414
+                  }
415
+                  if(patient[i].mode_id == 16){
416
+                     patient[i].mode_id = "HD后置换"
417
+                  }
418
+                  if(patient[i].mode_id == 17){
419
+                     patient[i].mode_id = "HDF前置换"
420
+                  }
421
+                  if(patient[i].mode_id == 18){
422
+                     patient[i].mode_id = "HDF后置换"
423
+                  }
424
+                  if(patient[i].mode_id == 19){
425
+                     patient[i].mode_id = "IUF+HD"
426
+                  }
427
+                }
428
+                console.log("patient",patient)
429
+                this.tableData = patient
304 430
              }
305 431
           })
306 432
         },
@@ -352,6 +478,7 @@ export default {
352 478
              dryWeight = this.dialysisBefor[i].dry_weight
353 479
           }
354 480
         }
481
+        console.log("dryweight=====",dryWeight)
355 482
        return dryWeight
356 483
      },
357 484
      getSysBloodPressure(id){
@@ -361,6 +488,7 @@ export default {
361 488
              sysBloodPressure = this.dialysisBefor[i].systolic_blood_pressure
362 489
           }
363 490
         }
491
+        console.log("sysBloodPressure=====",sysBloodPressure)
364 492
         return sysBloodPressure
365 493
      },
366 494
      getTargetUltrafiltration(id){
@@ -370,6 +498,7 @@ export default {
370 498
              targetUltrafiltration = this.prescriptionList[i].target_ultrafiltration
371 499
           }
372 500
         }
501
+        console.log("targetUltrafiltration",targetUltrafiltration)
373 502
         return targetUltrafiltration
374 503
      },
375 504
      getBloodFlowVolume(id){

+ 27 - 3
src/xt_pages/dialysis/dialysisPrintOrder.vue Целия файл

@@ -344,6 +344,16 @@
344 344
           >打印</el-button
345 345
         >
346 346
       </template>
347
+       <template v-if="org_template_info.template_id == 25">
348
+        <el-button
349
+          :loading="loading"
350
+          size="small"
351
+          icon="el-icon-printer"
352
+          @click="printThisPage"
353
+          type="primary"
354
+          >打印</el-button
355
+        >
356
+      </template>
347 357
     </div>
348 358
     <div class="app-container" style="min-height:0;">
349 359
       <!--<div class="order-print-btn"-->
@@ -544,6 +554,11 @@
544 554
             v-bind:childResponse="childResponse"
545 555
             v-if="org_template_info.template_id == 24"
546 556
           ></DialysisPrintOrderTwentyFour>
557
+          <DialysisPrintOrderTwentyFive
558
+            v-bind:childResponse="childResponse"
559
+            v-if="org_template_info.template_id == 25"
560
+          >
561
+          </DialysisPrintOrderTwentyFive>
547 562
         </div>
548 563
       </el-container>
549 564
     </div>
@@ -587,10 +602,11 @@ import DialysisPrintOrderTwentyOne from "./template/DialysisPrintOrderTwentyOne"
587 602
 import DialysisPrintOrderTwentyTwo from "./template/DialysisPrintOrderTwentyTwo";
588 603
 import DialysisPrintOrderTwentyThree from "./template/DialysisPrintOrderTwentyThree";
589 604
 import DialysisPrintOrderTwentyFour from "./template/DialysisPrintOrderTwentyFour";
590
-
605
+import DialysisPrintOrderTwentyFive from "./template/DialysisPrintOrderTwentyFive";
591 606
 export default {
592 607
   name: "dialysisPrintOrder",
593 608
   components: {
609
+    DialysisPrintOrderTwentyFive,
594 610
     DialysisPrintOrderTwentyFour,
595 611
     DialysisPrintOrderTwentyThree,
596 612
     DialysisPrintOrderTwentyTwo,
@@ -615,6 +631,7 @@ export default {
615 631
     DialysisPrintOrderSeven,
616 632
     DialysisPrintOrderEight,
617 633
     DialysisPrintOrderNine,
634
+
618 635
     LabelBox,
619 636
     BreadCrumb
620 637
   },
@@ -851,7 +868,7 @@ export default {
851 868
           style: style,
852 869
           scanStyles: false
853 870
         });
854
-      } else if (this.org_template_info.template_id == 9) {
871
+      } else if (this.org_template_info.template_id == 9 ||  this.org_template_info.template_id==25) {
855 872
         printJS({
856 873
           printable: "dialysis-print-box",
857 874
           type: "html",
@@ -949,7 +966,14 @@ export default {
949 966
           style: style,
950 967
           scanStyles: false
951 968
         });
952
-      } 
969
+      }else if (this.org_template_info.template_id == 25) {
970
+        printJS({
971
+          printable: "dialysis-print-box",
972
+          type: "html",
973
+          style: style5,
974
+          scanStyles: false
975
+        });
976
+      }
953 977
     },
954 978
     printThisOnePage() {
955 979
       var ptime = Math.round(new Date().getTime() / 1000);

Файловите разлики са ограничени, защото са твърде много
+ 1820 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue