Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
8c0e558dc1

+ 8 - 6
src/xt_pages/dialysis/details/index.vue View File

@@ -237,8 +237,7 @@
237 237
              <div v-for="(main_collection,index) in printList" :key="index">
238 238
               <div class="signPrint" style="font-size:16px;">
239 239
                 <div style="margin-left:50px;">姓名:
240
-                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
241
-                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
240
+                  <span>{{main_collection.patient.name}} </span>
242 241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
243 242
                 </div>
244 243
                 <div class="printCell">
@@ -248,7 +247,7 @@
248 247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
249 248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
250 249
                   </span>
251
-                  <span> </span>
250
+                  <span>{{ printDate }}</span> 
252 251
                 </div>
253 252
                 <div class="printCell">
254 253
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
@@ -371,7 +370,6 @@
371 370
 
372 371
       <span slot="footer" class="dialog-footer">
373 372
         <el-button @click="startVisibility = false">取 消</el-button>
374
-        <el-button type="primary" @click="startVisibility = false">确 定</el-button>
375 373
       </span>
376 374
     </el-dialog>
377 375
 
@@ -858,9 +856,11 @@ export default {
858 856
       startVisibility:false,
859 857
       printList:[],
860 858
       anticoagulants_confit:null,
859
+      printDate:''
861 860
     }
862 861
   },
863 862
   created() {
863
+   this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
864 864
     if(this.$route.query.showView){
865 865
       this.showView = this.$route.query.showView
866 866
     }
@@ -903,7 +903,7 @@ export default {
903 903
     };
904 904
     this.websocketSend(this.initData)
905 905
     this.getInitData()
906
-    this.getInitPrintData()
906
+   
907 907
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908 908
   },
909 909
   beforeMount() {
@@ -1400,7 +1400,8 @@ export default {
1400 1400
       )
1401 1401
     },
1402 1402
     printOrderOne(){
1403
-      this.startVisibility = true
1403
+      this.getInitPrintData()
1404
+     
1404 1405
     },
1405 1406
     // 日期
1406 1407
     handleScheduleDateChange: function(index) {
@@ -2162,6 +2163,7 @@ export default {
2162 2163
           var list = response.data.data.list
2163 2164
           console.log("list2332322332",list)
2164 2165
           this.printList = list
2166
+          this.startVisibility = true
2165 2167
         }
2166 2168
       })
2167 2169
     }

+ 3 - 5
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -559,7 +559,7 @@ export default {
559 559
             
560 560
             if(project_config.is_open == 1){
561 561
               this.project = resp.data.project
562
-              console.log( this.project)
562
+              console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563 563
              
564 564
               let projectArr = []
565 565
               if(this.org_id!= 10318){
@@ -570,7 +570,7 @@ export default {
570 570
                     }
571 571
                   })
572 572
                 })
573
-                
573
+                console.log("projectArr2332323232323232",projectArr)
574 574
                  resp.data.hisAdvices.map((item,index) => {
575 575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
576 576
                      projectArr[index].project.map(it => {
@@ -598,10 +598,8 @@ export default {
598 598
                     })
599 599
                   }
600 600
                 })
601
+                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
601 602
               }
602
-            
603
-             
604
-
605 603
             }
606 604
            
607 605
            if(config.is_open == 0 || config.is_open == 2){