XMLWAN 4 lat temu
rodzic
commit
d3414d561a

+ 17 - 0
src/api/schedule.js Wyświetl plik

150
     method:"Get",
150
     method:"Get",
151
     params:params
151
     params:params
152
   })
152
   })
153
+}
154
+
155
+export function saveRemindPrint(params){
156
+   return request({
157
+     url:"/api/schedule/saveremindprint",
158
+     method:"get",
159
+     params:params
160
+   })
161
+}
162
+
163
+export function getRemindPrintList(params){
164
+   
165
+  return request({
166
+    url:"/api/schedule/getremindprintlist",
167
+    method:"get",
168
+    params:params
169
+  })
153
 }
170
 }

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Wyświetl plik

322
                   <div class="inline_block" style="flex:1;">
322
                   <div class="inline_block" style="flex:1;">
323
                     透析(滤)器:
323
                     透析(滤)器:
324
                     <div class="under_line" style="width: 100px;text-align: center">
324
                     <div class="under_line" style="width: 100px;text-align: center">
325
-                      {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }}
325
+                      <!-- {{ prescription.dialyzer_perfusion_apparatus ? prescription.dialyzer_perfusion_apparatus : "/" }} -->
326
 
326
 
327
                       <!-- {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }} -->
327
                       <!-- {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }} -->
328
                     </div>
328
                     </div>

+ 29 - 12
src/xt_pages/workforce/components/tableWeeks.vue Wyświetl plik

226
 </template>
226
 </template>
227
 
227
 
228
 <script>
228
 <script>
229
-import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
229
+import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList } from "@/api/schedule";
230
 import WeekItem from "./WeekItem";
230
 import WeekItem from "./WeekItem";
231
 
231
 
232
 export default {
232
 export default {
286
       anticoagulant_zongliang:true,
286
       anticoagulant_zongliang:true,
287
       doctor_advice:false,
287
       doctor_advice:false,
288
       form:{
288
       form:{
289
+        id:0,
289
         prescription_status:"",
290
         prescription_status:"",
290
         week:"",
291
         week:"",
291
         name:"",
292
         name:"",
534
        this.dialogVisible = true
535
        this.dialogVisible = true
535
     },
536
     },
536
     saveRemindPrint(){
537
     saveRemindPrint(){
537
-       console.log("3333333",this.prescription_status)
538
+       console.log("455555555",this.perfusion_apparatus)
539
+
540
+      if(this.perfusion_apparatus == true){
541
+         console.log("3333")
542
+          this.form.perfusion_apparatus = 1
543
+       }
544
+       if(this.perfusion_apparatus == false){
545
+          this.form.perfusion_apparatus = 2
546
+       }
538
        if(this.prescription_status == true){
547
        if(this.prescription_status == true){
539
          this.form.prescription_status = 1
548
          this.form.prescription_status = 1
540
        }
549
        }
583
        if(this.dialyzers == false){
592
        if(this.dialyzers == false){
584
           this.form.dialyzers = 2
593
           this.form.dialyzers = 2
585
        }
594
        }
586
-       if(this.perfusion_apparatus == true){
587
-          this.form.perfusion_apparatus = 1
588
-       }
589
-       if(this.perfusion_apparatus == false){
590
-          this.form.perfusion_apparatus = 2
591
-       }
595
+     
592
        if(this.anticoagulant == true){
596
        if(this.anticoagulant == true){
593
-          this.anticoagulant = 1
597
+          this.form.anticoagulant = 1
594
        }
598
        }
595
        if(this.anticoagulant == false){
599
        if(this.anticoagulant == false){
596
-         this.anticoagulant = 2
600
+         this.form.anticoagulant = 2
597
        }
601
        }
598
        if(this.anticoagulant_zongliang == true){
602
        if(this.anticoagulant_zongliang == true){
599
           this.form.anticoagulant_zongliang  = 1
603
           this.form.anticoagulant_zongliang  = 1
607
        if(this.doctor_advice == false){
611
        if(this.doctor_advice == false){
608
           this.form.doctor_advice = 2
612
           this.form.doctor_advice = 2
609
        }
613
        }
614
+       console.log("555555555",this.form.prescription_status)
610
         var params = {
615
         var params = {
616
+          id:this.form.id,
611
           prescription_status:this.form.prescription_status,
617
           prescription_status:this.form.prescription_status,
612
           week:this.form.week,
618
           week:this.form.week,
613
           name:this.form.name,
619
           name:this.form.name,
616
           number:this.form.number,
622
           number:this.form.number,
617
           mode:this.form.mode,
623
           mode:this.form.mode,
618
           dialyzers:this.form.dialyzers,
624
           dialyzers:this.form.dialyzers,
619
-          perfusion_apparatus:this.form.prescription_apparaus,
625
+          perfusion_apparatus:this.form.perfusion_apparatus,
620
           anticoagulant:this.form.anticoagulant,
626
           anticoagulant:this.form.anticoagulant,
621
           anticoagulant_zongliang:this.form.anticoagulant_zongliang,
627
           anticoagulant_zongliang:this.form.anticoagulant_zongliang,
622
           doctor_advice:this.form.doctor_advice,
628
           doctor_advice:this.form.doctor_advice,
623
         }
629
         }
624
-      saveRemindPrint().then(response=>{
630
+       console.log("params",params)
631
+      saveRemindPrint(params).then(response=>{
632
+          if(response.data.state == 1){
633
+             var settting = response.data.data.setting
634
+             this.$message.success("保存成功")
635
+             this.dialogVisible = false
636
+          }
637
+      })
638
+    },
639
+    getlist(){
640
+      getRemindPrintList().then(response=>{
625
 
641
 
626
       })
642
       })
627
     }
643
     }
643
     this.getScheduleWeekDay();
659
     this.getScheduleWeekDay();
644
     console.log("org2222222",this.$store.getters.xt_user.org.id)
660
     console.log("org2222222",this.$store.getters.xt_user.org.id)
645
     this.org_id = this.$store.getters.xt_user.org.id
661
     this.org_id = this.$store.getters.xt_user.org.id
662
+   // this.getlist()
646
   }
663
   }
647
 };
664
 };
648
 </script>
665
 </script>