XMLWAN 3 years ago
parent
commit
d3414d561a

+ 17 - 0
src/api/schedule.js View File

@@ -150,4 +150,21 @@ export function copyPatientSchedule(params){
150 150
     method:"Get",
151 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 View File

@@ -322,7 +322,7 @@
322 322
                   <div class="inline_block" style="flex:1;">
323 323
                     透析(滤)器:
324 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 327
                       <!-- {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }} -->
328 328
                     </div>

+ 29 - 12
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -226,7 +226,7 @@
226 226
 </template>
227 227
 
228 228
 <script>
229
-import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
229
+import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList } from "@/api/schedule";
230 230
 import WeekItem from "./WeekItem";
231 231
 
232 232
 export default {
@@ -286,6 +286,7 @@ export default {
286 286
       anticoagulant_zongliang:true,
287 287
       doctor_advice:false,
288 288
       form:{
289
+        id:0,
289 290
         prescription_status:"",
290 291
         week:"",
291 292
         name:"",
@@ -534,7 +535,15 @@ export default {
534 535
        this.dialogVisible = true
535 536
     },
536 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 547
        if(this.prescription_status == true){
539 548
          this.form.prescription_status = 1
540 549
        }
@@ -583,17 +592,12 @@ export default {
583 592
        if(this.dialyzers == false){
584 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 596
        if(this.anticoagulant == true){
593
-          this.anticoagulant = 1
597
+          this.form.anticoagulant = 1
594 598
        }
595 599
        if(this.anticoagulant == false){
596
-         this.anticoagulant = 2
600
+         this.form.anticoagulant = 2
597 601
        }
598 602
        if(this.anticoagulant_zongliang == true){
599 603
           this.form.anticoagulant_zongliang  = 1
@@ -607,7 +611,9 @@ export default {
607 611
        if(this.doctor_advice == false){
608 612
           this.form.doctor_advice = 2
609 613
        }
614
+       console.log("555555555",this.form.prescription_status)
610 615
         var params = {
616
+          id:this.form.id,
611 617
           prescription_status:this.form.prescription_status,
612 618
           week:this.form.week,
613 619
           name:this.form.name,
@@ -616,12 +622,22 @@ export default {
616 622
           number:this.form.number,
617 623
           mode:this.form.mode,
618 624
           dialyzers:this.form.dialyzers,
619
-          perfusion_apparatus:this.form.prescription_apparaus,
625
+          perfusion_apparatus:this.form.perfusion_apparatus,
620 626
           anticoagulant:this.form.anticoagulant,
621 627
           anticoagulant_zongliang:this.form.anticoagulant_zongliang,
622 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,6 +659,7 @@ export default {
643 659
     this.getScheduleWeekDay();
644 660
     console.log("org2222222",this.$store.getters.xt_user.org.id)
645 661
     this.org_id = this.$store.getters.xt_user.org.id
662
+   // this.getlist()
646 663
   }
647 664
 };
648 665
 </script>