|
@@ -9,15 +9,6 @@
|
9
|
9
|
type="primary"
|
10
|
10
|
>打印
|
11
|
11
|
</el-button>
|
12
|
|
-
|
13
|
|
- <!-- <el-button
|
14
|
|
- style="float: right"
|
15
|
|
- size="small"
|
16
|
|
- icon="el-icon-printer"
|
17
|
|
- @click="printActionSetting()"
|
18
|
|
- type="primary">
|
19
|
|
- 打印设置
|
20
|
|
- </el-button> -->
|
21
|
12
|
</div>
|
22
|
13
|
|
23
|
14
|
<div class="cell clearfix">
|
|
@@ -34,9 +25,8 @@
|
34
|
25
|
</li>
|
35
|
26
|
</ul>
|
36
|
27
|
</div>
|
37
|
|
- </div>
|
38
|
|
- <div class="cell clearfix">
|
39
|
|
- <div class="title"><span class="name">班 次</span> :</div>
|
|
28
|
+
|
|
29
|
+ <div class="title"><span class="name">班 次</span> :</div>
|
40
|
30
|
<div class="time">
|
41
|
31
|
<ul class>
|
42
|
32
|
<li
|
|
@@ -169,65 +159,11 @@
|
169
|
159
|
</template>
|
170
|
160
|
</el-table-column>
|
171
|
161
|
</el-table>
|
172
|
|
-
|
173
|
|
- <el-dialog
|
174
|
|
- title="打印设置"
|
175
|
|
- :visible.sync="dialogVisible"
|
176
|
|
- width="30%"
|
177
|
|
- >
|
178
|
|
- <span>
|
179
|
|
- <ul>
|
180
|
|
- <li>
|
181
|
|
- <el-checkbox v-model="prescription_status">透析处方状态</el-checkbox>
|
182
|
|
- </li>
|
183
|
|
- <li>
|
184
|
|
- <el-checkbox v-model="week">星期</el-checkbox>
|
185
|
|
- </li>
|
186
|
|
- <li>
|
187
|
|
- <el-checkbox v-model="name">姓名</el-checkbox>
|
188
|
|
- </li>
|
189
|
|
- <li>
|
190
|
|
- <el-checkbox v-model="zone">分区</el-checkbox>
|
191
|
|
- </li>
|
192
|
|
- <li>
|
193
|
|
- <el-checkbox v-model="classes">班次</el-checkbox>
|
194
|
|
- </li>
|
195
|
|
- <li>
|
196
|
|
- <el-checkbox v-model="number">机号</el-checkbox>
|
197
|
|
- </li>
|
198
|
|
- <li>
|
199
|
|
- <el-checkbox v-model="mode">透析模式</el-checkbox>
|
200
|
|
- </li>
|
201
|
|
- <li>
|
202
|
|
- <el-checkbox v-model="dialyzers">透析器</el-checkbox>
|
203
|
|
- </li>
|
204
|
|
- <li>
|
205
|
|
- <el-checkbox v-model="perfusion_apparatus">灌流器</el-checkbox>
|
206
|
|
- </li>
|
207
|
|
- <li>
|
208
|
|
- <el-checkbox v-model="anticoagulant">抗凝剂(商品名称)</el-checkbox>
|
209
|
|
- </li>
|
210
|
|
- <li>
|
211
|
|
- <el-checkbox v-model="anticoagulant_zongliang">总量</el-checkbox>
|
212
|
|
- </li>
|
213
|
|
- <li>
|
214
|
|
- <el-checkbox v-model="doctor_advice">长期医嘱</el-checkbox>
|
215
|
|
- </li>
|
216
|
|
- </ul>
|
217
|
|
-
|
218
|
|
- </span>
|
219
|
|
- <span slot="footer" class="dialog-footer">
|
220
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
221
|
|
- <el-button type="primary" @click="saveRemindPrint">保 存</el-button>
|
222
|
|
- </span>
|
223
|
|
- </el-dialog>
|
224
|
|
-
|
225
|
|
-
|
226
|
162
|
</div>
|
227
|
163
|
</template>
|
228
|
164
|
|
229
|
165
|
<script>
|
230
|
|
-import { getSchedules, getScheduleWeekDay,saveRemindPrint,getRemindPrintList } from "@/api/schedule";
|
|
166
|
+import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
|
231
|
167
|
import WeekItem from "./WeekItem";
|
232
|
168
|
|
233
|
169
|
export default {
|
|
@@ -242,7 +178,6 @@ export default {
|
242
|
178
|
data() {
|
243
|
179
|
return {
|
244
|
180
|
weekArr: [
|
245
|
|
- { id: 0, name: "全部" },
|
246
|
181
|
{ id: 1, name: "周一" },
|
247
|
182
|
{ id: 2, name: "周二" },
|
248
|
183
|
{ id: 3, name: "周三" },
|
|
@@ -273,35 +208,7 @@ export default {
|
273
|
208
|
},
|
274
|
209
|
scheduleData: [],
|
275
|
210
|
modeOptions: null,
|
276
|
|
- org_id:0,
|
277
|
|
- dialogVisible:false,
|
278
|
|
- prescription_status:false,
|
279
|
|
- week:false,
|
280
|
|
- name:false,
|
281
|
|
- zone:false,
|
282
|
|
- classes:false,
|
283
|
|
- number:false,
|
284
|
|
- mode:false,
|
285
|
|
- dialyzers:false,
|
286
|
|
- perfusion_apparatus:false,
|
287
|
|
- anticoagulant:false,
|
288
|
|
- anticoagulant_zongliang:false,
|
289
|
|
- doctor_advice:false,
|
290
|
|
- form:{
|
291
|
|
- id:0,
|
292
|
|
- prescription_status:"",
|
293
|
|
- week:"",
|
294
|
|
- name:"",
|
295
|
|
- zone:"",
|
296
|
|
- classes:"",
|
297
|
|
- number:"",
|
298
|
|
- mode:"",
|
299
|
|
- dialyzers:"",
|
300
|
|
- perfusion_apparatus:"",
|
301
|
|
- anticoagulant:"",
|
302
|
|
- anticoagulant_zongliang:"",
|
303
|
|
- doctor_advice:"",
|
304
|
|
- }
|
|
211
|
+ org_id:0
|
305
|
212
|
};
|
306
|
213
|
},
|
307
|
214
|
watch: {
|
|
@@ -326,12 +233,11 @@ export default {
|
326
|
233
|
}
|
327
|
234
|
},
|
328
|
235
|
getScheduleWeekDay() {
|
329
|
|
-
|
330
|
|
- const params = {
|
331
|
|
- week_type:this.week_type,
|
332
|
|
- week_time:this.week_time,
|
333
|
|
- }
|
334
|
|
- console.log("param22222",params)
|
|
236
|
+ const params = {
|
|
237
|
+ week_type:this.week_type,
|
|
238
|
+ week_time:this.week_time,
|
|
239
|
+ }
|
|
240
|
+
|
335
|
241
|
getScheduleWeekDay(params).then(response => {
|
336
|
242
|
this.scheduleData = [];
|
337
|
243
|
if (response.data.state == 1) {
|
|
@@ -533,196 +439,6 @@ export default {
|
533
|
439
|
}
|
534
|
440
|
return name;
|
535
|
441
|
}
|
536
|
|
- },
|
537
|
|
- printActionSetting(){
|
538
|
|
- this.getlist()
|
539
|
|
- this.dialogVisible = true
|
540
|
|
-
|
541
|
|
- },
|
542
|
|
- saveRemindPrint(){
|
543
|
|
- console.log("455555555",this.perfusion_apparatus)
|
544
|
|
-
|
545
|
|
- if(this.perfusion_apparatus == true){
|
546
|
|
- console.log("3333")
|
547
|
|
- this.form.perfusion_apparatus = 1
|
548
|
|
- }
|
549
|
|
- if(this.perfusion_apparatus == false){
|
550
|
|
- this.form.perfusion_apparatus = 2
|
551
|
|
- }
|
552
|
|
- if(this.prescription_status == true){
|
553
|
|
- this.form.prescription_status = 1
|
554
|
|
- }
|
555
|
|
- if(this.prescription_status == false){
|
556
|
|
- this.form.prescription_status = 2
|
557
|
|
- }
|
558
|
|
- if(this.week == true){
|
559
|
|
- this.form.week = 1
|
560
|
|
- }
|
561
|
|
- if(this.week == false){
|
562
|
|
- this.form.week = 2
|
563
|
|
- }
|
564
|
|
- if(this.name == true){
|
565
|
|
- this.form.name = 1
|
566
|
|
- }
|
567
|
|
- if(this.name == false){
|
568
|
|
- this.form.name = 2
|
569
|
|
- }
|
570
|
|
- if(this.zone == true){
|
571
|
|
- this.form.zone = 1
|
572
|
|
- }
|
573
|
|
- if(this.zone == false){
|
574
|
|
- this.form.zone = 2
|
575
|
|
- }
|
576
|
|
- if(this.classes == true){
|
577
|
|
- this.form.classes = 1
|
578
|
|
- }
|
579
|
|
- if(this.classes == false){
|
580
|
|
- this.form.classes = 2
|
581
|
|
- }
|
582
|
|
- if(this.number == true){
|
583
|
|
- this.form.number = 1
|
584
|
|
- }
|
585
|
|
- if(this.number == false){
|
586
|
|
- this.form.number = 2
|
587
|
|
- }
|
588
|
|
- if(this.mode == true){
|
589
|
|
- this.form.mode = 1
|
590
|
|
- }
|
591
|
|
- if(this.mode == false){
|
592
|
|
- this.form.mode = 2
|
593
|
|
- }
|
594
|
|
- if(this.dialyzers == true){
|
595
|
|
- this.form.dialyzers = 1
|
596
|
|
- }
|
597
|
|
- if(this.dialyzers == false){
|
598
|
|
- this.form.dialyzers = 2
|
599
|
|
- }
|
600
|
|
-
|
601
|
|
- if(this.anticoagulant == true){
|
602
|
|
- this.form.anticoagulant = 1
|
603
|
|
- }
|
604
|
|
- if(this.anticoagulant == false){
|
605
|
|
- this.form.anticoagulant = 2
|
606
|
|
- }
|
607
|
|
- if(this.anticoagulant_zongliang == true){
|
608
|
|
- this.form.anticoagulant_zongliang = 1
|
609
|
|
- }
|
610
|
|
- if(this.anticoagulant_zongliang == false){
|
611
|
|
- this.form.anticoagulant_zongliang = 2
|
612
|
|
- }
|
613
|
|
- if(this.doctor_advice == true){
|
614
|
|
- this.form.doctor_advice =1
|
615
|
|
- }
|
616
|
|
- if(this.doctor_advice == false){
|
617
|
|
- this.form.doctor_advice = 2
|
618
|
|
- }
|
619
|
|
- console.log("555555555",this.form.prescription_status)
|
620
|
|
- var params = {
|
621
|
|
- id:this.form.id,
|
622
|
|
- prescription_status:this.form.prescription_status,
|
623
|
|
- week:this.form.week,
|
624
|
|
- name:this.form.name,
|
625
|
|
- zone:this.form.zone,
|
626
|
|
- classes:this.form.classes,
|
627
|
|
- number:this.form.number,
|
628
|
|
- mode:this.form.mode,
|
629
|
|
- dialyzers:this.form.dialyzers,
|
630
|
|
- perfusion_apparatus:this.form.perfusion_apparatus,
|
631
|
|
- anticoagulant:this.form.anticoagulant,
|
632
|
|
- anticoagulant_zongliang:this.form.anticoagulant_zongliang,
|
633
|
|
- doctor_advice:this.form.doctor_advice,
|
634
|
|
- }
|
635
|
|
- console.log("params",params)
|
636
|
|
- saveRemindPrint(params).then(response=>{
|
637
|
|
- if(response.data.state == 1){
|
638
|
|
- var settting = response.data.data.setting
|
639
|
|
- this.$message.success("保存成功")
|
640
|
|
- this.dialogVisible = false
|
641
|
|
- this.getlist()
|
642
|
|
- }
|
643
|
|
- })
|
644
|
|
- },
|
645
|
|
- getlist(){
|
646
|
|
- getRemindPrintList().then(response=>{
|
647
|
|
- if(response.data.state == 1){
|
648
|
|
- var list = response.data.data.list
|
649
|
|
- console.log("list222332",list)
|
650
|
|
- if(list.anticoagulant == 1){
|
651
|
|
- console.log("进来22222")
|
652
|
|
- this.anticoagulant = true
|
653
|
|
- }
|
654
|
|
- if(list.anticoagulant == 2){
|
655
|
|
- this.anticoagulant = false
|
656
|
|
- }
|
657
|
|
- if(list.anticoagulant_zongliang == 1){
|
658
|
|
- this.anticoagulant_zongliang = true
|
659
|
|
- }
|
660
|
|
- if(list.anticoagulant_zongliang == 2){
|
661
|
|
- this.anticoagulant_zongliang = false
|
662
|
|
- }
|
663
|
|
- if(list.classes == 1 ){
|
664
|
|
- this.classes = true
|
665
|
|
- }
|
666
|
|
- if(list.classes == 2){
|
667
|
|
- this.classes = false
|
668
|
|
- }
|
669
|
|
- if(list.dialyzers == 1){
|
670
|
|
- this.dialyzers = true
|
671
|
|
- }
|
672
|
|
- if(list.dialyzers == 2){
|
673
|
|
- this.dialyzers = false
|
674
|
|
- }
|
675
|
|
- if(list.doctor_advice == 1){
|
676
|
|
- this.doctor_advice = true
|
677
|
|
- }
|
678
|
|
- if(list.doctor_advice == 2){
|
679
|
|
- this.doctor_advice = false
|
680
|
|
- }
|
681
|
|
- if(list.name == 1){
|
682
|
|
- this.name = true
|
683
|
|
- }
|
684
|
|
- if(list.name == 2){
|
685
|
|
- this.name = false
|
686
|
|
- }
|
687
|
|
- if(list.number == 1){
|
688
|
|
- this.number = true
|
689
|
|
- }
|
690
|
|
- if(list.number == 2){
|
691
|
|
- this.number = false
|
692
|
|
- }
|
693
|
|
- if(list.perfusion_apparatus == 1){
|
694
|
|
- this.perfusion_apparatus = true
|
695
|
|
- }
|
696
|
|
- if(list.perfusion_apparatus == 2){
|
697
|
|
- this.perfusion_apparatus = false
|
698
|
|
- }
|
699
|
|
- if(list.prescription_status == 1){
|
700
|
|
- this.prescription_status = true
|
701
|
|
- }
|
702
|
|
- if(list.prescription_status == 2){
|
703
|
|
- this.prescription_status = false
|
704
|
|
- }
|
705
|
|
- if(list.week == 1){
|
706
|
|
- this.week = true
|
707
|
|
- }
|
708
|
|
- if(list.week == 2){
|
709
|
|
- this.week = false
|
710
|
|
- }
|
711
|
|
- if(list.zone == 1){
|
712
|
|
- this.zone = true
|
713
|
|
- }
|
714
|
|
- if(list.zone == 2){
|
715
|
|
- this.zone = false
|
716
|
|
- }
|
717
|
|
- if(list.mode ==1){
|
718
|
|
- this.mode = true
|
719
|
|
- }
|
720
|
|
- if(list.mode == 2){
|
721
|
|
- this.mode = false
|
722
|
|
- }
|
723
|
|
- this.form.id = list.id
|
724
|
|
- }
|
725
|
|
- })
|
726
|
442
|
}
|
727
|
443
|
},
|
728
|
444
|
components: {
|
|
@@ -731,6 +447,7 @@ export default {
|
731
|
447
|
created() {
|
732
|
448
|
this.modeOptions = this.$store.getters.treatment_mode;
|
733
|
449
|
this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
|
|
450
|
+ console.log("抗凝机", this.anticoagulants_confit);
|
734
|
451
|
this.week_type = new Date().getDay();
|
735
|
452
|
if (this.week_type == 0) {
|
736
|
453
|
this.week_type = 7;
|
|
@@ -739,8 +456,8 @@ export default {
|
739
|
456
|
// week_type: this.week_type
|
740
|
457
|
// };
|
741
|
458
|
this.getScheduleWeekDay();
|
|
459
|
+ console.log("org2222222",this.$store.getters.xt_user.org.id)
|
742
|
460
|
this.org_id = this.$store.getters.xt_user.org.id
|
743
|
|
- // this.getlist()
|
744
|
461
|
}
|
745
|
462
|
};
|
746
|
463
|
</script>
|