Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 2 months ago
parent
commit
02b4ee7d68

+ 1 - 1
src/store/modules/globalConfig.js View File

836
       },
836
       },
837
       42: {
837
       42: {
838
         id: 42,
838
         id: 42,
839
-        name: 'HD(1)',
839
+        name: 'HD.',
840
         dialysis_duration: 1,
840
         dialysis_duration: 1,
841
         replacement_way: 1,
841
         replacement_way: 1,
842
         hemodialysis_machine: 2,
842
         hemodialysis_machine: 2,

+ 6 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventyeight.vue View File

657
 
657
 
658
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
658
                     <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
659
                       <div class="inline_block" style="flex: 2">
659
                       <div class="inline_block" style="flex: 2">
660
-                        人工肾装置
660
+                       透析器
661
                         <div class="under_line" style="width: 50%; text-align: center">
661
                         <div class="under_line" style="width: 50%; text-align: center">
662
                         {{ record.prescription &&
662
                         {{ record.prescription &&
663
                             record.prescription.dialysis_irrigation
663
                             record.prescription.dialysis_irrigation
667
                               record.prescription.dialysis_dialyszers
667
                               record.prescription.dialysis_dialyszers
668
                                 ? record.prescription.dialysis_dialyszers
668
                                 ? record.prescription.dialysis_dialyszers
669
                                 : ""
669
                                 : ""
670
+                            }}&nbsp;
671
+                             {{
672
+                              record.prescription.dialysis_strainer
673
+                                ? record.prescription.dialysis_strainer
674
+                                : ""
670
                             }}
675
                             }}
671
                         </div>
676
                         </div>
672
                       </div>
677
                       </div>

+ 1 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue View File

2576
                       </div>
2576
                       </div>
2577
                     </div>
2577
                     </div>
2578
                      <div
2578
                      <div
2579
+                      v-if="org_id!=10677"
2579
                       class="row"
2580
                       class="row"
2580
                       style="padding: 2px 0; line-height: 23px; display: flex"
2581
                       style="padding: 2px 0; line-height: 23px; display: flex"
2581
                     >
2582
                     >

+ 5 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue View File

568
                       </div>
568
                       </div>
569
                     </div>
569
                     </div>
570
                     <div class="inline_block" style="flex: 2">
570
                     <div class="inline_block" style="flex: 2">
571
-                      人工肾装置
571
+                      透析器
572
                       <div class="under_line" style="width: 50%; text-align: center">
572
                       <div class="under_line" style="width: 50%; text-align: center">
573
                         {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:""}}&nbsp;
573
                         {{prescription.dialysis_irrigation?prescription.dialysis_irrigation:""}}&nbsp;
574
                         {{
574
                         {{
575
                           prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : ""
575
                           prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : ""
576
                         }}
576
                         }}
577
+                        &nbsp;
578
+                         {{
579
+                          prescription.dialysis_strainer ? prescription.dialysis_strainer : ""
580
+                        }}
577
                       </div>
581
                       </div>
578
                     </div>
582
                     </div>
579
                     <div class="inline_block" style="flex: 1">
583
                     <div class="inline_block" style="flex: 1">

+ 38 - 16
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

2221
 
2221
 
2222
 
2222
 
2223
                       <tr
2223
                       <tr
2224
-                      v-if="org_id ==10206 || org_id == 10644 || org_id == 0 || org_id ==10489"
2224
+                      v-if="org_id ==10206  || org_id ==10489"
2225
                       v-for="(advice, advice_index) in projectsOne"
2225
                       v-for="(advice, advice_index) in projectsOne"
2226
                       :key="advice_index"
2226
                       :key="advice_index"
2227
                     >
2227
                     >
2441
 
2441
 
2442
 
2442
 
2443
                       <tr
2443
                       <tr
2444
-                      v-if="org_id == 0 || org_id ==10206 || org_id ==10633 || org_id ==10644 || org_id == 10489"
2444
+                      v-if="org_id == 0 || org_id ==10206 || org_id ==10633 || org_id == 10489"
2445
                       v-for="(advice, advice_index) in projectsOne"
2445
                       v-for="(advice, advice_index) in projectsOne"
2446
                       :key="advice_index"
2446
                       :key="advice_index"
2447
                     >
2447
                     >
5365
 
5365
 
5366
         console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
5366
         console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
5367
 
5367
 
5368
-        if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 0 || this.org_id == 10489){
5368
+        if(this.org_id ==10206 || this.org_id ==10644 || this.org_id ==10633 || this.org_id == 10489){
5369
           let projectsOne = [];
5369
           let projectsOne = [];
5370
           response.data.data.projects.map((item) => {
5370
           response.data.data.projects.map((item) => {
5371
               projectsOne.push(item);
5371
               projectsOne.push(item);
5403
         }
5403
         }
5404
 
5404
 
5405
         //HIS客户显示临时医嘱的地方
5405
         //HIS客户显示临时医嘱的地方
5406
-        if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id == 0 || this.org_id == 10644){
5406
+        if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id ==10644 || this.org_id == 0){
5407
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
5407
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
5408
 
5408
 
5409
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
5409
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
5413
             }
5413
             }
5414
          }
5414
          }
5415
 
5415
 
5416
-        console.log("医护哦我我我哦我我哦",this.doctor_advices)
5416
+      
5417
 
5417
 
5418
          let projects = [];
5418
          let projects = [];
5419
         response.data.data.projects.map((item) => {
5419
         response.data.data.projects.map((item) => {
5424
         this.projects = projects;
5424
         this.projects = projects;
5425
 
5425
 
5426
 
5426
 
5427
-        console.log("this.projects", this.projects);
5427
+        // console.log("this.projects=========================================", this.projects);
5428
 
5428
 
5429
 
5429
 
5430
 
5430
 
5431
-        if(this.org_id!=10510 && this.org_id!=0&&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=0 && this.org_id!=10489 && this.org_id!=10644){
5431
+        if(this.org_id!=10510 &&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=10489){
5432
+            console.log("列表===================================",this.projects)
5433
+            var newHisArr = []
5432
             if(this.projects!=null && this.projects.length >0){
5434
             if(this.projects!=null && this.projects.length >0){
5433
              for(let i=0;i<this.projects.length;i++){
5435
              for(let i=0;i<this.projects.length;i++){
5434
               if(this.projects[i].type== 2){
5436
               if(this.projects[i].type== 2){
5437
                 this.projects[i].project_team_id = 0
5439
                 this.projects[i].project_team_id = 0
5438
 
5440
 
5439
                 if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
5441
                 if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
5440
-                  console.log("this.projects[i].project.team", this.projects[i].team)
5442
+                 
5441
                   this.projects[i].project_team = this.projects[i].team.project_team
5443
                   this.projects[i].project_team = this.projects[i].team.project_team
5442
                   this.projects[i].project_team_id = this.projects[i].team.id
5444
                   this.projects[i].project_team_id = this.projects[i].team.id
5443
                   this.projects[i].start_time = this.projects[i].start_time
5445
                   this.projects[i].start_time = this.projects[i].start_time
5448
                   this.projects[i].advice_name =  this.projects[i].team.project_team
5450
                   this.projects[i].advice_name =  this.projects[i].team.project_team
5449
                   this.projects[i].advice_doctor = this.projects[i].doctor
5451
                   this.projects[i].advice_doctor = this.projects[i].doctor
5450
 
5452
 
5451
-
5452
-                  this.doctor_advices.push(this.projects[i])
5453
+             
5454
+                  newHisArr.push(this.projects[i])
5453
                   // this.doctor_advices_2.push(this.project[i])
5455
                   // this.doctor_advices_2.push(this.project[i])
5454
                 }else{
5456
                 }else{
5455
                   this.projects[i].project_team = this.projects[i].project.project_name
5457
                   this.projects[i].project_team = this.projects[i].project.project_name
5460
                   this.projects[i].execution_time = this.projects[i].execution_time
5462
                   this.projects[i].execution_time = this.projects[i].execution_time
5461
                   this.projects[i].execution_staff= this.projects[i].execution_staff
5463
                   this.projects[i].execution_staff= this.projects[i].execution_staff
5462
                   this.projects[i].advice_doctor = this.projects[i].doctor
5464
                   this.projects[i].advice_doctor = this.projects[i].doctor
5463
-                  this.doctor_advices.push(this.projects[i])
5465
+                  newHisArr.push(this.projects[i])
5466
+
5467
+
5464
                   // this.doctor_advices_2.push(this.projects[i])
5468
                   // this.doctor_advices_2.push(this.projects[i])
5465
                 }
5469
                 }
5466
 
5470
 
5471
+                
5472
+
5467
               }
5473
               }
5468
 
5474
 
5469
             }
5475
             }
5470
-          }
5476
+            }
5477
+
5478
+            var ordHisArr = this.getQuChong(newHisArr)
5479
+
5480
+           this.doctor_advices.push(...ordHisArr)
5471
         }
5481
         }
5472
 
5482
 
5473
 
5483
 
5474
         }
5484
         }
5475
 
5485
 
5476
-        console.log("时间我我我哦我我",this.doctor_advices)
5486
+       
5477
 
5487
 
5478
         //针对内蒙古阿拉善
5488
         //针对内蒙古阿拉善
5479
         if(this.org_id ==10206){
5489
         if(this.org_id ==10206){
5575
 
5585
 
5576
         this.totollength = this.doctor_advices.length + this.monitors.length;
5586
         this.totollength = this.doctor_advices.length + this.monitors.length;
5577
         console.log("this.totollength",this.totollength)
5587
         console.log("this.totollength",this.totollength)
5588
+
5589
+        
5578
         if (this.totollength > 18) {
5590
         if (this.totollength > 18) {
5579
-          var temp_advice_length = 17 - this.monitors.length;
5591
+          var temp_advice_length = this.doctor_advices.length
5580
           var doctor_advices_1 = [];
5592
           var doctor_advices_1 = [];
5581
           var doctor_advices_2 = [];
5593
           var doctor_advices_2 = [];
5582
           for (let index = 0; index < this.doctor_advices.length; index++) {
5594
           for (let index = 0; index < this.doctor_advices.length; index++) {
5592
         }
5604
         }
5593
         // console.log(this.advice_groups);
5605
         // console.log(this.advice_groups);
5594
 
5606
 
5595
-
5607
+        console.log("医嘱列表=--=----------------------------------------------",this.doctor_advices)
5596
       } else {
5608
       } else {
5597
         this.loading = false;
5609
         this.loading = false;
5598
         this.$message.error("请求数据失败");
5610
         this.$message.error("请求数据失败");
5600
       }
5612
       }
5601
       // })
5613
       // })
5602
     },
5614
     },
5603
-
5615
+     getQuChong(tempArr) {
5616
+      let result = [];
5617
+        let obj = {};
5618
+        for (let i = 0; i < tempArr.length; i++) {
5619
+            if (!obj[tempArr[i].project_team]) {
5620
+                result.push(tempArr[i]);
5621
+                obj[tempArr[i].project_team] = true;
5622
+            };
5623
+        };
5624
+        return result;
5625
+    },
5604
     bloodAccessParOperaName(id) {
5626
     bloodAccessParOperaName(id) {
5605
       if (id in this.bloodAccessParOpera) {
5627
       if (id in this.bloodAccessParOpera) {
5606
         return this.bloodAccessParOpera[id].name;
5628
         return this.bloodAccessParOpera[id].name;

+ 1 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

2203
                     </div>
2203
                     </div>
2204
 
2204
 
2205
                     <div
2205
                     <div
2206
+                      v-if="org_id!=10677"
2206
                       class="inline_block"
2207
                       class="inline_block"
2207
                       style="flex: 1; display: inline-block"
2208
                       style="flex: 1; display: inline-block"
2208
                     >
2209
                     >

+ 1 - 2
src/xt_pages/stock/drugs/inventory_record.vue View File

57
             </div>
57
             </div>
58
             <div>
58
             <div>
59
                <el-button size="small" type="primary" @click="print_1">打印</el-button>
59
                <el-button size="small" type="primary" @click="print_1">打印</el-button>
60
-               <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
60
+             
61
             </div>
61
             </div>
62
           
62
           
63
         </div>
63
         </div>
124
                <template slot-scope="scope">
124
                <template slot-scope="scope">
125
                  <span v-if="scope.row.reason == 10">盘盈</span>
125
                  <span v-if="scope.row.reason == 10">盘盈</span>
126
                  <span v-if="scope.row.reason == 11">盘亏</span>
126
                  <span v-if="scope.row.reason == 11">盘亏</span>
127
-                 <span v-else>未盘</span>
128
                </template>
127
                </template>
129
             </el-table-column>
128
             </el-table-column>
130
 
129
 

+ 1 - 1
src/xt_pages/stock/inventoryRecord.vue View File

114
                 <template slot-scope="scope">
114
                 <template slot-scope="scope">
115
                    <span v-if="scope.row.befor_count > scope.row.after_count">盘亏</span>
115
                    <span v-if="scope.row.befor_count > scope.row.after_count">盘亏</span>
116
                    <span v-if="scope.row.befor_count < scope.row.after_count">盘盈</span>
116
                    <span v-if="scope.row.befor_count < scope.row.after_count">盘盈</span>
117
-                   <span v-else>未盘</span>
117
+                 
118
                 </template>
118
                 </template>
119
             </el-table-column>
119
             </el-table-column>
120
            
120