Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
8c0e558dc1

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

237
              <div v-for="(main_collection,index) in printList" :key="index">
237
              <div v-for="(main_collection,index) in printList" :key="index">
238
               <div class="signPrint" style="font-size:16px;">
238
               <div class="signPrint" style="font-size:16px;">
239
                 <div style="margin-left:50px;">姓名:
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
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
243
                 </div>
242
                 </div>
244
                 <div class="printCell">
243
                 <div class="printCell">
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
249
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
250
                   </span>
249
                   </span>
251
-                  <span> </span>
250
+                  <span>{{ printDate }}</span> 
252
                 </div>
251
                 </div>
253
                 <div class="printCell">
252
                 <div class="printCell">
254
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
253
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
371
 
370
 
372
       <span slot="footer" class="dialog-footer">
371
       <span slot="footer" class="dialog-footer">
373
         <el-button @click="startVisibility = false">取 消</el-button>
372
         <el-button @click="startVisibility = false">取 消</el-button>
374
-        <el-button type="primary" @click="startVisibility = false">确 定</el-button>
375
       </span>
373
       </span>
376
     </el-dialog>
374
     </el-dialog>
377
 
375
 
858
       startVisibility:false,
856
       startVisibility:false,
859
       printList:[],
857
       printList:[],
860
       anticoagulants_confit:null,
858
       anticoagulants_confit:null,
859
+      printDate:''
861
     }
860
     }
862
   },
861
   },
863
   created() {
862
   created() {
863
+   this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
864
     if(this.$route.query.showView){
864
     if(this.$route.query.showView){
865
       this.showView = this.$route.query.showView
865
       this.showView = this.$route.query.showView
866
     }
866
     }
903
     };
903
     };
904
     this.websocketSend(this.initData)
904
     this.websocketSend(this.initData)
905
     this.getInitData()
905
     this.getInitData()
906
-    this.getInitPrintData()
906
+   
907
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
907
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908
   },
908
   },
909
   beforeMount() {
909
   beforeMount() {
1400
       )
1400
       )
1401
     },
1401
     },
1402
     printOrderOne(){
1402
     printOrderOne(){
1403
-      this.startVisibility = true
1403
+      this.getInitPrintData()
1404
+     
1404
     },
1405
     },
1405
     // 日期
1406
     // 日期
1406
     handleScheduleDateChange: function(index) {
1407
     handleScheduleDateChange: function(index) {
2162
           var list = response.data.data.list
2163
           var list = response.data.data.list
2163
           console.log("list2332322332",list)
2164
           console.log("list2332322332",list)
2164
           this.printList = list
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
             
559
             
560
             if(project_config.is_open == 1){
560
             if(project_config.is_open == 1){
561
               this.project = resp.data.project
561
               this.project = resp.data.project
562
-              console.log( this.project)
562
+              console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563
              
563
              
564
               let projectArr = []
564
               let projectArr = []
565
               if(this.org_id!= 10318){
565
               if(this.org_id!= 10318){
570
                     }
570
                     }
571
                   })
571
                   })
572
                 })
572
                 })
573
-                
573
+                console.log("projectArr2332323232323232",projectArr)
574
                  resp.data.hisAdvices.map((item,index) => {
574
                  resp.data.hisAdvices.map((item,index) => {
575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
576
                      projectArr[index].project.map(it => {
576
                      projectArr[index].project.map(it => {
598
                     })
598
                     })
599
                   }
599
                   }
600
                 })
600
                 })
601
+                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
601
               }
602
               }
602
-            
603
-             
604
-
605
             }
603
             }
606
            
604
            
607
            if(config.is_open == 0 || config.is_open == 2){
605
            if(config.is_open == 0 || config.is_open == 2){